📄 configure.in
字号:
dnldnl Process this file with autoconf to produce a configure script.dnldnl Make sure that we're in the right directory by looking for ipgrab.cAC_INIT(../main/ipgrab.c)dnl check for install programAC_PROG_INSTALLdnl get host name and systemAC_CANONICAL_SYSTEMdnl Checks for C compiler and makeAC_PROG_CCdnl check for all libpcap stuffAC_CHECK_HEADER(net/bpf.h,, AC_MSG_ERROR(Header file net/bpf.h not found.))AC_CHECK_HEADER(pcap.h,, AC_MSG_ERROR(Header file pcap.h not found.))AC_CHECK_LIB(pcap, main,,AC_MSG_ERROR(libpcap not found))dnl check for socket librariesAC_CHECK_LIB(nsl, main)AC_CHECK_LIB(socket, main)dnl Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS(sys/types.h ctype.h stdlib.h unistd.h getopt.h)dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_C_BIGENDIAN dnl You'll get a warning from autoconfAC_TYPE_SIZE_TAC_CHECK_TYPE(u_int8_t, unsigned char)AC_CHECK_TYPE(int16_t, short)AC_CHECK_TYPE(u_int16_t, unsigned short)AC_CHECK_TYPE(int32_t, int)AC_CHECK_TYPE(u_int32_t, unsigned int)dnl Checks for library functions.AC_CHECK_FUNCS(strdup strerror setlinebuf)AC_CHECK_FUNC(getopt_long, [GETOPT=""], [GETOPT="../obj/getopt.o ../obj/getopt_internal.o"])AC_SUBST(GETOPT)dnl Define DEBUG for debugging. Comment this out to turn it offdnl AC_DEFINE(DEBUG)dnl set up config.hAC_CONFIG_HEADER(config.h)CFLAGS="$CFLAGS -Wall -Wstrict-prototypes"dnl Create Makefile from Makefile.inAC_OUTPUT(Makefile)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -