X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=36d1a581745bcfd4dccda3c6ce72c88f0becf7e7;hb=388db5631dc33ab5b1eaad1bd5d98c34f87971f0;hp=0000000000000000000000000000000000000000;hpb=ce25dc6fa4ca91274bef2e3cbd327d4aefbb0e34;p=icmp-dn.git diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..36d1a58 --- /dev/null +++ b/configure.ac @@ -0,0 +1,44 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.59) +AC_INIT([icmpdn], [0.0.1], [fredrik@dolda2000.com]) +AC_CONFIG_AUX_DIR([autotools]) +AC_CONFIG_SRCDIR([src/nss-icmp.c]) +AC_CONFIG_HEADER([src/config.h]) +AM_INIT_AUTOMAKE + +# Checks for programs. +AC_PROG_CXX +AC_PROG_CC +AC_PROG_CPP +AC_PROG_INSTALL +AC_PROG_LN_S +AC_PROG_MAKE_SET +AC_PROG_RANLIB + +AC_DISABLE_STATIC +AC_PROG_LIBTOOL + +# Checks for libraries. + +# Checks for header files. +AC_HEADER_STDC +AC_HEADER_SYS_WAIT +AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_TYPE_PID_T +AC_TYPE_SIZE_T +AC_HEADER_TIME +AC_C_VOLATILE + +# Checks for library functions. +AC_FUNC_FORK +AC_FUNC_MALLOC +AC_FUNC_MEMCMP +AC_CHECK_FUNCS([dup2 gethostname gettimeofday memset socket strchr]) + +AC_CONFIG_FILES([Makefile src/Makefile admin/Makefile admin/icmpdn.spec]) +AC_OUTPUT