This seems much simpler...
[icmp-dn.git] / configure.ac
CommitLineData
388db563
DC
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
1a493a32 5AC_INIT([icmpdn], [0.2], [fredrik@dolda2000.com])
388db563
DC
6AC_CONFIG_AUX_DIR([autotools])
7AC_CONFIG_SRCDIR([src/nss-icmp.c])
8AC_CONFIG_HEADER([src/config.h])
9AM_INIT_AUTOMAKE
10
11# Checks for programs.
12AC_PROG_CXX
13AC_PROG_CC
14AC_PROG_CPP
15AC_PROG_INSTALL
16AC_PROG_LN_S
17AC_PROG_MAKE_SET
18AC_PROG_RANLIB
19
20AC_DISABLE_STATIC
21AC_PROG_LIBTOOL
22
23# Checks for libraries.
24
25# Checks for header files.
26AC_HEADER_STDC
27AC_HEADER_SYS_WAIT
28AC_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])
29
30# Checks for typedefs, structures, and compiler characteristics.
31AC_C_CONST
32AC_TYPE_PID_T
33AC_TYPE_SIZE_T
34AC_HEADER_TIME
35AC_C_VOLATILE
36
37# Checks for library functions.
38AC_FUNC_FORK
39AC_FUNC_MALLOC
40AC_FUNC_MEMCMP
41AC_CHECK_FUNCS([dup2 gethostname gettimeofday memset socket strchr])
42
43AC_CONFIG_FILES([Makefile src/Makefile admin/Makefile admin/icmpdn.spec])
44AC_OUTPUT