configure.in

来自「netflow,抓包」· IN 代码 · 共 133 行

IN
133
字号
dnl Process this file with autoconf to produce a configure script.AC_INIT(lib/bit1024.c)AC_PREFIX_DEFAULT(/usr/local/netflow)AM_INIT_AUTOMAKE(flow-tools, 0.66)AM_CONFIG_HEADER(lib/ftconfig.h:lib/ftconfig.h.in) CFLAGS="-g -Wall"dnl Checks for programs.AC_PROG_CCAC_PROG_INSTALLAC_PROG_MAKE_SETAC_PROG_YACCYACC="$YACC -d"AC_PROG_RANLIBAM_PROG_LEXAC_SUBST(YLIB)AC_SUBST(MYSQLLIB)AC_SUBST(MYSQLCFLAGS)AC_SUBST(MYSQLINCLUDE)dnl extra argument: --with-mysqlWITH_MYSQL=AC_ARG_WITH(mysql,[  --with-mysql[=PATH]           Compile in MySQL support. (default=no)],[ if test -x "$withval"; then    WHERE_MYSQL=$withval  else    WHERE_MYSQL="/usr"  fi])dnl Checks for libraries.if test "x$WHERE_MYSQL" != "x"; then  LIBS="-L$WHERE_MYSQL/lib/mysql"  AC_CHECK_LIB(mysqlclient, my_init,    [      MYSQLCFLAGS="-L$WHERE_MYSQL/lib/mysql -I$WHERE_MYSQL/include/mysql"      MYSQLLIB="-lmysqlclient"      AC_DEFINE(HAVE_MYSQL)    ]  )fiAC_CHECK_LIB(y, main,YLIB="$YLIB -ly",)AC_CHECK_LIB(z, zlibVersion)case "X$LIBS" in*-lz*)   ;;*)   AC_MSG_ERROR(Link with "-lz" (zlib >= 1.0.2) failed!)   ;;esacAC_CHECK_LIB(wrap,allow_severity)dnl Checks for header files.AC_HEADER_DIRENTAC_HEADER_STDCAC_CHECK_HEADERS(fcntl.h features.h limits.h malloc.h string.h strings.h sys/time.h syslog.h unistd.h)# from cvsecho $ac_n "checking for sin_len in sockaddr_in ... $ac_c"AC_TRY_COMPILE([#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>],[struct sockaddr_in sock; sock.sin_len = sizeof(sock);],echo yes;AC_DEFINE(HAVE_SOCK_SIN_LEN), echo no)AC_DEFINE(_BSD_SOURCE)dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_TYPE_OFF_TAC_TYPE_PID_TAC_TYPE_SIZE_TAC_STRUCT_ST_RDEVAC_HEADER_TIMEAC_STRUCT_TMdnl Checks for library functions.AC_FUNC_MMAPAC_FUNC_ALLOCAAC_TYPE_SIGNALAC_CHECK_LIB(nsl,gethostbyname)AC_CHECK_LIB(socket,socket)AC_CHECK_FUNCS(gethostname gettimeofday select socket strdup strtoul)AC_CHECK_FUNCS(timelocal)AC_CHECK_FUNCS(sigaction)AC_REPLACE_FUNCS(strsep strerror strtoull)test "x$prefix" = xNONE && prefix=$ac_default_prefixeval localstatedir=`echo $localstatedir`dnl strtoul on some systems is really strtoullAC_MSG_CHECKING([strtoul returns 64 bits])AC_TRY_RUN([#include <stdlib.h>int main(void) {  unsigned long long ll;  ll = strtoul("0x1010101010101010", (char**)0L, 0);  return (ll != 0x1010101010101010LL);}],[AC_MSG_RESULT(yes)  AC_DEFINE(HAVE_LL_STRTOUL)],[AC_MSG_RESULT(no)],)AC_OUTPUT(lib/Makefile src/Makefile Makefile docs/Makefile lib/ftpaths.h configs/Makefile docs/flow-capture.1 docs/flow-capture.html docs/flow-nfilter.1 docs/flow-nfilter.html docs/flow-print.1 docs/flow-print.html docs/flow-report.1 docs/flow-report.html docs/flow-receive.1 docs/flow-receive.html docs/flow-tag.1 docs/flow-tag.html docs/flow-mask.1 docs/flow-mask.html docs/flow-fanout.1 docs/flow-fanout.html)# create build header$srcdir/src/ftbuild.sh; cd ..#cd src; ./ftbuild.sh; cd ..echoecho "Please subscribe to the flow-tools mailing list by sending a message to"echo "flow-tools-request@splintered.net"echoecho "Now type make to continue the build process"echo

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?