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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user