httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject svn commit: r611540 - /httpd/mod_wombat/trunk/build/ac-macros/lua.m4
Date Sun, 13 Jan 2008 06:38:41 GMT
Author: brianm
Date: Sat Jan 12 22:38:40 2008
New Revision: 611540

URL: http://svn.apache.org/viewvc?rev=611540&view=rev
Log:
Patch from Josh Rotenberg to detect and link libm correctly

Modified:
    httpd/mod_wombat/trunk/build/ac-macros/lua.m4

Modified: httpd/mod_wombat/trunk/build/ac-macros/lua.m4
URL: http://svn.apache.org/viewvc/httpd/mod_wombat/trunk/build/ac-macros/lua.m4?rev=611540&r1=611539&r2=611540&view=diff
==============================================================================
--- httpd/mod_wombat/trunk/build/ac-macros/lua.m4 (original)
+++ httpd/mod_wombat/trunk/build/ac-macros/lua.m4 Sat Jan 12 22:38:40 2008
@@ -19,6 +19,7 @@
     test_paths="${lua_path}"
 fi
 
+AC_CHECK_LIB([m], [pow], lib_m=" -lm")
 for x in $test_paths ; do
     AC_MSG_CHECKING([for lua.h in ${x}/include/lua5.1])
     if test -f ${x}/include/lua5.1/lua.h; then
@@ -26,7 +27,7 @@
         save_CFLAGS=$CFLAGS
         save_LDFLAGS=$LDFLAGS
         CFLAGS="$CFLAGS"
-        LDFLAGS="-L$x/lib $LDFLAGS"
+        LDFLAGS="-L$x/lib $LDFLAGS $lib_m"
         AC_CHECK_LIB(lua5.1, luaL_newstate,
             [
             LUA_LIBS="-L$x/lib -llua5.1"
@@ -44,7 +45,7 @@
         save_CFLAGS=$CFLAGS
         save_LDFLAGS=$LDFLAGS
         CFLAGS="$CFLAGS"
-        LDFLAGS="-L$x/lib $LDFLAGS"
+        LDFLAGS="-L$x/lib $LDFLAGS $lib_m"
         AC_CHECK_LIB(lua, luaL_newstate,
             [
             LUA_LIBS="-L$x/lib -llua"



Mime
View raw message