mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 21:19:01 +00:00
55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
AC_PREREQ(2.13)
|
|
AC_INIT([nselib.h])
|
|
AC_CONFIG_AUX_DIR([.])
|
|
|
|
AC_PROG_CC
|
|
|
|
# we want to compile lua modules written in C - which are shared libraries
|
|
# therefore disable building static libs - we shouldn't need them
|
|
AC_DISABLE_STATIC
|
|
AC_LIBTOOL_DLOPEN
|
|
AC_PROG_LIBTOOL
|
|
AC_SUBST(LIBTOOL)
|
|
|
|
AC_SUBST(LIBTOOL_DEPS)
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
# needed for lua-includes
|
|
AC_CHECK_HEADER([lua.h],,[AC_MSG_NOTICE(using lua-includefiles provided with nmap);[LUAINCLUDE=-I../liblua/]],)
|
|
AC_SUBST(LUAINCLUDE)
|
|
|
|
#needed for pcre - libpcre
|
|
|
|
# First we test whether they specified libpcre explicitly
|
|
AC_ARG_WITH(libpcre,
|
|
AC_HELP_STRING([--with-libpcre=DIR], [Use an existing (compiled) pcre lib from DIR/include and DIR/lib.])
|
|
AC_HELP_STRING([--with-libpcre=included], [Always use the version included with Nmap]),
|
|
[ case "$with_libpcre" in
|
|
yes)
|
|
;;
|
|
included)
|
|
PCRE_INCLUDE_DIR="../libpcre"
|
|
PCRE_LD_DIR="../libpcre"
|
|
;;
|
|
*)
|
|
PCRE_INCLUDE_DIR="$with_libpcre/include"
|
|
PCRE_LD_DIR="$with_libpcre/lib"
|
|
;;
|
|
esac],
|
|
[PCRE_INCLUDE_DIR="../libpcre";PCRE_LD_DIR="../libpcre"]
|
|
)
|
|
PCRE_INCLUDE="-I$PCRE_INCLUDE_DIR"
|
|
PCRE_LD="-L$PCRE_LD_DIR"
|
|
PCRE_LIBS="-lpcre"
|
|
|
|
# AC_SUBST(PCREDIR)
|
|
AC_SUBST(PCRE_INCLUDE)
|
|
AC_SUBST(PCRE_LD)
|
|
AC_SUBST(PCRE_LIBS)
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_OUTPUT
|
|
|