Commit d3d9738f995dcd4d887e7f10e16af64a77f1c140

Authored by Juan Quintela
Committed by Anthony Liguori
1 parent a68551bc

sdl_config value was always sdl-config

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing 1 changed file with 10 additions and 11 deletions
configure
... ... @@ -893,7 +893,6 @@ fi
893 893 sdl_too_old=no
894 894  
895 895 if test "$sdl" = "yes" ; then
896   - sdl_config="sdl-config"
897 896 sdl=no
898 897 sdl_static=no
899 898  
... ... @@ -902,8 +901,8 @@ cat &gt; $TMPC &lt;&lt; EOF
902 901 #undef main /* We don't want SDL to override our main() */
903 902 int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
904 903 EOF
905   - if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` > $TMPSDLLOG 2>&1 ; then
906   - _sdlversion=`$sdl_config --version | sed 's/[^0-9]//g'`
  904 + if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} `sdl-config --cflags 2> /dev/null` $TMPC `sdl-config --libs 2> /dev/null` > $TMPSDLLOG 2>&1 ; then
  905 + _sdlversion=`sdl-config --version | sed 's/[^0-9]//g'`
907 906 if test "$_sdlversion" -lt 121 ; then
908 907 sdl_too_old=yes
909 908 else
... ... @@ -915,13 +914,13 @@ EOF
915 914 # static link with sdl ?
916 915 if test "$sdl" = "yes" ; then
917 916 aa="no"
918   - `$sdl_config --static-libs 2>/dev/null | grep \\\-laa > /dev/null` && aa="yes"
919   - sdl_static_libs=`$sdl_config --static-libs 2>/dev/null`
  917 + `sdl-config --static-libs 2>/dev/null | grep \\\-laa > /dev/null` && aa="yes"
  918 + sdl_static_libs=`sdl-config --static-libs 2>/dev/null`
920 919 if [ "$aa" = "yes" ] ; then
921 920 sdl_static_libs="$sdl_static_libs `aalib-config --static-libs`"
922 921 fi
923 922  
924   - if $cc -o $TMPE ${OS_CFLAGS} `$sdl_config --cflags 2> /dev/null` $TMPC $sdl_static_libs > /dev/null 2> /dev/null; then
  923 + if $cc -o $TMPE ${OS_CFLAGS} `sdl-config --cflags 2> /dev/null` $TMPC $sdl_static_libs > /dev/null 2> /dev/null; then
925 924 sdl_static=yes
926 925 fi
927 926 fi # static link
... ... @@ -938,7 +937,7 @@ cat &gt; $TMPC &lt;&lt;EOF
938 937 #endif
939 938 int main(void) { return 0; }
940 939 EOF
941   - if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` > /dev/null 2>&1 ; then
  940 + if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} `sdl-config --cflags 2> /dev/null` $TMPC `sdl-config --libs 2> /dev/null` > /dev/null 2>&1 ; then
942 941 sdl_x11="yes"
943 942 fi
944 943 fi
... ... @@ -1659,14 +1658,14 @@ if test &quot;$sdl1&quot; = &quot;yes&quot; ; then
1659 1658 if test "$target_softmmu" = "no" -o "$static" = "yes"; then
1660 1659 echo "SDL_LIBS=$sdl_static_libs" >> $config_host_mak
1661 1660 elif test "$sdl_x11" = "yes" ; then
1662   - echo "SDL_LIBS=`$sdl_config --libs` -lX11" >> $config_host_mak
  1661 + echo "SDL_LIBS=`sdl-config --libs` -lX11" >> $config_host_mak
1663 1662 else
1664   - echo "SDL_LIBS=`$sdl_config --libs`" >> $config_host_mak
  1663 + echo "SDL_LIBS=`sdl-config --libs`" >> $config_host_mak
1665 1664 fi
1666 1665 if [ "${aa}" = "yes" ] ; then
1667   - echo "SDL_CFLAGS=`$sdl_config --cflags` `aalib-config --cflags`" >> $config_host_mak
  1666 + echo "SDL_CFLAGS=`sdl-config --cflags` `aalib-config --cflags`" >> $config_host_mak
1668 1667 else
1669   - echo "SDL_CFLAGS=`$sdl_config --cflags`" >> $config_host_mak
  1668 + echo "SDL_CFLAGS=`sdl-config --cflags`" >> $config_host_mak
1670 1669 fi
1671 1670 fi
1672 1671 if test "$cocoa" = "yes" ; then
... ...