diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:55:34 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:55:34 +0000 |
commit | 53d3d2632a8a2e9baf59e42ff1be4f2498f193cd (patch) | |
tree | 8d5d7d0119f83b637fa83040eb7ae7bb900d1a8d /configure.in | |
parent | a5bae0dfd432bc4efb1eab066af00cdb5f9ef6b7 (diff) |
Made configure smarter about detecting the previous hp-...
Author: doogie
Date: 1999-12-11 06:33:02 GMT
Made configure smarter about detecting the previous hp-ux fixes.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 366d70375..2981a5a4c 100644 --- a/configure.in +++ b/configure.in @@ -14,10 +14,10 @@ dnl configure.in correctly and can be run at any time AC_INIT(configure.in) AC_CONFIG_AUX_DIR(buildlib) -AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in) +AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/netdb.h:buildlib/netdb.h.in) dnl -- SET THIS TO THE RELEASE VERSION -- -AC_DEFINE_UNQUOTED(VERSION,"0.3.15") +AC_DEFINE_UNQUOTED(VERSION,"0.3.15.1") AC_DEFINE_UNQUOTED(PACKAGE,"apt") dnl Check our C compiler @@ -140,6 +140,30 @@ if test x"$c9x_ints" = x"no"; then AC_SUBST(HAVE_C9X) fi +AC_MSG_CHECKING(for socklen_t) +AC_EGREP_HEADER(socklen_t, sys/socket.h, [ + AC_DEFINE(HAVE_SYS_SOCKET_H) + AC_MSG_RESULT(sys/socket.h) +], [ + AC_DEFINE(NEED_SOCKLEN_T_DEFINE) + AC_MSG_RESULT([socklen_t size_t]) +]) + +AC_MSG_CHECKING(for h_errno) +AC_EGREP_HEADER(h_errno, netdb.h, [AC_DEFINE(HAVE_NETDB_H) + AC_MSG_RESULT(found) +], [AC_TRY_COMPILE(netdb.h, h_errno foo, [AC_MSG_RESULT(found) + AC_MSG_RESULT(found) + ], [ah_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED" + AC_TRY_COMPILE([netdb.h], [h_errno foo], [AC_DEFINE(NEED_XOPEN_NETDB_H) + AC_MSG_RESULT([found, needed -D_XOPEN_SOURCE_EXTENDED]) + ], [CFLAGS="$ah_CFLAGS" + AC_MSG_ERROR(["not found."]) + ]) + ]) +]) + dnl Check for debiandoc AC_CHECK_PROG(DEBIANDOC_HTML,debiandoc2html,"yes","") AC_CHECK_PROG(DEBIANDOC_TEXT,debiandoc2text,"yes","") |