Revision 74f42e18 configure

b/configure
1057 1057
int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
1058 1058
EOF
1059 1059
  sdl_cflags=`$sdlconfig --cflags 2> /dev/null`
1060
  sdl_libs=`$sdlconfig --libs 2> /dev/null`
1060
  if test "$static" = "yes" ; then
1061
    sdl_libs=`$sdlconfig --static-libs 2>/dev/null`
1062
  else
1063
    sdl_libs=`$sdlconfig --libs 2> /dev/null`
1064
  fi
1061 1065
  if compile_prog "$sdl_cflags" "$sdl_libs" ; then
1062 1066
    if test "$_sdlversion" -lt 121 ; then
1063 1067
      sdl_too_old=yes
......
1069 1073

  
1070 1074
    # static link with sdl ? (note: sdl.pc's --static --libs is broken)
1071 1075
    if test "$sdl" = "yes" -a "$static" = "yes" ; then
1072
      sdl_libs=`sdl-config --static-libs 2>/dev/null`
1073 1076
      if test $? = 0 && echo $sdl_libs | grep -- -laa > /dev/null; then
1074 1077
         sdl_libs="$sdl_libs `aalib-config --static-libs >2 /dev/null`"
1075 1078
         sdl_cflags="$sdl_cflags `aalib-config --cflags >2 /dev/null`"

Also available in: Unified diff