1 dnl Process this file with autoconf to produce a configure script.
3 sinclude(ac_prog_cc_no_writeable_strings.m4)
6 AC_CONFIG_HEADER(config.h)
8 AC_REVISION($Id: configure.in,v 1.4 2002/09/09 22:05:02 steve Exp $)
17 AC_CHECK_HEADERS(stdint.h inttypes.h)
18 AC_CHECK_HEADERS(net/if.h net/route.h)
19 AC_CHECK_HEADERS(linux/if.h)
20 AC_CHECK_HEADERS(stropts.h sys/sockio.h net/if_tun.h)
22 AC_CHECK_SIZEOF(unsigned long long)
23 AC_CHECK_SIZEOF(unsigned long)
24 AC_CHECK_SIZEOF(unsigned int)
25 AC_CHECK_SIZEOF(unsigned short)
26 AC_CHECK_SIZEOF(unsigned char)
27 AC_PROG_CC_NO_WRITEABLE_STRINGS(WRITESTRINGS)
29 dnl the order in which libraries is checked is important
30 dnl eg. adns on Solaris 2.5.1 depends on -lnsl and -lsocket
31 AC_CHECK_LIB(gmp,mpz_init_set_str)
32 AC_CHECK_LIB(gmp2,mpz_init_set_str)
33 AC_CHECK_LIB(gmp,__gmpz_init_set_str)
34 AC_CHECK_LIB(fl,yywrap)
35 AC_CHECK_LIB(nsl,inet_ntoa)
36 AC_CHECK_LIB(getopt,getopt_long)
37 AC_CHECK_LIB(gnugetopt,getopt_long)
38 AC_CHECK_LIB(socket,socket)
39 AC_CHECK_LIB(resolv,inet_aton)
40 AC_CHECK_LIB(adns,adns_init)
42 dnl check for getopt in standard library
44 AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] )
45 AC_CHECK_FUNCS(snprintf , , [LIBOBJS="$LIBOBJS snprintf.o"] )
47 AC_OUTPUT(Makefile,echo timestamp >stamp-h)