summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2003-08-09 20:15:23 +0000
committerNed Ludd <solar@gentoo.org>2003-08-09 20:15:23 +0000
commita19f5cd486216a640528ac8a2e9b1674ed896795 (patch)
treeee62ae5439ff89b8e816cc24bb8f59956bfd3423
parentAdded libprelude support to snort. Closes bug 19672 (diff)
downloadhistorical-a19f5cd486216a640528ac8a2e9b1674ed896795.tar.gz
historical-a19f5cd486216a640528ac8a2e9b1674ed896795.tar.bz2
historical-a19f5cd486216a640528ac8a2e9b1674ed896795.zip
Added libprelude support to snort. Closes bug 19672
-rw-r--r--net-analyzer/snort/Manifest6
-rw-r--r--net-analyzer/snort/files/digest-snort-2.0.11
-rw-r--r--net-analyzer/snort/files/snort-2.0.1+prelude.patch18085
-rw-r--r--net-analyzer/snort/metadata.xml10
-rw-r--r--net-analyzer/snort/snort-2.0.1.ebuild117
5 files changed, 18216 insertions, 3 deletions
diff --git a/net-analyzer/snort/Manifest b/net-analyzer/snort/Manifest
index 0490f1b9f3d5..ebc9a209c0af 100644
--- a/net-analyzer/snort/Manifest
+++ b/net-analyzer/snort/Manifest
@@ -1,4 +1,4 @@
-MD5 0b813ef2a337f0fb4a730c3dd5e211d5 ChangeLog 3626
+MD5 6a499e55bf2b73563c8dd67c47dc5b4b ChangeLog 3627
MD5 710488a1702ad6555b6266400feca61c snort-1.8.6.ebuild 2539
MD5 4b805689503782e047d03cd3cceaee93 snort-1.8.7.ebuild 2565
MD5 b121e9b8a4544c1b8b693744a25d9bac snort-1.9.0.ebuild 2716
@@ -6,7 +6,7 @@ MD5 b3815c56fdef8172caa0830e23810739 snort-1.9.1-r1.ebuild 2833
MD5 6b7060c54c68911a8d7d3ecfb3c5283e snort-1.9.1-r2.ebuild 2824
MD5 b7a9320806fdb6c56b298980ec223d1d snort-1.9.1.ebuild 2727
MD5 006245d824acd3b53cdc0976edfb94dd snort-2.0.0.ebuild 3007
-MD5 2d19a24fc3110bb7e42a68455abd905d snort-2.0.1.ebuild 3194
+MD5 a2cbfa62573a6c779a019780bda5ead5 snort-2.0.1.ebuild 3193
MD5 15408a678cbad1f26faa4878550ddbd9 metadata.xml 956
MD5 f709dea91ede4986f0bcd0ec4b8f35b5 files/digest-snort-1.8.6 64
MD5 02a31a68fbda2df18d79240c1d37775e files/digest-snort-1.8.7 64
@@ -21,5 +21,5 @@ MD5 121c260ad08b288811994e7b3d78d098 files/snort-1.9.1-alpha.patch 1614
MD5 c9c8c46d1a7e6847025090e76d9a9f64 files/snort-1.9.1-configure.patch 375
MD5 446f8d2b3435b8a6be738da978670605 files/snort.confd 423
MD5 9a53009d3e2fabbb1cc15710a91b684d files/snort.rc6 781
-MD5 f8722c2570aff3202b10879ebabfca71 files/snort-2.0.1+prelude.patch 555036
+MD5 e43b4f4511383705f84d7f05ac6ce330 files/snort-2.0.1+prelude.patch 555090
MD5 f11b5a0ebb3cdb6ef5d4de1d2c0c398f files/digest-snort-2.0.1 64
diff --git a/net-analyzer/snort/files/digest-snort-2.0.1 b/net-analyzer/snort/files/digest-snort-2.0.1
new file mode 100644
index 000000000000..c2fdd131cad5
--- /dev/null
+++ b/net-analyzer/snort/files/digest-snort-2.0.1
@@ -0,0 +1 @@
+MD5 ab5bdd0cab96fe521d11d2c6d804518f snort-2.0.1.tar.gz 1817646
diff --git a/net-analyzer/snort/files/snort-2.0.1+prelude.patch b/net-analyzer/snort/files/snort-2.0.1+prelude.patch
new file mode 100644
index 000000000000..cb5f7de9a394
--- /dev/null
+++ b/net-analyzer/snort/files/snort-2.0.1+prelude.patch
@@ -0,0 +1,18085 @@
+diff -r -N -u snort-2.0.1/Makefile.in snort-2.0.1+prelude/Makefile.in
+--- snort-2.0.1/Makefile.in 2003-07-01 22:28:16.000000000 +0800
++++ snort-2.0.1+prelude/Makefile.in 2003-07-26 18:14:26.000000000 +0800
+@@ -75,6 +75,7 @@
+ PACKAGE = @PACKAGE@
+ RANLIB = @RANLIB@
+ STRIP = @STRIP@
++UP = @UP@
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
+@@ -105,8 +106,8 @@
+ install-exec-recursive installdirs-recursive install-recursive \
+ uninstall-recursive check-recursive installcheck-recursive
+ DIST_COMMON = COPYING ChangeLog Makefile.am Makefile.in acconfig.h \
+- aclocal.m4 config.guess config.h.in config.sub configure \
+- configure.in install-sh missing mkinstalldirs
++ acinclude.m4 aclocal.m4 config.guess config.h.in config.sub \
++ configure configure.in install-sh missing mkinstalldirs
+ DIST_SUBDIRS = $(SUBDIRS)
+ all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+@@ -126,7 +127,7 @@
+ $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
+ cd $(srcdir) && $(AUTOCONF)
+
+-$(ACLOCAL_M4): configure.in
++$(ACLOCAL_M4): configure.in acinclude.m4
+ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+
+ config.h: stamp-h1
+diff -r -N -u snort-2.0.1/README.Prelude snort-2.0.1+prelude/README.Prelude
+--- snort-2.0.1/README.Prelude 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/README.Prelude 2003-07-26 18:12:40.000000000 +0800
+@@ -0,0 +1,225 @@
++Prelude IDS 0.8.x support for Snort
++===================================
++
++Snort Prelude Output Plugin (spo_alert_prelude) allows snort to
++communicate with Manager of the Prelude Hybrid IDS Suite version
++0.8.x. Version 0.2 is an early release of the code and should be
++considered as alpha quality, i.e. destined mainly for testing.
++
++Prelude is available from http://www.prelude-ids.org/ under the terms
++of GNU Public License version 2.
++
++
++Installation
++------------
++
++You must have libprelude (version 0.8.x) installed on your system before
++building Snort.
++
++If you are installing via patch, you must run autogen.sh script
++to generate the new configure file. Note that you will need autoconf 2.53
++or higher.
++
++A new option --with-prelude has been added to configure. This option is
++on by default, so configure ran with no parameters will try to detect
++libprelude. If you wish to disable Prelude support use run configure
++with --with-prelude=no option. When Prelude support is enabled and
++libprelude is found, Snort will be compiled with necessary build time
++flags, most importantly -DWITH_PRELUDE will be set, what directly enables
++Prelude-related code.
++
++After configure is done, proceed with snort build normaly, i.e. doing
++make && make install
++
++If Snort is build with -DPRELUDE_DEBUG option set, you will be able
++to see plugin's debug messages printed to stdout. Compiling Snort with
++-DDEBUG implies -DPRELUDE_DEBUG.
++
++Configuration
++-------------
++
++Edit your snort.conf file and make sure that plugin is enabled, i.e. there
++is the line like:
++
++output alert_prelude: async, classification_file=prelude-classification.config
++
++The plugin currently takes two options:
++
++async This options enables asynchronous reporting mode in which
++ the alert transmission to Prelude Manager is performed by
++ a separate thread (different from the main Snort thread).
++
++ If you are experiencing problems with asynchronous
++ reporting (i.e. lockups on exit) remove this option.
++
++classification_file=/path/to/file This parameter specifies the location
++ of the classification.config file from Prelude NIDS
++ 0.8.x distribution. This file differs significantly
++ from classification.config used Snort.
++
++ The file is included in this distribution as
++ prelude-classification.config.
++
++ The Prelude file is used attempt to provide some
++ consistency in IDMEF classification of the alerts sent
++ by both Snort and Prelude NIDS.
++
++
++Running
++-------
++
++As with any other Prelude sensor you must first perform sensor
++registration with the Manager you wish to use. This is accomplished in
++the following steps:
++
++* Run sensor-adduser on machine running Snort, passing to it the address
++of the host Manager is running on. If you wish to run Snort and Prelude
++Manager on the same host, enter 127.0.0.1 as in the example below:
++
++# sensor-adduser --sensorname snort --uid 0 --manager-addr 127.0.0.1
++
++
++Now please start "manager-adduser" on the Manager host where you wish
++to add the new user.
++
++Please remember that you should call "sensor-adduser" for each configured
++Manager entry.
++
++Press enter when done.
++
++* As requested, run manager-adduser on the Manager host:
++
++# manager-adduser
++
++
++Generated one-shot password is "T&8Ae_p[".
++
++This password will be requested by "sensor-adduser" in order to connect.
++Please remove the first and last quote from this password before using it.
++
++waiting for install request from Prelude sensors...
++
++* Pass the password given by manager-adduser (in the case for this
++example, T&8Ae_p[) to sensor-adduser program.
++
++Please use the one-shot password provided by the "manager-adduser"
++program.
++
++Enter registration one shot password : Please confirm one shot password :
++connecting to Manager host (127.0.0.1:5553)... Succeeded.
++
++Username to use to authenticate :
++
++* You are now prompted for the username used by the Snort sensor for
++authenticating to Prelude Manager. You can pick any name of your choice,
++in this example "snort1".
++
++Username to use to authenticate : snort1
++Please enter a password for this user :
++
++* Pick up the password for the sensor. This is _NOT_ the same password,
++as you've used above. You will not have to remeber this password, it
++will be snored in sensor's confiuration file.
++
++Please enter a password for this user :
++Please re-enter the password (comfirm) :
++Register user "snort1" ? [y/n] : y
++Plaintext account creation succeed with Prelude Manager.
++Using already allocated ident for snort1@your.machine.org: 1063061594273486129.
++
++* The sensor has been registered. Now make sure that prelude-manager
++is running on the Manager host and simply start snort. You should see
++messages like:
++
++# snort -i eth0
++
++[...]
++
++- Connecting to Unix prelude Manager server.
++- Plaintext authentication succeed with Prelude Manager.
++
++[...]
++
++* Success! This means that Snort has established communication with
++Prelude Manager. From now on alerts generated by Snort will be logged
++along with alerts generated by other Prelude sensors.
++
++
++Known problems
++--------------
++
++* If you see the following message at startup:
++
++./snort: error while loading shared libraries: libprelude.so.0: cannot
++open shared object file: No such file or directory
++
++one of the solutions is to add path to libprelude.so.0 to LD_LIBRARY_PATH
++environment variable, i.e.:
++
++# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
++
++and re-start Snort. See ldconfig(8) for more details.
++
++To do
++-----
++
++- add support for more alert fields and types of alerts
++
++- possibly improve performance
++
++
++Modified files
++--------------
++
++The following files are modified or added compared to the official Snort
++2.0.0 distribution:
++
++acinclude.m4
++autogen.sh
++configure.in
++doc/README.Prelude
++etc/Makefile.am
++etc/prelude-classification.config
++etc/snort.conf
++src/output-plugins/Makefile.am
++src/output-plugins/spo_alert_prelude.c
++src/output-plugins/spo_alert_prelude.h
++src/plugbase.c
++
++Assuming that unmodified Snort distribution resides in ../snort-2.0.0
++the patch can be generated using the following command executed in
++the main directory of the modified Snort tree:
++
++for i in \
++ acinclude.m4 \
++ autogen.sh \
++ configure.in \
++ doc/README.Prelude \
++ etc/Makefile.am \
++ etc/prelude-classification.config \
++ etc/snort.conf \
++ src/output-plugins/Makefile.am \
++ src/output-plugins/spo_alert_prelude.c \
++ src/output-plugins/spo_alert_prelude.h \
++ src/plugbase.c \
++; do diff --new-file --unified ../snort-2.0.0/$i $i ; done
++
++Revision history
++----------------
++
++2003-04-20 Version 0.2.2, for Snort 2.0
++ Fixed memory leaks.
++ Added support for packet dumps, IP and TCP options.
++ Modified #ifdefs, so Snort compiles cleanly
++ with Prelude support disabled.
++
++2003-04-16 Version 0.2.1, for Snort 2.0
++ Fixed a bug in assigning values of 'completion'
++ parameter.
++
++2003-03-22 Second release, version 0.2, for Snort 1.9.1
++
++2002-08-09 First release, version 0.1, for Snort 1.8.6 and 1.8.7
++
++
++- Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl>
+diff -r -N -u snort-2.0.1/acinclude.m4 snort-2.0.1+prelude/acinclude.m4
+--- snort-2.0.1/acinclude.m4 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/acinclude.m4 2003-07-26 18:12:40.000000000 +0800
+@@ -0,0 +1,135 @@
++dnl @synopsis AC_PATH_GENERIC(LIBRARY [, MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
++dnl
++dnl Runs a LIBRARY-config script and defines LIBRARY_CFLAGS and LIBRARY_LIBS
++dnl
++dnl The script must support `--cflags' and `--libs' args.
++dnl If MINIMUM-VERSION is specified, the script must also support the
++dnl `--version' arg.
++dnl If the `--with-library-[exec-]prefix' arguments to ./configure are given,
++dnl it must also support `--prefix' and `--exec-prefix'.
++dnl (In other words, it must be like gtk-config.)
++dnl
++dnl For example:
++dnl
++dnl AC_PATH_GENERIC(Foo, 1.0.0)
++dnl
++dnl would run `foo-config --version' and check that it is at least 1.0.0
++dnl
++dnl If so, the following would then be defined:
++dnl
++dnl FOO_CFLAGS to `foo-config --cflags`
++dnl FOO_LIBS to `foo-config --libs`
++dnl
++dnl (shamelessly stolen from gtk.m4 and then hacked around a fair amount)
++dnl
++dnl @author Angus Lees <gusl@cse.unsw.edu.au>
++dnl @version $Id: snort-2.0.1+prelude.patch,v 1.1 2003/08/09 20:15:16 solar Exp $
++
++AC_DEFUN(AC_PATH_GENERIC,
++[dnl
++dnl we're going to need uppercase, lowercase and user-friendly versions of the
++dnl string `LIBRARY'
++pushdef([UP], translit([$1], [a-z], [A-Z]))dnl
++pushdef([DOWN], translit([$1], [A-Z], [a-z]))dnl
++
++dnl
++dnl Get the cflags and libraries from the LIBRARY-config script
++dnl
++AC_ARG_WITH(DOWN-prefix,[ --with-]DOWN[-prefix=PFX Prefix where $1 is installed (optional)],
++ DOWN[]_config_prefix="$withval", DOWN[]_config_prefix="")
++AC_ARG_WITH(DOWN-exec-prefix,[ --with-]DOWN[-exec-prefix=PFX Exec prefix where $1 is installed (optional)],
++ DOWN[]_config_exec_prefix="$withval", DOWN[]_config_exec_prefix="")
++
++ if test x$DOWN[]_config_exec_prefix != x ; then
++ DOWN[]_config_args="$DOWN[]_config_args --exec-prefix=$DOWN[]_config_exec_prefix"
++ if test x${UP[]_CONFIG+set} != xset ; then
++ UP[]_CONFIG=$DOWN[]_config_exec_prefix/bin/DOWN-config
++ fi
++ fi
++ if test x$DOWN[]_config_prefix != x ; then
++ DOWN[]_config_args="$DOWN[]_config_args --prefix=$DOWN[]_config_prefix"
++ if test x${UP[]_CONFIG+set} != xset ; then
++ UP[]_CONFIG=$DOWN[]_config_prefix/bin/DOWN-config
++ fi
++ fi
++
++ AC_PATH_PROG(UP[]_CONFIG, DOWN-config, no)
++ ifelse([$2], ,
++ AC_MSG_CHECKING(for $1),
++ AC_MSG_CHECKING(for $1 - version >= $2)
++ )
++ no_[]DOWN=""
++ if test "$UP[]_CONFIG" = "no" ; then
++ no_[]DOWN=yes
++ else
++ UP[]_CFLAGS="`$UP[]_CONFIG $DOWN[]_config_args --cflags`"
++ UP[]_LIBS="`$UP[]_CONFIG $DOWN[]_config_args --libs`"
++ ifelse([$2], , ,[
++ DOWN[]_config_major_version=`$UP[]_CONFIG $DOWN[]_config_args \
++ --version | sed 's/[[^0-9]]*\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
++ DOWN[]_config_minor_version=`$UP[]_CONFIG $DOWN[]_config_args \
++ --version | sed 's/[[^0-9]]*\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
++ DOWN[]_config_micro_version=`$UP[]_CONFIG $DOWN[]_config_args \
++ --version | sed 's/[[^0-9]]*\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
++ DOWN[]_wanted_major_version="regexp($2, [\<\([0-9]*\)], [\1])"
++ DOWN[]_wanted_minor_version="regexp($2, [\<\([0-9]*\)\.\([0-9]*\)], [\2])"
++ DOWN[]_wanted_micro_version="regexp($2, [\<\([0-9]*\).\([0-9]*\).\([0-9]*\)], [\3])"
++
++ # Compare wanted version to what config script returned.
++ # If I knew what library was being run, i'd probably also compile
++ # a test program at this point (which also extracted and tested
++ # the version in some library-specific way)
++ if test "$DOWN[]_config_major_version" -lt \
++ "$DOWN[]_wanted_major_version" \
++ -o \( "$DOWN[]_config_major_version" -eq \
++ "$DOWN[]_wanted_major_version" \
++ -a "$DOWN[]_config_minor_version" -lt \
++ "$DOWN[]_wanted_minor_version" \) \
++ -o \( "$DOWN[]_config_major_version" -eq \
++ "$DOWN[]_wanted_major_version" \
++ -a "$DOWN[]_config_minor_version" -eq \
++ "$DOWN[]_wanted_minor_version" \
++ -a "$DOWN[]_config_micro_version" -lt \
++ "$DOWN[]_wanted_micro_version" \) ; then
++ # older version found
++ no_[]DOWN=yes
++ echo -n "*** An old version of $1 "
++ echo -n "($DOWN[]_config_major_version"
++ echo -n ".$DOWN[]_config_minor_version"
++ echo ".$DOWN[]_config_micro_version) was found."
++ echo -n "*** You need a version of $1 newer than "
++ echo -n "$DOWN[]_wanted_major_version"
++ echo -n ".$DOWN[]_wanted_minor_version"
++ echo ".$DOWN[]_wanted_micro_version."
++ echo "***"
++ echo "*** If you have already installed a sufficiently new version, this error"
++ echo "*** probably means that the wrong copy of the DOWN-config shell script is"
++ echo "*** being found. The easiest way to fix this is to remove the old version"
++ echo "*** of $1, but you can also set the UP[]_CONFIG environment to point to the"
++ echo "*** correct copy of DOWN-config. (In this case, you will have to"
++ echo "*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf"
++ echo "*** so that the correct libraries are found at run-time)"
++ fi
++ ])
++ fi
++ if test "x$no_[]DOWN" = x ; then
++ AC_MSG_RESULT(yes)
++ ifelse([$3], , :, [$3])
++ else
++ AC_MSG_RESULT(no)
++ if test "$UP[]_CONFIG" = "no" ; then
++ echo "*** The DOWN-config script installed by $1 could not be found"
++ echo "*** If $1 was installed in PREFIX, make sure PREFIX/bin is in"
++ echo "*** your path, or set the UP[]_CONFIG environment variable to the"
++ echo "*** full path to DOWN-config."
++ fi
++ UP[]_CFLAGS=""
++ UP[]_LIBS=""
++ ifelse([$4], , :, [$4])
++ fi
++ AC_SUBST(UP[]_CFLAGS)
++ AC_SUBST(UP[]_LIBS)
++
++ popdef([UP])
++ popdef([DOWN])
++])
+diff -r -N -u snort-2.0.1/aclocal.m4 snort-2.0.1+prelude/aclocal.m4
+--- snort-2.0.1/aclocal.m4 2003-07-01 22:28:14.000000000 +0800
++++ snort-2.0.1+prelude/aclocal.m4 2003-07-26 18:14:22.000000000 +0800
+@@ -11,6 +11,142 @@
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ # PARTICULAR PURPOSE.
+
++dnl @synopsis AC_PATH_GENERIC(LIBRARY [, MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
++dnl
++dnl Runs a LIBRARY-config script and defines LIBRARY_CFLAGS and LIBRARY_LIBS
++dnl
++dnl The script must support `--cflags' and `--libs' args.
++dnl If MINIMUM-VERSION is specified, the script must also support the
++dnl `--version' arg.
++dnl If the `--with-library-[exec-]prefix' arguments to ./configure are given,
++dnl it must also support `--prefix' and `--exec-prefix'.
++dnl (In other words, it must be like gtk-config.)
++dnl
++dnl For example:
++dnl
++dnl AC_PATH_GENERIC(Foo, 1.0.0)
++dnl
++dnl would run `foo-config --version' and check that it is at least 1.0.0
++dnl
++dnl If so, the following would then be defined:
++dnl
++dnl FOO_CFLAGS to `foo-config --cflags`
++dnl FOO_LIBS to `foo-config --libs`
++dnl
++dnl (shamelessly stolen from gtk.m4 and then hacked around a fair amount)
++dnl
++dnl @author Angus Lees <gusl@cse.unsw.edu.au>
++dnl @version $Id: snort-2.0.1+prelude.patch,v 1.1 2003/08/09 20:15:16 solar Exp $
++
++AC_DEFUN(AC_PATH_GENERIC,
++[dnl
++dnl we're going to need uppercase, lowercase and user-friendly versions of the
++dnl string `LIBRARY'
++pushdef([UP], translit([$1], [a-z], [A-Z]))dnl
++pushdef([DOWN], translit([$1], [A-Z], [a-z]))dnl
++
++dnl
++dnl Get the cflags and libraries from the LIBRARY-config script
++dnl
++AC_ARG_WITH(DOWN-prefix,[ --with-]DOWN[-prefix=PFX Prefix where $1 is installed (optional)],
++ DOWN[]_config_prefix="$withval", DOWN[]_config_prefix="")
++AC_ARG_WITH(DOWN-exec-prefix,[ --with-]DOWN[-exec-prefix=PFX Exec prefix where $1 is installed (optional)],
++ DOWN[]_config_exec_prefix="$withval", DOWN[]_config_exec_prefix="")
++
++ if test x$DOWN[]_config_exec_prefix != x ; then
++ DOWN[]_config_args="$DOWN[]_config_args --exec-prefix=$DOWN[]_config_exec_prefix"
++ if test x${UP[]_CONFIG+set} != xset ; then
++ UP[]_CONFIG=$DOWN[]_config_exec_prefix/bin/DOWN-config
++ fi
++ fi
++ if test x$DOWN[]_config_prefix != x ; then
++ DOWN[]_config_args="$DOWN[]_config_args --prefix=$DOWN[]_config_prefix"
++ if test x${UP[]_CONFIG+set} != xset ; then
++ UP[]_CONFIG=$DOWN[]_config_prefix/bin/DOWN-config
++ fi
++ fi
++
++ AC_PATH_PROG(UP[]_CONFIG, DOWN-config, no)
++ ifelse([$2], ,
++ AC_MSG_CHECKING(for $1),
++ AC_MSG_CHECKING(for $1 - version >= $2)
++ )
++ no_[]DOWN=""
++ if test "$UP[]_CONFIG" = "no" ; then
++ no_[]DOWN=yes
++ else
++ UP[]_CFLAGS="`$UP[]_CONFIG $DOWN[]_config_args --cflags`"
++ UP[]_LIBS="`$UP[]_CONFIG $DOWN[]_config_args --libs`"
++ ifelse([$2], , ,[
++ DOWN[]_config_major_version=`$UP[]_CONFIG $DOWN[]_config_args \
++ --version | sed 's/[[^0-9]]*\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
++ DOWN[]_config_minor_version=`$UP[]_CONFIG $DOWN[]_config_args \
++ --version | sed 's/[[^0-9]]*\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
++ DOWN[]_config_micro_version=`$UP[]_CONFIG $DOWN[]_config_args \
++ --version | sed 's/[[^0-9]]*\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
++ DOWN[]_wanted_major_version="regexp($2, [\<\([0-9]*\)], [\1])"
++ DOWN[]_wanted_minor_version="regexp($2, [\<\([0-9]*\)\.\([0-9]*\)], [\2])"
++ DOWN[]_wanted_micro_version="regexp($2, [\<\([0-9]*\).\([0-9]*\).\([0-9]*\)], [\3])"
++
++ # Compare wanted version to what config script returned.
++ # If I knew what library was being run, i'd probably also compile
++ # a test program at this point (which also extracted and tested
++ # the version in some library-specific way)
++ if test "$DOWN[]_config_major_version" -lt \
++ "$DOWN[]_wanted_major_version" \
++ -o \( "$DOWN[]_config_major_version" -eq \
++ "$DOWN[]_wanted_major_version" \
++ -a "$DOWN[]_config_minor_version" -lt \
++ "$DOWN[]_wanted_minor_version" \) \
++ -o \( "$DOWN[]_config_major_version" -eq \
++ "$DOWN[]_wanted_major_version" \
++ -a "$DOWN[]_config_minor_version" -eq \
++ "$DOWN[]_wanted_minor_version" \
++ -a "$DOWN[]_config_micro_version" -lt \
++ "$DOWN[]_wanted_micro_version" \) ; then
++ # older version found
++ no_[]DOWN=yes
++ echo -n "*** An old version of $1 "
++ echo -n "($DOWN[]_config_major_version"
++ echo -n ".$DOWN[]_config_minor_version"
++ echo ".$DOWN[]_config_micro_version) was found."
++ echo -n "*** You need a version of $1 newer than "
++ echo -n "$DOWN[]_wanted_major_version"
++ echo -n ".$DOWN[]_wanted_minor_version"
++ echo ".$DOWN[]_wanted_micro_version."
++ echo "***"
++ echo "*** If you have already installed a sufficiently new version, this error"
++ echo "*** probably means that the wrong copy of the DOWN-config shell script is"
++ echo "*** being found. The easiest way to fix this is to remove the old version"
++ echo "*** of $1, but you can also set the UP[]_CONFIG environment to point to the"
++ echo "*** correct copy of DOWN-config. (In this case, you will have to"
++ echo "*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf"
++ echo "*** so that the correct libraries are found at run-time)"
++ fi
++ ])
++ fi
++ if test "x$no_[]DOWN" = x ; then
++ AC_MSG_RESULT(yes)
++ ifelse([$3], , :, [$3])
++ else
++ AC_MSG_RESULT(no)
++ if test "$UP[]_CONFIG" = "no" ; then
++ echo "*** The DOWN-config script installed by $1 could not be found"
++ echo "*** If $1 was installed in PREFIX, make sure PREFIX/bin is in"
++ echo "*** your path, or set the UP[]_CONFIG environment variable to the"
++ echo "*** full path to DOWN-config."
++ fi
++ UP[]_CFLAGS=""
++ UP[]_LIBS=""
++ ifelse([$4], , :, [$4])
++ fi
++ AC_SUBST(UP[]_CFLAGS)
++ AC_SUBST(UP[]_LIBS)
++
++ popdef([UP])
++ popdef([DOWN])
++])
++
+ # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
+
+ # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
+diff -r -N -u snort-2.0.1/autogen.sh snort-2.0.1+prelude/autogen.sh
+--- snort-2.0.1/autogen.sh 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/autogen.sh 2003-07-26 18:12:40.000000000 +0800
+@@ -0,0 +1,5 @@
++aclocal
++autoconf
++autoheader
++libtoolize -c --force
++automake --gnu -a -c
+diff -r -N -u snort-2.0.1/autom4te.cache/output.0 snort-2.0.1+prelude/autom4te.cache/output.0
+--- snort-2.0.1/autom4te.cache/output.0 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/autom4te.cache/output.0 2003-07-26 18:14:25.000000000 +0800
+@@ -0,0 +1,9342 @@
++@%:@! /bin/sh
++@%:@ Guess values for system-dependent variables and create Makefiles.
++@%:@ Generated by GNU Autoconf 2.57.
++@%:@
++@%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
++@%:@ Free Software Foundation, Inc.
++@%:@ This configure script is free software; the Free Software Foundation
++@%:@ gives unlimited permission to copy, distribute and modify it.
++## --------------------- ##
++## M4sh Initialization. ##
++## --------------------- ##
++
++# Be Bourne compatible
++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
++ emulate sh
++ NULLCMD=:
++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
++ # is contrary to our usage. Disable this feature.
++ alias -g '${1+"$@"}'='"$@"'
++elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
++ set -o posix
++fi
++
++# Support unset when possible.
++if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
++ as_unset=unset
++else
++ as_unset=false
++fi
++
++
++# Work around bugs in pre-3.0 UWIN ksh.
++$as_unset ENV MAIL MAILPATH
++PS1='$ '
++PS2='> '
++PS4='+ '
++
++# NLS nuisances.
++for as_var in \
++ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
++ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
++ LC_TELEPHONE LC_TIME
++do
++ if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
++ eval $as_var=C; export $as_var
++ else
++ $as_unset $as_var
++ fi
++done
++
++# Required to use basename.
++if expr a : '\(a\)' >/dev/null 2>&1; then
++ as_expr=expr
++else
++ as_expr=false
++fi
++
++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
++ as_basename=basename
++else
++ as_basename=false
++fi
++
++
++# Name of the executable.
++as_me=`$as_basename "$0" ||
++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
++ X"$0" : 'X\(//\)$' \| \
++ X"$0" : 'X\(/\)$' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X/"$0" |
++ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
++ /^X\/\(\/\/\)$/{ s//\1/; q; }
++ /^X\/\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++
++
++# PATH needs CR, and LINENO needs CR and PATH.
++# Avoid depending upon Character Ranges.
++as_cr_letters='abcdefghijklmnopqrstuvwxyz'
++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
++as_cr_Letters=$as_cr_letters$as_cr_LETTERS
++as_cr_digits='0123456789'
++as_cr_alnum=$as_cr_Letters$as_cr_digits
++
++# The user is always right.
++if test "${PATH_SEPARATOR+set}" != set; then
++ echo "#! /bin/sh" >conf$$.sh
++ echo "exit 0" >>conf$$.sh
++ chmod +x conf$$.sh
++ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
++ PATH_SEPARATOR=';'
++ else
++ PATH_SEPARATOR=:
++ fi
++ rm -f conf$$.sh
++fi
++
++
++ as_lineno_1=$LINENO
++ as_lineno_2=$LINENO
++ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
++ test "x$as_lineno_1" != "x$as_lineno_2" &&
++ test "x$as_lineno_3" = "x$as_lineno_2" || {
++ # Find who we are. Look in the path if we contain no path at all
++ # relative or not.
++ case $0 in
++ *[\\/]* ) as_myself=$0 ;;
++ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
++done
++
++ ;;
++ esac
++ # We did not find ourselves, most probably we were run as `sh COMMAND'
++ # in which case we are not to be found in the path.
++ if test "x$as_myself" = x; then
++ as_myself=$0
++ fi
++ if test ! -f "$as_myself"; then
++ { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
++ { (exit 1); exit 1; }; }
++ fi
++ case $CONFIG_SHELL in
++ '')
++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for as_base in sh bash ksh sh5; do
++ case $as_dir in
++ /*)
++ if ("$as_dir/$as_base" -c '
++ as_lineno_1=$LINENO
++ as_lineno_2=$LINENO
++ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
++ test "x$as_lineno_1" != "x$as_lineno_2" &&
++ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
++ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
++ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
++ CONFIG_SHELL=$as_dir/$as_base
++ export CONFIG_SHELL
++ exec "$CONFIG_SHELL" "$0" ${1+"$@"}
++ fi;;
++ esac
++ done
++done
++;;
++ esac
++
++ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
++ # uniformly replaced by the line number. The first 'sed' inserts a
++ # line-number line before each line; the second 'sed' does the real
++ # work. The second script uses 'N' to pair each line-number line
++ # with the numbered line, and appends trailing '-' during
++ # substitution so that $LINENO is not a special case at line end.
++ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
++ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
++ sed '=' <$as_myself |
++ sed '
++ N
++ s,$,-,
++ : loop
++ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
++ t loop
++ s,-$,,
++ s,^['$as_cr_digits']*\n,,
++ ' >$as_me.lineno &&
++ chmod +x $as_me.lineno ||
++ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
++ { (exit 1); exit 1; }; }
++
++ # Don't try to exec as it changes $[0], causing all sort of problems
++ # (the dirname of $[0] is not the place where we might find the
++ # original and so on. Autoconf is especially sensible to this).
++ . ./$as_me.lineno
++ # Exit status is that of the last command.
++ exit
++}
++
++
++case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
++ *c*,-n*) ECHO_N= ECHO_C='
++' ECHO_T=' ' ;;
++ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
++ *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
++esac
++
++if expr a : '\(a\)' >/dev/null 2>&1; then
++ as_expr=expr
++else
++ as_expr=false
++fi
++
++rm -f conf$$ conf$$.exe conf$$.file
++echo >conf$$.file
++if ln -s conf$$.file conf$$ 2>/dev/null; then
++ # We could just check for DJGPP; but this test a) works b) is more generic
++ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
++ if test -f conf$$.exe; then
++ # Don't use ln at all; we don't have any links
++ as_ln_s='cp -p'
++ else
++ as_ln_s='ln -s'
++ fi
++elif ln conf$$.file conf$$ 2>/dev/null; then
++ as_ln_s=ln
++else
++ as_ln_s='cp -p'
++fi
++rm -f conf$$ conf$$.exe conf$$.file
++
++if mkdir -p . 2>/dev/null; then
++ as_mkdir_p=:
++else
++ as_mkdir_p=false
++fi
++
++as_executable_p="test -f"
++
++# Sed expression to map a string onto a valid CPP name.
++as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
++
++# Sed expression to map a string onto a valid variable name.
++as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
++
++
++# IFS
++# We need space, tab and new line, in precisely that order.
++as_nl='
++'
++IFS=" $as_nl"
++
++# CDPATH.
++$as_unset CDPATH
++
++
++# Name of the host.
++# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
++# so uname gets run too.
++ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
++
++exec 6>&1
++
++#
++# Initializations.
++#
++ac_default_prefix=/usr/local
++ac_config_libobj_dir=.
++cross_compiling=no
++subdirs=
++MFLAGS=
++MAKEFLAGS=
++SHELL=${CONFIG_SHELL-/bin/sh}
++
++# Maximum number of lines to put in a shell here document.
++# This variable seems obsolete. It should probably be removed, and
++# only ac_max_sed_lines should be used.
++: ${ac_max_here_lines=38}
++
++# Identity of this package.
++PACKAGE_NAME=
++PACKAGE_TARNAME=
++PACKAGE_VERSION=
++PACKAGE_STRING=
++PACKAGE_BUGREPORT=
++
++ac_unique_file="src/snort.c"
++# Factoring default headers for most tests.
++ac_includes_default="\
++#include <stdio.h>
++#if HAVE_SYS_TYPES_H
++# include <sys/types.h>
++#endif
++#if HAVE_SYS_STAT_H
++# include <sys/stat.h>
++#endif
++#if STDC_HEADERS
++# include <stdlib.h>
++# include <stddef.h>
++#else
++# if HAVE_STDLIB_H
++# include <stdlib.h>
++# endif
++#endif
++#if HAVE_STRING_H
++# if !STDC_HEADERS && HAVE_MEMORY_H
++# include <memory.h>
++# endif
++# include <string.h>
++#endif
++#if HAVE_STRINGS_H
++# include <strings.h>
++#endif
++#if HAVE_INTTYPES_H
++# include <inttypes.h>
++#else
++# if HAVE_STDINT_H
++# include <stdint.h>
++# endif
++#endif
++#if HAVE_UNISTD_H
++# include <unistd.h>
++#endif"
++
++ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os extra_incl CPP EGREP LIBPRELUDE_CONFIG LIBPRELUDE_CFLAGS LIBPRELUDE_LIBS INCLUDES LIB@&t@OBJS LTLIBOBJS'
++ac_subst_files=''
++
++# Initialize some variables set by options.
++ac_init_help=
++ac_init_version=false
++# The variables have the same names as the options, with
++# dashes changed to underlines.
++cache_file=/dev/null
++exec_prefix=NONE
++no_create=
++no_recursion=
++prefix=NONE
++program_prefix=NONE
++program_suffix=NONE
++program_transform_name=s,x,x,
++silent=
++site=
++srcdir=
++verbose=
++x_includes=NONE
++x_libraries=NONE
++
++# Installation directory options.
++# These are left unexpanded so users can "make install exec_prefix=/foo"
++# and all the variables that are supposed to be based on exec_prefix
++# by default will actually change.
++# Use braces instead of parens because sh, perl, etc. also accept them.
++bindir='${exec_prefix}/bin'
++sbindir='${exec_prefix}/sbin'
++libexecdir='${exec_prefix}/libexec'
++datadir='${prefix}/share'
++sysconfdir='${prefix}/etc'
++sharedstatedir='${prefix}/com'
++localstatedir='${prefix}/var'
++libdir='${exec_prefix}/lib'
++includedir='${prefix}/include'
++oldincludedir='/usr/include'
++infodir='${prefix}/info'
++mandir='${prefix}/man'
++
++ac_prev=
++for ac_option
++do
++ # If the previous option needs an argument, assign it.
++ if test -n "$ac_prev"; then
++ eval "$ac_prev=\$ac_option"
++ ac_prev=
++ continue
++ fi
++
++ ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
++
++ # Accept the important Cygnus configure options, so we can diagnose typos.
++
++ case $ac_option in
++
++ -bindir | --bindir | --bindi | --bind | --bin | --bi)
++ ac_prev=bindir ;;
++ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
++ bindir=$ac_optarg ;;
++
++ -build | --build | --buil | --bui | --bu)
++ ac_prev=build_alias ;;
++ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
++ build_alias=$ac_optarg ;;
++
++ -cache-file | --cache-file | --cache-fil | --cache-fi \
++ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
++ ac_prev=cache_file ;;
++ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
++ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
++ cache_file=$ac_optarg ;;
++
++ --config-cache | -C)
++ cache_file=config.cache ;;
++
++ -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
++ ac_prev=datadir ;;
++ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
++ | --da=*)
++ datadir=$ac_optarg ;;
++
++ -disable-* | --disable-*)
++ ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
++ # Reject names that are not valid shell variable names.
++ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
++ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
++ { (exit 1); exit 1; }; }
++ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
++ eval "enable_$ac_feature=no" ;;
++
++ -enable-* | --enable-*)
++ ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
++ # Reject names that are not valid shell variable names.
++ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
++ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
++ { (exit 1); exit 1; }; }
++ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
++ case $ac_option in
++ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
++ *) ac_optarg=yes ;;
++ esac
++ eval "enable_$ac_feature='$ac_optarg'" ;;
++
++ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
++ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
++ | --exec | --exe | --ex)
++ ac_prev=exec_prefix ;;
++ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
++ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
++ | --exec=* | --exe=* | --ex=*)
++ exec_prefix=$ac_optarg ;;
++
++ -gas | --gas | --ga | --g)
++ # Obsolete; use --with-gas.
++ with_gas=yes ;;
++
++ -help | --help | --hel | --he | -h)
++ ac_init_help=long ;;
++ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
++ ac_init_help=recursive ;;
++ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
++ ac_init_help=short ;;
++
++ -host | --host | --hos | --ho)
++ ac_prev=host_alias ;;
++ -host=* | --host=* | --hos=* | --ho=*)
++ host_alias=$ac_optarg ;;
++
++ -includedir | --includedir | --includedi | --included | --include \
++ | --includ | --inclu | --incl | --inc)
++ ac_prev=includedir ;;
++ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
++ | --includ=* | --inclu=* | --incl=* | --inc=*)
++ includedir=$ac_optarg ;;
++
++ -infodir | --infodir | --infodi | --infod | --info | --inf)
++ ac_prev=infodir ;;
++ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
++ infodir=$ac_optarg ;;
++
++ -libdir | --libdir | --libdi | --libd)
++ ac_prev=libdir ;;
++ -libdir=* | --libdir=* | --libdi=* | --libd=*)
++ libdir=$ac_optarg ;;
++
++ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
++ | --libexe | --libex | --libe)
++ ac_prev=libexecdir ;;
++ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
++ | --libexe=* | --libex=* | --libe=*)
++ libexecdir=$ac_optarg ;;
++
++ -localstatedir | --localstatedir | --localstatedi | --localstated \
++ | --localstate | --localstat | --localsta | --localst \
++ | --locals | --local | --loca | --loc | --lo)
++ ac_prev=localstatedir ;;
++ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
++ | --localstate=* | --localstat=* | --localsta=* | --localst=* \
++ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
++ localstatedir=$ac_optarg ;;
++
++ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
++ ac_prev=mandir ;;
++ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
++ mandir=$ac_optarg ;;
++
++ -nfp | --nfp | --nf)
++ # Obsolete; use --without-fp.
++ with_fp=no ;;
++
++ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
++ | --no-cr | --no-c | -n)
++ no_create=yes ;;
++
++ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
++ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
++ no_recursion=yes ;;
++
++ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
++ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
++ | --oldin | --oldi | --old | --ol | --o)
++ ac_prev=oldincludedir ;;
++ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
++ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
++ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
++ oldincludedir=$ac_optarg ;;
++
++ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
++ ac_prev=prefix ;;
++ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
++ prefix=$ac_optarg ;;
++
++ -program-prefix | --program-prefix | --program-prefi | --program-pref \
++ | --program-pre | --program-pr | --program-p)
++ ac_prev=program_prefix ;;
++ -program-prefix=* | --program-prefix=* | --program-prefi=* \
++ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
++ program_prefix=$ac_optarg ;;
++
++ -program-suffix | --program-suffix | --program-suffi | --program-suff \
++ | --program-suf | --program-su | --program-s)
++ ac_prev=program_suffix ;;
++ -program-suffix=* | --program-suffix=* | --program-suffi=* \
++ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
++ program_suffix=$ac_optarg ;;
++
++ -program-transform-name | --program-transform-name \
++ | --program-transform-nam | --program-transform-na \
++ | --program-transform-n | --program-transform- \
++ | --program-transform | --program-transfor \
++ | --program-transfo | --program-transf \
++ | --program-trans | --program-tran \
++ | --progr-tra | --program-tr | --program-t)
++ ac_prev=program_transform_name ;;
++ -program-transform-name=* | --program-transform-name=* \
++ | --program-transform-nam=* | --program-transform-na=* \
++ | --program-transform-n=* | --program-transform-=* \
++ | --program-transform=* | --program-transfor=* \
++ | --program-transfo=* | --program-transf=* \
++ | --program-trans=* | --program-tran=* \
++ | --progr-tra=* | --program-tr=* | --program-t=*)
++ program_transform_name=$ac_optarg ;;
++
++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
++ | -silent | --silent | --silen | --sile | --sil)
++ silent=yes ;;
++
++ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
++ ac_prev=sbindir ;;
++ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
++ | --sbi=* | --sb=*)
++ sbindir=$ac_optarg ;;
++
++ -sharedstatedir | --sharedstatedir | --sharedstatedi \
++ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
++ | --sharedst | --shareds | --shared | --share | --shar \
++ | --sha | --sh)
++ ac_prev=sharedstatedir ;;
++ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
++ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
++ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
++ | --sha=* | --sh=*)
++ sharedstatedir=$ac_optarg ;;
++
++ -site | --site | --sit)
++ ac_prev=site ;;
++ -site=* | --site=* | --sit=*)
++ site=$ac_optarg ;;
++
++ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
++ ac_prev=srcdir ;;
++ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
++ srcdir=$ac_optarg ;;
++
++ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
++ | --syscon | --sysco | --sysc | --sys | --sy)
++ ac_prev=sysconfdir ;;
++ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
++ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
++ sysconfdir=$ac_optarg ;;
++
++ -target | --target | --targe | --targ | --tar | --ta | --t)
++ ac_prev=target_alias ;;
++ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
++ target_alias=$ac_optarg ;;
++
++ -v | -verbose | --verbose | --verbos | --verbo | --verb)
++ verbose=yes ;;
++
++ -version | --version | --versio | --versi | --vers | -V)
++ ac_init_version=: ;;
++
++ -with-* | --with-*)
++ ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
++ # Reject names that are not valid shell variable names.
++ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
++ { echo "$as_me: error: invalid package name: $ac_package" >&2
++ { (exit 1); exit 1; }; }
++ ac_package=`echo $ac_package| sed 's/-/_/g'`
++ case $ac_option in
++ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
++ *) ac_optarg=yes ;;
++ esac
++ eval "with_$ac_package='$ac_optarg'" ;;
++
++ -without-* | --without-*)
++ ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
++ # Reject names that are not valid shell variable names.
++ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
++ { echo "$as_me: error: invalid package name: $ac_package" >&2
++ { (exit 1); exit 1; }; }
++ ac_package=`echo $ac_package | sed 's/-/_/g'`
++ eval "with_$ac_package=no" ;;
++
++ --x)
++ # Obsolete; use --with-x.
++ with_x=yes ;;
++
++ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
++ | --x-incl | --x-inc | --x-in | --x-i)
++ ac_prev=x_includes ;;
++ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
++ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
++ x_includes=$ac_optarg ;;
++
++ -x-libraries | --x-libraries | --x-librarie | --x-librari \
++ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
++ ac_prev=x_libraries ;;
++ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
++ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
++ x_libraries=$ac_optarg ;;
++
++ -*) { echo "$as_me: error: unrecognized option: $ac_option
++Try \`$0 --help' for more information." >&2
++ { (exit 1); exit 1; }; }
++ ;;
++
++ *=*)
++ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
++ # Reject names that are not valid shell variable names.
++ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
++ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
++ { (exit 1); exit 1; }; }
++ ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
++ eval "$ac_envvar='$ac_optarg'"
++ export $ac_envvar ;;
++
++ *)
++ # FIXME: should be removed in autoconf 3.0.
++ echo "$as_me: WARNING: you should use --build, --host, --target" >&2
++ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
++ echo "$as_me: WARNING: invalid host type: $ac_option" >&2
++ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
++ ;;
++
++ esac
++done
++
++if test -n "$ac_prev"; then
++ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
++ { echo "$as_me: error: missing argument to $ac_option" >&2
++ { (exit 1); exit 1; }; }
++fi
++
++# Be sure to have absolute paths.
++for ac_var in exec_prefix prefix
++do
++ eval ac_val=$`echo $ac_var`
++ case $ac_val in
++ [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
++ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
++ { (exit 1); exit 1; }; };;
++ esac
++done
++
++# Be sure to have absolute paths.
++for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
++ localstatedir libdir includedir oldincludedir infodir mandir
++do
++ eval ac_val=$`echo $ac_var`
++ case $ac_val in
++ [\\/$]* | ?:[\\/]* ) ;;
++ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
++ { (exit 1); exit 1; }; };;
++ esac
++done
++
++# There might be people who depend on the old broken behavior: `$host'
++# used to hold the argument of --host etc.
++# FIXME: To remove some day.
++build=$build_alias
++host=$host_alias
++target=$target_alias
++
++# FIXME: To remove some day.
++if test "x$host_alias" != x; then
++ if test "x$build_alias" = x; then
++ cross_compiling=maybe
++ echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
++ If a cross compiler is detected then cross compile mode will be used." >&2
++ elif test "x$build_alias" != "x$host_alias"; then
++ cross_compiling=yes
++ fi
++fi
++
++ac_tool_prefix=
++test -n "$host_alias" && ac_tool_prefix=$host_alias-
++
++test "$silent" = yes && exec 6>/dev/null
++
++
++# Find the source files, if location was not specified.
++if test -z "$srcdir"; then
++ ac_srcdir_defaulted=yes
++ # Try the directory containing this script, then its parent.
++ ac_confdir=`(dirname "$0") 2>/dev/null ||
++$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++ X"$0" : 'X\(//\)[^/]' \| \
++ X"$0" : 'X\(//\)$' \| \
++ X"$0" : 'X\(/\)' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X"$0" |
++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++ /^X\(\/\/\)$/{ s//\1/; q; }
++ /^X\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++ srcdir=$ac_confdir
++ if test ! -r $srcdir/$ac_unique_file; then
++ srcdir=..
++ fi
++else
++ ac_srcdir_defaulted=no
++fi
++if test ! -r $srcdir/$ac_unique_file; then
++ if test "$ac_srcdir_defaulted" = yes; then
++ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
++ { (exit 1); exit 1; }; }
++ else
++ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
++ { (exit 1); exit 1; }; }
++ fi
++fi
++(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
++ { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
++ { (exit 1); exit 1; }; }
++srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
++ac_env_build_alias_set=${build_alias+set}
++ac_env_build_alias_value=$build_alias
++ac_cv_env_build_alias_set=${build_alias+set}
++ac_cv_env_build_alias_value=$build_alias
++ac_env_host_alias_set=${host_alias+set}
++ac_env_host_alias_value=$host_alias
++ac_cv_env_host_alias_set=${host_alias+set}
++ac_cv_env_host_alias_value=$host_alias
++ac_env_target_alias_set=${target_alias+set}
++ac_env_target_alias_value=$target_alias
++ac_cv_env_target_alias_set=${target_alias+set}
++ac_cv_env_target_alias_value=$target_alias
++ac_env_CC_set=${CC+set}
++ac_env_CC_value=$CC
++ac_cv_env_CC_set=${CC+set}
++ac_cv_env_CC_value=$CC
++ac_env_CFLAGS_set=${CFLAGS+set}
++ac_env_CFLAGS_value=$CFLAGS
++ac_cv_env_CFLAGS_set=${CFLAGS+set}
++ac_cv_env_CFLAGS_value=$CFLAGS
++ac_env_LDFLAGS_set=${LDFLAGS+set}
++ac_env_LDFLAGS_value=$LDFLAGS
++ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
++ac_cv_env_LDFLAGS_value=$LDFLAGS
++ac_env_CPPFLAGS_set=${CPPFLAGS+set}
++ac_env_CPPFLAGS_value=$CPPFLAGS
++ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
++ac_cv_env_CPPFLAGS_value=$CPPFLAGS
++ac_env_CPP_set=${CPP+set}
++ac_env_CPP_value=$CPP
++ac_cv_env_CPP_set=${CPP+set}
++ac_cv_env_CPP_value=$CPP
++
++#
++# Report the --help message.
++#
++if test "$ac_init_help" = "long"; then
++ # Omit some internal or obsolete options to make the list less imposing.
++ # This message is too long to be a string in the A/UX 3.1 sh.
++ cat <<_ACEOF
++\`configure' configures this package to adapt to many kinds of systems.
++
++Usage: $0 [OPTION]... [VAR=VALUE]...
++
++To assign environment variables (e.g., CC, CFLAGS...), specify them as
++VAR=VALUE. See below for descriptions of some of the useful variables.
++
++Defaults for the options are specified in brackets.
++
++Configuration:
++ -h, --help display this help and exit
++ --help=short display options specific to this package
++ --help=recursive display the short help of all the included packages
++ -V, --version display version information and exit
++ -q, --quiet, --silent do not print \`checking...' messages
++ --cache-file=FILE cache test results in FILE [disabled]
++ -C, --config-cache alias for \`--cache-file=config.cache'
++ -n, --no-create do not create output files
++ --srcdir=DIR find the sources in DIR [configure dir or \`..']
++
++_ACEOF
++
++ cat <<_ACEOF
++Installation directories:
++ --prefix=PREFIX install architecture-independent files in PREFIX
++ [$ac_default_prefix]
++ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
++ [PREFIX]
++
++By default, \`make install' will install all the files in
++\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
++an installation prefix other than \`$ac_default_prefix' using \`--prefix',
++for instance \`--prefix=\$HOME'.
++
++For better control, use the options below.
++
++Fine tuning of the installation directories:
++ --bindir=DIR user executables [EPREFIX/bin]
++ --sbindir=DIR system admin executables [EPREFIX/sbin]
++ --libexecdir=DIR program executables [EPREFIX/libexec]
++ --datadir=DIR read-only architecture-independent data [PREFIX/share]
++ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
++ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
++ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
++ --libdir=DIR object code libraries [EPREFIX/lib]
++ --includedir=DIR C header files [PREFIX/include]
++ --oldincludedir=DIR C header files for non-gcc [/usr/include]
++ --infodir=DIR info documentation [PREFIX/info]
++ --mandir=DIR man documentation [PREFIX/man]
++_ACEOF
++
++ cat <<\_ACEOF
++
++Program names:
++ --program-prefix=PREFIX prepend PREFIX to installed program names
++ --program-suffix=SUFFIX append SUFFIX to installed program names
++ --program-transform-name=PROGRAM run sed PROGRAM on installed program names
++
++System types:
++ --build=BUILD configure for building on BUILD [guessed]
++ --host=HOST cross-compile to build programs to run on HOST [BUILD]
++_ACEOF
++fi
++
++if test -n "$ac_init_help"; then
++
++ cat <<\_ACEOF
++
++Optional Features:
++ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
++ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
++ --disable-dependency-tracking Speeds up one-time builds
++ --enable-dependency-tracking Do not reject slow dependency extractors
++ --enable-debug enable debugging options (bugreports and developers only)
++ --enable-profile enable profiling options (developers only)
++ --enable-sourcefire Enable Sourcefire specific build options
++ --enable-perfmonitor Enable perfmonitor preprocessor
++ --enable-smbalerts SMB alerting capaility via Samba
++ --enable-linux-smp-stats Enable statistics reporting through proc
++ --enable-flexresp Flexible Responses on hostile connection attempts
++
++Optional Packages:
++ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
++ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
++ --with-libpcap-includes=DIR libcap include directory
++ --with-libpcap-libraries=DIR libcap library directory
++ --with-libnet-includes=DIR libnet include directory
++ --with-libnet-libraries=DIR libnet library directory
++ --with-prelude support for Prelude IDS
++ --with-libprelude-prefix=PFX Prefix where libprelude is installed (optional)
++ --with-libprelude-exec-prefix=PFX Exec prefix where libprelude is installed (optional)
++ --with-mysql=DIR support for mysql
++ --with-odbc=DIR support for odbc
++ --with-postgresql=DIR support for postgresql
++ --with-oracle=DIR support for oracle
++
++Some influential environment variables:
++ CC C compiler command
++ CFLAGS C compiler flags
++ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
++ nonstandard directory <lib dir>
++ CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
++ headers in a nonstandard directory <include dir>
++ CPP C preprocessor
++
++Use these variables to override the choices made by `configure' or to help
++it to find libraries and programs with nonstandard names/locations.
++
++_ACEOF
++fi
++
++if test "$ac_init_help" = "recursive"; then
++ # If there are subdirs, report their specific --help.
++ ac_popdir=`pwd`
++ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
++ test -d $ac_dir || continue
++ ac_builddir=.
++
++if test "$ac_dir" != .; then
++ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
++ # A "../" for each directory in $ac_dir_suffix.
++ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
++else
++ ac_dir_suffix= ac_top_builddir=
++fi
++
++case $srcdir in
++ .) # No --srcdir option. We are building in place.
++ ac_srcdir=.
++ if test -z "$ac_top_builddir"; then
++ ac_top_srcdir=.
++ else
++ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
++ fi ;;
++ [\\/]* | ?:[\\/]* ) # Absolute path.
++ ac_srcdir=$srcdir$ac_dir_suffix;
++ ac_top_srcdir=$srcdir ;;
++ *) # Relative path.
++ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
++ ac_top_srcdir=$ac_top_builddir$srcdir ;;
++esac
++# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
++# absolute.
++ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
++ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
++ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
++ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
++
++ cd $ac_dir
++ # Check for guested configure; otherwise get Cygnus style configure.
++ if test -f $ac_srcdir/configure.gnu; then
++ echo
++ $SHELL $ac_srcdir/configure.gnu --help=recursive
++ elif test -f $ac_srcdir/configure; then
++ echo
++ $SHELL $ac_srcdir/configure --help=recursive
++ elif test -f $ac_srcdir/configure.ac ||
++ test -f $ac_srcdir/configure.in; then
++ echo
++ $ac_configure --help
++ else
++ echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
++ fi
++ cd $ac_popdir
++ done
++fi
++
++test -n "$ac_init_help" && exit 0
++if $ac_init_version; then
++ cat <<\_ACEOF
++
++Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
++Free Software Foundation, Inc.
++This configure script is free software; the Free Software Foundation
++gives unlimited permission to copy, distribute and modify it.
++_ACEOF
++ exit 0
++fi
++exec 5>config.log
++cat >&5 <<_ACEOF
++This file contains any messages produced by compilers while
++running configure, to aid debugging if configure makes a mistake.
++
++It was created by $as_me, which was
++generated by GNU Autoconf 2.57. Invocation command line was
++
++ $ $0 $@
++
++_ACEOF
++{
++cat <<_ASUNAME
++@%:@@%:@ --------- @%:@@%:@
++@%:@@%:@ Platform. @%:@@%:@
++@%:@@%:@ --------- @%:@@%:@
++
++hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
++uname -m = `(uname -m) 2>/dev/null || echo unknown`
++uname -r = `(uname -r) 2>/dev/null || echo unknown`
++uname -s = `(uname -s) 2>/dev/null || echo unknown`
++uname -v = `(uname -v) 2>/dev/null || echo unknown`
++
++/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
++/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
++
++/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
++/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
++/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
++hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
++/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
++/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
++/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
++
++_ASUNAME
++
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ echo "PATH: $as_dir"
++done
++
++} >&5
++
++cat >&5 <<_ACEOF
++
++
++@%:@@%:@ ----------- @%:@@%:@
++@%:@@%:@ Core tests. @%:@@%:@
++@%:@@%:@ ----------- @%:@@%:@
++
++_ACEOF
++
++
++# Keep a trace of the command line.
++# Strip out --no-create and --no-recursion so they do not pile up.
++# Strip out --silent because we don't want to record it for future runs.
++# Also quote any args containing shell meta-characters.
++# Make two passes to allow for proper duplicate-argument suppression.
++ac_configure_args=
++ac_configure_args0=
++ac_configure_args1=
++ac_sep=
++ac_must_keep_next=false
++for ac_pass in 1 2
++do
++ for ac_arg
++ do
++ case $ac_arg in
++ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
++ | -silent | --silent | --silen | --sile | --sil)
++ continue ;;
++ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
++ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
++ esac
++ case $ac_pass in
++ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
++ 2)
++ ac_configure_args1="$ac_configure_args1 '$ac_arg'"
++ if test $ac_must_keep_next = true; then
++ ac_must_keep_next=false # Got value, back to normal.
++ else
++ case $ac_arg in
++ *=* | --config-cache | -C | -disable-* | --disable-* \
++ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
++ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
++ | -with-* | --with-* | -without-* | --without-* | --x)
++ case "$ac_configure_args0 " in
++ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
++ esac
++ ;;
++ -* ) ac_must_keep_next=true ;;
++ esac
++ fi
++ ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
++ # Get rid of the leading space.
++ ac_sep=" "
++ ;;
++ esac
++ done
++done
++$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
++$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
++
++# When interrupted or exit'd, cleanup temporary files, and complete
++# config.log. We remove comments because anyway the quotes in there
++# would cause problems or look ugly.
++# WARNING: Be sure not to use single quotes in there, as some shells,
++# such as our DU 5.0 friend, will then `close' the trap.
++trap 'exit_status=$?
++ # Save into config.log some information that might help in debugging.
++ {
++ echo
++
++ cat <<\_ASBOX
++@%:@@%:@ ---------------- @%:@@%:@
++@%:@@%:@ Cache variables. @%:@@%:@
++@%:@@%:@ ---------------- @%:@@%:@
++_ASBOX
++ echo
++ # The following way of writing the cache mishandles newlines in values,
++{
++ (set) 2>&1 |
++ case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
++ *ac_space=\ *)
++ sed -n \
++ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
++ ;;
++ *)
++ sed -n \
++ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
++ ;;
++ esac;
++}
++ echo
++
++ cat <<\_ASBOX
++@%:@@%:@ ----------------- @%:@@%:@
++@%:@@%:@ Output variables. @%:@@%:@
++@%:@@%:@ ----------------- @%:@@%:@
++_ASBOX
++ echo
++ for ac_var in $ac_subst_vars
++ do
++ eval ac_val=$`echo $ac_var`
++ echo "$ac_var='"'"'$ac_val'"'"'"
++ done | sort
++ echo
++
++ if test -n "$ac_subst_files"; then
++ cat <<\_ASBOX
++@%:@@%:@ ------------- @%:@@%:@
++@%:@@%:@ Output files. @%:@@%:@
++@%:@@%:@ ------------- @%:@@%:@
++_ASBOX
++ echo
++ for ac_var in $ac_subst_files
++ do
++ eval ac_val=$`echo $ac_var`
++ echo "$ac_var='"'"'$ac_val'"'"'"
++ done | sort
++ echo
++ fi
++
++ if test -s confdefs.h; then
++ cat <<\_ASBOX
++@%:@@%:@ ----------- @%:@@%:@
++@%:@@%:@ confdefs.h. @%:@@%:@
++@%:@@%:@ ----------- @%:@@%:@
++_ASBOX
++ echo
++ sed "/^$/d" confdefs.h | sort
++ echo
++ fi
++ test "$ac_signal" != 0 &&
++ echo "$as_me: caught signal $ac_signal"
++ echo "$as_me: exit $exit_status"
++ } >&5
++ rm -f core core.* *.core &&
++ rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
++ exit $exit_status
++ ' 0
++for ac_signal in 1 2 13 15; do
++ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
++done
++ac_signal=0
++
++# confdefs.h avoids OS command line length limits that DEFS can exceed.
++rm -rf conftest* confdefs.h
++# AIX cpp loses on an empty file, so make sure it contains at least a newline.
++echo >confdefs.h
++
++# Predefined preprocessor variables.
++
++cat >>confdefs.h <<_ACEOF
++@%:@define PACKAGE_NAME "$PACKAGE_NAME"
++_ACEOF
++
++
++cat >>confdefs.h <<_ACEOF
++@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
++_ACEOF
++
++
++cat >>confdefs.h <<_ACEOF
++@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
++_ACEOF
++
++
++cat >>confdefs.h <<_ACEOF
++@%:@define PACKAGE_STRING "$PACKAGE_STRING"
++_ACEOF
++
++
++cat >>confdefs.h <<_ACEOF
++@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
++_ACEOF
++
++
++# Let the site file select an alternate cache file if it wants to.
++# Prefer explicitly selected file to automatically selected ones.
++if test -z "$CONFIG_SITE"; then
++ if test "x$prefix" != xNONE; then
++ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
++ else
++ CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
++ fi
++fi
++for ac_site_file in $CONFIG_SITE; do
++ if test -r "$ac_site_file"; then
++ { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
++echo "$as_me: loading site script $ac_site_file" >&6;}
++ sed 's/^/| /' "$ac_site_file" >&5
++ . "$ac_site_file"
++ fi
++done
++
++if test -r "$cache_file"; then
++ # Some versions of bash will fail to source /dev/null (special
++ # files actually), so we avoid doing that.
++ if test -f "$cache_file"; then
++ { echo "$as_me:$LINENO: loading cache $cache_file" >&5
++echo "$as_me: loading cache $cache_file" >&6;}
++ case $cache_file in
++ [\\/]* | ?:[\\/]* ) . $cache_file;;
++ *) . ./$cache_file;;
++ esac
++ fi
++else
++ { echo "$as_me:$LINENO: creating cache $cache_file" >&5
++echo "$as_me: creating cache $cache_file" >&6;}
++ >$cache_file
++fi
++
++# Check that the precious variables saved in the cache have kept the same
++# value.
++ac_cache_corrupted=false
++for ac_var in `(set) 2>&1 |
++ sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
++ eval ac_old_set=\$ac_cv_env_${ac_var}_set
++ eval ac_new_set=\$ac_env_${ac_var}_set
++ eval ac_old_val="\$ac_cv_env_${ac_var}_value"
++ eval ac_new_val="\$ac_env_${ac_var}_value"
++ case $ac_old_set,$ac_new_set in
++ set,)
++ { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
++echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
++ ac_cache_corrupted=: ;;
++ ,set)
++ { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
++echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
++ ac_cache_corrupted=: ;;
++ ,);;
++ *)
++ if test "x$ac_old_val" != "x$ac_new_val"; then
++ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
++echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
++ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
++echo "$as_me: former value: $ac_old_val" >&2;}
++ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
++echo "$as_me: current value: $ac_new_val" >&2;}
++ ac_cache_corrupted=:
++ fi;;
++ esac
++ # Pass precious variables to config.status.
++ if test "$ac_new_set" = set; then
++ case $ac_new_val in
++ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
++ ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
++ *) ac_arg=$ac_var=$ac_new_val ;;
++ esac
++ case " $ac_configure_args " in
++ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
++ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
++ esac
++ fi
++done
++if $ac_cache_corrupted; then
++ { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
++echo "$as_me: error: changes in the environment can compromise the build" >&2;}
++ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
++echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
++ { (exit 1); exit 1; }; }
++fi
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++# Add the stamp file to the list of files AC keeps track of,
++# along with our hook.
++ ac_config_headers="$ac_config_headers config.h"
++
++
++
++# When changing the snort version, please also update the VERSION
++# definition in "src/win32/WIN32-Includes/config.h"
++am__api_version="1.6"
++ac_aux_dir=
++for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
++ if test -f $ac_dir/install-sh; then
++ ac_aux_dir=$ac_dir
++ ac_install_sh="$ac_aux_dir/install-sh -c"
++ break
++ elif test -f $ac_dir/install.sh; then
++ ac_aux_dir=$ac_dir
++ ac_install_sh="$ac_aux_dir/install.sh -c"
++ break
++ elif test -f $ac_dir/shtool; then
++ ac_aux_dir=$ac_dir
++ ac_install_sh="$ac_aux_dir/shtool install -c"
++ break
++ fi
++done
++if test -z "$ac_aux_dir"; then
++ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
++echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
++ { (exit 1); exit 1; }; }
++fi
++ac_config_guess="$SHELL $ac_aux_dir/config.guess"
++ac_config_sub="$SHELL $ac_aux_dir/config.sub"
++ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
++
++# Find a good install program. We prefer a C program (faster),
++# so one script is as good as another. But avoid the broken or
++# incompatible versions:
++# SysV /etc/install, /usr/sbin/install
++# SunOS /usr/etc/install
++# IRIX /sbin/install
++# AIX /bin/install
++# AmigaOS /C/install, which installs bootblocks on floppy discs
++# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
++# AFS /usr/afsws/bin/install, which mishandles nonexistent args
++# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
++# ./install, which can be erroneously created by make from ./install.sh.
++echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
++echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
++if test -z "$INSTALL"; then
++if test "${ac_cv_path_install+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ # Account for people who put trailing slashes in PATH elements.
++case $as_dir/ in
++ ./ | .// | /cC/* | \
++ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
++ /usr/ucb/* ) ;;
++ *)
++ # OSF1 and SCO ODT 3.0 have their own names for install.
++ # Don't use installbsd from OSF since it installs stuff as root
++ # by default.
++ for ac_prog in ginstall scoinst install; do
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
++ if test $ac_prog = install &&
++ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
++ # AIX install. It has an incompatible calling convention.
++ :
++ elif test $ac_prog = install &&
++ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
++ # program-specific install script used by HP pwplus--don't use.
++ :
++ else
++ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
++ break 3
++ fi
++ fi
++ done
++ done
++ ;;
++esac
++done
++
++
++fi
++ if test "${ac_cv_path_install+set}" = set; then
++ INSTALL=$ac_cv_path_install
++ else
++ # As a last resort, use the slow shell script. We don't cache a
++ # path for INSTALL within a source directory, because that will
++ # break other packages using the cache if that directory is
++ # removed, or if the path is relative.
++ INSTALL=$ac_install_sh
++ fi
++fi
++echo "$as_me:$LINENO: result: $INSTALL" >&5
++echo "${ECHO_T}$INSTALL" >&6
++
++# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
++# It thinks the first close brace ends the variable substitution.
++test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
++
++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
++
++test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
++
++echo "$as_me:$LINENO: checking whether build environment is sane" >&5
++echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
++# Just in case
++sleep 1
++echo timestamp > conftest.file
++# Do `set' in a subshell so we don't clobber the current shell's
++# arguments. Must try -L first in case configure is actually a
++# symlink; some systems play weird games with the mod time of symlinks
++# (eg FreeBSD returns the mod time of the symlink's containing
++# directory).
++if (
++ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
++ if test "$*" = "X"; then
++ # -L didn't work.
++ set X `ls -t $srcdir/configure conftest.file`
++ fi
++ rm -f conftest.file
++ if test "$*" != "X $srcdir/configure conftest.file" \
++ && test "$*" != "X conftest.file $srcdir/configure"; then
++
++ # If neither matched, then we have a broken ls. This can happen
++ # if, for instance, CONFIG_SHELL is bash and it inherits a
++ # broken ls alias from the environment. This has actually
++ # happened. Such a system could not be considered "sane".
++ { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
++alias in your environment" >&5
++echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
++alias in your environment" >&2;}
++ { (exit 1); exit 1; }; }
++ fi
++
++ test "$2" = conftest.file
++ )
++then
++ # Ok.
++ :
++else
++ { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
++Check your system clock" >&5
++echo "$as_me: error: newly created file is older than distributed files!
++Check your system clock" >&2;}
++ { (exit 1); exit 1; }; }
++fi
++echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++test "$program_prefix" != NONE &&
++ program_transform_name="s,^,$program_prefix,;$program_transform_name"
++# Use a double $ so make ignores it.
++test "$program_suffix" != NONE &&
++ program_transform_name="s,\$,$program_suffix,;$program_transform_name"
++# Double any \ or $. echo might interpret backslashes.
++# By default was `s,x,x', remove it if useless.
++cat <<\_ACEOF >conftest.sed
++s/[\\$]/&&/g;s/;s,x,x,$//
++_ACEOF
++program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
++rm conftest.sed
++
++
++# expand $ac_aux_dir to an absolute path
++am_aux_dir=`cd $ac_aux_dir && pwd`
++
++test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
++# Use eval to expand $SHELL
++if eval "$MISSING --run true"; then
++ am_missing_run="$MISSING --run "
++else
++ am_missing_run=
++ { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
++echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
++fi
++
++for ac_prog in gawk mawk nawk awk
++do
++ # Extract the first word of "$ac_prog", so it can be a program name with args.
++set dummy $ac_prog; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_AWK+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$AWK"; then
++ ac_cv_prog_AWK="$AWK" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_AWK="$ac_prog"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++AWK=$ac_cv_prog_AWK
++if test -n "$AWK"; then
++ echo "$as_me:$LINENO: result: $AWK" >&5
++echo "${ECHO_T}$AWK" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ test -n "$AWK" && break
++done
++
++echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
++echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
++set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
++if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.make <<\_ACEOF
++all:
++ @echo 'ac_maketemp="$(MAKE)"'
++_ACEOF
++# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
++eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
++if test -n "$ac_maketemp"; then
++ eval ac_cv_prog_make_${ac_make}_set=yes
++else
++ eval ac_cv_prog_make_${ac_make}_set=no
++fi
++rm -f conftest.make
++fi
++if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ SET_MAKE=
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ SET_MAKE="MAKE=${MAKE-make}"
++fi
++
++ # test to see if srcdir already configured
++if test "`cd $srcdir && pwd`" != "`pwd`" &&
++ test -f $srcdir/config.status; then
++ { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
++echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
++ { (exit 1); exit 1; }; }
++fi
++
++# Define the identity of the package.
++ PACKAGE=snort
++ VERSION=2.0.1
++
++
++cat >>confdefs.h <<_ACEOF
++@%:@define PACKAGE "$PACKAGE"
++_ACEOF
++
++
++cat >>confdefs.h <<_ACEOF
++@%:@define VERSION "$VERSION"
++_ACEOF
++
++# Some tools Automake needs.
++
++ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
++
++
++AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
++
++
++AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
++
++
++AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
++
++
++MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
++
++
++AMTAR=${AMTAR-"${am_missing_run}tar"}
++
++install_sh=${install_sh-"$am_aux_dir/install-sh"}
++
++# Installed binaries are usually stripped using `strip' when the user
++# run `make install-strip'. However `strip' might not be the right
++# tool to use in cross-compilation environments, therefore Automake
++# will honor the `STRIP' environment variable to overrule this program.
++if test "$cross_compiling" != no; then
++ if test -n "$ac_tool_prefix"; then
++ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
++set dummy ${ac_tool_prefix}strip; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_STRIP+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$STRIP"; then
++ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++STRIP=$ac_cv_prog_STRIP
++if test -n "$STRIP"; then
++ echo "$as_me:$LINENO: result: $STRIP" >&5
++echo "${ECHO_T}$STRIP" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++fi
++if test -z "$ac_cv_prog_STRIP"; then
++ ac_ct_STRIP=$STRIP
++ # Extract the first word of "strip", so it can be a program name with args.
++set dummy strip; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$ac_ct_STRIP"; then
++ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_ac_ct_STRIP="strip"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++ test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
++fi
++fi
++ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
++if test -n "$ac_ct_STRIP"; then
++ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
++echo "${ECHO_T}$ac_ct_STRIP" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ STRIP=$ac_ct_STRIP
++else
++ STRIP="$ac_cv_prog_STRIP"
++fi
++
++fi
++INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
++
++# We need awk for the "check" target. The system "awk" is bad on
++# some platforms.
++
++
++
++rm -f .deps 2>/dev/null
++mkdir .deps 2>/dev/null
++if test -d .deps; then
++ DEPDIR=.deps
++else
++ # MS-DOS does not allow filenames that begin with a dot.
++ DEPDIR=_deps
++fi
++rmdir .deps 2>/dev/null
++
++
++ ac_config_commands="$ac_config_commands depfiles"
++
++
++am_make=${MAKE-make}
++cat > confinc << 'END'
++doit:
++ @echo done
++END
++# If we don't find an include directive, just comment out the code.
++echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
++echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
++am__include="#"
++am__quote=
++_am_result=none
++# First try GNU make style include.
++echo "include confinc" > confmf
++# We grep out `Entering directory' and `Leaving directory'
++# messages which can occur if `w' ends up in MAKEFLAGS.
++# In particular we don't look at `^make:' because GNU make might
++# be invoked under some other name (usually "gmake"), in which
++# case it prints its new name instead of `make'.
++if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
++ am__include=include
++ am__quote=
++ _am_result=GNU
++fi
++# Now try BSD make style include.
++if test "$am__include" = "#"; then
++ echo '.include "confinc"' > confmf
++ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
++ am__include=.include
++ am__quote="\""
++ _am_result=BSD
++ fi
++fi
++
++
++echo "$as_me:$LINENO: result: $_am_result" >&5
++echo "${ECHO_T}$_am_result" >&6
++rm -f confinc confmf
++
++# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
++if test "${enable_dependency_tracking+set}" = set; then
++ enableval="$enable_dependency_tracking"
++
++fi;
++if test "x$enable_dependency_tracking" != xno; then
++ am_depcomp="$ac_aux_dir/depcomp"
++ AMDEPBACKSLASH='\'
++fi
++
++
++if test "x$enable_dependency_tracking" != xno; then
++ AMDEP_TRUE=
++ AMDEP_FALSE='#'
++else
++ AMDEP_TRUE='#'
++ AMDEP_FALSE=
++fi
++
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++if test -n "$ac_tool_prefix"; then
++ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
++set dummy ${ac_tool_prefix}gcc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$CC"; then
++ ac_cv_prog_CC="$CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_CC="${ac_tool_prefix}gcc"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++ echo "$as_me:$LINENO: result: $CC" >&5
++echo "${ECHO_T}$CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++fi
++if test -z "$ac_cv_prog_CC"; then
++ ac_ct_CC=$CC
++ # Extract the first word of "gcc", so it can be a program name with args.
++set dummy gcc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$ac_ct_CC"; then
++ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_ac_ct_CC="gcc"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++ac_ct_CC=$ac_cv_prog_ac_ct_CC
++if test -n "$ac_ct_CC"; then
++ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
++echo "${ECHO_T}$ac_ct_CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ CC=$ac_ct_CC
++else
++ CC="$ac_cv_prog_CC"
++fi
++
++if test -z "$CC"; then
++ if test -n "$ac_tool_prefix"; then
++ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
++set dummy ${ac_tool_prefix}cc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$CC"; then
++ ac_cv_prog_CC="$CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_CC="${ac_tool_prefix}cc"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++ echo "$as_me:$LINENO: result: $CC" >&5
++echo "${ECHO_T}$CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++fi
++if test -z "$ac_cv_prog_CC"; then
++ ac_ct_CC=$CC
++ # Extract the first word of "cc", so it can be a program name with args.
++set dummy cc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$ac_ct_CC"; then
++ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_ac_ct_CC="cc"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++ac_ct_CC=$ac_cv_prog_ac_ct_CC
++if test -n "$ac_ct_CC"; then
++ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
++echo "${ECHO_T}$ac_ct_CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ CC=$ac_ct_CC
++else
++ CC="$ac_cv_prog_CC"
++fi
++
++fi
++if test -z "$CC"; then
++ # Extract the first word of "cc", so it can be a program name with args.
++set dummy cc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$CC"; then
++ ac_cv_prog_CC="$CC" # Let the user override the test.
++else
++ ac_prog_rejected=no
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
++ ac_prog_rejected=yes
++ continue
++ fi
++ ac_cv_prog_CC="cc"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++if test $ac_prog_rejected = yes; then
++ # We found a bogon in the path, so make sure we never use it.
++ set dummy $ac_cv_prog_CC
++ shift
++ if test $@%:@ != 0; then
++ # We chose a different compiler from the bogus one.
++ # However, it has the same basename, so the bogon will be chosen
++ # first if we set CC to just the basename; use the full file name.
++ shift
++ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
++ fi
++fi
++fi
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++ echo "$as_me:$LINENO: result: $CC" >&5
++echo "${ECHO_T}$CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++fi
++if test -z "$CC"; then
++ if test -n "$ac_tool_prefix"; then
++ for ac_prog in cl
++ do
++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
++set dummy $ac_tool_prefix$ac_prog; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$CC"; then
++ ac_cv_prog_CC="$CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++ echo "$as_me:$LINENO: result: $CC" >&5
++echo "${ECHO_T}$CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ test -n "$CC" && break
++ done
++fi
++if test -z "$CC"; then
++ ac_ct_CC=$CC
++ for ac_prog in cl
++do
++ # Extract the first word of "$ac_prog", so it can be a program name with args.
++set dummy $ac_prog; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$ac_ct_CC"; then
++ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_ac_ct_CC="$ac_prog"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++ac_ct_CC=$ac_cv_prog_ac_ct_CC
++if test -n "$ac_ct_CC"; then
++ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
++echo "${ECHO_T}$ac_ct_CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ test -n "$ac_ct_CC" && break
++done
++
++ CC=$ac_ct_CC
++fi
++
++fi
++
++
++test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
++See \`config.log' for more details." >&5
++echo "$as_me: error: no acceptable C compiler found in \$PATH
++See \`config.log' for more details." >&2;}
++ { (exit 1); exit 1; }; }
++
++# Provide some information about the compiler.
++echo "$as_me:$LINENO:" \
++ "checking for C compiler version" >&5
++ac_compiler=`set X $ac_compile; echo $2`
++{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
++ (eval $ac_compiler --version </dev/null >&5) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }
++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
++ (eval $ac_compiler -v </dev/null >&5) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }
++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
++ (eval $ac_compiler -V </dev/null >&5) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++int
++main ()
++{
++
++ ;
++ return 0;
++}
++_ACEOF
++ac_clean_files_save=$ac_clean_files
++ac_clean_files="$ac_clean_files a.out a.exe b.out"
++# Try to create an executable without -o first, disregard a.out.
++# It will help us diagnose broken compilers, and finding out an intuition
++# of exeext.
++echo "$as_me:$LINENO: checking for C compiler default output" >&5
++echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
++ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
++if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
++ (eval $ac_link_default) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; then
++ # Find the output, starting from the most likely. This scheme is
++# not robust to junk in `.', hence go to wildcards (a.*) only as a last
++# resort.
++
++# Be careful to initialize this variable, since it used to be cached.
++# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
++ac_cv_exeext=
++# b.out is created by i960 compilers.
++for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
++do
++ test -f "$ac_file" || continue
++ case $ac_file in
++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
++ ;;
++ conftest.$ac_ext )
++ # This is the source file.
++ ;;
++ [ab].out )
++ # We found the default executable, but exeext='' is most
++ # certainly right.
++ break;;
++ *.* )
++ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
++ # FIXME: I believe we export ac_cv_exeext for Libtool,
++ # but it would be cool to find out if it's true. Does anybody
++ # maintain Libtool? --akim.
++ export ac_cv_exeext
++ break;;
++ * )
++ break;;
++ esac
++done
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
++See \`config.log' for more details." >&5
++echo "$as_me: error: C compiler cannot create executables
++See \`config.log' for more details." >&2;}
++ { (exit 77); exit 77; }; }
++fi
++
++ac_exeext=$ac_cv_exeext
++echo "$as_me:$LINENO: result: $ac_file" >&5
++echo "${ECHO_T}$ac_file" >&6
++
++# Check the compiler produces executables we can run. If not, either
++# the compiler is broken, or we cross compile.
++echo "$as_me:$LINENO: checking whether the C compiler works" >&5
++echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
++# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
++# If not cross compiling, check that we can run a simple program.
++if test "$cross_compiling" != yes; then
++ if { ac_try='./$ac_file'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ cross_compiling=no
++ else
++ if test "$cross_compiling" = maybe; then
++ cross_compiling=yes
++ else
++ { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
++If you meant to cross compile, use \`--host'.
++See \`config.log' for more details." >&5
++echo "$as_me: error: cannot run C compiled programs.
++If you meant to cross compile, use \`--host'.
++See \`config.log' for more details." >&2;}
++ { (exit 1); exit 1; }; }
++ fi
++ fi
++fi
++echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++
++rm -f a.out a.exe conftest$ac_cv_exeext b.out
++ac_clean_files=$ac_clean_files_save
++# Check the compiler produces executables we can run. If not, either
++# the compiler is broken, or we cross compile.
++echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
++echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
++echo "$as_me:$LINENO: result: $cross_compiling" >&5
++echo "${ECHO_T}$cross_compiling" >&6
++
++echo "$as_me:$LINENO: checking for suffix of executables" >&5
++echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; then
++ # If both `conftest.exe' and `conftest' are `present' (well, observable)
++# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
++# work properly (i.e., refer to `conftest.exe'), while it won't with
++# `rm'.
++for ac_file in conftest.exe conftest conftest.*; do
++ test -f "$ac_file" || continue
++ case $ac_file in
++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
++ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
++ export ac_cv_exeext
++ break;;
++ * ) break;;
++ esac
++done
++else
++ { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
++See \`config.log' for more details." >&5
++echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
++See \`config.log' for more details." >&2;}
++ { (exit 1); exit 1; }; }
++fi
++
++rm -f conftest$ac_cv_exeext
++echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
++echo "${ECHO_T}$ac_cv_exeext" >&6
++
++rm -f conftest.$ac_ext
++EXEEXT=$ac_cv_exeext
++ac_exeext=$EXEEXT
++echo "$as_me:$LINENO: checking for suffix of object files" >&5
++echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
++if test "${ac_cv_objext+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++int
++main ()
++{
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.o conftest.obj
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; then
++ for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
++ case $ac_file in
++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
++ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
++ break;;
++ esac
++done
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
++See \`config.log' for more details." >&5
++echo "$as_me: error: cannot compute suffix of object files: cannot compile
++See \`config.log' for more details." >&2;}
++ { (exit 1); exit 1; }; }
++fi
++
++rm -f conftest.$ac_cv_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
++echo "${ECHO_T}$ac_cv_objext" >&6
++OBJEXT=$ac_cv_objext
++ac_objext=$OBJEXT
++echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
++echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
++if test "${ac_cv_c_compiler_gnu+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++int
++main ()
++{
++#ifndef __GNUC__
++ choke me
++#endif
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_compiler_gnu=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_compiler_gnu=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++ac_cv_c_compiler_gnu=$ac_compiler_gnu
++
++fi
++echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
++echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
++GCC=`test $ac_compiler_gnu = yes && echo yes`
++ac_test_CFLAGS=${CFLAGS+set}
++ac_save_CFLAGS=$CFLAGS
++CFLAGS="-g"
++echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
++echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
++if test "${ac_cv_prog_cc_g+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++int
++main ()
++{
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_prog_cc_g=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_prog_cc_g=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
++echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
++if test "$ac_test_CFLAGS" = set; then
++ CFLAGS=$ac_save_CFLAGS
++elif test $ac_cv_prog_cc_g = yes; then
++ if test "$GCC" = yes; then
++ CFLAGS="-g -O2"
++ else
++ CFLAGS="-g"
++ fi
++else
++ if test "$GCC" = yes; then
++ CFLAGS="-O2"
++ else
++ CFLAGS=
++ fi
++fi
++echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
++echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
++if test "${ac_cv_prog_cc_stdc+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_cv_prog_cc_stdc=no
++ac_save_CC=$CC
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#include <stdarg.h>
++#include <stdio.h>
++#include <sys/types.h>
++#include <sys/stat.h>
++/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
++struct buf { int x; };
++FILE * (*rcsopen) (struct buf *, struct stat *, int);
++static char *e (p, i)
++ char **p;
++ int i;
++{
++ return p[i];
++}
++static char *f (char * (*g) (char **, int), char **p, ...)
++{
++ char *s;
++ va_list v;
++ va_start (v,p);
++ s = g (p, va_arg (v,int));
++ va_end (v);
++ return s;
++}
++int test (int i, double x);
++struct s1 {int (*f) (int a);};
++struct s2 {int (*f) (double a);};
++int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
++int argc;
++char **argv;
++int
++main ()
++{
++return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
++ ;
++ return 0;
++}
++_ACEOF
++# Don't try gcc -ansi; that turns off useful extensions and
++# breaks some systems' header files.
++# AIX -qlanglvl=ansi
++# Ultrix and OSF/1 -std1
++# HP-UX 10.20 and later -Ae
++# HP-UX older versions -Aa -D_HPUX_SOURCE
++# SVR4 -Xc -D__EXTENSIONS__
++for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
++do
++ CC="$ac_save_CC $ac_arg"
++ rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_prog_cc_stdc=$ac_arg
++break
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.$ac_objext
++done
++rm -f conftest.$ac_ext conftest.$ac_objext
++CC=$ac_save_CC
++
++fi
++
++case "x$ac_cv_prog_cc_stdc" in
++ x|xno)
++ echo "$as_me:$LINENO: result: none needed" >&5
++echo "${ECHO_T}none needed" >&6 ;;
++ *)
++ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
++echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
++ CC="$CC $ac_cv_prog_cc_stdc" ;;
++esac
++
++# Some people use a C++ compiler to compile C. Since we use `exit',
++# in C++ we need to declare it. In case someone uses the same compiler
++# for both compiling C and C++ we need to have the C++ compiler decide
++# the declaration of exit, since it's the most demanding environment.
++cat >conftest.$ac_ext <<_ACEOF
++@%:@ifndef __cplusplus
++ choke me
++@%:@endif
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ for ac_declaration in \
++ ''\
++ '#include <stdlib.h>' \
++ 'extern "C" void std::exit (int) throw (); using std::exit;' \
++ 'extern "C" void std::exit (int); using std::exit;' \
++ 'extern "C" void exit (int) throw ();' \
++ 'extern "C" void exit (int);' \
++ 'void exit (int);'
++do
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++@%:@include <stdlib.h>
++$ac_declaration
++int
++main ()
++{
++exit (42);
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ :
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++continue
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_declaration
++int
++main ()
++{
++exit (42);
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ break
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++done
++rm -f conftest*
++if test -n "$ac_declaration"; then
++ echo '#ifdef __cplusplus' >>confdefs.h
++ echo $ac_declaration >>confdefs.h
++ echo '#endif' >>confdefs.h
++fi
++
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++depcc="$CC" am_compiler_list=
++
++echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
++if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
++ # We make a subdir and do the tests there. Otherwise we can end up
++ # making bogus files that we don't know about and never remove. For
++ # instance it was reported that on HP-UX the gcc test will end up
++ # making a dummy file named `D' -- because `-MD' means `put the output
++ # in D'.
++ mkdir conftest.dir
++ # Copy depcomp to subdir because otherwise we won't find it if we're
++ # using a relative directory.
++ cp "$am_depcomp" conftest.dir
++ cd conftest.dir
++
++ am_cv_CC_dependencies_compiler_type=none
++ if test "$am_compiler_list" = ""; then
++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
++ fi
++ for depmode in $am_compiler_list; do
++ # We need to recreate these files for each test, as the compiler may
++ # overwrite some of them when testing with obscure command lines.
++ # This happens at least with the AIX C compiler.
++ echo '#include "conftest.h"' > conftest.c
++ echo 'int i;' > conftest.h
++ echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
++
++ case $depmode in
++ nosideeffect)
++ # after this tag, mechanisms are not by side-effect, so they'll
++ # only be used when explicitly requested
++ if test "x$enable_dependency_tracking" = xyes; then
++ continue
++ else
++ break
++ fi
++ ;;
++ none) break ;;
++ esac
++ # We check with `-c' and `-o' for the sake of the "dashmstdout"
++ # mode. It turns out that the SunPro C++ compiler does not properly
++ # handle `-M -o', and we need to detect this.
++ if depmode=$depmode \
++ source=conftest.c object=conftest.o \
++ depfile=conftest.Po tmpdepfile=conftest.TPo \
++ $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
++ grep conftest.h conftest.Po > /dev/null 2>&1 &&
++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
++ am_cv_CC_dependencies_compiler_type=$depmode
++ break
++ fi
++ done
++
++ cd ..
++ rm -rf conftest.dir
++else
++ am_cv_CC_dependencies_compiler_type=none
++fi
++
++fi
++echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
++echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
++CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
++
++
++
++
++
++
++echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
++echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
++if test "${am_cv_prog_cc_stdc+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ am_cv_prog_cc_stdc=no
++ac_save_CC="$CC"
++# Don't try gcc -ansi; that turns off useful extensions and
++# breaks some systems' header files.
++# AIX -qlanglvl=ansi
++# Ultrix and OSF/1 -std1
++# HP-UX 10.20 and later -Ae
++# HP-UX older versions -Aa -D_HPUX_SOURCE
++# SVR4 -Xc -D__EXTENSIONS__
++for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
++do
++ CC="$ac_save_CC $ac_arg"
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#include <stdarg.h>
++#include <stdio.h>
++#include <sys/types.h>
++#include <sys/stat.h>
++/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
++struct buf { int x; };
++FILE * (*rcsopen) (struct buf *, struct stat *, int);
++static char *e (p, i)
++ char **p;
++ int i;
++{
++ return p[i];
++}
++static char *f (char * (*g) (char **, int), char **p, ...)
++{
++ char *s;
++ va_list v;
++ va_start (v,p);
++ s = g (p, va_arg (v,int));
++ va_end (v);
++ return s;
++}
++int test (int i, double x);
++struct s1 {int (*f) (int a);};
++struct s2 {int (*f) (double a);};
++int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
++int argc;
++char **argv;
++
++int
++main ()
++{
++
++return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ am_cv_prog_cc_stdc="$ac_arg"; break
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++done
++CC="$ac_save_CC"
++
++fi
++
++if test -z "$am_cv_prog_cc_stdc"; then
++ echo "$as_me:$LINENO: result: none needed" >&5
++echo "${ECHO_T}none needed" >&6
++else
++ echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
++echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
++fi
++case "x$am_cv_prog_cc_stdc" in
++ x|xno) ;;
++ *) CC="$CC $am_cv_prog_cc_stdc" ;;
++esac
++
++if test -n "$ac_tool_prefix"; then
++ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
++set dummy ${ac_tool_prefix}ranlib; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_RANLIB+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$RANLIB"; then
++ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++RANLIB=$ac_cv_prog_RANLIB
++if test -n "$RANLIB"; then
++ echo "$as_me:$LINENO: result: $RANLIB" >&5
++echo "${ECHO_T}$RANLIB" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++fi
++if test -z "$ac_cv_prog_RANLIB"; then
++ ac_ct_RANLIB=$RANLIB
++ # Extract the first word of "ranlib", so it can be a program name with args.
++set dummy ranlib; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$ac_ct_RANLIB"; then
++ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_ac_ct_RANLIB="ranlib"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++ test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
++fi
++fi
++ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
++if test -n "$ac_ct_RANLIB"; then
++ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
++echo "${ECHO_T}$ac_ct_RANLIB" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ RANLIB=$ac_ct_RANLIB
++else
++ RANLIB="$ac_cv_prog_RANLIB"
++fi
++
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++if test -n "$ac_tool_prefix"; then
++ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
++set dummy ${ac_tool_prefix}gcc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$CC"; then
++ ac_cv_prog_CC="$CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_CC="${ac_tool_prefix}gcc"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++ echo "$as_me:$LINENO: result: $CC" >&5
++echo "${ECHO_T}$CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++fi
++if test -z "$ac_cv_prog_CC"; then
++ ac_ct_CC=$CC
++ # Extract the first word of "gcc", so it can be a program name with args.
++set dummy gcc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$ac_ct_CC"; then
++ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_ac_ct_CC="gcc"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++ac_ct_CC=$ac_cv_prog_ac_ct_CC
++if test -n "$ac_ct_CC"; then
++ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
++echo "${ECHO_T}$ac_ct_CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ CC=$ac_ct_CC
++else
++ CC="$ac_cv_prog_CC"
++fi
++
++if test -z "$CC"; then
++ if test -n "$ac_tool_prefix"; then
++ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
++set dummy ${ac_tool_prefix}cc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$CC"; then
++ ac_cv_prog_CC="$CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_CC="${ac_tool_prefix}cc"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++ echo "$as_me:$LINENO: result: $CC" >&5
++echo "${ECHO_T}$CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++fi
++if test -z "$ac_cv_prog_CC"; then
++ ac_ct_CC=$CC
++ # Extract the first word of "cc", so it can be a program name with args.
++set dummy cc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$ac_ct_CC"; then
++ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_ac_ct_CC="cc"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++ac_ct_CC=$ac_cv_prog_ac_ct_CC
++if test -n "$ac_ct_CC"; then
++ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
++echo "${ECHO_T}$ac_ct_CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ CC=$ac_ct_CC
++else
++ CC="$ac_cv_prog_CC"
++fi
++
++fi
++if test -z "$CC"; then
++ # Extract the first word of "cc", so it can be a program name with args.
++set dummy cc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$CC"; then
++ ac_cv_prog_CC="$CC" # Let the user override the test.
++else
++ ac_prog_rejected=no
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
++ ac_prog_rejected=yes
++ continue
++ fi
++ ac_cv_prog_CC="cc"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++if test $ac_prog_rejected = yes; then
++ # We found a bogon in the path, so make sure we never use it.
++ set dummy $ac_cv_prog_CC
++ shift
++ if test $@%:@ != 0; then
++ # We chose a different compiler from the bogus one.
++ # However, it has the same basename, so the bogon will be chosen
++ # first if we set CC to just the basename; use the full file name.
++ shift
++ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
++ fi
++fi
++fi
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++ echo "$as_me:$LINENO: result: $CC" >&5
++echo "${ECHO_T}$CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++fi
++if test -z "$CC"; then
++ if test -n "$ac_tool_prefix"; then
++ for ac_prog in cl
++ do
++ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
++set dummy $ac_tool_prefix$ac_prog; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$CC"; then
++ ac_cv_prog_CC="$CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++ echo "$as_me:$LINENO: result: $CC" >&5
++echo "${ECHO_T}$CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ test -n "$CC" && break
++ done
++fi
++if test -z "$CC"; then
++ ac_ct_CC=$CC
++ for ac_prog in cl
++do
++ # Extract the first word of "$ac_prog", so it can be a program name with args.
++set dummy $ac_prog; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -n "$ac_ct_CC"; then
++ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_prog_ac_ct_CC="$ac_prog"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++fi
++fi
++ac_ct_CC=$ac_cv_prog_ac_ct_CC
++if test -n "$ac_ct_CC"; then
++ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
++echo "${ECHO_T}$ac_ct_CC" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ test -n "$ac_ct_CC" && break
++done
++
++ CC=$ac_ct_CC
++fi
++
++fi
++
++
++test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
++See \`config.log' for more details." >&5
++echo "$as_me: error: no acceptable C compiler found in \$PATH
++See \`config.log' for more details." >&2;}
++ { (exit 1); exit 1; }; }
++
++# Provide some information about the compiler.
++echo "$as_me:$LINENO:" \
++ "checking for C compiler version" >&5
++ac_compiler=`set X $ac_compile; echo $2`
++{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
++ (eval $ac_compiler --version </dev/null >&5) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }
++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
++ (eval $ac_compiler -v </dev/null >&5) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }
++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
++ (eval $ac_compiler -V </dev/null >&5) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }
++
++echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
++echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
++if test "${ac_cv_c_compiler_gnu+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++int
++main ()
++{
++#ifndef __GNUC__
++ choke me
++#endif
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_compiler_gnu=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_compiler_gnu=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++ac_cv_c_compiler_gnu=$ac_compiler_gnu
++
++fi
++echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
++echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
++GCC=`test $ac_compiler_gnu = yes && echo yes`
++ac_test_CFLAGS=${CFLAGS+set}
++ac_save_CFLAGS=$CFLAGS
++CFLAGS="-g"
++echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
++echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
++if test "${ac_cv_prog_cc_g+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++int
++main ()
++{
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_prog_cc_g=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_prog_cc_g=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
++echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
++if test "$ac_test_CFLAGS" = set; then
++ CFLAGS=$ac_save_CFLAGS
++elif test $ac_cv_prog_cc_g = yes; then
++ if test "$GCC" = yes; then
++ CFLAGS="-g -O2"
++ else
++ CFLAGS="-g"
++ fi
++else
++ if test "$GCC" = yes; then
++ CFLAGS="-O2"
++ else
++ CFLAGS=
++ fi
++fi
++echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
++echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
++if test "${ac_cv_prog_cc_stdc+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_cv_prog_cc_stdc=no
++ac_save_CC=$CC
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#include <stdarg.h>
++#include <stdio.h>
++#include <sys/types.h>
++#include <sys/stat.h>
++/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
++struct buf { int x; };
++FILE * (*rcsopen) (struct buf *, struct stat *, int);
++static char *e (p, i)
++ char **p;
++ int i;
++{
++ return p[i];
++}
++static char *f (char * (*g) (char **, int), char **p, ...)
++{
++ char *s;
++ va_list v;
++ va_start (v,p);
++ s = g (p, va_arg (v,int));
++ va_end (v);
++ return s;
++}
++int test (int i, double x);
++struct s1 {int (*f) (int a);};
++struct s2 {int (*f) (double a);};
++int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
++int argc;
++char **argv;
++int
++main ()
++{
++return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
++ ;
++ return 0;
++}
++_ACEOF
++# Don't try gcc -ansi; that turns off useful extensions and
++# breaks some systems' header files.
++# AIX -qlanglvl=ansi
++# Ultrix and OSF/1 -std1
++# HP-UX 10.20 and later -Ae
++# HP-UX older versions -Aa -D_HPUX_SOURCE
++# SVR4 -Xc -D__EXTENSIONS__
++for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
++do
++ CC="$ac_save_CC $ac_arg"
++ rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_prog_cc_stdc=$ac_arg
++break
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.$ac_objext
++done
++rm -f conftest.$ac_ext conftest.$ac_objext
++CC=$ac_save_CC
++
++fi
++
++case "x$ac_cv_prog_cc_stdc" in
++ x|xno)
++ echo "$as_me:$LINENO: result: none needed" >&5
++echo "${ECHO_T}none needed" >&6 ;;
++ *)
++ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
++echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
++ CC="$CC $ac_cv_prog_cc_stdc" ;;
++esac
++
++# Some people use a C++ compiler to compile C. Since we use `exit',
++# in C++ we need to declare it. In case someone uses the same compiler
++# for both compiling C and C++ we need to have the C++ compiler decide
++# the declaration of exit, since it's the most demanding environment.
++cat >conftest.$ac_ext <<_ACEOF
++@%:@ifndef __cplusplus
++ choke me
++@%:@endif
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ for ac_declaration in \
++ ''\
++ '#include <stdlib.h>' \
++ 'extern "C" void std::exit (int) throw (); using std::exit;' \
++ 'extern "C" void std::exit (int); using std::exit;' \
++ 'extern "C" void exit (int) throw ();' \
++ 'extern "C" void exit (int);' \
++ 'void exit (int);'
++do
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++@%:@include <stdlib.h>
++$ac_declaration
++int
++main ()
++{
++exit (42);
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ :
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++continue
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_declaration
++int
++main ()
++{
++exit (42);
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ break
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++done
++rm -f conftest*
++if test -n "$ac_declaration"; then
++ echo '#ifdef __cplusplus' >>confdefs.h
++ echo $ac_declaration >>confdefs.h
++ echo '#endif' >>confdefs.h
++fi
++
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++depcc="$CC" am_compiler_list=
++
++echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
++if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
++ # We make a subdir and do the tests there. Otherwise we can end up
++ # making bogus files that we don't know about and never remove. For
++ # instance it was reported that on HP-UX the gcc test will end up
++ # making a dummy file named `D' -- because `-MD' means `put the output
++ # in D'.
++ mkdir conftest.dir
++ # Copy depcomp to subdir because otherwise we won't find it if we're
++ # using a relative directory.
++ cp "$am_depcomp" conftest.dir
++ cd conftest.dir
++
++ am_cv_CC_dependencies_compiler_type=none
++ if test "$am_compiler_list" = ""; then
++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
++ fi
++ for depmode in $am_compiler_list; do
++ # We need to recreate these files for each test, as the compiler may
++ # overwrite some of them when testing with obscure command lines.
++ # This happens at least with the AIX C compiler.
++ echo '#include "conftest.h"' > conftest.c
++ echo 'int i;' > conftest.h
++ echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
++
++ case $depmode in
++ nosideeffect)
++ # after this tag, mechanisms are not by side-effect, so they'll
++ # only be used when explicitly requested
++ if test "x$enable_dependency_tracking" = xyes; then
++ continue
++ else
++ break
++ fi
++ ;;
++ none) break ;;
++ esac
++ # We check with `-c' and `-o' for the sake of the "dashmstdout"
++ # mode. It turns out that the SunPro C++ compiler does not properly
++ # handle `-M -o', and we need to detect this.
++ if depmode=$depmode \
++ source=conftest.c object=conftest.o \
++ depfile=conftest.Po tmpdepfile=conftest.TPo \
++ $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
++ grep conftest.h conftest.Po > /dev/null 2>&1 &&
++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
++ am_cv_CC_dependencies_compiler_type=$depmode
++ break
++ fi
++ done
++
++ cd ..
++ rm -rf conftest.dir
++else
++ am_cv_CC_dependencies_compiler_type=none
++fi
++
++fi
++echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
++echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
++CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
++
++
++ if test -n "$GCC"; then
++ CFLAGS="$CFLAGS -Wall "
++ fi
++
++
++# Check whether --enable-debug or --disable-debug was given.
++if test "${enable_debug+set}" = set; then
++ enableval="$enable_debug"
++ if test -n "$GCC"; then
++ CFLAGS="-O0 -DDEBUG -g"
++ else
++ CFLAGS="$CFLAGS -DDEBUG"
++ fi
++
++fi;
++
++# Check whether --enable-profile or --disable-profile was given.
++if test "${enable_profile+set}" = set; then
++ enableval="$enable_profile"
++ if test -n "$GCC"; then
++ CFLAGS="$CFLAGS -DPROFILE -pg"
++ else
++ CFLAGS="$CFLAGS -DPROFILE"
++ fi
++
++fi;
++
++# Make sure we can run config.sub.
++$ac_config_sub sun4 >/dev/null 2>&1 ||
++ { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
++echo "$as_me: error: cannot run $ac_config_sub" >&2;}
++ { (exit 1); exit 1; }; }
++
++echo "$as_me:$LINENO: checking build system type" >&5
++echo $ECHO_N "checking build system type... $ECHO_C" >&6
++if test "${ac_cv_build+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_cv_build_alias=$build_alias
++test -z "$ac_cv_build_alias" &&
++ ac_cv_build_alias=`$ac_config_guess`
++test -z "$ac_cv_build_alias" &&
++ { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
++echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
++ { (exit 1); exit 1; }; }
++ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
++ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
++echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
++ { (exit 1); exit 1; }; }
++
++fi
++echo "$as_me:$LINENO: result: $ac_cv_build" >&5
++echo "${ECHO_T}$ac_cv_build" >&6
++build=$ac_cv_build
++build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
++build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
++build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
++
++
++echo "$as_me:$LINENO: checking host system type" >&5
++echo $ECHO_N "checking host system type... $ECHO_C" >&6
++if test "${ac_cv_host+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_cv_host_alias=$host_alias
++test -z "$ac_cv_host_alias" &&
++ ac_cv_host_alias=$ac_cv_build_alias
++ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
++ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
++echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
++ { (exit 1); exit 1; }; }
++
++fi
++echo "$as_me:$LINENO: result: $ac_cv_host" >&5
++echo "${ECHO_T}$ac_cv_host" >&6
++host=$ac_cv_host
++host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
++host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
++host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
++
++
++linux=no
++sunos4=no
++
++echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
++echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
++if test "${ac_cv_c_bigendian+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ # See if sys/param.h defines the BYTE_ORDER macro.
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#include <sys/types.h>
++#include <sys/param.h>
++
++int
++main ()
++{
++#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
++ bogus endian macros
++#endif
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ # It does; now see whether it defined to BIG_ENDIAN or not.
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#include <sys/types.h>
++#include <sys/param.h>
++
++int
++main ()
++{
++#if BYTE_ORDER != BIG_ENDIAN
++ not big endian
++#endif
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_c_bigendian=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_c_bigendian=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++# It does not; compile a test program.
++if test "$cross_compiling" = yes; then
++ # try to guess the endianness by grepping values into an object file
++ ac_cv_c_bigendian=unknown
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
++short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
++void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
++short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
++short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
++void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
++int
++main ()
++{
++ _ascii (); _ebcdic ();
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
++ ac_cv_c_bigendian=yes
++fi
++if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
++ if test "$ac_cv_c_bigendian" = unknown; then
++ ac_cv_c_bigendian=no
++ else
++ # finding both strings is unlikely to happen, but who knows?
++ ac_cv_c_bigendian=unknown
++ fi
++fi
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++int
++main ()
++{
++ /* Are we little or big endian? From Harbison&Steele. */
++ union
++ {
++ long l;
++ char c[sizeof (long)];
++ } u;
++ u.l = 1;
++ exit (u.c[sizeof (long) - 1] == 1);
++}
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_c_bigendian=no
++else
++ echo "$as_me: program exited with status $ac_status" >&5
++echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++( exit $ac_status )
++ac_cv_c_bigendian=yes
++fi
++rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
++echo "${ECHO_T}$ac_cv_c_bigendian" >&6
++case $ac_cv_c_bigendian in
++ yes)
++
++cat >>confdefs.h <<\_ACEOF
++@%:@define WORDS_BIGENDIAN 1
++_ACEOF
++ ;;
++ no)
++ ;;
++ *)
++ { { echo "$as_me:$LINENO: error: unknown endianness
++presetting ac_cv_c_bigendian=no (or yes) will help" >&5
++echo "$as_me: error: unknown endianness
++presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
++ { (exit 1); exit 1; }; } ;;
++esac
++
++SHELL="/bin/sh"
++
++case "$host" in
++ *-openbsd2.6|*-openbsd2.5|*-openbsd2.4|*-openbsd2.3*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define OPENBSD 1
++_ACEOF
++
++ cat >>confdefs.h <<\_ACEOF
++@%:@define BROKEN_SIOCGIFMTU 1
++_ACEOF
++
++
++ ;;
++ *-openbsd*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define OPENBSD 1
++_ACEOF
++
++
++ ;;
++ *-sgi-irix5*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define IRIX 1
++_ACEOF
++
++ no_libsocket=yes
++ no_libnsl=yes
++ if test -z "$GCC"; then
++ sgi_cc=yes
++ fi
++ LDFLAGS=${LDFLAGS} -L/usr/local/lib
++ extra_incl=-I/usr/local/include
++ ;;
++ *-sgi-irix6*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define IRIX 1
++_ACEOF
++
++ no_libsocket=yes
++ no_libnsl=yes
++ if test -z "$GCC"; then
++ sgi_cc=yes
++ fi
++ LDFLAGS=${LDFLAGS} -L/usr/local/lib
++ extra_incl=-I/usr/local/include
++ ;;
++ *-solaris*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define SOLARIS 1
++_ACEOF
++
++ CPPFLAGS="${CPPFLAGS} -DBSD_COMP"
++ ;;
++ *-sunos*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define SUNOS 1
++_ACEOF
++
++ sunos4=yes
++ ;;
++ *-linux*)
++ linux=yes
++ cat >>confdefs.h <<\_ACEOF
++@%:@define LINUX 1
++_ACEOF
++
++ cat >>confdefs.h <<\_ACEOF
++@%:@define PCAP_TIMEOUT_IGNORED 1
++_ACEOF
++ # libpcap doesn't even LOOK at
++ # the timeout you give it under Linux
++
++ extra_incl=-I/usr/include/pcap
++ ;;
++ *-hpux10*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define HPUX 1
++_ACEOF
++
++ cat >>confdefs.h <<\_ACEOF
++@%:@define WORDS_BIGENDIAN 1
++_ACEOF
++
++
++ extra_incl=-I/usr/local/include
++ ;;
++
++ *-freebsd*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define FREEBSD 1
++_ACEOF
++
++
++ ;;
++ *-bsdi*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define BSDI 1
++_ACEOF
++
++ ;;
++ *-aix*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define AIX 1
++_ACEOF
++
++ broken_types=yes
++ ;;
++ *-osf4*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define OSF1 1
++_ACEOF
++
++ tru64_types=yes
++ ;;
++ *-osf5.1*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define OSF1 1
++_ACEOF
++
++ ;;
++ *-tru64*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define OSF1 1
++_ACEOF
++
++ tru64_types=yes
++ ;;
++# it is actually <platform>-apple-darwin1.2 or <platform>-apple-rhapsody5.x but lets stick with this for the moment
++ *-apple*)
++ cat >>confdefs.h <<\_ACEOF
++@%:@define MACOS 1
++_ACEOF
++
++ cat >>confdefs.h <<\_ACEOF
++@%:@define BROKEN_SIOCGIFMTU 1
++_ACEOF
++
++ LDFLAGS="${LDFLAGS} -L/sw/lib"
++ extra_incl=-I/sw/include
++esac
++
++# any sparc platform has to have this one defined.
++echo "$as_me:$LINENO: checking for sparc alignment" >&5
++echo $ECHO_N "checking for sparc alignment... $ECHO_C" >&6
++if eval "echo $host_cpu|grep -i sparc >/dev/null"; then
++ cat >>confdefs.h <<\_ACEOF
++@%:@define WORDS_MUSTALIGN 1
++_ACEOF
++
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
++echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
++# On Suns, sometimes $CPP names a directory.
++if test -n "$CPP" && test -d "$CPP"; then
++ CPP=
++fi
++if test -z "$CPP"; then
++ if test "${ac_cv_prog_CPP+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ # Double quotes because CPP needs to be expanded
++ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
++ do
++ ac_preproc_ok=false
++for ac_c_preproc_warn_flag in '' yes
++do
++ # Use a header file that comes with gcc, so configuring glibc
++ # with a fresh cross-compiler works.
++ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ # <limits.h> exists even on freestanding compilers.
++ # On the NeXT, cc -E runs the code through the compiler's parser,
++ # not just through cpp. "Syntax error" is here to catch this case.
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++@%:@ifdef __STDC__
++@%:@ include <limits.h>
++@%:@else
++@%:@ include <assert.h>
++@%:@endif
++ Syntax error
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } >/dev/null; then
++ if test -s conftest.err; then
++ ac_cpp_err=$ac_c_preproc_warn_flag
++ else
++ ac_cpp_err=
++ fi
++else
++ ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++ :
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ # Broken: fails on valid input.
++continue
++fi
++rm -f conftest.err conftest.$ac_ext
++
++ # OK, works on sane cases. Now check whether non-existent headers
++ # can be detected and how.
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++@%:@include <ac_nonexistent.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } >/dev/null; then
++ if test -s conftest.err; then
++ ac_cpp_err=$ac_c_preproc_warn_flag
++ else
++ ac_cpp_err=
++ fi
++else
++ ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++ # Broken: success on invalid input.
++continue
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ # Passes both tests.
++ac_preproc_ok=:
++break
++fi
++rm -f conftest.err conftest.$ac_ext
++
++done
++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
++rm -f conftest.err conftest.$ac_ext
++if $ac_preproc_ok; then
++ break
++fi
++
++ done
++ ac_cv_prog_CPP=$CPP
++
++fi
++ CPP=$ac_cv_prog_CPP
++else
++ ac_cv_prog_CPP=$CPP
++fi
++echo "$as_me:$LINENO: result: $CPP" >&5
++echo "${ECHO_T}$CPP" >&6
++ac_preproc_ok=false
++for ac_c_preproc_warn_flag in '' yes
++do
++ # Use a header file that comes with gcc, so configuring glibc
++ # with a fresh cross-compiler works.
++ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ # <limits.h> exists even on freestanding compilers.
++ # On the NeXT, cc -E runs the code through the compiler's parser,
++ # not just through cpp. "Syntax error" is here to catch this case.
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++@%:@ifdef __STDC__
++@%:@ include <limits.h>
++@%:@else
++@%:@ include <assert.h>
++@%:@endif
++ Syntax error
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } >/dev/null; then
++ if test -s conftest.err; then
++ ac_cpp_err=$ac_c_preproc_warn_flag
++ else
++ ac_cpp_err=
++ fi
++else
++ ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++ :
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ # Broken: fails on valid input.
++continue
++fi
++rm -f conftest.err conftest.$ac_ext
++
++ # OK, works on sane cases. Now check whether non-existent headers
++ # can be detected and how.
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++@%:@include <ac_nonexistent.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } >/dev/null; then
++ if test -s conftest.err; then
++ ac_cpp_err=$ac_c_preproc_warn_flag
++ else
++ ac_cpp_err=
++ fi
++else
++ ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++ # Broken: success on invalid input.
++continue
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ # Passes both tests.
++ac_preproc_ok=:
++break
++fi
++rm -f conftest.err conftest.$ac_ext
++
++done
++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
++rm -f conftest.err conftest.$ac_ext
++if $ac_preproc_ok; then
++ :
++else
++ { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
++See \`config.log' for more details." >&5
++echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
++See \`config.log' for more details." >&2;}
++ { (exit 1); exit 1; }; }
++fi
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++echo "$as_me:$LINENO: checking for egrep" >&5
++echo $ECHO_N "checking for egrep... $ECHO_C" >&6
++if test "${ac_cv_prog_egrep+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if echo a | (grep -E '(a|b)') >/dev/null 2>&1
++ then ac_cv_prog_egrep='grep -E'
++ else ac_cv_prog_egrep='egrep'
++ fi
++fi
++echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
++echo "${ECHO_T}$ac_cv_prog_egrep" >&6
++ EGREP=$ac_cv_prog_egrep
++
++
++echo "$as_me:$LINENO: checking for ANSI C header files" >&5
++echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
++if test "${ac_cv_header_stdc+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#include <stdlib.h>
++#include <stdarg.h>
++#include <string.h>
++#include <float.h>
++
++int
++main ()
++{
++
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_header_stdc=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_header_stdc=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++
++if test $ac_cv_header_stdc = yes; then
++ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#include <string.h>
++
++_ACEOF
++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++ $EGREP "memchr" >/dev/null 2>&1; then
++ :
++else
++ ac_cv_header_stdc=no
++fi
++rm -f conftest*
++
++fi
++
++if test $ac_cv_header_stdc = yes; then
++ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#include <stdlib.h>
++
++_ACEOF
++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++ $EGREP "free" >/dev/null 2>&1; then
++ :
++else
++ ac_cv_header_stdc=no
++fi
++rm -f conftest*
++
++fi
++
++if test $ac_cv_header_stdc = yes; then
++ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
++ if test "$cross_compiling" = yes; then
++ :
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#include <ctype.h>
++#if ((' ' & 0x0FF) == 0x020)
++# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
++# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
++#else
++# define ISLOWER(c) \
++ (('a' <= (c) && (c) <= 'i') \
++ || ('j' <= (c) && (c) <= 'r') \
++ || ('s' <= (c) && (c) <= 'z'))
++# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
++#endif
++
++#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
++int
++main ()
++{
++ int i;
++ for (i = 0; i < 256; i++)
++ if (XOR (islower (i), ISLOWER (i))
++ || toupper (i) != TOUPPER (i))
++ exit(2);
++ exit (0);
++}
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ :
++else
++ echo "$as_me: program exited with status $ac_status" >&5
++echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++( exit $ac_status )
++ac_cv_header_stdc=no
++fi
++rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
++echo "${ECHO_T}$ac_cv_header_stdc" >&6
++if test $ac_cv_header_stdc = yes; then
++
++cat >>confdefs.h <<\_ACEOF
++@%:@define STDC_HEADERS 1
++_ACEOF
++
++fi
++
++# On IRIX 5.3, sys/types and inttypes.h are conflicting.
++
++
++
++
++
++
++
++
++
++for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
++ inttypes.h stdint.h unistd.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++
++@%:@include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ eval "$as_ac_Header=yes"
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_Header=no"
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
++
++for ac_header in strings.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++ # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++@%:@include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_header_compiler=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++@%:@include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } >/dev/null; then
++ if test -s conftest.err; then
++ ac_cpp_err=$ac_c_preproc_warn_flag
++ else
++ ac_cpp_err=
++ fi
++else
++ ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++ ac_header_preproc=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So? What about this header?
++case $ac_header_compiler:$ac_header_preproc in
++ yes:no )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++ no:yes )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ eval "$as_ac_Header=$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
++for ac_header in string.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++ # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++@%:@include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_header_compiler=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++@%:@include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } >/dev/null; then
++ if test -s conftest.err; then
++ ac_cpp_err=$ac_c_preproc_warn_flag
++ else
++ ac_cpp_err=
++ fi
++else
++ ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++ ac_header_preproc=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So? What about this header?
++case $ac_header_compiler:$ac_header_preproc in
++ yes:no )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++ no:yes )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ eval "$as_ac_Header=$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
++for ac_header in stdlib.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++ # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++@%:@include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_header_compiler=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++@%:@include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } >/dev/null; then
++ if test -s conftest.err; then
++ ac_cpp_err=$ac_c_preproc_warn_flag
++ else
++ ac_cpp_err=
++ fi
++else
++ ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++ ac_header_preproc=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So? What about this header?
++case $ac_header_compiler:$ac_header_preproc in
++ yes:no )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++ no:yes )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ eval "$as_ac_Header=$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
++for ac_header in unistd.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++ # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++@%:@include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_header_compiler=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++@%:@include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } >/dev/null; then
++ if test -s conftest.err; then
++ ac_cpp_err=$ac_c_preproc_warn_flag
++ else
++ ac_cpp_err=
++ fi
++else
++ ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++ ac_header_preproc=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So? What about this header?
++case $ac_header_compiler:$ac_header_preproc in
++ yes:no )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++ no:yes )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ eval "$as_ac_Header=$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
++for ac_header in sys/sockio.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++ # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++@%:@include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_header_compiler=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++@%:@include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } >/dev/null; then
++ if test -s conftest.err; then
++ ac_cpp_err=$ac_c_preproc_warn_flag
++ else
++ ac_cpp_err=
++ fi
++else
++ ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++ ac_header_preproc=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So? What about this header?
++case $ac_header_compiler:$ac_header_preproc in
++ yes:no )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++ no:yes )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ eval "$as_ac_Header=$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
++for ac_header in paths.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++ # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++@%:@include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_header_compiler=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++@%:@include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } >/dev/null; then
++ if test -s conftest.err; then
++ ac_cpp_err=$ac_c_preproc_warn_flag
++ else
++ ac_cpp_err=
++ fi
++else
++ ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++ ac_header_preproc=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So? What about this header?
++case $ac_header_compiler:$ac_header_preproc in
++ yes:no )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++ no:yes )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ eval "$as_ac_Header=$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
++if test -z "$no_libnsl"; then
++
++echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
++echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
++if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_check_lib_save_LIBS=$LIBS
++LIBS="-lnsl $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char inet_ntoa ();
++int
++main ()
++{
++inet_ntoa ();
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_lib_nsl_inet_ntoa=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_nsl_inet_ntoa=no
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
++echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
++if test $ac_cv_lib_nsl_inet_ntoa = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define HAVE_LIBNSL 1
++_ACEOF
++
++ LIBS="-lnsl $LIBS"
++
++fi
++
++fi
++
++if test -z "$no_libsocket"; then
++
++echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
++echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
++if test "${ac_cv_lib_socket_socket+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_check_lib_save_LIBS=$LIBS
++LIBS="-lsocket $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char socket ();
++int
++main ()
++{
++socket ();
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_lib_socket_socket=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_socket_socket=no
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
++echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
++if test $ac_cv_lib_socket_socket = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define HAVE_LIBSOCKET 1
++_ACEOF
++
++ LIBS="-lsocket $LIBS"
++
++fi
++
++fi
++
++# SunOS4 has several things `broken'
++if test "$sunos4" != "no"; then
++
++for ac_func in vsnprintf
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++/* System header to define __stub macros and hopefully few prototypes,
++ which can conflict with char $ac_func (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++ to always fail with ENOSYS. Some functions are actually named
++ something starting with __ and the normal name is an alias. */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ eval "$as_ac_var=yes"
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++else
++ LIBS=" $LIBS -ldb"
++fi
++done
++
++
++for ac_func in strtoul
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++/* System header to define __stub macros and hopefully few prototypes,
++ which can conflict with char $ac_func (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++ to always fail with ENOSYS. Some functions are actually named
++ something starting with __ and the normal name is an alias. */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ eval "$as_ac_var=yes"
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++else
++ LIBS=" $LIBS -l44bsd"
++fi
++done
++
++fi
++
++# some funky macro to be backwards compatible with earlier autoconfs
++# in current they have AC_CHECK_DECLS
++
++
++
++
++# some stuff for declarations which were missed on sunos4 platform too.
++#
++# add `#undef NEED_DECL_FUNCTIONAME to acconfig.h` because autoheader
++# fails to work properly with custom macroses.
++# you will see also #undef for each SN_CHECK_DECLS macros invocation
++# because autoheader doesn't execute shell script commands.
++# it is possible to make loops using m4 but the code would look even
++# more confusing..
++for sn_decl in printf fprintf syslog puts fputs fputc fopen \
++ fclose fwrite fflush getopt bzero bcopy memset strtol \
++ strcasecmp strncasecmp strerror perror socket sendto \
++ vsnprintf snprintf strtoul
++do
++sn_def_decl=`echo $sn_decl | tr a-z A-Z`
++
++echo "$as_me:$LINENO: checking whether $sn_decl must be declared" >&5
++echo $ECHO_N "checking whether $sn_decl must be declared... $ECHO_C" >&6
++if eval "test \"\${sn_cv_decl_needed_$sn_decl+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <stdio.h>
++#ifdef HAVE_STRING_H
++#include <string.h>
++#endif
++#ifdef HAVE_STRINGS_H
++#include <strings.h>
++#endif
++#ifdef HAVE_STDLIB_H
++#include <stdlib.h>
++#endif
++#ifdef HAVE_UNISTD_H
++#include <unistd.h>
++#endif
++#include <sys/types.h>
++#include <sys/socket.h>
++#include <syslog.h>
++
++int
++main ()
++{
++char *(*pfn) = (char *(*)) $sn_decl
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ eval "sn_cv_decl_needed_$sn_decl=no"
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "sn_cv_decl_needed_$sn_decl=yes"
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++
++
++if eval "test \"`echo '$sn_cv_decl_needed_'$sn_decl`\" != no"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++
++
++cat >>confdefs.h <<_ACEOF
++@%:@define NEED_DECL_$sn_def_decl 1
++_ACEOF
++
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++
++fi
++done
++
++
++
++for ac_func in snprintf
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++/* System header to define __stub macros and hopefully few prototypes,
++ which can conflict with char $ac_func (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++ to always fail with ENOSYS. Some functions are actually named
++ something starting with __ and the normal name is an alias. */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ eval "$as_ac_var=yes"
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++
++for ac_func in strlcpy
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++/* System header to define __stub macros and hopefully few prototypes,
++ which can conflict with char $ac_func (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++ to always fail with ENOSYS. Some functions are actually named
++ something starting with __ and the normal name is an alias. */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ eval "$as_ac_var=yes"
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++
++for ac_func in strlcat
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++/* System header to define __stub macros and hopefully few prototypes,
++ which can conflict with char $ac_func (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++ to always fail with ENOSYS. Some functions are actually named
++ something starting with __ and the normal name is an alias. */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ eval "$as_ac_var=yes"
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++
++for ac_func in strerror
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++/* System header to define __stub macros and hopefully few prototypes,
++ which can conflict with char $ac_func (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++ to always fail with ENOSYS. Some functions are actually named
++ something starting with __ and the normal name is an alias. */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ eval "$as_ac_var=yes"
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <stdio.h>
++
++int
++main ()
++{
++char *foo; foo = sys_errlist[0];
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ cat >>confdefs.h <<\_ACEOF
++@%:@define ERRLIST_PREDEFINED 1
++_ACEOF
++
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++
++echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
++echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <stdio.h>
++
++int
++main ()
++{
++printf ("%s", __FUNCTION__);
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ sn_cv_have___FUNCTION__=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++sn_cv__have___FUNCTION__=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++if test "x$sn_cv_have___FUNCTION__" = "xyes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++
++cat >>confdefs.h <<\_ACEOF
++@%:@define HAVE___FUNCTION__ 1
++_ACEOF
++
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ echo "$as_me:$LINENO: checking for __func__" >&5
++echo $ECHO_N "checking for __func__... $ECHO_C" >&6
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++#include <stdio.h>
++
++int
++main ()
++{
++printf ("%s", __func__);
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ sn_cv_have___func__=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++sn_cv__have___func__=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++ if test "x$sn_cv_have___func__" = "xyes"; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++
++cat >>confdefs.h <<\_ACEOF
++@%:@define HAVE___func__ 1
++_ACEOF
++
++
++cat >>confdefs.h <<\_ACEOF
++@%:@define __FUNCTION__ __func__
++_ACEOF
++
++ else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ cat >>confdefs.h <<\_ACEOF
++@%:@define __FUNCTION__ "mystery function"
++_ACEOF
++
++ fi
++fi
++
++
++
++# Check whether --with-libpcap_includes or --without-libpcap_includes was given.
++if test "${with_libpcap_includes+set}" = set; then
++ withval="$with_libpcap_includes"
++ with_libpcap_includes="$withval"
++else
++ with_libpcap_includes=no
++fi;
++
++
++# Check whether --with-libpcap_libraries or --without-libpcap_libraries was given.
++if test "${with_libpcap_libraries+set}" = set; then
++ withval="$with_libpcap_libraries"
++ with_libpcap_libraries="$withval"
++else
++ with_libpcap_libraries=no
++fi;
++
++if test "$with_libpcap_includes" != "no"; then
++ CPPFLAGS="${CPPFLAGS} -I${with_libpcap_includes}"
++fi
++
++if test "$with_libpcap_libraries" != "no"; then
++ LDFLAGS="${LDFLAGS} -L${with_libpcap_libraries}"
++fi
++
++
++echo "$as_me:$LINENO: checking for floor in -lm" >&5
++echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
++if test "${ac_cv_lib_m_floor+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_check_lib_save_LIBS=$LIBS
++LIBS="-lm $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char floor ();
++int
++main ()
++{
++floor ();
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_lib_m_floor=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_m_floor=no
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
++echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
++if test $ac_cv_lib_m_floor = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define HAVE_LIBM 1
++_ACEOF
++
++ LIBS="-lm $LIBS"
++
++fi
++
++
++LPCAP=""
++
++echo "$as_me:$LINENO: checking for pcap_datalink in -lpcap" >&5
++echo $ECHO_N "checking for pcap_datalink in -lpcap... $ECHO_C" >&6
++if test "${ac_cv_lib_pcap_pcap_datalink+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_check_lib_save_LIBS=$LIBS
++LIBS="-lpcap $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char pcap_datalink ();
++int
++main ()
++{
++pcap_datalink ();
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_lib_pcap_pcap_datalink=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_pcap_pcap_datalink=no
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_datalink" >&5
++echo "${ECHO_T}$ac_cv_lib_pcap_pcap_datalink" >&6
++if test $ac_cv_lib_pcap_pcap_datalink = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define HAVE_LIBPCAP 1
++_ACEOF
++
++ LIBS="-lpcap $LIBS"
++
++else
++ LPCAP="no"
++fi
++
++
++if test "$LPCAP" = "no"; then
++ echo
++ echo " ERROR! Libpcap library/headers not found, go get it from"
++ echo " http://www.tcpdump.org"
++ echo " or use the --with-libpcap-* options, if you have it installed"
++ echo " in unusual place"
++ exit
++fi
++
++default_directory="/usr /usr/local"
++
++
++
++
++# Check whether --with-libnet_includes or --without-libnet_includes was given.
++if test "${with_libnet_includes+set}" = set; then
++ withval="$with_libnet_includes"
++ with_libnet_includes="$withval"
++else
++ with_libnet_includes=no
++fi;
++
++
++# Check whether --with-libnet_libraries or --without-libnet_libraries was given.
++if test "${with_libnet_libraries+set}" = set; then
++ withval="$with_libnet_libraries"
++ with_libnet_libraries="$withval"
++else
++ with_libnet_libraries=no
++fi;
++
++if test "$with_libnet_includes" != "no"; then
++ CPPFLAGS="${CPPFLAGS} -I${with_libnet_includes}"
++fi
++
++if test "$with_libnet_libraries" != "no"; then
++ LDFLAGS="${LDFLAGS} -L${with_libnet_libraries}"
++fi
++
++
++#
++# Support for prelude
++#
++
++# Check whether --with-prelude or --without-prelude was given.
++if test "${with_prelude+set}" = set; then
++ withval="$with_prelude"
++ with_prelude="$withval"
++else
++ with_prelude=yes
++fi;
++
++if test "$with_prelude" = "yes"; then
++ echo "$as_me:$LINENO: checking for Prelude" >&5
++echo $ECHO_N "checking for Prelude... $ECHO_C" >&6
++
++
++
++# Check whether --with-libprelude-prefix or --without-libprelude-prefix was given.
++if test "${with_libprelude_prefix+set}" = set; then
++ withval="$with_libprelude_prefix"
++ libprelude_config_prefix="$withval"
++else
++ libprelude_config_prefix=""
++fi;
++
++# Check whether --with-libprelude-exec-prefix or --without-libprelude-exec-prefix was given.
++if test "${with_libprelude_exec_prefix+set}" = set; then
++ withval="$with_libprelude_exec_prefix"
++ libprelude_config_exec_prefix="$withval"
++else
++ libprelude_config_exec_prefix=""
++fi;
++
++ if test x$libprelude_config_exec_prefix != x ; then
++ libprelude_config_args="$libprelude_config_args --exec-prefix=$libprelude_config_exec_prefix"
++ if test x${LIBPRELUDE_CONFIG+set} != xset ; then
++ LIBPRELUDE_CONFIG=$libprelude_config_exec_prefix/bin/libprelude-config
++ fi
++ fi
++ if test x$libprelude_config_prefix != x ; then
++ libprelude_config_args="$libprelude_config_args --prefix=$libprelude_config_prefix"
++ if test x${LIBPRELUDE_CONFIG+set} != xset ; then
++ LIBPRELUDE_CONFIG=$libprelude_config_prefix/bin/libprelude-config
++ fi
++ fi
++
++ # Extract the first word of "libprelude-config", so it can be a program name with args.
++set dummy libprelude-config; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_path_LIBPRELUDE_CONFIG+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ case $LIBPRELUDE_CONFIG in
++ [\\/]* | ?:[\\/]*)
++ ac_cv_path_LIBPRELUDE_CONFIG="$LIBPRELUDE_CONFIG" # Let the user override the test with a path.
++ ;;
++ *)
++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_path_LIBPRELUDE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++ test -z "$ac_cv_path_LIBPRELUDE_CONFIG" && ac_cv_path_LIBPRELUDE_CONFIG="no"
++ ;;
++esac
++fi
++LIBPRELUDE_CONFIG=$ac_cv_path_LIBPRELUDE_CONFIG
++
++if test -n "$LIBPRELUDE_CONFIG"; then
++ echo "$as_me:$LINENO: result: $LIBPRELUDE_CONFIG" >&5
++echo "${ECHO_T}$LIBPRELUDE_CONFIG" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ echo "$as_me:$LINENO: checking for libprelude - version >= 0.8.0" >&5
++echo $ECHO_N "checking for libprelude - version >= 0.8.0... $ECHO_C" >&6
++
++ no_libprelude=""
++ if test "$LIBPRELUDE_CONFIG" = "no" ; then
++ no_libprelude=yes
++ else
++ LIBPRELUDE_CFLAGS="`$LIBPRELUDE_CONFIG $libprelude_config_args --cflags`"
++ LIBPRELUDE_LIBS="`$LIBPRELUDE_CONFIG $libprelude_config_args --libs`"
++
++ libprelude_config_major_version=`$LIBPRELUDE_CONFIG $libprelude_config_args \
++ --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
++ libprelude_config_minor_version=`$LIBPRELUDE_CONFIG $libprelude_config_args \
++ --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
++ libprelude_config_micro_version=`$LIBPRELUDE_CONFIG $libprelude_config_args \
++ --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
++ libprelude_wanted_major_version="0"
++ libprelude_wanted_minor_version="8"
++ libprelude_wanted_micro_version="0"
++
++ # Compare wanted version to what config script returned.
++ # If I knew what library was being run, i'd probably also compile
++ # a test program at this point (which also extracted and tested
++ # the version in some library-specific way)
++ if test "$libprelude_config_major_version" -lt \
++ "$libprelude_wanted_major_version" \
++ -o \( "$libprelude_config_major_version" -eq \
++ "$libprelude_wanted_major_version" \
++ -a "$libprelude_config_minor_version" -lt \
++ "$libprelude_wanted_minor_version" \) \
++ -o \( "$libprelude_config_major_version" -eq \
++ "$libprelude_wanted_major_version" \
++ -a "$libprelude_config_minor_version" -eq \
++ "$libprelude_wanted_minor_version" \
++ -a "$libprelude_config_micro_version" -lt \
++ "$libprelude_wanted_micro_version" \) ; then
++ # older version found
++ no_libprelude=yes
++ echo -n "*** An old version of libprelude "
++ echo -n "($libprelude_config_major_version"
++ echo -n ".$libprelude_config_minor_version"
++ echo ".$libprelude_config_micro_version) was found."
++ echo -n "*** You need a version of libprelude newer than "
++ echo -n "$libprelude_wanted_major_version"
++ echo -n ".$libprelude_wanted_minor_version"
++ echo ".$libprelude_wanted_micro_version."
++ echo "***"
++ echo "*** If you have already installed a sufficiently new version, this error"
++ echo "*** probably means that the wrong copy of the libprelude-config shell script is"
++ echo "*** being found. The easiest way to fix this is to remove the old version"
++ echo "*** of libprelude, but you can also set the LIBPRELUDE_CONFIG environment to point to the"
++ echo "*** correct copy of libprelude-config. (In this case, you will have to"
++ echo "*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf"
++ echo "*** so that the correct libraries are found at run-time)"
++ fi
++
++ fi
++ if test "x$no_libprelude" = x ; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ use_prelude=yes
++ else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ if test "$LIBPRELUDE_CONFIG" = "no" ; then
++ echo "*** The libprelude-config script installed by libprelude could not be found"
++ echo "*** If libprelude was installed in PREFIX, make sure PREFIX/bin is in"
++ echo "*** your path, or set the LIBPRELUDE_CONFIG environment variable to the"
++ echo "*** full path to libprelude-config."
++ fi
++ LIBPRELUDE_CFLAGS=""
++ LIBPRELUDE_LIBS=""
++ use_prelude=no
++ fi
++
++
++
++
++
++
++ if test "$use_prelude" = "yes"; then
++ PRELUDE_LIBS=`libprelude-config --libs`
++ PRELUDE_CFLAGS=`libprelude-config --cflags`
++ LDFLAGS="${LDFLAGS} ${PRELUDE_LIBS}"
++ CPPFLAGS="${CPPFLAGS} ${PRELUDE_CFLAGS} -DWITH_PRELUDE"
++ fi
++fi
++
++
++
++# Check whether --with-mysql or --without-mysql was given.
++if test "${with_mysql+set}" = set; then
++ withval="$with_mysql"
++ with_mysql="$withval"
++else
++ with_mysql=no
++fi;
++
++if test "$with_mysql" != "no"; then
++ if test "$with_mysql" = "yes"; then
++ mysql_directory="$default_directory";
++ mysql_fail="yes"
++ elif test -d $withval; then
++ mysql_directory="$withval"
++ mysql_fail="no"
++ elif test "$with_mysql" = ""; then
++ mysql_directory="$default_directory";
++ mysql_fail="no"
++ fi
++
++ echo "$as_me:$LINENO: checking for mysql" >&5
++echo $ECHO_N "checking for mysql... $ECHO_C" >&6
++
++ for i in $mysql_directory; do
++ if test -r $i/include/mysql/mysql.h; then
++ MYSQL_DIR=$i
++ MYSQL_INC_DIR=$i/include/mysql
++ elif test -r $i/include/mysql.h; then
++ MYSQL_DIR=$i
++ MYSQL_INC_DIR=$i/include
++ fi
++ done
++
++ if test -z "$MYSQL_DIR"; then
++ if test "$mysql_fail" != "no"; then
++ tmp=""
++ for i in $mysql_directory; do
++ tmp="$tmp $i/include $i/include/mysql"
++ done
++
++ echo
++ echo
++ echo "**********************************************"
++ echo " ERROR: unable to find" "mysql headers (mysql.h)"
++ echo " checked in the following places"
++ for i in `echo $tmp`; do
++ echo " $i"
++ done
++ echo "**********************************************"
++ echo
++ exit
++
++ else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ fi
++ else
++
++ for i in lib lib/mysql; do
++ str="$MYSQL_DIR/$i/libmysqlclient.*"
++ for j in `echo $str`; do
++ if test -r $j; then
++ MYSQL_LIB_DIR="$MYSQL_DIR/$i"
++ break 2
++ fi
++ done
++ done
++
++ if test -z "$MYSQL_LIB_DIR"; then
++ if test "$mysql_fail" != "no"; then
++
++ echo
++ echo
++ echo "**********************************************"
++ echo " ERROR: unable to find" "mysqlclient library"
++ echo " checked in the following places"
++ for i in `echo "$MYSQL_DIR/lib $MYSQL_DIR/lib/mysql"`; do
++ echo " $i"
++ done
++ echo "**********************************************"
++ echo
++ exit
++
++ else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ fi
++ else
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ LDFLAGS="${LDFLAGS} -L${MYSQL_LIB_DIR}"
++ CPPFLAGS="${CPPFLAGS} -I${MYSQL_INC_DIR} -DENABLE_MYSQL"
++
++echo "$as_me:$LINENO: checking for compress in -lz" >&5
++echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
++if test "${ac_cv_lib_z_compress+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_check_lib_save_LIBS=$LIBS
++LIBS="-lz $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char compress ();
++int
++main ()
++{
++compress ();
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_lib_z_compress=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_z_compress=no
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
++echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
++if test $ac_cv_lib_z_compress = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define HAVE_LIBZ 1
++_ACEOF
++
++ LIBS="-lz $LIBS"
++
++fi
++
++ LIBS="${LIBS} -lmysqlclient"
++ fi
++ fi
++fi
++
++
++# Check whether --with-odbc or --without-odbc was given.
++if test "${with_odbc+set}" = set; then
++ withval="$with_odbc"
++ with_odbc="$withval"
++else
++ with_odbc=no
++fi;
++
++if test "$with_odbc" != "no"; then
++ if test "$with_odbc" = "yes"; then
++ odbc_directory="$default_directory"
++ odbc_fail="yes"
++ elif test -d $withval; then
++ odbc_directory="$withval $default_directory";
++ odbc_fail="yes"
++ elif test "$with_odbc" = ""; then
++ odbc_directory="$default_directory"
++ odbc_fail="no"
++ fi
++
++ echo "$as_me:$LINENO: checking \"for odbc\"" >&5
++echo $ECHO_N "checking \"for odbc\"... $ECHO_C" >&6
++
++ for i in $odbc_directory; do
++ if test -r $i/include/sql.h; then
++ if test -r $i/include/sqlext.h; then
++ if test -r $i/include/sqltypes.h; then
++ ODBC_DIR=$i
++ ODBC_INC_DIR=$i/include
++ fi fi fi
++ done
++
++ if test -z "$ODBC_DIR"; then
++ if test "$odbc_fail" != "no"; then
++ tmp=""
++ for i in $odbc_directory; do
++ tmp="$tmp $i/include"
++ done
++
++ echo
++ echo
++ echo "**********************************************"
++ echo " ERROR: unable to find" "odbc headers (sql.h sqlext.h sqltypes.h)"
++ echo " checked in the following places"
++ for i in `echo $tmp`; do
++ echo " $i"
++ done
++ echo "**********************************************"
++ echo
++ exit
++
++ else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ fi
++ else
++
++ str="$ODBC_DIR/lib/libodbc.*"
++ for j in `echo $str`; do
++ if test -r $j; then
++ ODBC_LIB_DIR="$ODBC_DIR/lib"
++ ODBC_LIB="odbc"
++ fi
++ done
++
++
++ if test -z "$ODBC_LIB_DIR"; then
++ if test "$odbc_fail" != "no"; then
++
++ echo
++ echo
++ echo "**********************************************"
++ echo " ERROR: unable to find" "odbc library (libodbc)"
++ echo " checked in the following places"
++ for i in `echo "$ODBC_DIR/lib"`; do
++ echo " $i"
++ done
++ echo "**********************************************"
++ echo
++ exit
++
++ else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ fi
++ else
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ LDFLAGS="${LDFLAGS} -L${ODBC_LIB_DIR}"
++ CPPFLAGS="${CPPFLAGS} -I${ODBC_INC_DIR} -DENABLE_ODBC"
++ LIBS="${LIBS} -l$ODBC_LIB"
++ fi
++ fi
++fi
++
++
++# Check whether --with-postgresql or --without-postgresql was given.
++if test "${with_postgresql+set}" = set; then
++ withval="$with_postgresql"
++ with_postgresql="$withval"
++else
++ with_postgresql=no
++fi;
++
++if test "$with_postgresql" != "no"; then
++ if test "$with_postgresql" = "yes"; then
++ postgresql_directory="$default_directory /usr/local/pgsql /usr/pgsql /usr/local"
++ postgresql_fail="yes"
++ elif test -d $withval; then
++ postgresql_directory="$withval $default_directory /usr/local/pgsql /usr/pgsql"
++ postgresql_fail="yes"
++ elif test "$with_postgresql" = ""; then
++ postgresql_directory="$default_directory /usr/local/pgsql /usr/pgsql"
++ postgresql_fail="no"
++ fi
++
++ echo "$as_me:$LINENO: checking for postgresql" >&5
++echo $ECHO_N "checking for postgresql... $ECHO_C" >&6
++
++ for i in $postgresql_directory; do
++ if test -r $i/include/pgsql/libpq-fe.h; then
++ POSTGRESQL_DIR=$i
++ POSTGRESQL_INC_DIR=$i/include/pgsql
++ elif test -r $i/include/libpq-fe.h; then
++ POSTGRESQL_DIR=$i
++ POSTGRESQL_INC_DIR=$i/include
++ elif test -r $i/include/postgresql/libpq-fe.h; then
++ POSTGRESQL_DIR=$i
++ POSTGRESQL_INC_DIR=$i/include/postgresql
++ fi
++ done
++
++ if test -z "$POSTGRESQL_DIR"; then
++ if test "$postgresql_fail" != "no"; then
++ tmp=""
++ for i in $postgesql_directory; do
++ tmp="$tmp $i/include $i/include/pgsql"
++ done
++
++ echo
++ echo
++ echo "**********************************************"
++ echo " ERROR: unable to find" "postgresql header file (libpq-fe.h)"
++ echo " checked in the following places"
++ for i in `echo $tmp`; do
++ echo " $i"
++ done
++ echo "**********************************************"
++ echo
++ exit
++
++ else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ fi
++ else
++
++ for i in lib lib/pgsql; do
++ str="$POSTGRESQL_DIR/$i/libpq.*"
++ for j in `echo $str`; do
++ if test -r $j; then
++ POSTGRESQL_LIB_DIR="$POSTGRESQL_DIR/$i"
++ break 2
++ fi
++ done
++ done
++
++ if test -z "$POSTGRESQL_LIB_DIR"; then
++ if test "$postgresql_fail" != "no"; then
++
++ echo
++ echo
++ echo "**********************************************"
++ echo " ERROR: unable to find" "postgresql library libpq"
++ echo " checked in the following places"
++ for i in `echo "$POSTGRESQL_DIR/lib $POSTGRESQL_DIR/lib/pgsql"`; do
++ echo " $i"
++ done
++ echo "**********************************************"
++ echo
++ exit
++
++ else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6;
++ fi
++ else
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ LDFLAGS="${LDFLAGS} -L${POSTGRESQL_LIB_DIR}"
++ CPPFLAGS="${CPPFLAGS} -I${POSTGRESQL_INC_DIR} -DENABLE_POSTGRESQL"
++ LIBS="${LIBS} -lpq"
++ fi
++ fi
++fi
++
++
++
++# Check whether --with-oracle or --without-oracle was given.
++if test "${with_oracle+set}" = set; then
++ withval="$with_oracle"
++ with_oracle="$withval"
++else
++ with_oracle=no
++fi;
++
++if test "$with_oracle" != "no"; then
++ if test "$with_oracle" = "yes"; then
++ oracle_directory="$default_directory ${ORACLE_HOME}"
++ oracle_fail="yes"
++ elif test -d $withval; then
++ oracle_directory="$withval $default_directory ${ORACLE_HOME}"
++ oracle_fail="yes"
++ elif test "$with_oracle" = ""; then
++ oracle_directory="$default_directory ${ORACLE_HOME}"
++ oracle_fail="no"
++ fi
++
++ echo "$as_me:$LINENO: checking for oracle" >&5
++echo $ECHO_N "checking for oracle... $ECHO_C" >&6
++
++ for i in $oracle_directory; do
++ if test -r $i/rdbms/demo/oci.h; then
++ ORACLE_DIR=$i
++ fi
++ done
++
++ if test -z "$ORACLE_DIR"; then
++ if test "$oracle_fail" != "no"; then
++ tmp=""
++ for i in $oracle_directory; do
++ tmp="$tmp $i/rdbms/demo"
++ done
++
++ echo
++ echo
++ echo "**********************************************"
++ echo " ERROR: unable to find" "OCI header file (oci.h)"
++ echo " checked in the following places"
++ for i in `echo $tmp`; do
++ echo " $i"
++ done
++ echo "**********************************************"
++ echo
++ exit
++
++ else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ fi
++ else
++ for i in rdbms/demo rdbms/public network/public; do
++ ORACLE_CPP_FLAGS="$ORACLE_CPP_FLAGS -I$ORACLE_DIR/$i"
++ done
++ ORACLE_LIB_DIR="$ORACLE_DIR/lib"
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++
++ LDFLAGS="${LDFLAGS} -L${ORACLE_LIB_DIR}"
++ CPPFLAGS="${CPPFLAGS} ${ORACLE_CPP_FLAGS} -DENABLE_ORACLE"
++
++ ORACLE_LIBS="-lclntsh"
++ if test -r $ORACLE_LIB_DIR/libwtc9.so; then
++ ORACLE_LIBS="${ORACLE_LIBS} -lwtc9"
++ elif test -r $ORACLE_LIB_DIR/libwtc8.so; then
++ ORACLE_LIBS="${ORACLE_LIBS} -lwtc8"
++ fi
++ LIBS="${LIBS} ${ORACLE_LIBS}"
++ fi
++fi
++
++# Check whether --enable-sourcefire or --disable-sourcefire was given.
++if test "${enable_sourcefire+set}" = set; then
++ enableval="$enable_sourcefire"
++ CFLAGS="$CFLAGS -DSOURCEFIRE"
++fi;
++
++# Check whether --enable-perfmonitor or --disable-perfmonitor was given.
++if test "${enable_perfmonitor+set}" = set; then
++ enableval="$enable_perfmonitor"
++ CFLAGS="$CFLAGS -DUSE_SF_STATS"
++fi;
++
++# Check whether --enable-smbalerts or --disable-smbalerts was given.
++if test "${enable_smbalerts+set}" = set; then
++ enableval="$enable_smbalerts"
++ CFLAGS="$CFLAGS -DENABLE_SMB_ALERTS"
++fi;
++
++# Check whether --enable-linux-smp-stats or --disable-linux-smp-stats was given.
++if test "${enable_linux_smp_stats+set}" = set; then
++ enableval="$enable_linux_smp_stats"
++ CFLAGS="$CFLAGS -DLINUX_SMP"
++fi;
++
++# Check whether --enable-flexresp or --disable-flexresp was given.
++if test "${enable_flexresp+set}" = set; then
++ enableval="$enable_flexresp"
++ CPPFLAGS="${CPPFLAGS} -DENABLE_RESPONSE `libnet-config --defines --cflags`" LDFLAGS="${LDFLAGS} `libnet-config --libs`"
++fi;
++
++
++if test "$enable_flexresp" != "no" -a "$enable_flexresp" = "yes"; then
++
++ if test `libnet-config --cflags | wc -c` = "1"; then
++ CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/sw/include"
++ LIBNET_CONFIG_BROKEN_CFLAGS=yes
++ fi
++
++ if test `libnet-config --libs | wc -c` = "1"; then
++ { echo "$as_me:$LINENO: WARNING: libnet-config --libs is broken on your system. If you" >&5
++echo "$as_me: WARNING: libnet-config --libs is broken on your system. If you" >&2;}
++ { echo "$as_me:$LINENO: WARNING: are using a precompiled package please notify the" >&5
++echo "$as_me: WARNING: are using a precompiled package please notify the" >&2;}
++ { echo "$as_me:$LINENO: WARNING: maintainer." >&5
++echo "$as_me: WARNING: maintainer." >&2;}
++ LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/sw/lib"
++ LIBS="${LIBS} -lnet"
++ fi
++
++ LNET=""
++
++for ac_header in libnet.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++ # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++@%:@include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_header_compiler=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++@%:@include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } >/dev/null; then
++ if test -s conftest.err; then
++ ac_cpp_err=$ac_c_preproc_warn_flag
++ else
++ ac_cpp_err=
++ fi
++else
++ ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++ ac_header_preproc=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So? What about this header?
++case $ac_header_compiler:$ac_header_preproc in
++ yes:no )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++ no:yes )
++ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
++ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++@%:@@%:@ ------------------------------------ @%:@@%:@
++@%:@@%:@ Report this to bug-autoconf@gnu.org. @%:@@%:@
++@%:@@%:@ ------------------------------------ @%:@@%:@
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ eval "$as_ac_Header=$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++else
++ LNET="no"
++fi
++
++done
++
++ if test "$LNET" = "no"; then
++ echo
++ echo " ERROR! Libnet header not found, go get it from"
++ echo " http://www.packetfactory.net/projects/libnet/"
++ echo " or use the --with-libnet-* options, if you have it installed"
++ echo " in unusual place"
++ exit
++ fi
++
++ echo "$as_me:$LINENO: checking for libnet version 1.0.2a" >&5
++echo $ECHO_N "checking for libnet version 1.0.2a... $ECHO_C" >&6
++ if test "${LIBNET_CONFIG_BROKEN_CFLAGS}" = "yes"; then
++ if test -n "$with_libnet_includes" -a "$with_libnet_includes" != "no"; then
++ libnet_dir="${with_libnet_includes}"
++ else
++ libnet_dir="/usr/include /usr/local/include /sw/include"
++ fi
++ else
++ libnet_dir=`libnet-config --cflags | cut -dI -f2`
++ fi
++
++ LIBNET_INC_DIR=""
++ for i in $libnet_dir; do
++ if test -r $i/libnet.h; then
++ LIBNET_INC_DIR=$i
++ fi
++ done
++
++ if test "$LIBNET_INC_DIR" != ""; then
++ if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0.2a >/dev/null"; then
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ echo
++ echo " ERROR! Snort with --enable-flexresp will *only* work with"
++ echo " libnet version 1.0.2a, go get it from"
++ echo " http://www.packetfactory.net/projects/libnet/"
++
++ echo
++ echo
++ echo "**********************************************"
++ echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)"
++ echo " checked in the following places"
++ for i in `echo $LIBNET_INC_DIR`; do
++ echo " $i"
++ done
++ echo "**********************************************"
++ echo
++ exit
++
++ fi
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++
++ echo
++ echo
++ echo "**********************************************"
++ echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)"
++ echo " checked in the following places"
++ for i in `echo $libnet_dir`; do
++ echo " $i"
++ done
++ echo "**********************************************"
++ echo
++ exit
++
++ fi
++
++ LNET=""
++
++echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet" >&5
++echo $ECHO_N "checking for libnet_build_ip in -lnet... $ECHO_C" >&6
++if test "${ac_cv_lib_net_libnet_build_ip+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_check_lib_save_LIBS=$LIBS
++LIBS="-lnet $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++/* Override any gcc2 internal prototype to avoid an error. */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++ builtin and then its argument prototype would still apply. */
++char libnet_build_ip ();
++int
++main ()
++{
++libnet_build_ip ();
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++ (eval $ac_link) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest$ac_exeext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_lib_net_libnet_build_ip=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_net_libnet_build_ip=no
++fi
++rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_net_libnet_build_ip" >&5
++echo "${ECHO_T}$ac_cv_lib_net_libnet_build_ip" >&6
++if test $ac_cv_lib_net_libnet_build_ip = yes; then
++ cat >>confdefs.h <<_ACEOF
++@%:@define HAVE_LIBNET 1
++_ACEOF
++
++ LIBS="-lnet $LIBS"
++
++else
++ LNET="no"
++fi
++
++ if test "$LNET" = "no"; then
++ echo
++ echo " ERROR! Libnet library not found, go get it from"
++ echo " http://www.packetfactory.net/projects/libnet/"
++ echo " or use the --with-libnet-* options, if you have it installed"
++ echo " in unusual place"
++ exit
++ fi
++
++fi
++
++if test "$tru64_types" = "yes"; then
++ echo "$as_me:$LINENO: checking for u_int8_t" >&5
++echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
++if test "${ac_cv_type_u_int8_t+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++int
++main ()
++{
++if ((u_int8_t *) 0)
++ return 0;
++if (sizeof (u_int8_t))
++ return 0;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_type_u_int8_t=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_type_u_int8_t=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
++echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
++if test $ac_cv_type_u_int8_t = yes; then
++ :
++else
++
++cat >>confdefs.h <<_ACEOF
++@%:@define u_int8_t unsigned char
++_ACEOF
++
++fi
++
++ echo "$as_me:$LINENO: checking for u_int16_t" >&5
++echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
++if test "${ac_cv_type_u_int16_t+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++int
++main ()
++{
++if ((u_int16_t *) 0)
++ return 0;
++if (sizeof (u_int16_t))
++ return 0;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_type_u_int16_t=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_type_u_int16_t=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
++echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
++if test $ac_cv_type_u_int16_t = yes; then
++ :
++else
++
++cat >>confdefs.h <<_ACEOF
++@%:@define u_int16_t unsigned short
++_ACEOF
++
++fi
++
++ echo "$as_me:$LINENO: checking for u_int32_t" >&5
++echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
++if test "${ac_cv_type_u_int32_t+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++int
++main ()
++{
++if ((u_int32_t *) 0)
++ return 0;
++if (sizeof (u_int32_t))
++ return 0;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_type_u_int32_t=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_type_u_int32_t=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
++echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
++if test $ac_cv_type_u_int32_t = yes; then
++ :
++else
++
++cat >>confdefs.h <<_ACEOF
++@%:@define u_int32_t unsigned int
++_ACEOF
++
++fi
++
++else
++ if test "$broken_types" = "yes" ; then
++ echo "$as_me:$LINENO: checking for u_int8_t" >&5
++echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
++if test "${ac_cv_type_u_int8_t+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++int
++main ()
++{
++if ((u_int8_t *) 0)
++ return 0;
++if (sizeof (u_int8_t))
++ return 0;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_type_u_int8_t=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_type_u_int8_t=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
++echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
++if test $ac_cv_type_u_int8_t = yes; then
++ :
++else
++
++cat >>confdefs.h <<_ACEOF
++@%:@define u_int8_t unsigned char
++_ACEOF
++
++fi
++
++ echo "$as_me:$LINENO: checking for u_int16_t" >&5
++echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
++if test "${ac_cv_type_u_int16_t+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++int
++main ()
++{
++if ((u_int16_t *) 0)
++ return 0;
++if (sizeof (u_int16_t))
++ return 0;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_type_u_int16_t=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_type_u_int16_t=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
++echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
++if test $ac_cv_type_u_int16_t = yes; then
++ :
++else
++
++cat >>confdefs.h <<_ACEOF
++@%:@define u_int16_t unsigned short
++_ACEOF
++
++fi
++
++ echo "$as_me:$LINENO: checking for u_int32_t" >&5
++echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
++if test "${ac_cv_type_u_int32_t+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++int
++main ()
++{
++if ((u_int32_t *) 0)
++ return 0;
++if (sizeof (u_int32_t))
++ return 0;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_type_u_int32_t=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_type_u_int32_t=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
++echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
++if test $ac_cv_type_u_int32_t = yes; then
++ :
++else
++
++cat >>confdefs.h <<_ACEOF
++@%:@define u_int32_t unsigned long int
++_ACEOF
++
++fi
++
++ else
++ echo "$as_me:$LINENO: checking for u_int8_t" >&5
++echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
++if test "${ac_cv_type_u_int8_t+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++int
++main ()
++{
++if ((u_int8_t *) 0)
++ return 0;
++if (sizeof (u_int8_t))
++ return 0;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_type_u_int8_t=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_type_u_int8_t=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
++echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
++if test $ac_cv_type_u_int8_t = yes; then
++ :
++else
++
++cat >>confdefs.h <<_ACEOF
++@%:@define u_int8_t uint8_t
++_ACEOF
++
++fi
++
++ echo "$as_me:$LINENO: checking for u_int16_t" >&5
++echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
++if test "${ac_cv_type_u_int16_t+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++int
++main ()
++{
++if ((u_int16_t *) 0)
++ return 0;
++if (sizeof (u_int16_t))
++ return 0;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_type_u_int16_t=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_type_u_int16_t=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
++echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
++if test $ac_cv_type_u_int16_t = yes; then
++ :
++else
++
++cat >>confdefs.h <<_ACEOF
++@%:@define u_int16_t uint16_t
++_ACEOF
++
++fi
++
++ echo "$as_me:$LINENO: checking for u_int32_t" >&5
++echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
++if test "${ac_cv_type_u_int32_t+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++$ac_includes_default
++int
++main ()
++{
++if ((u_int32_t *) 0)
++ return 0;
++if (sizeof (u_int32_t))
++ return 0;
++ ;
++ return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_type_u_int32_t=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_type_u_int32_t=no
++fi
++rm -f conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
++echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
++if test $ac_cv_type_u_int32_t = yes; then
++ :
++else
++
++cat >>confdefs.h <<_ACEOF
++@%:@define u_int32_t uint32_t
++_ACEOF
++
++fi
++
++ fi
++fi
++
++
++# let's make some fixes..
++
++CFLAGS=`echo $CFLAGS | sed -e 's/-I\/usr\/include //g'`
++CPPFLAGS=`echo $CPPFLAGS | sed -e 's/-I\/usr\/include //g'`
++
++INCLUDES='-I$(top_srcdir) -I$(top_srcdir)/src $(extra_incl) -I$(top_srcdir)/src/output-plugins -I$(top_srcdir)/src/detection-plugins -I$(top_srcdir)/src/preprocessors'
++
++
++# Find a good install program. We prefer a C program (faster),
++# so one script is as good as another. But avoid the broken or
++# incompatible versions:
++# SysV /etc/install, /usr/sbin/install
++# SunOS /usr/etc/install
++# IRIX /sbin/install
++# AIX /bin/install
++# AmigaOS /C/install, which installs bootblocks on floppy discs
++# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
++# AFS /usr/afsws/bin/install, which mishandles nonexistent args
++# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
++# ./install, which can be erroneously created by make from ./install.sh.
++echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
++echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
++if test -z "$INSTALL"; then
++if test "${ac_cv_path_install+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ # Account for people who put trailing slashes in PATH elements.
++case $as_dir/ in
++ ./ | .// | /cC/* | \
++ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
++ /usr/ucb/* ) ;;
++ *)
++ # OSF1 and SCO ODT 3.0 have their own names for install.
++ # Don't use installbsd from OSF since it installs stuff as root
++ # by default.
++ for ac_prog in ginstall scoinst install; do
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
++ if test $ac_prog = install &&
++ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
++ # AIX install. It has an incompatible calling convention.
++ :
++ elif test $ac_prog = install &&
++ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
++ # program-specific install script used by HP pwplus--don't use.
++ :
++ else
++ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
++ break 3
++ fi
++ fi
++ done
++ done
++ ;;
++esac
++done
++
++
++fi
++ if test "${ac_cv_path_install+set}" = set; then
++ INSTALL=$ac_cv_path_install
++ else
++ # As a last resort, use the slow shell script. We don't cache a
++ # path for INSTALL within a source directory, because that will
++ # break other packages using the cache if that directory is
++ # removed, or if the path is relative.
++ INSTALL=$ac_install_sh
++ fi
++fi
++echo "$as_me:$LINENO: result: $INSTALL" >&5
++echo "${ECHO_T}$INSTALL" >&6
++
++# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
++# It thinks the first close brace ends the variable substitution.
++test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
++
++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
++
++test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
++
++ ac_config_files="$ac_config_files Makefile src/Makefile src/detection-plugins/Makefile src/output-plugins/Makefile src/preprocessors/Makefile src/parser/Makefile doc/Makefile contrib/Makefile etc/Makefile rules/Makefile templates/Makefile src/win32/Makefile"
++cat >confcache <<\_ACEOF
++# This file is a shell script that caches the results of configure
++# tests run on this system so they can be shared between configure
++# scripts and configure runs, see configure's option --config-cache.
++# It is not useful on other systems. If it contains results you don't
++# want to keep, you may remove or edit it.
++#
++# config.status only pays attention to the cache file if you give it
++# the --recheck option to rerun configure.
++#
++# `ac_cv_env_foo' variables (set or unset) will be overridden when
++# loading this file, other *unset* `ac_cv_foo' will be assigned the
++# following values.
++
++_ACEOF
++
++# The following way of writing the cache mishandles newlines in values,
++# but we know of no workaround that is simple, portable, and efficient.
++# So, don't put newlines in cache variables' values.
++# Ultrix sh set writes to stderr and can't be redirected directly,
++# and sets the high bit in the cache file unless we assign to the vars.
++{
++ (set) 2>&1 |
++ case `(ac_space=' '; set | grep ac_space) 2>&1` in
++ *ac_space=\ *)
++ # `set' does not quote correctly, so add quotes (double-quote
++ # substitution turns \\\\ into \\, and sed turns \\ into \).
++ sed -n \
++ "s/'/'\\\\''/g;
++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
++ ;;
++ *)
++ # `set' quotes correctly as required by POSIX, so do not add quotes.
++ sed -n \
++ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
++ ;;
++ esac;
++} |
++ sed '
++ t clear
++ : clear
++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
++ t end
++ /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
++ : end' >>confcache
++if diff $cache_file confcache >/dev/null 2>&1; then :; else
++ if test -w $cache_file; then
++ test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
++ cat confcache >$cache_file
++ else
++ echo "not updating unwritable cache $cache_file"
++ fi
++fi
++rm -f confcache
++
++test "x$prefix" = xNONE && prefix=$ac_default_prefix
++# Let make expand exec_prefix.
++test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
++
++# VPATH may cause trouble with some makes, so we remove $(srcdir),
++# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
++# trailing colons and then remove the whole line if VPATH becomes empty
++# (actually we leave an empty line to preserve line numbers).
++if test "x$srcdir" = x.; then
++ ac_vpsub='/^[ ]*VPATH[ ]*=/{
++s/:*\$(srcdir):*/:/;
++s/:*\${srcdir}:*/:/;
++s/:*@srcdir@:*/:/;
++s/^\([^=]*=[ ]*\):*/\1/;
++s/:*$//;
++s/^[^=]*=[ ]*$//;
++}'
++fi
++
++DEFS=-DHAVE_CONFIG_H
++
++ac_libobjs=
++ac_ltlibobjs=
++for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
++ # 1. Remove the extension, and $U if already installed.
++ ac_i=`echo "$ac_i" |
++ sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
++ # 2. Add them.
++ ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
++ ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
++done
++LIB@&t@OBJS=$ac_libobjs
++
++LTLIBOBJS=$ac_ltlibobjs
++
++
++if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
++ { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
++Usually this means the macro was only invoked conditionally." >&5
++echo "$as_me: error: conditional \"AMDEP\" was never defined.
++Usually this means the macro was only invoked conditionally." >&2;}
++ { (exit 1); exit 1; }; }
++fi
++
++: ${CONFIG_STATUS=./config.status}
++ac_clean_files_save=$ac_clean_files
++ac_clean_files="$ac_clean_files $CONFIG_STATUS"
++{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
++echo "$as_me: creating $CONFIG_STATUS" >&6;}
++cat >$CONFIG_STATUS <<_ACEOF
++#! $SHELL
++# Generated by $as_me.
++# Run this file to recreate the current configuration.
++# Compiler output produced by configure, useful for debugging
++# configure, is in config.log if it exists.
++
++debug=false
++ac_cs_recheck=false
++ac_cs_silent=false
++SHELL=\${CONFIG_SHELL-$SHELL}
++_ACEOF
++
++cat >>$CONFIG_STATUS <<\_ACEOF
++## --------------------- ##
++## M4sh Initialization. ##
++## --------------------- ##
++
++# Be Bourne compatible
++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
++ emulate sh
++ NULLCMD=:
++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
++ # is contrary to our usage. Disable this feature.
++ alias -g '${1+"$@"}'='"$@"'
++elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
++ set -o posix
++fi
++
++# Support unset when possible.
++if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
++ as_unset=unset
++else
++ as_unset=false
++fi
++
++
++# Work around bugs in pre-3.0 UWIN ksh.
++$as_unset ENV MAIL MAILPATH
++PS1='$ '
++PS2='> '
++PS4='+ '
++
++# NLS nuisances.
++for as_var in \
++ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
++ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
++ LC_TELEPHONE LC_TIME
++do
++ if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
++ eval $as_var=C; export $as_var
++ else
++ $as_unset $as_var
++ fi
++done
++
++# Required to use basename.
++if expr a : '\(a\)' >/dev/null 2>&1; then
++ as_expr=expr
++else
++ as_expr=false
++fi
++
++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
++ as_basename=basename
++else
++ as_basename=false
++fi
++
++
++# Name of the executable.
++as_me=`$as_basename "$0" ||
++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
++ X"$0" : 'X\(//\)$' \| \
++ X"$0" : 'X\(/\)$' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X/"$0" |
++ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
++ /^X\/\(\/\/\)$/{ s//\1/; q; }
++ /^X\/\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++
++
++# PATH needs CR, and LINENO needs CR and PATH.
++# Avoid depending upon Character Ranges.
++as_cr_letters='abcdefghijklmnopqrstuvwxyz'
++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
++as_cr_Letters=$as_cr_letters$as_cr_LETTERS
++as_cr_digits='0123456789'
++as_cr_alnum=$as_cr_Letters$as_cr_digits
++
++# The user is always right.
++if test "${PATH_SEPARATOR+set}" != set; then
++ echo "#! /bin/sh" >conf$$.sh
++ echo "exit 0" >>conf$$.sh
++ chmod +x conf$$.sh
++ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
++ PATH_SEPARATOR=';'
++ else
++ PATH_SEPARATOR=:
++ fi
++ rm -f conf$$.sh
++fi
++
++
++ as_lineno_1=$LINENO
++ as_lineno_2=$LINENO
++ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
++ test "x$as_lineno_1" != "x$as_lineno_2" &&
++ test "x$as_lineno_3" = "x$as_lineno_2" || {
++ # Find who we are. Look in the path if we contain no path at all
++ # relative or not.
++ case $0 in
++ *[\\/]* ) as_myself=$0 ;;
++ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
++done
++
++ ;;
++ esac
++ # We did not find ourselves, most probably we were run as `sh COMMAND'
++ # in which case we are not to be found in the path.
++ if test "x$as_myself" = x; then
++ as_myself=$0
++ fi
++ if test ! -f "$as_myself"; then
++ { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
++echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
++ { (exit 1); exit 1; }; }
++ fi
++ case $CONFIG_SHELL in
++ '')
++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for as_base in sh bash ksh sh5; do
++ case $as_dir in
++ /*)
++ if ("$as_dir/$as_base" -c '
++ as_lineno_1=$LINENO
++ as_lineno_2=$LINENO
++ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
++ test "x$as_lineno_1" != "x$as_lineno_2" &&
++ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
++ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
++ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
++ CONFIG_SHELL=$as_dir/$as_base
++ export CONFIG_SHELL
++ exec "$CONFIG_SHELL" "$0" ${1+"$@"}
++ fi;;
++ esac
++ done
++done
++;;
++ esac
++
++ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
++ # uniformly replaced by the line number. The first 'sed' inserts a
++ # line-number line before each line; the second 'sed' does the real
++ # work. The second script uses 'N' to pair each line-number line
++ # with the numbered line, and appends trailing '-' during
++ # substitution so that $LINENO is not a special case at line end.
++ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
++ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
++ sed '=' <$as_myself |
++ sed '
++ N
++ s,$,-,
++ : loop
++ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
++ t loop
++ s,-$,,
++ s,^['$as_cr_digits']*\n,,
++ ' >$as_me.lineno &&
++ chmod +x $as_me.lineno ||
++ { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
++echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
++ { (exit 1); exit 1; }; }
++
++ # Don't try to exec as it changes $[0], causing all sort of problems
++ # (the dirname of $[0] is not the place where we might find the
++ # original and so on. Autoconf is especially sensible to this).
++ . ./$as_me.lineno
++ # Exit status is that of the last command.
++ exit
++}
++
++
++case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
++ *c*,-n*) ECHO_N= ECHO_C='
++' ECHO_T=' ' ;;
++ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
++ *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
++esac
++
++if expr a : '\(a\)' >/dev/null 2>&1; then
++ as_expr=expr
++else
++ as_expr=false
++fi
++
++rm -f conf$$ conf$$.exe conf$$.file
++echo >conf$$.file
++if ln -s conf$$.file conf$$ 2>/dev/null; then
++ # We could just check for DJGPP; but this test a) works b) is more generic
++ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
++ if test -f conf$$.exe; then
++ # Don't use ln at all; we don't have any links
++ as_ln_s='cp -p'
++ else
++ as_ln_s='ln -s'
++ fi
++elif ln conf$$.file conf$$ 2>/dev/null; then
++ as_ln_s=ln
++else
++ as_ln_s='cp -p'
++fi
++rm -f conf$$ conf$$.exe conf$$.file
++
++if mkdir -p . 2>/dev/null; then
++ as_mkdir_p=:
++else
++ as_mkdir_p=false
++fi
++
++as_executable_p="test -f"
++
++# Sed expression to map a string onto a valid CPP name.
++as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
++
++# Sed expression to map a string onto a valid variable name.
++as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
++
++
++# IFS
++# We need space, tab and new line, in precisely that order.
++as_nl='
++'
++IFS=" $as_nl"
++
++# CDPATH.
++$as_unset CDPATH
++
++exec 6>&1
++
++# Open the log real soon, to keep \$[0] and so on meaningful, and to
++# report actual input values of CONFIG_FILES etc. instead of their
++# values after options handling. Logging --version etc. is OK.
++exec 5>>config.log
++{
++ echo
++ sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
++@%:@@%:@ Running $as_me. @%:@@%:@
++_ASBOX
++} >&5
++cat >&5 <<_CSEOF
++
++This file was extended by $as_me, which was
++generated by GNU Autoconf 2.57. Invocation command line was
++
++ CONFIG_FILES = $CONFIG_FILES
++ CONFIG_HEADERS = $CONFIG_HEADERS
++ CONFIG_LINKS = $CONFIG_LINKS
++ CONFIG_COMMANDS = $CONFIG_COMMANDS
++ $ $0 $@
++
++_CSEOF
++echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
++echo >&5
++_ACEOF
++
++# Files that config.status was made for.
++if test -n "$ac_config_files"; then
++ echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
++fi
++
++if test -n "$ac_config_headers"; then
++ echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
++fi
++
++if test -n "$ac_config_links"; then
++ echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
++fi
++
++if test -n "$ac_config_commands"; then
++ echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
++fi
++
++cat >>$CONFIG_STATUS <<\_ACEOF
++
++ac_cs_usage="\
++\`$as_me' instantiates files from templates according to the
++current configuration.
++
++Usage: $0 [OPTIONS] [FILE]...
++
++ -h, --help print this help, then exit
++ -V, --version print version number, then exit
++ -q, --quiet do not print progress messages
++ -d, --debug don't remove temporary files
++ --recheck update $as_me by reconfiguring in the same conditions
++ --file=FILE[:TEMPLATE]
++ instantiate the configuration file FILE
++ --header=FILE[:TEMPLATE]
++ instantiate the configuration header FILE
++
++Configuration files:
++$config_files
++
++Configuration headers:
++$config_headers
++
++Configuration commands:
++$config_commands
++
++Report bugs to <bug-autoconf@gnu.org>."
++_ACEOF
++
++cat >>$CONFIG_STATUS <<_ACEOF
++ac_cs_version="\\
++config.status
++configured by $0, generated by GNU Autoconf 2.57,
++ with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
++
++Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
++Free Software Foundation, Inc.
++This config.status script is free software; the Free Software Foundation
++gives unlimited permission to copy, distribute and modify it."
++srcdir=$srcdir
++INSTALL="$INSTALL"
++_ACEOF
++
++cat >>$CONFIG_STATUS <<\_ACEOF
++# If no file are specified by the user, then we need to provide default
++# value. By we need to know if files were specified by the user.
++ac_need_defaults=:
++while test $# != 0
++do
++ case $1 in
++ --*=*)
++ ac_option=`expr "x$1" : 'x\([^=]*\)='`
++ ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
++ ac_shift=:
++ ;;
++ -*)
++ ac_option=$1
++ ac_optarg=$2
++ ac_shift=shift
++ ;;
++ *) # This is not an option, so the user has probably given explicit
++ # arguments.
++ ac_option=$1
++ ac_need_defaults=false;;
++ esac
++
++ case $ac_option in
++ # Handling of the options.
++_ACEOF
++cat >>$CONFIG_STATUS <<\_ACEOF
++ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
++ ac_cs_recheck=: ;;
++ --version | --vers* | -V )
++ echo "$ac_cs_version"; exit 0 ;;
++ --he | --h)
++ # Conflict between --help and --header
++ { { echo "$as_me:$LINENO: error: ambiguous option: $1
++Try \`$0 --help' for more information." >&5
++echo "$as_me: error: ambiguous option: $1
++Try \`$0 --help' for more information." >&2;}
++ { (exit 1); exit 1; }; };;
++ --help | --hel | -h )
++ echo "$ac_cs_usage"; exit 0 ;;
++ --debug | --d* | -d )
++ debug=: ;;
++ --file | --fil | --fi | --f )
++ $ac_shift
++ CONFIG_FILES="$CONFIG_FILES $ac_optarg"
++ ac_need_defaults=false;;
++ --header | --heade | --head | --hea )
++ $ac_shift
++ CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
++ ac_need_defaults=false;;
++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
++ | -silent | --silent | --silen | --sile | --sil | --si | --s)
++ ac_cs_silent=: ;;
++
++ # This is an error.
++ -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
++Try \`$0 --help' for more information." >&5
++echo "$as_me: error: unrecognized option: $1
++Try \`$0 --help' for more information." >&2;}
++ { (exit 1); exit 1; }; } ;;
++
++ *) ac_config_targets="$ac_config_targets $1" ;;
++
++ esac
++ shift
++done
++
++ac_configure_extra_args=
++
++if $ac_cs_silent; then
++ exec 6>/dev/null
++ ac_configure_extra_args="$ac_configure_extra_args --silent"
++fi
++
++_ACEOF
++cat >>$CONFIG_STATUS <<_ACEOF
++if \$ac_cs_recheck; then
++ echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
++ exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
++fi
++
++_ACEOF
++
++cat >>$CONFIG_STATUS <<_ACEOF
++#
++# INIT-COMMANDS section.
++#
++
++AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
++
++_ACEOF
++
++
++
++cat >>$CONFIG_STATUS <<\_ACEOF
++for ac_config_target in $ac_config_targets
++do
++ case "$ac_config_target" in
++ # Handling of arguments.
++ "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
++ "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
++ "src/detection-plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/detection-plugins/Makefile" ;;
++ "src/output-plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/output-plugins/Makefile" ;;
++ "src/preprocessors/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/preprocessors/Makefile" ;;
++ "src/parser/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/parser/Makefile" ;;
++ "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
++ "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
++ "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
++ "rules/Makefile" ) CONFIG_FILES="$CONFIG_FILES rules/Makefile" ;;
++ "templates/Makefile" ) CONFIG_FILES="$CONFIG_FILES templates/Makefile" ;;
++ "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
++ "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
++ "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
++ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
++echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
++ { (exit 1); exit 1; }; };;
++ esac
++done
++
++# If the user did not use the arguments to specify the items to instantiate,
++# then the envvar interface is used. Set only those that are not.
++# We use the long form for the default assignment because of an extremely
++# bizarre bug on SunOS 4.1.3.
++if $ac_need_defaults; then
++ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
++ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
++ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
++fi
++
++# Have a temporary directory for convenience. Make it in the build tree
++# simply because there is no reason to put it here, and in addition,
++# creating and moving files from /tmp can sometimes cause problems.
++# Create a temporary directory, and hook for its removal unless debugging.
++$debug ||
++{
++ trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
++ trap '{ (exit 1); exit 1; }' 1 2 13 15
++}
++
++# Create a (secure) tmp directory for tmp files.
++
++{
++ tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
++ test -n "$tmp" && test -d "$tmp"
++} ||
++{
++ tmp=./confstat$$-$RANDOM
++ (umask 077 && mkdir $tmp)
++} ||
++{
++ echo "$me: cannot create a temporary directory in ." >&2
++ { (exit 1); exit 1; }
++}
++
++_ACEOF
++
++cat >>$CONFIG_STATUS <<_ACEOF
++
++#
++# CONFIG_FILES section.
++#
++
++# No need to generate the scripts if there are no CONFIG_FILES.
++# This happens for instance when ./config.status config.h
++if test -n "\$CONFIG_FILES"; then
++ # Protect against being on the right side of a sed subst in config.status.
++ sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
++ s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
++s,@SHELL@,$SHELL,;t t
++s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
++s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
++s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
++s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
++s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
++s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
++s,@exec_prefix@,$exec_prefix,;t t
++s,@prefix@,$prefix,;t t
++s,@program_transform_name@,$program_transform_name,;t t
++s,@bindir@,$bindir,;t t
++s,@sbindir@,$sbindir,;t t
++s,@libexecdir@,$libexecdir,;t t
++s,@datadir@,$datadir,;t t
++s,@sysconfdir@,$sysconfdir,;t t
++s,@sharedstatedir@,$sharedstatedir,;t t
++s,@localstatedir@,$localstatedir,;t t
++s,@libdir@,$libdir,;t t
++s,@includedir@,$includedir,;t t
++s,@oldincludedir@,$oldincludedir,;t t
++s,@infodir@,$infodir,;t t
++s,@mandir@,$mandir,;t t
++s,@build_alias@,$build_alias,;t t
++s,@host_alias@,$host_alias,;t t
++s,@target_alias@,$target_alias,;t t
++s,@DEFS@,$DEFS,;t t
++s,@ECHO_C@,$ECHO_C,;t t
++s,@ECHO_N@,$ECHO_N,;t t
++s,@ECHO_T@,$ECHO_T,;t t
++s,@LIBS@,$LIBS,;t t
++s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
++s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
++s,@INSTALL_DATA@,$INSTALL_DATA,;t t
++s,@PACKAGE@,$PACKAGE,;t t
++s,@VERSION@,$VERSION,;t t
++s,@ACLOCAL@,$ACLOCAL,;t t
++s,@AUTOCONF@,$AUTOCONF,;t t
++s,@AUTOMAKE@,$AUTOMAKE,;t t
++s,@AUTOHEADER@,$AUTOHEADER,;t t
++s,@MAKEINFO@,$MAKEINFO,;t t
++s,@AMTAR@,$AMTAR,;t t
++s,@install_sh@,$install_sh,;t t
++s,@STRIP@,$STRIP,;t t
++s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
++s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
++s,@AWK@,$AWK,;t t
++s,@SET_MAKE@,$SET_MAKE,;t t
++s,@CC@,$CC,;t t
++s,@CFLAGS@,$CFLAGS,;t t
++s,@LDFLAGS@,$LDFLAGS,;t t
++s,@CPPFLAGS@,$CPPFLAGS,;t t
++s,@ac_ct_CC@,$ac_ct_CC,;t t
++s,@EXEEXT@,$EXEEXT,;t t
++s,@OBJEXT@,$OBJEXT,;t t
++s,@DEPDIR@,$DEPDIR,;t t
++s,@am__include@,$am__include,;t t
++s,@am__quote@,$am__quote,;t t
++s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
++s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
++s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
++s,@CCDEPMODE@,$CCDEPMODE,;t t
++s,@RANLIB@,$RANLIB,;t t
++s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
++s,@build@,$build,;t t
++s,@build_cpu@,$build_cpu,;t t
++s,@build_vendor@,$build_vendor,;t t
++s,@build_os@,$build_os,;t t
++s,@host@,$host,;t t
++s,@host_cpu@,$host_cpu,;t t
++s,@host_vendor@,$host_vendor,;t t
++s,@host_os@,$host_os,;t t
++s,@extra_incl@,$extra_incl,;t t
++s,@CPP@,$CPP,;t t
++s,@EGREP@,$EGREP,;t t
++s,@LIBPRELUDE_CONFIG@,$LIBPRELUDE_CONFIG,;t t
++s,@LIBPRELUDE_CFLAGS@,$LIBPRELUDE_CFLAGS,;t t
++s,@LIBPRELUDE_LIBS@,$LIBPRELUDE_LIBS,;t t
++s,@INCLUDES@,$INCLUDES,;t t
++s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
++s,@LTLIBOBJS@,$LTLIBOBJS,;t t
++CEOF
++
++_ACEOF
++
++ cat >>$CONFIG_STATUS <<\_ACEOF
++ # Split the substitutions into bite-sized pieces for seds with
++ # small command number limits, like on Digital OSF/1 and HP-UX.
++ ac_max_sed_lines=48
++ ac_sed_frag=1 # Number of current file.
++ ac_beg=1 # First line for current file.
++ ac_end=$ac_max_sed_lines # Line after last line for current file.
++ ac_more_lines=:
++ ac_sed_cmds=
++ while $ac_more_lines; do
++ if test $ac_beg -gt 1; then
++ sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
++ else
++ sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
++ fi
++ if test ! -s $tmp/subs.frag; then
++ ac_more_lines=false
++ else
++ # The purpose of the label and of the branching condition is to
++ # speed up the sed processing (if there are no `@' at all, there
++ # is no need to browse any of the substitutions).
++ # These are the two extra sed commands mentioned above.
++ (echo ':t
++ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
++ if test -z "$ac_sed_cmds"; then
++ ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
++ else
++ ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
++ fi
++ ac_sed_frag=`expr $ac_sed_frag + 1`
++ ac_beg=$ac_end
++ ac_end=`expr $ac_end + $ac_max_sed_lines`
++ fi
++ done
++ if test -z "$ac_sed_cmds"; then
++ ac_sed_cmds=cat
++ fi
++fi # test -n "$CONFIG_FILES"
++
++_ACEOF
++cat >>$CONFIG_STATUS <<\_ACEOF
++for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
++ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
++ case $ac_file in
++ - | *:- | *:-:* ) # input from stdin
++ cat >$tmp/stdin
++ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
++ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
++ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
++ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
++ * ) ac_file_in=$ac_file.in ;;
++ esac
++
++ # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
++ ac_dir=`(dirname "$ac_file") 2>/dev/null ||
++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++ X"$ac_file" : 'X\(//\)[^/]' \| \
++ X"$ac_file" : 'X\(//\)$' \| \
++ X"$ac_file" : 'X\(/\)' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X"$ac_file" |
++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++ /^X\(\/\/\)$/{ s//\1/; q; }
++ /^X\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++ { if $as_mkdir_p; then
++ mkdir -p "$ac_dir"
++ else
++ as_dir="$ac_dir"
++ as_dirs=
++ while test ! -d "$as_dir"; do
++ as_dirs="$as_dir $as_dirs"
++ as_dir=`(dirname "$as_dir") 2>/dev/null ||
++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++ X"$as_dir" : 'X\(//\)[^/]' \| \
++ X"$as_dir" : 'X\(//\)$' \| \
++ X"$as_dir" : 'X\(/\)' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X"$as_dir" |
++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++ /^X\(\/\/\)$/{ s//\1/; q; }
++ /^X\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++ done
++ test ! -n "$as_dirs" || mkdir $as_dirs
++ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
++ { (exit 1); exit 1; }; }; }
++
++ ac_builddir=.
++
++if test "$ac_dir" != .; then
++ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
++ # A "../" for each directory in $ac_dir_suffix.
++ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
++else
++ ac_dir_suffix= ac_top_builddir=
++fi
++
++case $srcdir in
++ .) # No --srcdir option. We are building in place.
++ ac_srcdir=.
++ if test -z "$ac_top_builddir"; then
++ ac_top_srcdir=.
++ else
++ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
++ fi ;;
++ [\\/]* | ?:[\\/]* ) # Absolute path.
++ ac_srcdir=$srcdir$ac_dir_suffix;
++ ac_top_srcdir=$srcdir ;;
++ *) # Relative path.
++ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
++ ac_top_srcdir=$ac_top_builddir$srcdir ;;
++esac
++# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
++# absolute.
++ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
++ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
++ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
++ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
++
++
++ case $INSTALL in
++ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
++ *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
++ esac
++
++ if test x"$ac_file" != x-; then
++ { echo "$as_me:$LINENO: creating $ac_file" >&5
++echo "$as_me: creating $ac_file" >&6;}
++ rm -f "$ac_file"
++ fi
++ # Let's still pretend it is `configure' which instantiates (i.e., don't
++ # use $as_me), people would be surprised to read:
++ # /* config.h. Generated by config.status. */
++ if test x"$ac_file" = x-; then
++ configure_input=
++ else
++ configure_input="$ac_file. "
++ fi
++ configure_input=$configure_input"Generated from `echo $ac_file_in |
++ sed 's,.*/,,'` by configure."
++
++ # First look for the input files in the build tree, otherwise in the
++ # src tree.
++ ac_file_inputs=`IFS=:
++ for f in $ac_file_in; do
++ case $f in
++ -) echo $tmp/stdin ;;
++ [\\/$]*)
++ # Absolute (can't be DOS-style, as IFS=:)
++ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
++echo "$as_me: error: cannot find input file: $f" >&2;}
++ { (exit 1); exit 1; }; }
++ echo $f;;
++ *) # Relative
++ if test -f "$f"; then
++ # Build tree
++ echo $f
++ elif test -f "$srcdir/$f"; then
++ # Source tree
++ echo $srcdir/$f
++ else
++ # /dev/null tree
++ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
++echo "$as_me: error: cannot find input file: $f" >&2;}
++ { (exit 1); exit 1; }; }
++ fi;;
++ esac
++ done` || { (exit 1); exit 1; }
++_ACEOF
++cat >>$CONFIG_STATUS <<_ACEOF
++ sed "$ac_vpsub
++$extrasub
++_ACEOF
++cat >>$CONFIG_STATUS <<\_ACEOF
++:t
++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
++s,@configure_input@,$configure_input,;t t
++s,@srcdir@,$ac_srcdir,;t t
++s,@abs_srcdir@,$ac_abs_srcdir,;t t
++s,@top_srcdir@,$ac_top_srcdir,;t t
++s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
++s,@builddir@,$ac_builddir,;t t
++s,@abs_builddir@,$ac_abs_builddir,;t t
++s,@top_builddir@,$ac_top_builddir,;t t
++s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
++s,@INSTALL@,$ac_INSTALL,;t t
++" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
++ rm -f $tmp/stdin
++ if test x"$ac_file" != x-; then
++ mv $tmp/out $ac_file
++ else
++ cat $tmp/out
++ rm -f $tmp/out
++ fi
++
++done
++_ACEOF
++cat >>$CONFIG_STATUS <<\_ACEOF
++
++#
++# CONFIG_HEADER section.
++#
++
++# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
++# NAME is the cpp macro being defined and VALUE is the value it is being given.
++#
++# ac_d sets the value in "#define NAME VALUE" lines.
++ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
++ac_dB='[ ].*$,\1#\2'
++ac_dC=' '
++ac_dD=',;t'
++# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
++ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
++ac_uB='$,\1#\2define\3'
++ac_uC=' '
++ac_uD=',;t'
++
++for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
++ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
++ case $ac_file in
++ - | *:- | *:-:* ) # input from stdin
++ cat >$tmp/stdin
++ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
++ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
++ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
++ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
++ * ) ac_file_in=$ac_file.in ;;
++ esac
++
++ test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
++echo "$as_me: creating $ac_file" >&6;}
++
++ # First look for the input files in the build tree, otherwise in the
++ # src tree.
++ ac_file_inputs=`IFS=:
++ for f in $ac_file_in; do
++ case $f in
++ -) echo $tmp/stdin ;;
++ [\\/$]*)
++ # Absolute (can't be DOS-style, as IFS=:)
++ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
++echo "$as_me: error: cannot find input file: $f" >&2;}
++ { (exit 1); exit 1; }; }
++ echo $f;;
++ *) # Relative
++ if test -f "$f"; then
++ # Build tree
++ echo $f
++ elif test -f "$srcdir/$f"; then
++ # Source tree
++ echo $srcdir/$f
++ else
++ # /dev/null tree
++ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
++echo "$as_me: error: cannot find input file: $f" >&2;}
++ { (exit 1); exit 1; }; }
++ fi;;
++ esac
++ done` || { (exit 1); exit 1; }
++ # Remove the trailing spaces.
++ sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
++
++_ACEOF
++
++# Transform confdefs.h into two sed scripts, `conftest.defines' and
++# `conftest.undefs', that substitutes the proper values into
++# config.h.in to produce config.h. The first handles `#define'
++# templates, and the second `#undef' templates.
++# And first: Protect against being on the right side of a sed subst in
++# config.status. Protect against being in an unquoted here document
++# in config.status.
++rm -f conftest.defines conftest.undefs
++# Using a here document instead of a string reduces the quoting nightmare.
++# Putting comments in sed scripts is not portable.
++#
++# `end' is used to avoid that the second main sed command (meant for
++# 0-ary CPP macros) applies to n-ary macro definitions.
++# See the Autoconf documentation for `clear'.
++cat >confdef2sed.sed <<\_ACEOF
++s/[\\&,]/\\&/g
++s,[\\$`],\\&,g
++t clear
++: clear
++s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
++t end
++s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
++: end
++_ACEOF
++# If some macros were called several times there might be several times
++# the same #defines, which is useless. Nevertheless, we may not want to
++# sort them, since we want the *last* AC-DEFINE to be honored.
++uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
++sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
++rm -f confdef2sed.sed
++
++# This sed command replaces #undef with comments. This is necessary, for
++# example, in the case of _POSIX_SOURCE, which is predefined and required
++# on some systems where configure will not decide to define it.
++cat >>conftest.undefs <<\_ACEOF
++s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
++_ACEOF
++
++# Break up conftest.defines because some shells have a limit on the size
++# of here documents, and old seds have small limits too (100 cmds).
++echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
++echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
++echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
++echo ' :' >>$CONFIG_STATUS
++rm -f conftest.tail
++while grep . conftest.defines >/dev/null
++do
++ # Write a limited-size here document to $tmp/defines.sed.
++ echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
++ # Speed up: don't consider the non `#define' lines.
++ echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
++ # Work around the forget-to-reset-the-flag bug.
++ echo 't clr' >>$CONFIG_STATUS
++ echo ': clr' >>$CONFIG_STATUS
++ sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
++ echo 'CEOF
++ sed -f $tmp/defines.sed $tmp/in >$tmp/out
++ rm -f $tmp/in
++ mv $tmp/out $tmp/in
++' >>$CONFIG_STATUS
++ sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
++ rm -f conftest.defines
++ mv conftest.tail conftest.defines
++done
++rm -f conftest.defines
++echo ' fi # grep' >>$CONFIG_STATUS
++echo >>$CONFIG_STATUS
++
++# Break up conftest.undefs because some shells have a limit on the size
++# of here documents, and old seds have small limits too (100 cmds).
++echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
++rm -f conftest.tail
++while grep . conftest.undefs >/dev/null
++do
++ # Write a limited-size here document to $tmp/undefs.sed.
++ echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
++ # Speed up: don't consider the non `#undef'
++ echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
++ # Work around the forget-to-reset-the-flag bug.
++ echo 't clr' >>$CONFIG_STATUS
++ echo ': clr' >>$CONFIG_STATUS
++ sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
++ echo 'CEOF
++ sed -f $tmp/undefs.sed $tmp/in >$tmp/out
++ rm -f $tmp/in
++ mv $tmp/out $tmp/in
++' >>$CONFIG_STATUS
++ sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
++ rm -f conftest.undefs
++ mv conftest.tail conftest.undefs
++done
++rm -f conftest.undefs
++
++cat >>$CONFIG_STATUS <<\_ACEOF
++ # Let's still pretend it is `configure' which instantiates (i.e., don't
++ # use $as_me), people would be surprised to read:
++ # /* config.h. Generated by config.status. */
++ if test x"$ac_file" = x-; then
++ echo "/* Generated by configure. */" >$tmp/config.h
++ else
++ echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
++ fi
++ cat $tmp/in >>$tmp/config.h
++ rm -f $tmp/in
++ if test x"$ac_file" != x-; then
++ if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
++ { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
++echo "$as_me: $ac_file is unchanged" >&6;}
++ else
++ ac_dir=`(dirname "$ac_file") 2>/dev/null ||
++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++ X"$ac_file" : 'X\(//\)[^/]' \| \
++ X"$ac_file" : 'X\(//\)$' \| \
++ X"$ac_file" : 'X\(/\)' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X"$ac_file" |
++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++ /^X\(\/\/\)$/{ s//\1/; q; }
++ /^X\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++ { if $as_mkdir_p; then
++ mkdir -p "$ac_dir"
++ else
++ as_dir="$ac_dir"
++ as_dirs=
++ while test ! -d "$as_dir"; do
++ as_dirs="$as_dir $as_dirs"
++ as_dir=`(dirname "$as_dir") 2>/dev/null ||
++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++ X"$as_dir" : 'X\(//\)[^/]' \| \
++ X"$as_dir" : 'X\(//\)$' \| \
++ X"$as_dir" : 'X\(/\)' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X"$as_dir" |
++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++ /^X\(\/\/\)$/{ s//\1/; q; }
++ /^X\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++ done
++ test ! -n "$as_dirs" || mkdir $as_dirs
++ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
++ { (exit 1); exit 1; }; }; }
++
++ rm -f $ac_file
++ mv $tmp/config.h $ac_file
++ fi
++ else
++ cat $tmp/config.h
++ rm -f $tmp/config.h
++ fi
++ # Run the commands associated with the file.
++ case $ac_file in
++ config.h ) # update the timestamp
++echo 'timestamp for config.h' >"./stamp-h1"
++ ;;
++ esac
++done
++_ACEOF
++cat >>$CONFIG_STATUS <<\_ACEOF
++
++#
++# CONFIG_COMMANDS section.
++#
++for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
++ ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
++ ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
++ ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
++$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++ X"$ac_dest" : 'X\(//\)[^/]' \| \
++ X"$ac_dest" : 'X\(//\)$' \| \
++ X"$ac_dest" : 'X\(/\)' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X"$ac_dest" |
++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++ /^X\(\/\/\)$/{ s//\1/; q; }
++ /^X\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++ ac_builddir=.
++
++if test "$ac_dir" != .; then
++ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
++ # A "../" for each directory in $ac_dir_suffix.
++ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
++else
++ ac_dir_suffix= ac_top_builddir=
++fi
++
++case $srcdir in
++ .) # No --srcdir option. We are building in place.
++ ac_srcdir=.
++ if test -z "$ac_top_builddir"; then
++ ac_top_srcdir=.
++ else
++ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
++ fi ;;
++ [\\/]* | ?:[\\/]* ) # Absolute path.
++ ac_srcdir=$srcdir$ac_dir_suffix;
++ ac_top_srcdir=$srcdir ;;
++ *) # Relative path.
++ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
++ ac_top_srcdir=$ac_top_builddir$srcdir ;;
++esac
++# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
++# absolute.
++ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
++ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
++ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
++ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
++
++
++ { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
++echo "$as_me: executing $ac_dest commands" >&6;}
++ case $ac_dest in
++ depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
++ # Strip MF so we end up with the name of the file.
++ mf=`echo "$mf" | sed -e 's/:.*$//'`
++ # Check whether this is an Automake generated Makefile or not.
++ # We used to match only the files named `Makefile.in', but
++ # some people rename them; so instead we look at the file content.
++ # Grep'ing the first line is not enough: some people post-process
++ # each Makefile.in and add a new line on top of each file to say so.
++ # So let's grep whole file.
++ if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
++ dirpart=`(dirname "$mf") 2>/dev/null ||
++$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++ X"$mf" : 'X\(//\)[^/]' \| \
++ X"$mf" : 'X\(//\)$' \| \
++ X"$mf" : 'X\(/\)' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X"$mf" |
++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++ /^X\(\/\/\)$/{ s//\1/; q; }
++ /^X\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++ else
++ continue
++ fi
++ grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
++ # Extract the definition of DEP_FILES from the Makefile without
++ # running `make'.
++ DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
++ test -z "$DEPDIR" && continue
++ # When using ansi2knr, U may be empty or an underscore; expand it
++ U=`sed -n -e '/^U = / s///p' < "$mf"`
++ test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
++ # We invoke sed twice because it is the simplest approach to
++ # changing $(DEPDIR) to its actual value in the expansion.
++ for file in `sed -n -e '
++ /^DEP_FILES = .*\\\\$/ {
++ s/^DEP_FILES = //
++ :loop
++ s/\\\\$//
++ p
++ n
++ /\\\\$/ b loop
++ p
++ }
++ /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
++ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
++ # Make sure the directory exists.
++ test -f "$dirpart/$file" && continue
++ fdir=`(dirname "$file") 2>/dev/null ||
++$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++ X"$file" : 'X\(//\)[^/]' \| \
++ X"$file" : 'X\(//\)$' \| \
++ X"$file" : 'X\(/\)' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X"$file" |
++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++ /^X\(\/\/\)$/{ s//\1/; q; }
++ /^X\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++ { if $as_mkdir_p; then
++ mkdir -p $dirpart/$fdir
++ else
++ as_dir=$dirpart/$fdir
++ as_dirs=
++ while test ! -d "$as_dir"; do
++ as_dirs="$as_dir $as_dirs"
++ as_dir=`(dirname "$as_dir") 2>/dev/null ||
++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++ X"$as_dir" : 'X\(//\)[^/]' \| \
++ X"$as_dir" : 'X\(//\)$' \| \
++ X"$as_dir" : 'X\(/\)' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X"$as_dir" |
++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++ /^X\(\/\/\)$/{ s//\1/; q; }
++ /^X\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++ done
++ test ! -n "$as_dirs" || mkdir $as_dirs
++ fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
++echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
++ { (exit 1); exit 1; }; }; }
++
++ # echo "creating $dirpart/$file"
++ echo '# dummy' > "$dirpart/$file"
++ done
++done
++ ;;
++ esac
++done
++_ACEOF
++
++cat >>$CONFIG_STATUS <<\_ACEOF
++
++{ (exit 0); exit 0; }
++_ACEOF
++chmod +x $CONFIG_STATUS
++ac_clean_files=$ac_clean_files_save
++
++
++# configure is writing to config.log, and then calls config.status.
++# config.status does its own redirection, appending to config.log.
++# Unfortunately, on DOS this fails, as config.log is still kept open
++# by configure, so config.status won't be able to write to it; its
++# output is simply discarded. So we exec the FD to /dev/null,
++# effectively closing config.log, so it can be properly (re)opened and
++# appended to by config.status. When coming back to configure, we
++# need to make the FD available again.
++if test "$no_create" != yes; then
++ ac_cs_success=:
++ ac_config_status_args=
++ test "$silent" = yes &&
++ ac_config_status_args="$ac_config_status_args --quiet"
++ exec 5>/dev/null
++ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
++ exec 5>>config.log
++ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
++ # would make configure fail if this is the last instruction.
++ $ac_cs_success || { (exit 1); exit 1; }
++fi
++
++
+diff -r -N -u snort-2.0.1/autom4te.cache/requests snort-2.0.1+prelude/autom4te.cache/requests
+--- snort-2.0.1/autom4te.cache/requests 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/autom4te.cache/requests 2003-07-26 18:14:25.000000000 +0800
+@@ -0,0 +1,111 @@
++# This file was created by autom4te-2.57.
++# It contains the lists of macros which have been traced.
++# It can be safely removed.
++
++@request = (
++ bless( [
++ '0',
++ 1,
++ [
++ '/usr/share/autoconf'
++ ],
++ [
++ '/usr/share/autoconf/autoconf/autoconf.m4f',
++ 'aclocal.m4',
++ 'configure.in'
++ ],
++ {
++ 'm4_pattern_forbid' => 1,
++ 'AC_TYPE_OFF_T' => 1,
++ 'AC_C_VOLATILE' => 1,
++ 'AC_FUNC_CLOSEDIR_VOID' => 1,
++ 'AC_REPLACE_FNMATCH' => 1,
++ 'AC_PROG_LIBTOOL' => 1,
++ 'AC_FUNC_STAT' => 1,
++ 'AC_HEADER_TIME' => 1,
++ 'AC_FUNC_WAIT3' => 1,
++ 'AM_AUTOMAKE_VERSION' => 1,
++ 'AC_STRUCT_TM' => 1,
++ 'AC_FUNC_LSTAT' => 1,
++ 'AC_TYPE_MODE_T' => 1,
++ 'AC_FUNC_GETMNTENT' => 1,
++ 'AC_FUNC_STRTOD' => 1,
++ 'AC_CHECK_HEADERS' => 1,
++ 'AC_FUNC_STRNLEN' => 1,
++ 'AC_PROG_CXX' => 1,
++ 'AC_PATH_X' => 1,
++ 'AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK' => 1,
++ 'AC_PROG_AWK' => 1,
++ 'AC_HEADER_STDC' => 1,
++ 'AC_HEADER_MAJOR' => 1,
++ 'AC_FUNC_ERROR_AT_LINE' => 1,
++ 'AC_PROG_GCC_TRADITIONAL' => 1,
++ 'AC_LIBSOURCE' => 1,
++ 'AC_FUNC_MBRTOWC' => 1,
++ 'AC_STRUCT_ST_BLOCKS' => 1,
++ 'AC_TYPE_SIGNAL' => 1,
++ 'AC_TYPE_UID_T' => 1,
++ 'AC_CONFIG_AUX_DIR' => 1,
++ 'AC_PROG_MAKE_SET' => 1,
++ 'm4_pattern_allow' => 1,
++ 'AC_DEFINE_TRACE_LITERAL' => 1,
++ 'AC_FUNC_STRERROR_R' => 1,
++ 'AC_PROG_CC' => 1,
++ 'AC_DECL_SYS_SIGLIST' => 1,
++ 'AC_FUNC_FORK' => 1,
++ 'AC_FUNC_VPRINTF' => 1,
++ 'AC_FUNC_STRCOLL' => 1,
++ 'AC_PROG_YACC' => 1,
++ 'AC_INIT' => 1,
++ 'AC_STRUCT_TIMEZONE' => 1,
++ 'AC_FUNC_CHOWN' => 1,
++ 'AC_SUBST' => 1,
++ 'AC_FUNC_ALLOCA' => 1,
++ 'AC_CANONICAL_HOST' => 1,
++ 'AC_FUNC_GETPGRP' => 1,
++ 'AC_PROG_RANLIB' => 1,
++ 'AM_INIT_AUTOMAKE' => 1,
++ 'AC_FUNC_SETPGRP' => 1,
++ 'AC_CONFIG_SUBDIRS' => 1,
++ 'AC_FUNC_MMAP' => 1,
++ 'AC_FUNC_REALLOC' => 1,
++ 'AC_TYPE_SIZE_T' => 1,
++ 'AC_CHECK_TYPES' => 1,
++ 'AC_CHECK_MEMBERS' => 1,
++ 'AM_MAINTAINER_MODE' => 1,
++ 'AC_FUNC_UTIME_NULL' => 1,
++ 'AC_FUNC_SELECT_ARGTYPES' => 1,
++ 'AC_FUNC_STRFTIME' => 1,
++ 'AC_HEADER_STAT' => 1,
++ 'AC_C_INLINE' => 1,
++ 'AC_PROG_CPP' => 1,
++ 'AC_C_CONST' => 1,
++ 'AC_PROG_LEX' => 1,
++ 'AC_TYPE_PID_T' => 1,
++ 'AC_CONFIG_FILES' => 1,
++ 'include' => 1,
++ 'AC_FUNC_SETVBUF_REVERSED' => 1,
++ 'AC_PROG_INSTALL' => 1,
++ 'AM_GNU_GETTEXT' => 1,
++ 'AC_FUNC_OBSTACK' => 1,
++ 'AC_CHECK_LIB' => 1,
++ 'AC_FUNC_MALLOC' => 1,
++ 'AC_FUNC_GETGROUPS' => 1,
++ 'AC_FUNC_GETLOADAVG' => 1,
++ 'AH_OUTPUT' => 1,
++ 'AC_FUNC_FSEEKO' => 1,
++ 'AM_PROG_CC_C_O' => 1,
++ 'AM_CONDITIONAL' => 1,
++ 'AC_CANONICAL_SYSTEM' => 1,
++ 'AC_FUNC_MKTIME' => 1,
++ 'AC_CONFIG_HEADERS' => 1,
++ 'AC_HEADER_SYS_WAIT' => 1,
++ 'AC_FUNC_MEMCMP' => 1,
++ 'AC_PROG_LN_S' => 1,
++ 'm4_include' => 1,
++ 'AC_HEADER_DIRENT' => 1,
++ 'AC_CHECK_FUNCS' => 1
++ }
++ ], 'Request' )
++ );
++
+diff -r -N -u snort-2.0.1/autom4te.cache/traces.0 snort-2.0.1+prelude/autom4te.cache/traces.0
+--- snort-2.0.1/autom4te.cache/traces.0 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/autom4te.cache/traces.0 2003-07-26 18:14:25.000000000 +0800
+@@ -0,0 +1,310 @@
++m4trace:aclocal.m4:264: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$])
++m4trace:configure.in:2: -1- AC_INIT([src/snort.c])
++m4trace:configure.in:2: -1- m4_pattern_forbid([^_?A[CHUM]_])
++m4trace:configure.in:2: -1- m4_pattern_forbid([_AC_])
++m4trace:configure.in:2: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
++m4trace:configure.in:2: -1- m4_pattern_allow([^AS_FLAGS$])
++m4trace:configure.in:2: -1- m4_pattern_forbid([^_?m4_])
++m4trace:configure.in:2: -1- m4_pattern_forbid([^dnl$])
++m4trace:configure.in:2: -1- m4_pattern_forbid([^_?AS_])
++m4trace:configure.in:2: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}])
++m4trace:configure.in:2: -1- AC_SUBST([PATH_SEPARATOR])
++m4trace:configure.in:2: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
++m4trace:configure.in:2: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
++m4trace:configure.in:2: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
++m4trace:configure.in:2: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
++m4trace:configure.in:2: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
++m4trace:configure.in:2: -1- AC_SUBST([exec_prefix], [NONE])
++m4trace:configure.in:2: -1- AC_SUBST([prefix], [NONE])
++m4trace:configure.in:2: -1- AC_SUBST([program_transform_name], [s,x,x,])
++m4trace:configure.in:2: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
++m4trace:configure.in:2: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
++m4trace:configure.in:2: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
++m4trace:configure.in:2: -1- AC_SUBST([datadir], ['${prefix}/share'])
++m4trace:configure.in:2: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
++m4trace:configure.in:2: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
++m4trace:configure.in:2: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
++m4trace:configure.in:2: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
++m4trace:configure.in:2: -1- AC_SUBST([includedir], ['${prefix}/include'])
++m4trace:configure.in:2: -1- AC_SUBST([oldincludedir], ['/usr/include'])
++m4trace:configure.in:2: -1- AC_SUBST([infodir], ['${prefix}/info'])
++m4trace:configure.in:2: -1- AC_SUBST([mandir], ['${prefix}/man'])
++m4trace:configure.in:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
++m4trace:configure.in:2: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
++#undef PACKAGE_NAME])
++m4trace:configure.in:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
++m4trace:configure.in:2: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
++#undef PACKAGE_TARNAME])
++m4trace:configure.in:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
++m4trace:configure.in:2: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
++#undef PACKAGE_VERSION])
++m4trace:configure.in:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
++m4trace:configure.in:2: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
++#undef PACKAGE_STRING])
++m4trace:configure.in:2: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
++m4trace:configure.in:2: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
++#undef PACKAGE_BUGREPORT])
++m4trace:configure.in:2: -1- AC_SUBST([build_alias])
++m4trace:configure.in:2: -1- AC_SUBST([host_alias])
++m4trace:configure.in:2: -1- AC_SUBST([target_alias])
++m4trace:configure.in:2: -1- AC_SUBST([DEFS])
++m4trace:configure.in:2: -1- AC_SUBST([ECHO_C])
++m4trace:configure.in:2: -1- AC_SUBST([ECHO_N])
++m4trace:configure.in:2: -1- AC_SUBST([ECHO_T])
++m4trace:configure.in:2: -1- AC_SUBST([LIBS])
++m4trace:configure.in:3: -1- AC_CONFIG_HEADERS([config.h], [# update the timestamp
++echo 'timestamp for config.h' >"_AM_STAMP([config.h])"
++], [])
++m4trace:configure.in:6: -1- AM_INIT_AUTOMAKE([snort], [2.0.1])
++m4trace:configure.in:6: -1- AM_AUTOMAKE_VERSION([1.6.3])
++m4trace:configure.in:6: -1- AC_PROG_INSTALL
++m4trace:configure.in:6: -1- AC_SUBST([INSTALL_PROGRAM])
++m4trace:configure.in:6: -1- AC_SUBST([INSTALL_SCRIPT])
++m4trace:configure.in:6: -1- AC_SUBST([INSTALL_DATA])
++m4trace:configure.in:6: -1- AC_SUBST([PACKAGE], [snort])
++m4trace:configure.in:6: -1- AC_SUBST([VERSION], [2.0.1])
++m4trace:configure.in:6: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE])
++m4trace:configure.in:6: -1- AH_OUTPUT([PACKAGE], [/* Name of package */
++#undef PACKAGE])
++m4trace:configure.in:6: -1- AC_DEFINE_TRACE_LITERAL([VERSION])
++m4trace:configure.in:6: -1- AH_OUTPUT([VERSION], [/* Version number of package */
++#undef VERSION])
++m4trace:configure.in:6: -1- AC_SUBST([ACLOCAL])
++m4trace:configure.in:6: -1- AC_SUBST([AUTOCONF])
++m4trace:configure.in:6: -1- AC_SUBST([AUTOMAKE])
++m4trace:configure.in:6: -1- AC_SUBST([AUTOHEADER])
++m4trace:configure.in:6: -1- AC_SUBST([MAKEINFO])
++m4trace:configure.in:6: -1- AC_SUBST([AMTAR])
++m4trace:configure.in:6: -1- AC_SUBST([install_sh])
++m4trace:configure.in:6: -1- AC_SUBST([STRIP])
++m4trace:configure.in:6: -1- AC_SUBST([ac_ct_STRIP])
++m4trace:configure.in:6: -1- AC_SUBST([INSTALL_STRIP_PROGRAM])
++m4trace:configure.in:6: -1- AC_PROG_AWK
++m4trace:configure.in:6: -1- AC_SUBST([AWK])
++m4trace:configure.in:6: -1- AC_PROG_MAKE_SET
++m4trace:configure.in:6: -1- AC_SUBST([SET_MAKE])
++m4trace:configure.in:7: -1- AC_PROG_CC
++m4trace:configure.in:7: -1- AC_SUBST([CC])
++m4trace:configure.in:7: -1- AC_SUBST([CFLAGS])
++m4trace:configure.in:7: -1- AC_SUBST([LDFLAGS])
++m4trace:configure.in:7: -1- AC_SUBST([CPPFLAGS])
++m4trace:configure.in:7: -1- AC_SUBST([CC])
++m4trace:configure.in:7: -1- AC_SUBST([ac_ct_CC])
++m4trace:configure.in:7: -1- AC_SUBST([CC])
++m4trace:configure.in:7: -1- AC_SUBST([ac_ct_CC])
++m4trace:configure.in:7: -1- AC_SUBST([CC])
++m4trace:configure.in:7: -1- AC_SUBST([CC])
++m4trace:configure.in:7: -1- AC_SUBST([ac_ct_CC])
++m4trace:configure.in:7: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
++m4trace:configure.in:7: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
++m4trace:configure.in:7: -1- AC_SUBST([DEPDIR])
++m4trace:configure.in:7: -1- AC_SUBST([am__include])
++m4trace:configure.in:7: -1- AC_SUBST([am__quote])
++m4trace:configure.in:7: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
++m4trace:configure.in:7: -1- AC_SUBST([AMDEP_TRUE])
++m4trace:configure.in:7: -1- AC_SUBST([AMDEP_FALSE])
++m4trace:configure.in:7: -1- AC_SUBST([AMDEPBACKSLASH])
++m4trace:configure.in:7: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type])
++m4trace:configure.in:8: -1- AC_PROG_RANLIB
++m4trace:configure.in:8: -1- AC_SUBST([RANLIB])
++m4trace:configure.in:8: -1- AC_SUBST([ac_ct_RANLIB])
++m4trace:configure.in:10: -1- AC_PROG_CC
++m4trace:configure.in:10: -1- AC_SUBST([CC])
++m4trace:configure.in:10: -1- AC_SUBST([CFLAGS])
++m4trace:configure.in:10: -1- AC_SUBST([LDFLAGS])
++m4trace:configure.in:10: -1- AC_SUBST([CPPFLAGS])
++m4trace:configure.in:10: -1- AC_SUBST([CC])
++m4trace:configure.in:10: -1- AC_SUBST([ac_ct_CC])
++m4trace:configure.in:10: -1- AC_SUBST([CC])
++m4trace:configure.in:10: -1- AC_SUBST([ac_ct_CC])
++m4trace:configure.in:10: -1- AC_SUBST([CC])
++m4trace:configure.in:10: -1- AC_SUBST([CC])
++m4trace:configure.in:10: -1- AC_SUBST([ac_ct_CC])
++m4trace:configure.in:10: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type])
++m4trace:configure.in:34: -1- AC_CANONICAL_HOST
++m4trace:configure.in:34: -1- AC_SUBST([build], [$ac_cv_build])
++m4trace:configure.in:34: -1- AC_SUBST([build_cpu], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
++m4trace:configure.in:34: -1- AC_SUBST([build_vendor], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
++m4trace:configure.in:34: -1- AC_SUBST([build_os], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
++m4trace:configure.in:34: -1- AC_SUBST([host], [$ac_cv_host])
++m4trace:configure.in:34: -1- AC_SUBST([host_cpu], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
++m4trace:configure.in:34: -1- AC_SUBST([host_vendor], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
++m4trace:configure.in:34: -1- AC_SUBST([host_os], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
++m4trace:configure.in:38: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN])
++m4trace:configure.in:38: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define to 1 if your processor stores words with the most significant byte
++ first (like Motorola and SPARC, unlike Intel and VAX). */
++#undef WORDS_BIGENDIAN])
++m4trace:configure.in:43: -1- AC_DEFINE_TRACE_LITERAL([OPENBSD])
++m4trace:configure.in:44: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SIOCGIFMTU])
++m4trace:configure.in:48: -1- AC_DEFINE_TRACE_LITERAL([OPENBSD])
++m4trace:configure.in:52: -1- AC_DEFINE_TRACE_LITERAL([IRIX])
++m4trace:configure.in:62: -1- AC_DEFINE_TRACE_LITERAL([IRIX])
++m4trace:configure.in:72: -1- AC_DEFINE_TRACE_LITERAL([SOLARIS])
++m4trace:configure.in:76: -1- AC_DEFINE_TRACE_LITERAL([SUNOS])
++m4trace:configure.in:81: -1- AC_DEFINE_TRACE_LITERAL([LINUX])
++m4trace:configure.in:82: -1- AC_DEFINE_TRACE_LITERAL([PCAP_TIMEOUT_IGNORED])
++m4trace:configure.in:84: -1- AC_SUBST([extra_incl])
++m4trace:configure.in:88: -1- AC_DEFINE_TRACE_LITERAL([HPUX])
++m4trace:configure.in:89: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN])
++m4trace:configure.in:90: -1- AC_SUBST([extra_incl])
++m4trace:configure.in:95: -1- AC_DEFINE_TRACE_LITERAL([FREEBSD])
++m4trace:configure.in:99: -1- AC_DEFINE_TRACE_LITERAL([BSDI])
++m4trace:configure.in:102: -1- AC_DEFINE_TRACE_LITERAL([AIX])
++m4trace:configure.in:106: -1- AC_DEFINE_TRACE_LITERAL([OSF1])
++m4trace:configure.in:110: -1- AC_DEFINE_TRACE_LITERAL([OSF1])
++m4trace:configure.in:113: -1- AC_DEFINE_TRACE_LITERAL([OSF1])
++m4trace:configure.in:118: -1- AC_DEFINE_TRACE_LITERAL([MACOS])
++m4trace:configure.in:119: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_SIOCGIFMTU])
++m4trace:configure.in:127: -1- AC_DEFINE_TRACE_LITERAL([WORDS_MUSTALIGN])
++m4trace:configure.in:134: -1- AC_CHECK_HEADERS([strings.h])
++m4trace:configure.in:134: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
++#undef HAVE_STRINGS_H])
++m4trace:configure.in:134: -1- AC_HEADER_STDC
++m4trace:configure.in:134: -1- AC_PROG_CPP
++m4trace:configure.in:134: -1- AC_SUBST([CPP])
++m4trace:configure.in:134: -1- AC_SUBST([CPPFLAGS])
++m4trace:configure.in:134: -1- AC_SUBST([CPP])
++m4trace:configure.in:134: -1- AC_SUBST([EGREP])
++m4trace:configure.in:134: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
++m4trace:configure.in:134: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
++#undef STDC_HEADERS])
++m4trace:configure.in:134: -1- AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
++ inttypes.h stdint.h unistd.h], [], [], [$ac_includes_default])
++m4trace:configure.in:134: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
++#undef HAVE_SYS_TYPES_H])
++m4trace:configure.in:134: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
++#undef HAVE_SYS_STAT_H])
++m4trace:configure.in:134: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
++#undef HAVE_STDLIB_H])
++m4trace:configure.in:134: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
++#undef HAVE_STRING_H])
++m4trace:configure.in:134: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
++#undef HAVE_MEMORY_H])
++m4trace:configure.in:134: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
++#undef HAVE_STRINGS_H])
++m4trace:configure.in:134: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
++#undef HAVE_INTTYPES_H])
++m4trace:configure.in:134: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
++#undef HAVE_STDINT_H])
++m4trace:configure.in:134: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
++#undef HAVE_UNISTD_H])
++m4trace:configure.in:135: -1- AC_CHECK_HEADERS([string.h])
++m4trace:configure.in:135: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
++#undef HAVE_STRING_H])
++m4trace:configure.in:136: -1- AC_CHECK_HEADERS([stdlib.h])
++m4trace:configure.in:136: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
++#undef HAVE_STDLIB_H])
++m4trace:configure.in:137: -1- AC_CHECK_HEADERS([unistd.h])
++m4trace:configure.in:137: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
++#undef HAVE_UNISTD_H])
++m4trace:configure.in:138: -1- AC_CHECK_HEADERS([sys/sockio.h])
++m4trace:configure.in:138: -1- AH_OUTPUT([HAVE_SYS_SOCKIO_H], [/* Define to 1 if you have the <sys/sockio.h> header file. */
++#undef HAVE_SYS_SOCKIO_H])
++m4trace:configure.in:139: -1- AC_CHECK_HEADERS([paths.h])
++m4trace:configure.in:139: -1- AH_OUTPUT([HAVE_PATHS_H], [/* Define to 1 if you have the <paths.h> header file. */
++#undef HAVE_PATHS_H])
++m4trace:configure.in:143: -1- AC_CHECK_LIB([nsl], [inet_ntoa])
++m4trace:configure.in:143: -1- AH_OUTPUT([HAVE_LIBNSL], [/* Define to 1 if you have the `nsl\' library (-lnsl). */
++#undef HAVE_LIBNSL])
++m4trace:configure.in:143: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBNSL])
++m4trace:configure.in:147: -1- AC_CHECK_LIB([socket], [socket])
++m4trace:configure.in:147: -1- AH_OUTPUT([HAVE_LIBSOCKET], [/* Define to 1 if you have the `socket\' library (-lsocket). */
++#undef HAVE_LIBSOCKET])
++m4trace:configure.in:147: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSOCKET])
++m4trace:configure.in:152: -1- AC_CHECK_FUNCS([vsnprintf], [], [LIBS=" $LIBS -ldb"])
++m4trace:configure.in:152: -1- AH_OUTPUT([HAVE_VSNPRINTF], [/* Define to 1 if you have the `vsnprintf\' function. */
++#undef HAVE_VSNPRINTF])
++m4trace:configure.in:153: -1- AC_CHECK_FUNCS([strtoul], [], [LIBS=" $LIBS -l44bsd"])
++m4trace:configure.in:153: -1- AH_OUTPUT([HAVE_STRTOUL], [/* Define to 1 if you have the `strtoul\' function. */
++#undef HAVE_STRTOUL])
++m4trace:configure.in:217: -1- AC_CHECK_FUNCS([snprintf])
++m4trace:configure.in:217: -1- AH_OUTPUT([HAVE_SNPRINTF], [/* Define to 1 if you have the `snprintf\' function. */
++#undef HAVE_SNPRINTF])
++m4trace:configure.in:218: -1- AC_CHECK_FUNCS([strlcpy])
++m4trace:configure.in:218: -1- AH_OUTPUT([HAVE_STRLCPY], [/* Define to 1 if you have the `strlcpy\' function. */
++#undef HAVE_STRLCPY])
++m4trace:configure.in:219: -1- AC_CHECK_FUNCS([strlcat])
++m4trace:configure.in:219: -1- AH_OUTPUT([HAVE_STRLCAT], [/* Define to 1 if you have the `strlcat\' function. */
++#undef HAVE_STRLCAT])
++m4trace:configure.in:220: -1- AC_CHECK_FUNCS([strerror])
++m4trace:configure.in:220: -1- AH_OUTPUT([HAVE_STRERROR], [/* Define to 1 if you have the `strerror\' function. */
++#undef HAVE_STRERROR])
++m4trace:configure.in:224: -2- AC_DEFINE_TRACE_LITERAL([ERRLIST_PREDEFINED])
++m4trace:configure.in:234: -1- AC_DEFINE_TRACE_LITERAL([HAVE___FUNCTION__])
++m4trace:configure.in:234: -1- AH_OUTPUT([HAVE___FUNCTION__], [/* Define if the compiler understands __FUNCTION__. */
++#undef HAVE___FUNCTION__])
++m4trace:configure.in:245: -1- AC_DEFINE_TRACE_LITERAL([HAVE___func__])
++m4trace:configure.in:245: -1- AH_OUTPUT([HAVE___func__], [/* Define if the compiler understands __func__. */
++#undef HAVE___func__])
++m4trace:configure.in:246: -1- AC_DEFINE_TRACE_LITERAL([__FUNCTION__])
++m4trace:configure.in:246: -1- AH_OUTPUT([__FUNCTION__], [/* Define __FUNCTION__ as required. */
++#undef __FUNCTION__])
++m4trace:configure.in:249: -1- AC_DEFINE_TRACE_LITERAL([__FUNCTION__])
++m4trace:configure.in:270: -1- AC_CHECK_LIB([m], [floor], [], [])
++m4trace:configure.in:270: -1- AH_OUTPUT([HAVE_LIBM], [/* Define to 1 if you have the `m\' library (-lm). */
++#undef HAVE_LIBM])
++m4trace:configure.in:270: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBM])
++m4trace:configure.in:273: -1- AC_CHECK_LIB([pcap], [pcap_datalink], [], [LPCAP="no"])
++m4trace:configure.in:273: -1- AH_OUTPUT([HAVE_LIBPCAP], [/* Define to 1 if you have the `pcap\' library (-lpcap). */
++#undef HAVE_LIBPCAP])
++m4trace:configure.in:273: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPCAP])
++m4trace:configure.in:328: -1- AC_SUBST([LIBPRELUDE_CONFIG], [$ac_cv_path_LIBPRELUDE_CONFIG])
++m4trace:configure.in:328: -1- AC_SUBST([LIBPRELUDE_CFLAGS])
++m4trace:configure.in:328: -1- AC_SUBST([LIBPRELUDE_LIBS])
++m4trace:configure.in:400: -1- AC_CHECK_LIB([z], [compress])
++m4trace:configure.in:400: -1- AH_OUTPUT([HAVE_LIBZ], [/* Define to 1 if you have the `z\' library (-lz). */
++#undef HAVE_LIBZ])
++m4trace:configure.in:400: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBZ])
++m4trace:configure.in:642: -1- AC_CHECK_HEADERS([libnet.h], [], [LNET="no"])
++m4trace:configure.in:642: -1- AH_OUTPUT([HAVE_LIBNET_H], [/* Define to 1 if you have the <libnet.h> header file. */
++#undef HAVE_LIBNET_H])
++m4trace:configure.in:686: -1- AC_CHECK_LIB([net], [libnet_build_ip], [], [LNET="no"])
++m4trace:configure.in:686: -1- AH_OUTPUT([HAVE_LIBNET], [/* Define to 1 if you have the `net\' library (-lnet). */
++#undef HAVE_LIBNET])
++m4trace:configure.in:686: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBNET])
++m4trace:configure.in:699: -1- AC_DEFINE_TRACE_LITERAL([u_int8_t])
++m4trace:configure.in:699: -1- AH_OUTPUT([u_int8_t], [/* Define to `unsigned char\' if <sys/types.h> does not define. */
++#undef u_int8_t])
++m4trace:configure.in:700: -1- AC_DEFINE_TRACE_LITERAL([u_int16_t])
++m4trace:configure.in:700: -1- AH_OUTPUT([u_int16_t], [/* Define to `unsigned short\' if <sys/types.h> does not define. */
++#undef u_int16_t])
++m4trace:configure.in:701: -1- AC_DEFINE_TRACE_LITERAL([u_int32_t])
++m4trace:configure.in:701: -1- AH_OUTPUT([u_int32_t], [/* Define to `unsigned int\' if <sys/types.h> does not define. */
++#undef u_int32_t])
++m4trace:configure.in:704: -1- AC_DEFINE_TRACE_LITERAL([u_int8_t])
++m4trace:configure.in:704: -1- AH_OUTPUT([u_int8_t], [/* Define to `unsigned char\' if <sys/types.h> does not define. */
++#undef u_int8_t])
++m4trace:configure.in:705: -1- AC_DEFINE_TRACE_LITERAL([u_int16_t])
++m4trace:configure.in:705: -1- AH_OUTPUT([u_int16_t], [/* Define to `unsigned short\' if <sys/types.h> does not define. */
++#undef u_int16_t])
++m4trace:configure.in:706: -1- AC_DEFINE_TRACE_LITERAL([u_int32_t])
++m4trace:configure.in:706: -1- AH_OUTPUT([u_int32_t], [/* Define to `unsigned long int\' if <sys/types.h> does not define. */
++#undef u_int32_t])
++m4trace:configure.in:708: -1- AC_DEFINE_TRACE_LITERAL([u_int8_t])
++m4trace:configure.in:708: -1- AH_OUTPUT([u_int8_t], [/* Define to `uint8_t\' if <sys/types.h> does not define. */
++#undef u_int8_t])
++m4trace:configure.in:709: -1- AC_DEFINE_TRACE_LITERAL([u_int16_t])
++m4trace:configure.in:709: -1- AH_OUTPUT([u_int16_t], [/* Define to `uint16_t\' if <sys/types.h> does not define. */
++#undef u_int16_t])
++m4trace:configure.in:710: -1- AC_DEFINE_TRACE_LITERAL([u_int32_t])
++m4trace:configure.in:710: -1- AH_OUTPUT([u_int32_t], [/* Define to `uint32_t\' if <sys/types.h> does not define. */
++#undef u_int32_t])
++m4trace:configure.in:721: -1- AC_SUBST([INCLUDES])
++m4trace:configure.in:723: -1- AC_PROG_INSTALL
++m4trace:configure.in:723: -1- AC_SUBST([INSTALL_PROGRAM])
++m4trace:configure.in:723: -1- AC_SUBST([INSTALL_SCRIPT])
++m4trace:configure.in:723: -1- AC_SUBST([INSTALL_DATA])
++m4trace:configure.in:735: -1- AC_CONFIG_FILES([Makefile \
++src/Makefile \
++src/detection-plugins/Makefile \
++src/output-plugins/Makefile \
++src/preprocessors/Makefile \
++src/parser/Makefile \
++doc/Makefile \
++contrib/Makefile \
++etc/Makefile \
++rules/Makefile \
++templates/Makefile \
++src/win32/Makefile])
++m4trace:configure.in:735: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
++m4trace:configure.in:735: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
+diff -r -N -u snort-2.0.1/configure snort-2.0.1+prelude/configure
+--- snort-2.0.1/configure 2003-07-01 22:28:19.000000000 +0800
++++ snort-2.0.1+prelude/configure 2003-07-26 18:14:25.000000000 +0800
+@@ -1,19 +1,11 @@
+ #! /bin/sh
+ # Guess values for system-dependent variables and create Makefiles.
+-# Generated by GNU Autoconf 2.53.
++# Generated by GNU Autoconf 2.57.
+ #
+ # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
+ # Free Software Foundation, Inc.
+ # This configure script is free software; the Free Software Foundation
+ # gives unlimited permission to copy, distribute and modify it.
+-
+-if expr a : '\(a\)' >/dev/null 2>&1; then
+- as_expr=expr
+-else
+- as_expr=false
+-fi
+-
+-
+ ## --------------------- ##
+ ## M4sh Initialization. ##
+ ## --------------------- ##
+@@ -22,11 +14,13 @@
+ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
++ # is contrary to our usage. Disable this feature.
++ alias -g '${1+"$@"}'='"$@"'
+ elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+ set -o posix
+ fi
+
+-# NLS nuisances.
+ # Support unset when possible.
+ if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+ as_unset=unset
+@@ -34,34 +28,42 @@
+ as_unset=false
+ fi
+
+-(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
+- { $as_unset LANG || test "${LANG+set}" != set; } ||
+- { LANG=C; export LANG; }
+-(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
+- { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
+- { LC_ALL=C; export LC_ALL; }
+-(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
+- { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
+- { LC_TIME=C; export LC_TIME; }
+-(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
+- { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
+- { LC_CTYPE=C; export LC_CTYPE; }
+-(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
+- { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
+- { LANGUAGE=C; export LANGUAGE; }
+-(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
+- { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
+- { LC_COLLATE=C; export LC_COLLATE; }
+-(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
+- { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
+- { LC_NUMERIC=C; export LC_NUMERIC; }
+-(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
+- { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
+- { LC_MESSAGES=C; export LC_MESSAGES; }
++
++# Work around bugs in pre-3.0 UWIN ksh.
++$as_unset ENV MAIL MAILPATH
++PS1='$ '
++PS2='> '
++PS4='+ '
++
++# NLS nuisances.
++for as_var in \
++ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
++ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
++ LC_TELEPHONE LC_TIME
++do
++ if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
++ eval $as_var=C; export $as_var
++ else
++ $as_unset $as_var
++ fi
++done
++
++# Required to use basename.
++if expr a : '\(a\)' >/dev/null 2>&1; then
++ as_expr=expr
++else
++ as_expr=false
++fi
++
++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
++ as_basename=basename
++else
++ as_basename=false
++fi
+
+
+ # Name of the executable.
+-as_me=`(basename "$0") 2>/dev/null ||
++as_me=`$as_basename "$0" ||
+ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)$' \| \
+@@ -72,6 +74,7 @@
+ /^X\/\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+
++
+ # PATH needs CR, and LINENO needs CR and PATH.
+ # Avoid depending upon Character Ranges.
+ as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+@@ -82,15 +85,15 @@
+
+ # The user is always right.
+ if test "${PATH_SEPARATOR+set}" != set; then
+- echo "#! /bin/sh" >conftest.sh
+- echo "exit 0" >>conftest.sh
+- chmod +x conftest.sh
+- if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
++ echo "#! /bin/sh" >conf$$.sh
++ echo "exit 0" >>conf$$.sh
++ chmod +x conf$$.sh
++ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+ else
+ PATH_SEPARATOR=:
+ fi
+- rm -f conftest.sh
++ rm -f conf$$.sh
+ fi
+
+
+@@ -138,6 +141,8 @@
+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
++ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
++ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
+ CONFIG_SHELL=$as_dir/$as_base
+ export CONFIG_SHELL
+ exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+@@ -210,6 +215,12 @@
+ fi
+ rm -f conf$$ conf$$.exe conf$$.file
+
++if mkdir -p . 2>/dev/null; then
++ as_mkdir_p=:
++else
++ as_mkdir_p=false
++fi
++
+ as_executable_p="test -f"
+
+ # Sed expression to map a string onto a valid CPP name.
+@@ -226,7 +237,7 @@
+ IFS=" $as_nl"
+
+ # CDPATH.
+-$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
++$as_unset CDPATH
+
+
+ # Name of the host.
+@@ -240,6 +251,7 @@
+ # Initializations.
+ #
+ ac_default_prefix=/usr/local
++ac_config_libobj_dir=.
+ cross_compiling=no
+ subdirs=
+ MFLAGS=
+@@ -296,6 +308,8 @@
+ # include <unistd.h>
+ #endif"
+
++ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os extra_incl CPP EGREP LIBPRELUDE_CONFIG LIBPRELUDE_CFLAGS LIBPRELUDE_LIBS INCLUDES LIBOBJS LTLIBOBJS'
++ac_subst_files=''
+
+ # Initialize some variables set by options.
+ ac_init_help=
+@@ -719,6 +733,9 @@
+ { (exit 1); exit 1; }; }
+ fi
+ fi
++(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
++ { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
++ { (exit 1); exit 1; }; }
+ srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
+ ac_env_build_alias_set=${build_alias+set}
+ ac_env_build_alias_value=$build_alias
+@@ -848,6 +865,9 @@
+ --with-libpcap-libraries=DIR libcap library directory
+ --with-libnet-includes=DIR libnet include directory
+ --with-libnet-libraries=DIR libnet library directory
++ --with-prelude support for Prelude IDS
++ --with-libprelude-prefix=PFX Prefix where libprelude is installed (optional)
++ --with-libprelude-exec-prefix=PFX Exec prefix where libprelude is installed (optional)
+ --with-mysql=DIR support for mysql
+ --with-odbc=DIR support for odbc
+ --with-postgresql=DIR support for postgresql
+@@ -901,7 +921,7 @@
+ # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
+ # absolute.
+ ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
+-ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
++ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
+ ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
+ ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+@@ -941,7 +961,7 @@
+ running configure, to aid debugging if configure makes a mistake.
+
+ It was created by $as_me, which was
+-generated by GNU Autoconf 2.53. Invocation command line was
++generated by GNU Autoconf 2.57. Invocation command line was
+
+ $ $0 $@
+
+@@ -993,27 +1013,54 @@
+
+ # Keep a trace of the command line.
+ # Strip out --no-create and --no-recursion so they do not pile up.
++# Strip out --silent because we don't want to record it for future runs.
+ # Also quote any args containing shell meta-characters.
++# Make two passes to allow for proper duplicate-argument suppression.
+ ac_configure_args=
++ac_configure_args0=
++ac_configure_args1=
+ ac_sep=
+-for ac_arg
++ac_must_keep_next=false
++for ac_pass in 1 2
+ do
+- case $ac_arg in
+- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+- | --no-cr | --no-c | -n ) continue ;;
+- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+- continue ;;
+- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
+- ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+- esac
+- case " $ac_configure_args " in
+- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
+- *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
+- ac_sep=" " ;;
+- esac
+- # Get rid of the leading space.
++ for ac_arg
++ do
++ case $ac_arg in
++ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
++ | -silent | --silent | --silen | --sile | --sil)
++ continue ;;
++ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
++ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
++ esac
++ case $ac_pass in
++ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
++ 2)
++ ac_configure_args1="$ac_configure_args1 '$ac_arg'"
++ if test $ac_must_keep_next = true; then
++ ac_must_keep_next=false # Got value, back to normal.
++ else
++ case $ac_arg in
++ *=* | --config-cache | -C | -disable-* | --disable-* \
++ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
++ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
++ | -with-* | --with-* | -without-* | --without-* | --x)
++ case "$ac_configure_args0 " in
++ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
++ esac
++ ;;
++ -* ) ac_must_keep_next=true ;;
++ esac
++ fi
++ ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
++ # Get rid of the leading space.
++ ac_sep=" "
++ ;;
++ esac
++ done
+ done
++$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
++$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
+
+ # When interrupted or exit'd, cleanup temporary files, and complete
+ # config.log. We remove comments because anyway the quotes in there
+@@ -1024,6 +1071,7 @@
+ # Save into config.log some information that might help in debugging.
+ {
+ echo
++
+ cat <<\_ASBOX
+ ## ---------------- ##
+ ## Cache variables. ##
+@@ -1046,6 +1094,35 @@
+ esac;
+ }
+ echo
++
++ cat <<\_ASBOX
++## ----------------- ##
++## Output variables. ##
++## ----------------- ##
++_ASBOX
++ echo
++ for ac_var in $ac_subst_vars
++ do
++ eval ac_val=$`echo $ac_var`
++ echo "$ac_var='"'"'$ac_val'"'"'"
++ done | sort
++ echo
++
++ if test -n "$ac_subst_files"; then
++ cat <<\_ASBOX
++## ------------- ##
++## Output files. ##
++## ------------- ##
++_ASBOX
++ echo
++ for ac_var in $ac_subst_files
++ do
++ eval ac_val=$`echo $ac_var`
++ echo "$ac_var='"'"'$ac_val'"'"'"
++ done | sort
++ echo
++ fi
++
+ if test -s confdefs.h; then
+ cat <<\_ASBOX
+ ## ----------- ##
+@@ -1053,7 +1130,7 @@
+ ## ----------- ##
+ _ASBOX
+ echo
+- sed "/^$/d" confdefs.h
++ sed "/^$/d" confdefs.h | sort
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+@@ -1210,9 +1287,10 @@
+
+
+
++
+ # Add the stamp file to the list of files AC keeps track of,
+ # along with our hook.
+-ac_config_headers="$ac_config_headers config.h"
++ ac_config_headers="$ac_config_headers config.h"
+
+
+
+@@ -1433,15 +1511,15 @@
+ test -n "$AWK" && break
+ done
+
+-echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
+-echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
++echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
+ set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
+ if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ cat >conftest.make <<\_ACEOF
+ all:
+- @echo 'ac_maketemp="${MAKE}"'
++ @echo 'ac_maketemp="$(MAKE)"'
+ _ACEOF
+ # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+ eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
+@@ -1609,7 +1687,7 @@
+ rmdir .deps 2>/dev/null
+
+
+-ac_config_commands="$ac_config_commands depfiles"
++ ac_config_commands="$ac_config_commands depfiles"
+
+
+ am_make=${MAKE-make}
+@@ -1875,9 +1953,7 @@
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+- set dummy "$as_dir/$ac_word" ${1+"$@"}
+- shift
+- ac_cv_prog_CC="$@"
++ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+ fi
+ fi
+ fi
+@@ -1982,8 +2058,10 @@
+ fi
+
+
+-test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
+-echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
++test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
++See \`config.log' for more details." >&5
++echo "$as_me: error: no acceptable C compiler found in \$PATH
++See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+
+ # Provide some information about the compiler.
+@@ -2008,14 +2086,12 @@
+
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -2025,7 +2101,7 @@
+ }
+ _ACEOF
+ ac_clean_files_save=$ac_clean_files
+-ac_clean_files="$ac_clean_files a.out a.exe"
++ac_clean_files="$ac_clean_files a.out a.exe b.out"
+ # Try to create an executable without -o first, disregard a.out.
+ # It will help us diagnose broken compilers, and finding out an intuition
+ # of exeext.
+@@ -2044,26 +2120,39 @@
+ # Be careful to initialize this variable, since it used to be cached.
+ # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
+ ac_cv_exeext=
+-for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
+- ls a.out conftest 2>/dev/null;
+- ls a.* conftest.* 2>/dev/null`; do
++# b.out is created by i960 compilers.
++for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
++do
++ test -f "$ac_file" || continue
+ case $ac_file in
+- *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
+- a.out ) # We found the default executable, but exeext='' is most
+- # certainly right.
+- break;;
+- *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+- # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
+- export ac_cv_exeext
+- break;;
+- * ) break;;
++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
++ ;;
++ conftest.$ac_ext )
++ # This is the source file.
++ ;;
++ [ab].out )
++ # We found the default executable, but exeext='' is most
++ # certainly right.
++ break;;
++ *.* )
++ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
++ # FIXME: I believe we export ac_cv_exeext for Libtool,
++ # but it would be cool to find out if it's true. Does anybody
++ # maintain Libtool? --akim.
++ export ac_cv_exeext
++ break;;
++ * )
++ break;;
+ esac
+ done
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
+-{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
+-echo "$as_me: error: C compiler cannot create executables" >&2;}
++sed 's/^/| /' conftest.$ac_ext >&5
++
++{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
++See \`config.log' for more details." >&5
++echo "$as_me: error: C compiler cannot create executables
++See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }
+ fi
+
+@@ -2090,9 +2179,11 @@
+ cross_compiling=yes
+ else
+ { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
+-If you meant to cross compile, use \`--host'." >&5
++If you meant to cross compile, use \`--host'.
++See \`config.log' for more details." >&5
+ echo "$as_me: error: cannot run C compiled programs.
+-If you meant to cross compile, use \`--host'." >&2;}
++If you meant to cross compile, use \`--host'.
++See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+ fi
+@@ -2100,7 +2191,7 @@
+ echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+
+-rm -f a.out a.exe conftest$ac_cv_exeext
++rm -f a.out a.exe conftest$ac_cv_exeext b.out
+ ac_clean_files=$ac_clean_files_save
+ # Check the compiler produces executables we can run. If not, either
+ # the compiler is broken, or we cross compile.
+@@ -2120,9 +2211,10 @@
+ # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
+ # work properly (i.e., refer to `conftest.exe'), while it won't with
+ # `rm'.
+-for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
++for ac_file in conftest.exe conftest conftest.*; do
++ test -f "$ac_file" || continue
+ case $ac_file in
+- *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ export ac_cv_exeext
+ break;;
+@@ -2130,8 +2222,10 @@
+ esac
+ done
+ else
+- { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
+-echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
++ { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
++See \`config.log' for more details." >&5
++echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
++See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+
+@@ -2149,14 +2243,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -2173,16 +2265,19 @@
+ (exit $ac_status); }; then
+ for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
+ case $ac_file in
+- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
++ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+ break;;
+ esac
+ done
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
+-{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
+-echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
++sed 's/^/| /' conftest.$ac_ext >&5
++
++{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
++See \`config.log' for more details." >&5
++echo "$as_me: error: cannot compute suffix of object files: cannot compile
++See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+
+@@ -2199,14 +2294,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -2233,7 +2326,8 @@
+ ac_compiler_gnu=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_compiler_gnu=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -2253,14 +2347,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -2284,7 +2376,8 @@
+ ac_cv_prog_cc_g=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_prog_cc_g=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -2306,6 +2399,102 @@
+ CFLAGS=
+ fi
+ fi
++echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
++echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
++if test "${ac_cv_prog_cc_stdc+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_cv_prog_cc_stdc=no
++ac_save_CC=$CC
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#include <stdarg.h>
++#include <stdio.h>
++#include <sys/types.h>
++#include <sys/stat.h>
++/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
++struct buf { int x; };
++FILE * (*rcsopen) (struct buf *, struct stat *, int);
++static char *e (p, i)
++ char **p;
++ int i;
++{
++ return p[i];
++}
++static char *f (char * (*g) (char **, int), char **p, ...)
++{
++ char *s;
++ va_list v;
++ va_start (v,p);
++ s = g (p, va_arg (v,int));
++ va_end (v);
++ return s;
++}
++int test (int i, double x);
++struct s1 {int (*f) (int a);};
++struct s2 {int (*f) (double a);};
++int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
++int argc;
++char **argv;
++int
++main ()
++{
++return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
++ ;
++ return 0;
++}
++_ACEOF
++# Don't try gcc -ansi; that turns off useful extensions and
++# breaks some systems' header files.
++# AIX -qlanglvl=ansi
++# Ultrix and OSF/1 -std1
++# HP-UX 10.20 and later -Ae
++# HP-UX older versions -Aa -D_HPUX_SOURCE
++# SVR4 -Xc -D__EXTENSIONS__
++for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
++do
++ CC="$ac_save_CC $ac_arg"
++ rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_prog_cc_stdc=$ac_arg
++break
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.$ac_objext
++done
++rm -f conftest.$ac_ext conftest.$ac_objext
++CC=$ac_save_CC
++
++fi
++
++case "x$ac_cv_prog_cc_stdc" in
++ x|xno)
++ echo "$as_me:$LINENO: result: none needed" >&5
++echo "${ECHO_T}none needed" >&6 ;;
++ *)
++ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
++echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
++ CC="$CC $ac_cv_prog_cc_stdc" ;;
++esac
++
+ # Some people use a C++ compiler to compile C. Since we use `exit',
+ # in C++ we need to declare it. In case someone uses the same compiler
+ # for both compiling C and C++ we need to have the C++ compiler decide
+@@ -2338,15 +2527,13 @@
+ do
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <stdlib.h>
+ $ac_declaration
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -2370,20 +2557,19 @@
+ :
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ continue
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_declaration
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -2407,7 +2593,8 @@
+ break
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ done
+@@ -2420,7 +2607,8 @@
+
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ ac_ext=c
+@@ -2521,7 +2709,11 @@
+ CC="$ac_save_CC $ac_arg"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <stdarg.h>
+ #include <stdio.h>
+ #include <sys/types.h>
+@@ -2551,12 +2743,6 @@
+ int argc;
+ char **argv;
+
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -2582,7 +2768,8 @@
+ am_cv_prog_cc_stdc="$ac_arg"; break
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ done
+@@ -2887,9 +3074,7 @@
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+- set dummy "$as_dir/$ac_word" ${1+"$@"}
+- shift
+- ac_cv_prog_CC="$@"
++ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+ fi
+ fi
+ fi
+@@ -2994,8 +3179,10 @@
+ fi
+
+
+-test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
+-echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
++test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
++See \`config.log' for more details." >&5
++echo "$as_me: error: no acceptable C compiler found in \$PATH
++See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+
+ # Provide some information about the compiler.
+@@ -3025,14 +3212,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -3059,7 +3244,8 @@
+ ac_compiler_gnu=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_compiler_gnu=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -3079,14 +3265,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -3110,7 +3294,8 @@
+ ac_cv_prog_cc_g=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_prog_cc_g=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -3132,6 +3317,102 @@
+ CFLAGS=
+ fi
+ fi
++echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
++echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
++if test "${ac_cv_prog_cc_stdc+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_cv_prog_cc_stdc=no
++ac_save_CC=$CC
++cat >conftest.$ac_ext <<_ACEOF
++#line $LINENO "configure"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#include <stdarg.h>
++#include <stdio.h>
++#include <sys/types.h>
++#include <sys/stat.h>
++/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
++struct buf { int x; };
++FILE * (*rcsopen) (struct buf *, struct stat *, int);
++static char *e (p, i)
++ char **p;
++ int i;
++{
++ return p[i];
++}
++static char *f (char * (*g) (char **, int), char **p, ...)
++{
++ char *s;
++ va_list v;
++ va_start (v,p);
++ s = g (p, va_arg (v,int));
++ va_end (v);
++ return s;
++}
++int test (int i, double x);
++struct s1 {int (*f) (int a);};
++struct s2 {int (*f) (double a);};
++int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
++int argc;
++char **argv;
++int
++main ()
++{
++return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
++ ;
++ return 0;
++}
++_ACEOF
++# Don't try gcc -ansi; that turns off useful extensions and
++# breaks some systems' header files.
++# AIX -qlanglvl=ansi
++# Ultrix and OSF/1 -std1
++# HP-UX 10.20 and later -Ae
++# HP-UX older versions -Aa -D_HPUX_SOURCE
++# SVR4 -Xc -D__EXTENSIONS__
++for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
++do
++ CC="$ac_save_CC $ac_arg"
++ rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ ac_cv_prog_cc_stdc=$ac_arg
++break
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.$ac_objext
++done
++rm -f conftest.$ac_ext conftest.$ac_objext
++CC=$ac_save_CC
++
++fi
++
++case "x$ac_cv_prog_cc_stdc" in
++ x|xno)
++ echo "$as_me:$LINENO: result: none needed" >&5
++echo "${ECHO_T}none needed" >&6 ;;
++ *)
++ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
++echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
++ CC="$CC $ac_cv_prog_cc_stdc" ;;
++esac
++
+ # Some people use a C++ compiler to compile C. Since we use `exit',
+ # in C++ we need to declare it. In case someone uses the same compiler
+ # for both compiling C and C++ we need to have the C++ compiler decide
+@@ -3164,15 +3445,13 @@
+ do
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <stdlib.h>
+ $ac_declaration
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -3196,20 +3475,19 @@
+ :
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ continue
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_declaration
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -3233,7 +3511,8 @@
+ break
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ done
+@@ -3246,7 +3525,8 @@
+
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ ac_ext=c
+@@ -3416,16 +3696,14 @@
+ # See if sys/param.h defines the BYTE_ORDER macro.
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <sys/types.h>
+ #include <sys/param.h>
+
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -3452,16 +3730,14 @@
+ # It does; now see whether it defined to BIG_ENDIAN or not.
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <sys/types.h>
+ #include <sys/param.h>
+
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -3488,32 +3764,32 @@
+ ac_cv_c_bigendian=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_c_bigendian=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ # It does not; compile a test program.
+ if test "$cross_compiling" = yes; then
+- # try to guess the endianess by grep'ing values into an object file
++ # try to guess the endianness by grepping values into an object file
+ ac_cv_c_bigendian=unknown
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
+ short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
+ void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
+ short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
+ short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
+ void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -3534,10 +3810,10 @@
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+- if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
++ if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
+ ac_cv_c_bigendian=yes
+ fi
+-if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
++if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
+ if test "$ac_cv_c_bigendian" = unknown; then
+ ac_cv_c_bigendian=no
+ else
+@@ -3547,13 +3823,18 @@
+ fi
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ int
+ main ()
+ {
+@@ -3582,11 +3863,12 @@
+ else
+ echo "$as_me: program exited with status $ac_status" >&5
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ( exit $ac_status )
+ ac_cv_c_bigendian=yes
+ fi
+-rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+ fi
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -3603,9 +3885,9 @@
+ no)
+ ;;
+ *)
+- { { echo "$as_me:$LINENO: error: unknown endianess
++ { { echo "$as_me:$LINENO: error: unknown endianness
+ presetting ac_cv_c_bigendian=no (or yes) will help" >&5
+-echo "$as_me: error: unknown endianess
++echo "$as_me: error: unknown endianness
+ presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
+ { (exit 1); exit 1; }; } ;;
+ esac
+@@ -3790,18 +4072,28 @@
+ do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
++ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
+-#include <assert.h>
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
+ Syntax error
+ _ACEOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+- egrep -v '^ *\+' conftest.er1 >conftest.err
++ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+@@ -3818,7 +4110,8 @@
+ :
+ else
+ echo "$as_me: failed program was:" >&5
+- cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ # Broken: fails on valid input.
+ continue
+ fi
+@@ -3828,13 +4121,17 @@
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <ac_nonexistent.h>
+ _ACEOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+- egrep -v '^ *\+' conftest.er1 >conftest.err
++ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+@@ -3852,7 +4149,8 @@
+ continue
+ else
+ echo "$as_me: failed program was:" >&5
+- cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ # Passes both tests.
+ ac_preproc_ok=:
+ break
+@@ -3881,18 +4179,28 @@
+ do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
++ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
+-#include <assert.h>
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
+ Syntax error
+ _ACEOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+- egrep -v '^ *\+' conftest.er1 >conftest.err
++ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+@@ -3909,7 +4217,8 @@
+ :
+ else
+ echo "$as_me: failed program was:" >&5
+- cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ # Broken: fails on valid input.
+ continue
+ fi
+@@ -3919,13 +4228,17 @@
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <ac_nonexistent.h>
+ _ACEOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+- egrep -v '^ *\+' conftest.er1 >conftest.err
++ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+@@ -3943,7 +4256,8 @@
+ continue
+ else
+ echo "$as_me: failed program was:" >&5
+- cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ # Passes both tests.
+ ac_preproc_ok=:
+ break
+@@ -3956,8 +4270,10 @@
+ if $ac_preproc_ok; then
+ :
+ else
+- { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
+-echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
++ { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
++See \`config.log' for more details." >&5
++echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
++See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+
+@@ -3968,6 +4284,21 @@
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
++echo "$as_me:$LINENO: checking for egrep" >&5
++echo $ECHO_N "checking for egrep... $ECHO_C" >&6
++if test "${ac_cv_prog_egrep+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ if echo a | (grep -E '(a|b)') >/dev/null 2>&1
++ then ac_cv_prog_egrep='grep -E'
++ else ac_cv_prog_egrep='egrep'
++ fi
++fi
++echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
++echo "${ECHO_T}$ac_cv_prog_egrep" >&6
++ EGREP=$ac_cv_prog_egrep
++
++
+ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
+ echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
+ if test "${ac_cv_header_stdc+set}" = set; then
+@@ -3975,48 +4306,59 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <stdlib.h>
+ #include <stdarg.h>
+ #include <string.h>
+ #include <float.h>
+
++int
++main ()
++{
++
++ ;
++ return 0;
++}
+ _ACEOF
+-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>&5
+ ac_status=$?
+- egrep -v '^ *\+' conftest.er1 >conftest.err
+- rm -f conftest.er1
+- cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+- (exit $ac_status); } >/dev/null; then
+- if test -s conftest.err; then
+- ac_cpp_err=$ac_c_preproc_warn_flag
+- else
+- ac_cpp_err=
+- fi
+-else
+- ac_cpp_err=yes
+-fi
+-if test -z "$ac_cpp_err"; then
++ (exit $ac_status); } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
+ ac_cv_header_stdc=yes
+ else
+ echo "$as_me: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+- ac_cv_header_stdc=no
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_header_stdc=no
+ fi
+-rm -f conftest.err conftest.$ac_ext
++rm -f conftest.$ac_objext conftest.$ac_ext
+
+ if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <string.h>
+
+ _ACEOF
+ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+- egrep "memchr" >/dev/null 2>&1; then
++ $EGREP "memchr" >/dev/null 2>&1; then
+ :
+ else
+ ac_cv_header_stdc=no
+@@ -4029,12 +4371,16 @@
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <stdlib.h>
+
+ _ACEOF
+ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+- egrep "free" >/dev/null 2>&1; then
++ $EGREP "free" >/dev/null 2>&1; then
+ :
+ else
+ ac_cv_header_stdc=no
+@@ -4050,13 +4396,18 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <ctype.h>
+ #if ((' ' & 0x0FF) == 0x020)
+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+ #else
+-# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
++# define ISLOWER(c) \
++ (('a' <= (c) && (c) <= 'i') \
+ || ('j' <= (c) && (c) <= 'r') \
+ || ('s' <= (c) && (c) <= 'z'))
+ # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+@@ -4089,11 +4440,12 @@
+ else
+ echo "$as_me: program exited with status $ac_status" >&5
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ( exit $ac_status )
+ ac_cv_header_stdc=no
+ fi
+-rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+ fi
+ fi
+ fi
+@@ -4128,7 +4480,11 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+
+ #include <$ac_header>
+@@ -4148,7 +4504,8 @@
+ eval "$as_ac_Header=yes"
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ eval "$as_ac_Header=no"
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -4183,7 +4540,11 @@
+ echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+ #include <$ac_header>
+ _ACEOF
+@@ -4202,7 +4563,8 @@
+ ac_header_compiler=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_compiler=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -4214,13 +4576,17 @@
+ echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <$ac_header>
+ _ACEOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+- egrep -v '^ *\+' conftest.er1 >conftest.err
++ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+@@ -4237,7 +4603,8 @@
+ ac_header_preproc=yes
+ else
+ echo "$as_me: failed program was:" >&5
+- cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_preproc=no
+ fi
+ rm -f conftest.err conftest.$ac_ext
+@@ -4250,14 +4617,32 @@
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+ echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ no:yes )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+ echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+ echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ esac
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+@@ -4297,7 +4682,11 @@
+ echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+ #include <$ac_header>
+ _ACEOF
+@@ -4316,7 +4705,8 @@
+ ac_header_compiler=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_compiler=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -4328,13 +4718,17 @@
+ echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <$ac_header>
+ _ACEOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+- egrep -v '^ *\+' conftest.er1 >conftest.err
++ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+@@ -4351,7 +4745,8 @@
+ ac_header_preproc=yes
+ else
+ echo "$as_me: failed program was:" >&5
+- cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_preproc=no
+ fi
+ rm -f conftest.err conftest.$ac_ext
+@@ -4364,14 +4759,32 @@
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+ echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ no:yes )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+ echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+ echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ esac
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+@@ -4411,7 +4824,11 @@
+ echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+ #include <$ac_header>
+ _ACEOF
+@@ -4430,7 +4847,8 @@
+ ac_header_compiler=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_compiler=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -4442,13 +4860,17 @@
+ echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <$ac_header>
+ _ACEOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+- egrep -v '^ *\+' conftest.er1 >conftest.err
++ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+@@ -4465,7 +4887,8 @@
+ ac_header_preproc=yes
+ else
+ echo "$as_me: failed program was:" >&5
+- cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_preproc=no
+ fi
+ rm -f conftest.err conftest.$ac_ext
+@@ -4478,14 +4901,32 @@
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+ echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ no:yes )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+ echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+ echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ esac
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+@@ -4525,7 +4966,11 @@
+ echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+ #include <$ac_header>
+ _ACEOF
+@@ -4544,7 +4989,8 @@
+ ac_header_compiler=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_compiler=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -4556,13 +5002,17 @@
+ echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <$ac_header>
+ _ACEOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+- egrep -v '^ *\+' conftest.er1 >conftest.err
++ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+@@ -4579,7 +5029,8 @@
+ ac_header_preproc=yes
+ else
+ echo "$as_me: failed program was:" >&5
+- cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_preproc=no
+ fi
+ rm -f conftest.err conftest.$ac_ext
+@@ -4592,14 +5043,32 @@
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+ echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ no:yes )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+ echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+ echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ esac
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+@@ -4639,7 +5108,11 @@
+ echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+ #include <$ac_header>
+ _ACEOF
+@@ -4658,7 +5131,8 @@
+ ac_header_compiler=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_compiler=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -4670,13 +5144,17 @@
+ echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <$ac_header>
+ _ACEOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+- egrep -v '^ *\+' conftest.er1 >conftest.err
++ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+@@ -4693,7 +5171,8 @@
+ ac_header_preproc=yes
+ else
+ echo "$as_me: failed program was:" >&5
+- cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_preproc=no
+ fi
+ rm -f conftest.err conftest.$ac_ext
+@@ -4706,14 +5185,32 @@
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+ echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ no:yes )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+ echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+ echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ esac
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+@@ -4753,7 +5250,11 @@
+ echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+ #include <$ac_header>
+ _ACEOF
+@@ -4772,7 +5273,8 @@
+ ac_header_compiler=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_compiler=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -4784,13 +5286,17 @@
+ echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <$ac_header>
+ _ACEOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+- egrep -v '^ *\+' conftest.er1 >conftest.err
++ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+@@ -4807,7 +5313,8 @@
+ ac_header_preproc=yes
+ else
+ echo "$as_me: failed program was:" >&5
+- cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_preproc=no
+ fi
+ rm -f conftest.err conftest.$ac_ext
+@@ -4820,14 +5327,32 @@
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+ echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ no:yes )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+ echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+ echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ esac
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+@@ -4861,7 +5386,11 @@
+ LIBS="-lnsl $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+@@ -4870,12 +5399,6 @@
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char inet_ntoa ();
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -4899,7 +5422,8 @@
+ ac_cv_lib_nsl_inet_ntoa=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_lib_nsl_inet_ntoa=no
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+@@ -4929,7 +5453,11 @@
+ LIBS="-lsocket $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+@@ -4938,12 +5466,6 @@
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char socket ();
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -4967,7 +5489,8 @@
+ ac_cv_lib_socket_socket=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_lib_socket_socket=no
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+@@ -4999,37 +5522,44 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ /* System header to define __stub macros and hopefully few prototypes,
+- which can conflict with char $ac_func (); below. */
+-#include <assert.h>
++ which can conflict with char $ac_func (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+ extern "C"
++{
+ #endif
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char $ac_func ();
+-char (*f) ();
+-
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+ /* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ choke me
+ #else
+-f = $ac_func;
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
+ #endif
+
++int
++main ()
++{
++return f != $ac_func;
+ ;
+ return 0;
+ }
+@@ -5049,7 +5579,8 @@
+ eval "$as_ac_var=yes"
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ eval "$as_ac_var=no"
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+@@ -5077,37 +5608,44 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ /* System header to define __stub macros and hopefully few prototypes,
+- which can conflict with char $ac_func (); below. */
+-#include <assert.h>
++ which can conflict with char $ac_func (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+ extern "C"
++{
+ #endif
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char $ac_func ();
+-char (*f) ();
+-
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+ /* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ choke me
+ #else
+-f = $ac_func;
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
+ #endif
+
++int
++main ()
++{
++return f != $ac_func;
+ ;
+ return 0;
+ }
+@@ -5127,7 +5665,8 @@
+ eval "$as_ac_var=yes"
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ eval "$as_ac_var=no"
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+@@ -5174,7 +5713,11 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+ #include <stdio.h>
+ #ifdef HAVE_STRING_H
+@@ -5193,12 +5736,6 @@
+ #include <sys/socket.h>
+ #include <syslog.h>
+
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -5222,7 +5759,8 @@
+ eval "sn_cv_decl_needed_$sn_decl=no"
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ eval "sn_cv_decl_needed_$sn_decl=yes"
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -5258,37 +5796,44 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ /* System header to define __stub macros and hopefully few prototypes,
+- which can conflict with char $ac_func (); below. */
+-#include <assert.h>
++ which can conflict with char $ac_func (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+ extern "C"
++{
+ #endif
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char $ac_func ();
+-char (*f) ();
+-
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+ /* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ choke me
+ #else
+-f = $ac_func;
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
+ #endif
+
++int
++main ()
++{
++return f != $ac_func;
+ ;
+ return 0;
+ }
+@@ -5308,7 +5853,8 @@
+ eval "$as_ac_var=yes"
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ eval "$as_ac_var=no"
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+@@ -5334,37 +5880,44 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ /* System header to define __stub macros and hopefully few prototypes,
+- which can conflict with char $ac_func (); below. */
+-#include <assert.h>
++ which can conflict with char $ac_func (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+ extern "C"
++{
+ #endif
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char $ac_func ();
+-char (*f) ();
+-
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+ /* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ choke me
+ #else
+-f = $ac_func;
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
+ #endif
+
++int
++main ()
++{
++return f != $ac_func;
+ ;
+ return 0;
+ }
+@@ -5384,7 +5937,8 @@
+ eval "$as_ac_var=yes"
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ eval "$as_ac_var=no"
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+@@ -5410,37 +5964,44 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ /* System header to define __stub macros and hopefully few prototypes,
+- which can conflict with char $ac_func (); below. */
+-#include <assert.h>
++ which can conflict with char $ac_func (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+ extern "C"
++{
+ #endif
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char $ac_func ();
+-char (*f) ();
+-
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+ /* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ choke me
+ #else
+-f = $ac_func;
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
+ #endif
+
++int
++main ()
++{
++return f != $ac_func;
+ ;
+ return 0;
+ }
+@@ -5460,7 +6021,8 @@
+ eval "$as_ac_var=yes"
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ eval "$as_ac_var=no"
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+@@ -5486,37 +6048,44 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ /* System header to define __stub macros and hopefully few prototypes,
+- which can conflict with char $ac_func (); below. */
+-#include <assert.h>
++ which can conflict with char $ac_func (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+ extern "C"
++{
+ #endif
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char $ac_func ();
+-char (*f) ();
+-
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+-int
+-main ()
+-{
+ /* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ choke me
+ #else
+-f = $ac_func;
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
+ #endif
+
++int
++main ()
++{
++return f != $ac_func;
+ ;
+ return 0;
+ }
+@@ -5536,7 +6105,8 @@
+ eval "$as_ac_var=yes"
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ eval "$as_ac_var=no"
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+@@ -5554,16 +6124,14 @@
+
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+ #include <stdio.h>
+
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -5590,7 +6158,8 @@
+
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+
+@@ -5598,16 +6167,14 @@
+ echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+ #include <stdio.h>
+
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -5631,7 +6198,8 @@
+ sn_cv_have___FUNCTION__=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ sn_cv__have___FUNCTION__=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -5650,16 +6218,14 @@
+ echo $ECHO_N "checking for __func__... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+ #include <stdio.h>
+
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -5683,7 +6249,8 @@
+ sn_cv_have___func__=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ sn_cv__have___func__=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -5747,7 +6314,11 @@
+ LIBS="-lm $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+@@ -5756,12 +6327,6 @@
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char floor ();
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -5785,7 +6350,8 @@
+ ac_cv_lib_m_floor=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_lib_m_floor=no
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+@@ -5814,7 +6380,11 @@
+ LIBS="-lpcap $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+@@ -5823,12 +6393,6 @@
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char pcap_datalink ();
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -5852,7 +6416,8 @@
+ ac_cv_lib_pcap_pcap_datalink=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_lib_pcap_pcap_datalink=no
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+@@ -5912,6 +6477,183 @@
+ fi
+
+
++#
++# Support for prelude
++#
++
++# Check whether --with-prelude or --without-prelude was given.
++if test "${with_prelude+set}" = set; then
++ withval="$with_prelude"
++ with_prelude="$withval"
++else
++ with_prelude=yes
++fi;
++
++if test "$with_prelude" = "yes"; then
++ echo "$as_me:$LINENO: checking for Prelude" >&5
++echo $ECHO_N "checking for Prelude... $ECHO_C" >&6
++
++
++
++# Check whether --with-libprelude-prefix or --without-libprelude-prefix was given.
++if test "${with_libprelude_prefix+set}" = set; then
++ withval="$with_libprelude_prefix"
++ libprelude_config_prefix="$withval"
++else
++ libprelude_config_prefix=""
++fi;
++
++# Check whether --with-libprelude-exec-prefix or --without-libprelude-exec-prefix was given.
++if test "${with_libprelude_exec_prefix+set}" = set; then
++ withval="$with_libprelude_exec_prefix"
++ libprelude_config_exec_prefix="$withval"
++else
++ libprelude_config_exec_prefix=""
++fi;
++
++ if test x$libprelude_config_exec_prefix != x ; then
++ libprelude_config_args="$libprelude_config_args --exec-prefix=$libprelude_config_exec_prefix"
++ if test x${LIBPRELUDE_CONFIG+set} != xset ; then
++ LIBPRELUDE_CONFIG=$libprelude_config_exec_prefix/bin/libprelude-config
++ fi
++ fi
++ if test x$libprelude_config_prefix != x ; then
++ libprelude_config_args="$libprelude_config_args --prefix=$libprelude_config_prefix"
++ if test x${LIBPRELUDE_CONFIG+set} != xset ; then
++ LIBPRELUDE_CONFIG=$libprelude_config_prefix/bin/libprelude-config
++ fi
++ fi
++
++ # Extract the first word of "libprelude-config", so it can be a program name with args.
++set dummy libprelude-config; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_path_LIBPRELUDE_CONFIG+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ case $LIBPRELUDE_CONFIG in
++ [\\/]* | ?:[\\/]*)
++ ac_cv_path_LIBPRELUDE_CONFIG="$LIBPRELUDE_CONFIG" # Let the user override the test with a path.
++ ;;
++ *)
++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++ ac_cv_path_LIBPRELUDE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++done
++
++ test -z "$ac_cv_path_LIBPRELUDE_CONFIG" && ac_cv_path_LIBPRELUDE_CONFIG="no"
++ ;;
++esac
++fi
++LIBPRELUDE_CONFIG=$ac_cv_path_LIBPRELUDE_CONFIG
++
++if test -n "$LIBPRELUDE_CONFIG"; then
++ echo "$as_me:$LINENO: result: $LIBPRELUDE_CONFIG" >&5
++echo "${ECHO_T}$LIBPRELUDE_CONFIG" >&6
++else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++ echo "$as_me:$LINENO: checking for libprelude - version >= 0.8.0" >&5
++echo $ECHO_N "checking for libprelude - version >= 0.8.0... $ECHO_C" >&6
++
++ no_libprelude=""
++ if test "$LIBPRELUDE_CONFIG" = "no" ; then
++ no_libprelude=yes
++ else
++ LIBPRELUDE_CFLAGS="`$LIBPRELUDE_CONFIG $libprelude_config_args --cflags`"
++ LIBPRELUDE_LIBS="`$LIBPRELUDE_CONFIG $libprelude_config_args --libs`"
++
++ libprelude_config_major_version=`$LIBPRELUDE_CONFIG $libprelude_config_args \
++ --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
++ libprelude_config_minor_version=`$LIBPRELUDE_CONFIG $libprelude_config_args \
++ --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
++ libprelude_config_micro_version=`$LIBPRELUDE_CONFIG $libprelude_config_args \
++ --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
++ libprelude_wanted_major_version="0"
++ libprelude_wanted_minor_version="8"
++ libprelude_wanted_micro_version="0"
++
++ # Compare wanted version to what config script returned.
++ # If I knew what library was being run, i'd probably also compile
++ # a test program at this point (which also extracted and tested
++ # the version in some library-specific way)
++ if test "$libprelude_config_major_version" -lt \
++ "$libprelude_wanted_major_version" \
++ -o \( "$libprelude_config_major_version" -eq \
++ "$libprelude_wanted_major_version" \
++ -a "$libprelude_config_minor_version" -lt \
++ "$libprelude_wanted_minor_version" \) \
++ -o \( "$libprelude_config_major_version" -eq \
++ "$libprelude_wanted_major_version" \
++ -a "$libprelude_config_minor_version" -eq \
++ "$libprelude_wanted_minor_version" \
++ -a "$libprelude_config_micro_version" -lt \
++ "$libprelude_wanted_micro_version" \) ; then
++ # older version found
++ no_libprelude=yes
++ echo -n "*** An old version of libprelude "
++ echo -n "($libprelude_config_major_version"
++ echo -n ".$libprelude_config_minor_version"
++ echo ".$libprelude_config_micro_version) was found."
++ echo -n "*** You need a version of libprelude newer than "
++ echo -n "$libprelude_wanted_major_version"
++ echo -n ".$libprelude_wanted_minor_version"
++ echo ".$libprelude_wanted_micro_version."
++ echo "***"
++ echo "*** If you have already installed a sufficiently new version, this error"
++ echo "*** probably means that the wrong copy of the libprelude-config shell script is"
++ echo "*** being found. The easiest way to fix this is to remove the old version"
++ echo "*** of libprelude, but you can also set the LIBPRELUDE_CONFIG environment to point to the"
++ echo "*** correct copy of libprelude-config. (In this case, you will have to"
++ echo "*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf"
++ echo "*** so that the correct libraries are found at run-time)"
++ fi
++
++ fi
++ if test "x$no_libprelude" = x ; then
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ use_prelude=yes
++ else
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ if test "$LIBPRELUDE_CONFIG" = "no" ; then
++ echo "*** The libprelude-config script installed by libprelude could not be found"
++ echo "*** If libprelude was installed in PREFIX, make sure PREFIX/bin is in"
++ echo "*** your path, or set the LIBPRELUDE_CONFIG environment variable to the"
++ echo "*** full path to libprelude-config."
++ fi
++ LIBPRELUDE_CFLAGS=""
++ LIBPRELUDE_LIBS=""
++ use_prelude=no
++ fi
++
++
++
++
++
++
++ if test "$use_prelude" = "yes"; then
++ PRELUDE_LIBS=`libprelude-config --libs`
++ PRELUDE_CFLAGS=`libprelude-config --cflags`
++ LDFLAGS="${LDFLAGS} ${PRELUDE_LIBS}"
++ CPPFLAGS="${CPPFLAGS} ${PRELUDE_CFLAGS} -DWITH_PRELUDE"
++ fi
++fi
++
++
++
+ # Check whether --with-mysql or --without-mysql was given.
+ if test "${with_mysql+set}" = set; then
+ withval="$with_mysql"
+@@ -6014,7 +6756,11 @@
+ LIBS="-lz $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+@@ -6023,12 +6769,6 @@
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char compress ();
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -6052,7 +6792,8 @@
+ ac_cv_lib_z_compress=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_lib_z_compress=no
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+@@ -6414,7 +7155,11 @@
+ echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+ #include <$ac_header>
+ _ACEOF
+@@ -6433,7 +7178,8 @@
+ ac_header_compiler=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_compiler=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -6445,13 +7191,17 @@
+ echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ #include <$ac_header>
+ _ACEOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+- egrep -v '^ *\+' conftest.er1 >conftest.err
++ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+@@ -6468,7 +7218,8 @@
+ ac_header_preproc=yes
+ else
+ echo "$as_me: failed program was:" >&5
+- cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_header_preproc=no
+ fi
+ rm -f conftest.err conftest.$ac_ext
+@@ -6481,14 +7232,32 @@
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+ echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ no:yes )
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+ echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+ echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++ (
++ cat <<\_ASBOX
++## ------------------------------------ ##
++## Report this to bug-autoconf@gnu.org. ##
++## ------------------------------------ ##
++_ASBOX
++ ) |
++ sed "s/^/$as_me: WARNING: /" >&2
++ ;;
+ esac
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
+ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+@@ -6593,7 +7362,11 @@
+ LIBS="-lnet $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+@@ -6602,12 +7375,6 @@
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char libnet_build_ip ();
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -6631,7 +7398,8 @@
+ ac_cv_lib_net_libnet_build_ip=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_lib_net_libnet_build_ip=no
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+@@ -6669,14 +7437,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -6703,7 +7469,8 @@
+ ac_cv_type_u_int8_t=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_type_u_int8_t=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -6727,14 +7494,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -6761,7 +7526,8 @@
+ ac_cv_type_u_int16_t=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_type_u_int16_t=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -6785,14 +7551,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -6819,7 +7583,8 @@
+ ac_cv_type_u_int32_t=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_type_u_int32_t=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -6845,14 +7610,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -6879,7 +7642,8 @@
+ ac_cv_type_u_int8_t=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_type_u_int8_t=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -6903,14 +7667,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -6937,7 +7699,8 @@
+ ac_cv_type_u_int16_t=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_type_u_int16_t=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -6961,14 +7724,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -6995,7 +7756,8 @@
+ ac_cv_type_u_int32_t=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_type_u_int32_t=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -7020,14 +7782,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -7054,7 +7814,8 @@
+ ac_cv_type_u_int8_t=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_type_u_int8_t=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -7078,14 +7839,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -7112,7 +7871,8 @@
+ ac_cv_type_u_int16_t=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_type_u_int16_t=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -7136,14 +7896,12 @@
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+-#include "confdefs.h"
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
+ $ac_includes_default
+-#ifdef F77_DUMMY_MAIN
+-# ifdef __cplusplus
+- extern "C"
+-# endif
+- int F77_DUMMY_MAIN() { return 1; }
+-#endif
+ int
+ main ()
+ {
+@@ -7170,7 +7928,8 @@
+ ac_cv_type_u_int32_t=yes
+ else
+ echo "$as_me: failed program was:" >&5
+-cat conftest.$ac_ext >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
+ ac_cv_type_u_int32_t=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+@@ -7276,7 +8035,7 @@
+
+ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+-ac_config_files="$ac_config_files Makefile src/Makefile src/detection-plugins/Makefile src/output-plugins/Makefile src/preprocessors/Makefile src/parser/Makefile doc/Makefile contrib/Makefile etc/Makefile rules/Makefile templates/Makefile src/win32/Makefile"
++ ac_config_files="$ac_config_files Makefile src/Makefile src/detection-plugins/Makefile src/output-plugins/Makefile src/preprocessors/Makefile src/parser/Makefile doc/Makefile contrib/Makefile etc/Makefile rules/Makefile templates/Makefile src/win32/Makefile"
+ cat >confcache <<\_ACEOF
+ # This file is a shell script that caches the results of configure
+ # tests run on this system so they can be shared between configure
+@@ -7287,7 +8046,7 @@
+ # config.status only pays attention to the cache file if you give it
+ # the --recheck option to rerun configure.
+ #
+-# `ac_cv_env_foo' variables (set or unset) will be overriden when
++# `ac_cv_env_foo' variables (set or unset) will be overridden when
+ # loading this file, other *unset* `ac_cv_foo' will be assigned the
+ # following values.
+
+@@ -7322,7 +8081,7 @@
+ t end
+ /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ : end' >>confcache
+-if cmp -s $cache_file confcache; then :; else
++if diff $cache_file confcache >/dev/null 2>&1; then :; else
+ if test -w $cache_file; then
+ test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
+ cat confcache >$cache_file
+@@ -7353,6 +8112,21 @@
+
+ DEFS=-DHAVE_CONFIG_H
+
++ac_libobjs=
++ac_ltlibobjs=
++for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
++ # 1. Remove the extension, and $U if already installed.
++ ac_i=`echo "$ac_i" |
++ sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
++ # 2. Add them.
++ ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
++ ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
++done
++LIBOBJS=$ac_libobjs
++
++LTLIBOBJS=$ac_ltlibobjs
++
++
+ if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
+ { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
+ Usually this means the macro was only invoked conditionally." >&5
+@@ -7374,11 +8148,12 @@
+ # configure, is in config.log if it exists.
+
+ debug=false
++ac_cs_recheck=false
++ac_cs_silent=false
+ SHELL=\${CONFIG_SHELL-$SHELL}
+ _ACEOF
+
+ cat >>$CONFIG_STATUS <<\_ACEOF
+-
+ ## --------------------- ##
+ ## M4sh Initialization. ##
+ ## --------------------- ##
+@@ -7387,11 +8162,13 @@
+ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
++ # is contrary to our usage. Disable this feature.
++ alias -g '${1+"$@"}'='"$@"'
+ elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+ set -o posix
+ fi
+
+-# NLS nuisances.
+ # Support unset when possible.
+ if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+ as_unset=unset
+@@ -7399,34 +8176,42 @@
+ as_unset=false
+ fi
+
+-(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
+- { $as_unset LANG || test "${LANG+set}" != set; } ||
+- { LANG=C; export LANG; }
+-(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
+- { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
+- { LC_ALL=C; export LC_ALL; }
+-(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
+- { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
+- { LC_TIME=C; export LC_TIME; }
+-(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
+- { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
+- { LC_CTYPE=C; export LC_CTYPE; }
+-(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
+- { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
+- { LANGUAGE=C; export LANGUAGE; }
+-(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
+- { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
+- { LC_COLLATE=C; export LC_COLLATE; }
+-(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
+- { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
+- { LC_NUMERIC=C; export LC_NUMERIC; }
+-(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
+- { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
+- { LC_MESSAGES=C; export LC_MESSAGES; }
++
++# Work around bugs in pre-3.0 UWIN ksh.
++$as_unset ENV MAIL MAILPATH
++PS1='$ '
++PS2='> '
++PS4='+ '
++
++# NLS nuisances.
++for as_var in \
++ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
++ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
++ LC_TELEPHONE LC_TIME
++do
++ if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
++ eval $as_var=C; export $as_var
++ else
++ $as_unset $as_var
++ fi
++done
++
++# Required to use basename.
++if expr a : '\(a\)' >/dev/null 2>&1; then
++ as_expr=expr
++else
++ as_expr=false
++fi
++
++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
++ as_basename=basename
++else
++ as_basename=false
++fi
+
+
+ # Name of the executable.
+-as_me=`(basename "$0") 2>/dev/null ||
++as_me=`$as_basename "$0" ||
+ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)$' \| \
+@@ -7437,6 +8222,7 @@
+ /^X\/\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+
++
+ # PATH needs CR, and LINENO needs CR and PATH.
+ # Avoid depending upon Character Ranges.
+ as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+@@ -7447,15 +8233,15 @@
+
+ # The user is always right.
+ if test "${PATH_SEPARATOR+set}" != set; then
+- echo "#! /bin/sh" >conftest.sh
+- echo "exit 0" >>conftest.sh
+- chmod +x conftest.sh
+- if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
++ echo "#! /bin/sh" >conf$$.sh
++ echo "exit 0" >>conf$$.sh
++ chmod +x conf$$.sh
++ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+ PATH_SEPARATOR=';'
+ else
+ PATH_SEPARATOR=:
+ fi
+- rm -f conftest.sh
++ rm -f conf$$.sh
+ fi
+
+
+@@ -7504,6 +8290,8 @@
+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
++ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
++ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
+ CONFIG_SHELL=$as_dir/$as_base
+ export CONFIG_SHELL
+ exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+@@ -7577,6 +8365,12 @@
+ fi
+ rm -f conf$$ conf$$.exe conf$$.file
+
++if mkdir -p . 2>/dev/null; then
++ as_mkdir_p=:
++else
++ as_mkdir_p=false
++fi
++
+ as_executable_p="test -f"
+
+ # Sed expression to map a string onto a valid CPP name.
+@@ -7593,7 +8387,7 @@
+ IFS=" $as_nl"
+
+ # CDPATH.
+-$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
++$as_unset CDPATH
+
+ exec 6>&1
+
+@@ -7610,7 +8404,7 @@
+ cat >&5 <<_CSEOF
+
+ This file was extended by $as_me, which was
+-generated by GNU Autoconf 2.53. Invocation command line was
++generated by GNU Autoconf 2.57. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+@@ -7650,6 +8444,7 @@
+
+ -h, --help print this help, then exit
+ -V, --version print version number, then exit
++ -q, --quiet do not print progress messages
+ -d, --debug don't remove temporary files
+ --recheck update $as_me by reconfiguring in the same conditions
+ --file=FILE[:TEMPLATE]
+@@ -7672,7 +8467,7 @@
+ cat >>$CONFIG_STATUS <<_ACEOF
+ ac_cs_version="\\
+ config.status
+-configured by $0, generated by GNU Autoconf 2.53,
++configured by $0, generated by GNU Autoconf 2.57,
+ with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
+
+ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
+@@ -7693,25 +8488,25 @@
+ --*=*)
+ ac_option=`expr "x$1" : 'x\([^=]*\)='`
+ ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
+- shift
+- set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
+- shift
++ ac_shift=:
++ ;;
++ -*)
++ ac_option=$1
++ ac_optarg=$2
++ ac_shift=shift
+ ;;
+- -*);;
+ *) # This is not an option, so the user has probably given explicit
+ # arguments.
++ ac_option=$1
+ ac_need_defaults=false;;
+ esac
+
+- case $1 in
++ case $ac_option in
+ # Handling of the options.
+ _ACEOF
+-cat >>$CONFIG_STATUS <<_ACEOF
+- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+- echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
+- exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
+-_ACEOF
+ cat >>$CONFIG_STATUS <<\_ACEOF
++ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
++ ac_cs_recheck=: ;;
+ --version | --vers* | -V )
+ echo "$ac_cs_version"; exit 0 ;;
+ --he | --h)
+@@ -7726,13 +8521,16 @@
+ --debug | --d* | -d )
+ debug=: ;;
+ --file | --fil | --fi | --f )
+- shift
+- CONFIG_FILES="$CONFIG_FILES $1"
++ $ac_shift
++ CONFIG_FILES="$CONFIG_FILES $ac_optarg"
+ ac_need_defaults=false;;
+ --header | --heade | --head | --hea )
+- shift
+- CONFIG_HEADERS="$CONFIG_HEADERS $1"
++ $ac_shift
++ CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
+ ac_need_defaults=false;;
++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
++ | -silent | --silent | --silen | --sile | --sil | --si | --s)
++ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
+@@ -7747,6 +8545,20 @@
+ shift
+ done
+
++ac_configure_extra_args=
++
++if $ac_cs_silent; then
++ exec 6>/dev/null
++ ac_configure_extra_args="$ac_configure_extra_args --silent"
++fi
++
++_ACEOF
++cat >>$CONFIG_STATUS <<_ACEOF
++if \$ac_cs_recheck; then
++ echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
++ exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
++fi
++
+ _ACEOF
+
+ cat >>$CONFIG_STATUS <<_ACEOF
+@@ -7795,6 +8607,9 @@
+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
+ fi
+
++# Have a temporary directory for convenience. Make it in the build tree
++# simply because there is no reason to put it here, and in addition,
++# creating and moving files from /tmp can sometimes cause problems.
+ # Create a temporary directory, and hook for its removal unless debugging.
+ $debug ||
+ {
+@@ -7803,17 +8618,17 @@
+ }
+
+ # Create a (secure) tmp directory for tmp files.
+-: ${TMPDIR=/tmp}
++
+ {
+- tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
++ tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
+ test -n "$tmp" && test -d "$tmp"
+ } ||
+ {
+- tmp=$TMPDIR/cs$$-$RANDOM
++ tmp=./confstat$$-$RANDOM
+ (umask 077 && mkdir $tmp)
+ } ||
+ {
+- echo "$me: cannot create a temporary directory in $TMPDIR" >&2
++ echo "$me: cannot create a temporary directory in ." >&2
+ { (exit 1); exit 1; }
+ }
+
+@@ -7904,7 +8719,13 @@
+ s,@host_os@,$host_os,;t t
+ s,@extra_incl@,$extra_incl,;t t
+ s,@CPP@,$CPP,;t t
++s,@EGREP@,$EGREP,;t t
++s,@LIBPRELUDE_CONFIG@,$LIBPRELUDE_CONFIG,;t t
++s,@LIBPRELUDE_CFLAGS@,$LIBPRELUDE_CFLAGS,;t t
++s,@LIBPRELUDE_LIBS@,$LIBPRELUDE_LIBS,;t t
+ s,@INCLUDES@,$INCLUDES,;t t
++s,@LIBOBJS@,$LIBOBJS,;t t
++s,@LTLIBOBJS@,$LTLIBOBJS,;t t
+ CEOF
+
+ _ACEOF
+@@ -7975,25 +8796,30 @@
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+- { case "$ac_dir" in
+- [\\/]* | ?:[\\/]* ) as_incr_dir=;;
+- *) as_incr_dir=.;;
+-esac
+-as_dummy="$ac_dir"
+-for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
+- case $as_mkdir_dir in
+- # Skip DOS drivespec
+- ?:) as_incr_dir=$as_mkdir_dir ;;
+- *)
+- as_incr_dir=$as_incr_dir/$as_mkdir_dir
+- test -d "$as_incr_dir" ||
+- mkdir "$as_incr_dir" ||
+- { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
+-echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
+- { (exit 1); exit 1; }; }
+- ;;
+- esac
+-done; }
++ { if $as_mkdir_p; then
++ mkdir -p "$ac_dir"
++ else
++ as_dir="$ac_dir"
++ as_dirs=
++ while test ! -d "$as_dir"; do
++ as_dirs="$as_dir $as_dirs"
++ as_dir=`(dirname "$as_dir") 2>/dev/null ||
++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++ X"$as_dir" : 'X\(//\)[^/]' \| \
++ X"$as_dir" : 'X\(//\)$' \| \
++ X"$as_dir" : 'X\(/\)' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X"$as_dir" |
++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++ /^X\(\/\/\)$/{ s//\1/; q; }
++ /^X\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++ done
++ test ! -n "$as_dirs" || mkdir $as_dirs
++ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
++ { (exit 1); exit 1; }; }; }
+
+ ac_builddir=.
+
+@@ -8023,7 +8849,7 @@
+ # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
+ # absolute.
+ ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
+-ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
++ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
+ ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
+ ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+@@ -8213,7 +9039,7 @@
+ # Break up conftest.defines because some shells have a limit on the size
+ # of here documents, and old seds have small limits too (100 cmds).
+ echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
+-echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
++echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
+ echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
+ echo ' :' >>$CONFIG_STATUS
+ rm -f conftest.tail
+@@ -8237,7 +9063,7 @@
+ mv conftest.tail conftest.defines
+ done
+ rm -f conftest.defines
+-echo ' fi # egrep' >>$CONFIG_STATUS
++echo ' fi # grep' >>$CONFIG_STATUS
+ echo >>$CONFIG_STATUS
+
+ # Break up conftest.undefs because some shells have a limit on the size
+@@ -8277,7 +9103,7 @@
+ cat $tmp/in >>$tmp/config.h
+ rm -f $tmp/in
+ if test x"$ac_file" != x-; then
+- if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
++ if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
+ { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
+ echo "$as_me: $ac_file is unchanged" >&6;}
+ else
+@@ -8293,25 +9119,30 @@
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+- { case "$ac_dir" in
+- [\\/]* | ?:[\\/]* ) as_incr_dir=;;
+- *) as_incr_dir=.;;
+-esac
+-as_dummy="$ac_dir"
+-for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
+- case $as_mkdir_dir in
+- # Skip DOS drivespec
+- ?:) as_incr_dir=$as_mkdir_dir ;;
+- *)
+- as_incr_dir=$as_incr_dir/$as_mkdir_dir
+- test -d "$as_incr_dir" ||
+- mkdir "$as_incr_dir" ||
+- { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
+-echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
+- { (exit 1); exit 1; }; }
+- ;;
+- esac
+-done; }
++ { if $as_mkdir_p; then
++ mkdir -p "$ac_dir"
++ else
++ as_dir="$ac_dir"
++ as_dirs=
++ while test ! -d "$as_dir"; do
++ as_dirs="$as_dir $as_dirs"
++ as_dir=`(dirname "$as_dir") 2>/dev/null ||
++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++ X"$as_dir" : 'X\(//\)[^/]' \| \
++ X"$as_dir" : 'X\(//\)$' \| \
++ X"$as_dir" : 'X\(/\)' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X"$as_dir" |
++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++ /^X\(\/\/\)$/{ s//\1/; q; }
++ /^X\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++ done
++ test ! -n "$as_dirs" || mkdir $as_dirs
++ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
++ { (exit 1); exit 1; }; }; }
+
+ rm -f $ac_file
+ mv $tmp/config.h $ac_file
+@@ -8376,7 +9207,7 @@
+ # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
+ # absolute.
+ ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
+-ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
++ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
+ ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
+ ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+@@ -8445,25 +9276,30 @@
+ /^X\(\/\/\)$/{ s//\1/; q; }
+ /^X\(\/\).*/{ s//\1/; q; }
+ s/.*/./; q'`
+- { case $dirpart/$fdir in
+- [\\/]* | ?:[\\/]* ) as_incr_dir=;;
+- *) as_incr_dir=.;;
+-esac
+-as_dummy=$dirpart/$fdir
+-for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
+- case $as_mkdir_dir in
+- # Skip DOS drivespec
+- ?:) as_incr_dir=$as_mkdir_dir ;;
+- *)
+- as_incr_dir=$as_incr_dir/$as_mkdir_dir
+- test -d "$as_incr_dir" ||
+- mkdir "$as_incr_dir" ||
+- { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
+-echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
+- { (exit 1); exit 1; }; }
+- ;;
+- esac
+-done; }
++ { if $as_mkdir_p; then
++ mkdir -p $dirpart/$fdir
++ else
++ as_dir=$dirpart/$fdir
++ as_dirs=
++ while test ! -d "$as_dir"; do
++ as_dirs="$as_dir $as_dirs"
++ as_dir=`(dirname "$as_dir") 2>/dev/null ||
++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++ X"$as_dir" : 'X\(//\)[^/]' \| \
++ X"$as_dir" : 'X\(//\)$' \| \
++ X"$as_dir" : 'X\(/\)' \| \
++ . : '\(.\)' 2>/dev/null ||
++echo X"$as_dir" |
++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++ /^X\(\/\/\)$/{ s//\1/; q; }
++ /^X\(\/\).*/{ s//\1/; q; }
++ s/.*/./; q'`
++ done
++ test ! -n "$as_dirs" || mkdir $as_dirs
++ fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
++echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
++ { (exit 1); exit 1; }; }; }
+
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
+@@ -8492,8 +9328,11 @@
+ # need to make the FD available again.
+ if test "$no_create" != yes; then
+ ac_cs_success=:
++ ac_config_status_args=
++ test "$silent" = yes &&
++ ac_config_status_args="$ac_config_status_args --quiet"
+ exec 5>/dev/null
+- $SHELL $CONFIG_STATUS || ac_cs_success=false
++ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+ exec 5>>config.log
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+ # would make configure fail if this is the last instruction.
+diff -r -N -u snort-2.0.1/configure.in snort-2.0.1+prelude/configure.in
+--- snort-2.0.1/configure.in 2003-07-01 22:18:17.000000000 +0800
++++ snort-2.0.1+prelude/configure.in 2003-07-26 18:12:40.000000000 +0800
+@@ -313,6 +313,28 @@
+ LDFLAGS="${LDFLAGS} -L${with_libnet_libraries}"
+ fi
+
++
++#
++# Support for prelude
++#
++AC_ARG_WITH(prelude,
++ [ --with-prelude support for Prelude IDS],
++ [ with_prelude="$withval" ],
++ [ with_prelude=yes])
++
++if test "$with_prelude" = "yes"; then
++ AC_MSG_CHECKING(for Prelude)
++
++ AC_PATH_GENERIC(libprelude, 0.8.0, use_prelude=yes, use_prelude=no)
++ if test "$use_prelude" = "yes"; then
++ PRELUDE_LIBS=`libprelude-config --libs`
++ PRELUDE_CFLAGS=`libprelude-config --cflags`
++ LDFLAGS="${LDFLAGS} ${PRELUDE_LIBS}"
++ CPPFLAGS="${CPPFLAGS} ${PRELUDE_CFLAGS} -DWITH_PRELUDE"
++ fi
++fi
++
++
+ AC_ARG_WITH(mysql,
+ [ --with-mysql=DIR support for mysql],
+ [ with_mysql="$withval" ],
+diff -r -N -u snort-2.0.1/configure.in~ snort-2.0.1+prelude/configure.in~
+--- snort-2.0.1/configure.in~ 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/configure.in~ 2003-07-01 22:18:17.000000000 +0800
+@@ -0,0 +1,714 @@
++# $Id: snort-2.0.1+prelude.patch,v 1.1 2003/08/09 20:15:16 solar Exp $
++AC_INIT(src/snort.c)
++AM_CONFIG_HEADER(config.h)
++# When changing the snort version, please also update the VERSION
++# definition in "src/win32/WIN32-Includes/config.h"
++AM_INIT_AUTOMAKE(snort,2.0.1)
++AM_PROG_CC_STDC
++AC_PROG_RANLIB
++
++AC_PROG_CC
++ if test -n "$GCC"; then
++ CFLAGS="$CFLAGS -Wall "
++ fi
++
++
++AC_ARG_ENABLE(debug,
++[ --enable-debug enable debugging options (bugreports and developers only)],
++ [ if test -n "$GCC"; then
++ CFLAGS="-O0 -DDEBUG -g"
++ else
++ CFLAGS="$CFLAGS -DDEBUG"
++ fi
++ ],)
++
++AC_ARG_ENABLE(profile,
++ [ --enable-profile enable profiling options (developers only)],
++ [ if test -n "$GCC"; then
++ CFLAGS="$CFLAGS -DPROFILE -pg"
++ else
++ CFLAGS="$CFLAGS -DPROFILE"
++ fi
++ ],)
++
++AC_CANONICAL_HOST
++linux=no
++sunos4=no
++
++AC_C_BIGENDIAN
++SHELL="/bin/sh"
++
++case "$host" in
++ *-openbsd2.6|*-openbsd2.5|*-openbsd2.4|*-openbsd2.3*)
++ AC_DEFINE(OPENBSD)
++ AC_DEFINE(BROKEN_SIOCGIFMTU)
++
++ ;;
++ *-openbsd*)
++ AC_DEFINE(OPENBSD)
++
++ ;;
++ *-sgi-irix5*)
++ AC_DEFINE(IRIX)
++ no_libsocket=yes
++ no_libnsl=yes
++ if test -z "$GCC"; then
++ sgi_cc=yes
++ fi
++ LDFLAGS=${LDFLAGS} -L/usr/local/lib
++ extra_incl=-I/usr/local/include
++ ;;
++ *-sgi-irix6*)
++ AC_DEFINE(IRIX)
++ no_libsocket=yes
++ no_libnsl=yes
++ if test -z "$GCC"; then
++ sgi_cc=yes
++ fi
++ LDFLAGS=${LDFLAGS} -L/usr/local/lib
++ extra_incl=-I/usr/local/include
++ ;;
++ *-solaris*)
++ AC_DEFINE(SOLARIS)
++ CPPFLAGS="${CPPFLAGS} -DBSD_COMP"
++ ;;
++ *-sunos*)
++ AC_DEFINE(SUNOS)
++ sunos4=yes
++ ;;
++ *-linux*)
++ linux=yes
++ AC_DEFINE(LINUX)
++ AC_DEFINE(PCAP_TIMEOUT_IGNORED) # libpcap doesn't even LOOK at
++ # the timeout you give it under Linux
++ AC_SUBST(extra_incl)
++ extra_incl=-I/usr/include/pcap
++ ;;
++ *-hpux10*)
++ AC_DEFINE(HPUX)
++ AC_DEFINE(WORDS_BIGENDIAN)
++ AC_SUBST(extra_incl)
++ extra_incl=-I/usr/local/include
++ ;;
++
++ *-freebsd*)
++ AC_DEFINE(FREEBSD)
++
++ ;;
++ *-bsdi*)
++ AC_DEFINE(BSDI)
++ ;;
++ *-aix*)
++ AC_DEFINE(AIX)
++ broken_types=yes
++ ;;
++ *-osf4*)
++ AC_DEFINE(OSF1)
++ tru64_types=yes
++ ;;
++ *-osf5.1*)
++ AC_DEFINE(OSF1)
++ ;;
++ *-tru64*)
++ AC_DEFINE(OSF1)
++ tru64_types=yes
++ ;;
++# it is actually <platform>-apple-darwin1.2 or <platform>-apple-rhapsody5.x but lets stick with this for the moment
++ *-apple*)
++ AC_DEFINE(MACOS)
++ AC_DEFINE(BROKEN_SIOCGIFMTU)
++ LDFLAGS="${LDFLAGS} -L/sw/lib"
++ extra_incl=-I/sw/include
++esac
++
++# any sparc platform has to have this one defined.
++AC_MSG_CHECKING(for sparc alignment)
++if eval "echo $host_cpu|grep -i sparc >/dev/null"; then
++ AC_DEFINE(WORDS_MUSTALIGN)
++ AC_MSG_RESULT(yes)
++else
++ AC_MSG_RESULT(no)
++fi
++
++dnl checking headers
++AC_CHECK_HEADERS(strings.h)
++AC_CHECK_HEADERS(string.h)
++AC_CHECK_HEADERS(stdlib.h)
++AC_CHECK_HEADERS(unistd.h)
++AC_CHECK_HEADERS(sys/sockio.h)
++AC_CHECK_HEADERS(paths.h)
++
++dnl make sure we've got all our libraries
++if test -z "$no_libnsl"; then
++AC_CHECK_LIB(nsl, inet_ntoa)
++fi
++
++if test -z "$no_libsocket"; then
++AC_CHECK_LIB(socket, socket)
++fi
++
++# SunOS4 has several things `broken'
++if test "$sunos4" != "no"; then
++AC_CHECK_FUNCS(vsnprintf,, LIBS=" $LIBS -ldb")
++AC_CHECK_FUNCS(strtoul,, LIBS=" $LIBS -l44bsd")
++fi
++
++# some funky macro to be backwards compatible with earlier autoconfs
++# in current they have AC_CHECK_DECLS
++
++AC_DEFUN(SN_CHECK_DECL,[
++AC_MSG_CHECKING([whether $1 must be declared])
++AC_CACHE_VAL(sn_cv_decl_needed_$1,
++[AC_TRY_COMPILE([
++#include <stdio.h>
++#ifdef HAVE_STRING_H
++#include <string.h>
++#endif
++#ifdef HAVE_STRINGS_H
++#include <strings.h>
++#endif
++#ifdef HAVE_STDLIB_H
++#include <stdlib.h>
++#endif
++#ifdef HAVE_UNISTD_H
++#include <unistd.h>
++#endif
++#include <sys/types.h>
++#include <sys/socket.h>
++#include <syslog.h>
++],
++[char *(*pfn) = (char *(*)) $1],
++eval "sn_cv_decl_needed_$1=no",eval "sn_cv_decl_needed_$1=yes") ])
++
++if eval "test \"`echo '$sn_cv_decl_needed_'$1`\" != no"; then
++ AC_MSG_RESULT(yes)
++ ifelse([$2], , :, [$2])
++else
++ AC_MSG_RESULT(no)
++ ifelse([$3], , ,[$3])
++fi
++])dnl
++
++AC_DEFUN(SN_CHECK_DECLS,
++[for sn_decl in $1
++do
++sn_def_decl=`echo $sn_decl | tr [a-z] [A-Z]`
++SN_CHECK_DECL($sn_decl,
++[
++AC_DEFINE_UNQUOTED(NEED_DECL_$sn_def_decl, 1,
++ [you have this cuz autoheader is dumb])
++$2], $3)dnl
++done
++])
++
++# some stuff for declarations which were missed on sunos4 platform too.
++#
++# add `#undef NEED_DECL_FUNCTIONAME to acconfig.h` because autoheader
++# fails to work properly with custom macroses.
++# you will see also #undef for each SN_CHECK_DECLS macros invocation
++# because autoheader doesn't execute shell script commands.
++# it is possible to make loops using m4 but the code would look even
++# more confusing..
++SN_CHECK_DECLS(printf fprintf syslog puts fputs fputc fopen \
++ fclose fwrite fflush getopt bzero bcopy memset strtol \
++ strcasecmp strncasecmp strerror perror socket sendto \
++ vsnprintf snprintf strtoul)
++
++AC_CHECK_FUNCS(snprintf)
++AC_CHECK_FUNCS(strlcpy)
++AC_CHECK_FUNCS(strlcat)
++AC_CHECK_FUNCS(strerror)
++
++AC_TRY_COMPILE([
++#include <stdio.h>
++],[char *foo; foo = sys_errlist[0];], AC_DEFINE(ERRLIST_PREDEFINED))
++
++AC_MSG_CHECKING(for __FUNCTION__)
++AC_TRY_COMPILE([
++#include <stdio.h>
++],[printf ("%s", __FUNCTION__);],
++sn_cv_have___FUNCTION__=yes, sn_cv__have___FUNCTION__=no)
++if test "x$sn_cv_have___FUNCTION__" = "xyes"; then
++ AC_MSG_RESULT(yes)
++ AC_DEFINE(HAVE___FUNCTION__, 1,
++ [Define if the compiler understands __FUNCTION__.])
++else
++ AC_MSG_RESULT(no)
++ AC_MSG_CHECKING(for __func__)
++ AC_TRY_COMPILE([
++#include <stdio.h>
++],[printf ("%s", __func__);],
++sn_cv_have___func__=yes, sn_cv__have___func__=no)
++ if test "x$sn_cv_have___func__" = "xyes"; then
++ AC_MSG_RESULT(yes)
++ AC_DEFINE(HAVE___func__, 1,
++ [Define if the compiler understands __func__.])
++ AC_DEFINE(__FUNCTION__, __func__, [Define __FUNCTION__ as required.])
++ else
++ AC_MSG_RESULT(no)
++ AC_DEFINE(__FUNCTION__, "mystery function")
++ fi
++fi
++
++
++AC_ARG_WITH(libpcap_includes,
++ [ --with-libpcap-includes=DIR libcap include directory],
++ [with_libpcap_includes="$withval"],[with_libpcap_includes=no])
++
++AC_ARG_WITH(libpcap_libraries,
++ [ --with-libpcap-libraries=DIR libcap library directory],
++ [with_libpcap_libraries="$withval"],[with_libpcap_libraries=no])
++
++if test "$with_libpcap_includes" != "no"; then
++ CPPFLAGS="${CPPFLAGS} -I${with_libpcap_includes}"
++fi
++
++if test "$with_libpcap_libraries" != "no"; then
++ LDFLAGS="${LDFLAGS} -L${with_libpcap_libraries}"
++fi
++
++AC_CHECK_LIB(m, floor,,)
++
++LPCAP=""
++AC_CHECK_LIB(pcap, pcap_datalink,, LPCAP="no")
++
++if test "$LPCAP" = "no"; then
++ echo
++ echo " ERROR! Libpcap library/headers not found, go get it from"
++ echo " http://www.tcpdump.org"
++ echo " or use the --with-libpcap-* options, if you have it installed"
++ echo " in unusual place"
++ exit
++fi
++
++default_directory="/usr /usr/local"
++
++AC_DEFUN(FAIL_MESSAGE,[
++ echo
++ echo
++ echo "**********************************************"
++ echo " ERROR: unable to find" $1
++ echo " checked in the following places"
++ for i in `echo $2`; do
++ echo " $i"
++ done
++ echo "**********************************************"
++ echo
++ exit
++])
++
++AC_ARG_WITH(libnet_includes,
++ [ --with-libnet-includes=DIR libnet include directory],
++ [with_libnet_includes="$withval"],[with_libnet_includes=no])
++
++AC_ARG_WITH(libnet_libraries,
++ [ --with-libnet-libraries=DIR libnet library directory],
++ [with_libnet_libraries="$withval"],[with_libnet_libraries=no])
++
++if test "$with_libnet_includes" != "no"; then
++ CPPFLAGS="${CPPFLAGS} -I${with_libnet_includes}"
++fi
++
++if test "$with_libnet_libraries" != "no"; then
++ LDFLAGS="${LDFLAGS} -L${with_libnet_libraries}"
++fi
++
++AC_ARG_WITH(mysql,
++ [ --with-mysql=DIR support for mysql],
++ [ with_mysql="$withval" ],
++ [ with_mysql=no ])
++
++if test "$with_mysql" != "no"; then
++ if test "$with_mysql" = "yes"; then
++ mysql_directory="$default_directory";
++ mysql_fail="yes"
++ elif test -d $withval; then
++ mysql_directory="$withval"
++ mysql_fail="no"
++ elif test "$with_mysql" = ""; then
++ mysql_directory="$default_directory";
++ mysql_fail="no"
++ fi
++
++ AC_MSG_CHECKING(for mysql)
++
++ for i in $mysql_directory; do
++ if test -r $i/include/mysql/mysql.h; then
++ MYSQL_DIR=$i
++ MYSQL_INC_DIR=$i/include/mysql
++ elif test -r $i/include/mysql.h; then
++ MYSQL_DIR=$i
++ MYSQL_INC_DIR=$i/include
++ fi
++ done
++
++ if test -z "$MYSQL_DIR"; then
++ if test "$mysql_fail" != "no"; then
++ tmp=""
++ for i in $mysql_directory; do
++ tmp="$tmp $i/include $i/include/mysql"
++ done
++ FAIL_MESSAGE("mysql headers (mysql.h)", $tmp)
++ else
++ AC_MSG_RESULT(no)
++ fi
++ else
++
++ for i in lib lib/mysql; do
++ str="$MYSQL_DIR/$i/libmysqlclient.*"
++ for j in `echo $str`; do
++ if test -r $j; then
++ MYSQL_LIB_DIR="$MYSQL_DIR/$i"
++ break 2
++ fi
++ done
++ done
++
++ if test -z "$MYSQL_LIB_DIR"; then
++ if test "$mysql_fail" != "no"; then
++ FAIL_MESSAGE("mysqlclient library",
++ "$MYSQL_DIR/lib $MYSQL_DIR/lib/mysql")
++ else
++ AC_MSG_RESULT(no)
++ fi
++ else
++ AC_MSG_RESULT(yes)
++ LDFLAGS="${LDFLAGS} -L${MYSQL_LIB_DIR}"
++ CPPFLAGS="${CPPFLAGS} -I${MYSQL_INC_DIR} -DENABLE_MYSQL"
++ AC_CHECK_LIB(z, compress)
++ LIBS="${LIBS} -lmysqlclient"
++ fi
++ fi
++fi
++
++AC_ARG_WITH(odbc,
++ [ --with-odbc=DIR support for odbc],
++ [ with_odbc="$withval" ],
++ [ with_odbc=no ])
++
++if test "$with_odbc" != "no"; then
++ if test "$with_odbc" = "yes"; then
++ odbc_directory="$default_directory"
++ odbc_fail="yes"
++ elif test -d $withval; then
++ odbc_directory="$withval $default_directory";
++ odbc_fail="yes"
++ elif test "$with_odbc" = ""; then
++ odbc_directory="$default_directory"
++ odbc_fail="no"
++ fi
++
++ AC_MSG_CHECKING("for odbc")
++
++ for i in $odbc_directory; do
++ if test -r $i/include/sql.h; then
++ if test -r $i/include/sqlext.h; then
++ if test -r $i/include/sqltypes.h; then
++ ODBC_DIR=$i
++ ODBC_INC_DIR=$i/include
++ fi fi fi
++ done
++
++ if test -z "$ODBC_DIR"; then
++ if test "$odbc_fail" != "no"; then
++ tmp=""
++ for i in $odbc_directory; do
++ tmp="$tmp $i/include"
++ done
++ FAIL_MESSAGE("odbc headers (sql.h sqlext.h sqltypes.h)", $tmp)
++ else
++ AC_MSG_RESULT(no)
++ fi
++ else
++
++ str="$ODBC_DIR/lib/libodbc.*"
++ for j in `echo $str`; do
++ if test -r $j; then
++ ODBC_LIB_DIR="$ODBC_DIR/lib"
++ ODBC_LIB="odbc"
++ fi
++ done
++
++dnl if test -z "$ODBC_LIB_DIR"; then
++dnl str="$ODBC_DIR/lib/libiodbc.*"
++dnl for j in `echo $str`; do
++dnl if test -r $j; then
++dnl ODBC_LIB_DIR="$ODBC_DIR/lib"
++dnl ODBC_LIB="iodbc"
++dnl fi
++dnl done
++dnl fi
++
++ if test -z "$ODBC_LIB_DIR"; then
++ if test "$odbc_fail" != "no"; then
++ FAIL_MESSAGE("odbc library (libodbc)", "$ODBC_DIR/lib")
++ else
++ AC_MSG_RESULT(no)
++ fi
++ else
++ AC_MSG_RESULT(yes)
++ LDFLAGS="${LDFLAGS} -L${ODBC_LIB_DIR}"
++ CPPFLAGS="${CPPFLAGS} -I${ODBC_INC_DIR} -DENABLE_ODBC"
++ LIBS="${LIBS} -l$ODBC_LIB"
++ fi
++ fi
++fi
++
++AC_ARG_WITH(postgresql,
++ [ --with-postgresql=DIR support for postgresql],
++ [ with_postgresql="$withval" ],
++ [ with_postgresql=no ])
++
++if test "$with_postgresql" != "no"; then
++ if test "$with_postgresql" = "yes"; then
++ postgresql_directory="$default_directory /usr/local/pgsql /usr/pgsql /usr/local"
++ postgresql_fail="yes"
++ elif test -d $withval; then
++ postgresql_directory="$withval $default_directory /usr/local/pgsql /usr/pgsql"
++ postgresql_fail="yes"
++ elif test "$with_postgresql" = ""; then
++ postgresql_directory="$default_directory /usr/local/pgsql /usr/pgsql"
++ postgresql_fail="no"
++ fi
++
++ AC_MSG_CHECKING(for postgresql)
++
++ for i in $postgresql_directory; do
++ if test -r $i/include/pgsql/libpq-fe.h; then
++ POSTGRESQL_DIR=$i
++ POSTGRESQL_INC_DIR=$i/include/pgsql
++ elif test -r $i/include/libpq-fe.h; then
++ POSTGRESQL_DIR=$i
++ POSTGRESQL_INC_DIR=$i/include
++ elif test -r $i/include/postgresql/libpq-fe.h; then
++ POSTGRESQL_DIR=$i
++ POSTGRESQL_INC_DIR=$i/include/postgresql
++ fi
++ done
++
++ if test -z "$POSTGRESQL_DIR"; then
++ if test "$postgresql_fail" != "no"; then
++ tmp=""
++ for i in $postgesql_directory; do
++ tmp="$tmp $i/include $i/include/pgsql"
++ done
++ FAIL_MESSAGE("postgresql header file (libpq-fe.h)", $tmp)
++ else
++ AC_MSG_RESULT(no)
++ fi
++ else
++
++ for i in lib lib/pgsql; do
++ str="$POSTGRESQL_DIR/$i/libpq.*"
++ for j in `echo $str`; do
++ if test -r $j; then
++ POSTGRESQL_LIB_DIR="$POSTGRESQL_DIR/$i"
++ break 2
++ fi
++ done
++ done
++
++ if test -z "$POSTGRESQL_LIB_DIR"; then
++ if test "$postgresql_fail" != "no"; then
++ FAIL_MESSAGE("postgresql library libpq",
++ "$POSTGRESQL_DIR/lib $POSTGRESQL_DIR/lib/pgsql")
++ else
++ AC_MSG_RESULT(no);
++ fi
++ else
++ AC_MSG_RESULT(yes)
++ LDFLAGS="${LDFLAGS} -L${POSTGRESQL_LIB_DIR}"
++ CPPFLAGS="${CPPFLAGS} -I${POSTGRESQL_INC_DIR} -DENABLE_POSTGRESQL"
++ LIBS="${LIBS} -lpq"
++ fi
++ fi
++fi
++
++
++AC_ARG_WITH(oracle,
++ [ --with-oracle=DIR support for oracle],
++ [ with_oracle="$withval" ],
++ [ with_oracle=no ])
++
++if test "$with_oracle" != "no"; then
++ if test "$with_oracle" = "yes"; then
++ oracle_directory="$default_directory ${ORACLE_HOME}"
++ oracle_fail="yes"
++ elif test -d $withval; then
++ oracle_directory="$withval $default_directory ${ORACLE_HOME}"
++ oracle_fail="yes"
++ elif test "$with_oracle" = ""; then
++ oracle_directory="$default_directory ${ORACLE_HOME}"
++ oracle_fail="no"
++ fi
++
++ AC_MSG_CHECKING(for oracle)
++
++ for i in $oracle_directory; do
++ if test -r $i/rdbms/demo/oci.h; then
++ ORACLE_DIR=$i
++ fi
++ done
++
++ if test -z "$ORACLE_DIR"; then
++ if test "$oracle_fail" != "no"; then
++ tmp=""
++ for i in $oracle_directory; do
++ tmp="$tmp $i/rdbms/demo"
++ done
++ FAIL_MESSAGE("OCI header file (oci.h)", $tmp)
++ else
++ AC_MSG_RESULT(no)
++ fi
++ else
++ for i in rdbms/demo rdbms/public network/public; do
++ ORACLE_CPP_FLAGS="$ORACLE_CPP_FLAGS -I$ORACLE_DIR/$i"
++ done
++ ORACLE_LIB_DIR="$ORACLE_DIR/lib"
++ AC_MSG_RESULT(yes)
++
++ LDFLAGS="${LDFLAGS} -L${ORACLE_LIB_DIR}"
++ CPPFLAGS="${CPPFLAGS} ${ORACLE_CPP_FLAGS} -DENABLE_ORACLE"
++
++ ORACLE_LIBS="-lclntsh"
++ if test -r $ORACLE_LIB_DIR/libwtc9.so; then
++ ORACLE_LIBS="${ORACLE_LIBS} -lwtc9"
++ elif test -r $ORACLE_LIB_DIR/libwtc8.so; then
++ ORACLE_LIBS="${ORACLE_LIBS} -lwtc8"
++ fi
++ LIBS="${LIBS} ${ORACLE_LIBS}"
++ fi
++fi
++
++AC_ARG_ENABLE(sourcefire,
++[ --enable-sourcefire Enable Sourcefire specific build options],
++ CFLAGS="$CFLAGS -DSOURCEFIRE",)
++
++AC_ARG_ENABLE(perfmonitor,
++[ --enable-perfmonitor Enable perfmonitor preprocessor],
++ CFLAGS="$CFLAGS -DUSE_SF_STATS",)
++
++AC_ARG_ENABLE(smbalerts,
++[ --enable-smbalerts SMB alerting capaility via Samba],
++ CFLAGS="$CFLAGS -DENABLE_SMB_ALERTS",)
++
++AC_ARG_ENABLE(linux-smp-stats,
++[ --enable-linux-smp-stats Enable statistics reporting through proc],
++ CFLAGS="$CFLAGS -DLINUX_SMP",)
++
++AC_ARG_ENABLE(flexresp,
++[ --enable-flexresp Flexible Responses on hostile connection attempts],
++[ CPPFLAGS="${CPPFLAGS} -DENABLE_RESPONSE `libnet-config --defines --cflags`" LDFLAGS="${LDFLAGS} `libnet-config --libs`"],)
++
++
++if test "$enable_flexresp" != "no" -a "$enable_flexresp" = "yes"; then
++
++ if test `libnet-config --cflags | wc -c` = "1"; then
++ CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/sw/include"
++ LIBNET_CONFIG_BROKEN_CFLAGS=yes
++ fi
++
++ if test `libnet-config --libs | wc -c` = "1"; then
++ AC_MSG_WARN(libnet-config --libs is broken on your system. If you)
++ AC_MSG_WARN(are using a precompiled package please notify the)
++ AC_MSG_WARN(maintainer.)
++ LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/sw/lib"
++ LIBS="${LIBS} -lnet"
++ fi
++
++ LNET=""
++ AC_CHECK_HEADERS(libnet.h,, LNET="no")
++ if test "$LNET" = "no"; then
++ echo
++ echo " ERROR! Libnet header not found, go get it from"
++ echo " http://www.packetfactory.net/projects/libnet/"
++ echo " or use the --with-libnet-* options, if you have it installed"
++ echo " in unusual place"
++ exit
++ fi
++
++ AC_MSG_CHECKING(for libnet version 1.0.2a)
++ if test "${LIBNET_CONFIG_BROKEN_CFLAGS}" = "yes"; then
++ if test -n "$with_libnet_includes" -a "$with_libnet_includes" != "no"; then
++ libnet_dir="${with_libnet_includes}"
++ else
++ libnet_dir="/usr/include /usr/local/include /sw/include"
++ fi
++ else
++ libnet_dir=`libnet-config --cflags | cut -dI -f2`
++ fi
++
++ LIBNET_INC_DIR=""
++ for i in $libnet_dir; do
++ if test -r $i/libnet.h; then
++ LIBNET_INC_DIR=$i
++ fi
++ done
++
++ if test "$LIBNET_INC_DIR" != ""; then
++ if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0.2a >/dev/null"; then
++ AC_MSG_RESULT(no)
++ echo
++ echo " ERROR! Snort with --enable-flexresp will *only* work with"
++ echo " libnet version 1.0.2a, go get it from"
++ echo " http://www.packetfactory.net/projects/libnet/"
++ FAIL_MESSAGE("libnet 1.0.2a (libnet.h)", $LIBNET_INC_DIR)
++ fi
++ AC_MSG_RESULT(yes)
++ else
++ AC_MSG_RESULT(no)
++ FAIL_MESSAGE("libnet 1.0.2a (libnet.h)", $libnet_dir)
++ fi
++
++ LNET=""
++ AC_CHECK_LIB(net, libnet_build_ip,, LNET="no")
++ if test "$LNET" = "no"; then
++ echo
++ echo " ERROR! Libnet library not found, go get it from"
++ echo " http://www.packetfactory.net/projects/libnet/"
++ echo " or use the --with-libnet-* options, if you have it installed"
++ echo " in unusual place"
++ exit
++ fi
++
++fi
++
++if test "$tru64_types" = "yes"; then
++ AC_CHECK_TYPE(u_int8_t, unsigned char)
++ AC_CHECK_TYPE(u_int16_t, unsigned short)
++ AC_CHECK_TYPE(u_int32_t, unsigned int)
++else
++ if test "$broken_types" = "yes" ; then
++ AC_CHECK_TYPE(u_int8_t, unsigned char)
++ AC_CHECK_TYPE(u_int16_t, unsigned short)
++ AC_CHECK_TYPE(u_int32_t, unsigned long int)
++ else
++ AC_CHECK_TYPE(u_int8_t, uint8_t)
++ AC_CHECK_TYPE(u_int16_t, uint16_t)
++ AC_CHECK_TYPE(u_int32_t, uint32_t)
++ fi
++fi
++
++
++# let's make some fixes..
++
++CFLAGS=`echo $CFLAGS | sed -e 's/-I\/usr\/include //g'`
++CPPFLAGS=`echo $CPPFLAGS | sed -e 's/-I\/usr\/include //g'`
++
++INCLUDES='-I$(top_srcdir) -I$(top_srcdir)/src $(extra_incl) -I$(top_srcdir)/src/output-plugins -I$(top_srcdir)/src/detection-plugins -I$(top_srcdir)/src/preprocessors'
++AC_SUBST(INCLUDES)
++
++AC_PROG_INSTALL
++AC_OUTPUT(Makefile \
++src/Makefile \
++src/detection-plugins/Makefile \
++src/output-plugins/Makefile \
++src/preprocessors/Makefile \
++src/parser/Makefile \
++doc/Makefile \
++contrib/Makefile \
++etc/Makefile \
++rules/Makefile \
++templates/Makefile \
++src/win32/Makefile)
++
+diff -r -N -u snort-2.0.1/contrib/Makefile.in snort-2.0.1+prelude/contrib/Makefile.in
+--- snort-2.0.1/contrib/Makefile.in 2003-07-01 22:30:48.000000000 +0800
++++ snort-2.0.1+prelude/contrib/Makefile.in 2003-07-26 18:14:26.000000000 +0800
+@@ -74,6 +74,7 @@
+ PACKAGE = @PACKAGE@
+ RANLIB = @RANLIB@
+ STRIP = @STRIP@
++UP = @UP@
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
+diff -r -N -u snort-2.0.1/doc/Makefile.in snort-2.0.1+prelude/doc/Makefile.in
+--- snort-2.0.1/doc/Makefile.in 2003-07-22 21:49:44.000000000 +0800
++++ snort-2.0.1+prelude/doc/Makefile.in 2003-07-26 18:14:26.000000000 +0800
+@@ -74,6 +74,7 @@
+ PACKAGE = @PACKAGE@
+ RANLIB = @RANLIB@
+ STRIP = @STRIP@
++UP = @UP@
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
+diff -r -N -u snort-2.0.1/etc/Makefile.am snort-2.0.1+prelude/etc/Makefile.am
+--- snort-2.0.1/etc/Makefile.am 2003-04-15 03:33:49.000000000 +0800
++++ snort-2.0.1+prelude/etc/Makefile.am 2003-07-26 18:13:18.000000000 +0800
+@@ -2,4 +2,4 @@
+ AUTOMAKE_OPTIONS=foreign no-dependencies
+
+ EXTRA_DIST = sid sid-msg.map snort.conf classification.config gen-msg.map \
+-reference.config generators
++reference.config generators prelude-classification.config
+diff -r -N -u snort-2.0.1/etc/Makefile.am~ snort-2.0.1+prelude/etc/Makefile.am~
+--- snort-2.0.1/etc/Makefile.am~ 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/etc/Makefile.am~ 2003-04-15 03:33:49.000000000 +0800
+@@ -0,0 +1,5 @@
++## $Id: snort-2.0.1+prelude.patch,v 1.1 2003/08/09 20:15:16 solar Exp $
++AUTOMAKE_OPTIONS=foreign no-dependencies
++
++EXTRA_DIST = sid sid-msg.map snort.conf classification.config gen-msg.map \
++reference.config generators
+diff -r -N -u snort-2.0.1/etc/Makefile.in snort-2.0.1+prelude/etc/Makefile.in
+--- snort-2.0.1/etc/Makefile.in 2003-07-01 22:30:32.000000000 +0800
++++ snort-2.0.1+prelude/etc/Makefile.in 2003-07-26 18:14:26.000000000 +0800
+@@ -74,6 +74,7 @@
+ PACKAGE = @PACKAGE@
+ RANLIB = @RANLIB@
+ STRIP = @STRIP@
++UP = @UP@
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
+@@ -82,7 +83,7 @@
+ AUTOMAKE_OPTIONS = foreign no-dependencies
+
+ EXTRA_DIST = sid sid-msg.map snort.conf classification.config gen-msg.map \
+-reference.config generators
++reference.config generators prelude-classification.config
+
+ subdir = etc
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+diff -r -N -u snort-2.0.1/etc/prelude-classification.config snort-2.0.1+prelude/etc/prelude-classification.config
+--- snort-2.0.1/etc/prelude-classification.config 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/etc/prelude-classification.config 2003-07-26 18:12:40.000000000 +0800
+@@ -0,0 +1,74 @@
++# $Id: snort-2.0.1+prelude.patch,v 1.1 2003/08/09 20:15:16 solar Exp $
++# The following includes information for prioritizing rules
++#
++# Each classification includes a shortname, a description, and a default
++# priority for that classification.
++#
++# This allows alerts to be cassified and prioritized. You can specify
++# what priority each classification has. Any rule can override the default
++# priority for that rule.
++#
++# Here are a few example rules:
++#
++# alert TCP any any -> any 80 (msg: "EXPLOIT ntpdx overflow";
++# dsize: > 128; classtype:attempted-admin; priority:10;
++#
++# alert TCP any any -> any 25 (msg:"SMTP expn root"; flags:A+; \
++# content:"expn root"; nocase; classtype:attempted-recon;)
++#
++# The first rule will set its type to "attempted-admin" and override
++# the default priority for that type to 10.
++#
++# The second rule set its type to "attempted-recon" and set its
++# priority to the default for that type.
++#
++
++#
++# config classification:shortname,short description,priority
++#
++
++# Prelude Change: In order to be IDMEF compliant, priority should be
++# defined using the high, medium and low keyword.
++#
++# Completion using failed or succeeded keyword.
++#
++# Type using the other, admin, dos, file, recon, or user keyword.
++#
++# config classification:shortname, short desc, priority, type, completion
++
++config classification: not-suspicious,Not Suspicious Traffic, low, other, ,
++config classification: unknown,Unknown Traffic, low, other, ,
++config classification: bad-unknown,Potentially Bad Traffic, medium, other, ,
++config classification: attempted-recon,Attempted Information Leak, medium, recon, ,
++config classification: successful-recon-limited,Information Leak, medium, recon, succeeded
++config classification: successful-recon-largescale,Large Scale Information Leak, medium, recon, succeeded
++config classification: attempted-dos,Attempted Denial of Service, medium, dos, ,
++config classification: successful-dos,Denial of Service, medium, dos, succeeded
++config classification: attempted-user,Attempted User Privilege Gain, high, user, ,
++config classification: unsuccessful-user,Unsuccessful User Privilege Gain, high, user, failed
++config classification: successful-user,Successful User Privilege Gain, high, user, succeeded
++config classification: attempted-admin,Attempted Administrator Privilege Gain, high, admin, ,
++config classification: successful-admin,Successful Administrator Privilege Gain, high, admin, succeeded
++
++
++# NEW CLASSIFICATIONS
++config classification: rpc-portmap-decode,Decode of an RPC Query, medium, other, ,
++config classification: shellcode-detect,Executable code was detected, high, other, ,
++config classification: string-detect,A suspicious string was detected, low, other, ,
++config classification: suspicious-filename-detect,A suspicious filename was detected, medium, file, ,
++config classification: suspicious-login,An attempted login using a suspicious username was detected, medium, other, ,
++config classification: system-call-detect,A system call was detected, medium, other, ,
++config classification: tcp-connection,A TCP connection was detected, low, other, ,
++config classification: trojan-activity,A Network Trojan was detected, high, other, ,
++config classification: unusual-client-port-connection,A client was using an unusual port, medium, other, ,
++config classification: network-scan,Detection of a Network Scan, low, recon, ,
++config classification: denial-of-service,Detection of a Denial of Service Attack, medium, dos, ,
++config classification: non-standard-protocol,Detection of a non-standard protocol or event, medium, other, ,
++config classification: protocol-command-decode,Generic Protocol Command Decode, low, other, ,
++config classification: web-application-activity,access to a potentually vulnerable web application, medium, other, ,
++config classification: web-application-attack,Web Application Attack, high, other, ,
++config classification: misc-activity,Misc activity, low, other, ,
++config classification: misc-attack,Misc Attack, medium, other, ,
++config classification: icmp-event,Generic ICMP event, low, other, ,
++config classification: kickass-porn,SCORE! Get the lotion!, high, other, ,
++config classification: policy-violation,Potential Corporate Privacy Violation, high, other, ,
+diff -r -N -u snort-2.0.1/etc/snort.conf snort-2.0.1+prelude/etc/snort.conf
+--- snort-2.0.1/etc/snort.conf 2003-07-01 22:32:16.000000000 +0800
++++ snort-2.0.1+prelude/etc/snort.conf 2003-07-26 18:12:40.000000000 +0800
+@@ -440,6 +440,16 @@
+ #
+ # output log_tcpdump: tcpdump.log
+
++# alert_prelude: Reporting to Prelude Manager
++#
++# parameters:
++# async - enables asynchronous (multithreadedthreaded) reporting mode
++# classification_file - specifies loacation of classification.config
++# file from Prelude distribution
++#
++output alert_prelude: async, classification_file=prelude-classification.config
++
++
+ # database: log to a variety of databases
+ # ---------------------------------------
+ # See the README.database file for more information about configuring
+diff -r -N -u snort-2.0.1/rules/Makefile.in snort-2.0.1+prelude/rules/Makefile.in
+--- snort-2.0.1/rules/Makefile.in 2003-07-01 22:30:37.000000000 +0800
++++ snort-2.0.1+prelude/rules/Makefile.in 2003-07-26 18:14:26.000000000 +0800
+@@ -74,6 +74,7 @@
+ PACKAGE = @PACKAGE@
+ RANLIB = @RANLIB@
+ STRIP = @STRIP@
++UP = @UP@
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
+diff -r -N -u snort-2.0.1/src/Makefile.in snort-2.0.1+prelude/src/Makefile.in
+--- snort-2.0.1/src/Makefile.in 2003-07-01 22:28:49.000000000 +0800
++++ snort-2.0.1+prelude/src/Makefile.in 2003-07-26 18:14:26.000000000 +0800
+@@ -75,6 +75,7 @@
+ PACKAGE = @PACKAGE@
+ RANLIB = @RANLIB@
+ STRIP = @STRIP@
++UP = @UP@
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
+diff -r -N -u snort-2.0.1/src/detection-plugins/Makefile.in snort-2.0.1+prelude/src/detection-plugins/Makefile.in
+--- snort-2.0.1/src/detection-plugins/Makefile.in 2003-07-01 22:29:17.000000000 +0800
++++ snort-2.0.1+prelude/src/detection-plugins/Makefile.in 2003-07-26 18:14:26.000000000 +0800
+@@ -75,6 +75,7 @@
+ PACKAGE = @PACKAGE@
+ RANLIB = @RANLIB@
+ STRIP = @STRIP@
++UP = @UP@
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
+diff -r -N -u snort-2.0.1/src/output-plugins/Makefile.am snort-2.0.1+prelude/src/output-plugins/Makefile.am
+--- snort-2.0.1/src/output-plugins/Makefile.am 2003-05-20 02:08:04.000000000 +0800
++++ snort-2.0.1+prelude/src/output-plugins/Makefile.am 2003-07-26 18:13:48.000000000 +0800
+@@ -9,6 +9,6 @@
+ spo_alert_unixsock.h spo_csv.c spo_csv.h spo_database.c spo_database.h \
+ spo_log_null.c spo_log_null.h spo_log_tcpdump.c \
+ spo_log_tcpdump.h spo_unified.c spo_unified.h spo_log_ascii.c spo_log_ascii.h \
+-spo_alert_sf_socket.h spo_alert_sf_socket.c
++spo_alert_sf_socket.h spo_alert_sf_socket.c spo_alert_prelude.c spo_alert_prelude.h
+
+ INCLUDES = @INCLUDES@
+diff -r -N -u snort-2.0.1/src/output-plugins/Makefile.am.rej snort-2.0.1+prelude/src/output-plugins/Makefile.am.rej
+--- snort-2.0.1/src/output-plugins/Makefile.am.rej 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/src/output-plugins/Makefile.am.rej 2003-07-26 18:12:40.000000000 +0800
+@@ -0,0 +1,16 @@
++***************
++*** 8,13 ****
++ spo_alert_smb.h spo_alert_syslog.c spo_alert_syslog.h spo_alert_unixsock.c \
++ spo_alert_unixsock.h spo_csv.c spo_csv.h spo_database.c spo_database.h \
++ spo_log_null.c spo_log_null.h spo_log_tcpdump.c \
++- spo_log_tcpdump.h spo_unified.c spo_unified.h spo_log_ascii.c spo_log_ascii.h
++
++ INCLUDES = @INCLUDES@
++--- 8,14 ----
++ spo_alert_smb.h spo_alert_syslog.c spo_alert_syslog.h spo_alert_unixsock.c \
++ spo_alert_unixsock.h spo_csv.c spo_csv.h spo_database.c spo_database.h \
++ spo_log_null.c spo_log_null.h spo_log_tcpdump.c \
+++ spo_log_tcpdump.h spo_unified.c spo_unified.h spo_log_ascii.c spo_log_ascii.h \
+++ spo_alert_prelude.c spo_alert_prelude.h
++
++ INCLUDES = @INCLUDES@
+diff -r -N -u snort-2.0.1/src/output-plugins/Makefile.am~ snort-2.0.1+prelude/src/output-plugins/Makefile.am~
+--- snort-2.0.1/src/output-plugins/Makefile.am~ 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/src/output-plugins/Makefile.am~ 2003-05-20 02:08:04.000000000 +0800
+@@ -0,0 +1,14 @@
++## $Id
++AUTOMAKE_OPTIONS=foreign no-dependencies
++
++noinst_LIBRARIES = libspo.a
++
++libspo_a_SOURCES = spo_alert_fast.c spo_alert_fast.h \
++spo_alert_full.c spo_alert_full.h spo_alert_smb.c \
++spo_alert_smb.h spo_alert_syslog.c spo_alert_syslog.h spo_alert_unixsock.c \
++spo_alert_unixsock.h spo_csv.c spo_csv.h spo_database.c spo_database.h \
++spo_log_null.c spo_log_null.h spo_log_tcpdump.c \
++spo_log_tcpdump.h spo_unified.c spo_unified.h spo_log_ascii.c spo_log_ascii.h \
++spo_alert_sf_socket.h spo_alert_sf_socket.c
++
++INCLUDES = @INCLUDES@
+diff -r -N -u snort-2.0.1/src/output-plugins/Makefile.in snort-2.0.1+prelude/src/output-plugins/Makefile.in
+--- snort-2.0.1/src/output-plugins/Makefile.in 2003-07-01 22:29:13.000000000 +0800
++++ snort-2.0.1+prelude/src/output-plugins/Makefile.in 2003-07-26 18:14:27.000000000 +0800
+@@ -75,6 +75,7 @@
+ PACKAGE = @PACKAGE@
+ RANLIB = @RANLIB@
+ STRIP = @STRIP@
++UP = @UP@
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
+@@ -90,7 +91,7 @@
+ spo_alert_unixsock.h spo_csv.c spo_csv.h spo_database.c spo_database.h \
+ spo_log_null.c spo_log_null.h spo_log_tcpdump.c \
+ spo_log_tcpdump.h spo_unified.c spo_unified.h spo_log_ascii.c spo_log_ascii.h \
+-spo_alert_sf_socket.h spo_alert_sf_socket.c
++spo_alert_sf_socket.h spo_alert_sf_socket.c spo_alert_prelude.c spo_alert_prelude.h
+
+ subdir = src/output-plugins
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+@@ -105,7 +106,8 @@
+ spo_alert_unixsock.$(OBJEXT) spo_csv.$(OBJEXT) \
+ spo_database.$(OBJEXT) spo_log_null.$(OBJEXT) \
+ spo_log_tcpdump.$(OBJEXT) spo_unified.$(OBJEXT) \
+- spo_log_ascii.$(OBJEXT) spo_alert_sf_socket.$(OBJEXT)
++ spo_log_ascii.$(OBJEXT) spo_alert_sf_socket.$(OBJEXT) \
++ spo_alert_prelude.$(OBJEXT)
+ libspo_a_OBJECTS = $(am_libspo_a_OBJECTS)
+
+ DEFS = @DEFS@
+diff -r -N -u snort-2.0.1/src/output-plugins/spo_alert_prelude.c snort-2.0.1+prelude/src/output-plugins/spo_alert_prelude.c
+--- snort-2.0.1/src/output-plugins/spo_alert_prelude.c 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/src/output-plugins/spo_alert_prelude.c 2003-07-26 18:12:40.000000000 +0800
+@@ -0,0 +1,864 @@
++/*****
++*
++* Copyright (C) 2002,2003 Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl>
++* Portions copyright (C) 2002 Yoann Vandoorselaere <yoann@prelude-ids.org>
++* All rights reserved
++*
++* This code has been partially inspired by other Snort 1.8.x output plugins.
++*
++* This program is free software; you can redistribute it and/or modify
++* it under the terms of the GNU General Public License as published by
++* the Free Software Foundation; either version 2, or (at your option)
++* any later version.
++*
++* This program is distributed in the hope that it will be useful,
++* but WITHOUT ANY WARRANTY; without even the implied warranty of
++* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++* GNU General Public License for more details.
++*
++* You should have received a copy of the GNU General Public License
++* along with this program; see the file COPYING. If not, write to
++* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
++*
++*****/
++
++/*
++ * The purpose of this module is to enable snort reporting to Prelude IDS Manager.
++ *
++ * Version: 0.2.2
++ *
++ * Status: EXPERIMENTAL
++ *
++ * Configuration parameters:
++ * - async enables asynchronous (multithreaded) reporting
++ * - classification_file must point to classification.config from Prelude
++ * distribution (_not_ original snort classification.config)
++ *
++ * Preprocessor directives:
++ * - defining WITH_PRELUDE enables the code
++ * - defining PRELUDE_DEBUG enables debug messages
++ * - defining DEBUG automatically defines PRELUDE_DEBUG
++ *
++ * TODO
++ * - add support for more alert fields and types of alerts
++ * - speed it up
++ */
++
++/* configuration variables, adjust as needed */
++
++/*#define PRELUDE_DEBUG*/
++
++
++/* start of actual code */
++
++#ifdef WITH_PRELUDE
++
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif
++
++#include <stdio.h>
++#include <sys/types.h>
++#include <sys/socket.h>
++#include <netinet/in.h>
++#include <arpa/inet.h>
++#include <unistd.h>
++#include <sys/utsname.h>
++
++#include "decode.h"
++#include "event.h"
++#include "rules.h"
++#include "plugbase.h"
++#include "debug.h"
++#include "parser.h"
++#include "mstring.h"
++#include "util.h"
++
++#include "snort.h"
++
++/* One macro in snort.h can ruin your day when applied to idmef-tree.h */
++#ifdef interface
++#undef interface
++#endif
++
++#include <libprelude/list.h>
++#include <libprelude/idmef-tree.h>
++#include <libprelude/idmef-tree-func.h>
++#include <libprelude/prelude-io.h>
++#include <libprelude/prelude-message.h>
++#include <libprelude/prelude-message-id.h>
++#include <libprelude/prelude-message-buffered.h>
++#include <libprelude/idmef-msg-send.h>
++#include <libprelude/idmef-message-id.h>
++#include <libprelude/sensor.h>
++#include <libprelude/prelude-list.h>
++#include <libprelude/prelude-async.h>
++
++
++typedef struct _PreludeData {
++ int async_mode;
++ char *classification_file;
++} PreludeData;
++
++void AlertPreludeInit(u_char *);
++PreludeData *ParsePreludeArgs(char *);
++void AlertPrelude(Packet *, char *, void *, Event *);
++
++void AlertPreludeCleanExitFunc(int, void *);
++void AlertPreludeRestartFunc(int, void *);
++
++/* private functions */
++int ParsePreludeClassificationFile(char *);
++void SendHeartbeat(void *data);
++
++
++
++
++
++typedef struct _PreludeImpact {
++ struct list_head list;
++ char *short_descr;
++ idmef_impact_severity_t severity;
++ idmef_impact_completion_t completion;
++ idmef_impact_type_t type;
++ char *description;
++} PreludeImpact;
++
++struct list_head impact_list;
++
++
++#ifdef DEBUG
++#define PRELUDE_DEBUG
++#endif
++
++extern OptTreeNode *otn_tmp;
++
++struct utsname *uname_data = NULL;
++
++char hostname[256];
++idmef_heartbeat_t heartbeat;
++prelude_msgbuf_t *msgbuf, *hb_msgbuf;
++
++#define MAX_CLASSIFICATIONS 16
++
++void AlertPreludeSetup() {
++ RegisterOutputPlugin("alert_prelude", NT_OUTPUT_ALERT, AlertPreludeInit);
++
++#ifdef PRELUDE_DEBUG
++ printf("SetupAlertPrelude()\n");
++#endif
++}
++
++
++void AlertPreludeInit(u_char *args) {
++ PreludeData *data;
++ int ret;
++
++ data = ParsePreludeArgs(args);
++ if (!data)
++ return ;
++
++
++#ifdef PRELUDE_DEBUG
++ printf("Setting up libprelude\n");
++#endif
++
++ ret = prelude_sensor_init("snort", NULL, 0, NULL);
++
++ if (ret < 0) {
++ fprintf(stderr, "couldn't initialize the Prelude library\n");
++ return;
++ }
++
++ if (data->async_mode) {
++ ret = prelude_async_init();
++
++ if (ret < 0) {
++ fprintf(stderr, "couldn't initialize Prelude async subsystem\n");
++ return ;
++ }
++ }
++
++
++ uname_data = calloc(1, sizeof(struct utsname));
++ if (!uname_data) {
++ printf("out of memory\n");
++ return ;
++ }
++
++ ret = uname(uname_data);
++ if (ret < 0) {
++ fprintf(stderr, "uname() failed\n");
++ free(uname_data);
++ uname_data = NULL;
++ }
++
++#ifdef PRELUDE_DEBUG
++ if (uname_data)
++ printf("%s %s rel. %s ver. %s on %s\n", uname_data->nodename,
++ uname_data->sysname, uname_data->release,
++ uname_data->version, uname_data->machine);
++#endif
++
++ gethostname(hostname, sizeof(hostname));
++
++ /* Prepare analyzer information for use */
++
++ /* analyzer information */
++ idmef_string_set_constant(&heartbeat.analyzer.model, "Snort");
++ idmef_string_set_constant(&heartbeat.analyzer.class, "Network Intrusion Detection System");
++ idmef_string_set_constant(&heartbeat.analyzer.version, VERSION);
++
++ /* analyzer address */
++ idmef_analyzer_node_new(&heartbeat.analyzer);
++ idmef_string_set(&heartbeat.analyzer.node->name, hostname);
++
++ /* analyzer type */
++ if (uname_data) {
++ idmef_string_set(&heartbeat.analyzer.ostype, uname_data->sysname);
++ idmef_string_set(&heartbeat.analyzer.osversion, uname_data->release);
++ }
++
++ INIT_LIST_HEAD(&heartbeat.additional_data_list);
++
++
++#ifdef PRELUDE_DEBUG
++ printf("loading classification file\n");
++#endif
++ ret = ParsePreludeClassificationFile(data->classification_file);
++ if (ret < 0) {
++ fprintf(stderr, "error loading file %s\n", data->classification_file);
++ return ;
++ }
++
++ if (data->async_mode) {
++ msgbuf = prelude_msgbuf_new(1); /* 0 = sync mode, 1 = async mode */
++ hb_msgbuf = prelude_msgbuf_new(1);
++ } else {
++ msgbuf = prelude_msgbuf_new(0); /* 0 = sync mode, 1 = async mode */
++ hb_msgbuf = prelude_msgbuf_new(0);
++ }
++
++ if (!msgbuf) {
++ printf("can't allocate message buffer\n");
++ return ;
++ }
++
++ if (!hb_msgbuf) {
++ printf("can't allocate heartbeat message buffer\n");
++ return ;
++ }
++
++#ifdef PRELUDE_DEBUG
++ printf("Registering callbacks\n");
++#endif
++ prelude_heartbeat_register_cb(&SendHeartbeat, NULL);
++
++ AddFuncToOutputList(AlertPrelude, NT_OUTPUT_ALERT, data);
++ AddFuncToCleanExitList(AlertPreludeCleanExitFunc, data);
++ AddFuncToRestartList(AlertPreludeRestartFunc, data);
++
++}
++
++char *ArgumentValue(char *arg, char *argname)
++{
++ char *val;
++
++ if (strncmp(arg, argname, strlen(argname)) == 0) {
++ val = strchr(arg, '=');
++ if (val)
++ return val+1;
++ else
++ return arg+strlen(arg); /* Return pointer to trailing \0 */
++ } else
++ return NULL;
++}
++
++PreludeData *ParsePreludeArgs(char *args) {
++ PreludeData *data;
++ char **args_table;
++ char *val;
++ int i,tokens;
++
++ data = calloc(1, sizeof(PreludeData));
++ if (!data) {
++ fprintf(stderr, "out of memory\n");
++ return NULL;
++ }
++
++ args_table = mSplit(args, ", ", 3, &tokens, '\\');
++
++ for (i=0;i<tokens;i++) {
++ /* parse the arguments */
++
++ /* async mode */
++ if (ArgumentValue(args_table[i], "async"))
++ data->async_mode = 1;
++
++ /* classification file */
++ val = ArgumentValue(args_table[i], "classification_file");
++ if ((!val) || (*val == '\0'))
++ data->classification_file = NULL;
++ else
++ data->classification_file = val;
++ }
++
++#ifdef PRELUDE_DEBUG
++ if (data->async_mode)
++ printf("asynchronous reporting enabled\n");
++
++ if (data->classification_file)
++ printf("classification file: %s\n", data->classification_file);
++#endif
++
++ return data;
++}
++
++void SendHeartbeat(void *data)
++{
++ struct timeval tv;
++
++ gettimeofday(&tv, NULL);
++ heartbeat.create_time.sec = tv.tv_sec;
++ heartbeat.create_time.usec = tv.tv_usec;
++
++ /*
++ * we could use additional data to send stats.
++ */
++ prelude_msgbuf_set_header(hb_msgbuf, PRELUDE_MSG_IDMEF, 0);
++ idmef_send_heartbeat(hb_msgbuf, &heartbeat);
++ prelude_msgbuf_mark_end(hb_msgbuf);
++}
++
++
++void RemoveSpaces(char *s)
++{
++ int pos, start, end, len;
++
++ if (s == NULL) return ;
++
++ pos = 0;
++ start = 0;
++ end = 0;
++ len = strlen(s);
++ while (s[pos++] == ' ') start++;
++
++ pos = len-1;
++ while ((pos>=0) && (s[pos--] == ' ')) end++;
++ strncpy(s, s+start, len-end);
++ s[len-end]='\0';
++}
++
++int ParsePreludeClassificationFile(char *filename)
++{
++ FILE *f;
++ char buf[1024];
++ int line;
++
++ char shortname[128], desc[128], severity[128], type[128], completion[128];
++
++ PreludeImpact *p;
++
++ int ret;
++
++ f = fopen(filename, "r");
++ if (!f) {
++ fprintf(stderr, "could not open %s\n", filename);
++ return -1;
++ }
++
++ INIT_LIST_HEAD(&impact_list);
++
++ line = 0;
++ do {
++ line++;
++ if (!fgets(buf, 1024, f)) {
++ if (feof(f))
++ return 0;
++ else {
++ fprintf(stderr, "%s: read error on line %d\n", filename, line);
++ return -1;
++ }
++ }
++
++ if ((buf[0] == '#') ||
++ (buf[0] == '\n') ||
++ ((buf[0] == '\r') && (buf[1] == '\n')))
++ continue;
++
++ ret = sscanf(buf, "%*[^:]: %128[^,],%128[^,],%128[^,],%128[^,],%128[^,]", shortname, desc, severity, type, completion);
++ if (ret != 5) {
++ fprintf(stderr, "%s: line %d: data format error\n", filename, line);
++ continue;
++ }
++
++ RemoveSpaces(shortname);
++ RemoveSpaces(desc);
++ RemoveSpaces(severity);
++ RemoveSpaces(type);
++ RemoveSpaces(completion);
++
++ p = calloc(1, sizeof(PreludeImpact));
++ if (p == NULL) {
++ fprintf(stderr, "out of memory");
++ return -1;
++ }
++
++ p->short_descr = strdup(shortname);
++ p->description = strdup(desc);
++
++ /* determine impact */
++ if (strncasecmp(severity, "high", 4) == 0)
++ p->severity = impact_high;
++ else if (strncasecmp(severity, "medium", 5) == 0)
++ p->severity = impact_medium;
++ else if (strncasecmp(severity, "low", 3) == 0)
++ p->severity = impact_low;
++
++ /* determine type */
++ if (strncasecmp(type, "other", 5) == 0)
++ p->type = other;
++ else if (strncasecmp(type, "admin", 5) == 0)
++ p->type = admin;
++ else if (strncasecmp(type, "dos", 3) == 0)
++ p->type = dos;
++ else if (strncasecmp(type, "file", 4) == 0)
++ p->type = file;
++ else if (strncasecmp(type, "recon", 5) == 0)
++ p->type = recon;
++ else if (strncasecmp(type, "user", 4) == 0)
++ p->type = user;
++
++ /* determine completion */
++ if (strncasecmp(completion, "succeeded", 9) == 0)
++ p->completion = succeeded;
++ else if (strncasecmp(completion, "failed", 5) == 0)
++ p->completion = failed;
++
++ list_add_tail(&p->list, &impact_list);
++
++ } while(1);
++
++ fclose(f);
++
++ return 0;
++}
++
++/*
++ * Yoann Vandoorselaere's code stolen from prelude-manager/plugin-utils.c
++ * and modifed a little.
++ */
++
++/*
++ * prelude_string_to_hex:
++ * @input: Pointer on the input buffer.
++ * @len: Length of the data contained in the input buffer.
++ *
++ * This function will return a formatted hexadecimal dump.
++ *
++ * Returns: Pointer on an allocated buffer containing the hexadecimal dump,
++ * or NULL if an error occured.
++ */
++char *prelude_string_to_hex(const unsigned char *input, uint32_t len, uint32_t *outlen)
++{
++ int i, totlen;
++ unsigned char c;
++ unsigned int round;
++ char *line, *ret, *text;
++ const int text_offset = 51;
++ const char hextbl[] = { '0', '1', '2', '3', '4', '5', '6', '7',
++ '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
++
++ round = (len / 16) + 1;
++ totlen = (round * (text_offset + 16 + 1)) + 1;
++
++ ret = line = malloc(totlen);
++ if ( ! line )
++ return NULL;
++
++ text = line + text_offset;
++
++ for ( i = 0; i < len; i++ ) {
++
++ c = *input++;
++ *line++ = hextbl[c >> 4];
++ *line++ = hextbl[c & 0xf];
++ *line++ = ' ';
++ *text++ = isprint(c) ? c : '.';
++
++ if ( (i + 1) % 16 == 0 ) {
++ *text++ = '\n';
++ line = text;
++
++ if ( i + 1 < len )
++ text = text + text_offset;
++ }
++
++ else if ( (i + 1) % 4 == 0 )
++ *line++ = ' ';
++ }
++
++ if ( i % 16 != 0 ) {
++ /*
++ * fill remaining unwritten data with white space.
++ */
++ while ( i++ % 16 != 0 ) {
++
++ *text++ = ' ';
++ *line++ = ' ';
++ *line++ = ' ';
++ *line++ = ' ';
++
++ if ( ! (i % 16 == 0) && i % 4 == 0 )
++ *line++ = ' ';
++ }
++
++ *text++ = '\n';
++ }
++
++ *text++ = '\0';
++
++ *outlen = (uint32_t) (text - ret);
++
++ return ret;
++}
++
++
++void AlertPrelude(Packet *p, char *msg, void *arg, Event *event) {
++ /* configuration */
++ PreludeData *data = (PreludeData *) arg;
++
++ /* alert structure and buffer */
++ idmef_message_t *idmef;
++ idmef_alert_t *alert;
++
++ /* assessment data */
++ struct list_head *tmp;
++ PreludeImpact *impact;
++
++ /* classification data */
++ char *class_name = NULL;
++ idmef_classification_t *classification;
++ ReferenceNode *rn;
++ char class_buf[1024];
++ char *class_url[MAX_CLASSIFICATIONS];
++ int class_no = 0;
++
++ /* source data */
++ idmef_source_t *source;
++ idmef_address_t *saddr;
++ char *dst_ip = NULL;
++ idmef_service_t *sservice;
++
++ /* target data */
++ idmef_target_t *target;
++ idmef_address_t *taddr;
++ char *src_ip = NULL;
++ idmef_service_t *tservice;
++
++ /* additional data */
++ idmef_additional_data_t *ad;
++ char *payload_dump = NULL;
++ int payload_len;
++ char databuf[1024];
++ int data_len;
++ char *data_out1 = NULL;
++ char *data_out2 = NULL;
++ char *data_out3 = NULL;
++ char *opt_name;
++ char *opt_value;
++ int opt, opt_cnt;
++
++ /* other stuff */
++ int i;
++
++ for ( i = 0; i < MAX_CLASSIFICATIONS; i++ )
++ class_url[i] = NULL;
++
++ /* create IDMEF alert message */
++ idmef = idmef_message_new();
++ if (!idmef) goto error ;
++
++ idmef_alert_new(idmef);
++ alert = idmef->message.alert;
++
++ /* XXX: Well, some code duplication here and in heartbeat structure... */
++ /* analyzer information */
++ idmef_string_set_constant(&alert->analyzer.model, "Snort");
++ idmef_string_set_constant(&alert->analyzer.class, "Network Intrusion Detection System");
++ idmef_string_set_constant(&alert->analyzer.version, VERSION);
++
++ /* analyzer address */
++ idmef_analyzer_node_new(&alert->analyzer);
++ idmef_string_set(&alert->analyzer.node->name, hostname);
++
++ /* analyzer type */
++ if (uname_data) {
++ idmef_string_set(&alert->analyzer.ostype, uname_data->sysname);
++ idmef_string_set(&alert->analyzer.osversion, uname_data->release);
++ }
++
++
++ /*
++ * classification: since otn_tmp is not always available,
++ * we always write value of msg there
++ */
++ class_name = strdup(msg);
++ classification = idmef_alert_classification_new(alert);
++ idmef_string_set(&classification->name, class_name);
++
++ if (otn_tmp) {
++
++ /* assessment */
++ list_for_each(tmp, &impact_list) {
++ impact = list_entry(tmp, PreludeImpact, list);
++ if (strcmp(impact->short_descr, otn_tmp->sigInfo.classType->name) == 0) {
++ idmef_alert_assessment_new(alert);
++ idmef_assessment_impact_new(alert->assessment);
++
++ alert->assessment->impact->severity = impact->severity;
++ alert->assessment->impact->completion = impact->completion;
++ alert->assessment->impact->type = impact->type;
++ idmef_string_set(&alert->assessment->impact->description, impact->description);
++ break;
++ }
++ }
++
++
++ /* classification */
++ rn = otn_tmp->sigInfo.refs;
++ while ( rn ) {
++ classification = idmef_alert_classification_new(alert);
++
++ if (strncasecmp(rn->system->name, "bugtraq", 7) == 0)
++ classification->origin = bugtraqid;
++ else if (strncasecmp(rn->system->name, "cve", 3) == 0)
++ classification->origin = cve;
++ else
++ classification->origin = vendor_specific;
++
++ idmef_string_set(&classification->name, otn_tmp->sigInfo.message);
++
++ if ( ( rn->system->url ) && ( class_no < MAX_CLASSIFICATIONS ) ) {
++ class_buf[0] = '\0';
++ class_buf[sizeof(class_buf)-1] = '\0';
++ strncpy(class_buf, rn->system->url, sizeof(class_buf)-2);
++ strncat(class_buf, rn->id, sizeof(class_buf)-2);
++ class_url[class_no] = strdup(class_buf);
++ idmef_string_set(&classification->url, class_url[class_no]);
++ class_no++;
++ }
++
++ rn = rn->next;
++ }
++
++ }
++
++ if (p) {
++ /* source information */
++ source = idmef_alert_source_new(alert);
++ if (!source) goto error;
++
++ idmef_source_node_new(source);
++ saddr = idmef_node_address_new(source->node);
++ if (!saddr) goto error;
++
++ saddr->category = ipv4_addr;
++ src_ip = strdup(inet_ntoa(p->iph->ip_src));
++ idmef_string_set(&saddr->address, src_ip);
++
++ /* target information */
++ target = idmef_alert_target_new(alert);
++ if (!target) goto error;
++
++ idmef_target_node_new(target);
++ taddr = idmef_node_address_new(target->node);
++ if (!taddr) goto error;
++
++ taddr->category = ipv4_addr;
++ dst_ip = strdup(inet_ntoa(p->iph->ip_dst));
++ idmef_string_set(&taddr->address, dst_ip);
++
++
++ /* port information */
++ if ((p->iph->ip_proto == IPPROTO_TCP) ||
++ (p->iph->ip_proto == IPPROTO_UDP)) {
++ sservice = idmef_source_service_new(source);
++ if (!sservice) goto error;
++ sservice->port = p->sp;
++
++ tservice = idmef_target_service_new(target);
++ if (!tservice) goto error;
++ tservice->port = p->dp;
++ }
++
++ /* Additional data */
++
++ /* ensure that buffer will always be NULL-terminated */
++ databuf[sizeof(databuf)-1] = '\0';
++
++ if ( p->dsize ) {
++
++ payload_dump = prelude_string_to_hex(p->data, p->dsize, &payload_len);
++ if ( ! payload_dump ) goto error;
++
++ ad = idmef_alert_additional_data_new(alert);
++ idmef_additional_data_set_data(ad, string, payload_dump, payload_len);
++ idmef_string_set_constant(&ad->meaning, "Payload Hexadecimal Dump");
++
++ }
++
++
++ /* IP header */
++
++
++
++ /* IP options */
++
++ if ( p->ip_option_count ) {
++ opt_cnt = p->ip_lastopt_bad ? p->ip_option_count-1 : p->ip_option_count;
++
++ if ( opt_cnt ) {
++
++ databuf[0] = '\0';
++
++ ad = idmef_alert_additional_data_new(alert);
++ idmef_string_set_constant(&ad->meaning, "IP options");
++
++ for ( opt = 0; opt < opt_cnt; opt++ ) {
++ if ( opt )
++ strncat(databuf, ",", sizeof(databuf)-2);
++ opt_name = IPOptionCode(&p->ip_options[opt]);
++ opt_value = IPOptionValue(&p->ip_options[opt]);
++ strncat(databuf, opt_name, sizeof(databuf)-2);
++ if ( *opt_value ) {
++ strncat(databuf, "=", sizeof(databuf)-2);
++ strncat(databuf, opt_value, sizeof(databuf)-2);
++ }
++ free(opt_name);
++ free(opt_value);
++ }
++
++ data_len = strlen(databuf)+1; /* include terminating \0 */
++ data_out1 = malloc(data_len);
++ memcpy(data_out1, databuf, data_len);
++ idmef_additional_data_set_data(ad, string,
++ data_out1, data_len);
++
++
++ }
++
++
++ }
++
++
++ /* TCP header */
++
++ if ( p->tcph ) {
++
++ databuf[0] = '\0';
++
++ ad = idmef_alert_additional_data_new(alert);
++ idmef_string_set_constant(&ad->meaning, "TCP header");
++
++ snprintf(databuf, sizeof(databuf)-2,
++ "%d -> %d [%s%s%s%s%s%s%s%s%s%sseq=%u,ack=%u,win=%u]",
++ p->sp, p->dp,
++ p->tcph->th_flags ? "flags=" : "",
++ p->tcph->th_flags & TH_FIN ? "FIN " : "",
++ p->tcph->th_flags & TH_SYN ? "SYN " : "",
++ p->tcph->th_flags & TH_RST ? "RST " : "",
++ p->tcph->th_flags & TH_PUSH ? "PUSH " : "",
++ p->tcph->th_flags & TH_ACK ? "ACK " : "",
++ p->tcph->th_flags & TH_URG ? "URG " : "",
++ p->tcph->th_flags & TH_RES1 ? "RES1 " : "",
++ p->tcph->th_flags & TH_RES2 ? "RES2 " : "",
++ p->tcph->th_flags ? "," : "",
++ p->tcph->th_seq, p->tcph->th_ack, p->tcph->th_win);
++
++ data_len = strlen(databuf)+1; /* include terminating \0 */
++ data_out2 = malloc(data_len);
++ memcpy(data_out2, databuf, data_len);
++ idmef_additional_data_set_data(ad, string,
++ data_out2, data_len);
++
++ /* TCP options */
++
++ databuf[0] = '\0';
++
++ if ( p->tcp_option_count ) {
++ opt_cnt = p->tcp_lastopt_bad ? p->tcp_option_count-1 : p->tcp_option_count;
++
++ if ( opt_cnt ) {
++ ad = idmef_alert_additional_data_new(alert);
++ idmef_string_set_constant(&ad->meaning, "TCP options");
++
++
++ for ( opt = 0; opt < opt_cnt; opt++ ) {
++ opt_name = TCPOptionCode(&p->tcp_options[opt]);
++ opt_value = TCPOptionValue(&p->tcp_options[opt]);
++ strncat(databuf, opt_name, sizeof(databuf)-2);
++ if ( *opt_value ) {
++ strncat(databuf, " ", sizeof(databuf)-2);
++ strncat(databuf, opt_value, sizeof(databuf)-2);
++ }
++ strncat(databuf, " ", sizeof(databuf)-2);
++ free(opt_name);
++ free(opt_value);
++ }
++
++ data_len = strlen(databuf)+1; /* include terminating \0 */
++ data_out3 = malloc(data_len);
++ memcpy(data_out3, databuf, data_len);
++ idmef_additional_data_set_data(ad, string,
++ data_out3, data_len);
++
++ }
++
++ }
++
++ }
++
++ }
++
++
++ /* send the message */
++
++ idmef_msg_send(msgbuf, idmef, PRELUDE_MSG_PRIORITY_HIGH);
++
++
++error:
++ idmef_message_free(idmef);
++ if ( class_name ) free(class_name);
++ if ( src_ip ) free(src_ip);
++ if ( dst_ip ) free(dst_ip);
++ if ( payload_dump ) free(payload_dump);
++ if ( data_out1 ) free(data_out1);
++ if ( data_out2 ) free(data_out2);
++ if ( data_out3 ) free(data_out3);
++ for ( i = 0; i < MAX_CLASSIFICATIONS; i++ )
++ if (class_url[i]) free(class_url[i]);
++
++ return ;
++
++}
++
++void AlertPreludeCleanExitFunc(int signal, void *arg) {
++ struct list_head *tmp;
++ PreludeImpact *impact;
++
++ list_for_each(tmp, &impact_list) {
++ impact = list_entry(tmp, PreludeImpact, list);
++ free(impact->short_descr);
++ list_del(&impact->list);
++ }
++
++ prelude_msgbuf_close(msgbuf);
++ prelude_msgbuf_close(hb_msgbuf);
++}
++
++void AlertPreludeRestartFunc(int signal, void *arg) {
++ /* do nothing */
++}
++
++#endif /* WITH_PRELUDE */
+diff -r -N -u snort-2.0.1/src/output-plugins/spo_alert_prelude.h snort-2.0.1+prelude/src/output-plugins/spo_alert_prelude.h
+--- snort-2.0.1/src/output-plugins/spo_alert_prelude.h 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/src/output-plugins/spo_alert_prelude.h 2003-07-26 18:12:40.000000000 +0800
+@@ -0,0 +1,29 @@
++/*****
++*
++* Copyright (C) 2002,2003 Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl>
++* All Rights Reserved
++*
++* This program is free software; you can redistribute it and/or modify
++* it under the terms of the GNU General Public License as published by
++* the Free Software Foundation; either version 2, or (at your option)
++* any later version.
++*
++* This program is distributed in the hope that it will be useful,
++* but WITHOUT ANY WARRANTY; without even the implied warranty of
++* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++* GNU General Public License for more details.
++*
++* You should have received a copy of the GNU General Public License
++* along with this program; see the file COPYING. If not, write to
++* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
++*
++*****/
++
++#include "snort.h"
++
++#ifndef __SPO_ALERT_PRELUDE_H__
++#define __SPO_ALERT_PRELUDE_H__
++
++void AlertPreludeSetup();
++
++#endif /* __SPO_ALERT_PRELUDE_H__ */
+diff -r -N -u snort-2.0.1/src/parser/Makefile.in snort-2.0.1+prelude/src/parser/Makefile.in
+--- snort-2.0.1/src/parser/Makefile.in 2003-07-01 22:29:28.000000000 +0800
++++ snort-2.0.1+prelude/src/parser/Makefile.in 2003-07-26 18:14:27.000000000 +0800
+@@ -75,6 +75,7 @@
+ PACKAGE = @PACKAGE@
+ RANLIB = @RANLIB@
+ STRIP = @STRIP@
++UP = @UP@
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
+diff -r -N -u snort-2.0.1/src/plugbase.c snort-2.0.1+prelude/src/plugbase.c
+--- snort-2.0.1/src/plugbase.c 2003-05-20 13:15:53.000000000 +0800
++++ snort-2.0.1+prelude/src/plugbase.c 2003-07-26 18:12:40.000000000 +0800
+@@ -103,6 +103,9 @@
+ #include "output-plugins/spo_unified.h"
+ #include "output-plugins/spo_log_null.h"
+ #include "output-plugins/spo_log_ascii.h"
++#ifdef WITH_PRELUDE
++#include "output-plugins/spo_alert_prelude.h"
++#endif
+
+ PluginSignalFuncNode *PluginCleanExitList;
+ PluginSignalFuncNode *PluginRestartList;
+@@ -564,6 +567,9 @@
+ /* Win32 doesn't support AF_UNIX sockets */
+ AlertSFSocket_Setup();
+ #endif
++#ifdef WITH_PRELUDE
++ AlertPreludeSetup();
++#endif
+ }
+
+ int ActivateOutputPlugin(char *plugin_name, char *plugin_options)
+diff -r -N -u snort-2.0.1/src/plugbase.c~ snort-2.0.1+prelude/src/plugbase.c~
+--- snort-2.0.1/src/plugbase.c~ 1970-01-01 07:30:00.000000000 +0730
++++ snort-2.0.1+prelude/src/plugbase.c~ 2003-05-20 13:15:53.000000000 +0800
+@@ -0,0 +1,1765 @@
++/* $Id: snort-2.0.1+prelude.patch,v 1.1 2003/08/09 20:15:16 solar Exp $ */
++/*
++** Copyright (C) 1998-2002 Martin Roesch <roesch@sourcefire.com>
++**
++** This program is free software; you can redistribute it and/or modify
++** it under the terms of the GNU General Public License as published by
++** the Free Software Foundation; either version 2 of the License, or
++** (at your option) any later version.
++**
++** This program is distributed in the hope that it will be useful,
++** but WITHOUT ANY WARRANTY; without even the implied warranty of
++** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++** GNU General Public License for more details.
++**
++** You should have received a copy of the GNU General Public License
++** along with this program; if not, write to the Free Software
++** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
++*/
++
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif
++
++#include <sys/types.h>
++#include <unistd.h>
++#include <stdlib.h>
++#include <string.h>
++
++#ifdef HAVE_STRINGS_H
++#include <strings.h>
++#endif
++
++#ifndef WIN32
++#include <sys/socket.h>
++#include <netinet/in.h>
++#include <arpa/inet.h>
++#endif /* !WIN32 */
++#include <time.h>
++#include <errno.h>
++
++
++#include "plugbase.h"
++#include "spo_plugbase.h"
++#include "snort.h"
++#include "debug.h"
++#include "util.h"
++#include "log.h"
++#include "detect.h"
++
++/* built-in preprocessors */
++#include "preprocessors/spp_http_decode.h"
++#include "preprocessors/spp_portscan.h"
++#include "preprocessors/spp_rpc_decode.h"
++#include "preprocessors/spp_bo.h"
++#include "preprocessors/spp_telnet_negotiation.h"
++#include "preprocessors/spp_stream4.h"
++#include "preprocessors/spp_frag2.h"
++#include "preprocessors/spp_arpspoof.h"
++#include "preprocessors/spp_conversation.h"
++#include "preprocessors/spp_portscan2.h"
++#include "preprocessors/spp_httpflow.h"
++#include "preprocessors/spp_perfmonitor.h"
++
++/* built-in detection plugins */
++#include "detection-plugins/sp_pattern_match.h"
++#include "detection-plugins/sp_tcp_flag_check.h"
++#include "detection-plugins/sp_icmp_type_check.h"
++#include "detection-plugins/sp_icmp_code_check.h"
++#include "detection-plugins/sp_ttl_check.h"
++#include "detection-plugins/sp_ip_id_check.h"
++#include "detection-plugins/sp_tcp_ack_check.h"
++#include "detection-plugins/sp_tcp_seq_check.h"
++#include "detection-plugins/sp_dsize_check.h"
++#include "detection-plugins/sp_ipoption_check.h"
++#include "detection-plugins/sp_rpc_check.h"
++#include "detection-plugins/sp_icmp_id_check.h"
++#include "detection-plugins/sp_icmp_seq_check.h"
++#include "detection-plugins/sp_session.h"
++#include "detection-plugins/sp_ip_tos_check.h"
++#include "detection-plugins/sp_ip_fragbits.h"
++#include "detection-plugins/sp_tcp_win_check.h"
++#include "detection-plugins/sp_ip_same_check.h"
++#include "detection-plugins/sp_ip_proto.h"
++#include "detection-plugins/sp_ip_same_check.h"
++#include "detection-plugins/sp_clientserver.h"
++#include "detection-plugins/sp_byte_check.h"
++#include "detection-plugins/sp_byte_jump.h"
++#ifdef ENABLE_RESPONSE
++#include "detection-plugins/sp_react.h"
++#include "detection-plugins/sp_respond.h"
++#endif
++#include "output-plugins/spo_alert_sf_socket.h"
++
++/* built-in output plugins */
++#include "output-plugins/spo_alert_syslog.h"
++#include "output-plugins/spo_log_tcpdump.h"
++#include "output-plugins/spo_database.h"
++#include "output-plugins/spo_alert_fast.h"
++#include "output-plugins/spo_alert_full.h"
++#include "output-plugins/spo_alert_smb.h"
++#include "output-plugins/spo_alert_unixsock.h"
++#include "output-plugins/spo_csv.h"
++#include "output-plugins/spo_unified.h"
++#include "output-plugins/spo_log_null.h"
++#include "output-plugins/spo_log_ascii.h"
++
++PluginSignalFuncNode *PluginCleanExitList;
++PluginSignalFuncNode *PluginRestartList;
++
++extern int file_line;
++extern char *file_name;
++
++
++
++
++/**************************** Detection Plugin API ****************************/
++KeywordXlateList *KeywordList;
++
++void InitPlugIns()
++{
++ if(!pv.quiet_flag)
++ {
++ printf("Initializing Plug-ins!\n");
++ }
++ SetupPatternMatch();
++ SetupTCPFlagCheck();
++ SetupIcmpTypeCheck();
++ SetupIcmpCodeCheck();
++ SetupTtlCheck();
++ SetupIpIdCheck();
++ SetupTcpAckCheck();
++ SetupTcpSeqCheck();
++ SetupDsizeCheck();
++ SetupIpOptionCheck();
++ SetupRpcCheck();
++ SetupIcmpIdCheck();
++ SetupIcmpSeqCheck();
++ SetupSession();
++ SetupIpTosCheck();
++ SetupFragBits();
++ SetupFragOffset();
++ SetupTcpWinCheck();
++ SetupIpProto();
++ SetupIpSameCheck();
++ SetupClientServer();
++ SetupByteTest();
++ SetupByteJump();
++#ifdef ENABLE_RESPONSE
++ SetupReact();
++ SetupRespond();
++#endif
++}
++
++/****************************************************************************
++ *
++ * Function: RegisterPlugin(char *, void (*func)())
++ *
++ * Purpose: Associates a rule option keyword with an option setup/linking
++ * function.
++ *
++ * Arguments: keyword => The option keyword to associate with the option
++ * handler
++ * *func => function pointer to the handler
++ *
++ * Returns: void function
++ *
++ ***************************************************************************/
++void RegisterPlugin(char *keyword, void (*func) (char *, OptTreeNode *, int))
++{
++ KeywordXlateList *idx;
++
++ DEBUG_WRAP(DebugMessage(DEBUG_PLUGIN, "Registering keyword:func => %s:%p\n", keyword,
++ func););
++
++ idx = KeywordList;
++
++ if(idx == NULL)
++ {
++ KeywordList = (KeywordXlateList *) calloc(sizeof(KeywordXlateList),
++ sizeof(char));
++
++ KeywordList->entry.keyword = (char *) calloc(strlen(keyword) + 1,
++ sizeof(char));
++ strncpy(KeywordList->entry.keyword, keyword, strlen(keyword)+1);
++ KeywordList->entry.func = func;
++ }
++ else
++ {
++ /* go to the end of the list */
++ while(idx->next != NULL)
++ {
++ if(!strcasecmp(idx->entry.keyword, keyword))
++ {
++ FatalError("RegisterPlugin: Duplicate detection plugin keyword:"
++ " (%s) (%s)!\n", idx->entry.keyword, keyword);
++
++ }
++ idx = idx->next;
++ }
++
++ idx->next = (KeywordXlateList *) calloc(sizeof(KeywordXlateList),
++ sizeof(char));
++
++ idx = idx->next;
++
++ idx->entry.keyword = (char *) calloc(strlen(keyword) + 1, sizeof(char));
++ strncpy(idx->entry.keyword, keyword, strlen(keyword)+1);
++ idx->entry.func = func;
++ }
++}
++
++
++
++
++/****************************************************************************
++ *
++ * Function: DumpPlugIns()
++ *
++ * Purpose: Prints the keyword->function list
++ *
++ * Arguments: None.
++ *
++ * Returns: void function
++ *
++ ***************************************************************************/
++void DumpPlugIns()
++{
++ KeywordXlateList *idx;
++
++ if(pv.quiet_flag)
++ return;
++
++ idx = KeywordList;
++
++ printf("-------------------------------------------------\n");
++ printf(" Keyword | Plugin Registered @\n");
++ printf("-------------------------------------------------\n");
++ while(idx != NULL)
++ {
++ printf("%-13s: %p\n", idx->entry.keyword, idx->entry.func);
++ idx = idx->next;
++ }
++ printf("-------------------------------------------------\n\n");
++}
++
++
++/****************************************************************************
++ *
++ * Function: AddOptFuncToList(int (*func)(), OptTreeNode *)
++ *
++ * Purpose: Links the option detection module to the OTN
++ *
++ * Arguments: (*func)() => function pointer to the detection module
++ * otn => pointer to the current OptTreeNode
++ *
++ * Returns: void function
++ *
++ ***************************************************************************/
++OptFpList *AddOptFuncToList(int (*func) (Packet *, struct _OptTreeNode *,
++ struct _OptFpList *), OptTreeNode * otn)
++{
++ OptFpList *idx; /* index pointer */
++
++ DEBUG_WRAP(DebugMessage(DEBUG_CONFIGRULES,"Adding new rule to list\n"););
++
++ /* set the index pointer to the start of this OTN's function list */
++ idx = otn->opt_func;
++
++ /* if there are no nodes on the function list... */
++ if(idx == NULL)
++ {
++ /* calloc the list head */
++ otn->opt_func = (OptFpList *) calloc(sizeof(OptFpList), sizeof(char));
++
++ if(otn->opt_func == NULL)
++ {
++ FatalError("new node calloc failed: %s\n",
++ strerror(errno));
++ }
++
++ /* set the head function */
++ otn->opt_func->OptTestFunc = func;
++
++ idx = otn->opt_func;
++ }
++ else
++ {
++ /* walk to the end of the list */
++ while(idx->next != NULL)
++ {
++ idx = idx->next;
++ }
++
++ /* allocate a new node on the end of the list */
++ idx->next = (OptFpList *) calloc(sizeof(OptFpList), sizeof(char));
++
++ if(idx->next == NULL)
++ {
++ FatalError("AddOptFuncToList new node calloc failed: %s\n",
++ strerror(errno));
++ }
++
++ /* move up to the new node */
++ idx = idx->next;
++
++ /* link the function to the new node */
++ idx->OptTestFunc = func;
++
++ DEBUG_WRAP(DebugMessage(DEBUG_CONFIGRULES,"Set OptTestFunc to %p\n",
++ func););
++ }
++
++ return idx;
++}
++
++/****************************************************************************
++ *
++ * Function: AddRspFuncToList(int (*func)(), OptTreeNode *)
++ *
++ * Purpose: Adds Response function to OTN
++ *
++ * Arguments: (*func)() => function pointer to the response module
++ * otn => pointer to the current OptTreeNode
++ *
++ * Returns: void function
++ *
++ ***************************************************************************/
++void AddRspFuncToList(int (*func) (Packet *, struct _RspFpList *), OptTreeNode * otn, void *params)
++{
++ RspFpList *idx; /* index pointer */
++
++ DEBUG_WRAP(DebugMessage(DEBUG_CONFIGRULES,"Adding response to list\n"););
++
++ /* set the index pointer to the start of this OTN's function list */
++ idx = otn->rsp_func;
++
++ /* if there are no nodes on the function list... */
++ if(idx == NULL)
++ {
++ /* calloc the list head */
++ otn->rsp_func = (RspFpList *) calloc(sizeof(RspFpList), sizeof(char));
++
++ if(otn->rsp_func == NULL)
++ {
++ FatalError("AddRspFuncToList new node calloc failed: %s\n", strerror(errno));
++ }
++ /* set the head function */
++ otn->rsp_func->ResponseFunc = func;
++ otn->rsp_func->params = params;
++ }
++ else
++ {
++ /* walk to the end of the list */
++ while(idx->next != NULL)
++ {
++ idx = idx->next;
++ }
++
++ /* allocate a new node on the end of the list */
++ idx->next = (RspFpList *) calloc(sizeof(RspFpList), sizeof(char));
++
++ if(idx->next == NULL)
++ {
++ FatalError("AddRspFuncToList new node calloc failed: %s\n", strerror(errno));
++ }
++ /* link the function to the new node */
++ idx->next->ResponseFunc = func;
++ idx->next->params = params;
++
++ DEBUG_WRAP(DebugMessage(DEBUG_CONFIGRULES,"Set ResponseFunc to %p\n", func););
++ }
++}
++
++
++/************************* End Detection Plugin API ***************************/
++
++
++/************************** Preprocessor Plugin API ***************************/
++PreprocessKeywordList *PreprocessKeywords;
++PreprocessFuncNode *PreprocessList;
++
++void InitPreprocessors()
++{
++ if(!pv.quiet_flag)
++ {
++ printf("Initializing Preprocessors!\n");
++ }
++ SetupHttpDecode();
++ SetupPortscan();
++ SetupPortscanIgnoreHosts();
++ SetupRpcDecode();
++ SetupBo();
++ SetupTelNeg();
++ SetupStream4();
++ SetupFrag2();
++ SetupARPspoof();
++ SetupConv();
++ SetupScan2();
++ SetupHttpFlow();
++ SetupPerfMonitor();
++}
++
++/****************************************************************************
++ *
++ * Function: RegisterPreprocessor(char *, void (*func)(u_char *))
++ *
++ * Purpose: Associates a preprocessor statement with its function.
++ *
++ * Arguments: keyword => The option keyword to associate with the
++ * preprocessor
++ * *func => function pointer to the handler
++ *
++ * Returns: void function
++ *
++ ***************************************************************************/
++void RegisterPreprocessor(char *keyword, void (*func) (u_char *))
++{
++ PreprocessKeywordList *idx;
++
++ DEBUG_WRAP(DebugMessage(DEBUG_PLUGIN,"Registering keyword:preproc => %s:%p\n", keyword, func););
++
++ idx = PreprocessKeywords;
++
++ if(idx == NULL)
++ {
++ /* alloc the node */
++ PreprocessKeywords = (PreprocessKeywordList *)
++ calloc(sizeof(PreprocessKeywordList), sizeof(char));
++
++ /* alloc space for the keyword */
++ PreprocessKeywords->entry.keyword = (char *) calloc(strlen(keyword) + 1,
++ sizeof(char));
++
++ /* copy the keyword into the struct */
++ strncpy(PreprocessKeywords->entry.keyword, keyword, strlen(keyword)+1);
++
++ /* set the function pointer to the keyword handler function */
++ PreprocessKeywords->entry.func = (void *) func;
++ }
++ else
++ {
++ /* loop to the end of the list */
++ while(idx->next != NULL)
++ {
++ if(!strcasecmp(idx->entry.keyword, keyword))
++ {
++ FatalError("%s(%d) => Duplicate preprocessor keyword!\n",
++ file_name, file_line);
++ }
++ idx = idx->next;
++ }
++
++ idx->next = (PreprocessKeywordList *)
++ calloc(sizeof(PreprocessKeywordList), sizeof(char));
++
++ idx = idx->next;
++
++ /* alloc space for the keyword */
++ idx->entry.keyword = (char *) calloc(strlen(keyword) + 1, sizeof(char));
++
++ /* copy the keyword into the struct */
++ strncpy(idx->entry.keyword, keyword, strlen(keyword)+1);
++
++ /* set the function pointer to the keyword handler function */
++ idx->entry.func = (void *) func;
++ }
++}
++
++
++
++
++/****************************************************************************
++ *
++ * Function: DumpPreprocessors()
++ *
++ * Purpose: Prints the keyword->preprocess list
++ *
++ * Arguments: None.
++ *
++ * Returns: void function
++ *
++ ***************************************************************************/
++void DumpPreprocessors()
++{
++ PreprocessKeywordList *idx;
++
++ if(pv.quiet_flag)
++ return;
++ idx = PreprocessKeywords;
++
++ printf("-------------------------------------------------\n");
++ printf(" Keyword | Preprocessor @ \n");
++ printf("-------------------------------------------------\n");
++ while(idx != NULL)
++ {
++ printf("%-13s: %p\n", idx->entry.keyword, idx->entry.func);
++ idx = idx->next;
++ }
++ printf("-------------------------------------------------\n\n");
++}
++
++
++void AddFuncToPreprocList(void (*func) (Packet *))
++{
++ PreprocessFuncNode *idx;
++
++ idx = PreprocessList;
++
++ if(idx == NULL)
++ {
++ PreprocessList = (PreprocessFuncNode *)
++ calloc(sizeof(PreprocessFuncNode), sizeof(char));
++
++ PreprocessList->func = func;
++ }
++ else
++ {
++ while(idx->next != NULL)
++ idx = idx->next;
++
++ idx->next = (PreprocessFuncNode *)
++ calloc(sizeof(PreprocessFuncNode), sizeof(char));
++
++ idx = idx->next;
++ idx->func = func;
++ }
++
++ return;
++}
++
++/************************ End Preprocessor Plugin API ************************/
++
++/***************************** Output Plugin API *****************************/
++OutputKeywordList *OutputKeywords;
++OutputFuncNode *AlertList;
++OutputFuncNode *LogList;
++OutputFuncNode *AppendOutputFuncList(void (*) (Packet *,char *,void *,Event*),
++ void *, OutputFuncNode *);
++
++
++void InitOutputPlugins()
++{
++ if(!pv.quiet_flag)
++ {
++ LogMessage("Initializing Output Plugins!\n");
++ }
++ AlertSyslogSetup();
++ LogTcpdumpSetup();
++ DatabaseSetup();
++ AlertFastSetup();
++ AlertFullSetup();
++#ifndef WIN32
++ /* Win32 doesn't support AF_UNIX sockets */
++ AlertUnixSockSetup();
++#endif /* !WIN32 */
++ AlertCSVSetup();
++ LogNullSetup();
++ UnifiedSetup();
++ LogAsciiSetup();
++#ifdef ENABLE_SMB_ALERTS
++ AlertSmbSetup();
++#endif
++#ifndef WIN32
++ /* Win32 doesn't support AF_UNIX sockets */
++ AlertSFSocket_Setup();
++#endif
++}
++
++int ActivateOutputPlugin(char *plugin_name, char *plugin_options)
++{
++ OutputKeywordNode *plugin;
++
++ if(!plugin_name)
++ return -1;
++
++ /* get the output plugin node */
++ if(!(plugin = GetOutputPlugin(plugin_name)))
++ return -1;
++
++ switch(plugin->node_type)
++ {
++ case NT_OUTPUT_SPECIAL: /* both alert & logging in one plugin */
++ plugin->func(plugin_options);
++ break;
++ case NT_OUTPUT_ALERT:
++ plugin->func(plugin_options);
++ break;
++ case NT_OUTPUT_LOG:
++ plugin->func(plugin_options);
++ break;
++ }
++
++ return 0;
++}
++
++OutputKeywordNode *GetOutputPlugin(char *plugin_name)
++{
++ OutputKeywordList *list_node;
++
++ if(!plugin_name)
++ return NULL;
++
++ list_node = OutputKeywords;
++
++ while(list_node)
++ {
++ if(strcasecmp(plugin_name, list_node->entry.keyword) == 0)
++ return &(list_node->entry);
++ list_node = list_node->next;
++ }
++ FatalError("unknown output plugin: '%s'",
++ plugin_name);
++
++ return NULL;
++}
++
++
++/****************************************************************************
++ *
++ * Function: RegisterOutputPlugin(char *, void (*func)(Packet *, u_char *))
++ *
++ * Purpose: Associates an output statement with its function.
++ *
++ * Arguments: keyword => The output keyword to associate with the
++ * output processor
++ * type => alert or log types
++ * *func => function pointer to the handler
++ *
++ * Returns: void function
++ *
++ ***************************************************************************/
++void RegisterOutputPlugin(char *keyword, int type, void (*func) (u_char *))
++{
++ OutputKeywordList *idx;
++
++ DEBUG_WRAP(DebugMessage(DEBUG_PLUGIN,"Registering keyword:output => %s:%p\n",
++ keyword, func););
++
++ idx = OutputKeywords;
++
++ if(idx == NULL)
++ {
++ /* alloc the node */
++ OutputKeywords = (OutputKeywordList *) calloc(sizeof(OutputKeywordList),
++ sizeof(char));
++
++ idx = OutputKeywords;
++ }
++ else
++ {
++ /* loop to the end of the list */
++ while(idx->next != NULL)
++ {
++ if(!strcasecmp(idx->entry.keyword, keyword))
++ {
++ FatalError("%s(%d) => Duplicate output keyword!\n",
++ file_name, file_line);
++ }
++ idx = idx->next;
++ }
++
++ idx->next = (OutputKeywordList *) calloc(sizeof(OutputKeywordList),
++ sizeof(char));
++
++ idx = idx->next;
++ }
++
++ /* alloc space for the keyword */
++ idx->entry.keyword = (char *) calloc(strlen(keyword) + 1, sizeof(char));
++
++ /* copy the keyword into the struct */
++ strncpy(idx->entry.keyword, keyword, strlen(keyword)+1);
++
++ /*
++ * set the plugin type, needed to determine whether an overriding command
++ * line arg has been specified
++ */
++ idx->entry.node_type = (char) type;
++
++ /* set the function pointer to the keyword handler function */
++ idx->entry.func = (void *) func;
++}
++
++
++/****************************************************************************
++ *
++ * Function: DumpOutputPlugins()
++ *
++ * Purpose: Prints the keyword->preprocess list
++ *
++ * Arguments: None.
++ *
++ * Returns: void function
++ *
++ ***************************************************************************/
++void DumpOutputPlugins()
++{
++ OutputKeywordList *idx;
++
++ if(pv.quiet_flag)
++ return;
++
++ idx = OutputKeywords;
++
++ printf("-------------------------------------------------\n");
++ printf(" Keyword | Output @ \n");
++ printf("-------------------------------------------------\n");
++ while(idx != NULL)
++ {
++ printf("%-13s: %p\n", idx->entry.keyword, idx->entry.func);
++ idx = idx->next;
++ }
++ printf("-------------------------------------------------\n\n");
++}
++
++extern ListHead *head_tmp;
++
++void AddFuncToOutputList(void (*func) (Packet *, char *, void *, Event *),
++ char node_type, void *arg)
++{
++ switch(node_type)
++ {
++ case NT_OUTPUT_ALERT:
++ if(head_tmp != NULL)
++ head_tmp->AlertList = AppendOutputFuncList(func, arg,
++ head_tmp->AlertList);
++ else
++ AlertList = AppendOutputFuncList(func, arg, AlertList);
++ break;
++
++ case NT_OUTPUT_LOG:
++ if(head_tmp != NULL)
++ head_tmp->LogList = AppendOutputFuncList(func, arg,
++ head_tmp->LogList);
++ else
++ LogList = AppendOutputFuncList(func, arg, LogList);
++ break;
++
++ default:
++ /* just to be error-prone */
++ FatalError("Unknown nodetype: %i. Possible bug, please report\n",
++ node_type);
++ }
++
++ return;
++}
++
++
++OutputFuncNode *AppendOutputFuncList(
++ void (*func) (Packet *, char *, void *, Event *),
++ void *arg, OutputFuncNode * list)
++{
++ OutputFuncNode *idx = list;
++
++ if(idx == NULL)
++ {
++ idx = (OutputFuncNode *) calloc(sizeof(OutputFuncNode), sizeof(char));
++ idx->func = func;
++ idx->arg = arg;
++ list = idx;
++ }
++ else
++ {
++ while(idx->next != NULL)
++ idx = idx->next;
++
++ idx->next = (OutputFuncNode *) calloc(sizeof(OutputFuncNode),
++ sizeof(char));
++ idx = idx->next;
++ idx->func = func;
++ idx->arg = arg;
++ }
++
++ idx->next = NULL;
++
++ return list;
++}
++
++/*
++ * frees the existing OutputList ands sets it a single node for the
++ * function argument
++ */
++void SetOutputList(void (*func) (Packet *, char *, void *, Event *),
++ char node_type, void *arg)
++{
++ OutputFuncNode *idx;
++ OutputFuncNode *prev;
++
++ switch(node_type)
++ {
++ case NT_OUTPUT_ALERT:
++ prev = AlertList;
++ break;
++
++ case NT_OUTPUT_LOG:
++ prev = LogList;
++ break;
++
++ default:
++ return;
++ }
++
++ while(prev != NULL)
++ {
++ idx = prev->next;
++ free(prev);
++ prev = idx;
++ }
++
++ switch(node_type)
++ {
++ case NT_OUTPUT_ALERT:
++ AlertList = prev;
++ break;
++
++ case NT_OUTPUT_LOG:
++ LogList = prev;
++ break;
++
++ default:
++ return;
++ }
++
++ AddFuncToOutputList(func, node_type, arg);
++
++ return;
++}
++
++
++
++/*************************** End Output Plugin API ***************************/
++
++
++/************************** Miscellaneous Functions **************************/
++
++int PacketIsIP(Packet * p)
++{
++ if(p->iph != NULL)
++ return 1;
++
++ return 0;
++}
++
++
++
++int PacketIsTCP(Packet * p)
++{
++ if(p->iph != NULL && p->tcph != NULL)
++ return 1;
++
++ return 0;
++}
++
++
++
++int PacketIsUDP(Packet * p)
++{
++ if(p->iph != NULL && p->udph != NULL)
++ return 1;
++
++ return 0;
++}
++
++
++
++int PacketIsICMP(Packet * p)
++{
++ if(p->iph != NULL && p->icmph != NULL)
++ return 1;
++
++ return 0;
++}
++
++
++
++int DestinationIpIsHomenet(Packet * p)
++{
++ if((p->iph->ip_dst.s_addr & pv.netmask) == pv.homenet)
++ {
++ return 1;
++ }
++ return 0;
++}
++
++
++
++int SourceIpIsHomenet(Packet * p)
++{
++ if((p->iph->ip_src.s_addr & pv.netmask) == pv.homenet)
++ {
++ return 1;
++ }
++ return 0;
++}
++
++int CheckNet(struct in_addr * compare, struct in_addr * compare2)
++{
++ if(compare->s_addr == compare2->s_addr)
++ {
++ return 1;
++ }
++ return 0;
++}
++
++/* functions to aid in cleaning up aftre plugins */
++void AddFuncToRestartList(void (*func) (int, void *), void *arg)
++{
++ PluginRestartList = AddFuncToSignalList(func, arg, PluginRestartList);
++}
++
++void AddFuncToCleanExitList(void (*func) (int, void *), void *arg)
++{
++ PluginCleanExitList = AddFuncToSignalList(func, arg, PluginCleanExitList);
++}
++
++PluginSignalFuncNode *AddFuncToSignalList(void (*func) (int, void *), void *arg,
++ PluginSignalFuncNode * list)
++{
++ PluginSignalFuncNode *idx;
++
++ idx = list;
++
++ if(idx == NULL)
++ {
++ idx = (PluginSignalFuncNode *) calloc(sizeof(PluginSignalFuncNode), sizeof(char));
++
++ idx->func = func;
++ idx->arg = arg;
++ list = idx;
++ }
++ else
++ {
++ while(idx->next != NULL)
++ idx = idx->next;
++
++ idx->next = (PluginSignalFuncNode *) calloc(sizeof(PluginSignalFuncNode), sizeof(char));
++
++ idx = idx->next;
++ idx->func = func;
++ idx->arg = arg;
++ }
++ idx->next = NULL;
++
++ return list;
++}
++
++
++/****************************************************************************
++ *
++ * Function: GetUniqueName(char * iface)
++ *
++ * Purpose: To return a string that has a high probability of being unique
++ * for a given sensor.
++ *
++ * Arguments: char * iface - The network interface you are sniffing
++ *
++ * Returns: A char * -- its a static char * so you should not free it
++ *
++ ***************************************************************************/
++char *GetUniqueName(char * iface)
++{
++ char * rptr;
++ static char uniq_name[256];
++
++ if (iface == NULL) LogMessage("Interface is NULL. Name may not be unique for the host");
++#ifndef WIN32
++ rptr = GetIP(iface);
++ if(rptr == NULL || !strcmp(rptr, "unknown"))
++#endif
++ {
++ snprintf(uniq_name, 255, "%s:%s\n",GetHostname(),iface);
++ rptr = uniq_name;
++ }
++ if (pv.verbose_flag) LogMessage("Node unique name is: %s\n", rptr);
++ return rptr;
++}
++
++/****************************************************************************
++ *
++ * Function: GetIP(char * iface)
++ *
++ * Purpose: To return a string representing the IP address for an interface
++ *
++ * Arguments: char * iface - The network interface you want to find an IP
++ * address for.
++ *
++ * Returns: A char * -- make sure you call free on this when you are done
++ * with it.
++ *
++ ***************************************************************************/
++char *GetIP(char * iface)
++{
++ struct ifreq ifr;
++ struct sockaddr_in *addr;
++ int s;
++
++ if(iface)
++ {
++ /* Set up a dummy socket just so we can use ioctl to find the
++ ip address of the interface */
++ s = socket(PF_INET, SOCK_DGRAM, 0);
++ if(s == -1)
++ {
++ FatalError("Problem establishing socket to find IP address for interface: %s\n", iface);
++ }
++
++ strncpy(ifr.ifr_name, iface, strlen(iface) + 1);
++
++#ifndef WIN32
++ if(ioctl(s, SIOCGIFADDR, &ifr) < 0) return NULL;
++ else
++#endif
++ {
++ addr = (struct sockaddr_in *) &ifr.ifr_broadaddr;
++ }
++ close(s);
++
++ return str2s(inet_ntoa(addr->sin_addr));
++ }
++ else
++ {
++ return "unknown";
++ }
++}
++
++/****************************************************************************
++ *
++ * Function: GetHostname()
++ *
++ * Purpose: To return a string representing the hostname
++ *
++ * Arguments: None
++ *
++ * Returns: A static char * representing the hostname.
++ *
++ ***************************************************************************/
++char *GetHostname()
++{
++#ifdef WIN32
++ DWORD bufflen = 256;
++ static char buff[256];
++ GetComputerName(buff, &bufflen);
++ return buff;
++#else
++ char * error = "unknown";
++ if(getenv("HOSTNAME")) return getenv("HOSTNAME");
++ else if(getenv("HOST")) return getenv("HOST");
++ else return error;
++#endif
++}
++
++/****************************************************************************
++ *
++ * Function: TCPOptionValue(Options *o)
++ *
++ * Purpose: To return a string representing the code of an TCP option
++ *
++ * Arguments: An Options struct.
++ *
++ * Returns: char * -- You must free this char * when you are done with it.
++ *
++ ***************************************************************************/
++char *TCPOptionCode(Options *o)
++{
++ char *rval;
++
++ rval = (char *)malloc(SMALLBUFFER);
++
++ switch(o->code)
++ {
++ case TCPOPT_MAXSEG:
++ strncpy(rval, "MSS", SMALLBUFFER);
++ break;
++
++ case TCPOPT_EOL:
++ strncpy(rval, "EOL", SMALLBUFFER);
++ break;
++
++ case TCPOPT_NOP:
++ strncpy(rval, "NOP", SMALLBUFFER);
++ break;
++
++ case TCPOPT_WSCALE:
++ strncpy(rval, "WS", SMALLBUFFER);
++ break;
++
++ case TCPOPT_SACK:
++ strncpy(rval, "Sack", SMALLBUFFER);
++ break;
++
++ case TCPOPT_SACKOK:
++ strncpy(rval, "SackOK", SMALLBUFFER);
++ break;
++
++ case TCPOPT_ECHO:
++ strncpy(rval, "Echo", SMALLBUFFER);
++ break;
++
++ case TCPOPT_ECHOREPLY:
++ strncpy(rval, "Echo Rep", SMALLBUFFER);
++ break;
++
++ case TCPOPT_TIMESTAMP:
++ strncpy(rval, "TS", SMALLBUFFER);
++ break;
++
++ case TCPOPT_CC:
++ strncpy(rval, "CC", SMALLBUFFER);
++ break;
++
++ case TCPOPT_CCNEW:
++ strncpy(rval, "CCNEW", SMALLBUFFER);
++ break;
++
++ case TCPOPT_CCECHO:
++ strncpy(rval, "CCECHO", SMALLBUFFER);
++ break;
++
++ default:
++ snprintf(rval, SMALLBUFFER, "Opt %d", o->code);
++ break;
++ }
++
++ return rval;
++}
++
++/****************************************************************************
++ *
++ * Function: TCPOptionValue(Options *o)
++ *
++ * Purpose: To return a string representing the value of an TCP option
++ *
++ * Arguments: An Options struct.
++ *
++ * Returns: char * -- You must free this char * when you are done with it.
++ *
++ ***************************************************************************/
++char *TCPOptionValue(Options *o)
++{
++ char * rval;
++ char * rvalptr;
++ u_char tmp[5];
++ int x;
++
++ rval = (char *)malloc(SMALLBUFFER);
++ rvalptr = rval;
++
++ switch(o->code)
++ {
++ case TCPOPT_MAXSEG:
++ bzero((char *)tmp, 5);
++ strncpy((char*)tmp, (char*)(o->data), 2);
++ snprintf(rval, SMALLBUFFER, "%u", EXTRACT_16BITS(tmp));
++ break;
++
++ case TCPOPT_EOL:
++ rval[0] = '\0';
++ break;
++
++ case TCPOPT_NOP:
++ rval[0] = '\0';
++ break;
++
++ case TCPOPT_WSCALE:
++ snprintf(rval, SMALLBUFFER, "%u", o->data[0]);
++ break;
++
++ case TCPOPT_SACK:
++ bzero((char *)tmp, 5);
++ memcpy(tmp, o->data, 2);
++ snprintf(rval, SMALLBUFFER, "%u@", EXTRACT_16BITS(tmp));
++ x = strlen(rval);
++ rvalptr += x;
++ bzero((char *)tmp, 5);
++ memcpy(tmp, (o->data)+2, 2);
++ snprintf(rvalptr, SMALLBUFFER - x, "%u", EXTRACT_16BITS(tmp));
++ break;
++
++ case TCPOPT_SACKOK:
++ rval[0] = '\0';
++ break;
++
++ case TCPOPT_ECHO:
++ bzero((char *)tmp, 5);
++ memcpy(tmp, o->data, 4);
++ snprintf(rval, SMALLBUFFER, "%u", EXTRACT_32BITS(tmp));
++ break;
++
++ case TCPOPT_ECHOREPLY:
++ bzero((char *)tmp, 5);
++ memcpy(tmp, o->data, 4);
++ snprintf(rval, SMALLBUFFER, "%u", EXTRACT_32BITS(tmp));
++ break;
++
++ case TCPOPT_TIMESTAMP:
++ bzero((char *)tmp, 5);
++ memcpy(tmp, o->data, 4);
++ snprintf(rval, SMALLBUFFER, "%u ", EXTRACT_32BITS(tmp));
++ rvalptr += strlen(rval);
++ bzero((char *)tmp, 5);
++ memcpy(tmp, (o->data)+4, 4);
++ snprintf(rvalptr, SMALLBUFFER, "%u", EXTRACT_32BITS(tmp));
++ break;
++
++ case TCPOPT_CC:
++ bzero((char *)tmp, 5);
++ memcpy(tmp, o->data, 4);
++ snprintf(rval, SMALLBUFFER, "%u", EXTRACT_32BITS(tmp));
++ break;
++
++ case TCPOPT_CCNEW:
++ bzero((char *)tmp, 5);
++ memcpy(tmp, o->data, 4);
++ snprintf(rval, SMALLBUFFER, "%u", EXTRACT_32BITS(tmp));
++ break;
++
++ case TCPOPT_CCECHO:
++ bzero((char *)tmp, 5);
++ memcpy(tmp, o->data, 4);
++ snprintf(rval, SMALLBUFFER, "%u", EXTRACT_32BITS(tmp));
++ break;
++
++ default:
++ rval[0] = '\0';
++ if(o->len > 2)
++ {
++ for(x = 0; x < (int) (o->len-2); x+=2)
++ {
++ snprintf(tmp, 5, "%02X%02X ", o->data[x], o->data[x+1]);
++ if(strlen(rval) < SMALLBUFFER - 5);
++ strncat(rval, tmp, SMALLBUFFER - strlen(rval));
++ }
++ }
++ break;
++ }
++ return rval;
++}
++
++/****************************************************************************
++ *
++ * Function: IPOptionValue(Options *o)
++ *
++ * Purpose: To return a string representing the code of an IP option
++ *
++ * Arguments: An Options struct.
++ *
++ * Returns: char * -- You must free this char * when you are done with it.
++ *
++ ***************************************************************************/
++char *IPOptionCode(Options * o)
++{
++ char *rval;
++
++ rval = (char *)malloc(SMALLBUFFER);
++
++ switch(o->code)
++ {
++ case IPOPT_RR:
++ strncpy(rval, "RR", SMALLBUFFER);
++ break;
++
++ case IPOPT_EOL:
++ strncpy(rval, "EOL", SMALLBUFFER);
++ break;
++
++ case IPOPT_NOP:
++ strncpy(rval, "NOP", SMALLBUFFER);
++ break;
++
++ case IPOPT_TS:
++ strncpy(rval, "TS", SMALLBUFFER);
++ break;
++
++ case IPOPT_SECURITY:
++ strncpy(rval, "SEC", SMALLBUFFER);
++ break;
++
++ case IPOPT_LSRR:
++ case IPOPT_LSRR_E:
++ strncpy(rval, "LSRR", SMALLBUFFER);
++ break;
++
++ case IPOPT_SATID:
++ strncpy(rval, "SID", SMALLBUFFER);
++ break;
++
++ case IPOPT_SSRR:
++ strncpy(rval, "SSRR", SMALLBUFFER);
++ break;
++
++ default:
++ snprintf(rval, SMALLBUFFER, "Opt %d", o->code);
++ }
++ return rval;
++}
++
++/****************************************************************************
++ *
++ * Function: IPOptionValue(Options *o)
++ *
++ * Purpose: To return a string representing the value of an IP option
++ *
++ * Arguments: An Options struct.
++ *
++ * Returns: char * -- You must free this char * when you are done with it.
++ *
++ ***************************************************************************/
++char *IPOptionValue(Options * o)
++{
++ int j;
++ char *rval;
++ char tmp[6];
++
++ rval = (char *)malloc(SMALLBUFFER);
++ rval[0] = '\0';
++
++ if(o->len)
++ {
++ for(j = 0; j < (int) (o->len-2); j+=2)
++ {
++ rval = (char *)realloc(rval, strlen(rval) + 5);
++ snprintf(tmp, 5, "%02X%02X ", o->data[j], o->data[j+1]);
++ strncat(rval, tmp, 6);
++ }
++ }
++
++ return rval;
++}
++
++/****************************************************************************
++ *
++ * Function: GetTimestamp(time_t * tv_sec, int tz)
++ *
++ * Purpose: Get an ISO-8601 formatted timestamp for tv_sec within the tz
++ * timezone.
++ *
++ * Arguments: tv_sec is a time_t pointer. tz is a timezone.
++ *
++ * Returns: char * -- You must free this char * when you are done with it.
++ *
++ ***************************************************************************/
++char *GetTimestamp(time_t * tv_sec, int tz)
++{
++ struct tm *time;
++ char * buf;
++
++ buf = (char *)calloc(SMALLBUFFER, sizeof(char));
++
++ if(pv.use_utc == 1)
++ time = gmtime(tv_sec);
++ else
++ time = localtime(tv_sec);
++
++ if(tz < 0)
++ {
++ snprintf(buf, SMALLBUFFER, "%04i-%02i-%02i %02i:%02i:%02i%03i",
++ 1900 + time->tm_year, time->tm_mon + 1, time->tm_mday,
++ time->tm_hour, time->tm_min, time->tm_sec, tz);
++ }
++ else
++ {
++ snprintf(buf, SMALLBUFFER, "%04i-%02i-%02i %02i:%02i:%02i+%02i",
++ 1900 + time->tm_year, time->tm_mon + 1, time->tm_mday,
++ time->tm_hour, time->tm_min, time->tm_sec, tz);
++ }
++
++ return buf;
++}
++
++/****************************************************************************
++ *
++ * Function: GetLocalTimezone()
++ *
++ * Purpose: Find the offset from GMT for current host
++ *
++ * Arguments: none
++ *
++ * Returns: int representing the offset from GMT
++ *
++ ***************************************************************************/
++int GetLocalTimezone()
++{
++ struct timezone tz;
++ struct timeval tv;
++
++ gettimeofday(&tv,&tz);
++
++ if(tz.tz_minuteswest > 720) return(24 - tz.tz_minuteswest/60);
++ else return(0 - tz.tz_minuteswest/60);
++}
++
++/****************************************************************************
++ *
++ * Function: GetCurrentTimestamp()
++ *
++ * Purpose: Generate an ISO-8601 formatted timestamp for the current time.
++ *
++ * Arguments: none
++ *
++ * Returns: char * -- You must free this char * when you are done with it.
++ *
++ ***************************************************************************/
++char *GetCurrentTimestamp()
++{
++ struct tm *lt;
++ struct timezone tz;
++ struct timeval tv;
++ struct timeval *tvp;
++ char * buf;
++ int tzone;
++
++ buf = (char *)calloc(SMALLBUFFER, sizeof(char));
++
++ bzero((char *)&tz,sizeof(tz));
++ gettimeofday(&tv,&tz);
++ tvp = &tv;
++ if(pv.use_utc == 1)
++ {
++ lt = gmtime((time_t *)&tvp->tv_sec);
++ snprintf(buf, SMALLBUFFER, "%04i-%02i-%02i %02i:%02i:%02i",
++ 1900 + lt->tm_year, lt->tm_mon + 1, lt->tm_mday,
++ lt->tm_hour, lt->tm_min, lt->tm_sec);
++ }
++ else
++ {
++ lt = localtime((time_t *)&tvp->tv_sec);
++
++ tzone = GetLocalTimezone();
++
++ if(tzone < 0)
++ snprintf(buf, SMALLBUFFER,
++ "%04i-%02i-%02i %02i:%02i:%02i%03i",
++ 1900 + lt->tm_year, lt->tm_mon + 1, lt->tm_mday,
++ lt->tm_hour, lt->tm_min, lt->tm_sec, tzone);
++ else
++ snprintf(buf, SMALLBUFFER,
++ "%04i-%02i-%02i %02i:%02i:%02i+%02i",
++ 1900 + lt->tm_year, lt->tm_mon + 1, lt->tm_mday,
++ lt->tm_hour, lt->tm_min, lt->tm_sec, tzone);
++ }
++
++ return buf;
++}
++
++/*
++ * Function: base64(char * xdata, int length)
++ *
++ * Purpose: Insert data into the database
++ *
++ * Arguments: xdata => pointer to data to base64 encode
++ * length => how much data to encode
++ *
++ * Make sure you allocate memory for the output before you pass
++ * the output pointer into this function. You should allocate
++ * (1.5 * length) bytes to be safe.
++ *
++ * Returns: data base64 encoded as a char *
++ *
++ */
++char * base64(u_char * xdata, int length)
++{
++ int count, cols, bits, c, char_count;
++ unsigned char alpha[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
++ char * payloadptr;
++ char * output;
++ char_count = 0;
++ bits = 0;
++ cols = 0;
++
++ output = (char *)malloc( (unsigned int) (length * 1.5 + 4) );
++
++ payloadptr = output;
++
++ for(count = 0; count < length; count++)
++ {
++ c = xdata[count];
++
++ if(c > 255)
++ {
++ ErrorMessage("plugbase.c->base64(): encountered char > 255 (decimal %d)\n If you see this error message a char is more than one byte on your machine\n This means your base64 results can not be trusted", c);
++ }
++
++ bits += c;
++ char_count++;
++
++ if(char_count == 3)
++ {
++ *output = alpha[bits >> 18]; output++;
++ *output = alpha[(bits >> 12) & 0x3f]; output++;
++ *output = alpha[(bits >> 6) & 0x3f]; output++;
++ *output = alpha[bits & 0x3f]; output++;
++ cols += 4;
++ if(cols == 72)
++ {
++ *output = '\n'; output++;
++ cols = 0;
++ }
++ bits = 0;
++ char_count = 0;
++ }
++ else
++ {
++ bits <<= 8;
++ }
++ }
++
++ if(char_count != 0)
++ {
++ bits <<= 16 - (8 * char_count);
++ *output = alpha[bits >> 18]; output++;
++ *output = alpha[(bits >> 12) & 0x3f]; output++;
++ if(char_count == 1)
++ {
++ *output = '='; output++;
++ *output = '='; output++;
++ }
++ else
++ {
++ *output = alpha[(bits >> 6) & 0x3f];
++ output++; *output = '=';
++ output++;
++ }
++ }
++ *output = '\0';
++ return payloadptr;
++}
++
++/****************************************************************************
++ *
++ * Function: ascii(u_char *xdata, int length)
++ *
++ * Purpose: This function takes takes a buffer "xdata" and its length then
++ * returns a string of only the printible ASCII characters.
++ *
++ * Arguments: xdata is the buffer, length is the length of the buffer in
++ * bytes
++ *
++ * Returns: char * -- You must free this char * when you are done with it.
++ *
++ ***************************************************************************/
++char *ascii(u_char *xdata, int length)
++{
++ char *d_ptr, *ret_val;
++ int i,count = 0;
++ int size;
++
++ if(xdata == NULL)
++ {
++ return NULL;
++ }
++
++ for(i=0;i<length;i++)
++ {
++ if(xdata[i] == '<')
++ count+=4; /* &lt; */
++ else if(xdata[i] == '&')
++ count+=5; /* &amp; */
++ else if(xdata[i] == '>') /* &gt; */
++ count += 4;
++ }
++
++ size = length + count + 1;
++ ret_val = (char *) malloc(size);
++
++ if(ret_val == NULL)
++ {
++ LogMessage("plugbase.c: ascii(): Out of memory, can't log anything!\n");
++ return NULL;
++ }
++
++ memset(ret_val, '\0',(length + count + 1));
++
++ d_ptr = ret_val;
++
++ for(i=0;i<length;i++)
++ {
++ if((xdata[i] > 0x1F) && (xdata[i] < 0x7F))
++ {
++ if(xdata[i] == '<')
++ {
++ strncpy(ret_val, "&lt;", size - (d_ptr - ret_val));
++ d_ptr+=4;
++ }
++ else if(xdata[i] == '&')
++ {
++ strncpy(ret_val, "&amp;", size - (d_ptr - ret_val));
++ d_ptr += 5;
++ }
++ else if(xdata[i] == '>')
++ {
++ strncpy(ret_val, "&gt;", size - (d_ptr - ret_val));
++ d_ptr += 4;
++ }
++ else
++ {
++ *d_ptr++ = xdata[i];
++ }
++ }
++ else
++ {
++ *d_ptr++ = '.';
++ }
++ }
++
++ *d_ptr++ = '\0';
++
++ return ret_val;
++}
++
++/****************************************************************************
++ *
++ * Function: hex(u_char *xdata, int length)
++ *
++ * Purpose: This function takes takes a buffer "xdata" and its length then
++ * returns a string of hex with no spaces
++ *
++ * Arguments: xdata is the buffer, length is the length of the buffer in
++ * bytes
++ *
++ * Returns: char * -- You must free this char * when you are done with it.
++ *
++ ***************************************************************************/
++char *hex(u_char *xdata, int length)
++{
++ int x;
++ char *rval;
++ char *buf;
++
++ buf = (char *)malloc(length * 2 + 1);
++ rval = buf;
++
++ for(x=0; x < length; x++)
++ {
++ snprintf(buf, 3, "%02X", xdata[x]);
++ buf += 2;
++ }
++
++ rval[length * 2] = '\0';
++
++ return rval;
++}
++
++
++
++char *fasthex(u_char *xdata, int length)
++{
++ char conv[] = "0123456789ABCDEF";
++ char *retbuf = NULL;
++ char *index;
++ char *end;
++ char *ridx;
++
++ index = xdata;
++ end = xdata + length;
++ retbuf = (char *) calloc((length*2)+1, sizeof(char));
++ ridx = retbuf;
++
++ while(index < end)
++ {
++ *ridx++ = conv[((*index & 0xFF)>>4)];
++ *ridx++ = conv[((*index & 0xFF)&0x0F)];
++ index++;
++ }
++
++ return retbuf;
++}
++
++
++/****************************************************************************
++ *
++ * Function: int2s(int val)
++ *
++ * Purpose: int2s creates a string representing the integer supplied as
++ * the first argument. It returns a char * that needs to be freed
++ * after it is used.
++ *
++ * Arguments: val is the integer you want to convert to a string
++ *
++ * Returns: char * -- You must free this char * when you are done with it.
++ *
++ ***************************************************************************/
++char *int2s(int val)
++{
++ char * ptr;
++
++ ptr = (char *)malloc(SMALLBUFFER);
++
++ if(val)
++ {
++ snprintf(ptr, SMALLBUFFER, "%u", val);
++ }
++ else
++ {
++ ptr[0] = '\0';
++ }
++ return ptr;
++}
++
++
++/****************************************************************************
++ *
++ * Function: str2s(char * val)
++ *
++ * Purpose: str2s returns a string that is an exact replica of the char
++ * supplied as the first argument. The purpose of this
++ * function is to create a dynamically allocated copy of a
++ * string. It is used when populating data structures that
++ * have char * elements that are freed. The point is that
++ * this is a short way to avoid calling free() on a buffer
++ * that is not dynamically allocated by this process.
++ *
++ * Arguments: val is the string you want to copy
++ *
++ * Returns: char * -- You must free this char * when you are done with it.
++ *
++ ***************************************************************************/
++char *str2s(char * val)
++{
++ char * ptr;
++
++ if(val)
++ {
++ ptr = (char *)malloc(strlen(val) + 1);
++ strncpy(ptr, val, strlen(val) + 1);
++ memset( ptr, '\0', strlen(val) + 1 );
++ strncpy( ptr, val, strlen(val) );
++ /* Old: strncpy(ptr, val, strlen(val) + 1); */
++
++ return ptr;
++ }
++ else
++ {
++ return val;
++ }
++}
++
++/****************************************************************************
++ *
++ * Function: hex2s(int val)
++ *
++ * Purpose: hex2s creates a string representing the hexidecimal conversion
++ * of an integer. It returns a char * that needs to be freed after
++ * it is used.
++ *
++ * Arguments: val is the integer you want to convert to a string
++ *
++ * Returns: char * -- You must free this char * when you are done with it.
++ *
++ ***************************************************************************/
++char *hex2s(int val)
++{
++ char * ptr;
++
++ ptr = (char *)malloc(SMALLBUFFER);
++
++ if(val)
++ {
++ snprintf(ptr, SMALLBUFFER, "0x%x", val);
++ }
++ else
++ {
++ ptr[0] = '\0';
++ }
++ return ptr;
++}
+diff -r -N -u snort-2.0.1/src/preprocessors/Makefile.in snort-2.0.1+prelude/src/preprocessors/Makefile.in
+--- snort-2.0.1/src/preprocessors/Makefile.in 2003-07-01 22:29:21.000000000 +0800
++++ snort-2.0.1+prelude/src/preprocessors/Makefile.in 2003-07-26 18:14:27.000000000 +0800
+@@ -75,6 +75,7 @@
+ PACKAGE = @PACKAGE@
+ RANLIB = @RANLIB@
+ STRIP = @STRIP@
++UP = @UP@
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
+diff -r -N -u snort-2.0.1/src/win32/Makefile.in snort-2.0.1+prelude/src/win32/Makefile.in
+--- snort-2.0.1/src/win32/Makefile.in 2003-07-01 22:28:56.000000000 +0800
++++ snort-2.0.1+prelude/src/win32/Makefile.in 2003-07-26 18:14:27.000000000 +0800
+@@ -74,6 +74,7 @@
+ PACKAGE = @PACKAGE@
+ RANLIB = @RANLIB@
+ STRIP = @STRIP@
++UP = @UP@
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
+diff -r -N -u snort-2.0.1/templates/Makefile.in snort-2.0.1+prelude/templates/Makefile.in
+--- snort-2.0.1/templates/Makefile.in 2003-07-01 22:30:44.000000000 +0800
++++ snort-2.0.1+prelude/templates/Makefile.in 2003-07-26 18:14:27.000000000 +0800
+@@ -74,6 +74,7 @@
+ PACKAGE = @PACKAGE@
+ RANLIB = @RANLIB@
+ STRIP = @STRIP@
++UP = @UP@
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
diff --git a/net-analyzer/snort/metadata.xml b/net-analyzer/snort/metadata.xml
new file mode 100644
index 000000000000..5443a900bcfc
--- /dev/null
+++ b/net-analyzer/snort/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email></email>
+ <description></description>
+ </maintainer>
+<longdescription>Snort is a lightweight network intrusion detection system, capable of performing real-time traffic analysis and packet logging on IP networks. It can perform protocol analysis, content searching/matching and can be used to detect a variety of attacks and probes, such as buffer overflows, stealth port scans, CGI attacks, SMB probes, OS fingerprinting attempts, and much more. Snort uses a flexible rule based language to describe traffic that it should collect or pass, and a modular detection engine. Snort has a real-time alerting capability, with alert mechanisms for syslog, a user specified file, a UNIX socket, or WinPopup messages to Windows clients using Samba's smbclient.</longdescription>
+</pkgmetadata>
diff --git a/net-analyzer/snort/snort-2.0.1.ebuild b/net-analyzer/snort/snort-2.0.1.ebuild
new file mode 100644
index 000000000000..b680d2cbbf7a
--- /dev/null
+++ b/net-analyzer/snort/snort-2.0.1.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.0.1.ebuild,v 1.1 2003/08/09 20:15:16 solar Exp $
+
+inherit eutils
+
+IUSE="ssl postgres mysql snmp prelude"
+S=${WORKDIR}/${P}
+DESCRIPTION="Libpcap-based packet sniffer/logger/lightweight IDS"
+SRC_URI="http://www.snort.org/dl/${P}.tar.gz"
+HOMEPAGE="http://www.snort.org"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~sparc -alpha"
+
+DEPEND="virtual/glibc
+ >=net-libs/libpcap-0.6.2-r1
+ ~net-libs/libnet-1.0.2a
+ postgres? ( >=dev-db/postgresql-7.2 )
+ mysql? ( >=dev-db/mysql-3.23.26 )
+ ssl? ( >=dev-libs/openssl-0.9.6b )
+ snmp? ( >=net-analyzer/net-snmp-5.0 )
+ prelude? ( >=dev-libs/libprelude-0.8 )"
+
+RDEPEND="virtual/glibc
+ dev-lang/perl
+ >=net-libs/libpcap-0.6.2-r1
+ postgres? ( >=dev-db/postgresql-7.2 )
+ mysql? ( >=dev-db/mysql-3.23.26 )
+ ssl? ( >=dev-libs/openssl-0.9.6b )
+ prelude? ( >=dev-libs/libprelude-0.8 )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ #is this needed in 2.0? -Method
+ #epatch ${FILESDIR}/${P}-configure.patch
+
+ # Following patch contributed in bug #18258
+ #is this needed in 2.0? -Method
+ #use alpha && epatch ${FILESDIR}/${P}-alpha.patch
+
+
+ sed "s:var RULE_PATH ../rules:var RULE_PATH /etc/snort:" < etc/snort.conf > etc/snort.conf.distrib
+
+ use prelude && epatch ${FILESDIR}/${P}+prelude.patch
+}
+
+src_compile() {
+
+ local myconf
+
+ use postgres && myconf="${myconf} --with-postgresql" \
+ || myconf="${myconf} --without-postgresql"
+ use mysql && myconf="${myconf} --with-mysql" \
+ || myconf="${myconf} --without-mysql"
+ use ssl && myconf="${myconf} --with-openssl" \
+ || myconf="${myconf} --without-openssl"
+ use snmp && myconf="${myconf} --with-snmp" \
+ || myconf="${myconf} --without-snmp"
+ use prelude && myconf="${myconf} --with-prelude"
+
+
+ ./configure \
+ --prefix=/usr \
+ --without-odbc \
+ --without-oracle \
+ --enable-pthreads \
+ --enable-flexresp \
+ --enable-smbalerts \
+ --mandir=/usr/share/man \
+ --host=${CHOST} ${myconf} || die "bad ./configure"
+
+ emake || die "compile problem"
+}
+
+src_install () {
+
+ make DESTDIR=${D} install || die
+
+ dodir /var/log/snort
+ touch ${D}/var/log/snort/.keep
+
+ insinto /usr/lib/snort/bin
+ doins contrib/{create_mysql,snortlog,*.pl}
+
+ dodoc COPYING LICENSE doc/*
+ docinto contrib ; dodoc contrib/*
+
+ insinto /etc/snort
+ doins etc/reference.config etc/classification.config rules/*.rules etc/*.map
+ doins etc/snort.conf.distrib
+
+ exeinto /etc/init.d ; newexe ${FILESDIR}/snort.rc6 snort
+ insinto /etc/conf.d ; newins ${FILESDIR}/snort.confd snort
+}
+
+pkg_postinst() {
+
+ if ! grep -q ^snort: /etc/group ; then
+ groupadd snort || die "problem adding group snort"
+ fi
+ if ! grep -q ^snort: /etc/passwd ; then
+ useradd -g snort -s /dev/null -d /var/log/snort -c "snort" snort
+ assert "problem adding user snort"
+ fi
+ usermod -c "snort" snort || die "usermod problem"
+ usermod -d "/var/log/snort" snort || die "usermod problem"
+ usermod -g "snort" snort || die "usermod problem"
+ usermod -s "/dev/null" snort || die "usermod problem"
+ echo "ignore any message about CREATE_HOME above..."
+
+ chown snort.snort /var/log/snort
+ chmod 0770 /var/log/snort
+}