X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=configure.in;h=8bc960e3ad69dd07986c7dfc8ef7d2735fc53bac;hb=d3fe100dfc120244d316e083ce87b1eb130fe4fd;hp=9bb9248843989816813bbb5ed477102dee86e514;hpb=5963521296680c2aeb40baeb72459dffc14cd996;p=secnet.git diff --git a/configure.in b/configure.in index 9bb9248..8bc960e 100644 --- a/configure.in +++ b/configure.in @@ -15,12 +15,30 @@ AC_STDC_HEADERS AC_CHECK_HEADERS(stdint.h inttypes.h) AC_CHECK_HEADERS(linux/if.h) AC_C_BIGENDIAN +AC_CHECK_SIZEOF(unsigned long long) +AC_CHECK_SIZEOF(unsigned long) +AC_CHECK_SIZEOF(unsigned int) +AC_CHECK_SIZEOF(unsigned short) +AC_CHECK_SIZEOF(unsigned char) +dnl the order in which libraries is checked is important +dnl eg. adns on Solaris 2.5.1 depends on -lnsl and -lsocket AC_CHECK_LIB(gmp,mpz_init_set_str) AC_CHECK_LIB(gmp2,mpz_init_set_str) +AC_CHECK_LIB(gmp,__gmpz_init_set_str) AC_CHECK_LIB(fl,yywrap) -AC_CHECK_LIB(adns,adns_init) +AC_CHECK_LIB(nsl,inet_ntoa) AC_CHECK_LIB(getopt,getopt_long) AC_CHECK_LIB(gnugetopt,getopt_long) +AC_CHECK_LIB(socket,socket) +AC_CHECK_LIB(resolv,inet_aton) +AC_CHECK_LIB(adns,adns_init) + +dnl check for getopt in standard library +AC_SUBST(LIBOBJS) +AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] ) +dnl check for alloca +AC_CHECK_FUNCS(snprintf , , [LIBOBJS="$LIBOBJS snprintf.o"] ) +AC_FUNC_ALLOCA() -AC_OUTPUT(Makefile) +AC_OUTPUT(Makefile,echo timestamp >stamp-h)