]> arthur.barton.de Git - ngircd-alex.git/blobdiff - configure.in
Updated documentation: note ngIRCd 0.8.0 :-)
[ngircd-alex.git] / configure.in
index cd54a6f62bb6a14a78f08b29a7a1b7e46764542d..64179058def62578ce612f5df110b7ebe4bbae39 100644 (file)
@@ -8,7 +8,7 @@
 # (at your option) any later version.
 # Please read the file COPYING, README and AUTHORS for more information.
 #
-# $Id: configure.in,v 1.101 2004/03/11 22:21:20 alex Exp $
+# $Id: configure.in,v 1.103 2004/05/15 12:24:30 alex Exp $
 #
 
 # -- Initialisation --
@@ -61,6 +61,14 @@ if test "$GCC" = "yes"; then
        CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
 fi
 
+case "$target_os" in
+       hpux*)
+               # This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
+               # (tested with HP/UX 11.11)
+               CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
+               ;;
+esac
+
 # Add additional CFLAGS, eventually specified on the command line:
 test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
 
@@ -138,7 +146,7 @@ AC_ARG_WITH(syslog,
 )
 if test "$x_syslog_on" = "yes"; then
        AC_DEFINE(SYSLOG, 1)
-       AC_CHECK_HEADERS(syslog.h)
+       AC_CHECK_HEADERS(syslog.h,,AC_MSG_ERROR([required C header missing!]))
 fi
 
 x_zlib_on=no
@@ -157,7 +165,7 @@ AC_ARG_WITH(zlib,
 )
 if test "$x_zlib_on" = "yes"; then
        AC_DEFINE(ZLIB, 1)
-       AC_CHECK_HEADERS(zlib.h)
+       AC_CHECK_HEADERS(zlib.h,,AC_MSG_ERROR([required C header missing!]))
 fi
 
 x_tcpwrap_on=no
@@ -195,7 +203,8 @@ AC_ARG_WITH(rendezvous,
 )
 if test "$x_rendezvous_on" = "yes"; then
        AC_DEFINE(RENDEZVOUS, 1)
-       AC_CHECK_HEADERS(DNSServiceDiscovery/DNSServiceDiscovery.h mach/port.h)
+       AC_CHECK_HEADERS([DNSServiceDiscovery/DNSServiceDiscovery.h \
+        mach/port.h],,AC_MSG_ERROR([required C header missing!]))
 fi
 
 x_identauth_on=no
@@ -211,7 +220,7 @@ AC_ARG_WITH(ident,
 )
 if test "$x_identauth_on" = "yes"; then
        AC_DEFINE(IDENTAUTH, 1)
-       AC_CHECK_HEADERS(ident.h)
+       AC_CHECK_HEADERS(ident.h,,AC_MSG_ERROR([required C header missing!]))
 fi
 
 x_ircplus_on=yes
@@ -297,7 +306,8 @@ C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
 M=`eval echo ${mandir}` ; M=`eval echo ${M}`
 D=`eval echo ${datadir}/doc/${PACKAGE}` ; D=`eval echo ${D}`
 
-echo "               Host: ${host}"
+echo "             Target: ${target}"
+test "$target" != "$host" && echo "               Host: ${host}"
 echo "           Compiler: ${CC}"
 test -n "$CFLAGS"      && echo "     Compiler flags: ${CFLAGS}"
 test -n "$CPPFLAGS"    && echo " Preprocessor flags: ${CPPFLAGS}"