1 dnl Process this file with autoconf to produce a configure script.
4 AC_CONFIG_HEADER(config.h)
15 AC_CHECK_HEADERS(stdint.h inttypes.h)
16 AC_CHECK_HEADERS(linux/if.h)
18 AC_CHECK_SIZEOF(unsigned long long)
19 AC_CHECK_SIZEOF(unsigned long)
20 AC_CHECK_SIZEOF(unsigned int)
21 AC_CHECK_SIZEOF(unsigned short)
22 AC_CHECK_SIZEOF(unsigned char)
24 dnl the order in which libraries is checked is important
25 dnl eg. adns on Solaris 2.5.1 depends on -lnsl and -lsocket
26 AC_CHECK_LIB(gmp,mpz_init_set_str)
27 AC_CHECK_LIB(gmp2,mpz_init_set_str)
28 AC_CHECK_LIB(gmp,__gmpz_init_set_str)
29 AC_CHECK_LIB(fl,yywrap)
30 AC_CHECK_LIB(nsl,inet_ntoa)
31 AC_CHECK_LIB(getopt,getopt_long)
32 AC_CHECK_LIB(gnugetopt,getopt_long)
33 AC_CHECK_LIB(socket,socket)
34 AC_CHECK_LIB(resolv,inet_aton)
35 AC_CHECK_LIB(adns,adns_init)
37 dnl check for getopt in standard library
39 AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] )
41 AC_CHECK_FUNCS(snprintf , , [LIBOBJS="$LIBOBJS snprintf.o"] )
44 AC_OUTPUT(Makefile,echo timestamp >stamp-h)