changeset 489:d90349051cab

Fixed path problem with sdl.m4 macro file
author Sam Lantinga <slouken@libsdl.org>
date Mon, 09 Sep 2002 05:12:32 +0000
parents 0a111805b53a
children 7e53d17ec798
files sdl.m4 test/acinclude.m4
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sdl.m4	Mon Sep 09 03:22:19 2002 +0000
+++ b/sdl.m4	Mon Sep 09 05:12:32 2002 +0000
@@ -33,7 +33,8 @@
   fi
 
   AC_REQUIRE([AC_CANONICAL_TARGET])
-  AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$prefix/bin:$prefix/usr/bin:$PATH])
+  PATH="$prefix/bin:$prefix/usr/bin:$PATH"
+  AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH])
   min_sdl_version=ifelse([$1], ,0.11.0,$1)
   AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
   no_sdl=""
--- a/test/acinclude.m4	Mon Sep 09 03:22:19 2002 +0000
+++ b/test/acinclude.m4	Mon Sep 09 05:12:32 2002 +0000
@@ -33,7 +33,8 @@
   fi
 
   AC_REQUIRE([AC_CANONICAL_TARGET])
-  AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
+  PATH="$prefix/bin:$prefix/usr/bin:$PATH"
+  AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH])
   min_sdl_version=ifelse([$1], ,0.11.0,$1)
   AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
   no_sdl=""