1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 17:09:02 +00:00

Pass CC to the liblua build. Also simplify the code handling Lua CFLAGS a bit.

This commit is contained in:
david
2008-05-20 05:52:06 +00:00
parent fac8d52c1c
commit cac1f8cf09
3 changed files with 8 additions and 10 deletions

View File

@@ -103,7 +103,6 @@ AC_SUBST(COMPAT_SRCS)
AC_PATH_TOOL([STRIP], [strip], [/bin/true])
needs_cpp_precomp=no
LUAFLAGS="MYCFLAGS=\"$CFLAGS -DLUA_USE_POSIX -DLUA_USE_DLOPEN\""
case "$host" in
*alpha-dec-osf*)
@@ -177,14 +176,14 @@ case "$host" in
AC_DEFINE(MACOSX)
dnl on Mac OSX the math library seems to contain unwanted getopt cruft
AC_CHECK_LIB(m, main)
LUAFLAGS="MYCFLAGS=\"$CFLAGS -DLUA_USE_MACOSX\""
LUA_CFLAGS="-DLUA_USE_MACOSX"
needs_cpp_precomp=yes
;;
*)
LUAFLAGS="MYCFLAGS=\"$CFLAGS -DLUA_USE_POSIX -DLUA_USE_DLOPEN\""
LUA_CFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN"
esac
AC_SUBST(LUAFLAGS)
AC_SUBST(LUA_CFLAGS)
dnl Checks for header files.
AC_CHECK_HEADERS(pwd.h termios.h sys/sockio.h)