1 AC_INIT(portablexdr, 4.9.2)
4 AC_CONFIG_HEADERS([config.h])
5 AC_CONFIG_MACRO_DIR([m4])
25 AC_CHECK_PROGS(AR, ar)
27 dnl Look for an external 'cpp' program which can run on a file with any
28 dnl extension. The normal CPP can only run on files with a '.c'
29 dnl extension, therefore we prefer to use /usr/bin/cpp if it exists.
30 AC_PATH_PROG([EXTCPP], [cpp], [no])
31 if test "x$EXTCPP" = "xno"; then
32 AC_MSG_FAILURE([Cannot find a working 'cpp' (C preprocessor) program])
34 AC_DEFINE_UNQUOTED([EXTCPP], ["$EXTCPP"],
35 [The C preprocessor command (may include command line options).])
40 MINGW_EXTRA_LDFLAGS="-no-undefined"
43 AC_SUBST(MINGW_EXTRA_LDFLAGS)
45 AC_CHECK_HEADERS([arpa/inet.h sys/param.h])
46 AC_CHECK_FUNCS([ntohl htonl ntohs htons])
48 AC_CONFIG_FILES([Makefile lib/Makefile])