Advertisement
SansNumbers

configure lua section???

Nov 2nd, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. char luaL_newstate ();
  2. int
  3. main ()
  4. {
  5. return luaL_newstate ();
  6. ;
  7. return 0;
  8. }
  9. _ACEOF
  10. if ac_fn_c_try_link "$LINENO"; then :
  11. ac_cv_lib_lua5_1_luaL_newstate=yes
  12. else
  13. ac_cv_lib_lua5_1_luaL_newstate=no
  14. fi
  15. rm -f core conftest.err conftest.$ac_objext \
  16. conftest$ac_exeext conftest.$ac_ext
  17. LIBS=$ac_check_lib_save_LIBS
  18. fi
  19. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1_luaL_newstate" >&5
  20. $as_echo "$ac_cv_lib_lua5_1_luaL_newstate" >&6; }
  21. if test "x$ac_cv_lib_lua5_1_luaL_newstate" = xyes; then :
  22. LUA_MISSING=no
  23. fi
  24.  
  25. if test "$LUA_MISSING" = "no"; then
  26. LUA_LIBS=-llua5.1
  27. if test -d /usr/include/lua5.1; then
  28. LUA_CFLAGS="-I/usr/include/lua5.1"
  29. fi
  30. fi
  31. fi
  32.  
  33. if test "$LUA_MISSING" = "yes"; then
  34. echo
  35. echo "*** liblua is required to build StepMania; please make sure that"
  36. echo "*** it is installed to continue the installation process."
  37. exit 1
  38. else
  39.  
  40. $as_echo "#define HAVE_LUA51 1" >>confdefs.h
  41.  
  42. fi
  43. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement