Fixes test building
authorGabriel Jacobo <gabomdq@gmail.com>
Wed, 28 Aug 2013 10:41:25 -0300
changeset 7703982abfefd19d
parent 7702 83878644c8e6
child 7704 3182291fc65f
Fixes test building
test/configure
test/configure.in
     1.1 --- a/test/configure	Mon Aug 26 14:23:18 2013 -0300
     1.2 +++ b/test/configure	Wed Aug 28 10:41:25 2013 -0300
     1.3 @@ -3451,7 +3451,7 @@
     1.4    rm -f conf.sdltest
     1.5  
     1.6  CFLAGS="$CFLAGS $SDL_CFLAGS"
     1.7 -LIBS="$LIBS -lSDL2_test $SDL_LIBS"
     1.8 +LIBS="$LIBS $SDL_LIBS -lSDL2_test"
     1.9  
    1.10  ac_ext=c
    1.11  ac_cpp='$CPP $CPPFLAGS'
    1.12 @@ -3785,16 +3785,16 @@
    1.13  fi
    1.14  
    1.15  if test x$have_x = xyes; then
    1.16 -    if test x$ac_x_includes = xno || test x$ac_x_includes = x; then
    1.17 +    if test x$ac_x_includes = xno || test "x$ac_x_includes" = xNone; then
    1.18          :
    1.19      else
    1.20          CFLAGS="$CFLAGS -I$ac_x_includes"
    1.21      fi
    1.22 -    if test x$ac_x_libraries = xno || test x$ac_x_libraries = x; then
    1.23 +    if test x$ac_x_libraries = xno || test "x$ac_x_libraries" = xNone; then
    1.24          :
    1.25      else
    1.26          XPATH="-L$ac_x_libraries"
    1.27 -        XLIB="-L$ac_x_libraries -lX11"
    1.28 +        XLIB="-lX11"
    1.29      fi
    1.30  fi
    1.31  
     2.1 --- a/test/configure.in	Mon Aug 26 14:23:18 2013 -0300
     2.2 +++ b/test/configure.in	Wed Aug 28 10:41:25 2013 -0300
     2.3 @@ -86,21 +86,21 @@
     2.4  	    AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
     2.5  )
     2.6  CFLAGS="$CFLAGS $SDL_CFLAGS"
     2.7 -LIBS="$LIBS -lSDL2_test $SDL_LIBS"
     2.8 +LIBS="$LIBS  $SDL_LIBS -lSDL2_test"
     2.9  
    2.10  dnl Check for X11 path, needed for OpenGL on some systems
    2.11  AC_PATH_X
    2.12  if test x$have_x = xyes; then
    2.13 -    if test x$ac_x_includes = xno || test x$ac_x_includes = x; then
    2.14 +    if test x$ac_x_includes = xno || test "x$ac_x_includes" = xNone; then
    2.15          :
    2.16      else
    2.17          CFLAGS="$CFLAGS -I$ac_x_includes"
    2.18      fi
    2.19 -    if test x$ac_x_libraries = xno || test x$ac_x_libraries = x; then
    2.20 +    if test x$ac_x_libraries = xno || test "x$ac_x_libraries" = xNone; then
    2.21          :
    2.22      else
    2.23          XPATH="-L$ac_x_libraries"
    2.24 -        XLIB="-L$ac_x_libraries -lX11"
    2.25 +        XLIB="-lX11"
    2.26      fi
    2.27  fi
    2.28