summaryrefslogtreecommitdiffstats
path: root/emulators/vice/files/patch-configure
blob: f3a6479e3b6911ccaed69c3d184c67af26fd75fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- configure.orig	Sun Aug 27 22:15:37 2006
+++ configure	Thu Sep  7 21:18:29 2006
@@ -6486,7 +6486,7 @@
 fi
 
 if test x"$with_sdl" = "xyes"; then
-	for ac_prog in sdl-config
+	for ac_prog in ${SDL_CONFIG##*/}
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
@@ -14392,6 +14392,7 @@
 else
   ac_check_lib_save_LIBS=$LIBS
 LIBS="-lesd $SOUND_LIBS $LIBS"
+CPPFLAGS="`esd-config --cflags` $CPPFLAGS"
 cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
 /* confdefs.h.  */
@@ -14458,10 +14459,10 @@
   if test x"$with_sdl" = "xyes"; then
     old_cflags=$CFLAGS
     old_libs=$LIBS
-    CFLAGS="$CFLAGS `sdl-config --cflags`"
-    LIBS="$LIBS `sdl-config --libs`"
+    CFLAGS="$CFLAGS `${SDL_CONFIG} --cflags`"
+    LIBS="$LIBS `${SDL_CONFIG} --libs`"
 
-for ac_header in SDL/SDL_audio.h
+for ac_header in SDL_audio.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if eval "test \"\${$as_ac_Header+set}\" = set"; then
@@ -14603,7 +14604,8 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lSDL $SOUND_LIBS $LIBS"
+LIBS="`${SDL_CONFIG} --libs` $SOUND_LIBS $LIBS"
+CFLAGS="`${SDL_CONFIG} --cflags` $CFLAGS"
 cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
 /* confdefs.h.  */
OpenPOWER on IntegriCloud