I've just realised that there was a lurking gotcha in the naming of
[sgt/agedu] / configure.ac
index 6c66679..96a813f 100644 (file)
@@ -1,15 +1,17 @@
-# autoconf input for agedu. -*- sh -*-
+# autoconf input for agedu.
 
 AC_INIT([agedu], [6.66], [anakin@pobox.com])
 AC_CONFIG_SRCDIR([agedu.c])
 AC_CONFIG_HEADER([config.h])
 
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE(foreign)
 
 # Checks for programs.
 AC_PROG_CC
 AC_PROG_CC_C99
 AC_PROG_INSTALL
+AC_CHECK_PROG([HALIBUT],[halibut],[yes],[no])
+AM_CONDITIONAL([HAVE_HALIBUT],[test "x$HALIBUT" = "xyes"])
 
 # Checks for libraries.
 
@@ -32,10 +34,13 @@ AC_FUNC_MMAP
 AC_FUNC_SELECT_ARGTYPES
 AC_FUNC_STRFTIME
 AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([ftruncate fdopendir inet_ntoa lstat64 stat64 memchr munmap select socket strcasecmp strchr strcspn strerror strrchr strspn strtoul strtoull])
 
 AC_SEARCH_LIBS(connect, socket nsl)
-# AC_SEARCH_LIBS(gethostbyname, socket nsl resolv)
+AC_SEARCH_LIBS(inet_ntoa, socket nsl)
+AC_SEARCH_LIBS(inet_addr, socket nsl)
+# AC_SEARCH_LIBS(gethostbyname, socket nsl resolv) # (if we used gethostbyname)
+
+AC_CHECK_FUNCS([ftruncate fdopendir lstat64 stat64 memchr munmap select socket strcasecmp strchr strcspn strerror strrchr strspn strtoul strtoull connect inet_ntoa inet_addr])
 
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT