3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- Libnet-1.0.2a/aclocal.m4~configure
7 +++ Libnet-1.0.2a/aclocal.m4
8 -dnl aclocal.m4 generated automatically by aclocal 1.4
10 -dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
11 -dnl This file is free software; the Free Software Foundation
12 -dnl gives unlimited permission to copy and/or distribute it,
13 -dnl with or without modifications, as long as this notice is preserved.
15 -dnl This program is distributed in the hope that it will be useful,
16 -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
17 -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
18 -dnl PARTICULAR PURPOSE.
20 -dnl $Id: aclocal.m4,v 1.1.1.1 2000/05/25 00:28:49 route Exp $
22 -dnl Libnet specific autoconf macros
23 -dnl Copyright (c) 1998, 1999, 2000 Mike D. Schiffman <mike@infonexus.com>
24 -dnl All rights reserved.
28 -dnl Checks to see if this linux kernel has a working PF_PACKET
32 -dnl AC_LIBNET_CHECK_PF_PACKET
36 -dnl HAVE_PF_PACKET (DEFINED)
39 -AC_DEFUN(AC_LIBNET_CHECK_PF_PACKET,
41 - AC_MSG_CHECKING(for PF_PACKET)
42 - AC_CACHE_VAL(ac_libnet_have_pf_packet,
44 - [case "$target_os" in
47 - ac_libnet_have_pf_packet = no
51 - cat > pf_packet-test.c << EOF
54 -#include <netinet/if_ether.h>
55 -#include <net/if_arp.h>
57 -#include <linux/if_arp.h>
58 -#include <linux/if_ether.h>
62 -#define SOL_PACKET 263
63 -#endif /* SOL_PACKET */
64 -#include <linux/if_packet.h>
67 -#include <linux/sockios.h>
74 - struct sockaddr_ll sa;
76 - struct packet_mreq mr;
79 - fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
83 - exit (EXIT_FAILURE);
86 - memset(&sa, 0, sizeof(sa));
87 - strcpy(ifr.ifr_name, device);
88 - if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0)
91 - exit (EXIT_FAILURE);
93 - sa.sll_family = AF_PACKET;
94 - sa.sll_ifindex = ifr.ifr_ifindex;
95 - sa.sll_protocol = htons(ETH_P_ALL);
97 - memset(&mr, 0, sizeof (mr));
98 - mr.mr_ifindex = sa.sll_ifindex;
99 - mr.mr_type = PACKET_MR_ALLMULTI;
101 - if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, (char *)&mr,
104 - printf("choked\n");
105 - exit (EXIT_FAILURE);
107 - /* yay. we made it and it workz! */
109 -#else /* PF_PACKET */
112 - exit (EXIT_SUCCESS);
115 - ${CC-cc} -o pf_packet-test $CFLAGS pf_packet-test.c >/dev/null 2>&1
117 - # Oopz 4.3 BSD doesn't have this. Sorry.
118 - if test ! -x ./pf_packet-test ; then
119 - ac_libnet_have_pf_packet=choked
121 - ac_libnet_have_pf_packet=`./pf_packet-test`;
124 - if test $ac_libnet_have_pf_packet = choked; then
125 - AC_MSG_RESULT(test program choked... assuming no)
126 - elif test $ac_libnet_have_pf_packet = yes; then
127 - AC_DEFINE(HAVE_PF_PACKET)
128 - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_PF_PACKET"
131 - if test $ac_libnet_have_pf_packet != choked; then
132 - AC_MSG_RESULT($ac_libnet_have_pf_packet)
134 - rm -f pf_packet-test* core core.pf_packet-test
140 -dnl Looks for a previous libnet version and attempts to determine which verion
141 -dnl it is. Version 0.8 was the first version that actually knew internally
142 -dnl what version it was.
146 -dnl AC_LIBNET_CHECK_LIBNET_VERSION
153 -AC_DEFUN(AC_LIBNET_CHECK_LIBNET_VER,
155 - AC_CHECK_LIB(net, libnet_build_ip, AC_MSG_CHECKING(version) \
157 -changequote(<<, >>)dnl
158 - if [[ ! -f $LIB_PREFIX/libnet.a ]] ; then
159 -changequote([, ])dnl
160 - AC_MSG_RESULT($LIB_PREFIX/libnet.a doesn't exist)
161 - AC_MSG_RESULT(previous libnet install lives elsewhere, you should probably find it)
163 - __LIBNET_VERSION=`strings $LIB_PREFIX/libnet.a | grep "libnet version"\
165 - if test -z "$__LIBNET_VERSION"; then
166 - AC_MSG_RESULT(<0.8)
168 - AC_MSG_RESULT($__LIBNET_VERSION)
176 -dnl Checks to see if this linux kernel uses ip_sum or ip_csum
177 -dnl (Pulled from queso)
181 -dnl AC_LIBNET_CHECK_IP_CSUM
185 -dnl HAVE_STRUCT_IP_CSUM (DEFINED)
188 -AC_DEFUN(AC_LIBNET_CHECK_IP_CSUM,
190 - AC_MSG_CHECKING([struct ip contains ip_csum])
192 - #define __BSD_SOURCE
193 - #define _BSD_SOURCE
194 - #include <sys/types.h>
195 - #include <netinet/in.h>
196 - #include <netinet/in_systm.h>
197 - #include <netinet/ip.h>],
202 - [AC_MSG_RESULT(yes);
203 - AC_DEFINE(HAVE_STRUCT_IP_CSUM)],
204 - [AC_MSG_RESULT(no);
209 -dnl Checks to see if unaligned memory accesses fail
210 -dnl (Pulled from libpcap)
214 -dnl AC_LBL_UNALIGNED_ACCESS
218 -dnl LBL_ALIGN (DEFINED)
221 -AC_DEFUN(AC_LBL_UNALIGNED_ACCESS,
222 - [AC_MSG_CHECKING(if unaligned accesses fail)
223 - AC_CACHE_VAL(ac_cv_lbl_unaligned_fail,
224 - [case "$target_cpu" in
226 - alpha|hp*|mips|sparc)
227 - ac_cv_lbl_unaligned_fail=yes
231 - cat >conftest.c <<EOF
232 -# include <sys/types.h>
233 -# include <sys/wait.h>
235 - unsigned char a[[5]] = { 1, 2, 3, 4, 5 };
241 - /* avoid "core dumped" message */
250 - pid = waitpid(pid, &status, 0);
255 - exit(!WIFEXITED(status));
258 - i = *(unsigned int *)&a[[1]];
263 - ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
264 - conftest.c $LIBS > /dev/null 2>&1
265 - # Oopz 4.3 BSD doesn't have this. Sorry.
266 - if test ! -x conftest ; then
267 - dnl failed to compile for some reason
268 - ac_cv_lbl_unaligned_fail=yes
270 - ./conftest > conftest.out
271 - if test ! -s conftest.out ; then
272 - ac_cv_lbl_unaligned_fail=yes
274 - ac_cv_lbl_unaligned_fail=no
277 - rm -f conftest* core core.conftest
280 - AC_MSG_RESULT($ac_cv_lbl_unaligned_fail)
281 - if test $ac_cv_lbl_unaligned_fail = yes ; then
282 - AC_DEFINE(LBL_ALIGN)
288 -dnl Checks endianess
292 -dnl AC_LIBNET_ENDIAN_CHECK
296 -dnl LIBNET_BIG_ENDIAN = 1 or
297 -dnl LIBNET_LIL_ENDIAN = 1
300 -AC_DEFUN(AC_LIBNET_ENDIAN_CHECK,
301 - [AC_MSG_CHECKING(machine endianess)
303 - cat > conftest.c << EOF
305 -# include <stdlib.h>
312 - char c[[sizeof(short)]];
316 - if (sizeof (short) == 2)
318 - if (un.c [[0]] == 1 && un.c [[1]] == 2)
324 - if (un.c [[0]] == 2 && un.c [[1]] == 1)
334 - return (EXIT_SUCCESS);
337 - ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS > /dev/null 2>&1
338 - # Oopz 4.3 BSD doesn't have this. Sorry.
339 - if test ! -x conftest ; then
340 -dnl failed to compile for some reason
341 - ac_cv_libnet_endianess=unknown
343 - ./conftest > conftest.out
344 - result=`cat conftest.out`
345 - if test $result = "B"; then
346 - ac_cv_libnet_endianess=big
347 - elif test $result = "L"; then
348 - ac_cv_libnet_endianess=lil
350 - ac_cv_libnet_endianess=unknown
353 - rm -f conftest* core core.conftest
355 - AC_MSG_RESULT($ac_cv_libnet_endianess)
357 - if test $ac_cv_libnet_endianess = big ; then
358 - AC_DEFINE(LIBNET_BIG_ENDIAN)
359 - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
360 - elif test $ac_cv_libnet_endianess = lil ; then
361 - AC_DEFINE(LIBNET_LIL_ENDIAN)
362 - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
366 --- Libnet-1.0.2a/acinclude.m4~configure
367 +++ Libnet-1.0.2a/acinclude.m4
369 AC_CACHE_VAL(ac_cv_lbl_unaligned_fail,
370 [case "$target_cpu" in
372 - alpha|hp*|mips|sparc)
373 + alpha|hp*|mips|sparc|arm)
374 ac_cv_lbl_unaligned_fail=yes
380 AC_DEFUN(AC_LIBNET_ENDIAN_CHECK,
381 - [AC_MSG_CHECKING(machine endianess)
382 + [AC_CACHE_CHECK([machine_endianness],
383 + ac_cv_libnet_endianess, [
385 cat > conftest.c << EOF
387 @@ -331,14 +332,15 @@
390 rm -f conftest* core core.conftest
392 - AC_MSG_RESULT($ac_cv_libnet_endianess)
395 if test $ac_cv_libnet_endianess = big ; then
396 AC_DEFINE(LIBNET_BIG_ENDIAN)
397 - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
398 + ENDIANESS="LIBNET_BIG_ENDIAN"
399 + LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
400 elif test $ac_cv_libnet_endianess = lil ; then
401 AC_DEFINE(LIBNET_LIL_ENDIAN)
402 - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
403 + ENDIANESS="LIBNET_LIL_ENDIAN"
404 + LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
408 --- Libnet-1.0.2a/configure~configure
409 +++ Libnet-1.0.2a/configure
413 # Guess values for system-dependent variables and create Makefiles.
414 -# Generated automatically using autoconf version 2.13
415 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
416 +# Generated by GNU Autoconf 2.57.
418 +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
419 +# Free Software Foundation, Inc.
420 # This configure script is free software; the Free Software Foundation
421 # gives unlimited permission to copy, distribute and modify it.
422 +## --------------------- ##
423 +## M4sh Initialization. ##
424 +## --------------------- ##
428 +# Be Bourne compatible
429 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
432 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
433 + # is contrary to our usage. Disable this feature.
434 + alias -g '${1+"$@"}'='"$@"'
435 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
439 +# Support unset when possible.
440 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
447 +# Work around bugs in pre-3.0 UWIN ksh.
448 +$as_unset ENV MAIL MAILPATH
455 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
456 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
457 + LC_TELEPHONE LC_TIME
459 + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
460 + eval $as_var=C; export $as_var
466 +# Required to use basename.
467 +if expr a : '\(a\)' >/dev/null 2>&1; then
473 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
474 + as_basename=basename
480 +# Name of the executable.
481 +as_me=`$as_basename "$0" ||
482 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
483 + X"$0" : 'X\(//\)$' \| \
484 + X"$0" : 'X\(/\)$' \| \
485 + . : '\(.\)' 2>/dev/null ||
487 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
488 + /^X\/\(\/\/\)$/{ s//\1/; q; }
489 + /^X\/\(\/\).*/{ s//\1/; q; }
493 +# PATH needs CR, and LINENO needs CR and PATH.
494 +# Avoid depending upon Character Ranges.
495 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
496 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
497 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
498 +as_cr_digits='0123456789'
499 +as_cr_alnum=$as_cr_Letters$as_cr_digits
501 +# The user is always right.
502 +if test "${PATH_SEPARATOR+set}" != set; then
503 + echo "#! /bin/sh" >conf$$.sh
504 + echo "exit 0" >>conf$$.sh
506 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
515 + as_lineno_1=$LINENO
516 + as_lineno_2=$LINENO
517 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
518 + test "x$as_lineno_1" != "x$as_lineno_2" &&
519 + test "x$as_lineno_3" = "x$as_lineno_2" || {
520 + # Find who we are. Look in the path if we contain no path at all
523 + *[\\/]* ) as_myself=$0 ;;
524 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
528 + test -z "$as_dir" && as_dir=.
529 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
534 + # We did not find ourselves, most probably we were run as `sh COMMAND'
535 + # in which case we are not to be found in the path.
536 + if test "x$as_myself" = x; then
539 + if test ! -f "$as_myself"; then
540 + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
541 + { (exit 1); exit 1; }; }
543 + case $CONFIG_SHELL in
545 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
546 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
549 + test -z "$as_dir" && as_dir=.
550 + for as_base in sh bash ksh sh5; do
553 + if ("$as_dir/$as_base" -c '
554 + as_lineno_1=$LINENO
555 + as_lineno_2=$LINENO
556 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
557 + test "x$as_lineno_1" != "x$as_lineno_2" &&
558 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
559 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
560 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
561 + CONFIG_SHELL=$as_dir/$as_base
562 + export CONFIG_SHELL
563 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
571 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
572 + # uniformly replaced by the line number. The first 'sed' inserts a
573 + # line-number line before each line; the second 'sed' does the real
574 + # work. The second script uses 'N' to pair each line-number line
575 + # with the numbered line, and appends trailing '-' during
576 + # substitution so that $LINENO is not a special case at line end.
577 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
578 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
579 + sed '=' <$as_myself |
584 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
587 + s,^['$as_cr_digits']*\n,,
588 + ' >$as_me.lineno &&
589 + chmod +x $as_me.lineno ||
590 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
591 + { (exit 1); exit 1; }; }
593 + # Don't try to exec as it changes $[0], causing all sort of problems
594 + # (the dirname of $[0] is not the place where we might find the
595 + # original and so on. Autoconf is especially sensible to this).
597 + # Exit status is that of the last command.
602 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
603 + *c*,-n*) ECHO_N= ECHO_C='
605 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
606 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
609 +if expr a : '\(a\)' >/dev/null 2>&1; then
615 +rm -f conf$$ conf$$.exe conf$$.file
617 +if ln -s conf$$.file conf$$ 2>/dev/null; then
618 + # We could just check for DJGPP; but this test a) works b) is more generic
619 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
620 + if test -f conf$$.exe; then
621 + # Don't use ln at all; we don't have any links
626 +elif ln conf$$.file conf$$ 2>/dev/null; then
631 +rm -f conf$$ conf$$.exe conf$$.file
633 +if mkdir -p . 2>/dev/null; then
639 +as_executable_p="test -f"
641 +# Sed expression to map a string onto a valid CPP name.
642 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
644 +# Sed expression to map a string onto a valid variable name.
645 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
649 +# We need space, tab and new line, in precisely that order.
659 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
660 +# so uname gets run too.
661 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
668 ac_default_prefix=/usr/local
669 -# Any additions from configure.in:
670 +ac_config_libobj_dir=.
675 +SHELL=${CONFIG_SHELL-/bin/sh}
677 +# Maximum number of lines to put in a shell here document.
678 +# This variable seems obsolete. It should probably be removed, and
679 +# only ac_max_sed_lines should be used.
680 +: ${ac_max_here_lines=38}
682 +# Identity of this package.
689 +ac_unique_file="src/libnet_build_ip.c"
690 ac_default_prefix=/usr
692 - --with-pf_packet=[yes,no] override defaults"
694 - --with-fast_x86_check=[yes,no] override defaults"
695 +# Factoring default headers for most tests.
696 +ac_includes_default="\
698 +#if HAVE_SYS_TYPES_H
699 +# include <sys/types.h>
702 +# include <sys/stat.h>
705 +# include <stdlib.h>
706 +# include <stddef.h>
709 +# include <stdlib.h>
713 +# if !STDC_HEADERS && HAVE_MEMORY_H
714 +# include <memory.h>
716 +# include <string.h>
719 +# include <strings.h>
722 +# include <inttypes.h>
725 +# include <stdint.h>
729 +# include <unistd.h>
732 +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 LL_INT_TYPE_UC LL_INT_TYPE LIB_PREFIX INC_PREFIX MAN_PREFIX BIN_PREFIX RANLIB AR LN ADDITIONAL_LIBS LIBNET_CONFIG_DEFINES LIBNET_CONFIG_LIBS LIBNET_CONFIG_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE CPP EGREP LIBOBJS LTLIBOBJS'
735 # Initialize some variables set by options.
737 +ac_init_version=false
738 # The variables have the same names as the options, with
739 # dashes changed to underlines.
741 -cache_file=./config.cache
742 +cache_file=/dev/null
759 +# Installation directory options.
760 +# These are left unexpanded so users can "make install exec_prefix=/foo"
761 +# and all the variables that are supposed to be based on exec_prefix
762 +# by default will actually change.
763 +# Use braces instead of parens because sh, perl, etc. also accept them.
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
768 infodir='${prefix}/info'
769 mandir='${prefix}/man'
771 -# Initialize some other variables.
774 -SHELL=${CONFIG_SHELL-/bin/sh}
775 -# Maximum number of lines to put in a shell here document.
776 -ac_max_here_lines=12
782 # If the previous option needs an argument, assign it.
783 if test -n "$ac_prev"; then
784 eval "$ac_prev=\$ac_option"
789 - case "$ac_option" in
790 - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
793 + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
795 # Accept the important Cygnus configure options, so we can diagnose typos.
797 - case "$ac_option" in
800 -bindir | --bindir | --bindi | --bind | --bin | --bi)
802 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803 - bindir="$ac_optarg" ;;
804 + bindir=$ac_optarg ;;
806 -build | --build | --buil | --bui | --bu)
808 + ac_prev=build_alias ;;
809 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
810 - build="$ac_optarg" ;;
811 + build_alias=$ac_optarg ;;
813 -cache-file | --cache-file | --cache-fil | --cache-fi \
814 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815 ac_prev=cache_file ;;
816 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
818 - cache_file="$ac_optarg" ;;
819 + cache_file=$ac_optarg ;;
821 + --config-cache | -C)
822 + cache_file=config.cache ;;
824 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
826 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
828 - datadir="$ac_optarg" ;;
829 + datadir=$ac_optarg ;;
831 -disable-* | --disable-*)
832 - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
833 + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
834 # Reject names that are not valid shell variable names.
835 - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
836 - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
838 - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
839 - eval "enable_${ac_feature}=no" ;;
840 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
841 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 + { (exit 1); exit 1; }; }
843 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
844 + eval "enable_$ac_feature=no" ;;
846 -enable-* | --enable-*)
847 - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
848 + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
849 # Reject names that are not valid shell variable names.
850 - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
851 - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
853 - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
854 - case "$ac_option" in
856 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
857 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
858 + { (exit 1); exit 1; }; }
859 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
861 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
864 - eval "enable_${ac_feature}='$ac_optarg'" ;;
865 + eval "enable_$ac_feature='$ac_optarg'" ;;
867 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
868 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
869 @@ -130,95 +421,47 @@
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 - exec_prefix="$ac_optarg" ;;
874 + exec_prefix=$ac_optarg ;;
876 -gas | --gas | --ga | --g)
877 # Obsolete; use --with-gas.
880 - -help | --help | --hel | --he)
881 - # Omit some internal or obsolete options to make the list less imposing.
882 - # This message is too long to be a string in the A/UX 3.1 sh.
884 -Usage: configure [options] [host]
885 -Options: [defaults in brackets after descriptions]
887 - --cache-file=FILE cache test results in FILE
888 - --help print this message
889 - --no-create do not create output files
890 - --quiet, --silent do not print \`checking...' messages
891 - --version print the version of autoconf that created configure
892 -Directory and file names:
893 - --prefix=PREFIX install architecture-independent files in PREFIX
894 - [$ac_default_prefix]
895 - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
897 - --bindir=DIR user executables in DIR [EPREFIX/bin]
898 - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
899 - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
900 - --datadir=DIR read-only architecture-independent data in DIR
902 - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
903 - --sharedstatedir=DIR modifiable architecture-independent data in DIR
905 - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
906 - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
907 - --includedir=DIR C header files in DIR [PREFIX/include]
908 - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
909 - --infodir=DIR info documentation in DIR [PREFIX/info]
910 - --mandir=DIR man documentation in DIR [PREFIX/man]
911 - --srcdir=DIR find the sources in DIR [configure dir or ..]
912 - --program-prefix=PREFIX prepend PREFIX to installed program names
913 - --program-suffix=SUFFIX append SUFFIX to installed program names
914 - --program-transform-name=PROGRAM
915 - run sed PROGRAM on installed program names
919 - --build=BUILD configure for building on BUILD [BUILD=HOST]
920 - --host=HOST configure for HOST [guessed]
921 - --target=TARGET configure for TARGET [TARGET=HOST]
922 -Features and packages:
923 - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
924 - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
925 - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
926 - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
927 - --x-includes=DIR X include files are in DIR
928 - --x-libraries=DIR X library files are in DIR
930 - if test -n "$ac_help"; then
931 - echo "--enable and --with options recognized:$ac_help"
934 + -help | --help | --hel | --he | -h)
935 + ac_init_help=long ;;
936 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 + ac_init_help=recursive ;;
938 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 + ac_init_help=short ;;
941 -host | --host | --hos | --ho)
943 + ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 - host="$ac_optarg" ;;
946 + host_alias=$ac_optarg ;;
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 - includedir="$ac_optarg" ;;
954 + includedir=$ac_optarg ;;
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 - infodir="$ac_optarg" ;;
960 + infodir=$ac_optarg ;;
962 -libdir | --libdir | --libdi | --libd)
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
965 - libdir="$ac_optarg" ;;
966 + libdir=$ac_optarg ;;
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 - libexecdir="$ac_optarg" ;;
974 + libexecdir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst \
978 @@ -227,19 +470,19 @@
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
981 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
982 - localstatedir="$ac_optarg" ;;
983 + localstatedir=$ac_optarg ;;
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 - mandir="$ac_optarg" ;;
989 + mandir=$ac_optarg ;;
992 # Obsolete; use --without-fp.
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 - | --no-cr | --no-c)
997 + | --no-cr | --no-c | -n)
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 @@ -253,26 +496,26 @@
1002 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005 - oldincludedir="$ac_optarg" ;;
1006 + oldincludedir=$ac_optarg ;;
1008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1011 - prefix="$ac_optarg" ;;
1012 + prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 - program_prefix="$ac_optarg" ;;
1020 + program_prefix=$ac_optarg ;;
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 - program_suffix="$ac_optarg" ;;
1028 + program_suffix=$ac_optarg ;;
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 - program_transform_name="$ac_optarg" ;;
1037 + program_transform_name=$ac_optarg ;;
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045 - sbindir="$ac_optarg" ;;
1046 + sbindir=$ac_optarg ;;
1048 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050 @@ -310,58 +553,57 @@
1051 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 - sharedstatedir="$ac_optarg" ;;
1055 + sharedstatedir=$ac_optarg ;;
1057 -site | --site | --sit)
1059 -site=* | --site=* | --sit=*)
1060 - site="$ac_optarg" ;;
1061 + site=$ac_optarg ;;
1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066 - srcdir="$ac_optarg" ;;
1067 + srcdir=$ac_optarg ;;
1069 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070 | --syscon | --sysco | --sysc | --sys | --sy)
1071 ac_prev=sysconfdir ;;
1072 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074 - sysconfdir="$ac_optarg" ;;
1075 + sysconfdir=$ac_optarg ;;
1077 -target | --target | --targe | --targ | --tar | --ta | --t)
1079 + ac_prev=target_alias ;;
1080 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081 - target="$ac_optarg" ;;
1082 + target_alias=$ac_optarg ;;
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 - -version | --version | --versio | --versi | --vers)
1088 - echo "configure generated by autoconf version 2.13"
1090 + -version | --version | --versio | --versi | --vers | -V)
1091 + ac_init_version=: ;;
1094 - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
1095 + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
1098 - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1100 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1101 + { echo "$as_me: error: invalid package name: $ac_package" >&2
1102 + { (exit 1); exit 1; }; }
1103 ac_package=`echo $ac_package| sed 's/-/_/g'`
1104 - case "$ac_option" in
1106 + case $ac_option in
1107 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1110 - eval "with_${ac_package}='$ac_optarg'" ;;
1111 + eval "with_$ac_package='$ac_optarg'" ;;
1113 -without-* | --without-*)
1114 - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
1115 + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
1118 - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1120 - ac_package=`echo $ac_package| sed 's/-/_/g'`
1121 - eval "with_${ac_package}=no" ;;
1122 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1123 + { echo "$as_me: error: invalid package name: $ac_package" >&2
1124 + { (exit 1); exit 1; }; }
1125 + ac_package=`echo $ac_package | sed 's/-/_/g'`
1126 + eval "with_$ac_package=no" ;;
1129 # Obsolete; use --with-x.
1130 @@ -372,99 +614,110 @@
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 - x_includes="$ac_optarg" ;;
1135 + x_includes=$ac_optarg ;;
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142 - x_libraries="$ac_optarg" ;;
1143 + x_libraries=$ac_optarg ;;
1145 - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
1146 + -*) { echo "$as_me: error: unrecognized option: $ac_option
1147 +Try \`$0 --help' for more information." >&2
1148 + { (exit 1); exit 1; }; }
1152 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 + # Reject names that are not valid shell variable names.
1154 + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1155 + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1156 + { (exit 1); exit 1; }; }
1157 + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
1158 + eval "$ac_envvar='$ac_optarg'"
1159 + export $ac_envvar ;;
1162 - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
1163 - echo "configure: warning: $ac_option: invalid host type" 1>&2
1165 - if test "x$nonopt" != xNONE; then
1166 - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
1168 - nonopt="$ac_option"
1169 + # FIXME: should be removed in autoconf 3.0.
1170 + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1179 if test -n "$ac_prev"; then
1180 - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
1183 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1185 -# File descriptor usage:
1188 -# 2 errors and warnings
1189 -# 3 some systems may open it to /dev/tty
1190 -# 4 used on the Kubota Titan
1191 -# 6 checking for... messages and results
1192 -# 5 compiler messages saved in config.log
1193 -if test "$silent" = yes; then
1197 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 + { echo "$as_me: error: missing argument to $ac_option" >&2
1199 + { (exit 1); exit 1; }; }
1201 -exec 5>./config.log
1204 -This file contains any messages produced by compilers while
1205 -running configure, to aid debugging if configure makes a mistake.
1207 +# Be sure to have absolute paths.
1208 +for ac_var in exec_prefix prefix
1210 + eval ac_val=$`echo $ac_var`
1212 + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1213 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 + { (exit 1); exit 1; }; };;
1218 -# Strip out --no-create and --no-recursion so they do not pile up.
1219 -# Also quote any args containing shell metacharacters.
1222 +# Be sure to have absolute paths.
1223 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1224 + localstatedir libdir includedir oldincludedir infodir mandir
1227 - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1228 - | --no-cr | --no-c) ;;
1229 - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1230 - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1231 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
1232 - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1233 - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
1234 + eval ac_val=$`echo $ac_var`
1236 + [\\/$]* | ?:[\\/]* ) ;;
1237 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1238 + { (exit 1); exit 1; }; };;
1243 -# Only set these to C if already set. These must not be set unconditionally
1244 -# because not all systems understand e.g. LANG=C (notably SCO).
1245 -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
1246 -# Non-C LC_CTYPE values break the ctype check.
1247 -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
1248 -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
1249 -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
1250 -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
1251 +# There might be people who depend on the old broken behavior: `$host'
1252 +# used to hold the argument of --host etc.
1253 +# FIXME: To remove some day.
1256 +target=$target_alias
1258 -# confdefs.h avoids OS command line length limits that DEFS can exceed.
1259 -rm -rf conftest* confdefs.h
1260 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1262 +# FIXME: To remove some day.
1263 +if test "x$host_alias" != x; then
1264 + if test "x$build_alias" = x; then
1265 + cross_compiling=maybe
1266 + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1267 + If a cross compiler is detected then cross compile mode will be used." >&2
1268 + elif test "x$build_alias" != "x$host_alias"; then
1269 + cross_compiling=yes
1274 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276 +test "$silent" = yes && exec 6>/dev/null
1278 -# A filename unique to this package, relative to the directory that
1279 -# configure is in, which we can look for to find out if srcdir is correct.
1280 -ac_unique_file=src/libnet_build_ip.c
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then its parent.
1287 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
1288 - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
1289 + ac_confdir=`(dirname "$0") 2>/dev/null ||
1290 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 + X"$0" : 'X\(//\)[^/]' \| \
1292 + X"$0" : 'X\(//\)$' \| \
1293 + X"$0" : 'X\(/\)' \| \
1294 + . : '\(.\)' 2>/dev/null ||
1296 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1297 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1298 + /^X\(\/\/\)$/{ s//\1/; q; }
1299 + /^X\(\/\).*/{ s//\1/; q; }
1302 if test ! -r $srcdir/$ac_unique_file; then
1304 @@ -474,13 +727,433 @@
1306 if test ! -r $srcdir/$ac_unique_file; then
1307 if test "$ac_srcdir_defaulted" = yes; then
1308 - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
1309 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1310 + { (exit 1); exit 1; }; }
1312 - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
1313 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1314 + { (exit 1); exit 1; }; }
1317 -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
1318 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
1319 + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1320 + { (exit 1); exit 1; }; }
1321 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
1322 +ac_env_build_alias_set=${build_alias+set}
1323 +ac_env_build_alias_value=$build_alias
1324 +ac_cv_env_build_alias_set=${build_alias+set}
1325 +ac_cv_env_build_alias_value=$build_alias
1326 +ac_env_host_alias_set=${host_alias+set}
1327 +ac_env_host_alias_value=$host_alias
1328 +ac_cv_env_host_alias_set=${host_alias+set}
1329 +ac_cv_env_host_alias_value=$host_alias
1330 +ac_env_target_alias_set=${target_alias+set}
1331 +ac_env_target_alias_value=$target_alias
1332 +ac_cv_env_target_alias_set=${target_alias+set}
1333 +ac_cv_env_target_alias_value=$target_alias
1334 +ac_env_CC_set=${CC+set}
1335 +ac_env_CC_value=$CC
1336 +ac_cv_env_CC_set=${CC+set}
1337 +ac_cv_env_CC_value=$CC
1338 +ac_env_CFLAGS_set=${CFLAGS+set}
1339 +ac_env_CFLAGS_value=$CFLAGS
1340 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
1341 +ac_cv_env_CFLAGS_value=$CFLAGS
1342 +ac_env_LDFLAGS_set=${LDFLAGS+set}
1343 +ac_env_LDFLAGS_value=$LDFLAGS
1344 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
1345 +ac_cv_env_LDFLAGS_value=$LDFLAGS
1346 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
1347 +ac_env_CPPFLAGS_value=$CPPFLAGS
1348 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
1349 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1350 +ac_env_CPP_set=${CPP+set}
1351 +ac_env_CPP_value=$CPP
1352 +ac_cv_env_CPP_set=${CPP+set}
1353 +ac_cv_env_CPP_value=$CPP
1356 +# Report the --help message.
1358 +if test "$ac_init_help" = "long"; then
1359 + # Omit some internal or obsolete options to make the list less imposing.
1360 + # This message is too long to be a string in the A/UX 3.1 sh.
1362 +\`configure' configures this package to adapt to many kinds of systems.
1364 +Usage: $0 [OPTION]... [VAR=VALUE]...
1366 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367 +VAR=VALUE. See below for descriptions of some of the useful variables.
1369 +Defaults for the options are specified in brackets.
1372 + -h, --help display this help and exit
1373 + --help=short display options specific to this package
1374 + --help=recursive display the short help of all the included packages
1375 + -V, --version display version information and exit
1376 + -q, --quiet, --silent do not print \`checking...' messages
1377 + --cache-file=FILE cache test results in FILE [disabled]
1378 + -C, --config-cache alias for \`--cache-file=config.cache'
1379 + -n, --no-create do not create output files
1380 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
1385 +Installation directories:
1386 + --prefix=PREFIX install architecture-independent files in PREFIX
1387 + [$ac_default_prefix]
1388 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1391 +By default, \`make install' will install all the files in
1392 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1393 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394 +for instance \`--prefix=\$HOME'.
1396 +For better control, use the options below.
1398 +Fine tuning of the installation directories:
1399 + --bindir=DIR user executables [EPREFIX/bin]
1400 + --sbindir=DIR system admin executables [EPREFIX/sbin]
1401 + --libexecdir=DIR program executables [EPREFIX/libexec]
1402 + --datadir=DIR read-only architecture-independent data [PREFIX/share]
1403 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 + --libdir=DIR object code libraries [EPREFIX/lib]
1407 + --includedir=DIR C header files [PREFIX/include]
1408 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
1409 + --infodir=DIR info documentation [PREFIX/info]
1410 + --mandir=DIR man documentation [PREFIX/man]
1416 + --build=BUILD configure for building on BUILD [guessed]
1417 + --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 + --target=TARGET configure for building compilers for TARGET [HOST]
1422 +if test -n "$ac_init_help"; then
1427 + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 + --with-pf_packet=yes,no override defaults
1430 + --with-fast_x86_check=yes,no override defaults
1432 +Some influential environment variables:
1433 + CC C compiler command
1434 + CFLAGS C compiler flags
1435 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 + nonstandard directory <lib dir>
1437 + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1438 + headers in a nonstandard directory <include dir>
1439 + CPP C preprocessor
1441 +Use these variables to override the choices made by `configure' or to help
1442 +it to find libraries and programs with nonstandard names/locations.
1447 +if test "$ac_init_help" = "recursive"; then
1448 + # If there are subdirs, report their specific --help.
1450 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1451 + test -d $ac_dir || continue
1454 +if test "$ac_dir" != .; then
1455 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1456 + # A "../" for each directory in $ac_dir_suffix.
1457 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1459 + ac_dir_suffix= ac_top_builddir=
1463 + .) # No --srcdir option. We are building in place.
1465 + if test -z "$ac_top_builddir"; then
1468 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1470 + [\\/]* | ?:[\\/]* ) # Absolute path.
1471 + ac_srcdir=$srcdir$ac_dir_suffix;
1472 + ac_top_srcdir=$srcdir ;;
1473 + *) # Relative path.
1474 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1475 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
1477 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1479 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1480 +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1481 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1482 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1485 + # Check for guested configure; otherwise get Cygnus style configure.
1486 + if test -f $ac_srcdir/configure.gnu; then
1488 + $SHELL $ac_srcdir/configure.gnu --help=recursive
1489 + elif test -f $ac_srcdir/configure; then
1491 + $SHELL $ac_srcdir/configure --help=recursive
1492 + elif test -f $ac_srcdir/configure.ac ||
1493 + test -f $ac_srcdir/configure.in; then
1495 + $ac_configure --help
1497 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503 +test -n "$ac_init_help" && exit 0
1504 +if $ac_init_version; then
1507 +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1508 +Free Software Foundation, Inc.
1509 +This configure script is free software; the Free Software Foundation
1510 +gives unlimited permission to copy, distribute and modify it.
1516 +This file contains any messages produced by compilers while
1517 +running configure, to aid debugging if configure makes a mistake.
1519 +It was created by $as_me, which was
1520 +generated by GNU Autoconf 2.57. Invocation command line was
1531 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1532 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
1533 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
1534 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
1535 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
1537 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1538 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1540 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1541 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1542 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1543 +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1544 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1545 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1546 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1550 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 +for as_dir in $PATH
1554 + test -z "$as_dir" && as_dir=.
1555 + echo "PATH: $as_dir"
1570 +# Keep a trace of the command line.
1571 +# Strip out --no-create and --no-recursion so they do not pile up.
1572 +# Strip out --silent because we don't want to record it for future runs.
1573 +# Also quote any args containing shell meta-characters.
1574 +# Make two passes to allow for proper duplicate-argument suppression.
1576 +ac_configure_args0=
1577 +ac_configure_args1=
1579 +ac_must_keep_next=false
1585 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1586 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587 + | -silent | --silent | --silen | --sile | --sil)
1589 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1590 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1593 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1595 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1596 + if test $ac_must_keep_next = true; then
1597 + ac_must_keep_next=false # Got value, back to normal.
1600 + *=* | --config-cache | -C | -disable-* | --disable-* \
1601 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1602 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1603 + | -with-* | --with-* | -without-* | --without-* | --x)
1604 + case "$ac_configure_args0 " in
1605 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1608 + -* ) ac_must_keep_next=true ;;
1611 + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1612 + # Get rid of the leading space.
1618 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1619 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1621 +# When interrupted or exit'd, cleanup temporary files, and complete
1622 +# config.log. We remove comments because anyway the quotes in there
1623 +# would cause problems or look ugly.
1624 +# WARNING: Be sure not to use single quotes in there, as some shells,
1625 +# such as our DU 5.0 friend, will then `close' the trap.
1626 +trap 'exit_status=$?
1627 + # Save into config.log some information that might help in debugging.
1632 +## ---------------- ##
1633 +## Cache variables. ##
1634 +## ---------------- ##
1637 + # The following way of writing the cache mishandles newlines in values,
1640 + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1643 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1644 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1648 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1655 +## ----------------- ##
1656 +## Output variables. ##
1657 +## ----------------- ##
1660 + for ac_var in $ac_subst_vars
1662 + eval ac_val=$`echo $ac_var`
1663 + echo "$ac_var='"'"'$ac_val'"'"'"
1667 + if test -n "$ac_subst_files"; then
1669 +## ------------- ##
1670 +## Output files. ##
1671 +## ------------- ##
1674 + for ac_var in $ac_subst_files
1676 + eval ac_val=$`echo $ac_var`
1677 + echo "$ac_var='"'"'$ac_val'"'"'"
1682 + if test -s confdefs.h; then
1689 + sed "/^$/d" confdefs.h | sort
1692 + test "$ac_signal" != 0 &&
1693 + echo "$as_me: caught signal $ac_signal"
1694 + echo "$as_me: exit $exit_status"
1696 + rm -f core core.* *.core &&
1697 + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1700 +for ac_signal in 1 2 13 15; do
1701 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1705 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
1706 +rm -rf conftest* confdefs.h
1707 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1710 +# Predefined preprocessor variables.
1712 +cat >>confdefs.h <<_ACEOF
1713 +#define PACKAGE_NAME "$PACKAGE_NAME"
1717 +cat >>confdefs.h <<_ACEOF
1718 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1722 +cat >>confdefs.h <<_ACEOF
1723 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
1727 +cat >>confdefs.h <<_ACEOF
1728 +#define PACKAGE_STRING "$PACKAGE_STRING"
1732 +cat >>confdefs.h <<_ACEOF
1733 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1737 +# Let the site file select an alternate cache file if it wants to.
1738 # Prefer explicitly selected file to automatically selected ones.
1739 if test -z "$CONFIG_SITE"; then
1740 if test "x$prefix" != xNONE; then
1741 @@ -491,44 +1164,109 @@
1743 for ac_site_file in $CONFIG_SITE; do
1744 if test -r "$ac_site_file"; then
1745 - echo "loading site script $ac_site_file"
1746 + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1747 +echo "$as_me: loading site script $ac_site_file" >&6;}
1748 + sed 's/^/| /' "$ac_site_file" >&5
1753 if test -r "$cache_file"; then
1754 - echo "loading cache $cache_file"
1756 + # Some versions of bash will fail to source /dev/null (special
1757 + # files actually), so we avoid doing that.
1758 + if test -f "$cache_file"; then
1759 + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1760 +echo "$as_me: loading cache $cache_file" >&6;}
1761 + case $cache_file in
1762 + [\\/]* | ?:[\\/]* ) . $cache_file;;
1763 + *) . ./$cache_file;;
1767 - echo "creating cache $cache_file"
1769 + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1770 +echo "$as_me: creating cache $cache_file" >&6;}
1774 +# Check that the precious variables saved in the cache have kept the same
1776 +ac_cache_corrupted=false
1777 +for ac_var in `(set) 2>&1 |
1778 + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1779 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
1780 + eval ac_new_set=\$ac_env_${ac_var}_set
1781 + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1782 + eval ac_new_val="\$ac_env_${ac_var}_value"
1783 + case $ac_old_set,$ac_new_set in
1785 + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1786 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1787 + ac_cache_corrupted=: ;;
1789 + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1790 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1791 + ac_cache_corrupted=: ;;
1794 + if test "x$ac_old_val" != "x$ac_new_val"; then
1795 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1796 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1797 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1798 +echo "$as_me: former value: $ac_old_val" >&2;}
1799 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1800 +echo "$as_me: current value: $ac_new_val" >&2;}
1801 + ac_cache_corrupted=:
1804 + # Pass precious variables to config.status.
1805 + if test "$ac_new_set" = set; then
1806 + case $ac_new_val in
1807 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1808 + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1809 + *) ac_arg=$ac_var=$ac_new_val ;;
1811 + case " $ac_configure_args " in
1812 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1813 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1817 +if $ac_cache_corrupted; then
1818 + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1819 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1820 + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1821 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1822 + { (exit 1); exit 1; }; }
1826 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1827 ac_cpp='$CPP $CPPFLAGS'
1828 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1829 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1830 -cross_compiling=$ac_cv_prog_cc_cross
1831 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1853 -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
1854 - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
1855 - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
1859 - ac_n=-n ac_c= ac_t=
1862 - ac_n= ac_c='\c' ac_t=
1868 -echo "$ac_t""Beginning autoconfiguration process for libnet-$VER..." 1>&6
1869 +echo "$as_me:$LINENO: result: Beginning autoconfiguration process for libnet-$VER..." >&5
1870 +echo "${ECHO_T}Beginning autoconfiguration process for libnet-$VER..." >&6
1874 @@ -554,318 +1292,746 @@
1876 ac_install_sh="$ac_aux_dir/install.sh -c"
1878 + elif test -f $ac_dir/shtool; then
1879 + ac_aux_dir=$ac_dir
1880 + ac_install_sh="$ac_aux_dir/shtool install -c"
1884 if test -z "$ac_aux_dir"; then
1885 - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1886 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1887 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1888 + { (exit 1); exit 1; }; }
1890 -ac_config_guess=$ac_aux_dir/config.guess
1891 -ac_config_sub=$ac_aux_dir/config.sub
1892 -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1895 -# Do some error checking and defaulting for the host and target type.
1897 -# configure --host=HOST --target=TARGET --build=BUILD NONOPT
1900 -# 1. You are not allowed to specify --host, --target, and nonopt at the
1902 -# 2. Host defaults to nonopt.
1903 -# 3. If nonopt is not specified, then host defaults to the current host,
1904 -# as determined by config.guess.
1905 -# 4. Target and build default to nonopt.
1906 -# 5. If nonopt is not specified, then target and build default to host.
1908 -# The aliases save the names the user supplied, while $host etc.
1909 -# will get canonicalized.
1910 -case $host---$target---$nonopt in
1911 -NONE---*---* | *---NONE---* | *---*---NONE) ;;
1912 -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1915 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1916 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1917 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1919 # Make sure we can run config.sub.
1920 -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1921 -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1923 +$ac_config_sub sun4 >/dev/null 2>&1 ||
1924 + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1925 +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1926 + { (exit 1); exit 1; }; }
1928 -echo $ac_n "checking host system type""... $ac_c" 1>&6
1929 -echo "configure:595: checking host system type" >&5
1930 +echo "$as_me:$LINENO: checking build system type" >&5
1931 +echo $ECHO_N "checking build system type... $ECHO_C" >&6
1932 +if test "${ac_cv_build+set}" = set; then
1933 + echo $ECHO_N "(cached) $ECHO_C" >&6
1935 + ac_cv_build_alias=$build_alias
1936 +test -z "$ac_cv_build_alias" &&
1937 + ac_cv_build_alias=`$ac_config_guess`
1938 +test -z "$ac_cv_build_alias" &&
1939 + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1940 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1941 + { (exit 1); exit 1; }; }
1942 +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1943 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1944 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1945 + { (exit 1); exit 1; }; }
1948 -case "$host_alias" in
1952 - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1953 - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1955 - *) host_alias=$nonopt ;;
1959 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1960 +echo "${ECHO_T}$ac_cv_build" >&6
1962 +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1963 +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1964 +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1966 -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1967 -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1968 -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1969 -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1970 -echo "$ac_t""$host" 1>&6
1972 -echo $ac_n "checking target system type""... $ac_c" 1>&6
1973 -echo "configure:616: checking target system type" >&5
1974 +echo "$as_me:$LINENO: checking host system type" >&5
1975 +echo $ECHO_N "checking host system type... $ECHO_C" >&6
1976 +if test "${ac_cv_host+set}" = set; then
1977 + echo $ECHO_N "(cached) $ECHO_C" >&6
1979 + ac_cv_host_alias=$host_alias
1980 +test -z "$ac_cv_host_alias" &&
1981 + ac_cv_host_alias=$ac_cv_build_alias
1982 +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1983 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1984 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1985 + { (exit 1); exit 1; }; }
1987 -target_alias=$target
1988 -case "$target_alias" in
1991 - NONE) target_alias=$host_alias ;;
1992 - *) target_alias=$nonopt ;;
1996 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1997 +echo "${ECHO_T}$ac_cv_host" >&6
1999 +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2000 +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2001 +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2003 -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
2004 -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2005 -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2006 -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2007 -echo "$ac_t""$target" 1>&6
2009 -echo $ac_n "checking build system type""... $ac_c" 1>&6
2010 -echo "configure:634: checking build system type" >&5
2011 +echo "$as_me:$LINENO: checking target system type" >&5
2012 +echo $ECHO_N "checking target system type... $ECHO_C" >&6
2013 +if test "${ac_cv_target+set}" = set; then
2014 + echo $ECHO_N "(cached) $ECHO_C" >&6
2016 + ac_cv_target_alias=$target_alias
2017 +test "x$ac_cv_target_alias" = "x" &&
2018 + ac_cv_target_alias=$ac_cv_host_alias
2019 +ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2020 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2021 +echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2022 + { (exit 1); exit 1; }; }
2025 -case "$build_alias" in
2028 - NONE) build_alias=$host_alias ;;
2029 - *) build_alias=$nonopt ;;
2033 +echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2034 +echo "${ECHO_T}$ac_cv_target" >&6
2035 +target=$ac_cv_target
2036 +target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2037 +target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2038 +target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2040 -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
2041 -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2042 -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2043 -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2044 -echo "$ac_t""$build" 1>&6
2046 -test "$host_alias" != "$target_alias" &&
2047 +# The aliases save the names the user supplied, while $host etc.
2048 +# will get canonicalized.
2049 +test -n "$target_alias" &&
2050 test "$program_prefix$program_suffix$program_transform_name" = \
2052 program_prefix=${target_alias}-
2056 if test "$prefix" = "NONE"; then
2060 -# Extract the first word of "gcc", so it can be a program name with args.
2062 +ac_cpp='$CPP $CPPFLAGS'
2063 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2066 +if test -n "$ac_tool_prefix"; then
2067 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2068 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
2069 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 +if test "${ac_cv_prog_CC+set}" = set; then
2072 + echo $ECHO_N "(cached) $ECHO_C" >&6
2074 + if test -n "$CC"; then
2075 + ac_cv_prog_CC="$CC" # Let the user override the test.
2077 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 +for as_dir in $PATH
2081 + test -z "$as_dir" && as_dir=.
2082 + for ac_exec_ext in '' $ac_executable_extensions; do
2083 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
2085 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 +if test -n "$CC"; then
2095 + echo "$as_me:$LINENO: result: $CC" >&5
2096 +echo "${ECHO_T}$CC" >&6
2098 + echo "$as_me:$LINENO: result: no" >&5
2099 +echo "${ECHO_T}no" >&6
2103 +if test -z "$ac_cv_prog_CC"; then
2105 + # Extract the first word of "gcc", so it can be a program name with args.
2106 set dummy gcc; ac_word=$2
2107 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2108 -echo "configure:665: checking for $ac_word" >&5
2109 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2110 - echo $ac_n "(cached) $ac_c" 1>&6
2111 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2114 + echo $ECHO_N "(cached) $ECHO_C" >&6
2116 + if test -n "$ac_ct_CC"; then
2117 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2119 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 +for as_dir in $PATH
2123 + test -z "$as_dir" && as_dir=.
2124 + for ac_exec_ext in '' $ac_executable_extensions; do
2125 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2126 + ac_cv_prog_ac_ct_CC="gcc"
2127 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2136 +if test -n "$ac_ct_CC"; then
2137 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2138 +echo "${ECHO_T}$ac_ct_CC" >&6
2140 + echo "$as_me:$LINENO: result: no" >&5
2141 +echo "${ECHO_T}no" >&6
2146 + CC="$ac_cv_prog_CC"
2149 +if test -z "$CC"; then
2150 + if test -n "$ac_tool_prefix"; then
2151 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2152 +set dummy ${ac_tool_prefix}cc; ac_word=$2
2153 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155 +if test "${ac_cv_prog_CC+set}" = set; then
2156 + echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test -n "$CC"; then
2159 ac_cv_prog_CC="$CC" # Let the user override the test.
2161 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2163 - for ac_dir in $ac_dummy; do
2164 - test -z "$ac_dir" && ac_dir=.
2165 - if test -f $ac_dir/$ac_word; then
2166 - ac_cv_prog_CC="gcc"
2170 - IFS="$ac_save_ifs"
2171 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 +for as_dir in $PATH
2175 + test -z "$as_dir" && as_dir=.
2176 + for ac_exec_ext in '' $ac_executable_extensions; do
2177 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178 + ac_cv_prog_CC="${ac_tool_prefix}cc"
2179 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 -CC="$ac_cv_prog_CC"
2189 if test -n "$CC"; then
2190 - echo "$ac_t""$CC" 1>&6
2191 + echo "$as_me:$LINENO: result: $CC" >&5
2192 +echo "${ECHO_T}$CC" >&6
2194 - echo "$ac_t""no" 1>&6
2195 + echo "$as_me:$LINENO: result: no" >&5
2196 +echo "${ECHO_T}no" >&6
2200 +if test -z "$ac_cv_prog_CC"; then
2202 + # Extract the first word of "cc", so it can be a program name with args.
2203 +set dummy cc; ac_word=$2
2204 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2206 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2207 + echo $ECHO_N "(cached) $ECHO_C" >&6
2209 + if test -n "$ac_ct_CC"; then
2210 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2212 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 +for as_dir in $PATH
2216 + test -z "$as_dir" && as_dir=.
2217 + for ac_exec_ext in '' $ac_executable_extensions; do
2218 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2219 + ac_cv_prog_ac_ct_CC="cc"
2220 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2229 +if test -n "$ac_ct_CC"; then
2230 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2231 +echo "${ECHO_T}$ac_ct_CC" >&6
2233 + echo "$as_me:$LINENO: result: no" >&5
2234 +echo "${ECHO_T}no" >&6
2239 + CC="$ac_cv_prog_CC"
2243 if test -z "$CC"; then
2244 # Extract the first word of "cc", so it can be a program name with args.
2245 set dummy cc; ac_word=$2
2246 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2247 -echo "configure:695: checking for $ac_word" >&5
2248 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2249 - echo $ac_n "(cached) $ac_c" 1>&6
2250 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252 +if test "${ac_cv_prog_CC+set}" = set; then
2253 + echo $ECHO_N "(cached) $ECHO_C" >&6
2255 if test -n "$CC"; then
2256 ac_cv_prog_CC="$CC" # Let the user override the test.
2258 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2261 - for ac_dir in $ac_dummy; do
2262 - test -z "$ac_dir" && ac_dir=.
2263 - if test -f $ac_dir/$ac_word; then
2264 - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2265 - ac_prog_rejected=yes
2268 - ac_cv_prog_CC="cc"
2272 - IFS="$ac_save_ifs"
2273 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 +for as_dir in $PATH
2277 + test -z "$as_dir" && as_dir=.
2278 + for ac_exec_ext in '' $ac_executable_extensions; do
2279 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2281 + ac_prog_rejected=yes
2284 + ac_cv_prog_CC="cc"
2285 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 if test $ac_prog_rejected = yes; then
2292 # We found a bogon in the path, so make sure we never use it.
2293 set dummy $ac_cv_prog_CC
2295 - if test $# -gt 0; then
2296 + if test $# != 0; then
2297 # We chose a different compiler from the bogus one.
2298 # However, it has the same basename, so the bogon will be chosen
2299 # first if we set CC to just the basename; use the full file name.
2301 - set dummy "$ac_dir/$ac_word" "$@"
2303 - ac_cv_prog_CC="$@"
2304 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2309 -CC="$ac_cv_prog_CC"
2311 if test -n "$CC"; then
2312 - echo "$ac_t""$CC" 1>&6
2313 + echo "$as_me:$LINENO: result: $CC" >&5
2314 +echo "${ECHO_T}$CC" >&6
2316 - echo "$ac_t""no" 1>&6
2317 + echo "$as_me:$LINENO: result: no" >&5
2318 +echo "${ECHO_T}no" >&6
2321 - if test -z "$CC"; then
2322 - case "`uname -s`" in
2323 - *win32* | *WIN32*)
2324 - # Extract the first word of "cl", so it can be a program name with args.
2325 -set dummy cl; ac_word=$2
2326 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2327 -echo "configure:746: checking for $ac_word" >&5
2328 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2329 - echo $ac_n "(cached) $ac_c" 1>&6
2331 +if test -z "$CC"; then
2332 + if test -n "$ac_tool_prefix"; then
2335 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2336 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2337 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2339 +if test "${ac_cv_prog_CC+set}" = set; then
2340 + echo $ECHO_N "(cached) $ECHO_C" >&6
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2345 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2347 - for ac_dir in $ac_dummy; do
2348 - test -z "$ac_dir" && ac_dir=.
2349 - if test -f $ac_dir/$ac_word; then
2350 - ac_cv_prog_CC="cl"
2354 - IFS="$ac_save_ifs"
2355 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 +for as_dir in $PATH
2359 + test -z "$as_dir" && as_dir=.
2360 + for ac_exec_ext in '' $ac_executable_extensions; do
2361 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2363 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 -CC="$ac_cv_prog_CC"
2373 if test -n "$CC"; then
2374 - echo "$ac_t""$CC" 1>&6
2375 + echo "$as_me:$LINENO: result: $CC" >&5
2376 +echo "${ECHO_T}$CC" >&6
2378 - echo "$ac_t""no" 1>&6
2379 + echo "$as_me:$LINENO: result: no" >&5
2380 +echo "${ECHO_T}no" >&6
2385 + test -n "$CC" && break
2388 +if test -z "$CC"; then
2392 + # Extract the first word of "$ac_prog", so it can be a program name with args.
2393 +set dummy $ac_prog; ac_word=$2
2394 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2396 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2397 + echo $ECHO_N "(cached) $ECHO_C" >&6
2399 + if test -n "$ac_ct_CC"; then
2400 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2402 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 +for as_dir in $PATH
2406 + test -z "$as_dir" && as_dir=.
2407 + for ac_exec_ext in '' $ac_executable_extensions; do
2408 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2409 + ac_cv_prog_ac_ct_CC="$ac_prog"
2410 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2419 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2420 +if test -n "$ac_ct_CC"; then
2421 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2422 +echo "${ECHO_T}$ac_ct_CC" >&6
2424 + echo "$as_me:$LINENO: result: no" >&5
2425 +echo "${ECHO_T}no" >&6
2428 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2429 -echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2430 + test -n "$ac_ct_CC" && break
2434 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2435 -ac_cpp='$CPP $CPPFLAGS'
2436 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2437 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2438 -cross_compiling=$ac_cv_prog_cc_cross
2442 -cat > conftest.$ac_ext << EOF
2445 -#line 789 "configure"
2446 -#include "confdefs.h"
2450 -if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2451 - ac_cv_prog_cc_works=yes
2452 - # If we can't run a trivial program, we are probably using a cross compiler.
2453 - if (./conftest; exit) 2>/dev/null; then
2454 - ac_cv_prog_cc_cross=no
2455 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2456 +See \`config.log' for more details." >&5
2457 +echo "$as_me: error: no acceptable C compiler found in \$PATH
2458 +See \`config.log' for more details." >&2;}
2459 + { (exit 1); exit 1; }; }
2461 +# Provide some information about the compiler.
2462 +echo "$as_me:$LINENO:" \
2463 + "checking for C compiler version" >&5
2464 +ac_compiler=`set X $ac_compile; echo $2`
2465 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2466 + (eval $ac_compiler --version </dev/null >&5) 2>&5
2468 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 + (exit $ac_status); }
2470 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2471 + (eval $ac_compiler -v </dev/null >&5) 2>&5
2473 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 + (exit $ac_status); }
2475 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2476 + (eval $ac_compiler -V </dev/null >&5) 2>&5
2478 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 + (exit $ac_status); }
2481 +cat >conftest.$ac_ext <<_ACEOF
2482 +#line $LINENO "configure"
2485 +cat confdefs.h >>conftest.$ac_ext
2486 +cat >>conftest.$ac_ext <<_ACEOF
2487 +/* end confdefs.h. */
2497 +ac_clean_files_save=$ac_clean_files
2498 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
2499 +# Try to create an executable without -o first, disregard a.out.
2500 +# It will help us diagnose broken compilers, and finding out an intuition
2502 +echo "$as_me:$LINENO: checking for C compiler default output" >&5
2503 +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2504 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2505 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2506 + (eval $ac_link_default) 2>&5
2508 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 + (exit $ac_status); }; then
2510 + # Find the output, starting from the most likely. This scheme is
2511 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2514 +# Be careful to initialize this variable, since it used to be cached.
2515 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2517 +# b.out is created by i960 compilers.
2518 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2520 + test -f "$ac_file" || continue
2522 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2524 + conftest.$ac_ext )
2525 + # This is the source file.
2528 + # We found the default executable, but exeext='' is most
2529 + # certainly right.
2532 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2533 + # FIXME: I believe we export ac_cv_exeext for Libtool,
2534 + # but it would be cool to find out if it's true. Does anybody
2535 + # maintain Libtool? --akim.
2536 + export ac_cv_exeext
2543 + echo "$as_me: failed program was:" >&5
2544 +sed 's/^/| /' conftest.$ac_ext >&5
2546 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2547 +See \`config.log' for more details." >&5
2548 +echo "$as_me: error: C compiler cannot create executables
2549 +See \`config.log' for more details." >&2;}
2550 + { (exit 77); exit 77; }; }
2553 +ac_exeext=$ac_cv_exeext
2554 +echo "$as_me:$LINENO: result: $ac_file" >&5
2555 +echo "${ECHO_T}$ac_file" >&6
2557 +# Check the compiler produces executables we can run. If not, either
2558 +# the compiler is broken, or we cross compile.
2559 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2560 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2561 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2562 +# If not cross compiling, check that we can run a simple program.
2563 +if test "$cross_compiling" != yes; then
2564 + if { ac_try='./$ac_file'
2565 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 + (eval $ac_try) 2>&5
2568 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 + (exit $ac_status); }; }; then
2570 + cross_compiling=no
2572 - ac_cv_prog_cc_cross=yes
2573 + if test "$cross_compiling" = maybe; then
2574 + cross_compiling=yes
2576 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2577 +If you meant to cross compile, use \`--host'.
2578 +See \`config.log' for more details." >&5
2579 +echo "$as_me: error: cannot run C compiled programs.
2580 +If you meant to cross compile, use \`--host'.
2581 +See \`config.log' for more details." >&2;}
2582 + { (exit 1); exit 1; }; }
2586 - echo "configure: failed program was:" >&5
2587 - cat conftest.$ac_ext >&5
2588 - ac_cv_prog_cc_works=no
2592 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2593 -ac_cpp='$CPP $CPPFLAGS'
2594 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2595 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2596 -cross_compiling=$ac_cv_prog_cc_cross
2597 +echo "$as_me:$LINENO: result: yes" >&5
2598 +echo "${ECHO_T}yes" >&6
2600 -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2601 -if test $ac_cv_prog_cc_works = no; then
2602 - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2603 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
2604 +ac_clean_files=$ac_clean_files_save
2605 +# Check the compiler produces executables we can run. If not, either
2606 +# the compiler is broken, or we cross compile.
2607 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2608 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2609 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
2610 +echo "${ECHO_T}$cross_compiling" >&6
2612 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
2613 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2614 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615 + (eval $ac_link) 2>&5
2617 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 + (exit $ac_status); }; then
2619 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
2620 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2621 +# work properly (i.e., refer to `conftest.exe'), while it won't with
2623 +for ac_file in conftest.exe conftest conftest.*; do
2624 + test -f "$ac_file" || continue
2626 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2627 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2628 + export ac_cv_exeext
2634 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2635 +See \`config.log' for more details." >&5
2636 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2637 +See \`config.log' for more details." >&2;}
2638 + { (exit 1); exit 1; }; }
2640 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2641 -echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2642 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2643 -cross_compiling=$ac_cv_prog_cc_cross
2645 -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2646 -echo "configure:825: checking whether we are using GNU C" >&5
2647 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2648 - echo $ac_n "(cached) $ac_c" 1>&6
2649 +rm -f conftest$ac_cv_exeext
2650 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2651 +echo "${ECHO_T}$ac_cv_exeext" >&6
2653 +rm -f conftest.$ac_ext
2654 +EXEEXT=$ac_cv_exeext
2656 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
2657 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2658 +if test "${ac_cv_objext+set}" = set; then
2659 + echo $ECHO_N "(cached) $ECHO_C" >&6
2661 - cat > conftest.c <<EOF
2666 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2667 - ac_cv_prog_gcc=yes
2668 + cat >conftest.$ac_ext <<_ACEOF
2669 +#line $LINENO "configure"
2672 +cat confdefs.h >>conftest.$ac_ext
2673 +cat >>conftest.$ac_ext <<_ACEOF
2674 +/* end confdefs.h. */
2684 +rm -f conftest.o conftest.obj
2685 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686 + (eval $ac_compile) 2>&5
2688 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 + (exit $ac_status); }; then
2690 + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2692 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2693 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2699 + echo "$as_me: failed program was:" >&5
2700 +sed 's/^/| /' conftest.$ac_ext >&5
2702 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2703 +See \`config.log' for more details." >&5
2704 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
2705 +See \`config.log' for more details." >&2;}
2706 + { (exit 1); exit 1; }; }
2709 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
2711 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2712 +echo "${ECHO_T}$ac_cv_objext" >&6
2713 +OBJEXT=$ac_cv_objext
2715 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2716 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2717 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
2718 + echo $ECHO_N "(cached) $ECHO_C" >&6
2720 + cat >conftest.$ac_ext <<_ACEOF
2721 +#line $LINENO "configure"
2724 +cat confdefs.h >>conftest.$ac_ext
2725 +cat >>conftest.$ac_ext <<_ACEOF
2726 +/* end confdefs.h. */
2728 -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2736 -if test $ac_cv_prog_gcc = yes; then
2742 +rm -f conftest.$ac_objext
2743 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744 + (eval $ac_compile) 2>&5
2746 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 + (exit $ac_status); } &&
2748 + { ac_try='test -s conftest.$ac_objext'
2749 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 + (eval $ac_try) 2>&5
2752 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 + (exit $ac_status); }; }; then
2754 + ac_compiler_gnu=yes
2757 + echo "$as_me: failed program was:" >&5
2758 +sed 's/^/| /' conftest.$ac_ext >&5
2762 +rm -f conftest.$ac_objext conftest.$ac_ext
2763 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
2765 -ac_test_CFLAGS="${CFLAGS+set}"
2766 -ac_save_CFLAGS="$CFLAGS"
2768 -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2769 -echo "configure:853: checking whether ${CC-cc} accepts -g" >&5
2770 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2771 - echo $ac_n "(cached) $ac_c" 1>&6
2773 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2774 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2775 +GCC=`test $ac_compiler_gnu = yes && echo yes`
2776 +ac_test_CFLAGS=${CFLAGS+set}
2777 +ac_save_CFLAGS=$CFLAGS
2779 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2780 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2781 +if test "${ac_cv_prog_cc_g+set}" = set; then
2782 + echo $ECHO_N "(cached) $ECHO_C" >&6
2784 - echo 'void f(){}' > conftest.c
2785 -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2786 + cat >conftest.$ac_ext <<_ACEOF
2787 +#line $LINENO "configure"
2790 +cat confdefs.h >>conftest.$ac_ext
2791 +cat >>conftest.$ac_ext <<_ACEOF
2792 +/* end confdefs.h. */
2802 +rm -f conftest.$ac_objext
2803 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 + (eval $ac_compile) 2>&5
2806 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 + (exit $ac_status); } &&
2808 + { ac_try='test -s conftest.$ac_objext'
2809 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 + (eval $ac_try) 2>&5
2812 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 + (exit $ac_status); }; }; then
2816 - ac_cv_prog_cc_g=no
2819 + echo "$as_me: failed program was:" >&5
2820 +sed 's/^/| /' conftest.$ac_ext >&5
2825 -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2826 +rm -f conftest.$ac_objext conftest.$ac_ext
2828 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2829 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2830 if test "$ac_test_CFLAGS" = set; then
2831 - CFLAGS="$ac_save_CFLAGS"
2832 + CFLAGS=$ac_save_CFLAGS
2833 elif test $ac_cv_prog_cc_g = yes; then
2834 if test "$GCC" = yes; then
2836 @@ -879,90 +2045,332 @@
2842 -echo $ac_n "checking for working const""... $ac_c" 1>&6
2843 -echo "configure:886: checking for working const" >&5
2844 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2845 - echo $ac_n "(cached) $ac_c" 1>&6
2846 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2847 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2848 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
2849 + echo $ECHO_N "(cached) $ECHO_C" >&6
2851 - cat > conftest.$ac_ext <<EOF
2852 -#line 891 "configure"
2853 -#include "confdefs.h"
2857 -/* Ultrix mips cc rejects this. */
2858 -typedef int charset[2]; const charset x;
2859 -/* SunOS 4.1.1 cc rejects this. */
2860 -char const *const *ccp;
2862 -/* NEC SVR4.0.2 mips cc rejects this. */
2863 -struct point {int x, y;};
2864 -static struct point const zero = {0,0};
2865 -/* AIX XL C 1.02.0.0 rejects this.
2866 - It does not let you subtract one const X* pointer from another in an arm
2867 - of an if-expression whose if-part is not a constant expression */
2868 -const char *g = "string";
2869 -ccp = &g + (g ? g-g : 0);
2870 -/* HPUX 7.0 cc rejects these. */
2873 -ccp = (char const *const *) p;
2874 -{ /* SCO 3.2v4 cc rejects this. */
2876 - char const *s = 0 ? (char *) 0 : (char const *) 0;
2880 -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2881 - int x[] = {25, 17};
2882 - const int *foo = &x[0];
2884 + ac_cv_prog_cc_stdc=no
2886 +cat >conftest.$ac_ext <<_ACEOF
2887 +#line $LINENO "configure"
2890 +cat confdefs.h >>conftest.$ac_ext
2891 +cat >>conftest.$ac_ext <<_ACEOF
2892 +/* end confdefs.h. */
2893 +#include <stdarg.h>
2895 +#include <sys/types.h>
2896 +#include <sys/stat.h>
2897 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2898 +struct buf { int x; };
2899 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
2900 +static char *e (p, i)
2906 -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2907 - typedef const int *iptr;
2910 +static char *f (char * (*g) (char **, int), char **p, ...)
2915 + s = g (p, va_arg (v,int));
2919 -{ /* AIX XL C 1.02.0.0 rejects this saying
2920 - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2921 - struct s { int j; const int *ap[3]; };
2922 - struct s *b; b->j = 5;
2923 +int test (int i, double x);
2924 +struct s1 {int (*f) (int a);};
2925 +struct s2 {int (*f) (double a);};
2926 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2932 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2936 -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2937 - const int foo = 10;
2939 +# Don't try gcc -ansi; that turns off useful extensions and
2940 +# breaks some systems' header files.
2941 +# AIX -qlanglvl=ansi
2942 +# Ultrix and OSF/1 -std1
2943 +# HP-UX 10.20 and later -Ae
2944 +# HP-UX older versions -Aa -D_HPUX_SOURCE
2945 +# SVR4 -Xc -D__EXTENSIONS__
2946 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2948 + CC="$ac_save_CC $ac_arg"
2949 + rm -f conftest.$ac_objext
2950 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 + (eval $ac_compile) 2>&5
2953 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 + (exit $ac_status); } &&
2955 + { ac_try='test -s conftest.$ac_objext'
2956 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 + (eval $ac_try) 2>&5
2959 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 + (exit $ac_status); }; }; then
2961 + ac_cv_prog_cc_stdc=$ac_arg
2964 + echo "$as_me: failed program was:" >&5
2965 +sed 's/^/| /' conftest.$ac_ext >&5
2968 +rm -f conftest.$ac_objext
2970 +rm -f conftest.$ac_ext conftest.$ac_objext
2975 +case "x$ac_cv_prog_cc_stdc" in
2977 + echo "$as_me:$LINENO: result: none needed" >&5
2978 +echo "${ECHO_T}none needed" >&6 ;;
2980 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2981 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2982 + CC="$CC $ac_cv_prog_cc_stdc" ;;
2985 +# Some people use a C++ compiler to compile C. Since we use `exit',
2986 +# in C++ we need to declare it. In case someone uses the same compiler
2987 +# for both compiling C and C++ we need to have the C++ compiler decide
2988 +# the declaration of exit, since it's the most demanding environment.
2989 +cat >conftest.$ac_ext <<_ACEOF
2990 +#ifndef __cplusplus
2994 +rm -f conftest.$ac_objext
2995 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996 + (eval $ac_compile) 2>&5
2998 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 + (exit $ac_status); } &&
3000 + { ac_try='test -s conftest.$ac_objext'
3001 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 + (eval $ac_try) 2>&5
3004 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 + (exit $ac_status); }; }; then
3006 + for ac_declaration in \
3008 + '#include <stdlib.h>' \
3009 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
3010 + 'extern "C" void std::exit (int); using std::exit;' \
3011 + 'extern "C" void exit (int) throw ();' \
3012 + 'extern "C" void exit (int);' \
3013 + 'void exit (int);'
3015 + cat >conftest.$ac_ext <<_ACEOF
3016 +#line $LINENO "configure"
3019 +cat confdefs.h >>conftest.$ac_ext
3020 +cat >>conftest.$ac_ext <<_ACEOF
3021 +/* end confdefs.h. */
3022 +#include <stdlib.h>
3032 +rm -f conftest.$ac_objext
3033 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3034 + (eval $ac_compile) 2>&5
3036 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 + (exit $ac_status); } &&
3038 + { ac_try='test -s conftest.$ac_objext'
3039 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 + (eval $ac_try) 2>&5
3042 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 + (exit $ac_status); }; }; then
3046 + echo "$as_me: failed program was:" >&5
3047 +sed 's/^/| /' conftest.$ac_ext >&5
3051 -if { (eval echo configure:940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3056 +rm -f conftest.$ac_objext conftest.$ac_ext
3057 + cat >conftest.$ac_ext <<_ACEOF
3058 +#line $LINENO "configure"
3061 +cat confdefs.h >>conftest.$ac_ext
3062 +cat >>conftest.$ac_ext <<_ACEOF
3063 +/* end confdefs.h. */
3073 +rm -f conftest.$ac_objext
3074 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 + (eval $ac_compile) 2>&5
3077 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 + (exit $ac_status); } &&
3079 + { ac_try='test -s conftest.$ac_objext'
3080 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081 + (eval $ac_try) 2>&5
3083 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 + (exit $ac_status); }; }; then
3087 - echo "configure: failed program was:" >&5
3088 - cat conftest.$ac_ext >&5
3091 + echo "$as_me: failed program was:" >&5
3092 +sed 's/^/| /' conftest.$ac_ext >&5
3095 +rm -f conftest.$ac_objext conftest.$ac_ext
3098 +if test -n "$ac_declaration"; then
3099 + echo '#ifdef __cplusplus' >>confdefs.h
3100 + echo $ac_declaration >>confdefs.h
3101 + echo '#endif' >>confdefs.h
3104 -echo "$ac_t""$ac_cv_c_const" 1>&6
3106 + echo "$as_me: failed program was:" >&5
3107 +sed 's/^/| /' conftest.$ac_ext >&5
3110 +rm -f conftest.$ac_objext conftest.$ac_ext
3112 +ac_cpp='$CPP $CPPFLAGS'
3113 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3119 +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3120 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3121 +if test "${ac_cv_c_const+set}" = set; then
3122 + echo $ECHO_N "(cached) $ECHO_C" >&6
3124 + cat >conftest.$ac_ext <<_ACEOF
3125 +#line $LINENO "configure"
3128 +cat confdefs.h >>conftest.$ac_ext
3129 +cat >>conftest.$ac_ext <<_ACEOF
3130 +/* end confdefs.h. */
3135 +/* FIXME: Include the comments suggested by Paul. */
3136 +#ifndef __cplusplus
3137 + /* Ultrix mips cc rejects this. */
3138 + typedef int charset[2];
3140 + /* SunOS 4.1.1 cc rejects this. */
3141 + char const *const *ccp;
3143 + /* NEC SVR4.0.2 mips cc rejects this. */
3144 + struct point {int x, y;};
3145 + static struct point const zero = {0,0};
3146 + /* AIX XL C 1.02.0.0 rejects this.
3147 + It does not let you subtract one const X* pointer from another in
3148 + an arm of an if-expression whose if-part is not a constant
3150 + const char *g = "string";
3151 + ccp = &g + (g ? g-g : 0);
3152 + /* HPUX 7.0 cc rejects these. */
3155 + ccp = (char const *const *) p;
3156 + { /* SCO 3.2v4 cc rejects this. */
3158 + char const *s = 0 ? (char *) 0 : (char const *) 0;
3162 + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3163 + int x[] = {25, 17};
3164 + const int *foo = &x[0];
3167 + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3168 + typedef const int *iptr;
3172 + { /* AIX XL C 1.02.0.0 rejects this saying
3173 + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3174 + struct s { int j; const int *ap[3]; };
3175 + struct s *b; b->j = 5;
3177 + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3178 + const int foo = 10;
3186 +rm -f conftest.$ac_objext
3187 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188 + (eval $ac_compile) 2>&5
3190 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 + (exit $ac_status); } &&
3192 + { ac_try='test -s conftest.$ac_objext'
3193 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 + (eval $ac_try) 2>&5
3196 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 + (exit $ac_status); }; }; then
3200 + echo "$as_me: failed program was:" >&5
3201 +sed 's/^/| /' conftest.$ac_ext >&5
3205 +rm -f conftest.$ac_objext conftest.$ac_ext
3207 +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3208 +echo "${ECHO_T}$ac_cv_c_const" >&6
3209 if test $ac_cv_c_const = no; then
3210 - cat >> confdefs.h <<\EOF
3214 +cat >>confdefs.h <<\_ACEOF
3222 -if test $ac_cv_prog_gcc = yes; then
3223 +if test $ac_cv_c_compiler_gnu = yes; then
3224 CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
3229 # Check whether --with-pf_packet or --without-pf_packet was given.
3230 if test "${with_pf_packet+set}" = set; then
3231 withval="$with_pf_packet"
3232 @@ -970,19 +2378,18 @@
3240 # Check whether --with-fast_x86_check or --without-fast_x86_check was given.
3241 if test "${with_fast_x86_check+set}" = set; then
3242 withval="$with_fast_x86_check"
3244 - cat >> confdefs.h <<\EOF
3245 + cat >>confdefs.h <<\_ACEOF
3246 #define LIBNET_FAST_X86_CHECK 1
3254 # Find a good install program. We prefer a C program (faster),
3255 # so one script is as good as another. But avoid the broken or
3256 @@ -991,330 +2398,417 @@
3257 # SunOS /usr/etc/install
3258 # IRIX /sbin/install
3260 +# AmigaOS /C/install, which installs bootblocks on floppy discs
3261 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3262 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3263 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3264 # ./install, which can be erroneously created by make from ./install.sh.
3265 -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3266 -echo "configure:1000: checking for a BSD compatible install" >&5
3267 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3268 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3269 if test -z "$INSTALL"; then
3270 -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3271 - echo $ac_n "(cached) $ac_c" 1>&6
3272 +if test "${ac_cv_path_install+set}" = set; then
3273 + echo $ECHO_N "(cached) $ECHO_C" >&6
3275 - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3276 - for ac_dir in $PATH; do
3277 - # Account for people who put trailing slashes in PATH elements.
3278 - case "$ac_dir/" in
3279 - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3281 - # OSF1 and SCO ODT 3.0 have their own names for install.
3282 - # Don't use installbsd from OSF since it installs stuff as root
3284 - for ac_prog in ginstall scoinst install; do
3285 - if test -f $ac_dir/$ac_prog; then
3286 - if test $ac_prog = install &&
3287 - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3288 - # AIX install. It has an incompatible calling convention.
3291 - ac_cv_path_install="$ac_dir/$ac_prog -c"
3295 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 +for as_dir in $PATH
3299 + test -z "$as_dir" && as_dir=.
3300 + # Account for people who put trailing slashes in PATH elements.
3302 + ./ | .// | /cC/* | \
3303 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3306 + # OSF1 and SCO ODT 3.0 have their own names for install.
3307 + # Don't use installbsd from OSF since it installs stuff as root
3309 + for ac_prog in ginstall scoinst install; do
3310 + for ac_exec_ext in '' $ac_executable_extensions; do
3311 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3312 + if test $ac_prog = install &&
3313 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3314 + # AIX install. It has an incompatible calling convention.
3316 + elif test $ac_prog = install &&
3317 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3318 + # program-specific install script used by HP pwplus--don't use.
3321 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3329 - IFS="$ac_save_IFS"
3337 if test "${ac_cv_path_install+set}" = set; then
3338 - INSTALL="$ac_cv_path_install"
3339 + INSTALL=$ac_cv_path_install
3341 # As a last resort, use the slow shell script. We don't cache a
3342 # path for INSTALL within a source directory, because that will
3343 # break other packages using the cache if that directory is
3344 # removed, or if the path is relative.
3345 - INSTALL="$ac_install_sh"
3346 + INSTALL=$ac_install_sh
3349 -echo "$ac_t""$INSTALL" 1>&6
3350 +echo "$as_me:$LINENO: result: $INSTALL" >&5
3351 +echo "${ECHO_T}$INSTALL" >&6
3353 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3354 # It thinks the first close brace ends the variable substitution.
3355 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3357 -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3358 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3362 -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3363 -echo "configure:1053: checking whether ${MAKE-make} sets \${MAKE}" >&5
3364 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3365 -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3366 - echo $ac_n "(cached) $ac_c" 1>&6
3367 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3368 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3369 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3370 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3371 + echo $ECHO_N "(cached) $ECHO_C" >&6
3373 - cat > conftestmake <<\EOF
3374 + cat >conftest.make <<\_ACEOF
3376 - @echo 'ac_maketemp="${MAKE}"'
3378 + @echo 'ac_maketemp="$(MAKE)"'
3380 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3381 -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3382 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3383 if test -n "$ac_maketemp"; then
3384 eval ac_cv_prog_make_${ac_make}_set=yes
3386 eval ac_cv_prog_make_${ac_make}_set=no
3389 +rm -f conftest.make
3391 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3392 - echo "$ac_t""yes" 1>&6
3393 + echo "$as_me:$LINENO: result: yes" >&5
3394 +echo "${ECHO_T}yes" >&6
3397 - echo "$ac_t""no" 1>&6
3398 + echo "$as_me:$LINENO: result: no" >&5
3399 +echo "${ECHO_T}no" >&6
3400 SET_MAKE="MAKE=${MAKE-make}"
3403 for ac_prog in ranlib
3405 -# Extract the first word of "$ac_prog", so it can be a program name with args.
3406 + # Extract the first word of "$ac_prog", so it can be a program name with args.
3407 set dummy $ac_prog; ac_word=$2
3408 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3409 -echo "configure:1084: checking for $ac_word" >&5
3410 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3411 - echo $ac_n "(cached) $ac_c" 1>&6
3412 +echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414 +if test "${ac_cv_prog_RANLIB+set}" = set; then
3415 + echo $ECHO_N "(cached) $ECHO_C" >&6
3417 if test -n "$RANLIB"; then
3418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3420 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3422 - for ac_dir in $ac_dummy; do
3423 - test -z "$ac_dir" && ac_dir=.
3424 - if test -f $ac_dir/$ac_word; then
3425 - ac_cv_prog_RANLIB="$ac_prog"
3429 - IFS="$ac_save_ifs"
3430 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 +for as_dir in $PATH
3434 + test -z "$as_dir" && as_dir=.
3435 + for ac_exec_ext in '' $ac_executable_extensions; do
3436 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 + ac_cv_prog_RANLIB="$ac_prog"
3438 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 -RANLIB="$ac_cv_prog_RANLIB"
3447 +RANLIB=$ac_cv_prog_RANLIB
3448 if test -n "$RANLIB"; then
3449 - echo "$ac_t""$RANLIB" 1>&6
3450 + echo "$as_me:$LINENO: result: $RANLIB" >&5
3451 +echo "${ECHO_T}$RANLIB" >&6
3453 - echo "$ac_t""no" 1>&6
3454 + echo "$as_me:$LINENO: result: no" >&5
3455 +echo "${ECHO_T}no" >&6
3458 -test -n "$RANLIB" && break
3459 + test -n "$RANLIB" && break
3461 test -n "$RANLIB" || RANLIB="@true"
3465 -# Extract the first word of "$ac_prog", so it can be a program name with args.
3466 + # Extract the first word of "$ac_prog", so it can be a program name with args.
3467 set dummy $ac_prog; ac_word=$2
3468 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3469 -echo "configure:1119: checking for $ac_word" >&5
3470 -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3471 - echo $ac_n "(cached) $ac_c" 1>&6
3472 +echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 +if test "${ac_cv_prog_AR+set}" = set; then
3475 + echo $ECHO_N "(cached) $ECHO_C" >&6
3477 if test -n "$AR"; then
3478 ac_cv_prog_AR="$AR" # Let the user override the test.
3480 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3482 - for ac_dir in $ac_dummy; do
3483 - test -z "$ac_dir" && ac_dir=.
3484 - if test -f $ac_dir/$ac_word; then
3485 - ac_cv_prog_AR="$ac_prog"
3489 - IFS="$ac_save_ifs"
3490 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 +for as_dir in $PATH
3494 + test -z "$as_dir" && as_dir=.
3495 + for ac_exec_ext in '' $ac_executable_extensions; do
3496 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3497 + ac_cv_prog_AR="$ac_prog"
3498 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 -AR="$ac_cv_prog_AR"
3508 if test -n "$AR"; then
3509 - echo "$ac_t""$AR" 1>&6
3510 + echo "$as_me:$LINENO: result: $AR" >&5
3511 +echo "${ECHO_T}$AR" >&6
3513 - echo "$ac_t""no" 1>&6
3514 + echo "$as_me:$LINENO: result: no" >&5
3515 +echo "${ECHO_T}no" >&6
3518 -test -n "$AR" && break
3519 + test -n "$AR" && break
3521 test -n "$AR" || AR="@true"
3525 -# Extract the first word of "$ac_prog", so it can be a program name with args.
3526 + # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3529 -echo "configure:1154: checking for $ac_word" >&5
3530 -if eval "test \"`echo '$''{'ac_cv_prog_LN'+set}'`\" = set"; then
3531 - echo $ac_n "(cached) $ac_c" 1>&6
3532 +echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3534 +if test "${ac_cv_prog_LN+set}" = set; then
3535 + echo $ECHO_N "(cached) $ECHO_C" >&6
3537 if test -n "$LN"; then
3538 ac_cv_prog_LN="$LN" # Let the user override the test.
3540 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3542 - for ac_dir in $ac_dummy; do
3543 - test -z "$ac_dir" && ac_dir=.
3544 - if test -f $ac_dir/$ac_word; then
3545 - ac_cv_prog_LN="$ac_prog"
3549 - IFS="$ac_save_ifs"
3550 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 +for as_dir in $PATH
3554 + test -z "$as_dir" && as_dir=.
3555 + for ac_exec_ext in '' $ac_executable_extensions; do
3556 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 + ac_cv_prog_LN="$ac_prog"
3558 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 -LN="$ac_cv_prog_LN"
3568 if test -n "$LN"; then
3569 - echo "$ac_t""$LN" 1>&6
3570 + echo "$as_me:$LINENO: result: $LN" >&5
3571 +echo "${ECHO_T}$LN" >&6
3573 - echo "$ac_t""no" 1>&6
3574 + echo "$as_me:$LINENO: result: no" >&5
3575 +echo "${ECHO_T}no" >&6
3578 -test -n "$LN" && break
3579 + test -n "$LN" && break
3581 test -n "$LN" || LN="@true"
3585 for ac_func in strerror
3587 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3588 -echo "configure:1188: checking for $ac_func" >&5
3589 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3590 - echo $ac_n "(cached) $ac_c" 1>&6
3591 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3592 +echo "$as_me:$LINENO: checking for $ac_func" >&5
3593 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3594 +if eval "test \"\${$as_ac_var+set}\" = set"; then
3595 + echo $ECHO_N "(cached) $ECHO_C" >&6
3597 - cat > conftest.$ac_ext <<EOF
3598 -#line 1193 "configure"
3599 -#include "confdefs.h"
3600 + cat >conftest.$ac_ext <<_ACEOF
3601 +#line $LINENO "configure"
3604 +cat confdefs.h >>conftest.$ac_ext
3605 +cat >>conftest.$ac_ext <<_ACEOF
3606 +/* end confdefs.h. */
3607 /* System header to define __stub macros and hopefully few prototypes,
3608 - which can conflict with char $ac_func(); below. */
3609 -#include <assert.h>
3610 + which can conflict with char $ac_func (); below.
3611 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3612 + <limits.h> exists even on freestanding compilers. */
3614 +# include <limits.h>
3616 +# include <assert.h>
3618 /* Override any gcc2 internal prototype to avoid an error. */
3623 /* We use char because int might match the return type of a gcc2
3624 - builtin and then its argument prototype would still apply. */
3629 + builtin and then its argument prototype would still apply. */
3631 /* The GNU C library defines this for functions which it implements
3632 to always fail with ENOSYS. Some functions are actually named
3633 something starting with __ and the normal name is an alias. */
3634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3638 +char (*f) () = $ac_func;
3646 -if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3648 - eval "ac_cv_func_$ac_func=yes"
3652 +return f != $ac_func;
3657 +rm -f conftest.$ac_objext conftest$ac_exeext
3658 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3659 + (eval $ac_link) 2>&5
3661 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 + (exit $ac_status); } &&
3663 + { ac_try='test -s conftest$ac_exeext'
3664 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 + (eval $ac_try) 2>&5
3667 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 + (exit $ac_status); }; }; then
3669 + eval "$as_ac_var=yes"
3671 - echo "configure: failed program was:" >&5
3672 - cat conftest.$ac_ext >&5
3674 - eval "ac_cv_func_$ac_func=no"
3675 + echo "$as_me: failed program was:" >&5
3676 +sed 's/^/| /' conftest.$ac_ext >&5
3678 +eval "$as_ac_var=no"
3681 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3683 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3684 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3685 +if test `eval echo '${'$as_ac_var'}'` = yes; then
3686 + cat >>confdefs.h <<_ACEOF
3687 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3690 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3691 - echo "$ac_t""yes" 1>&6
3692 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3693 - cat >> confdefs.h <<EOF
3694 -#define $ac_tr_func 1
3698 - echo "$ac_t""no" 1>&6
3703 -echo $ac_n "checking for pcap_open_live in -lpcap""... $ac_c" 1>&6
3704 -echo "configure:1242: checking for pcap_open_live in -lpcap" >&5
3705 -ac_lib_var=`echo pcap'_'pcap_open_live | sed 'y%./+-%__p_%'`
3706 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3707 - echo $ac_n "(cached) $ac_c" 1>&6
3708 +echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
3709 +echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6
3710 +if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
3711 + echo $ECHO_N "(cached) $ECHO_C" >&6
3713 - ac_save_LIBS="$LIBS"
3714 + ac_check_lib_save_LIBS=$LIBS
3716 -cat > conftest.$ac_ext <<EOF
3717 -#line 1250 "configure"
3718 -#include "confdefs.h"
3719 +cat >conftest.$ac_ext <<_ACEOF
3720 +#line $LINENO "configure"
3723 +cat confdefs.h >>conftest.$ac_ext
3724 +cat >>conftest.$ac_ext <<_ACEOF
3725 +/* end confdefs.h. */
3727 /* Override any gcc2 internal prototype to avoid an error. */
3731 /* We use char because int might match the return type of a gcc2
3732 - builtin and then its argument prototype would still apply. */
3733 -char pcap_open_live();
3739 -if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3741 - eval "ac_cv_lib_$ac_lib_var=yes"
3742 + builtin and then its argument prototype would still apply. */
3743 +char pcap_open_live ();
3752 +rm -f conftest.$ac_objext conftest$ac_exeext
3753 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3754 + (eval $ac_link) 2>&5
3756 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 + (exit $ac_status); } &&
3758 + { ac_try='test -s conftest$ac_exeext'
3759 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760 + (eval $ac_try) 2>&5
3762 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 + (exit $ac_status); }; }; then
3764 + ac_cv_lib_pcap_pcap_open_live=yes
3766 - echo "configure: failed program was:" >&5
3767 - cat conftest.$ac_ext >&5
3769 - eval "ac_cv_lib_$ac_lib_var=no"
3772 -LIBS="$ac_save_LIBS"
3773 + echo "$as_me: failed program was:" >&5
3774 +sed 's/^/| /' conftest.$ac_ext >&5
3776 +ac_cv_lib_pcap_pcap_open_live=no
3778 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3779 - echo "$ac_t""yes" 1>&6
3780 - cat >> confdefs.h <<\EOF
3781 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3782 +LIBS=$ac_check_lib_save_LIBS
3784 +echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
3785 +echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6
3786 +if test $ac_cv_lib_pcap_pcap_open_live = yes; then
3787 + cat >>confdefs.h <<\_ACEOF
3788 #define HAVE_LIB_PCAP 1
3793 - echo "$ac_t""no" 1>&6
3797 -echo $ac_n "checking low-level packet interface type""... $ac_c" 1>&6
3798 -echo "configure:1286: checking low-level packet interface type" >&5
3799 +echo "$as_me:$LINENO: checking low-level packet interface type" >&5
3800 +echo $ECHO_N "checking low-level packet interface type... $ECHO_C" >&6
3802 if test -r /dev/bpf0 ; then
3804 - echo "$ac_t""found bpf" 1>&6
3805 + echo "$as_me:$LINENO: result: found bpf" >&5
3806 +echo "${ECHO_T}found bpf" >&6
3807 elif test -r /usr/include/net/pfilt.h ; then
3809 - echo "$ac_t""found pf" 1>&6
3810 + echo "$as_me:$LINENO: result: found pf" >&5
3811 +echo "${ECHO_T}found pf" >&6
3812 elif test -r /dev/nit ; then
3814 - echo "$ac_t""found snit" 1>&6
3815 + echo "$as_me:$LINENO: result: found snit" >&5
3816 +echo "${ECHO_T}found snit" >&6
3817 elif test -r /usr/include/sys/net/nit.h ; then
3819 - echo "$ac_t""found nit" 1>&6
3820 + echo "$as_me:$LINENO: result: found nit" >&5
3821 +echo "${ECHO_T}found nit" >&6
3822 elif test -r /usr/include/net/raw.h ; then
3824 - echo "$ac_t""found snoop" 1>&6
3825 + echo "$as_me:$LINENO: result: found snoop" >&5
3826 +echo "${ECHO_T}found snoop" >&6
3827 elif test -r /usr/include/sys/dlpi.h ; then
3829 - echo "$ac_t""found dlpi" 1>&6
3830 - cat >> confdefs.h <<\EOF
3831 + echo "$as_me:$LINENO: result: found dlpi" >&5
3832 +echo "${ECHO_T}found dlpi" >&6
3833 + cat >>confdefs.h <<\_ACEOF
3838 elif test -r /usr/include/linux/socket.h ; then
3839 LL_INT_TYPE=sockpacket
3840 - echo "$ac_t""found SOCK_PACKET" 1>&6
3841 + echo "$as_me:$LINENO: result: found SOCK_PACKET" >&5
3842 +echo "${ECHO_T}found SOCK_PACKET" >&6
3843 if test $with_pf_packet = yes; then
3845 - echo $ac_n "checking for PF_PACKET""... $ac_c" 1>&6
3846 -echo "configure:1316: checking for PF_PACKET" >&5
3847 - if eval "test \"`echo '$''{'ac_libnet_have_pf_packet'+set}'`\" = set"; then
3848 - echo $ac_n "(cached) $ac_c" 1>&6
3850 + echo "$as_me:$LINENO: checking for PF_PACKET" >&5
3851 +echo $ECHO_N "checking for PF_PACKET... $ECHO_C" >&6
3852 + if test "${ac_libnet_have_pf_packet+set}" = set; then
3853 + echo $ECHO_N "(cached) $ECHO_C" >&6
3855 case "$target_os" in
3857 @@ -1397,17 +2891,19 @@
3860 if test $ac_libnet_have_pf_packet = choked; then
3861 - echo "$ac_t""test program choked... assuming no" 1>&6
3862 + echo "$as_me:$LINENO: result: test program choked... assuming no" >&5
3863 +echo "${ECHO_T}test program choked... assuming no" >&6
3864 elif test $ac_libnet_have_pf_packet = yes; then
3865 - cat >> confdefs.h <<\EOF
3866 + cat >>confdefs.h <<\_ACEOF
3867 #define HAVE_PF_PACKET 1
3871 LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_PF_PACKET"
3874 if test $ac_libnet_have_pf_packet != choked; then
3875 - echo "$ac_t""$ac_libnet_have_pf_packet" 1>&6
3876 + echo "$as_me:$LINENO: result: $ac_libnet_have_pf_packet" >&5
3877 +echo "${ECHO_T}$ac_libnet_have_pf_packet" >&6
3879 rm -f pf_packet-test* core core.pf_packet-test
3881 @@ -1418,17 +2914,22 @@
3883 elif test -c /dev/bpf0 ; then # check again in case not readable
3885 - echo "$ac_t""found bpf" 1>&6
3886 + echo "$as_me:$LINENO: result: found bpf" >&5
3887 +echo "${ECHO_T}found bpf" >&6
3888 elif test -c /dev/enet ; then # check again in case not readable
3890 - echo "$ac_t""found enet" 1>&6
3891 + echo "$as_me:$LINENO: result: found enet" >&5
3892 +echo "${ECHO_T}found enet" >&6
3893 elif test -c /dev/nit ; then # check again in case not readable
3895 - echo "$ac_t""found snit" 1>&6
3896 + echo "$as_me:$LINENO: result: found snit" >&5
3897 +echo "${ECHO_T}found snit" >&6
3900 - echo "configure: warning: could not find a low level packet interface" 1>&2
3901 - echo "configure: warning: low level packet creation API will not be added to the library" 1>&2
3902 + { echo "$as_me:$LINENO: WARNING: could not find a low level packet interface" >&5
3903 +echo "$as_me: WARNING: could not find a low level packet interface" >&2;}
3904 + { echo "$as_me:$LINENO: WARNING: low level packet creation API will not be added to the library" >&5
3905 +echo "$as_me: WARNING: low level packet creation API will not be added to the library" >&2;}
3908 LL_INT_TYPE_UC=`echo $LL_INT_TYPE | tr a-z A-Z`
3909 @@ -1437,138 +2938,633 @@
3910 case "$target_os" in
3913 - cat >> confdefs.h <<\EOF
3914 + cat >>confdefs.h <<\_ACEOF
3915 #define _BSD_SOURCE 1
3919 - cat >> confdefs.h <<\EOF
3920 + cat >>confdefs.h <<\_ACEOF
3921 #define __BSD_SOURCE 1
3925 - cat >> confdefs.h <<\EOF
3926 + cat >>confdefs.h <<\_ACEOF
3927 #define __FAVOR_BSD 1
3931 LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
3932 - echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3933 -echo "configure:1455: checking how to run the C preprocessor" >&5
3935 +ac_cpp='$CPP $CPPFLAGS'
3936 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3940 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3941 # On Suns, sometimes $CPP names a directory.
3942 if test -n "$CPP" && test -d "$CPP"; then
3945 if test -z "$CPP"; then
3946 -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3947 - echo $ac_n "(cached) $ac_c" 1>&6
3948 + if test "${ac_cv_prog_CPP+set}" = set; then
3949 + echo $ECHO_N "(cached) $ECHO_C" >&6
3951 - # This must be in double quotes, not single quotes, because CPP may get
3952 - # substituted into the Makefile and "${CC-cc}" will confuse make.
3954 + # Double quotes because CPP needs to be expanded
3955 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3957 + ac_preproc_ok=false
3958 +for ac_c_preproc_warn_flag in '' yes
3960 + # Use a header file that comes with gcc, so configuring glibc
3961 + # with a fresh cross-compiler works.
3962 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3963 + # <limits.h> exists even on freestanding compilers.
3964 # On the NeXT, cc -E runs the code through the compiler's parser,
3965 - # not just through cpp.
3966 - cat > conftest.$ac_ext <<EOF
3967 -#line 1470 "configure"
3968 -#include "confdefs.h"
3969 -#include <assert.h>
3972 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3973 -{ (eval echo configure:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3974 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3975 -if test -z "$ac_err"; then
3976 + # not just through cpp. "Syntax error" is here to catch this case.
3977 + cat >conftest.$ac_ext <<_ACEOF
3978 +#line $LINENO "configure"
3981 +cat confdefs.h >>conftest.$ac_ext
3982 +cat >>conftest.$ac_ext <<_ACEOF
3983 +/* end confdefs.h. */
3985 +# include <limits.h>
3987 +# include <assert.h>
3991 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3992 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3994 + grep -v '^ *+' conftest.er1 >conftest.err
3995 + rm -f conftest.er1
3996 + cat conftest.err >&5
3997 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 + (exit $ac_status); } >/dev/null; then
3999 + if test -s conftest.err; then
4000 + ac_cpp_err=$ac_c_preproc_warn_flag
4007 +if test -z "$ac_cpp_err"; then
4010 - echo "$ac_err" >&5
4011 - echo "configure: failed program was:" >&5
4012 - cat conftest.$ac_ext >&5
4014 - CPP="${CC-cc} -E -traditional-cpp"
4015 - cat > conftest.$ac_ext <<EOF
4016 -#line 1487 "configure"
4017 -#include "confdefs.h"
4018 -#include <assert.h>
4021 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4022 -{ (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4023 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4024 -if test -z "$ac_err"; then
4025 + echo "$as_me: failed program was:" >&5
4026 +sed 's/^/| /' conftest.$ac_ext >&5
4028 + # Broken: fails on valid input.
4031 +rm -f conftest.err conftest.$ac_ext
4033 + # OK, works on sane cases. Now check whether non-existent headers
4034 + # can be detected and how.
4035 + cat >conftest.$ac_ext <<_ACEOF
4036 +#line $LINENO "configure"
4039 +cat confdefs.h >>conftest.$ac_ext
4040 +cat >>conftest.$ac_ext <<_ACEOF
4041 +/* end confdefs.h. */
4042 +#include <ac_nonexistent.h>
4044 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4045 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4047 + grep -v '^ *+' conftest.er1 >conftest.err
4048 + rm -f conftest.er1
4049 + cat conftest.err >&5
4050 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 + (exit $ac_status); } >/dev/null; then
4052 + if test -s conftest.err; then
4053 + ac_cpp_err=$ac_c_preproc_warn_flag
4060 +if test -z "$ac_cpp_err"; then
4061 + # Broken: success on invalid input.
4064 + echo "$as_me: failed program was:" >&5
4065 +sed 's/^/| /' conftest.$ac_ext >&5
4067 + # Passes both tests.
4071 +rm -f conftest.err conftest.$ac_ext
4074 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075 +rm -f conftest.err conftest.$ac_ext
4076 +if $ac_preproc_ok; then
4081 + ac_cv_prog_CPP=$CPP
4084 + CPP=$ac_cv_prog_CPP
4086 + ac_cv_prog_CPP=$CPP
4088 +echo "$as_me:$LINENO: result: $CPP" >&5
4089 +echo "${ECHO_T}$CPP" >&6
4090 +ac_preproc_ok=false
4091 +for ac_c_preproc_warn_flag in '' yes
4093 + # Use a header file that comes with gcc, so configuring glibc
4094 + # with a fresh cross-compiler works.
4095 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4096 + # <limits.h> exists even on freestanding compilers.
4097 + # On the NeXT, cc -E runs the code through the compiler's parser,
4098 + # not just through cpp. "Syntax error" is here to catch this case.
4099 + cat >conftest.$ac_ext <<_ACEOF
4100 +#line $LINENO "configure"
4103 +cat confdefs.h >>conftest.$ac_ext
4104 +cat >>conftest.$ac_ext <<_ACEOF
4105 +/* end confdefs.h. */
4107 +# include <limits.h>
4109 +# include <assert.h>
4113 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4114 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4116 + grep -v '^ *+' conftest.er1 >conftest.err
4117 + rm -f conftest.er1
4118 + cat conftest.err >&5
4119 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 + (exit $ac_status); } >/dev/null; then
4121 + if test -s conftest.err; then
4122 + ac_cpp_err=$ac_c_preproc_warn_flag
4129 +if test -z "$ac_cpp_err"; then
4132 - echo "$ac_err" >&5
4133 - echo "configure: failed program was:" >&5
4134 - cat conftest.$ac_ext >&5
4136 - CPP="${CC-cc} -nologo -E"
4137 - cat > conftest.$ac_ext <<EOF
4138 -#line 1504 "configure"
4139 -#include "confdefs.h"
4140 -#include <assert.h>
4143 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4144 -{ (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4145 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4146 -if test -z "$ac_err"; then
4147 + echo "$as_me: failed program was:" >&5
4148 +sed 's/^/| /' conftest.$ac_ext >&5
4150 + # Broken: fails on valid input.
4153 +rm -f conftest.err conftest.$ac_ext
4155 + # OK, works on sane cases. Now check whether non-existent headers
4156 + # can be detected and how.
4157 + cat >conftest.$ac_ext <<_ACEOF
4158 +#line $LINENO "configure"
4161 +cat confdefs.h >>conftest.$ac_ext
4162 +cat >>conftest.$ac_ext <<_ACEOF
4163 +/* end confdefs.h. */
4164 +#include <ac_nonexistent.h>
4166 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4167 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4169 + grep -v '^ *+' conftest.er1 >conftest.err
4170 + rm -f conftest.er1
4171 + cat conftest.err >&5
4172 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 + (exit $ac_status); } >/dev/null; then
4174 + if test -s conftest.err; then
4175 + ac_cpp_err=$ac_c_preproc_warn_flag
4182 +if test -z "$ac_cpp_err"; then
4183 + # Broken: success on invalid input.
4186 + echo "$as_me: failed program was:" >&5
4187 +sed 's/^/| /' conftest.$ac_ext >&5
4189 + # Passes both tests.
4193 +rm -f conftest.err conftest.$ac_ext
4196 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4197 +rm -f conftest.err conftest.$ac_ext
4198 +if $ac_preproc_ok; then
4201 - echo "$ac_err" >&5
4202 - echo "configure: failed program was:" >&5
4203 - cat conftest.$ac_ext >&5
4206 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4207 +See \`config.log' for more details." >&5
4208 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4209 +See \`config.log' for more details." >&2;}
4210 + { (exit 1); exit 1; }; }
4215 +ac_cpp='$CPP $CPPFLAGS'
4216 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221 +echo "$as_me:$LINENO: checking for egrep" >&5
4222 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4223 +if test "${ac_cv_prog_egrep+set}" = set; then
4224 + echo $ECHO_N "(cached) $ECHO_C" >&6
4226 + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4227 + then ac_cv_prog_egrep='grep -E'
4228 + else ac_cv_prog_egrep='egrep'
4231 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4232 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4233 + EGREP=$ac_cv_prog_egrep
4236 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4237 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4238 +if test "${ac_cv_header_stdc+set}" = set; then
4239 + echo $ECHO_N "(cached) $ECHO_C" >&6
4241 + cat >conftest.$ac_ext <<_ACEOF
4242 +#line $LINENO "configure"
4245 +cat confdefs.h >>conftest.$ac_ext
4246 +cat >>conftest.$ac_ext <<_ACEOF
4247 +/* end confdefs.h. */
4248 +#include <stdlib.h>
4249 +#include <stdarg.h>
4250 +#include <string.h>
4261 +rm -f conftest.$ac_objext
4262 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263 + (eval $ac_compile) 2>&5
4265 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 + (exit $ac_status); } &&
4267 + { ac_try='test -s conftest.$ac_objext'
4268 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 + (eval $ac_try) 2>&5
4271 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 + (exit $ac_status); }; }; then
4273 + ac_cv_header_stdc=yes
4275 + echo "$as_me: failed program was:" >&5
4276 +sed 's/^/| /' conftest.$ac_ext >&5
4278 +ac_cv_header_stdc=no
4280 +rm -f conftest.$ac_objext conftest.$ac_ext
4282 +if test $ac_cv_header_stdc = yes; then
4283 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4284 + cat >conftest.$ac_ext <<_ACEOF
4285 +#line $LINENO "configure"
4288 +cat confdefs.h >>conftest.$ac_ext
4289 +cat >>conftest.$ac_ext <<_ACEOF
4290 +/* end confdefs.h. */
4291 +#include <string.h>
4294 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4295 + $EGREP "memchr" >/dev/null 2>&1; then
4298 + ac_cv_header_stdc=no
4304 +if test $ac_cv_header_stdc = yes; then
4305 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4306 + cat >conftest.$ac_ext <<_ACEOF
4307 +#line $LINENO "configure"
4310 +cat confdefs.h >>conftest.$ac_ext
4311 +cat >>conftest.$ac_ext <<_ACEOF
4312 +/* end confdefs.h. */
4313 +#include <stdlib.h>
4316 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4317 + $EGREP "free" >/dev/null 2>&1; then
4320 + ac_cv_header_stdc=no
4323 - ac_cv_prog_CPP="$CPP"
4326 - CPP="$ac_cv_prog_CPP"
4328 +if test $ac_cv_header_stdc = yes; then
4329 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4330 + if test "$cross_compiling" = yes; then
4333 - ac_cv_prog_CPP="$CPP"
4334 + cat >conftest.$ac_ext <<_ACEOF
4335 +#line $LINENO "configure"
4338 +cat confdefs.h >>conftest.$ac_ext
4339 +cat >>conftest.$ac_ext <<_ACEOF
4340 +/* end confdefs.h. */
4342 +#if ((' ' & 0x0FF) == 0x020)
4343 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4344 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4346 +# define ISLOWER(c) \
4347 + (('a' <= (c) && (c) <= 'i') \
4348 + || ('j' <= (c) && (c) <= 'r') \
4349 + || ('s' <= (c) && (c) <= 'z'))
4350 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4353 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4358 + for (i = 0; i < 256; i++)
4359 + if (XOR (islower (i), ISLOWER (i))
4360 + || toupper (i) != TOUPPER (i))
4365 +rm -f conftest$ac_exeext
4366 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4367 + (eval $ac_link) 2>&5
4369 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4371 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 + (eval $ac_try) 2>&5
4374 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 + (exit $ac_status); }; }; then
4378 + echo "$as_me: program exited with status $ac_status" >&5
4379 +echo "$as_me: failed program was:" >&5
4380 +sed 's/^/| /' conftest.$ac_ext >&5
4382 +( exit $ac_status )
4383 +ac_cv_header_stdc=no
4385 -echo "$ac_t""$CPP" 1>&6
4386 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4390 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4391 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
4392 +if test $ac_cv_header_stdc = yes; then
4394 -for ac_hdr in net/ethernet.h
4395 +cat >>confdefs.h <<\_ACEOF
4396 +#define STDC_HEADERS 1
4401 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4411 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4412 + inttypes.h stdint.h unistd.h
4414 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4415 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4416 -echo "configure:1538: checking for $ac_hdr" >&5
4417 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4418 - echo $ac_n "(cached) $ac_c" 1>&6
4419 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4420 +echo "$as_me:$LINENO: checking for $ac_header" >&5
4421 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4422 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
4423 + echo $ECHO_N "(cached) $ECHO_C" >&6
4425 - cat > conftest.$ac_ext <<EOF
4426 -#line 1543 "configure"
4427 -#include "confdefs.h"
4430 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4431 -{ (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4432 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4433 -if test -z "$ac_err"; then
4435 - eval "ac_cv_header_$ac_safe=yes"
4436 + cat >conftest.$ac_ext <<_ACEOF
4437 +#line $LINENO "configure"
4440 +cat confdefs.h >>conftest.$ac_ext
4441 +cat >>conftest.$ac_ext <<_ACEOF
4442 +/* end confdefs.h. */
4443 +$ac_includes_default
4445 +#include <$ac_header>
4447 +rm -f conftest.$ac_objext
4448 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449 + (eval $ac_compile) 2>&5
4451 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 + (exit $ac_status); } &&
4453 + { ac_try='test -s conftest.$ac_objext'
4454 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 + (eval $ac_try) 2>&5
4457 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 + (exit $ac_status); }; }; then
4459 + eval "$as_ac_Header=yes"
4461 - echo "$ac_err" >&5
4462 - echo "configure: failed program was:" >&5
4463 - cat conftest.$ac_ext >&5
4465 - eval "ac_cv_header_$ac_safe=no"
4466 + echo "$as_me: failed program was:" >&5
4467 +sed 's/^/| /' conftest.$ac_ext >&5
4469 +eval "$as_ac_Header=no"
4472 +rm -f conftest.$ac_objext conftest.$ac_ext
4474 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4475 - echo "$ac_t""yes" 1>&6
4476 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4477 - cat >> confdefs.h <<EOF
4478 -#define $ac_tr_hdr 1
4480 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4481 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4482 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
4483 + cat >>confdefs.h <<_ACEOF
4484 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4493 +for ac_header in net/ethernet.h
4495 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4496 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
4497 + echo "$as_me:$LINENO: checking for $ac_header" >&5
4498 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4499 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
4500 + echo $ECHO_N "(cached) $ECHO_C" >&6
4502 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4503 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4505 + # Is the header compilable?
4506 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
4507 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4508 +cat >conftest.$ac_ext <<_ACEOF
4509 +#line $LINENO "configure"
4512 +cat confdefs.h >>conftest.$ac_ext
4513 +cat >>conftest.$ac_ext <<_ACEOF
4514 +/* end confdefs.h. */
4515 +$ac_includes_default
4516 +#include <$ac_header>
4518 +rm -f conftest.$ac_objext
4519 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520 + (eval $ac_compile) 2>&5
4522 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 + (exit $ac_status); } &&
4524 + { ac_try='test -s conftest.$ac_objext'
4525 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 + (eval $ac_try) 2>&5
4528 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 + (exit $ac_status); }; }; then
4530 + ac_header_compiler=yes
4532 + echo "$as_me: failed program was:" >&5
4533 +sed 's/^/| /' conftest.$ac_ext >&5
4535 +ac_header_compiler=no
4537 +rm -f conftest.$ac_objext conftest.$ac_ext
4538 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4539 +echo "${ECHO_T}$ac_header_compiler" >&6
4541 +# Is the header present?
4542 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
4543 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4544 +cat >conftest.$ac_ext <<_ACEOF
4545 +#line $LINENO "configure"
4548 +cat confdefs.h >>conftest.$ac_ext
4549 +cat >>conftest.$ac_ext <<_ACEOF
4550 +/* end confdefs.h. */
4551 +#include <$ac_header>
4553 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4554 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4556 + grep -v '^ *+' conftest.er1 >conftest.err
4557 + rm -f conftest.er1
4558 + cat conftest.err >&5
4559 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 + (exit $ac_status); } >/dev/null; then
4561 + if test -s conftest.err; then
4562 + ac_cpp_err=$ac_c_preproc_warn_flag
4569 +if test -z "$ac_cpp_err"; then
4570 + ac_header_preproc=yes
4572 + echo "$as_me: failed program was:" >&5
4573 +sed 's/^/| /' conftest.$ac_ext >&5
4575 + ac_header_preproc=no
4577 +rm -f conftest.err conftest.$ac_ext
4578 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4579 +echo "${ECHO_T}$ac_header_preproc" >&6
4581 +# So? What about this header?
4582 +case $ac_header_compiler:$ac_header_preproc in
4584 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4585 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4586 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4587 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4590 +## ------------------------------------ ##
4591 +## Report this to bug-autoconf@gnu.org. ##
4592 +## ------------------------------------ ##
4595 + sed "s/^/$as_me: WARNING: /" >&2
4598 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4599 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4600 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4601 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4602 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4603 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4606 +## ------------------------------------ ##
4607 +## Report this to bug-autoconf@gnu.org. ##
4608 +## ------------------------------------ ##
4611 + sed "s/^/$as_me: WARNING: /" >&2
4614 +echo "$as_me:$LINENO: checking for $ac_header" >&5
4615 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4616 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
4617 + echo $ECHO_N "(cached) $ECHO_C" >&6
4619 + eval "$as_ac_Header=$ac_header_preproc"
4621 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4622 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4625 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
4626 + cat >>confdefs.h <<_ACEOF
4627 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4630 LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H"
4632 - echo "$ac_t""no" 1>&6
4637 MAN_PREFIX="$prefix/man/man3/"
4638 @@ -1578,17 +3574,17 @@
4642 - cat >> confdefs.h <<\EOF
4643 + cat >>confdefs.h <<\_ACEOF
4644 #define LIBNET_BSDISH_OS 1
4648 - cat >> confdefs.h <<\EOF
4649 + cat >>confdefs.h <<\_ACEOF
4650 #define LIBNET_BSD_BYTE_SWAP 1
4654 - cat >> confdefs.h <<\EOF
4655 + cat >>confdefs.h <<\_ACEOF
4656 #define HAVE_SOCKADDR_SA_LEN 1
4660 LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP \
4661 -DHAVE_SOCKADDR_SA_LEN"
4662 @@ -1596,19 +3592,21 @@
4663 LIB_PREFIX="$prefix/lib/aout"
4664 INC_PREFIX="$prefix/include/"
4665 BIN_PREFIX="$prefix/bin/"
4666 - echo "$ac_t""Note: support/bpf-lkm/etherspoof contains the lkm source \
4667 -required to spoof ethernet frames" 1>&6
4668 + echo "$as_me:$LINENO: result: Note: support/bpf-lkm/etherspoof contains the lkm source \
4669 +required to spoof ethernet frames" >&5
4670 +echo "${ECHO_T}Note: support/bpf-lkm/etherspoof contains the lkm source \
4671 +required to spoof ethernet frames" >&6
4672 ln -sf FreeBSD support/bpf-lkm/etherspoof
4676 - cat >> confdefs.h <<\EOF
4677 + cat >>confdefs.h <<\_ACEOF
4678 #define LIBNET_BSDISH_OS 1
4682 - cat >> confdefs.h <<\EOF
4683 + cat >>confdefs.h <<\_ACEOF
4684 #define LIBNET_BSD_BYTE_SWAP 1
4688 LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
4689 MAN_PREFIX="$prefix/man/man3/"
4690 @@ -1618,32 +3616,34 @@
4694 - cat >> confdefs.h <<\EOF
4695 + cat >>confdefs.h <<\_ACEOF
4696 #define LIBNET_BSDISH_OS 1
4700 - cat >> confdefs.h <<\EOF
4701 + cat >>confdefs.h <<\_ACEOF
4702 #define HAVE_SOCKADDR_SA_LEN 1
4706 LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS"
4707 MAN_PREFIX="$prefix/man/man3/"
4708 LIB_PREFIX="$prefix/lib/"
4709 INC_PREFIX="$prefix/include/"
4710 BIN_PREFIX="$prefix/bin/"
4711 - echo "$ac_t""Note: support/bpf-lkm/etherspoof contains the lkm required \
4712 -to spoof ethernet frames" 1>&6
4713 + echo "$as_me:$LINENO: result: Note: support/bpf-lkm/etherspoof contains the lkm required \
4714 +to spoof ethernet frames" >&5
4715 +echo "${ECHO_T}Note: support/bpf-lkm/etherspoof contains the lkm required \
4716 +to spoof ethernet frames" >&6
4717 ln -sf OpenBSD support/bpf-lkm/etherspoof
4721 - cat >> confdefs.h <<\EOF
4722 + cat >>confdefs.h <<\_ACEOF
4723 #define LIBNET_BSDISH_OS 1
4727 - cat >> confdefs.h <<\EOF
4728 + cat >>confdefs.h <<\_ACEOF
4729 #define LIBNET_BSD_BYTE_SWAP 1
4733 LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
4734 MAN_PREFIX="$prefix/man/man3/"
4735 @@ -1653,181 +3653,328 @@
4739 - cat >> confdefs.h <<\EOF
4740 + cat >>confdefs.h <<\_ACEOF
4741 #define HAVE_SOLARIS 1
4745 - for ac_hdr in sys/bufmod.h sys/dlpi_ext.h
4748 +for ac_header in sys/bufmod.h sys/dlpi_ext.h
4750 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4751 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4752 -echo "configure:1665: checking for $ac_hdr" >&5
4753 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4754 - echo $ac_n "(cached) $ac_c" 1>&6
4755 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
4757 + echo "$as_me:$LINENO: checking for $ac_header" >&5
4758 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4759 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
4760 + echo $ECHO_N "(cached) $ECHO_C" >&6
4762 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4763 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765 - cat > conftest.$ac_ext <<EOF
4766 -#line 1670 "configure"
4767 -#include "confdefs.h"
4770 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4771 -{ (eval echo configure:1675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4772 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4773 -if test -z "$ac_err"; then
4775 - eval "ac_cv_header_$ac_safe=yes"
4776 + # Is the header compilable?
4777 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
4778 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4779 +cat >conftest.$ac_ext <<_ACEOF
4780 +#line $LINENO "configure"
4783 +cat confdefs.h >>conftest.$ac_ext
4784 +cat >>conftest.$ac_ext <<_ACEOF
4785 +/* end confdefs.h. */
4786 +$ac_includes_default
4787 +#include <$ac_header>
4789 +rm -f conftest.$ac_objext
4790 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4791 + (eval $ac_compile) 2>&5
4793 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 + (exit $ac_status); } &&
4795 + { ac_try='test -s conftest.$ac_objext'
4796 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 + (eval $ac_try) 2>&5
4799 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 + (exit $ac_status); }; }; then
4801 + ac_header_compiler=yes
4803 - echo "$ac_err" >&5
4804 - echo "configure: failed program was:" >&5
4805 - cat conftest.$ac_ext >&5
4807 - eval "ac_cv_header_$ac_safe=no"
4808 + echo "$as_me: failed program was:" >&5
4809 +sed 's/^/| /' conftest.$ac_ext >&5
4811 +ac_header_compiler=no
4814 +rm -f conftest.$ac_objext conftest.$ac_ext
4815 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4816 +echo "${ECHO_T}$ac_header_compiler" >&6
4818 +# Is the header present?
4819 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
4820 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4821 +cat >conftest.$ac_ext <<_ACEOF
4822 +#line $LINENO "configure"
4825 +cat confdefs.h >>conftest.$ac_ext
4826 +cat >>conftest.$ac_ext <<_ACEOF
4827 +/* end confdefs.h. */
4828 +#include <$ac_header>
4830 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4831 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4833 + grep -v '^ *+' conftest.er1 >conftest.err
4834 + rm -f conftest.er1
4835 + cat conftest.err >&5
4836 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 + (exit $ac_status); } >/dev/null; then
4838 + if test -s conftest.err; then
4839 + ac_cpp_err=$ac_c_preproc_warn_flag
4846 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4847 - echo "$ac_t""yes" 1>&6
4848 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4849 - cat >> confdefs.h <<EOF
4850 -#define $ac_tr_hdr 1
4853 +if test -z "$ac_cpp_err"; then
4854 + ac_header_preproc=yes
4856 - echo "$ac_t""no" 1>&6
4857 + echo "$as_me: failed program was:" >&5
4858 +sed 's/^/| /' conftest.$ac_ext >&5
4860 + ac_header_preproc=no
4862 +rm -f conftest.err conftest.$ac_ext
4863 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4864 +echo "${ECHO_T}$ac_header_preproc" >&6
4866 +# So? What about this header?
4867 +case $ac_header_compiler:$ac_header_preproc in
4869 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4870 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4871 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4872 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4875 +## ------------------------------------ ##
4876 +## Report this to bug-autoconf@gnu.org. ##
4877 +## ------------------------------------ ##
4880 + sed "s/^/$as_me: WARNING: /" >&2
4883 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4884 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4885 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4886 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4887 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4888 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4891 +## ------------------------------------ ##
4892 +## Report this to bug-autoconf@gnu.org. ##
4893 +## ------------------------------------ ##
4896 + sed "s/^/$as_me: WARNING: /" >&2
4899 +echo "$as_me:$LINENO: checking for $ac_header" >&5
4900 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4901 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
4902 + echo $ECHO_N "(cached) $ECHO_C" >&6
4904 + eval "$as_ac_Header=$ac_header_preproc"
4906 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4907 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4910 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
4911 + cat >>confdefs.h <<_ACEOF
4912 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4919 - echo $ac_n "checking for /dev/dlpi device""... $ac_c" 1>&6
4920 -echo "configure:1702: checking for /dev/dlpi device" >&5
4921 + echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
4922 +echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
4923 if test -c /dev/dlpi; then
4924 - echo "$ac_t""yes" 1>&6
4925 - cat >> confdefs.h <<\EOF
4926 + echo "$as_me:$LINENO: result: yes" >&5
4927 +echo "${ECHO_T}yes" >&6
4928 + cat >>confdefs.h <<\_ACEOF
4929 #define HAVE_DEV_DLPI 1
4934 - echo "$ac_t""no" 1>&6
4935 + echo "$as_me:$LINENO: result: no" >&5
4936 +echo "${ECHO_T}no" >&6
4938 - echo $ac_n "checking for $dir directory""... $ac_c" 1>&6
4939 -echo "configure:1713: checking for $dir directory" >&5
4940 + echo "$as_me:$LINENO: checking for $dir directory" >&5
4941 +echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
4942 if test -d $dir ; then
4943 - echo "$ac_t""yes" 1>&6
4944 - cat >> confdefs.h <<EOF
4945 + echo "$as_me:$LINENO: result: yes" >&5
4946 +echo "${ECHO_T}yes" >&6
4947 + cat >>confdefs.h <<_ACEOF
4948 #define DLPI_DEV_PREFIX "$dir"
4953 - echo "$ac_t""no" 1>&6
4954 + echo "$as_me:$LINENO: result: no" >&5
4955 +echo "${ECHO_T}no" >&6
4958 - echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4959 -echo "configure:1725: checking for socket in -lsocket" >&5
4960 -ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4961 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4962 - echo $ac_n "(cached) $ac_c" 1>&6
4964 +echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4965 +echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4966 +if test "${ac_cv_lib_socket_socket+set}" = set; then
4967 + echo $ECHO_N "(cached) $ECHO_C" >&6
4969 - ac_save_LIBS="$LIBS"
4970 + ac_check_lib_save_LIBS=$LIBS
4971 LIBS="-lsocket $LIBS"
4972 -cat > conftest.$ac_ext <<EOF
4973 -#line 1733 "configure"
4974 -#include "confdefs.h"
4975 +cat >conftest.$ac_ext <<_ACEOF
4976 +#line $LINENO "configure"
4979 +cat confdefs.h >>conftest.$ac_ext
4980 +cat >>conftest.$ac_ext <<_ACEOF
4981 +/* end confdefs.h. */
4983 /* Override any gcc2 internal prototype to avoid an error. */
4987 /* We use char because int might match the return type of a gcc2
4988 - builtin and then its argument prototype would still apply. */
4995 -if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4997 - eval "ac_cv_lib_$ac_lib_var=yes"
4998 + builtin and then its argument prototype would still apply. */
5008 +rm -f conftest.$ac_objext conftest$ac_exeext
5009 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5010 + (eval $ac_link) 2>&5
5012 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 + (exit $ac_status); } &&
5014 + { ac_try='test -s conftest$ac_exeext'
5015 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 + (eval $ac_try) 2>&5
5018 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 + (exit $ac_status); }; }; then
5020 + ac_cv_lib_socket_socket=yes
5022 - echo "configure: failed program was:" >&5
5023 - cat conftest.$ac_ext >&5
5025 - eval "ac_cv_lib_$ac_lib_var=no"
5028 -LIBS="$ac_save_LIBS"
5029 + echo "$as_me: failed program was:" >&5
5030 +sed 's/^/| /' conftest.$ac_ext >&5
5032 +ac_cv_lib_socket_socket=no
5034 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5035 - echo "$ac_t""yes" 1>&6
5036 - ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5037 - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5038 - cat >> confdefs.h <<EOF
5039 -#define $ac_tr_lib 1
5041 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5042 +LIBS=$ac_check_lib_save_LIBS
5044 +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5045 +echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5046 +if test $ac_cv_lib_socket_socket = yes; then
5047 + cat >>confdefs.h <<_ACEOF
5048 +#define HAVE_LIBSOCKET 1
5051 LIBS="-lsocket $LIBS"
5054 - echo "$ac_t""no" 1>&6
5055 -{ echo "configure: error: libsocket not found." 1>&2; exit 1; }
5056 + { { echo "$as_me:$LINENO: error: libsocket not found." >&5
5057 +echo "$as_me: error: libsocket not found." >&2;}
5058 + { (exit 1); exit 1; }; }
5061 - echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5062 -echo "configure:1773: checking for gethostbyname in -lnsl" >&5
5063 -ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5064 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5065 - echo $ac_n "(cached) $ac_c" 1>&6
5067 +echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5068 +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5069 +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5070 + echo $ECHO_N "(cached) $ECHO_C" >&6
5072 - ac_save_LIBS="$LIBS"
5073 + ac_check_lib_save_LIBS=$LIBS
5075 -cat > conftest.$ac_ext <<EOF
5076 -#line 1781 "configure"
5077 -#include "confdefs.h"
5078 +cat >conftest.$ac_ext <<_ACEOF
5079 +#line $LINENO "configure"
5082 +cat confdefs.h >>conftest.$ac_ext
5083 +cat >>conftest.$ac_ext <<_ACEOF
5084 +/* end confdefs.h. */
5086 /* Override any gcc2 internal prototype to avoid an error. */
5090 /* We use char because int might match the return type of a gcc2
5091 - builtin and then its argument prototype would still apply. */
5092 -char gethostbyname();
5098 -if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5100 - eval "ac_cv_lib_$ac_lib_var=yes"
5101 + builtin and then its argument prototype would still apply. */
5102 +char gethostbyname ();
5111 +rm -f conftest.$ac_objext conftest$ac_exeext
5112 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5113 + (eval $ac_link) 2>&5
5115 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 + (exit $ac_status); } &&
5117 + { ac_try='test -s conftest$ac_exeext'
5118 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 + (eval $ac_try) 2>&5
5121 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 + (exit $ac_status); }; }; then
5123 + ac_cv_lib_nsl_gethostbyname=yes
5125 - echo "configure: failed program was:" >&5
5126 - cat conftest.$ac_ext >&5
5128 - eval "ac_cv_lib_$ac_lib_var=no"
5131 -LIBS="$ac_save_LIBS"
5132 + echo "$as_me: failed program was:" >&5
5133 +sed 's/^/| /' conftest.$ac_ext >&5
5135 +ac_cv_lib_nsl_gethostbyname=no
5137 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5138 - echo "$ac_t""yes" 1>&6
5139 - ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5140 - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5141 - cat >> confdefs.h <<EOF
5142 -#define $ac_tr_lib 1
5144 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5145 +LIBS=$ac_check_lib_save_LIBS
5147 +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5148 +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5149 +if test $ac_cv_lib_nsl_gethostbyname = yes; then
5150 + cat >>confdefs.h <<_ACEOF
5151 +#define HAVE_LIBNSL 1
5157 - echo "$ac_t""no" 1>&6
5158 -{ echo "configure: error: libnsl not found." 1>&2; exit 1; }
5159 + { { echo "$as_me:$LINENO: error: libnsl not found." >&5
5160 +echo "$as_me: error: libnsl not found." >&2;}
5161 + { (exit 1); exit 1; }; }
5165 case "`uname -r`" in
5167 - cat >> confdefs.h <<\EOF
5168 + cat >>confdefs.h <<\_ACEOF
5169 #define STUPID_SOLARIS_CHECKSUM_BUG 1
5175 - cat >> confdefs.h <<\EOF
5176 + cat >>confdefs.h <<\_ACEOF
5177 #define STUPID_SOLARIS_CHECKSUM_BUG 1
5183 @@ -1842,73 +3989,103 @@
5187 - echo "configure: warning: apparently your OS is not officially supported yet" 1>&2
5188 - echo "configure: warning: this may not work" 1>&2
5189 - echo "$ac_t""you'll have to edit the makefile by hand" 1>&6
5190 - echo "$ac_t""please send diffs to mike@infonexus.com" 1>&6
5191 + { echo "$as_me:$LINENO: WARNING: apparently your OS is not officially supported yet" >&5
5192 +echo "$as_me: WARNING: apparently your OS is not officially supported yet" >&2;}
5193 + { echo "$as_me:$LINENO: WARNING: this may not work" >&5
5194 +echo "$as_me: WARNING: this may not work" >&2;}
5195 + echo "$as_me:$LINENO: result: you'll have to edit the makefile by hand" >&5
5196 +echo "${ECHO_T}you'll have to edit the makefile by hand" >&6
5197 + echo "$as_me:$LINENO: result: please send diffs to mike@infonexus.com" >&5
5198 +echo "${ECHO_T}please send diffs to mike@infonexus.com" >&6
5204 - echo $ac_n "checking for libnet_build_ip in -lnet""... $ac_c" 1>&6
5205 -echo "configure:1856: checking for libnet_build_ip in -lnet" >&5
5206 -ac_lib_var=`echo net'_'libnet_build_ip | sed 'y%./+-%__p_%'`
5207 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5208 - echo $ac_n "(cached) $ac_c" 1>&6
5209 + echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet" >&5
5210 +echo $ECHO_N "checking for libnet_build_ip in -lnet... $ECHO_C" >&6
5211 +if test "${ac_cv_lib_net_libnet_build_ip+set}" = set; then
5212 + echo $ECHO_N "(cached) $ECHO_C" >&6
5214 - ac_save_LIBS="$LIBS"
5215 + ac_check_lib_save_LIBS=$LIBS
5217 -cat > conftest.$ac_ext <<EOF
5218 -#line 1864 "configure"
5219 -#include "confdefs.h"
5220 +cat >conftest.$ac_ext <<_ACEOF
5221 +#line $LINENO "configure"
5224 +cat confdefs.h >>conftest.$ac_ext
5225 +cat >>conftest.$ac_ext <<_ACEOF
5226 +/* end confdefs.h. */
5228 /* Override any gcc2 internal prototype to avoid an error. */
5232 /* We use char because int might match the return type of a gcc2
5233 - builtin and then its argument prototype would still apply. */
5234 -char libnet_build_ip();
5240 -if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5242 - eval "ac_cv_lib_$ac_lib_var=yes"
5243 + builtin and then its argument prototype would still apply. */
5244 +char libnet_build_ip ();
5248 +libnet_build_ip ();
5253 +rm -f conftest.$ac_objext conftest$ac_exeext
5254 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5255 + (eval $ac_link) 2>&5
5257 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 + (exit $ac_status); } &&
5259 + { ac_try='test -s conftest$ac_exeext'
5260 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 + (eval $ac_try) 2>&5
5263 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 + (exit $ac_status); }; }; then
5265 + ac_cv_lib_net_libnet_build_ip=yes
5267 - echo "configure: failed program was:" >&5
5268 - cat conftest.$ac_ext >&5
5270 - eval "ac_cv_lib_$ac_lib_var=no"
5273 -LIBS="$ac_save_LIBS"
5274 + echo "$as_me: failed program was:" >&5
5275 +sed 's/^/| /' conftest.$ac_ext >&5
5277 +ac_cv_lib_net_libnet_build_ip=no
5279 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5280 - echo "$ac_t""yes" 1>&6
5281 - echo $ac_n "checking version""... $ac_c" 1>&6
5282 -echo "configure:1891: checking version" >&5 \
5283 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5284 +LIBS=$ac_check_lib_save_LIBS
5286 +echo "$as_me:$LINENO: result: $ac_cv_lib_net_libnet_build_ip" >&5
5287 +echo "${ECHO_T}$ac_cv_lib_net_libnet_build_ip" >&6
5288 +if test $ac_cv_lib_net_libnet_build_ip = yes; then
5289 + echo "$as_me:$LINENO: checking version" >&5
5290 +echo $ECHO_N "checking version... $ECHO_C" >&6 \
5292 if [ ! -f $LIB_PREFIX/libnet.a ] ; then
5293 - echo "$ac_t""$LIB_PREFIX/libnet.a doesn't exist" 1>&6
5294 - echo "$ac_t""previous libnet install lives elsewhere" 1>&6
5295 + echo "$as_me:$LINENO: result: $LIB_PREFIX/libnet.a doesn't exist" >&5
5296 +echo "${ECHO_T}$LIB_PREFIX/libnet.a doesn't exist" >&6
5297 + echo "$as_me:$LINENO: result: previous libnet install lives elsewhere" >&5
5298 +echo "${ECHO_T}previous libnet install lives elsewhere" >&6
5300 __LIBNET_VERSION=`strings $LIB_PREFIX/libnet.a | grep "libnet version"\
5302 if test -z "$__LIBNET_VERSION"; then
5303 - echo "$ac_t""<0.8" 1>&6
5304 + echo "$as_me:$LINENO: result: <0.8" >&5
5305 +echo "${ECHO_T}<0.8" >&6
5307 - echo "$ac_t""$__LIBNET_VERSION" 1>&6
5308 + echo "$as_me:$LINENO: result: $__LIBNET_VERSION" >&5
5309 +echo "${ECHO_T}$__LIBNET_VERSION" >&6
5314 - echo "$ac_t""no" 1>&6
5319 -echo $ac_n "checking machine endianess""... $ac_c" 1>&6
5320 -echo "configure:1912: checking machine endianess" >&5
5321 +echo "$as_me:$LINENO: checking machine_endianness" >&5
5322 +echo $ECHO_N "checking machine_endianness... $ECHO_C" >&6
5323 +if test "${ac_cv_libnet_endianess+set}" = set; then
5324 + echo $ECHO_N "(cached) $ECHO_C" >&6
5328 cat > conftest.c << EOF
5330 @@ -1957,30 +4134,34 @@
5331 ac_cv_libnet_endianess=lil
5333 ac_cv_libnet_endianess=unknown
5337 rm -f conftest* core core.conftest
5339 - echo "$ac_t""$ac_cv_libnet_endianess" 1>&6
5341 +echo "$as_me:$LINENO: result: $ac_cv_libnet_endianess" >&5
5342 +echo "${ECHO_T}$ac_cv_libnet_endianess" >&6
5344 if test $ac_cv_libnet_endianess = big ; then
5345 - cat >> confdefs.h <<\EOF
5346 + cat >>confdefs.h <<\_ACEOF
5347 #define LIBNET_BIG_ENDIAN 1
5351 - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
5352 + ENDIANESS="LIBNET_BIG_ENDIAN"
5353 + LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
5354 elif test $ac_cv_libnet_endianess = lil ; then
5355 - cat >> confdefs.h <<\EOF
5356 + cat >>confdefs.h <<\_ACEOF
5357 #define LIBNET_LIL_ENDIAN 1
5361 - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
5362 + ENDIANESS="LIBNET_LIL_ENDIAN"
5363 + LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
5366 -echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
5367 -echo "configure:1982: checking if unaligned accesses fail" >&5
5368 - if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
5369 - echo $ac_n "(cached) $ac_c" 1>&6
5371 +echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
5372 +echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
5373 + if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
5374 + echo $ECHO_N "(cached) $ECHO_C" >&6
5376 case "$target_cpu" in
5378 @@ -2039,446 +4220,1343 @@
5382 - echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
5383 + echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
5384 +echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
5385 if test $ac_cv_lbl_unaligned_fail = yes ; then
5386 - cat >> confdefs.h <<\EOF
5387 + cat >>confdefs.h <<\_ACEOF
5395 -for ac_hdr in sys/sockio.h
5397 +for ac_header in sys/sockio.h
5399 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5400 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5401 -echo "configure:2056: checking for $ac_hdr" >&5
5402 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5403 - echo $ac_n "(cached) $ac_c" 1>&6
5404 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5405 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5406 + echo "$as_me:$LINENO: checking for $ac_header" >&5
5407 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5408 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5409 + echo $ECHO_N "(cached) $ECHO_C" >&6
5411 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5412 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5414 - cat > conftest.$ac_ext <<EOF
5415 -#line 2061 "configure"
5416 -#include "confdefs.h"
5419 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5420 -{ (eval echo configure:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5421 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5422 -if test -z "$ac_err"; then
5424 - eval "ac_cv_header_$ac_safe=yes"
5425 + # Is the header compilable?
5426 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
5427 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5428 +cat >conftest.$ac_ext <<_ACEOF
5429 +#line $LINENO "configure"
5432 +cat confdefs.h >>conftest.$ac_ext
5433 +cat >>conftest.$ac_ext <<_ACEOF
5434 +/* end confdefs.h. */
5435 +$ac_includes_default
5436 +#include <$ac_header>
5438 +rm -f conftest.$ac_objext
5439 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 + (eval $ac_compile) 2>&5
5442 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 + (exit $ac_status); } &&
5444 + { ac_try='test -s conftest.$ac_objext'
5445 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 + (eval $ac_try) 2>&5
5448 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 + (exit $ac_status); }; }; then
5450 + ac_header_compiler=yes
5452 - echo "$ac_err" >&5
5453 - echo "configure: failed program was:" >&5
5454 - cat conftest.$ac_ext >&5
5456 - eval "ac_cv_header_$ac_safe=no"
5457 + echo "$as_me: failed program was:" >&5
5458 +sed 's/^/| /' conftest.$ac_ext >&5
5460 +ac_header_compiler=no
5463 +rm -f conftest.$ac_objext conftest.$ac_ext
5464 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5465 +echo "${ECHO_T}$ac_header_compiler" >&6
5467 +# Is the header present?
5468 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
5469 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5470 +cat >conftest.$ac_ext <<_ACEOF
5471 +#line $LINENO "configure"
5474 +cat confdefs.h >>conftest.$ac_ext
5475 +cat >>conftest.$ac_ext <<_ACEOF
5476 +/* end confdefs.h. */
5477 +#include <$ac_header>
5479 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5480 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5482 + grep -v '^ *+' conftest.er1 >conftest.err
5483 + rm -f conftest.er1
5484 + cat conftest.err >&5
5485 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 + (exit $ac_status); } >/dev/null; then
5487 + if test -s conftest.err; then
5488 + ac_cpp_err=$ac_c_preproc_warn_flag
5495 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5496 - echo "$ac_t""yes" 1>&6
5497 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5498 - cat >> confdefs.h <<EOF
5499 -#define $ac_tr_hdr 1
5502 +if test -z "$ac_cpp_err"; then
5503 + ac_header_preproc=yes
5505 - echo "$ac_t""no" 1>&6
5506 + echo "$as_me: failed program was:" >&5
5507 +sed 's/^/| /' conftest.$ac_ext >&5
5509 + ac_header_preproc=no
5511 +rm -f conftest.err conftest.$ac_ext
5512 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5513 +echo "${ECHO_T}$ac_header_preproc" >&6
5515 +# So? What about this header?
5516 +case $ac_header_compiler:$ac_header_preproc in
5518 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5519 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5520 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5521 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5524 +## ------------------------------------ ##
5525 +## Report this to bug-autoconf@gnu.org. ##
5526 +## ------------------------------------ ##
5529 + sed "s/^/$as_me: WARNING: /" >&2
5532 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5533 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5534 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5535 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5536 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5537 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5540 +## ------------------------------------ ##
5541 +## Report this to bug-autoconf@gnu.org. ##
5542 +## ------------------------------------ ##
5545 + sed "s/^/$as_me: WARNING: /" >&2
5548 +echo "$as_me:$LINENO: checking for $ac_header" >&5
5549 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5550 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5551 + echo $ECHO_N "(cached) $ECHO_C" >&6
5553 + eval "$as_ac_Header=$ac_header_preproc"
5555 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5556 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5559 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
5560 + cat >>confdefs.h <<_ACEOF
5561 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5568 + ac_config_headers="$ac_config_headers include/config.h"
5571 -cat > confcache <<\EOF
5572 + ac_config_files="$ac_config_files Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile libnet-config"
5573 + ac_config_commands="$ac_config_commands default"
5574 +cat >confcache <<\_ACEOF
5575 # This file is a shell script that caches the results of configure
5576 # tests run on this system so they can be shared between configure
5577 -# scripts and configure runs. It is not useful on other systems.
5578 -# If it contains results you don't want to keep, you may remove or edit it.
5579 +# scripts and configure runs, see configure's option --config-cache.
5580 +# It is not useful on other systems. If it contains results you don't
5581 +# want to keep, you may remove or edit it.
5583 -# By default, configure uses ./config.cache as the cache file,
5584 -# creating it if it does not exist already. You can give configure
5585 -# the --cache-file=FILE option to use a different cache file; that is
5586 -# what configure does when it calls configure scripts in
5587 -# subdirectories, so they share the cache.
5588 -# Giving --cache-file=/dev/null disables caching, for debugging configure.
5589 -# config.status only pays attention to the cache file if you give it the
5590 -# --recheck option to rerun configure.
5591 +# config.status only pays attention to the cache file if you give it
5592 +# the --recheck option to rerun configure.
5595 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
5596 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
5597 +# following values.
5601 # The following way of writing the cache mishandles newlines in values,
5602 # but we know of no workaround that is simple, portable, and efficient.
5603 # So, don't put newlines in cache variables' values.
5604 # Ultrix sh set writes to stderr and can't be redirected directly,
5605 # and sets the high bit in the cache file unless we assign to the vars.
5607 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
5609 - # `set' does not quote correctly, so add quotes (double-quote substitution
5610 - # turns \\\\ into \\, and sed turns \\ into \).
5612 - -e "s/'/'\\\\''/g" \
5613 - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5616 - # `set' quotes correctly as required by POSIX, so do not add quotes.
5617 - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5620 -if cmp -s $cache_file confcache; then
5625 + case `(ac_space=' '; set | grep ac_space) 2>&1` in
5627 + # `set' does not quote correctly, so add quotes (double-quote
5628 + # substitution turns \\\\ into \\, and sed turns \\ into \).
5631 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5634 + # `set' quotes correctly as required by POSIX, so do not add quotes.
5636 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5643 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5645 + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5646 + : end' >>confcache
5647 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
5648 if test -w $cache_file; then
5649 - echo "updating cache $cache_file"
5650 - cat confcache > $cache_file
5651 + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5652 + cat confcache >$cache_file
5654 echo "not updating unwritable cache $cache_file"
5659 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5661 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5662 # Let make expand exec_prefix.
5663 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5665 -# Any assignment to VPATH causes Sun make to only execute
5666 -# the first set of double-colon rules, so remove it if not needed.
5667 -# If there is a colon in the path, we need to keep it.
5668 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
5669 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5670 +# trailing colons and then remove the whole line if VPATH becomes empty
5671 +# (actually we leave an empty line to preserve line numbers).
5672 if test "x$srcdir" = x.; then
5673 - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5674 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
5675 +s/:*\$(srcdir):*/:/;
5676 +s/:*\${srcdir}:*/:/;
5678 +s/^\([^=]*=[ ]*\):*/\1/;
5684 -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5686 DEFS=-DHAVE_CONFIG_H
5688 -# Without the "./", some shells look in PATH for config.status.
5689 -: ${CONFIG_STATUS=./config.status}
5692 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5693 + # 1. Remove the extension, and $U if already installed.
5694 + ac_i=`echo "$ac_i" |
5695 + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5697 + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5698 + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5700 +LIBOBJS=$ac_libobjs
5702 -echo creating $CONFIG_STATUS
5703 -rm -f $CONFIG_STATUS
5704 -cat > $CONFIG_STATUS <<EOF
5706 -# Generated automatically by configure.
5707 +LTLIBOBJS=$ac_ltlibobjs
5711 +: ${CONFIG_STATUS=./config.status}
5712 +ac_clean_files_save=$ac_clean_files
5713 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5714 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5715 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
5716 +cat >$CONFIG_STATUS <<_ACEOF
5718 +# Generated by $as_me.
5719 # Run this file to recreate the current configuration.
5720 -# This directory was configured as follows,
5721 -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5723 -# $0 $ac_configure_args
5725 # Compiler output produced by configure, useful for debugging
5726 -# configure, is in ./config.log if it exists.
5727 +# configure, is in config.log if it exists.
5729 -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5732 +ac_cs_recheck=false
5734 +SHELL=\${CONFIG_SHELL-$SHELL}
5737 +cat >>$CONFIG_STATUS <<\_ACEOF
5738 +## --------------------- ##
5739 +## M4sh Initialization. ##
5740 +## --------------------- ##
5742 +# Be Bourne compatible
5743 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5746 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5747 + # is contrary to our usage. Disable this feature.
5748 + alias -g '${1+"$@"}'='"$@"'
5749 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5753 +# Support unset when possible.
5754 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5761 +# Work around bugs in pre-3.0 UWIN ksh.
5762 +$as_unset ENV MAIL MAILPATH
5769 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5770 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5771 + LC_TELEPHONE LC_TIME
5773 - case "\$ac_option" in
5774 - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5775 - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5776 - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5777 - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5778 - echo "$CONFIG_STATUS generated by autoconf version 2.13"
5780 - -help | --help | --hel | --he | --h)
5781 - echo "\$ac_cs_usage"; exit 0 ;;
5782 - *) echo "\$ac_cs_usage"; exit 1 ;;
5784 + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5785 + eval $as_var=C; export $as_var
5791 -ac_given_srcdir=$srcdir
5792 -ac_given_INSTALL="$INSTALL"
5793 +# Required to use basename.
5794 +if expr a : '\(a\)' >/dev/null 2>&1; then
5800 -trap 'rm -fr `echo "Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
5801 - test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
5802 - test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
5803 - libnet-config include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5805 -cat >> $CONFIG_STATUS <<EOF
5806 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5807 + as_basename=basename
5812 -# Protect against being on the right side of a sed subst in config.status.
5813 -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5814 - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5818 -s%@CFLAGS@%$CFLAGS%g
5819 -s%@CPPFLAGS@%$CPPFLAGS%g
5820 -s%@CXXFLAGS@%$CXXFLAGS%g
5821 -s%@FFLAGS@%$FFLAGS%g
5823 -s%@LDFLAGS@%$LDFLAGS%g
5825 -s%@exec_prefix@%$exec_prefix%g
5826 -s%@prefix@%$prefix%g
5827 -s%@program_transform_name@%$program_transform_name%g
5828 -s%@bindir@%$bindir%g
5829 -s%@sbindir@%$sbindir%g
5830 -s%@libexecdir@%$libexecdir%g
5831 -s%@datadir@%$datadir%g
5832 -s%@sysconfdir@%$sysconfdir%g
5833 -s%@sharedstatedir@%$sharedstatedir%g
5834 -s%@localstatedir@%$localstatedir%g
5835 -s%@libdir@%$libdir%g
5836 -s%@includedir@%$includedir%g
5837 -s%@oldincludedir@%$oldincludedir%g
5838 -s%@infodir@%$infodir%g
5839 -s%@mandir@%$mandir%g
5840 -s%@LL_INT_TYPE_UC@%$LL_INT_TYPE_UC%g
5841 -s%@LL_INT_TYPE@%$LL_INT_TYPE%g
5842 -s%@LIB_PREFIX@%$LIB_PREFIX%g
5843 -s%@INC_PREFIX@%$INC_PREFIX%g
5844 -s%@MAN_PREFIX@%$MAN_PREFIX%g
5845 -s%@BIN_PREFIX@%$BIN_PREFIX%g
5846 -s%@RANLIB@%$RANLIB%g
5849 -s%@ADDITIONAL_LIBS@%$ADDITIONAL_LIBS%g
5850 -s%@LIBNET_CONFIG_DEFINES@%$LIBNET_CONFIG_DEFINES%g
5851 -s%@LIBNET_CONFIG_LIBS@%$LIBNET_CONFIG_LIBS%g
5852 -s%@LIBNET_CONFIG_CFLAGS@%$LIBNET_CONFIG_CFLAGS%g
5854 -s%@host_alias@%$host_alias%g
5855 -s%@host_cpu@%$host_cpu%g
5856 -s%@host_vendor@%$host_vendor%g
5857 -s%@host_os@%$host_os%g
5858 -s%@target@%$target%g
5859 -s%@target_alias@%$target_alias%g
5860 -s%@target_cpu@%$target_cpu%g
5861 -s%@target_vendor@%$target_vendor%g
5862 -s%@target_os@%$target_os%g
5864 -s%@build_alias@%$build_alias%g
5865 -s%@build_cpu@%$build_cpu%g
5866 -s%@build_vendor@%$build_vendor%g
5867 -s%@build_os@%$build_os%g
5869 -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5870 -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5871 -s%@INSTALL_DATA@%$INSTALL_DATA%g
5872 -s%@SET_MAKE@%$SET_MAKE%g
5877 +# Name of the executable.
5878 +as_me=`$as_basename "$0" ||
5879 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5880 + X"$0" : 'X\(//\)$' \| \
5881 + X"$0" : 'X\(/\)$' \| \
5882 + . : '\(.\)' 2>/dev/null ||
5884 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5885 + /^X\/\(\/\/\)$/{ s//\1/; q; }
5886 + /^X\/\(\/\).*/{ s//\1/; q; }
5889 -cat >> $CONFIG_STATUS <<\EOF
5891 -# Split the substitutions into bite-sized pieces for seds with
5892 -# small command number limits, like on Digital OSF/1 and HP-UX.
5893 -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5894 -ac_file=1 # Number of current file.
5895 -ac_beg=1 # First line for current file.
5896 -ac_end=$ac_max_sed_cmds # Line after last line for current file.
5899 -while $ac_more_lines; do
5900 - if test $ac_beg -gt 1; then
5901 - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5902 +# PATH needs CR, and LINENO needs CR and PATH.
5903 +# Avoid depending upon Character Ranges.
5904 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5905 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5906 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5907 +as_cr_digits='0123456789'
5908 +as_cr_alnum=$as_cr_Letters$as_cr_digits
5910 +# The user is always right.
5911 +if test "${PATH_SEPARATOR+set}" != set; then
5912 + echo "#! /bin/sh" >conf$$.sh
5913 + echo "exit 0" >>conf$$.sh
5914 + chmod +x conf$$.sh
5915 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5916 + PATH_SEPARATOR=';'
5918 - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5921 - if test ! -s conftest.s$ac_file; then
5922 - ac_more_lines=false
5923 - rm -f conftest.s$ac_file
5928 + as_lineno_1=$LINENO
5929 + as_lineno_2=$LINENO
5930 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5931 + test "x$as_lineno_1" != "x$as_lineno_2" &&
5932 + test "x$as_lineno_3" = "x$as_lineno_2" || {
5933 + # Find who we are. Look in the path if we contain no path at all
5934 + # relative or not.
5936 + *[\\/]* ) as_myself=$0 ;;
5937 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 +for as_dir in $PATH
5941 + test -z "$as_dir" && as_dir=.
5942 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5947 + # We did not find ourselves, most probably we were run as `sh COMMAND'
5948 + # in which case we are not to be found in the path.
5949 + if test "x$as_myself" = x; then
5952 + if test ! -f "$as_myself"; then
5953 + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5954 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5955 + { (exit 1); exit 1; }; }
5957 + case $CONFIG_SHELL in
5959 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5963 + test -z "$as_dir" && as_dir=.
5964 + for as_base in sh bash ksh sh5; do
5967 + if ("$as_dir/$as_base" -c '
5968 + as_lineno_1=$LINENO
5969 + as_lineno_2=$LINENO
5970 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5971 + test "x$as_lineno_1" != "x$as_lineno_2" &&
5972 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5973 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5974 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5975 + CONFIG_SHELL=$as_dir/$as_base
5976 + export CONFIG_SHELL
5977 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5985 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5986 + # uniformly replaced by the line number. The first 'sed' inserts a
5987 + # line-number line before each line; the second 'sed' does the real
5988 + # work. The second script uses 'N' to pair each line-number line
5989 + # with the numbered line, and appends trailing '-' during
5990 + # substitution so that $LINENO is not a special case at line end.
5991 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5992 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5993 + sed '=' <$as_myself |
5998 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6001 + s,^['$as_cr_digits']*\n,,
6002 + ' >$as_me.lineno &&
6003 + chmod +x $as_me.lineno ||
6004 + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6005 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6006 + { (exit 1); exit 1; }; }
6008 + # Don't try to exec as it changes $[0], causing all sort of problems
6009 + # (the dirname of $[0] is not the place where we might find the
6010 + # original and so on. Autoconf is especially sensible to this).
6012 + # Exit status is that of the last command.
6017 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6018 + *c*,-n*) ECHO_N= ECHO_C='
6020 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6021 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6024 +if expr a : '\(a\)' >/dev/null 2>&1; then
6030 +rm -f conf$$ conf$$.exe conf$$.file
6032 +if ln -s conf$$.file conf$$ 2>/dev/null; then
6033 + # We could just check for DJGPP; but this test a) works b) is more generic
6034 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6035 + if test -f conf$$.exe; then
6036 + # Don't use ln at all; we don't have any links
6039 - if test -z "$ac_sed_cmds"; then
6040 - ac_sed_cmds="sed -f conftest.s$ac_file"
6042 - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6044 - ac_file=`expr $ac_file + 1`
6046 - ac_end=`expr $ac_end + $ac_max_sed_cmds`
6049 +elif ln conf$$.file conf$$ 2>/dev/null; then
6054 +rm -f conf$$ conf$$.exe conf$$.file
6056 +if mkdir -p . 2>/dev/null; then
6062 +as_executable_p="test -f"
6064 +# Sed expression to map a string onto a valid CPP name.
6065 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6067 +# Sed expression to map a string onto a valid variable name.
6068 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6072 +# We need space, tab and new line, in precisely that order.
6082 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
6083 +# report actual input values of CONFIG_FILES etc. instead of their
6084 +# values after options handling. Logging --version etc. is OK.
6088 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6089 +## Running $as_me. ##
6094 +This file was extended by $as_me, which was
6095 +generated by GNU Autoconf 2.57. Invocation command line was
6097 + CONFIG_FILES = $CONFIG_FILES
6098 + CONFIG_HEADERS = $CONFIG_HEADERS
6099 + CONFIG_LINKS = $CONFIG_LINKS
6100 + CONFIG_COMMANDS = $CONFIG_COMMANDS
6104 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6108 +# Files that config.status was made for.
6109 +if test -n "$ac_config_files"; then
6110 + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6113 +if test -n "$ac_config_headers"; then
6114 + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6117 +if test -n "$ac_config_links"; then
6118 + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6121 +if test -n "$ac_config_commands"; then
6122 + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6125 +cat >>$CONFIG_STATUS <<\_ACEOF
6128 +\`$as_me' instantiates files from templates according to the
6129 +current configuration.
6131 +Usage: $0 [OPTIONS] [FILE]...
6133 + -h, --help print this help, then exit
6134 + -V, --version print version number, then exit
6135 + -q, --quiet do not print progress messages
6136 + -d, --debug don't remove temporary files
6137 + --recheck update $as_me by reconfiguring in the same conditions
6138 + --file=FILE[:TEMPLATE]
6139 + instantiate the configuration file FILE
6140 + --header=FILE[:TEMPLATE]
6141 + instantiate the configuration header FILE
6143 +Configuration files:
6146 +Configuration headers:
6149 +Configuration commands:
6152 +Report bugs to <bug-autoconf@gnu.org>."
6155 +cat >>$CONFIG_STATUS <<_ACEOF
6158 +configured by $0, generated by GNU Autoconf 2.57,
6159 + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6161 +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6162 +Free Software Foundation, Inc.
6163 +This config.status script is free software; the Free Software Foundation
6164 +gives unlimited permission to copy, distribute and modify it."
6169 +cat >>$CONFIG_STATUS <<\_ACEOF
6170 +# If no file are specified by the user, then we need to provide default
6171 +# value. By we need to know if files were specified by the user.
6177 + ac_option=`expr "x$1" : 'x\([^=]*\)='`
6178 + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6186 + *) # This is not an option, so the user has probably given explicit
6189 + ac_need_defaults=false;;
6192 + case $ac_option in
6193 + # Handling of the options.
6195 +cat >>$CONFIG_STATUS <<\_ACEOF
6196 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6197 + ac_cs_recheck=: ;;
6198 + --version | --vers* | -V )
6199 + echo "$ac_cs_version"; exit 0 ;;
6201 + # Conflict between --help and --header
6202 + { { echo "$as_me:$LINENO: error: ambiguous option: $1
6203 +Try \`$0 --help' for more information." >&5
6204 +echo "$as_me: error: ambiguous option: $1
6205 +Try \`$0 --help' for more information." >&2;}
6206 + { (exit 1); exit 1; }; };;
6207 + --help | --hel | -h )
6208 + echo "$ac_cs_usage"; exit 0 ;;
6209 + --debug | --d* | -d )
6211 + --file | --fil | --fi | --f )
6213 + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6214 + ac_need_defaults=false;;
6215 + --header | --heade | --head | --hea )
6217 + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6218 + ac_need_defaults=false;;
6219 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6220 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
6223 + # This is an error.
6224 + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6225 +Try \`$0 --help' for more information." >&5
6226 +echo "$as_me: error: unrecognized option: $1
6227 +Try \`$0 --help' for more information." >&2;}
6228 + { (exit 1); exit 1; }; } ;;
6230 + *) ac_config_targets="$ac_config_targets $1" ;;
6235 -if test -z "$ac_sed_cmds"; then
6238 +ac_configure_extra_args=
6240 +if $ac_cs_silent; then
6242 + ac_configure_extra_args="$ac_configure_extra_args --silent"
6246 -cat >> $CONFIG_STATUS <<EOF
6248 +cat >>$CONFIG_STATUS <<_ACEOF
6249 +if \$ac_cs_recheck; then
6250 + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6251 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6254 -CONFIG_FILES=\${CONFIG_FILES-"Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
6255 - test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
6256 - test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
6259 -cat >> $CONFIG_STATUS <<\EOF
6260 -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6261 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6262 - case "$ac_file" in
6263 - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6264 - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6265 - *) ac_file_in="${ac_file}.in" ;;
6272 +cat >>$CONFIG_STATUS <<\_ACEOF
6273 +for ac_config_target in $ac_config_targets
6275 + case "$ac_config_target" in
6276 + # Handling of arguments.
6277 + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6278 + "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
6279 + "test/TCP/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/TCP/Makefile" ;;
6280 + "test/Ethernet/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Ethernet/Makefile" ;;
6281 + "test/UDP/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/UDP/Makefile" ;;
6282 + "test/ICMP/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/ICMP/Makefile" ;;
6283 + "test/Random/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Random/Makefile" ;;
6284 + "test/OSPF/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/OSPF/Makefile" ;;
6285 + "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
6286 + "util/Get-mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Get-mac/Makefile" ;;
6287 + "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
6288 + "libnet-config" ) CONFIG_FILES="$CONFIG_FILES libnet-config" ;;
6289 + "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6290 + "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
6291 + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6292 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6293 + { (exit 1); exit 1; }; };;
6297 - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6298 +# If the user did not use the arguments to specify the items to instantiate,
6299 +# then the envvar interface is used. Set only those that are not.
6300 +# We use the long form for the default assignment because of an extremely
6301 +# bizarre bug on SunOS 4.1.3.
6302 +if $ac_need_defaults; then
6303 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6304 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6305 + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6308 - # Remove last slash and all that follows it. Not all systems have dirname.
6309 - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6310 - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6311 - # The file is in a subdirectory.
6312 - test ! -d "$ac_dir" && mkdir "$ac_dir"
6313 - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6314 - # A "../" for each directory in $ac_dir_suffix.
6315 - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6317 - ac_dir_suffix= ac_dots=
6318 +# Have a temporary directory for convenience. Make it in the build tree
6319 +# simply because there is no reason to put it here, and in addition,
6320 +# creating and moving files from /tmp can sometimes cause problems.
6321 +# Create a temporary directory, and hook for its removal unless debugging.
6324 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6325 + trap '{ (exit 1); exit 1; }' 1 2 13 15
6328 +# Create a (secure) tmp directory for tmp files.
6331 + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6332 + test -n "$tmp" && test -d "$tmp"
6335 + tmp=./confstat$$-$RANDOM
6336 + (umask 077 && mkdir $tmp)
6339 + echo "$me: cannot create a temporary directory in ." >&2
6340 + { (exit 1); exit 1; }
6345 +cat >>$CONFIG_STATUS <<_ACEOF
6348 +# CONFIG_FILES section.
6351 +# No need to generate the scripts if there are no CONFIG_FILES.
6352 +# This happens for instance when ./config.status config.h
6353 +if test -n "\$CONFIG_FILES"; then
6354 + # Protect against being on the right side of a sed subst in config.status.
6355 + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6356 + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6357 +s,@SHELL@,$SHELL,;t t
6358 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6359 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6360 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6361 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6362 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6363 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6364 +s,@exec_prefix@,$exec_prefix,;t t
6365 +s,@prefix@,$prefix,;t t
6366 +s,@program_transform_name@,$program_transform_name,;t t
6367 +s,@bindir@,$bindir,;t t
6368 +s,@sbindir@,$sbindir,;t t
6369 +s,@libexecdir@,$libexecdir,;t t
6370 +s,@datadir@,$datadir,;t t
6371 +s,@sysconfdir@,$sysconfdir,;t t
6372 +s,@sharedstatedir@,$sharedstatedir,;t t
6373 +s,@localstatedir@,$localstatedir,;t t
6374 +s,@libdir@,$libdir,;t t
6375 +s,@includedir@,$includedir,;t t
6376 +s,@oldincludedir@,$oldincludedir,;t t
6377 +s,@infodir@,$infodir,;t t
6378 +s,@mandir@,$mandir,;t t
6379 +s,@build_alias@,$build_alias,;t t
6380 +s,@host_alias@,$host_alias,;t t
6381 +s,@target_alias@,$target_alias,;t t
6382 +s,@DEFS@,$DEFS,;t t
6383 +s,@ECHO_C@,$ECHO_C,;t t
6384 +s,@ECHO_N@,$ECHO_N,;t t
6385 +s,@ECHO_T@,$ECHO_T,;t t
6386 +s,@LIBS@,$LIBS,;t t
6387 +s,@LL_INT_TYPE_UC@,$LL_INT_TYPE_UC,;t t
6388 +s,@LL_INT_TYPE@,$LL_INT_TYPE,;t t
6389 +s,@LIB_PREFIX@,$LIB_PREFIX,;t t
6390 +s,@INC_PREFIX@,$INC_PREFIX,;t t
6391 +s,@MAN_PREFIX@,$MAN_PREFIX,;t t
6392 +s,@BIN_PREFIX@,$BIN_PREFIX,;t t
6393 +s,@RANLIB@,$RANLIB,;t t
6396 +s,@ADDITIONAL_LIBS@,$ADDITIONAL_LIBS,;t t
6397 +s,@LIBNET_CONFIG_DEFINES@,$LIBNET_CONFIG_DEFINES,;t t
6398 +s,@LIBNET_CONFIG_LIBS@,$LIBNET_CONFIG_LIBS,;t t
6399 +s,@LIBNET_CONFIG_CFLAGS@,$LIBNET_CONFIG_CFLAGS,;t t
6400 +s,@build@,$build,;t t
6401 +s,@build_cpu@,$build_cpu,;t t
6402 +s,@build_vendor@,$build_vendor,;t t
6403 +s,@build_os@,$build_os,;t t
6404 +s,@host@,$host,;t t
6405 +s,@host_cpu@,$host_cpu,;t t
6406 +s,@host_vendor@,$host_vendor,;t t
6407 +s,@host_os@,$host_os,;t t
6408 +s,@target@,$target,;t t
6409 +s,@target_cpu@,$target_cpu,;t t
6410 +s,@target_vendor@,$target_vendor,;t t
6411 +s,@target_os@,$target_os,;t t
6413 +s,@CFLAGS@,$CFLAGS,;t t
6414 +s,@LDFLAGS@,$LDFLAGS,;t t
6415 +s,@CPPFLAGS@,$CPPFLAGS,;t t
6416 +s,@ac_ct_CC@,$ac_ct_CC,;t t
6417 +s,@EXEEXT@,$EXEEXT,;t t
6418 +s,@OBJEXT@,$OBJEXT,;t t
6419 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6420 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6421 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6422 +s,@SET_MAKE@,$SET_MAKE,;t t
6424 +s,@EGREP@,$EGREP,;t t
6425 +s,@LIBOBJS@,$LIBOBJS,;t t
6426 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6431 + cat >>$CONFIG_STATUS <<\_ACEOF
6432 + # Split the substitutions into bite-sized pieces for seds with
6433 + # small command number limits, like on Digital OSF/1 and HP-UX.
6434 + ac_max_sed_lines=48
6435 + ac_sed_frag=1 # Number of current file.
6436 + ac_beg=1 # First line for current file.
6437 + ac_end=$ac_max_sed_lines # Line after last line for current file.
6440 + while $ac_more_lines; do
6441 + if test $ac_beg -gt 1; then
6442 + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6444 + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6446 + if test ! -s $tmp/subs.frag; then
6447 + ac_more_lines=false
6449 + # The purpose of the label and of the branching condition is to
6450 + # speed up the sed processing (if there are no `@' at all, there
6451 + # is no need to browse any of the substitutions).
6452 + # These are the two extra sed commands mentioned above.
6454 + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6455 + if test -z "$ac_sed_cmds"; then
6456 + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6458 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6460 + ac_sed_frag=`expr $ac_sed_frag + 1`
6462 + ac_end=`expr $ac_end + $ac_max_sed_lines`
6465 + if test -z "$ac_sed_cmds"; then
6468 +fi # test -n "$CONFIG_FILES"
6470 - case "$ac_given_srcdir" in
6472 - if test -z "$ac_dots"; then top_srcdir=.
6473 - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6474 - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6475 - *) # Relative path.
6476 - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6477 - top_srcdir="$ac_dots$ac_given_srcdir" ;;
6479 +cat >>$CONFIG_STATUS <<\_ACEOF
6480 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6481 + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6483 + - | *:- | *:-:* ) # input from stdin
6485 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6486 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6487 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6488 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6489 + * ) ac_file_in=$ac_file.in ;;
6492 - case "$ac_given_INSTALL" in
6493 - [/$]*) INSTALL="$ac_given_INSTALL" ;;
6494 - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6496 + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6497 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6498 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6499 + X"$ac_file" : 'X\(//\)[^/]' \| \
6500 + X"$ac_file" : 'X\(//\)$' \| \
6501 + X"$ac_file" : 'X\(/\)' \| \
6502 + . : '\(.\)' 2>/dev/null ||
6504 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6505 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6506 + /^X\(\/\/\)$/{ s//\1/; q; }
6507 + /^X\(\/\).*/{ s//\1/; q; }
6509 + { if $as_mkdir_p; then
6510 + mkdir -p "$ac_dir"
6514 + while test ! -d "$as_dir"; do
6515 + as_dirs="$as_dir $as_dirs"
6516 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
6517 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6518 + X"$as_dir" : 'X\(//\)[^/]' \| \
6519 + X"$as_dir" : 'X\(//\)$' \| \
6520 + X"$as_dir" : 'X\(/\)' \| \
6521 + . : '\(.\)' 2>/dev/null ||
6523 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6524 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6525 + /^X\(\/\/\)$/{ s//\1/; q; }
6526 + /^X\(\/\).*/{ s//\1/; q; }
6529 + test ! -n "$as_dirs" || mkdir $as_dirs
6530 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6531 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6532 + { (exit 1); exit 1; }; }; }
6534 - echo creating "$ac_file"
6536 - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6537 - case "$ac_file" in
6538 - *Makefile*) ac_comsub="1i\\
6539 -# $configure_input" ;;
6543 +if test "$ac_dir" != .; then
6544 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6545 + # A "../" for each directory in $ac_dir_suffix.
6546 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6548 + ac_dir_suffix= ac_top_builddir=
6552 + .) # No --srcdir option. We are building in place.
6554 + if test -z "$ac_top_builddir"; then
6557 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6559 + [\\/]* | ?:[\\/]* ) # Absolute path.
6560 + ac_srcdir=$srcdir$ac_dir_suffix;
6561 + ac_top_srcdir=$srcdir ;;
6562 + *) # Relative path.
6563 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6564 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
6566 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6568 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6569 +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6570 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6571 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6575 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6576 + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6579 - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6580 - sed -e "$ac_comsub
6581 -s%@configure_input@%$configure_input%g
6582 -s%@srcdir@%$srcdir%g
6583 -s%@top_srcdir@%$top_srcdir%g
6584 -s%@INSTALL@%$INSTALL%g
6585 -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6588 + if test x"$ac_file" != x-; then
6589 + { echo "$as_me:$LINENO: creating $ac_file" >&5
6590 +echo "$as_me: creating $ac_file" >&6;}
6593 + # Let's still pretend it is `configure' which instantiates (i.e., don't
6594 + # use $as_me), people would be surprised to read:
6595 + # /* config.h. Generated by config.status. */
6596 + if test x"$ac_file" = x-; then
6599 + configure_input="$ac_file. "
6601 + configure_input=$configure_input"Generated from `echo $ac_file_in |
6602 + sed 's,.*/,,'` by configure."
6604 + # First look for the input files in the build tree, otherwise in the
6606 + ac_file_inputs=`IFS=:
6607 + for f in $ac_file_in; do
6609 + -) echo $tmp/stdin ;;
6611 + # Absolute (can't be DOS-style, as IFS=:)
6612 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6613 +echo "$as_me: error: cannot find input file: $f" >&2;}
6614 + { (exit 1); exit 1; }; }
6617 + if test -f "$f"; then
6620 + elif test -f "$srcdir/$f"; then
6625 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6626 +echo "$as_me: error: cannot find input file: $f" >&2;}
6627 + { (exit 1); exit 1; }; }
6630 + done` || { (exit 1); exit 1; }
6632 +cat >>$CONFIG_STATUS <<_ACEOF
6636 +cat >>$CONFIG_STATUS <<\_ACEOF
6638 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6639 +s,@configure_input@,$configure_input,;t t
6640 +s,@srcdir@,$ac_srcdir,;t t
6641 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
6642 +s,@top_srcdir@,$ac_top_srcdir,;t t
6643 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6644 +s,@builddir@,$ac_builddir,;t t
6645 +s,@abs_builddir@,$ac_abs_builddir,;t t
6646 +s,@top_builddir@,$ac_top_builddir,;t t
6647 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6648 +s,@INSTALL@,$ac_INSTALL,;t t
6649 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6651 + if test x"$ac_file" != x-; then
6652 + mv $tmp/out $ac_file
6660 +cat >>$CONFIG_STATUS <<\_ACEOF
6663 +# CONFIG_HEADER section.
6666 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6667 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6669 # ac_d sets the value in "#define NAME VALUE" lines.
6670 -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6671 -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6674 -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6675 -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6676 -ac_uB='\([ ]\)%\1#\2define\3'
6677 +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6678 +ac_dB='[ ].*$,\1#\2'
6681 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6682 +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6683 +ac_uB='$,\1#\2define\3'
6686 -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6687 -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6688 -ac_eB='$%\1#\2define\3'
6693 -if test "${CONFIG_HEADERS+set}" != set; then
6695 -cat >> $CONFIG_STATUS <<EOF
6696 - CONFIG_HEADERS="include/config.h"
6698 -cat >> $CONFIG_STATUS <<\EOF
6700 -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6701 +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6702 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6703 - case "$ac_file" in
6704 - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6705 - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6706 - *) ac_file_in="${ac_file}.in" ;;
6708 + - | *:- | *:-:* ) # input from stdin
6710 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6711 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6712 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6713 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6714 + * ) ac_file_in=$ac_file.in ;;
6717 - echo creating $ac_file
6718 + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6719 +echo "$as_me: creating $ac_file" >&6;}
6721 - rm -f conftest.frag conftest.in conftest.out
6722 - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6723 - cat $ac_file_inputs > conftest.in
6724 + # First look for the input files in the build tree, otherwise in the
6726 + ac_file_inputs=`IFS=:
6727 + for f in $ac_file_in; do
6729 + -) echo $tmp/stdin ;;
6731 + # Absolute (can't be DOS-style, as IFS=:)
6732 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6733 +echo "$as_me: error: cannot find input file: $f" >&2;}
6734 + { (exit 1); exit 1; }; }
6737 + if test -f "$f"; then
6740 + elif test -f "$srcdir/$f"; then
6745 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6746 +echo "$as_me: error: cannot find input file: $f" >&2;}
6747 + { (exit 1); exit 1; }; }
6750 + done` || { (exit 1); exit 1; }
6751 + # Remove the trailing spaces.
6752 + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6757 -# Transform confdefs.h into a sed script conftest.vals that substitutes
6758 -# the proper values into config.h.in to produce config.h. And first:
6759 -# Protect against being on the right side of a sed subst in config.status.
6760 -# Protect against being in an unquoted here document in config.status.
6761 -rm -f conftest.vals
6762 -cat > conftest.hdr <<\EOF
6765 -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6769 -sed -n -f conftest.hdr confdefs.h > conftest.vals
6771 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
6772 +# `conftest.undefs', that substitutes the proper values into
6773 +# config.h.in to produce config.h. The first handles `#define'
6774 +# templates, and the second `#undef' templates.
6775 +# And first: Protect against being on the right side of a sed subst in
6776 +# config.status. Protect against being in an unquoted here document
6777 +# in config.status.
6778 +rm -f conftest.defines conftest.undefs
6779 +# Using a here document instead of a string reduces the quoting nightmare.
6780 +# Putting comments in sed scripts is not portable.
6782 +# `end' is used to avoid that the second main sed command (meant for
6783 +# 0-ary CPP macros) applies to n-ary macro definitions.
6784 +# See the Autoconf documentation for `clear'.
6785 +cat >confdef2sed.sed <<\_ACEOF
6790 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6792 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6795 +# If some macros were called several times there might be several times
6796 +# the same #defines, which is useless. Nevertheless, we may not want to
6797 +# sort them, since we want the *last* AC-DEFINE to be honored.
6798 +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6799 +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6800 +rm -f confdef2sed.sed
6802 # This sed command replaces #undef with comments. This is necessary, for
6803 # example, in the case of _POSIX_SOURCE, which is predefined and required
6804 # on some systems where configure will not decide to define it.
6805 -cat >> conftest.vals <<\EOF
6806 -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6808 +cat >>conftest.undefs <<\_ACEOF
6809 +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6812 -# Break up conftest.vals because some shells have a limit on
6813 -# the size of here documents, and old seds have small limits too.
6814 +# Break up conftest.defines because some shells have a limit on the size
6815 +# of here documents, and old seds have small limits too (100 cmds).
6816 +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6817 +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6818 +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6819 +echo ' :' >>$CONFIG_STATUS
6820 +rm -f conftest.tail
6821 +while grep . conftest.defines >/dev/null
6823 + # Write a limited-size here document to $tmp/defines.sed.
6824 + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6825 + # Speed up: don't consider the non `#define' lines.
6826 + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6827 + # Work around the forget-to-reset-the-flag bug.
6828 + echo 't clr' >>$CONFIG_STATUS
6829 + echo ': clr' >>$CONFIG_STATUS
6830 + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6832 + sed -f $tmp/defines.sed $tmp/in >$tmp/out
6834 + mv $tmp/out $tmp/in
6836 + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6837 + rm -f conftest.defines
6838 + mv conftest.tail conftest.defines
6840 +rm -f conftest.defines
6841 +echo ' fi # grep' >>$CONFIG_STATUS
6842 +echo >>$CONFIG_STATUS
6844 +# Break up conftest.undefs because some shells have a limit on the size
6845 +# of here documents, and old seds have small limits too (100 cmds).
6846 +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6849 +while grep . conftest.undefs >/dev/null
6851 - ac_lines=`grep -c . conftest.vals`
6852 - # grep -c gives empty output for an empty file on some AIX systems.
6853 - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6854 - # Write a limited-size here document to conftest.frag.
6855 - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6856 - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6857 + # Write a limited-size here document to $tmp/undefs.sed.
6858 + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6859 + # Speed up: don't consider the non `#undef'
6860 + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6861 + # Work around the forget-to-reset-the-flag bug.
6862 + echo 't clr' >>$CONFIG_STATUS
6863 + echo ': clr' >>$CONFIG_STATUS
6864 + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6866 - sed -f conftest.frag conftest.in > conftest.out
6868 - mv conftest.out conftest.in
6869 -' >> $CONFIG_STATUS
6870 - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6871 - rm -f conftest.vals
6872 - mv conftest.tail conftest.vals
6873 + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6875 + mv $tmp/out $tmp/in
6877 + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6878 + rm -f conftest.undefs
6879 + mv conftest.tail conftest.undefs
6881 -rm -f conftest.vals
6882 +rm -f conftest.undefs
6884 -cat >> $CONFIG_STATUS <<\EOF
6885 - rm -f conftest.frag conftest.h
6886 - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6887 - cat conftest.in >> conftest.h
6889 - if cmp -s $ac_file conftest.h 2>/dev/null; then
6890 - echo "$ac_file is unchanged"
6892 +cat >>$CONFIG_STATUS <<\_ACEOF
6893 + # Let's still pretend it is `configure' which instantiates (i.e., don't
6894 + # use $as_me), people would be surprised to read:
6895 + # /* config.h. Generated by config.status. */
6896 + if test x"$ac_file" = x-; then
6897 + echo "/* Generated by configure. */" >$tmp/config.h
6899 - # Remove last slash and all that follows it. Not all systems have dirname.
6900 - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6901 - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6902 - # The file is in a subdirectory.
6903 - test ! -d "$ac_dir" && mkdir "$ac_dir"
6904 + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6906 + cat $tmp/in >>$tmp/config.h
6908 + if test x"$ac_file" != x-; then
6909 + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6910 + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6911 +echo "$as_me: $ac_file is unchanged" >&6;}
6913 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6914 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6915 + X"$ac_file" : 'X\(//\)[^/]' \| \
6916 + X"$ac_file" : 'X\(//\)$' \| \
6917 + X"$ac_file" : 'X\(/\)' \| \
6918 + . : '\(.\)' 2>/dev/null ||
6920 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6921 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6922 + /^X\(\/\/\)$/{ s//\1/; q; }
6923 + /^X\(\/\).*/{ s//\1/; q; }
6925 + { if $as_mkdir_p; then
6926 + mkdir -p "$ac_dir"
6930 + while test ! -d "$as_dir"; do
6931 + as_dirs="$as_dir $as_dirs"
6932 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
6933 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6934 + X"$as_dir" : 'X\(//\)[^/]' \| \
6935 + X"$as_dir" : 'X\(//\)$' \| \
6936 + X"$as_dir" : 'X\(/\)' \| \
6937 + . : '\(.\)' 2>/dev/null ||
6939 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6940 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6941 + /^X\(\/\/\)$/{ s//\1/; q; }
6942 + /^X\(\/\).*/{ s//\1/; q; }
6945 + test ! -n "$as_dirs" || mkdir $as_dirs
6946 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6947 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6948 + { (exit 1); exit 1; }; }; }
6951 + mv $tmp/config.h $ac_file
6954 - mv conftest.h $ac_file
6957 + rm -f $tmp/config.h
6962 +cat >>$CONFIG_STATUS <<\_ACEOF
6965 -cat >> $CONFIG_STATUS <<EOF
6967 +# CONFIG_COMMANDS section.
6969 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6970 + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6971 + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6972 + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6973 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6974 + X"$ac_dest" : 'X\(//\)[^/]' \| \
6975 + X"$ac_dest" : 'X\(//\)$' \| \
6976 + X"$ac_dest" : 'X\(/\)' \| \
6977 + . : '\(.\)' 2>/dev/null ||
6979 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6980 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6981 + /^X\(\/\/\)$/{ s//\1/; q; }
6982 + /^X\(\/\).*/{ s//\1/; q; }
6987 -cat >> $CONFIG_STATUS <<\EOF
6988 -chmod +x libnet-config
6991 +if test "$ac_dir" != .; then
6992 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6993 + # A "../" for each directory in $ac_dir_suffix.
6994 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6996 + ac_dir_suffix= ac_top_builddir=
7000 + .) # No --srcdir option. We are building in place.
7002 + if test -z "$ac_top_builddir"; then
7005 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7007 + [\\/]* | ?:[\\/]* ) # Absolute path.
7008 + ac_srcdir=$srcdir$ac_dir_suffix;
7009 + ac_top_srcdir=$srcdir ;;
7010 + *) # Relative path.
7011 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7012 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
7014 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7016 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7017 +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7018 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7019 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7022 + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7023 +echo "$as_me: executing $ac_dest commands" >&6;}
7025 + default ) chmod +x libnet-config ;;
7030 +cat >>$CONFIG_STATUS <<\_ACEOF
7032 +{ (exit 0); exit 0; }
7034 chmod +x $CONFIG_STATUS
7035 -rm -fr confdefs* $ac_clean_files
7036 -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7037 +ac_clean_files=$ac_clean_files_save
7040 +# configure is writing to config.log, and then calls config.status.
7041 +# config.status does its own redirection, appending to config.log.
7042 +# Unfortunately, on DOS this fails, as config.log is still kept open
7043 +# by configure, so config.status won't be able to write to it; its
7044 +# output is simply discarded. So we exec the FD to /dev/null,
7045 +# effectively closing config.log, so it can be properly (re)opened and
7046 +# appended to by config.status. When coming back to configure, we
7047 +# need to make the FD available again.
7048 +if test "$no_create" != yes; then
7050 + ac_config_status_args=
7051 + test "$silent" = yes &&
7052 + ac_config_status_args="$ac_config_status_args --quiet"
7054 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7055 + exec 5>>config.log
7056 + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7057 + # would make configure fail if this is the last instruction.
7058 + $ac_cs_success || { (exit 1); exit 1; }
7062 --- Libnet-1.0.2a/include/libnet.h~configure
7063 +++ Libnet-1.0.2a/include/libnet.h
7065 #define LIBNET_VERSION "1.0.2a"
7067 #if (!LIBNET_LIL_ENDIAN && !LIBNET_BIG_ENDIAN)
7068 -#error "byte order has not been specified, you'll
7069 -need to #define either LIBNET_LIL_ENDIAN or LIBNET_BIG_ENDIAN. See the
7070 +#error "byte order has not been specified, you'll\
7071 +need to #define either LIBNET_LIL_ENDIAN or LIBNET_BIG_ENDIAN. See the\
7072 documentation regarding the libnet-config script."
7075 --- Libnet-1.0.2a/./configure.in~configure
7076 +++ Libnet-1.0.2a/./configure.in
7079 dnl Process this file with autoconf to produce a configure script.
7081 -AC_INIT(src/libnet_build_ip.c)
7083 +AC_CONFIG_SRCDIR([src/libnet_build_ip.c])
7086 AC_MSG_RESULT(Beginning autoconfiguration process for libnet-$VER...)
7089 dnl Determine hosttype and set the root install directory.
7091 -AC_CANONICAL_SYSTEM
7092 +AC_CANONICAL_TARGET([])
7093 AC_PREFIX_DEFAULT(/usr)
7095 if test "$prefix" = "NONE"; then
7098 dnl Use these compiler flags if we have gcc.
7100 -if test $ac_cv_prog_gcc = yes; then
7101 +if test $ac_cv_c_compiler_gnu = yes; then
7102 dnl if test -z $CFLAGS; then
7103 CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
7105 @@ -258,9 +259,11 @@
7107 AC_CHECK_HEADERS(sys/sockio.h)
7108 AC_CONFIG_HEADER(include/config.h)
7109 -AC_OUTPUT(Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
7110 +AC_CONFIG_FILES([Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
7111 test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
7112 test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
7113 - libnet-config, chmod +x libnet-config)
7115 +AC_CONFIG_COMMANDS([default],[[chmod +x libnet-config]],[[]])
7119 --- Libnet-1.0.2a/./support/bpf-lkm/OpenBSD/configure.in~configure
7120 +++ Libnet-1.0.2a/./support/bpf-lkm/OpenBSD/configure.in
7122 dnl Process this file with autoconf to produce a configure script.
7125 -AC_INIT(ether_mod_load.c)
7127 +AC_CONFIG_SRCDIR([ether_mod_load.c])
7128 AC_SUBST(KERNEL_VERSION)
7130 KERNEL_VERSION=`uname -r`
7132 -AC_OUTPUT(Makefile)
7133 +AC_CONFIG_FILES([Makefile])