#27 configure is non-portable

closed-fixed
nobody
None
5
2007-01-20
2007-01-17
Dave Yeo
No

When running configure on lbreakout2 using the sh.exe from pdksh we get this error. Similar error if using ash.

configure[11810]: test: ==: unexpected operator/operand

fix is simple

--- configure.in.org Sat Oct 21 07:51:28 2006
+++ configure.in Sat Oct 21 07:51:36 2006
@@ -65,7 +65,7 @@ AC_ARG_ENABLE( sdl-net,
[ --enable-sdl-net Use SDL_Net for networking.], sdlnet_flag="-DSDL_NET_ENABLED"; sdlnet_lib_flag="-lSDL_net" )
AC_SUBST(sdlnet_flag)
AC_SUBST(sdlnet_lib_flag)
-if test "$sdlnet_flag" == "-DSDL_NET_ENABLED" ; then
+if test "$sdlnet_flag" = "-DSDL_NET_ENABLED" ; then
dnl check if SDL_net is installed
AC_CHECK_LIB(SDL_net, main,
AC_MSG_RESULT("SDL_net found"),

Discussion

  • Michael Speck

    Michael Speck - 2007-01-20

    Logged In: YES
    user_id=59991
    Originator: NO

    applied thanks!

     
  • Michael Speck

    Michael Speck - 2007-01-20
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks