]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/libnet/libnet-1.0.2a/configure.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / libnet / libnet-1.0.2a / configure.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
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
9 -
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.
14 -
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.
19 -
20 -dnl $Id: aclocal.m4,v 1.1.1.1 2000/05/25 00:28:49 route Exp $
21 -dnl
22 -dnl Libnet specific autoconf macros
23 -dnl Copyright (c) 1998, 1999, 2000 Mike D. Schiffman <mike@infonexus.com>
24 -dnl All rights reserved.
25 -dnl
26 -
27 -dnl
28 -dnl Checks to see if this linux kernel has a working PF_PACKET
29 -dnl
30 -dnl usage:
31 -dnl
32 -dnl     AC_LIBNET_CHECK_PF_PACKET
33 -dnl
34 -dnl results:
35 -dnl
36 -dnl     HAVE_PF_PACKET (DEFINED)
37 -dnl
38 -
39 -AC_DEFUN(AC_LIBNET_CHECK_PF_PACKET,
40 -[
41 -    AC_MSG_CHECKING(for PF_PACKET)
42 -    AC_CACHE_VAL(ac_libnet_have_pf_packet,
43 -
44 -        [case "$target_os" in
45 -
46 -        linux)
47 -                ac_libnet_have_pf_packet = no
48 -                ;;
49 -        *)
50 -
51 -    cat > pf_packet-test.c << EOF
52 -#include <net/if.h>
53 -#if (__GLIBC__)
54 -#include <netinet/if_ether.h>
55 -#include <net/if_arp.h>
56 -#else
57 -#include <linux/if_arp.h>
58 -#include <linux/if_ether.h>
59 -#endif
60 -#if (PF_PACKET)
61 -#ifndef SOL_PACKET
62 -#define SOL_PACKET 263
63 -#endif  /* SOL_PACKET */
64 -#include <linux/if_packet.h>
65 -#endif
66 -#include <stdlib.h>
67 -#include <linux/sockios.h>
68 -
69 -int
70 -main()
71 -{
72 -#if (PF_PACKET)
73 -    int fd;
74 -    struct sockaddr_ll sa;
75 -    struct ifreq ifr;
76 -    struct packet_mreq mr;
77 -    char *device ="lo";
78 -
79 -    fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
80 -    if (fd == -1)
81 -    {
82 -        printf("choked");
83 -        exit (EXIT_FAILURE);
84 -    }
85 -
86 -    memset(&sa, 0, sizeof(sa));
87 -    strcpy(ifr.ifr_name, device);
88 -    if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0)
89 -    {
90 -        printf("choked");
91 -        exit (EXIT_FAILURE);
92 -    }
93 -    sa.sll_family = AF_PACKET;
94 -    sa.sll_ifindex = ifr.ifr_ifindex;
95 -    sa.sll_protocol = htons(ETH_P_ALL);
96 -
97 -    memset(&mr, 0, sizeof (mr));
98 -    mr.mr_ifindex = sa.sll_ifindex;
99 -    mr.mr_type = PACKET_MR_ALLMULTI;
100 -
101 -    if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, (char *)&mr,
102 -            sizeof (mr)) < 0)
103 -    {
104 -        printf("choked\n");
105 -        exit (EXIT_FAILURE);
106 -    }
107 -    /* yay.  we made it and it workz! */
108 -    printf("yes");
109 -#else   /* PF_PACKET */
110 -    printf("no");
111 -#endif
112 -    exit (EXIT_SUCCESS);
113 -}
114 -EOF
115 -    ${CC-cc} -o pf_packet-test $CFLAGS pf_packet-test.c >/dev/null 2>&1
116 -
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
120 -    else
121 -        ac_libnet_have_pf_packet=`./pf_packet-test`;
122 -    fi
123 -
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"
129 -    fi
130 -
131 -    if test $ac_libnet_have_pf_packet != choked; then
132 -        AC_MSG_RESULT($ac_libnet_have_pf_packet)
133 -    fi
134 -    rm -f pf_packet-test* core core.pf_packet-test
135 -    ;;
136 -    esac])
137 -])
138 -
139 -dnl
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.
143 -dnl
144 -dnl usage:
145 -dnl
146 -dnl     AC_LIBNET_CHECK_LIBNET_VERSION
147 -dnl
148 -dnl results:
149 -dnl
150 -dnl
151 -dnl
152 -
153 -AC_DEFUN(AC_LIBNET_CHECK_LIBNET_VER,
154 -[
155 -    AC_CHECK_LIB(net, libnet_build_ip, AC_MSG_CHECKING(version) \
156 -
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)
162 -    else
163 -        __LIBNET_VERSION=`strings $LIB_PREFIX/libnet.a | grep "libnet version"\
164 -                | cut -f3 -d" "`;\
165 -        if test -z "$__LIBNET_VERSION"; then
166 -            AC_MSG_RESULT(<0.8)
167 -        else
168 -            AC_MSG_RESULT($__LIBNET_VERSION)
169 -        fi
170 -    fi\
171 -    )
172 -])
173 -
174 -
175 -dnl
176 -dnl Checks to see if this linux kernel uses ip_sum or ip_csum
177 -dnl (Pulled from queso)
178 -dnl
179 -dnl usage:
180 -dnl
181 -dnl     AC_LIBNET_CHECK_IP_CSUM
182 -dnl
183 -dnl results:
184 -dnl
185 -dnl     HAVE_STRUCT_IP_CSUM (DEFINED)
186 -dnl
187 -
188 -AC_DEFUN(AC_LIBNET_CHECK_IP_CSUM,
189 -[
190 -    AC_MSG_CHECKING([struct ip contains ip_csum])
191 -    AC_TRY_COMPILE([
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>],
198 -        [
199 -            struct ip ip;
200 -            ip.ip_csum = 0;
201 -        ],
202 -        [AC_MSG_RESULT(yes);
203 -        AC_DEFINE(HAVE_STRUCT_IP_CSUM)],
204 -        [AC_MSG_RESULT(no);
205 -    ])
206 -])
207 -
208 -dnl
209 -dnl Checks to see if unaligned memory accesses fail
210 -dnl (Pulled from libpcap)
211 -dnl
212 -dnl usage:
213 -dnl
214 -dnl     AC_LBL_UNALIGNED_ACCESS
215 -dnl
216 -dnl results:
217 -dnl
218 -dnl     LBL_ALIGN (DEFINED)
219 -dnl
220 -
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
225 -
226 -        alpha|hp*|mips|sparc)
227 -                ac_cv_lbl_unaligned_fail=yes
228 -                ;;
229 -
230 -        *)
231 -                cat >conftest.c <<EOF
232 -#                   include <sys/types.h>
233 -#                   include <sys/wait.h>
234 -#                   include <stdio.h>
235 -                    unsigned char a[[5]] = { 1, 2, 3, 4, 5 };
236 -                    main()
237 -                    {
238 -                        unsigned int i;
239 -                        pid_t pid;
240 -                        int status;
241 -                        /* avoid "core dumped" message */
242 -                        pid = fork();
243 -                        if (pid <  0)
244 -                        {
245 -                            exit(2);
246 -                        }
247 -                        if (pid > 0)
248 -                        {
249 -                            /* parent */
250 -                            pid = waitpid(pid, &status, 0);
251 -                            if (pid < 0)
252 -                            {
253 -                                exit(3);
254 -                            }
255 -                            exit(!WIFEXITED(status));
256 -                        }
257 -                        /* child */
258 -                        i = *(unsigned int *)&a[[1]];
259 -                        printf("%d\n", i);
260 -                        exit(0);
261 -                    }
262 -EOF
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
269 -                else
270 -                        ./conftest > conftest.out
271 -                        if test ! -s conftest.out ; then
272 -                                ac_cv_lbl_unaligned_fail=yes
273 -                        else
274 -                                ac_cv_lbl_unaligned_fail=no
275 -                        fi
276 -                fi
277 -                rm -f conftest* core core.conftest
278 -                ;;
279 -        esac])
280 -    AC_MSG_RESULT($ac_cv_lbl_unaligned_fail)
281 -    if test $ac_cv_lbl_unaligned_fail = yes ; then
282 -            AC_DEFINE(LBL_ALIGN)
283 -    fi
284 -])
285 -
286 -
287 -dnl
288 -dnl Checks endianess
289 -dnl
290 -dnl usage:
291 -dnl
292 -dnl     AC_LIBNET_ENDIAN_CHECK
293 -dnl
294 -dnl results:
295 -dnl
296 -dnl     LIBNET_BIG_ENDIAN = 1   or
297 -dnl     LIBNET_LIL_ENDIAN = 1
298 -dnl
299 -
300 -AC_DEFUN(AC_LIBNET_ENDIAN_CHECK,
301 -    [AC_MSG_CHECKING(machine endianess)
302 -
303 -    cat > conftest.c << EOF
304 -#       include <stdio.h>
305 -#       include <stdlib.h>
306 -
307 -        int main()
308 -        {
309 -            union
310 -            {
311 -                short s;
312 -                char c[[sizeof(short)]];
313 -            } un;
314 -
315 -            un.s = 0x0102;
316 -            if (sizeof (short) == 2)
317 -            {
318 -                if (un.c [[0]] == 1 && un.c [[1]] == 2)
319 -                {
320 -                    printf("B\n");
321 -                }
322 -                else
323 -                {
324 -                    if (un.c [[0]] == 2 && un.c [[1]] == 1)
325 -                    {
326 -                        printf("L\n");
327 -                    }
328 -                }
329 -            }
330 -            else
331 -            {
332 -                printf("?\n");
333 -            }
334 -            return (EXIT_SUCCESS);
335 -        }
336 -EOF
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
342 -        else
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
349 -            else
350 -                ac_cv_libnet_endianess=unknown
351 -            fi                                
352 -        fi
353 -        rm -f conftest* core core.conftest
354 -
355 -        AC_MSG_RESULT($ac_cv_libnet_endianess)
356 -
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"
363 -        fi
364 -    ])
365 -
366 --- Libnet-1.0.2a/acinclude.m4~configure
367 +++ Libnet-1.0.2a/acinclude.m4
368 @@ -203,7 +203,7 @@
369      AC_CACHE_VAL(ac_cv_lbl_unaligned_fail,
370          [case "$target_cpu" in
371  
372 -        alpha|hp*|mips|sparc)
373 +        alpha|hp*|mips|sparc|arm)
374                  ac_cv_lbl_unaligned_fail=yes
375                  ;;
376  
377 @@ -278,7 +278,8 @@
378  dnl
379  
380  AC_DEFUN(AC_LIBNET_ENDIAN_CHECK,
381 -    [AC_MSG_CHECKING(machine endianess)
382 +       [AC_CACHE_CHECK([machine_endianness],
383 +               ac_cv_libnet_endianess, [
384  
385      cat > conftest.c << EOF
386  #       include <stdio.h>
387 @@ -331,14 +332,15 @@
388              fi                                
389          fi
390          rm -f conftest* core core.conftest
391 -
392 -        AC_MSG_RESULT($ac_cv_libnet_endianess)
393 +       ])
394  
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"
405          fi
406 -    ])
407 +])
408 --- Libnet-1.0.2a/configure~configure
409 +++ Libnet-1.0.2a/configure
410 @@ -1,31 +1,325 @@
411  #! /bin/sh
412 -
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.
417  #
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 +## --------------------- ##
425  
426 -# Defaults:
427 -ac_help=
428 +# Be Bourne compatible
429 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
430 +  emulate sh
431 +  NULLCMD=:
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
436 +  set -o posix
437 +fi
438 +
439 +# Support unset when possible.
440 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
441 +  as_unset=unset
442 +else
443 +  as_unset=false
444 +fi
445 +
446 +
447 +# Work around bugs in pre-3.0 UWIN ksh.
448 +$as_unset ENV MAIL MAILPATH
449 +PS1='$ '
450 +PS2='> '
451 +PS4='+ '
452 +
453 +# NLS nuisances.
454 +for as_var in \
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
458 +do
459 +  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
460 +    eval $as_var=C; export $as_var
461 +  else
462 +    $as_unset $as_var
463 +  fi
464 +done
465 +
466 +# Required to use basename.
467 +if expr a : '\(a\)' >/dev/null 2>&1; then
468 +  as_expr=expr
469 +else
470 +  as_expr=false
471 +fi
472 +
473 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
474 +  as_basename=basename
475 +else
476 +  as_basename=false
477 +fi
478 +
479 +
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 ||
486 +echo X/"$0" |
487 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
488 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
489 +         /^X\/\(\/\).*/{ s//\1/; q; }
490 +         s/.*/./; q'`
491 +
492 +
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
500 +
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
505 +  chmod +x conf$$.sh
506 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
507 +    PATH_SEPARATOR=';'
508 +  else
509 +    PATH_SEPARATOR=:
510 +  fi
511 +  rm -f conf$$.sh
512 +fi
513 +
514 +
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
521 +  # relative or not.
522 +  case $0 in
523 +    *[\\/]* ) as_myself=$0 ;;
524 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
525 +for as_dir in $PATH
526 +do
527 +  IFS=$as_save_IFS
528 +  test -z "$as_dir" && as_dir=.
529 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
530 +done
531 +
532 +       ;;
533 +  esac
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
537 +    as_myself=$0
538 +  fi
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; }; }
542 +  fi
543 +  case $CONFIG_SHELL in
544 +  '')
545 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
546 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
547 +do
548 +  IFS=$as_save_IFS
549 +  test -z "$as_dir" && as_dir=.
550 +  for as_base in sh bash ksh sh5; do
551 +        case $as_dir in
552 +        /*)
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+"$@"}
564 +          fi;;
565 +        esac
566 +       done
567 +done
568 +;;
569 +  esac
570 +
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 |
580 +    sed '
581 +      N
582 +      s,$,-,
583 +      : loop
584 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
585 +      t loop
586 +      s,-$,,
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; }; }
592 +
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).
596 +  . ./$as_me.lineno
597 +  # Exit status is that of the last command.
598 +  exit
599 +}
600 +
601 +
602 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
603 +  *c*,-n*) ECHO_N= ECHO_C='
604 +' ECHO_T='     ' ;;
605 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
606 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
607 +esac
608 +
609 +if expr a : '\(a\)' >/dev/null 2>&1; then
610 +  as_expr=expr
611 +else
612 +  as_expr=false
613 +fi
614 +
615 +rm -f conf$$ conf$$.exe conf$$.file
616 +echo >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
622 +    as_ln_s='cp -p'
623 +  else
624 +    as_ln_s='ln -s'
625 +  fi
626 +elif ln conf$$.file conf$$ 2>/dev/null; then
627 +  as_ln_s=ln
628 +else
629 +  as_ln_s='cp -p'
630 +fi
631 +rm -f conf$$ conf$$.exe conf$$.file
632 +
633 +if mkdir -p . 2>/dev/null; then
634 +  as_mkdir_p=:
635 +else
636 +  as_mkdir_p=false
637 +fi
638 +
639 +as_executable_p="test -f"
640 +
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"
643 +
644 +# Sed expression to map a string onto a valid variable name.
645 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
646 +
647 +
648 +# IFS
649 +# We need space, tab and new line, in precisely that order.
650 +as_nl='
651 +'
652 +IFS="  $as_nl"
653 +
654 +# CDPATH.
655 +$as_unset CDPATH
656 +
657 +
658 +# Name of the host.
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`
662 +
663 +exec 6>&1
664 +
665 +#
666 +# Initializations.
667 +#
668  ac_default_prefix=/usr/local
669 -# Any additions from configure.in:
670 +ac_config_libobj_dir=.
671 +cross_compiling=no
672 +subdirs=
673 +MFLAGS=
674 +MAKEFLAGS=
675 +SHELL=${CONFIG_SHELL-/bin/sh}
676 +
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}
681 +
682 +# Identity of this package.
683 +PACKAGE_NAME=
684 +PACKAGE_TARNAME=
685 +PACKAGE_VERSION=
686 +PACKAGE_STRING=
687 +PACKAGE_BUGREPORT=
688 +
689 +ac_unique_file="src/libnet_build_ip.c"
690  ac_default_prefix=/usr
691 -ac_help="$ac_help
692 - --with-pf_packet=[yes,no] override defaults"
693 -ac_help="$ac_help
694 - --with-fast_x86_check=[yes,no] override defaults"
695 +# Factoring default headers for most tests.
696 +ac_includes_default="\
697 +#include <stdio.h>
698 +#if HAVE_SYS_TYPES_H
699 +# include <sys/types.h>
700 +#endif
701 +#if HAVE_SYS_STAT_H
702 +# include <sys/stat.h>
703 +#endif
704 +#if STDC_HEADERS
705 +# include <stdlib.h>
706 +# include <stddef.h>
707 +#else
708 +# if HAVE_STDLIB_H
709 +#  include <stdlib.h>
710 +# endif
711 +#endif
712 +#if HAVE_STRING_H
713 +# if !STDC_HEADERS && HAVE_MEMORY_H
714 +#  include <memory.h>
715 +# endif
716 +# include <string.h>
717 +#endif
718 +#if HAVE_STRINGS_H
719 +# include <strings.h>
720 +#endif
721 +#if HAVE_INTTYPES_H
722 +# include <inttypes.h>
723 +#else
724 +# if HAVE_STDINT_H
725 +#  include <stdint.h>
726 +# endif
727 +#endif
728 +#if HAVE_UNISTD_H
729 +# include <unistd.h>
730 +#endif"
731 +
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'
733 +ac_subst_files=''
734  
735  # Initialize some variables set by options.
736 +ac_init_help=
737 +ac_init_version=false
738  # The variables have the same names as the options, with
739  # dashes changed to underlines.
740 -build=NONE
741 -cache_file=./config.cache
742 +cache_file=/dev/null
743  exec_prefix=NONE
744 -host=NONE
745  no_create=
746 -nonopt=NONE
747  no_recursion=
748  prefix=NONE
749  program_prefix=NONE
750 @@ -34,10 +328,15 @@
751  silent=
752  site=
753  srcdir=
754 -target=NONE
755  verbose=
756  x_includes=NONE
757  x_libraries=NONE
758 +
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'
767 @@ -51,17 +350,9 @@
768  infodir='${prefix}/info'
769  mandir='${prefix}/man'
770  
771 -# Initialize some other variables.
772 -subdirs=
773 -MFLAGS= MAKEFLAGS=
774 -SHELL=${CONFIG_SHELL-/bin/sh}
775 -# Maximum number of lines to put in a shell here document.
776 -ac_max_here_lines=12
777 -
778  ac_prev=
779  for ac_option
780  do
781 -
782    # If the previous option needs an argument, assign it.
783    if test -n "$ac_prev"; then
784      eval "$ac_prev=\$ac_option"
785 @@ -69,59 +360,59 @@
786      continue
787    fi
788  
789 -  case "$ac_option" in
790 -  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
791 -  *) ac_optarg= ;;
792 -  esac
793 +  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
794  
795    # Accept the important Cygnus configure options, so we can diagnose typos.
796  
797 -  case "$ac_option" in
798 +  case $ac_option in
799  
800    -bindir | --bindir | --bindi | --bind | --bin | --bi)
801      ac_prev=bindir ;;
802    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803 -    bindir="$ac_optarg" ;;
804 +    bindir=$ac_optarg ;;
805  
806    -build | --build | --buil | --bui | --bu)
807 -    ac_prev=build ;;
808 +    ac_prev=build_alias ;;
809    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
810 -    build="$ac_optarg" ;;
811 +    build_alias=$ac_optarg ;;
812  
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 ;;
820 +
821 +  --config-cache | -C)
822 +    cache_file=config.cache ;;
823  
824    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
825      ac_prev=datadir ;;
826    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
827    | --da=*)
828 -    datadir="$ac_optarg" ;;
829 +    datadir=$ac_optarg ;;
830  
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; }
837 -    fi
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" ;;
845  
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; }
852 -    fi
853 -    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
854 -    case "$ac_option" in
855 -      *=*) ;;
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'`
860 +    case $ac_option in
861 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
862        *) ac_optarg=yes ;;
863      esac
864 -    eval "enable_${ac_feature}='$ac_optarg'" ;;
865 +    eval "enable_$ac_feature='$ac_optarg'" ;;
866  
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 ;;
875  
876    -gas | --gas | --ga | --g)
877      # Obsolete; use --with-gas.
878      with_gas=yes ;;
879  
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.
883 -    cat << EOF
884 -Usage: configure [options] [host]
885 -Options: [defaults in brackets after descriptions]
886 -Configuration:
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
896 -                          [same as prefix]
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
901 -                          [PREFIX/share]
902 -  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
903 -  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
904 -                          [PREFIX/com]
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
916 -EOF
917 -    cat << EOF
918 -Host type:
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
929 -EOF
930 -    if test -n "$ac_help"; then
931 -      echo "--enable and --with options recognized:$ac_help"
932 -    fi
933 -    exit 0 ;;
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 ;;
940  
941    -host | --host | --hos | --ho)
942 -    ac_prev=host ;;
943 +    ac_prev=host_alias ;;
944    -host=* | --host=* | --hos=* | --ho=*)
945 -    host="$ac_optarg" ;;
946 +    host_alias=$ac_optarg ;;
947  
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 ;;
955  
956    -infodir | --infodir | --infodi | --infod | --info | --inf)
957      ac_prev=infodir ;;
958    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 -    infodir="$ac_optarg" ;;
960 +    infodir=$ac_optarg ;;
961  
962    -libdir | --libdir | --libdi | --libd)
963      ac_prev=libdir ;;
964    -libdir=* | --libdir=* | --libdi=* | --libd=*)
965 -    libdir="$ac_optarg" ;;
966 +    libdir=$ac_optarg ;;
967  
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 ;;
975  
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 ;;
984  
985    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986      ac_prev=mandir ;;
987    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 -    mandir="$ac_optarg" ;;
989 +    mandir=$ac_optarg ;;
990  
991    -nfp | --nfp | --nf)
992      # Obsolete; use --without-fp.
993      with_fp=no ;;
994  
995    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 -  | --no-cr | --no-c)
997 +  | --no-cr | --no-c | -n)
998      no_create=yes ;;
999  
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 ;;
1007  
1008    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009      ac_prev=prefix ;;
1010    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1011 -    prefix="$ac_optarg" ;;
1012 +    prefix=$ac_optarg ;;
1013  
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 ;;
1021  
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 ;;
1029  
1030    -program-transform-name | --program-transform-name \
1031    | --program-transform-nam | --program-transform-na \
1032 @@ -289,7 +532,7 @@
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 ;;
1038  
1039    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040    | -silent | --silent | --silen | --sile | --sil)
1041 @@ -299,7 +542,7 @@
1042      ac_prev=sbindir ;;
1043    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044    | --sbi=* | --sb=*)
1045 -    sbindir="$ac_optarg" ;;
1046 +    sbindir=$ac_optarg ;;
1047  
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=* \
1053    | --sha=* | --sh=*)
1054 -    sharedstatedir="$ac_optarg" ;;
1055 +    sharedstatedir=$ac_optarg ;;
1056  
1057    -site | --site | --sit)
1058      ac_prev=site ;;
1059    -site=* | --site=* | --sit=*)
1060 -    site="$ac_optarg" ;;
1061 +    site=$ac_optarg ;;
1062  
1063    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064      ac_prev=srcdir ;;
1065    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066 -    srcdir="$ac_optarg" ;;
1067 +    srcdir=$ac_optarg ;;
1068  
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 ;;
1076  
1077    -target | --target | --targe | --targ | --tar | --ta | --t)
1078 -    ac_prev=target ;;
1079 +    ac_prev=target_alias ;;
1080    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081 -    target="$ac_optarg" ;;
1082 +    target_alias=$ac_optarg ;;
1083  
1084    -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085      verbose=yes ;;
1086  
1087 -  -version | --version | --versio | --versi | --vers)
1088 -    echo "configure generated by autoconf version 2.13"
1089 -    exit 0 ;;
1090 +  -version | --version | --versio | --versi | --vers | -V)
1091 +    ac_init_version=: ;;
1092  
1093    -with-* | --with-*)
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; }
1099 -    fi
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
1105 -      *=*) ;;
1106 +    case $ac_option in
1107 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1108        *) ac_optarg=yes ;;
1109      esac
1110 -    eval "with_${ac_package}='$ac_optarg'" ;;
1111 +    eval "with_$ac_package='$ac_optarg'" ;;
1112  
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; }
1119 -    fi
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" ;;
1127  
1128    --x)
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 ;;
1136  
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 ;;
1144  
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; }; }
1149      ;;
1150  
1151 +  *=*)
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 ;;
1160 +
1161    *)
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
1164 -    fi
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; }
1167 -    fi
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}
1174      ;;
1175  
1176    esac
1177  done
1178  
1179  if test -n "$ac_prev"; then
1180 -  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
1181 -fi
1182 -
1183 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1184 -
1185 -# File descriptor usage:
1186 -# 0 standard input
1187 -# 1 file creation
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
1194 -  exec 6>/dev/null
1195 -else
1196 -  exec 6>&1
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; }; }
1200  fi
1201 -exec 5>./config.log
1202  
1203 -echo "\
1204 -This file contains any messages produced by compilers while
1205 -running configure, to aid debugging if configure makes a mistake.
1206 -" 1>&5
1207 +# Be sure to have absolute paths.
1208 +for ac_var in exec_prefix prefix
1209 +do
1210 +  eval ac_val=$`echo $ac_var`
1211 +  case $ac_val in
1212 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1213 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 +   { (exit 1); exit 1; }; };;
1215 +  esac
1216 +done
1217  
1218 -# Strip out --no-create and --no-recursion so they do not pile up.
1219 -# Also quote any args containing shell metacharacters.
1220 -ac_configure_args=
1221 -for ac_arg
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
1225  do
1226 -  case "$ac_arg" in
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`
1235 +  case $ac_val in
1236 +    [\\/$]* | ?:[\\/]* ) ;;
1237 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1238 +   { (exit 1); exit 1; }; };;
1239    esac
1240  done
1241  
1242 -# NLS nuisances.
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.
1254 +build=$build_alias
1255 +host=$host_alias
1256 +target=$target_alias
1257  
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.
1261 -echo > confdefs.h
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
1270 +  fi
1271 +fi
1272 +
1273 +ac_tool_prefix=
1274 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275 +
1276 +test "$silent" = yes && exec 6>/dev/null
1277  
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
1281  
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.
1286 -  ac_prog=$0
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 ||
1295 +echo X"$0" |
1296 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1297 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1298 +         /^X\(\/\/\)$/{ s//\1/; q; }
1299 +         /^X\(\/\).*/{ s//\1/; q; }
1300 +         s/.*/./; q'`
1301    srcdir=$ac_confdir
1302    if test ! -r $srcdir/$ac_unique_file; then
1303      srcdir=..
1304 @@ -474,13 +727,433 @@
1305  fi
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; }; }
1311    else
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; }; }
1315    fi
1316  fi
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
1354 +
1355 +#
1356 +# Report the --help message.
1357 +#
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.
1361 +  cat <<_ACEOF
1362 +\`configure' configures this package to adapt to many kinds of systems.
1363 +
1364 +Usage: $0 [OPTION]... [VAR=VALUE]...
1365 +
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.
1368  
1369 +Defaults for the options are specified in brackets.
1370 +
1371 +Configuration:
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 \`..']
1381 +
1382 +_ACEOF
1383 +
1384 +  cat <<_ACEOF
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
1389 +                          [PREFIX]
1390 +
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'.
1395 +
1396 +For better control, use the options below.
1397 +
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]
1411 +_ACEOF
1412 +
1413 +  cat <<\_ACEOF
1414 +
1415 +System types:
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]
1419 +_ACEOF
1420 +fi
1421 +
1422 +if test -n "$ac_init_help"; then
1423 +
1424 +  cat <<\_ACEOF
1425 +
1426 +Optional Packages:
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
1431 +
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
1440 +
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.
1443 +
1444 +_ACEOF
1445 +fi
1446 +
1447 +if test "$ac_init_help" = "recursive"; then
1448 +  # If there are subdirs, report their specific --help.
1449 +  ac_popdir=`pwd`
1450 +  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1451 +    test -d $ac_dir || continue
1452 +    ac_builddir=.
1453 +
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'`
1458 +else
1459 +  ac_dir_suffix= ac_top_builddir=
1460 +fi
1461 +
1462 +case $srcdir in
1463 +  .)  # No --srcdir option.  We are building in place.
1464 +    ac_srcdir=.
1465 +    if test -z "$ac_top_builddir"; then
1466 +       ac_top_srcdir=.
1467 +    else
1468 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1469 +    fi ;;
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 ;;
1476 +esac
1477 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1478 +# absolute.
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`
1483 +
1484 +    cd $ac_dir
1485 +    # Check for guested configure; otherwise get Cygnus style configure.
1486 +    if test -f $ac_srcdir/configure.gnu; then
1487 +      echo
1488 +      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1489 +    elif test -f $ac_srcdir/configure; then
1490 +      echo
1491 +      $SHELL $ac_srcdir/configure  --help=recursive
1492 +    elif test -f $ac_srcdir/configure.ac ||
1493 +           test -f $ac_srcdir/configure.in; then
1494 +      echo
1495 +      $ac_configure --help
1496 +    else
1497 +      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1498 +    fi
1499 +    cd $ac_popdir
1500 +  done
1501 +fi
1502 +
1503 +test -n "$ac_init_help" && exit 0
1504 +if $ac_init_version; then
1505 +  cat <<\_ACEOF
1506 +
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.
1511 +_ACEOF
1512 +  exit 0
1513 +fi
1514 +exec 5>config.log
1515 +cat >&5 <<_ACEOF
1516 +This file contains any messages produced by compilers while
1517 +running configure, to aid debugging if configure makes a mistake.
1518 +
1519 +It was created by $as_me, which was
1520 +generated by GNU Autoconf 2.57.  Invocation command line was
1521 +
1522 +  $ $0 $@
1523 +
1524 +_ACEOF
1525 +{
1526 +cat <<_ASUNAME
1527 +## --------- ##
1528 +## Platform. ##
1529 +## --------- ##
1530 +
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`
1536 +
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`
1539 +
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`
1547 +
1548 +_ASUNAME
1549 +
1550 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 +for as_dir in $PATH
1552 +do
1553 +  IFS=$as_save_IFS
1554 +  test -z "$as_dir" && as_dir=.
1555 +  echo "PATH: $as_dir"
1556 +done
1557 +
1558 +} >&5
1559 +
1560 +cat >&5 <<_ACEOF
1561 +
1562 +
1563 +## ----------- ##
1564 +## Core tests. ##
1565 +## ----------- ##
1566 +
1567 +_ACEOF
1568 +
1569 +
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.
1575 +ac_configure_args=
1576 +ac_configure_args0=
1577 +ac_configure_args1=
1578 +ac_sep=
1579 +ac_must_keep_next=false
1580 +for ac_pass in 1 2
1581 +do
1582 +  for ac_arg
1583 +  do
1584 +    case $ac_arg in
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)
1588 +      continue ;;
1589 +    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1590 +      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1591 +    esac
1592 +    case $ac_pass in
1593 +    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1594 +    2)
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.
1598 +      else
1599 +        case $ac_arg in
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 ;;
1606 +            esac
1607 +            ;;
1608 +          -* ) ac_must_keep_next=true ;;
1609 +        esac
1610 +      fi
1611 +      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1612 +      # Get rid of the leading space.
1613 +      ac_sep=" "
1614 +      ;;
1615 +    esac
1616 +  done
1617 +done
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; }
1620 +
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.
1628 +  {
1629 +    echo
1630 +
1631 +    cat <<\_ASBOX
1632 +## ---------------- ##
1633 +## Cache variables. ##
1634 +## ---------------- ##
1635 +_ASBOX
1636 +    echo
1637 +    # The following way of writing the cache mishandles newlines in values,
1638 +{
1639 +  (set) 2>&1 |
1640 +    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1641 +    *ac_space=\ *)
1642 +      sed -n \
1643 +        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1644 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1645 +      ;;
1646 +    *)
1647 +      sed -n \
1648 +        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1649 +      ;;
1650 +    esac;
1651 +}
1652 +    echo
1653 +
1654 +    cat <<\_ASBOX
1655 +## ----------------- ##
1656 +## Output variables. ##
1657 +## ----------------- ##
1658 +_ASBOX
1659 +    echo
1660 +    for ac_var in $ac_subst_vars
1661 +    do
1662 +      eval ac_val=$`echo $ac_var`
1663 +      echo "$ac_var='"'"'$ac_val'"'"'"
1664 +    done | sort
1665 +    echo
1666 +
1667 +    if test -n "$ac_subst_files"; then
1668 +      cat <<\_ASBOX
1669 +## ------------- ##
1670 +## Output files. ##
1671 +## ------------- ##
1672 +_ASBOX
1673 +      echo
1674 +      for ac_var in $ac_subst_files
1675 +      do
1676 +       eval ac_val=$`echo $ac_var`
1677 +        echo "$ac_var='"'"'$ac_val'"'"'"
1678 +      done | sort
1679 +      echo
1680 +    fi
1681 +
1682 +    if test -s confdefs.h; then
1683 +      cat <<\_ASBOX
1684 +## ----------- ##
1685 +## confdefs.h. ##
1686 +## ----------- ##
1687 +_ASBOX
1688 +      echo
1689 +      sed "/^$/d" confdefs.h | sort
1690 +      echo
1691 +    fi
1692 +    test "$ac_signal" != 0 &&
1693 +      echo "$as_me: caught signal $ac_signal"
1694 +    echo "$as_me: exit $exit_status"
1695 +  } >&5
1696 +  rm -f core core.* *.core &&
1697 +  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1698 +    exit $exit_status
1699 +     ' 0
1700 +for ac_signal in 1 2 13 15; do
1701 +  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1702 +done
1703 +ac_signal=0
1704 +
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.
1708 +echo >confdefs.h
1709 +
1710 +# Predefined preprocessor variables.
1711 +
1712 +cat >>confdefs.h <<_ACEOF
1713 +#define PACKAGE_NAME "$PACKAGE_NAME"
1714 +_ACEOF
1715 +
1716 +
1717 +cat >>confdefs.h <<_ACEOF
1718 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1719 +_ACEOF
1720 +
1721 +
1722 +cat >>confdefs.h <<_ACEOF
1723 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
1724 +_ACEOF
1725 +
1726 +
1727 +cat >>confdefs.h <<_ACEOF
1728 +#define PACKAGE_STRING "$PACKAGE_STRING"
1729 +_ACEOF
1730 +
1731 +
1732 +cat >>confdefs.h <<_ACEOF
1733 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1734 +_ACEOF
1735 +
1736 +
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 @@
1742  fi
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
1749      . "$ac_site_file"
1750    fi
1751  done
1752  
1753  if test -r "$cache_file"; then
1754 -  echo "loading cache $cache_file"
1755 -  . $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;;
1764 +    esac
1765 +  fi
1766  else
1767 -  echo "creating cache $cache_file"
1768 -  > $cache_file
1769 +  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1770 +echo "$as_me: creating cache $cache_file" >&6;}
1771 +  >$cache_file
1772 +fi
1773 +
1774 +# Check that the precious variables saved in the cache have kept the same
1775 +# value.
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
1784 +    set,)
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=: ;;
1788 +    ,set)
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=: ;;
1792 +    ,);;
1793 +    *)
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=:
1802 +      fi;;
1803 +  esac
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 ;;
1810 +    esac
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'" ;;
1814 +    esac
1815 +  fi
1816 +done
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; }; }
1823  fi
1824  
1825  ac_ext=c
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
1834 +
1835 +
1836 +
1837 +
1838 +
1839 +
1840 +
1841 +
1842 +
1843 +
1844 +
1845 +
1846 +
1847 +
1848 +
1849 +
1850  
1851 -ac_exeext=
1852 -ac_objext=o
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
1856 -    ac_n= ac_c='
1857 -' ac_t='       '
1858 -  else
1859 -    ac_n=-n ac_c= ac_t=
1860 -  fi
1861 -else
1862 -  ac_n= ac_c='\c' ac_t=
1863 -fi
1864  
1865  
1866  
1867  VER=`cat VERSION`
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
1871  
1872  
1873  
1874 @@ -554,318 +1292,746 @@
1875      ac_aux_dir=$ac_dir
1876      ac_install_sh="$ac_aux_dir/install.sh -c"
1877      break
1878 +  elif test -f $ac_dir/shtool; then
1879 +    ac_aux_dir=$ac_dir
1880 +    ac_install_sh="$ac_aux_dir/shtool install -c"
1881 +    break
1882    fi
1883  done
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; }; }
1889  fi
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.
1893 -
1894 -
1895 -# Do some error checking and defaulting for the host and target type.
1896 -# The inputs are:
1897 -#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
1898 -#
1899 -# The rules are:
1900 -# 1. You are not allowed to specify --host, --target, and nonopt at the
1901 -#    same time.
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.
1907 -
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; } ;;
1913 -esac
1914 -
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.
1918  
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; }
1922 -fi
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; }; }
1927  
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
1934 +else
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; }; }
1946  
1947 -host_alias=$host
1948 -case "$host_alias" in
1949 -NONE)
1950 -  case $nonopt in
1951 -  NONE)
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; }
1954 -    fi ;;
1955 -  *) host_alias=$nonopt ;;
1956 -  esac ;;
1957 -esac
1958 +fi
1959 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1960 +echo "${ECHO_T}$ac_cv_build" >&6
1961 +build=$ac_cv_build
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/'`
1965  
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
1971  
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
1978 +else
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; }; }
1986  
1987 -target_alias=$target
1988 -case "$target_alias" in
1989 -NONE)
1990 -  case $nonopt in
1991 -  NONE) target_alias=$host_alias ;;
1992 -  *) target_alias=$nonopt ;;
1993 -  esac ;;
1994 -esac
1995 +fi
1996 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1997 +echo "${ECHO_T}$ac_cv_host" >&6
1998 +host=$ac_cv_host
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/'`
2002  
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
2008  
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
2015 +else
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; }; }
2023  
2024 -build_alias=$build
2025 -case "$build_alias" in
2026 -NONE)
2027 -  case $nonopt in
2028 -  NONE) build_alias=$host_alias ;;
2029 -  *) build_alias=$nonopt ;;
2030 -  esac ;;
2031 -esac
2032 +fi
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/'`
2039  
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
2045  
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" = \
2051      NONENONEs,x,x, &&
2052    program_prefix=${target_alias}-
2053  
2054  
2055 -
2056  if test "$prefix" = "NONE"; then
2057      prefix="/usr"
2058  fi
2059  
2060 -# Extract the first word of "gcc", so it can be a program name with args.
2061 +ac_ext=c
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
2073 +else
2074 +  if test -n "$CC"; then
2075 +  ac_cv_prog_CC="$CC" # Let the user override the test.
2076 +else
2077 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 +for as_dir in $PATH
2079 +do
2080 +  IFS=$as_save_IFS
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
2086 +    break 2
2087 +  fi
2088 +done
2089 +done
2090 +
2091 +fi
2092 +fi
2093 +CC=$ac_cv_prog_CC
2094 +if test -n "$CC"; then
2095 +  echo "$as_me:$LINENO: result: $CC" >&5
2096 +echo "${ECHO_T}$CC" >&6
2097 +else
2098 +  echo "$as_me:$LINENO: result: no" >&5
2099 +echo "${ECHO_T}no" >&6
2100 +fi
2101 +
2102 +fi
2103 +if test -z "$ac_cv_prog_CC"; then
2104 +  ac_ct_CC=$CC
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
2115 +else
2116 +  if test -n "$ac_ct_CC"; then
2117 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2118 +else
2119 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 +for as_dir in $PATH
2121 +do
2122 +  IFS=$as_save_IFS
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
2128 +    break 2
2129 +  fi
2130 +done
2131 +done
2132 +
2133 +fi
2134 +fi
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
2139 +else
2140 +  echo "$as_me:$LINENO: result: no" >&5
2141 +echo "${ECHO_T}no" >&6
2142 +fi
2143 +
2144 +  CC=$ac_ct_CC
2145 +else
2146 +  CC="$ac_cv_prog_CC"
2147 +fi
2148 +
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
2157  else
2158    if test -n "$CC"; then
2159    ac_cv_prog_CC="$CC" # Let the user override the test.
2160  else
2161 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2162 -  ac_dummy="$PATH"
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"
2167 -      break
2168 -    fi
2169 -  done
2170 -  IFS="$ac_save_ifs"
2171 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 +for as_dir in $PATH
2173 +do
2174 +  IFS=$as_save_IFS
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
2180 +    break 2
2181 +  fi
2182 +done
2183 +done
2184 +
2185  fi
2186  fi
2187 -CC="$ac_cv_prog_CC"
2188 +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
2193  else
2194 -  echo "$ac_t""no" 1>&6
2195 +  echo "$as_me:$LINENO: result: no" >&5
2196 +echo "${ECHO_T}no" >&6
2197 +fi
2198 +
2199 +fi
2200 +if test -z "$ac_cv_prog_CC"; then
2201 +  ac_ct_CC=$CC
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
2208 +else
2209 +  if test -n "$ac_ct_CC"; then
2210 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2211 +else
2212 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 +for as_dir in $PATH
2214 +do
2215 +  IFS=$as_save_IFS
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
2221 +    break 2
2222 +  fi
2223 +done
2224 +done
2225 +
2226 +fi
2227 +fi
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
2232 +else
2233 +  echo "$as_me:$LINENO: result: no" >&5
2234 +echo "${ECHO_T}no" >&6
2235 +fi
2236 +
2237 +  CC=$ac_ct_CC
2238 +else
2239 +  CC="$ac_cv_prog_CC"
2240  fi
2241  
2242 +fi
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
2254  else
2255    if test -n "$CC"; then
2256    ac_cv_prog_CC="$CC" # Let the user override the test.
2257  else
2258 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2259    ac_prog_rejected=no
2260 -  ac_dummy="$PATH"
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
2266 -       continue
2267 -      fi
2268 -      ac_cv_prog_CC="cc"
2269 -      break
2270 -    fi
2271 -  done
2272 -  IFS="$ac_save_ifs"
2273 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 +for as_dir in $PATH
2275 +do
2276 +  IFS=$as_save_IFS
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
2282 +       continue
2283 +     fi
2284 +    ac_cv_prog_CC="cc"
2285 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 +    break 2
2287 +  fi
2288 +done
2289 +done
2290 +
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
2294    shift
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.
2300      shift
2301 -    set dummy "$ac_dir/$ac_word" "$@"
2302 -    shift
2303 -    ac_cv_prog_CC="$@"
2304 +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2305    fi
2306  fi
2307  fi
2308  fi
2309 -CC="$ac_cv_prog_CC"
2310 +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
2315  else
2316 -  echo "$ac_t""no" 1>&6
2317 +  echo "$as_me:$LINENO: result: no" >&5
2318 +echo "${ECHO_T}no" >&6
2319  fi
2320  
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
2330 +fi
2331 +if test -z "$CC"; then
2332 +  if test -n "$ac_tool_prefix"; then
2333 +  for ac_prog in cl
2334 +  do
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
2341  else
2342    if test -n "$CC"; then
2343    ac_cv_prog_CC="$CC" # Let the user override the test.
2344  else
2345 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2346 -  ac_dummy="$PATH"
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"
2351 -      break
2352 -    fi
2353 -  done
2354 -  IFS="$ac_save_ifs"
2355 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 +for as_dir in $PATH
2357 +do
2358 +  IFS=$as_save_IFS
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
2364 +    break 2
2365 +  fi
2366 +done
2367 +done
2368 +
2369  fi
2370  fi
2371 -CC="$ac_cv_prog_CC"
2372 +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
2377  else
2378 -  echo "$ac_t""no" 1>&6
2379 +  echo "$as_me:$LINENO: result: no" >&5
2380 +echo "${ECHO_T}no" >&6
2381  fi
2382 - ;;
2383 -    esac
2384 +
2385 +    test -n "$CC" && break
2386 +  done
2387 +fi
2388 +if test -z "$CC"; then
2389 +  ac_ct_CC=$CC
2390 +  for ac_prog in cl
2391 +do
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
2398 +else
2399 +  if test -n "$ac_ct_CC"; then
2400 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2401 +else
2402 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 +for as_dir in $PATH
2404 +do
2405 +  IFS=$as_save_IFS
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
2411 +    break 2
2412    fi
2413 -  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2414 +done
2415 +done
2416 +
2417 +fi
2418 +fi
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
2423 +else
2424 +  echo "$as_me:$LINENO: result: no" >&5
2425 +echo "${ECHO_T}no" >&6
2426  fi
2427  
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
2431 +done
2432  
2433 -ac_ext=c
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
2439 +  CC=$ac_ct_CC
2440 +fi
2441  
2442 -cat > conftest.$ac_ext << EOF
2443 +fi
2444  
2445 -#line 789 "configure"
2446 -#include "confdefs.h"
2447  
2448 -main(){return(0);}
2449 -EOF
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; }; }
2460 +
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
2467 +  ac_status=$?
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
2472 +  ac_status=$?
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
2477 +  ac_status=$?
2478 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 +  (exit $ac_status); }
2480 +
2481 +cat >conftest.$ac_ext <<_ACEOF
2482 +#line $LINENO "configure"
2483 +/* confdefs.h.  */
2484 +_ACEOF
2485 +cat confdefs.h >>conftest.$ac_ext
2486 +cat >>conftest.$ac_ext <<_ACEOF
2487 +/* end confdefs.h.  */
2488 +
2489 +int
2490 +main ()
2491 +{
2492 +
2493 +  ;
2494 +  return 0;
2495 +}
2496 +_ACEOF
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
2501 +# of exeext.
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
2507 +  ac_status=$?
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
2512 +# resort.
2513 +
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.
2516 +ac_cv_exeext=
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
2519 +do
2520 +  test -f "$ac_file" || continue
2521 +  case $ac_file in
2522 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2523 +        ;;
2524 +    conftest.$ac_ext )
2525 +        # This is the source file.
2526 +        ;;
2527 +    [ab].out )
2528 +        # We found the default executable, but exeext='' is most
2529 +        # certainly right.
2530 +        break;;
2531 +    *.* )
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
2537 +        break;;
2538 +    * )
2539 +        break;;
2540 +  esac
2541 +done
2542 +else
2543 +  echo "$as_me: failed program was:" >&5
2544 +sed 's/^/| /' conftest.$ac_ext >&5
2545 +
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; }; }
2551 +fi
2552 +
2553 +ac_exeext=$ac_cv_exeext
2554 +echo "$as_me:$LINENO: result: $ac_file" >&5
2555 +echo "${ECHO_T}$ac_file" >&6
2556 +
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
2567 +  ac_status=$?
2568 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 +  (exit $ac_status); }; }; then
2570 +    cross_compiling=no
2571    else
2572 -    ac_cv_prog_cc_cross=yes
2573 +    if test "$cross_compiling" = maybe; then
2574 +       cross_compiling=yes
2575 +    else
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; }; }
2583 +    fi
2584    fi
2585 -else
2586 -  echo "configure: failed program was:" >&5
2587 -  cat conftest.$ac_ext >&5
2588 -  ac_cv_prog_cc_works=no
2589  fi
2590 -rm -fr conftest*
2591 -ac_ext=c
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
2599  
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
2611 +
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
2616 +  ac_status=$?
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
2622 +# `rm'.
2623 +for ac_file in conftest.exe conftest conftest.*; do
2624 +  test -f "$ac_file" || continue
2625 +  case $ac_file in
2626 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2627 +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2628 +          export ac_cv_exeext
2629 +          break;;
2630 +    * ) break;;
2631 +  esac
2632 +done
2633 +else
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; }; }
2639  fi
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
2644  
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
2652 +
2653 +rm -f conftest.$ac_ext
2654 +EXEEXT=$ac_cv_exeext
2655 +ac_exeext=$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
2660  else
2661 -  cat > conftest.c <<EOF
2662 -#ifdef __GNUC__
2663 -  yes;
2664 -#endif
2665 -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"
2670 +/* confdefs.h.  */
2671 +_ACEOF
2672 +cat confdefs.h >>conftest.$ac_ext
2673 +cat >>conftest.$ac_ext <<_ACEOF
2674 +/* end confdefs.h.  */
2675 +
2676 +int
2677 +main ()
2678 +{
2679 +
2680 +  ;
2681 +  return 0;
2682 +}
2683 +_ACEOF
2684 +rm -f conftest.o conftest.obj
2685 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686 +  (eval $ac_compile) 2>&5
2687 +  ac_status=$?
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
2691 +  case $ac_file in
2692 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2693 +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2694 +       break;;
2695 +  esac
2696 +done
2697  else
2698 -  ac_cv_prog_gcc=no
2699 +  echo "$as_me: failed program was:" >&5
2700 +sed 's/^/| /' conftest.$ac_ext >&5
2701 +
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; }; }
2707  fi
2708 +
2709 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
2710  fi
2711 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2712 +echo "${ECHO_T}$ac_cv_objext" >&6
2713 +OBJEXT=$ac_cv_objext
2714 +ac_objext=$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
2719 +else
2720 +  cat >conftest.$ac_ext <<_ACEOF
2721 +#line $LINENO "configure"
2722 +/* confdefs.h.  */
2723 +_ACEOF
2724 +cat confdefs.h >>conftest.$ac_ext
2725 +cat >>conftest.$ac_ext <<_ACEOF
2726 +/* end confdefs.h.  */
2727  
2728 -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2729 +int
2730 +main ()
2731 +{
2732 +#ifndef __GNUC__
2733 +       choke me
2734 +#endif
2735  
2736 -if test $ac_cv_prog_gcc = yes; then
2737 -  GCC=yes
2738 +  ;
2739 +  return 0;
2740 +}
2741 +_ACEOF
2742 +rm -f conftest.$ac_objext
2743 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744 +  (eval $ac_compile) 2>&5
2745 +  ac_status=$?
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
2751 +  ac_status=$?
2752 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 +  (exit $ac_status); }; }; then
2754 +  ac_compiler_gnu=yes
2755  else
2756 -  GCC=
2757 +  echo "$as_me: failed program was:" >&5
2758 +sed 's/^/| /' conftest.$ac_ext >&5
2759 +
2760 +ac_compiler_gnu=no
2761  fi
2762 +rm -f conftest.$ac_objext conftest.$ac_ext
2763 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
2764  
2765 -ac_test_CFLAGS="${CFLAGS+set}"
2766 -ac_save_CFLAGS="$CFLAGS"
2767 -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
2772 +fi
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
2778 +CFLAGS="-g"
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
2783  else
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"
2788 +/* confdefs.h.  */
2789 +_ACEOF
2790 +cat confdefs.h >>conftest.$ac_ext
2791 +cat >>conftest.$ac_ext <<_ACEOF
2792 +/* end confdefs.h.  */
2793 +
2794 +int
2795 +main ()
2796 +{
2797 +
2798 +  ;
2799 +  return 0;
2800 +}
2801 +_ACEOF
2802 +rm -f conftest.$ac_objext
2803 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 +  (eval $ac_compile) 2>&5
2805 +  ac_status=$?
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
2811 +  ac_status=$?
2812 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 +  (exit $ac_status); }; }; then
2814    ac_cv_prog_cc_g=yes
2815  else
2816 -  ac_cv_prog_cc_g=no
2817 -fi
2818 -rm -f conftest*
2819 +  echo "$as_me: failed program was:" >&5
2820 +sed 's/^/| /' conftest.$ac_ext >&5
2821  
2822 +ac_cv_prog_cc_g=no
2823  fi
2824 -
2825 -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2826 +rm -f conftest.$ac_objext conftest.$ac_ext
2827 +fi
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
2835      CFLAGS="-g -O2"
2836 @@ -879,90 +2045,332 @@
2837      CFLAGS=
2838    fi
2839  fi
2840 -
2841 -
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
2850  else
2851 -  cat > conftest.$ac_ext <<EOF
2852 -#line 891 "configure"
2853 -#include "confdefs.h"
2854 -
2855 -int main() {
2856 -
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;
2861 -char **p;
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. */
2871 -++ccp;
2872 -p = (char**) ccp;
2873 -ccp = (char const *const *) p;
2874 -{ /* SCO 3.2v4 cc rejects this.  */
2875 -  char *t;
2876 -  char const *s = 0 ? (char *) 0 : (char const *) 0;
2877 -
2878 -  *t++ = 0;
2879 -}
2880 -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2881 -  int x[] = {25, 17};
2882 -  const int *foo = &x[0];
2883 -  ++foo;
2884 +  ac_cv_prog_cc_stdc=no
2885 +ac_save_CC=$CC
2886 +cat >conftest.$ac_ext <<_ACEOF
2887 +#line $LINENO "configure"
2888 +/* confdefs.h.  */
2889 +_ACEOF
2890 +cat confdefs.h >>conftest.$ac_ext
2891 +cat >>conftest.$ac_ext <<_ACEOF
2892 +/* end confdefs.h.  */
2893 +#include <stdarg.h>
2894 +#include <stdio.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)
2901 +     char **p;
2902 +     int i;
2903 +{
2904 +  return p[i];
2905  }
2906 -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2907 -  typedef const int *iptr;
2908 -  iptr p = 0;
2909 -  ++p;
2910 +static char *f (char * (*g) (char **, int), char **p, ...)
2911 +{
2912 +  char *s;
2913 +  va_list v;
2914 +  va_start (v,p);
2915 +  s = g (p, va_arg (v,int));
2916 +  va_end (v);
2917 +  return s;
2918  }
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);
2927 +int argc;
2928 +char **argv;
2929 +int
2930 +main ()
2931 +{
2932 +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2933 +  ;
2934 +  return 0;
2935  }
2936 -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2937 -  const int foo = 10;
2938 +_ACEOF
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__"
2947 +do
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
2952 +  ac_status=$?
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
2958 +  ac_status=$?
2959 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 +  (exit $ac_status); }; }; then
2961 +  ac_cv_prog_cc_stdc=$ac_arg
2962 +break
2963 +else
2964 +  echo "$as_me: failed program was:" >&5
2965 +sed 's/^/| /' conftest.$ac_ext >&5
2966 +
2967 +fi
2968 +rm -f conftest.$ac_objext
2969 +done
2970 +rm -f conftest.$ac_ext conftest.$ac_objext
2971 +CC=$ac_save_CC
2972 +
2973 +fi
2974 +
2975 +case "x$ac_cv_prog_cc_stdc" in
2976 +  x|xno)
2977 +    echo "$as_me:$LINENO: result: none needed" >&5
2978 +echo "${ECHO_T}none needed" >&6 ;;
2979 +  *)
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" ;;
2983 +esac
2984 +
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
2991 +  choke me
2992 +#endif
2993 +_ACEOF
2994 +rm -f conftest.$ac_objext
2995 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996 +  (eval $ac_compile) 2>&5
2997 +  ac_status=$?
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
3003 +  ac_status=$?
3004 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 +  (exit $ac_status); }; }; then
3006 +  for ac_declaration in \
3007 +   ''\
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);'
3014 +do
3015 +  cat >conftest.$ac_ext <<_ACEOF
3016 +#line $LINENO "configure"
3017 +/* confdefs.h.  */
3018 +_ACEOF
3019 +cat confdefs.h >>conftest.$ac_ext
3020 +cat >>conftest.$ac_ext <<_ACEOF
3021 +/* end confdefs.h.  */
3022 +#include <stdlib.h>
3023 +$ac_declaration
3024 +int
3025 +main ()
3026 +{
3027 +exit (42);
3028 +  ;
3029 +  return 0;
3030  }
3031 +_ACEOF
3032 +rm -f conftest.$ac_objext
3033 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3034 +  (eval $ac_compile) 2>&5
3035 +  ac_status=$?
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
3041 +  ac_status=$?
3042 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 +  (exit $ac_status); }; }; then
3044 +  :
3045 +else
3046 +  echo "$as_me: failed program was:" >&5
3047 +sed 's/^/| /' conftest.$ac_ext >&5
3048  
3049 -; return 0; }
3050 -EOF
3051 -if { (eval echo configure:940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3052 -  rm -rf conftest*
3053 -  ac_cv_c_const=yes
3054 +continue
3055 +fi
3056 +rm -f conftest.$ac_objext conftest.$ac_ext
3057 +  cat >conftest.$ac_ext <<_ACEOF
3058 +#line $LINENO "configure"
3059 +/* confdefs.h.  */
3060 +_ACEOF
3061 +cat confdefs.h >>conftest.$ac_ext
3062 +cat >>conftest.$ac_ext <<_ACEOF
3063 +/* end confdefs.h.  */
3064 +$ac_declaration
3065 +int
3066 +main ()
3067 +{
3068 +exit (42);
3069 +  ;
3070 +  return 0;
3071 +}
3072 +_ACEOF
3073 +rm -f conftest.$ac_objext
3074 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 +  (eval $ac_compile) 2>&5
3076 +  ac_status=$?
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
3082 +  ac_status=$?
3083 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 +  (exit $ac_status); }; }; then
3085 +  break
3086  else
3087 -  echo "configure: failed program was:" >&5
3088 -  cat conftest.$ac_ext >&5
3089 -  rm -rf conftest*
3090 -  ac_cv_c_const=no
3091 +  echo "$as_me: failed program was:" >&5
3092 +sed 's/^/| /' conftest.$ac_ext >&5
3093 +
3094  fi
3095 +rm -f conftest.$ac_objext conftest.$ac_ext
3096 +done
3097  rm -f conftest*
3098 +if test -n "$ac_declaration"; then
3099 +  echo '#ifdef __cplusplus' >>confdefs.h
3100 +  echo $ac_declaration      >>confdefs.h
3101 +  echo '#endif'             >>confdefs.h
3102  fi
3103  
3104 -echo "$ac_t""$ac_cv_c_const" 1>&6
3105 +else
3106 +  echo "$as_me: failed program was:" >&5
3107 +sed 's/^/| /' conftest.$ac_ext >&5
3108 +
3109 +fi
3110 +rm -f conftest.$ac_objext conftest.$ac_ext
3111 +ac_ext=c
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
3116 +
3117 +
3118 +
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
3123 +else
3124 +  cat >conftest.$ac_ext <<_ACEOF
3125 +#line $LINENO "configure"
3126 +/* confdefs.h.  */
3127 +_ACEOF
3128 +cat confdefs.h >>conftest.$ac_ext
3129 +cat >>conftest.$ac_ext <<_ACEOF
3130 +/* end confdefs.h.  */
3131 +
3132 +int
3133 +main ()
3134 +{
3135 +/* FIXME: Include the comments suggested by Paul. */
3136 +#ifndef __cplusplus
3137 +  /* Ultrix mips cc rejects this.  */
3138 +  typedef int charset[2];
3139 +  const charset x;
3140 +  /* SunOS 4.1.1 cc rejects this.  */
3141 +  char const *const *ccp;
3142 +  char **p;
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
3149 +     expression */
3150 +  const char *g = "string";
3151 +  ccp = &g + (g ? g-g : 0);
3152 +  /* HPUX 7.0 cc rejects these. */
3153 +  ++ccp;
3154 +  p = (char**) ccp;
3155 +  ccp = (char const *const *) p;
3156 +  { /* SCO 3.2v4 cc rejects this.  */
3157 +    char *t;
3158 +    char const *s = 0 ? (char *) 0 : (char const *) 0;
3159 +
3160 +    *t++ = 0;
3161 +  }
3162 +  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3163 +    int x[] = {25, 17};
3164 +    const int *foo = &x[0];
3165 +    ++foo;
3166 +  }
3167 +  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3168 +    typedef const int *iptr;
3169 +    iptr p = 0;
3170 +    ++p;
3171 +  }
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;
3176 +  }
3177 +  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3178 +    const int foo = 10;
3179 +  }
3180 +#endif
3181 +
3182 +  ;
3183 +  return 0;
3184 +}
3185 +_ACEOF
3186 +rm -f conftest.$ac_objext
3187 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188 +  (eval $ac_compile) 2>&5
3189 +  ac_status=$?
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
3195 +  ac_status=$?
3196 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 +  (exit $ac_status); }; }; then
3198 +  ac_cv_c_const=yes
3199 +else
3200 +  echo "$as_me: failed program was:" >&5
3201 +sed 's/^/| /' conftest.$ac_ext >&5
3202 +
3203 +ac_cv_c_const=no
3204 +fi
3205 +rm -f conftest.$ac_objext conftest.$ac_ext
3206 +fi
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
3211 -#define const 
3212 -EOF
3213 +
3214 +cat >>confdefs.h <<\_ACEOF
3215 +#define const
3216 +_ACEOF
3217  
3218  fi
3219  
3220  
3221  
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'
3225      CFLAGS="$CCOPTS"
3226  fi
3227  
3228 +
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 @@
3233      with_pf_packet=yes
3234  else
3235    with_pf_packet=no
3236 -fi
3237 +fi;
3238  
3239  
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"
3243    \
3244 -    cat >> confdefs.h <<\EOF
3245 +    cat >>confdefs.h <<\_ACEOF
3246  #define LIBNET_FAST_X86_CHECK 1
3247 -EOF
3248 -
3249 -fi
3250 +_ACEOF
3251  
3252 +fi;
3253  
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
3259  # AIX /bin/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
3274  else
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/*) ;;
3280 -    *)
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
3283 -      # by default.
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.
3289 -           :
3290 -         else
3291 -           ac_cv_path_install="$ac_dir/$ac_prog -c"
3292 -           break 2
3293 -         fi
3294 -       fi
3295 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 +for as_dir in $PATH
3297 +do
3298 +  IFS=$as_save_IFS
3299 +  test -z "$as_dir" && as_dir=.
3300 +  # Account for people who put trailing slashes in PATH elements.
3301 +case $as_dir/ in
3302 +  ./ | .// | /cC/* | \
3303 +  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3304 +  /usr/ucb/* ) ;;
3305 +  *)
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
3308 +    # by default.
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.
3315 +            :
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.
3319 +            :
3320 +          else
3321 +            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3322 +            break 3
3323 +          fi
3324 +        fi
3325        done
3326 -      ;;
3327 -    esac
3328 -  done
3329 -  IFS="$ac_save_IFS"
3330 +    done
3331 +    ;;
3332 +esac
3333 +done
3334 +
3335  
3336  fi
3337    if test "${ac_cv_path_install+set}" = set; then
3338 -    INSTALL="$ac_cv_path_install"
3339 +    INSTALL=$ac_cv_path_install
3340    else
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
3347    fi
3348  fi
3349 -echo "$ac_t""$INSTALL" 1>&6
3350 +echo "$as_me:$LINENO: result: $INSTALL" >&5
3351 +echo "${ECHO_T}$INSTALL" >&6
3352  
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}'
3356  
3357 -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3358 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3359  
3360  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3361  
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
3372  else
3373 -  cat > conftestmake <<\EOF
3374 +  cat >conftest.make <<\_ACEOF
3375  all:
3376 -       @echo 'ac_maketemp="${MAKE}"'
3377 -EOF
3378 +       @echo 'ac_maketemp="$(MAKE)"'
3379 +_ACEOF
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
3385  else
3386    eval ac_cv_prog_make_${ac_make}_set=no
3387  fi
3388 -rm -f conftestmake
3389 +rm -f conftest.make
3390  fi
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
3395    SET_MAKE=
3396  else
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}"
3401  fi
3402  
3403  for ac_prog in ranlib
3404  do
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
3416  else
3417    if test -n "$RANLIB"; then
3418    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3419  else
3420 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
3421 -  ac_dummy="$PATH"
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"
3426 -      break
3427 -    fi
3428 -  done
3429 -  IFS="$ac_save_ifs"
3430 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 +for as_dir in $PATH
3432 +do
3433 +  IFS=$as_save_IFS
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
3439 +    break 2
3440 +  fi
3441 +done
3442 +done
3443 +
3444  fi
3445  fi
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
3452  else
3453 -  echo "$ac_t""no" 1>&6
3454 +  echo "$as_me:$LINENO: result: no" >&5
3455 +echo "${ECHO_T}no" >&6
3456  fi
3457  
3458 -test -n "$RANLIB" && break
3459 +  test -n "$RANLIB" && break
3460  done
3461  test -n "$RANLIB" || RANLIB="@true"
3462  
3463  for ac_prog in ar
3464  do
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
3476  else
3477    if test -n "$AR"; then
3478    ac_cv_prog_AR="$AR" # Let the user override the test.
3479  else
3480 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
3481 -  ac_dummy="$PATH"
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"
3486 -      break
3487 -    fi
3488 -  done
3489 -  IFS="$ac_save_ifs"
3490 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 +for as_dir in $PATH
3492 +do
3493 +  IFS=$as_save_IFS
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
3499 +    break 2
3500 +  fi
3501 +done
3502 +done
3503 +
3504  fi
3505  fi
3506 -AR="$ac_cv_prog_AR"
3507 +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
3512  else
3513 -  echo "$ac_t""no" 1>&6
3514 +  echo "$as_me:$LINENO: result: no" >&5
3515 +echo "${ECHO_T}no" >&6
3516  fi
3517  
3518 -test -n "$AR" && break
3519 +  test -n "$AR" && break
3520  done
3521  test -n "$AR" || AR="@true"
3522  
3523  for ac_prog in ln
3524  do
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
3536  else
3537    if test -n "$LN"; then
3538    ac_cv_prog_LN="$LN" # Let the user override the test.
3539  else
3540 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
3541 -  ac_dummy="$PATH"
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"
3546 -      break
3547 -    fi
3548 -  done
3549 -  IFS="$ac_save_ifs"
3550 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 +for as_dir in $PATH
3552 +do
3553 +  IFS=$as_save_IFS
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
3559 +    break 2
3560 +  fi
3561 +done
3562 +done
3563 +
3564  fi
3565  fi
3566 -LN="$ac_cv_prog_LN"
3567 +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
3572  else
3573 -  echo "$ac_t""no" 1>&6
3574 +  echo "$as_me:$LINENO: result: no" >&5
3575 +echo "${ECHO_T}no" >&6
3576  fi
3577  
3578 -test -n "$LN" && break
3579 +  test -n "$LN" && break
3580  done
3581  test -n "$LN" || LN="@true"
3582  
3583  
3584 +
3585  for ac_func in strerror
3586  do
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
3596  else
3597 -  cat > conftest.$ac_ext <<EOF
3598 -#line 1193 "configure"
3599 -#include "confdefs.h"
3600 +  cat >conftest.$ac_ext <<_ACEOF
3601 +#line $LINENO "configure"
3602 +/* confdefs.h.  */
3603 +_ACEOF
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.  */
3613 +#ifdef __STDC__
3614 +# include <limits.h>
3615 +#else
3616 +# include <assert.h>
3617 +#endif
3618  /* Override any gcc2 internal prototype to avoid an error.  */
3619 +#ifdef __cplusplus
3620 +extern "C"
3621 +{
3622 +#endif
3623  /* We use char because int might match the return type of a gcc2
3624 -    builtin and then its argument prototype would still apply.  */
3625 -char $ac_func();
3626 -
3627 -int main() {
3628 -
3629 +   builtin and then its argument prototype would still apply.  */
3630 +char $ac_func ();
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)
3635  choke me
3636  #else
3637 -$ac_func();
3638 +char (*f) () = $ac_func;
3639 +#endif
3640 +#ifdef __cplusplus
3641 +}
3642  #endif
3643  
3644 -; return 0; }
3645 -EOF
3646 -if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3647 -  rm -rf conftest*
3648 -  eval "ac_cv_func_$ac_func=yes"
3649 +int
3650 +main ()
3651 +{
3652 +return f != $ac_func;
3653 +  ;
3654 +  return 0;
3655 +}
3656 +_ACEOF
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
3660 +  ac_status=$?
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
3666 +  ac_status=$?
3667 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 +  (exit $ac_status); }; }; then
3669 +  eval "$as_ac_var=yes"
3670  else
3671 -  echo "configure: failed program was:" >&5
3672 -  cat conftest.$ac_ext >&5
3673 -  rm -rf conftest*
3674 -  eval "ac_cv_func_$ac_func=no"
3675 +  echo "$as_me: failed program was:" >&5
3676 +sed 's/^/| /' conftest.$ac_ext >&5
3677 +
3678 +eval "$as_ac_var=no"
3679  fi
3680 -rm -f conftest*
3681 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3682  fi
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
3688 +_ACEOF
3689  
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
3695 -EOF
3696
3697 -else
3698 -  echo "$ac_t""no" 1>&6
3699  fi
3700  done
3701  
3702  
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
3712  else
3713 -  ac_save_LIBS="$LIBS"
3714 +  ac_check_lib_save_LIBS=$LIBS
3715  LIBS="-lpcap  $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"
3721 +/* confdefs.h.  */
3722 +_ACEOF
3723 +cat confdefs.h >>conftest.$ac_ext
3724 +cat >>conftest.$ac_ext <<_ACEOF
3725 +/* end confdefs.h.  */
3726 +
3727  /* Override any gcc2 internal prototype to avoid an error.  */
3728 +#ifdef __cplusplus
3729 +extern "C"
3730 +#endif
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();
3734 -
3735 -int main() {
3736 -pcap_open_live()
3737 -; return 0; }
3738 -EOF
3739 -if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3740 -  rm -rf conftest*
3741 -  eval "ac_cv_lib_$ac_lib_var=yes"
3742 +   builtin and then its argument prototype would still apply.  */
3743 +char pcap_open_live ();
3744 +int
3745 +main ()
3746 +{
3747 +pcap_open_live ();
3748 +  ;
3749 +  return 0;
3750 +}
3751 +_ACEOF
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
3755 +  ac_status=$?
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
3761 +  ac_status=$?
3762 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 +  (exit $ac_status); }; }; then
3764 +  ac_cv_lib_pcap_pcap_open_live=yes
3765  else
3766 -  echo "configure: failed program was:" >&5
3767 -  cat conftest.$ac_ext >&5
3768 -  rm -rf conftest*
3769 -  eval "ac_cv_lib_$ac_lib_var=no"
3770 -fi
3771 -rm -f conftest*
3772 -LIBS="$ac_save_LIBS"
3773 +  echo "$as_me: failed program was:" >&5
3774 +sed 's/^/| /' conftest.$ac_ext >&5
3775  
3776 +ac_cv_lib_pcap_pcap_open_live=no
3777  fi
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
3783 +fi
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
3789 -EOF
3790 +_ACEOF
3791  
3792 -else
3793 -  echo "$ac_t""no" 1>&6
3794  fi
3795  
3796  
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
3801  
3802  if test -r /dev/bpf0 ; then
3803      LL_INT_TYPE=bpf
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
3808      LL_INT_TYPE=pf
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
3813      LL_INT_TYPE=snit
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
3818      LL_INT_TYPE=nit
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
3823      LL_INT_TYPE=snoop
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
3828      LL_INT_TYPE=dlpi
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
3834  #define HAVE_DLPI 1
3835 -EOF
3836 +_ACEOF
3837  
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
3844 -         
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
3849 +
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
3854  else
3855    case "$target_os" in
3856  
3857 @@ -1397,17 +2891,19 @@
3858      fi
3859  
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
3868 -EOF
3869 +_ACEOF
3870  
3871          LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_PF_PACKET"
3872      fi
3873  
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
3878      fi
3879      rm -f pf_packet-test* core core.pf_packet-test
3880      ;;
3881 @@ -1418,17 +2914,22 @@
3882      fi
3883  elif test -c /dev/bpf0 ; then           # check again in case not readable
3884      LL_INT_TYPE=bpf
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
3889      LL_INT_TYPE=enet
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
3894      LL_INT_TYPE=snit
3895 -    echo "$ac_t""found snit" 1>&6
3896 +    echo "$as_me:$LINENO: result: found snit" >&5
3897 +echo "${ECHO_T}found snit" >&6
3898  else
3899      LL_INT_TYPE=null
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;}
3906  fi
3907  
3908  LL_INT_TYPE_UC=`echo $LL_INT_TYPE | tr a-z A-Z`
3909 @@ -1437,138 +2938,633 @@
3910  case "$target_os" in
3911  
3912  *linux*)
3913 -    cat >> confdefs.h <<\EOF
3914 +    cat >>confdefs.h <<\_ACEOF
3915  #define _BSD_SOURCE 1
3916 -EOF
3917 +_ACEOF
3918  
3919 -    cat >> confdefs.h <<\EOF
3920 +    cat >>confdefs.h <<\_ACEOF
3921  #define __BSD_SOURCE 1
3922 -EOF
3923 +_ACEOF
3924  
3925 -    cat >> confdefs.h <<\EOF
3926 +    cat >>confdefs.h <<\_ACEOF
3927  #define __FAVOR_BSD 1
3928 -EOF
3929 +_ACEOF
3930  
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
3934 +    ac_ext=c
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
3943    CPP=
3944  fi
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
3950  else
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.
3953 -  CPP="${CC-cc} -E"
3954 +      # Double quotes because CPP needs to be expanded
3955 +    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3956 +    do
3957 +      ac_preproc_ok=false
3958 +for ac_c_preproc_warn_flag in '' yes
3959 +do
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>
3970 -Syntax Error
3971 -EOF
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"
3979 +/* confdefs.h.  */
3980 +_ACEOF
3981 +cat confdefs.h >>conftest.$ac_ext
3982 +cat >>conftest.$ac_ext <<_ACEOF
3983 +/* end confdefs.h.  */
3984 +#ifdef __STDC__
3985 +# include <limits.h>
3986 +#else
3987 +# include <assert.h>
3988 +#endif
3989 +                     Syntax error
3990 +_ACEOF
3991 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3992 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3993 +  ac_status=$?
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
4001 +  else
4002 +    ac_cpp_err=
4003 +  fi
4004 +else
4005 +  ac_cpp_err=yes
4006 +fi
4007 +if test -z "$ac_cpp_err"; then
4008    :
4009  else
4010 -  echo "$ac_err" >&5
4011 -  echo "configure: failed program was:" >&5
4012 -  cat conftest.$ac_ext >&5
4013 -  rm -rf conftest*
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>
4019 -Syntax Error
4020 -EOF
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
4027 +
4028 +  # Broken: fails on valid input.
4029 +continue
4030 +fi
4031 +rm -f conftest.err conftest.$ac_ext
4032 +
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"
4037 +/* confdefs.h.  */
4038 +_ACEOF
4039 +cat confdefs.h >>conftest.$ac_ext
4040 +cat >>conftest.$ac_ext <<_ACEOF
4041 +/* end confdefs.h.  */
4042 +#include <ac_nonexistent.h>
4043 +_ACEOF
4044 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4045 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4046 +  ac_status=$?
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
4054 +  else
4055 +    ac_cpp_err=
4056 +  fi
4057 +else
4058 +  ac_cpp_err=yes
4059 +fi
4060 +if test -z "$ac_cpp_err"; then
4061 +  # Broken: success on invalid input.
4062 +continue
4063 +else
4064 +  echo "$as_me: failed program was:" >&5
4065 +sed 's/^/| /' conftest.$ac_ext >&5
4066 +
4067 +  # Passes both tests.
4068 +ac_preproc_ok=:
4069 +break
4070 +fi
4071 +rm -f conftest.err conftest.$ac_ext
4072 +
4073 +done
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
4077 +  break
4078 +fi
4079 +
4080 +    done
4081 +    ac_cv_prog_CPP=$CPP
4082 +
4083 +fi
4084 +  CPP=$ac_cv_prog_CPP
4085 +else
4086 +  ac_cv_prog_CPP=$CPP
4087 +fi
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
4092 +do
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"
4101 +/* confdefs.h.  */
4102 +_ACEOF
4103 +cat confdefs.h >>conftest.$ac_ext
4104 +cat >>conftest.$ac_ext <<_ACEOF
4105 +/* end confdefs.h.  */
4106 +#ifdef __STDC__
4107 +# include <limits.h>
4108 +#else
4109 +# include <assert.h>
4110 +#endif
4111 +                     Syntax error
4112 +_ACEOF
4113 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4114 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4115 +  ac_status=$?
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
4123 +  else
4124 +    ac_cpp_err=
4125 +  fi
4126 +else
4127 +  ac_cpp_err=yes
4128 +fi
4129 +if test -z "$ac_cpp_err"; then
4130    :
4131  else
4132 -  echo "$ac_err" >&5
4133 -  echo "configure: failed program was:" >&5
4134 -  cat conftest.$ac_ext >&5
4135 -  rm -rf conftest*
4136 -  CPP="${CC-cc} -nologo -E"
4137 -  cat > conftest.$ac_ext <<EOF
4138 -#line 1504 "configure"
4139 -#include "confdefs.h"
4140 -#include <assert.h>
4141 -Syntax Error
4142 -EOF
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
4149 +
4150 +  # Broken: fails on valid input.
4151 +continue
4152 +fi
4153 +rm -f conftest.err conftest.$ac_ext
4154 +
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"
4159 +/* confdefs.h.  */
4160 +_ACEOF
4161 +cat confdefs.h >>conftest.$ac_ext
4162 +cat >>conftest.$ac_ext <<_ACEOF
4163 +/* end confdefs.h.  */
4164 +#include <ac_nonexistent.h>
4165 +_ACEOF
4166 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4167 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4168 +  ac_status=$?
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
4176 +  else
4177 +    ac_cpp_err=
4178 +  fi
4179 +else
4180 +  ac_cpp_err=yes
4181 +fi
4182 +if test -z "$ac_cpp_err"; then
4183 +  # Broken: success on invalid input.
4184 +continue
4185 +else
4186 +  echo "$as_me: failed program was:" >&5
4187 +sed 's/^/| /' conftest.$ac_ext >&5
4188 +
4189 +  # Passes both tests.
4190 +ac_preproc_ok=:
4191 +break
4192 +fi
4193 +rm -f conftest.err conftest.$ac_ext
4194 +
4195 +done
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
4199    :
4200  else
4201 -  echo "$ac_err" >&5
4202 -  echo "configure: failed program was:" >&5
4203 -  cat conftest.$ac_ext >&5
4204 -  rm -rf conftest*
4205 -  CPP=/lib/cpp
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; }; }
4211  fi
4212 -rm -f conftest*
4213 +
4214 +ac_ext=c
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
4219 +
4220 +
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
4225 +else
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'
4229 +    fi
4230 +fi
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
4234 +
4235 +
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
4240 +else
4241 +  cat >conftest.$ac_ext <<_ACEOF
4242 +#line $LINENO "configure"
4243 +/* confdefs.h.  */
4244 +_ACEOF
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>
4251 +#include <float.h>
4252 +
4253 +int
4254 +main ()
4255 +{
4256 +
4257 +  ;
4258 +  return 0;
4259 +}
4260 +_ACEOF
4261 +rm -f conftest.$ac_objext
4262 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263 +  (eval $ac_compile) 2>&5
4264 +  ac_status=$?
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
4270 +  ac_status=$?
4271 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 +  (exit $ac_status); }; }; then
4273 +  ac_cv_header_stdc=yes
4274 +else
4275 +  echo "$as_me: failed program was:" >&5
4276 +sed 's/^/| /' conftest.$ac_ext >&5
4277 +
4278 +ac_cv_header_stdc=no
4279 +fi
4280 +rm -f conftest.$ac_objext conftest.$ac_ext
4281 +
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"
4286 +/* confdefs.h.  */
4287 +_ACEOF
4288 +cat confdefs.h >>conftest.$ac_ext
4289 +cat >>conftest.$ac_ext <<_ACEOF
4290 +/* end confdefs.h.  */
4291 +#include <string.h>
4292 +
4293 +_ACEOF
4294 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4295 +  $EGREP "memchr" >/dev/null 2>&1; then
4296 +  :
4297 +else
4298 +  ac_cv_header_stdc=no
4299  fi
4300  rm -f conftest*
4301 +
4302 +fi
4303 +
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"
4308 +/* confdefs.h.  */
4309 +_ACEOF
4310 +cat confdefs.h >>conftest.$ac_ext
4311 +cat >>conftest.$ac_ext <<_ACEOF
4312 +/* end confdefs.h.  */
4313 +#include <stdlib.h>
4314 +
4315 +_ACEOF
4316 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4317 +  $EGREP "free" >/dev/null 2>&1; then
4318 +  :
4319 +else
4320 +  ac_cv_header_stdc=no
4321  fi
4322  rm -f conftest*
4323 -  ac_cv_prog_CPP="$CPP"
4324 +
4325  fi
4326 -  CPP="$ac_cv_prog_CPP"
4327 +
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
4331 +  :
4332  else
4333 -  ac_cv_prog_CPP="$CPP"
4334 +  cat >conftest.$ac_ext <<_ACEOF
4335 +#line $LINENO "configure"
4336 +/* confdefs.h.  */
4337 +_ACEOF
4338 +cat confdefs.h >>conftest.$ac_ext
4339 +cat >>conftest.$ac_ext <<_ACEOF
4340 +/* end confdefs.h.  */
4341 +#include <ctype.h>
4342 +#if ((' ' & 0x0FF) == 0x020)
4343 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4344 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4345 +#else
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))
4351 +#endif
4352 +
4353 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4354 +int
4355 +main ()
4356 +{
4357 +  int i;
4358 +  for (i = 0; i < 256; i++)
4359 +    if (XOR (islower (i), ISLOWER (i))
4360 +        || toupper (i) != TOUPPER (i))
4361 +      exit(2);
4362 +  exit (0);
4363 +}
4364 +_ACEOF
4365 +rm -f conftest$ac_exeext
4366 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4367 +  (eval $ac_link) 2>&5
4368 +  ac_status=$?
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
4373 +  ac_status=$?
4374 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 +  (exit $ac_status); }; }; then
4376 +  :
4377 +else
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
4381 +
4382 +( exit $ac_status )
4383 +ac_cv_header_stdc=no
4384  fi
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
4387 +fi
4388 +fi
4389 +fi
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
4393  
4394 -for ac_hdr in net/ethernet.h
4395 +cat >>confdefs.h <<\_ACEOF
4396 +#define STDC_HEADERS 1
4397 +_ACEOF
4398 +
4399 +fi
4400 +
4401 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4402 +
4403 +
4404 +
4405 +
4406 +
4407 +
4408 +
4409 +
4410 +
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
4413  do
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
4424  else
4425 -  cat > conftest.$ac_ext <<EOF
4426 -#line 1543 "configure"
4427 -#include "confdefs.h"
4428 -#include <$ac_hdr>
4429 -EOF
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
4434 -  rm -rf conftest*
4435 -  eval "ac_cv_header_$ac_safe=yes"
4436 +  cat >conftest.$ac_ext <<_ACEOF
4437 +#line $LINENO "configure"
4438 +/* confdefs.h.  */
4439 +_ACEOF
4440 +cat confdefs.h >>conftest.$ac_ext
4441 +cat >>conftest.$ac_ext <<_ACEOF
4442 +/* end confdefs.h.  */
4443 +$ac_includes_default
4444 +
4445 +#include <$ac_header>
4446 +_ACEOF
4447 +rm -f conftest.$ac_objext
4448 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449 +  (eval $ac_compile) 2>&5
4450 +  ac_status=$?
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
4456 +  ac_status=$?
4457 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 +  (exit $ac_status); }; }; then
4459 +  eval "$as_ac_Header=yes"
4460  else
4461 -  echo "$ac_err" >&5
4462 -  echo "configure: failed program was:" >&5
4463 -  cat conftest.$ac_ext >&5
4464 -  rm -rf conftest*
4465 -  eval "ac_cv_header_$ac_safe=no"
4466 +  echo "$as_me: failed program was:" >&5
4467 +sed 's/^/| /' conftest.$ac_ext >&5
4468 +
4469 +eval "$as_ac_Header=no"
4470  fi
4471 -rm -f conftest*
4472 +rm -f conftest.$ac_objext conftest.$ac_ext
4473  fi
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
4479 -EOF
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
4485 +_ACEOF
4486 +
4487 +fi
4488 +
4489 +done
4490 +
4491 +
4492 +
4493 +for ac_header in net/ethernet.h
4494 +do
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
4501 +fi
4502 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4503 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4504 +else
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"
4510 +/* confdefs.h.  */
4511 +_ACEOF
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>
4517 +_ACEOF
4518 +rm -f conftest.$ac_objext
4519 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520 +  (eval $ac_compile) 2>&5
4521 +  ac_status=$?
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
4527 +  ac_status=$?
4528 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 +  (exit $ac_status); }; }; then
4530 +  ac_header_compiler=yes
4531 +else
4532 +  echo "$as_me: failed program was:" >&5
4533 +sed 's/^/| /' conftest.$ac_ext >&5
4534 +
4535 +ac_header_compiler=no
4536 +fi
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
4540 +
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"
4546 +/* confdefs.h.  */
4547 +_ACEOF
4548 +cat confdefs.h >>conftest.$ac_ext
4549 +cat >>conftest.$ac_ext <<_ACEOF
4550 +/* end confdefs.h.  */
4551 +#include <$ac_header>
4552 +_ACEOF
4553 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4554 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4555 +  ac_status=$?
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
4563 +  else
4564 +    ac_cpp_err=
4565 +  fi
4566 +else
4567 +  ac_cpp_err=yes
4568 +fi
4569 +if test -z "$ac_cpp_err"; then
4570 +  ac_header_preproc=yes
4571 +else
4572 +  echo "$as_me: failed program was:" >&5
4573 +sed 's/^/| /' conftest.$ac_ext >&5
4574 +
4575 +  ac_header_preproc=no
4576 +fi
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
4580 +
4581 +# So?  What about this header?
4582 +case $ac_header_compiler:$ac_header_preproc in
4583 +  yes:no )
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;}
4588 +    (
4589 +      cat <<\_ASBOX
4590 +## ------------------------------------ ##
4591 +## Report this to bug-autoconf@gnu.org. ##
4592 +## ------------------------------------ ##
4593 +_ASBOX
4594 +    ) |
4595 +      sed "s/^/$as_me: WARNING:     /" >&2
4596 +    ;;
4597 +  no:yes )
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;}
4604 +    (
4605 +      cat <<\_ASBOX
4606 +## ------------------------------------ ##
4607 +## Report this to bug-autoconf@gnu.org. ##
4608 +## ------------------------------------ ##
4609 +_ASBOX
4610 +    ) |
4611 +      sed "s/^/$as_me: WARNING:     /" >&2
4612 +    ;;
4613 +esac
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
4618 +else
4619 +  eval "$as_ac_Header=$ac_header_preproc"
4620 +fi
4621 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4622 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4623 +
4624 +fi
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
4628 +_ACEOF
4629   \
4630          LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H"
4631 -else
4632 -  echo "$ac_t""no" 1>&6
4633  fi
4634 +
4635  done
4636  
4637      MAN_PREFIX="$prefix/man/man3/"
4638 @@ -1578,17 +3574,17 @@
4639      ;;
4640  
4641  *freebsd*)
4642 -    cat >> confdefs.h <<\EOF
4643 +    cat >>confdefs.h <<\_ACEOF
4644  #define LIBNET_BSDISH_OS 1
4645 -EOF
4646 +_ACEOF
4647  
4648 -    cat >> confdefs.h <<\EOF
4649 +    cat >>confdefs.h <<\_ACEOF
4650  #define LIBNET_BSD_BYTE_SWAP 1
4651 -EOF
4652 +_ACEOF
4653  
4654 -    cat >> confdefs.h <<\EOF
4655 +    cat >>confdefs.h <<\_ACEOF
4656  #define HAVE_SOCKADDR_SA_LEN 1
4657 -EOF
4658 +_ACEOF
4659  
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
4673      ;;
4674  
4675  *netbsd*)
4676 -    cat >> confdefs.h <<\EOF
4677 +    cat >>confdefs.h <<\_ACEOF
4678  #define LIBNET_BSDISH_OS 1
4679 -EOF
4680 +_ACEOF
4681  
4682 -    cat >> confdefs.h <<\EOF
4683 +    cat >>confdefs.h <<\_ACEOF
4684  #define LIBNET_BSD_BYTE_SWAP 1
4685 -EOF
4686 +_ACEOF
4687  
4688      LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
4689      MAN_PREFIX="$prefix/man/man3/"
4690 @@ -1618,32 +3616,34 @@
4691      ;;
4692  
4693  *openbsd*)
4694 -    cat >> confdefs.h <<\EOF
4695 +    cat >>confdefs.h <<\_ACEOF
4696  #define LIBNET_BSDISH_OS 1
4697 -EOF
4698 +_ACEOF
4699  
4700 -    cat >> confdefs.h <<\EOF
4701 +    cat >>confdefs.h <<\_ACEOF
4702  #define HAVE_SOCKADDR_SA_LEN 1
4703 -EOF
4704 +_ACEOF
4705  
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
4718      ;;
4719  
4720  *bsdi*)
4721 -    cat >> confdefs.h <<\EOF
4722 +    cat >>confdefs.h <<\_ACEOF
4723  #define LIBNET_BSDISH_OS 1
4724 -EOF
4725 +_ACEOF
4726  
4727 -    cat >> confdefs.h <<\EOF
4728 +    cat >>confdefs.h <<\_ACEOF
4729  #define LIBNET_BSD_BYTE_SWAP 1
4730 -EOF
4731 +_ACEOF
4732  
4733      LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
4734      MAN_PREFIX="$prefix/man/man3/"
4735 @@ -1653,181 +3653,328 @@
4736      ;;
4737  
4738  *solaris*)
4739 -    cat >> confdefs.h <<\EOF
4740 +    cat >>confdefs.h <<\_ACEOF
4741  #define HAVE_SOLARIS 1
4742 -EOF
4743 +_ACEOF
4744  
4745 -    for ac_hdr in sys/bufmod.h sys/dlpi_ext.h
4746 +
4747 +
4748 +for ac_header in sys/bufmod.h sys/dlpi_ext.h
4749  do
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
4761 +fi
4762 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4763 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4764  else
4765 -  cat > conftest.$ac_ext <<EOF
4766 -#line 1670 "configure"
4767 -#include "confdefs.h"
4768 -#include <$ac_hdr>
4769 -EOF
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
4774 -  rm -rf conftest*
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"
4781 +/* confdefs.h.  */
4782 +_ACEOF
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>
4788 +_ACEOF
4789 +rm -f conftest.$ac_objext
4790 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4791 +  (eval $ac_compile) 2>&5
4792 +  ac_status=$?
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
4798 +  ac_status=$?
4799 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 +  (exit $ac_status); }; }; then
4801 +  ac_header_compiler=yes
4802  else
4803 -  echo "$ac_err" >&5
4804 -  echo "configure: failed program was:" >&5
4805 -  cat conftest.$ac_ext >&5
4806 -  rm -rf conftest*
4807 -  eval "ac_cv_header_$ac_safe=no"
4808 +  echo "$as_me: failed program was:" >&5
4809 +sed 's/^/| /' conftest.$ac_ext >&5
4810 +
4811 +ac_header_compiler=no
4812  fi
4813 -rm -f conftest*
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
4817 +
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"
4823 +/* confdefs.h.  */
4824 +_ACEOF
4825 +cat confdefs.h >>conftest.$ac_ext
4826 +cat >>conftest.$ac_ext <<_ACEOF
4827 +/* end confdefs.h.  */
4828 +#include <$ac_header>
4829 +_ACEOF
4830 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4831 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4832 +  ac_status=$?
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
4840 +  else
4841 +    ac_cpp_err=
4842 +  fi
4843 +else
4844 +  ac_cpp_err=yes
4845  fi
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
4851 -EOF
4852
4853 +if test -z "$ac_cpp_err"; then
4854 +  ac_header_preproc=yes
4855  else
4856 -  echo "$ac_t""no" 1>&6
4857 +  echo "$as_me: failed program was:" >&5
4858 +sed 's/^/| /' conftest.$ac_ext >&5
4859 +
4860 +  ac_header_preproc=no
4861  fi
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
4865 +
4866 +# So?  What about this header?
4867 +case $ac_header_compiler:$ac_header_preproc in
4868 +  yes:no )
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;}
4873 +    (
4874 +      cat <<\_ASBOX
4875 +## ------------------------------------ ##
4876 +## Report this to bug-autoconf@gnu.org. ##
4877 +## ------------------------------------ ##
4878 +_ASBOX
4879 +    ) |
4880 +      sed "s/^/$as_me: WARNING:     /" >&2
4881 +    ;;
4882 +  no:yes )
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;}
4889 +    (
4890 +      cat <<\_ASBOX
4891 +## ------------------------------------ ##
4892 +## Report this to bug-autoconf@gnu.org. ##
4893 +## ------------------------------------ ##
4894 +_ASBOX
4895 +    ) |
4896 +      sed "s/^/$as_me: WARNING:     /" >&2
4897 +    ;;
4898 +esac
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
4903 +else
4904 +  eval "$as_ac_Header=$ac_header_preproc"
4905 +fi
4906 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4907 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4908 +
4909 +fi
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
4913 +_ACEOF
4914 +
4915 +fi
4916 +
4917  done
4918  
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
4930 -EOF
4931 +_ACEOF
4932  
4933      else
4934 -        echo "$ac_t""no" 1>&6
4935 +        echo "$as_me:$LINENO: result: no" >&5
4936 +echo "${ECHO_T}no" >&6
4937          dir="/dev/dlpi"
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"
4949 -EOF
4950 +_ACEOF
4951  
4952          else
4953 -            echo "$ac_t""no" 1>&6
4954 +            echo "$as_me:$LINENO: result: no" >&5
4955 +echo "${ECHO_T}no" >&6
4956          fi
4957      fi
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
4963 +
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
4968  else
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"
4977 +/* confdefs.h.  */
4978 +_ACEOF
4979 +cat confdefs.h >>conftest.$ac_ext
4980 +cat >>conftest.$ac_ext <<_ACEOF
4981 +/* end confdefs.h.  */
4982 +
4983  /* Override any gcc2 internal prototype to avoid an error.  */
4984 +#ifdef __cplusplus
4985 +extern "C"
4986 +#endif
4987  /* We use char because int might match the return type of a gcc2
4988 -    builtin and then its argument prototype would still apply.  */
4989 -char socket();
4990 -
4991 -int main() {
4992 -socket()
4993 -; return 0; }
4994 -EOF
4995 -if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4996 -  rm -rf conftest*
4997 -  eval "ac_cv_lib_$ac_lib_var=yes"
4998 +   builtin and then its argument prototype would still apply.  */
4999 +char socket ();
5000 +int
5001 +main ()
5002 +{
5003 +socket ();
5004 +  ;
5005 +  return 0;
5006 +}
5007 +_ACEOF
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
5011 +  ac_status=$?
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
5017 +  ac_status=$?
5018 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 +  (exit $ac_status); }; }; then
5020 +  ac_cv_lib_socket_socket=yes
5021  else
5022 -  echo "configure: failed program was:" >&5
5023 -  cat conftest.$ac_ext >&5
5024 -  rm -rf conftest*
5025 -  eval "ac_cv_lib_$ac_lib_var=no"
5026 -fi
5027 -rm -f conftest*
5028 -LIBS="$ac_save_LIBS"
5029 +  echo "$as_me: failed program was:" >&5
5030 +sed 's/^/| /' conftest.$ac_ext >&5
5031  
5032 +ac_cv_lib_socket_socket=no
5033  fi
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
5040 -EOF
5041 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5042 +LIBS=$ac_check_lib_save_LIBS
5043 +fi
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
5049 +_ACEOF
5050  
5051    LIBS="-lsocket $LIBS"
5052  
5053  else
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; }; }
5059  fi
5060  
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
5066 +
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
5071  else
5072 -  ac_save_LIBS="$LIBS"
5073 +  ac_check_lib_save_LIBS=$LIBS
5074  LIBS="-lnsl  $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"
5080 +/* confdefs.h.  */
5081 +_ACEOF
5082 +cat confdefs.h >>conftest.$ac_ext
5083 +cat >>conftest.$ac_ext <<_ACEOF
5084 +/* end confdefs.h.  */
5085 +
5086  /* Override any gcc2 internal prototype to avoid an error.  */
5087 +#ifdef __cplusplus
5088 +extern "C"
5089 +#endif
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();
5093 -
5094 -int main() {
5095 -gethostbyname()
5096 -; return 0; }
5097 -EOF
5098 -if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5099 -  rm -rf conftest*
5100 -  eval "ac_cv_lib_$ac_lib_var=yes"
5101 +   builtin and then its argument prototype would still apply.  */
5102 +char gethostbyname ();
5103 +int
5104 +main ()
5105 +{
5106 +gethostbyname ();
5107 +  ;
5108 +  return 0;
5109 +}
5110 +_ACEOF
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
5114 +  ac_status=$?
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
5120 +  ac_status=$?
5121 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 +  (exit $ac_status); }; }; then
5123 +  ac_cv_lib_nsl_gethostbyname=yes
5124  else
5125 -  echo "configure: failed program was:" >&5
5126 -  cat conftest.$ac_ext >&5
5127 -  rm -rf conftest*
5128 -  eval "ac_cv_lib_$ac_lib_var=no"
5129 -fi
5130 -rm -f conftest*
5131 -LIBS="$ac_save_LIBS"
5132 +  echo "$as_me: failed program was:" >&5
5133 +sed 's/^/| /' conftest.$ac_ext >&5
5134  
5135 +ac_cv_lib_nsl_gethostbyname=no
5136  fi
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
5143 -EOF
5144 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5145 +LIBS=$ac_check_lib_save_LIBS
5146 +fi
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
5152 +_ACEOF
5153  
5154    LIBS="-lnsl $LIBS"
5155  
5156  else
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; }; }
5162  fi
5163  
5164  
5165      case "`uname -r`" in
5166      5.4)
5167 -        cat >> confdefs.h <<\EOF
5168 +        cat >>confdefs.h <<\_ACEOF
5169  #define STUPID_SOLARIS_CHECKSUM_BUG 1
5170 -EOF
5171 +_ACEOF
5172  
5173          ;;
5174      5.5*)
5175 -        cat >> confdefs.h <<\EOF
5176 +        cat >>confdefs.h <<\_ACEOF
5177  #define STUPID_SOLARIS_CHECKSUM_BUG 1
5178 -EOF
5179 +_ACEOF
5180  
5181          ;;
5182  
5183 @@ -1842,73 +3989,103 @@
5184      ;;
5185  
5186  *)
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
5199      ;;
5200  
5201  esac
5202  
5203  
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
5213  else
5214 -  ac_save_LIBS="$LIBS"
5215 +  ac_check_lib_save_LIBS=$LIBS
5216  LIBS="-lnet  $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"
5222 +/* confdefs.h.  */
5223 +_ACEOF
5224 +cat confdefs.h >>conftest.$ac_ext
5225 +cat >>conftest.$ac_ext <<_ACEOF
5226 +/* end confdefs.h.  */
5227 +
5228  /* Override any gcc2 internal prototype to avoid an error.  */
5229 +#ifdef __cplusplus
5230 +extern "C"
5231 +#endif
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();
5235 -
5236 -int main() {
5237 -libnet_build_ip()
5238 -; return 0; }
5239 -EOF
5240 -if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5241 -  rm -rf conftest*
5242 -  eval "ac_cv_lib_$ac_lib_var=yes"
5243 +   builtin and then its argument prototype would still apply.  */
5244 +char libnet_build_ip ();
5245 +int
5246 +main ()
5247 +{
5248 +libnet_build_ip ();
5249 +  ;
5250 +  return 0;
5251 +}
5252 +_ACEOF
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
5256 +  ac_status=$?
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
5262 +  ac_status=$?
5263 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 +  (exit $ac_status); }; }; then
5265 +  ac_cv_lib_net_libnet_build_ip=yes
5266  else
5267 -  echo "configure: failed program was:" >&5
5268 -  cat conftest.$ac_ext >&5
5269 -  rm -rf conftest*
5270 -  eval "ac_cv_lib_$ac_lib_var=no"
5271 -fi
5272 -rm -f conftest*
5273 -LIBS="$ac_save_LIBS"
5274 +  echo "$as_me: failed program was:" >&5
5275 +sed 's/^/| /' conftest.$ac_ext >&5
5276  
5277 +ac_cv_lib_net_libnet_build_ip=no
5278  fi
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
5285 +fi
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 \
5291  
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
5299      else
5300          __LIBNET_VERSION=`strings $LIB_PREFIX/libnet.a | grep "libnet version"\
5301                  | cut -f3 -d" "`;\
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
5306          else
5307 -            echo "$ac_t""$__LIBNET_VERSION" 1>&6
5308 +            echo "$as_me:$LINENO: result: $__LIBNET_VERSION" >&5
5309 +echo "${ECHO_T}$__LIBNET_VERSION" >&6
5310          fi
5311      fi\
5312 -    
5313 -else
5314 -  echo "$ac_t""no" 1>&6
5315 +
5316  fi
5317  
5318  
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
5325 +else
5326 +
5327  
5328      cat > conftest.c << EOF
5329  #       include <stdio.h>
5330 @@ -1957,30 +4134,34 @@
5331                  ac_cv_libnet_endianess=lil
5332              else
5333                  ac_cv_libnet_endianess=unknown
5334 -            fi                                
5335 +            fi
5336          fi
5337          rm -f conftest* core core.conftest
5338  
5339 -        echo "$ac_t""$ac_cv_libnet_endianess" 1>&6
5340 +fi
5341 +echo "$as_me:$LINENO: result: $ac_cv_libnet_endianess" >&5
5342 +echo "${ECHO_T}$ac_cv_libnet_endianess" >&6
5343  
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
5348 -EOF
5349 +_ACEOF
5350  
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
5358 -EOF
5359 +_ACEOF
5360  
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"
5364          fi
5365 -    
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
5370 +
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
5375  else
5376    case "$target_cpu" in
5377  
5378 @@ -2039,446 +4220,1343 @@
5379          esac
5380  fi
5381  
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
5388  #define LBL_ALIGN 1
5389 -EOF
5390 +_ACEOF
5391  
5392      fi
5393  
5394  
5395 -for ac_hdr in sys/sockio.h
5396 +
5397 +for ac_header in sys/sockio.h
5398  do
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
5410 +fi
5411 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5412 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5413  else
5414 -  cat > conftest.$ac_ext <<EOF
5415 -#line 2061 "configure"
5416 -#include "confdefs.h"
5417 -#include <$ac_hdr>
5418 -EOF
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
5423 -  rm -rf conftest*
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"
5430 +/* confdefs.h.  */
5431 +_ACEOF
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>
5437 +_ACEOF
5438 +rm -f conftest.$ac_objext
5439 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 +  (eval $ac_compile) 2>&5
5441 +  ac_status=$?
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
5447 +  ac_status=$?
5448 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 +  (exit $ac_status); }; }; then
5450 +  ac_header_compiler=yes
5451  else
5452 -  echo "$ac_err" >&5
5453 -  echo "configure: failed program was:" >&5
5454 -  cat conftest.$ac_ext >&5
5455 -  rm -rf conftest*
5456 -  eval "ac_cv_header_$ac_safe=no"
5457 +  echo "$as_me: failed program was:" >&5
5458 +sed 's/^/| /' conftest.$ac_ext >&5
5459 +
5460 +ac_header_compiler=no
5461  fi
5462 -rm -f conftest*
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
5466 +
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"
5472 +/* confdefs.h.  */
5473 +_ACEOF
5474 +cat confdefs.h >>conftest.$ac_ext
5475 +cat >>conftest.$ac_ext <<_ACEOF
5476 +/* end confdefs.h.  */
5477 +#include <$ac_header>
5478 +_ACEOF
5479 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5480 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5481 +  ac_status=$?
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
5489 +  else
5490 +    ac_cpp_err=
5491 +  fi
5492 +else
5493 +  ac_cpp_err=yes
5494  fi
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
5500 -EOF
5501
5502 +if test -z "$ac_cpp_err"; then
5503 +  ac_header_preproc=yes
5504  else
5505 -  echo "$ac_t""no" 1>&6
5506 +  echo "$as_me: failed program was:" >&5
5507 +sed 's/^/| /' conftest.$ac_ext >&5
5508 +
5509 +  ac_header_preproc=no
5510 +fi
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
5514 +
5515 +# So?  What about this header?
5516 +case $ac_header_compiler:$ac_header_preproc in
5517 +  yes:no )
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;}
5522 +    (
5523 +      cat <<\_ASBOX
5524 +## ------------------------------------ ##
5525 +## Report this to bug-autoconf@gnu.org. ##
5526 +## ------------------------------------ ##
5527 +_ASBOX
5528 +    ) |
5529 +      sed "s/^/$as_me: WARNING:     /" >&2
5530 +    ;;
5531 +  no:yes )
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;}
5538 +    (
5539 +      cat <<\_ASBOX
5540 +## ------------------------------------ ##
5541 +## Report this to bug-autoconf@gnu.org. ##
5542 +## ------------------------------------ ##
5543 +_ASBOX
5544 +    ) |
5545 +      sed "s/^/$as_me: WARNING:     /" >&2
5546 +    ;;
5547 +esac
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
5552 +else
5553 +  eval "$as_ac_Header=$ac_header_preproc"
5554  fi
5555 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5556 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5557 +
5558 +fi
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
5562 +_ACEOF
5563 +
5564 +fi
5565 +
5566  done
5567  
5568 +          ac_config_headers="$ac_config_headers include/config.h"
5569  
5570 -trap '' 1 2 15
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.
5582  #
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.
5593  #
5594 -EOF
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.
5598 +
5599 +_ACEOF
5600 +
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.
5606 -(set) 2>&1 |
5607 -  case `(ac_space=' '; set | grep ac_space) 2>&1` in
5608 -  *ac_space=\ *)
5609 -    # `set' does not quote correctly, so add quotes (double-quote substitution
5610 -    # turns \\\\ into \\, and sed turns \\ into \).
5611 -    sed -n \
5612 -      -e "s/'/'\\\\''/g" \
5613 -      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5614 -    ;;
5615 -  *)
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'
5618 -    ;;
5619 -  esac >> confcache
5620 -if cmp -s $cache_file confcache; then
5621 -  :
5622 -else
5623 +{
5624 +  (set) 2>&1 |
5625 +    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5626 +    *ac_space=\ *)
5627 +      # `set' does not quote correctly, so add quotes (double-quote
5628 +      # substitution turns \\\\ into \\, and sed turns \\ into \).
5629 +      sed -n \
5630 +        "s/'/'\\\\''/g;
5631 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5632 +      ;;
5633 +    *)
5634 +      # `set' quotes correctly as required by POSIX, so do not add quotes.
5635 +      sed -n \
5636 +        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5637 +      ;;
5638 +    esac;
5639 +} |
5640 +  sed '
5641 +     t clear
5642 +     : clear
5643 +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5644 +     t end
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
5653    else
5654      echo "not updating unwritable cache $cache_file"
5655    fi
5656  fi
5657  rm -f confcache
5658  
5659 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5660 -
5661  test "x$prefix" = xNONE && prefix=$ac_default_prefix
5662  # Let make expand exec_prefix.
5663  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5664  
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}:*/:/;
5677 +s/:*@srcdir@:*/:/;
5678 +s/^\([^=]*=[   ]*\):*/\1/;
5679 +s/:*$//;
5680 +s/^[^=]*=[     ]*$//;
5681 +}'
5682  fi
5683  
5684 -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5685 -
5686  DEFS=-DHAVE_CONFIG_H
5687  
5688 -# Without the "./", some shells look in PATH for config.status.
5689 -: ${CONFIG_STATUS=./config.status}
5690 +ac_libobjs=
5691 +ac_ltlibobjs=
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$//'`
5696 +  # 2. Add them.
5697 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5698 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5699 +done
5700 +LIBOBJS=$ac_libobjs
5701  
5702 -echo creating $CONFIG_STATUS
5703 -rm -f $CONFIG_STATUS
5704 -cat > $CONFIG_STATUS <<EOF
5705 -#! /bin/sh
5706 -# Generated automatically by configure.
5707 +LTLIBOBJS=$ac_ltlibobjs
5708 +
5709 +
5710 +
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
5717 +#! $SHELL
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`:
5722 -#
5723 -# $0 $ac_configure_args
5724 -#
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.
5728  
5729 -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5730 -for ac_option
5731 +debug=false
5732 +ac_cs_recheck=false
5733 +ac_cs_silent=false
5734 +SHELL=\${CONFIG_SHELL-$SHELL}
5735 +_ACEOF
5736 +
5737 +cat >>$CONFIG_STATUS <<\_ACEOF
5738 +## --------------------- ##
5739 +## M4sh Initialization.  ##
5740 +## --------------------- ##
5741 +
5742 +# Be Bourne compatible
5743 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5744 +  emulate sh
5745 +  NULLCMD=:
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
5750 +  set -o posix
5751 +fi
5752 +
5753 +# Support unset when possible.
5754 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5755 +  as_unset=unset
5756 +else
5757 +  as_unset=false
5758 +fi
5759 +
5760 +
5761 +# Work around bugs in pre-3.0 UWIN ksh.
5762 +$as_unset ENV MAIL MAILPATH
5763 +PS1='$ '
5764 +PS2='> '
5765 +PS4='+ '
5766 +
5767 +# NLS nuisances.
5768 +for as_var in \
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
5772  do
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"
5779 -    exit 0 ;;
5780 -  -help | --help | --hel | --he | --h)
5781 -    echo "\$ac_cs_usage"; exit 0 ;;
5782 -  *) echo "\$ac_cs_usage"; exit 1 ;;
5783 -  esac
5784 +  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5785 +    eval $as_var=C; export $as_var
5786 +  else
5787 +    $as_unset $as_var
5788 +  fi
5789  done
5790  
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
5795 +  as_expr=expr
5796 +else
5797 +  as_expr=false
5798 +fi
5799  
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
5804 -EOF
5805 -cat >> $CONFIG_STATUS <<EOF
5806 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5807 +  as_basename=basename
5808 +else
5809 +  as_basename=false
5810 +fi
5811  
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
5815 -$ac_vpsub
5816 -$extrasub
5817 -s%@SHELL@%$SHELL%g
5818 -s%@CFLAGS@%$CFLAGS%g
5819 -s%@CPPFLAGS@%$CPPFLAGS%g
5820 -s%@CXXFLAGS@%$CXXFLAGS%g
5821 -s%@FFLAGS@%$FFLAGS%g
5822 -s%@DEFS@%$DEFS%g
5823 -s%@LDFLAGS@%$LDFLAGS%g
5824 -s%@LIBS@%$LIBS%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
5847 -s%@AR@%$AR%g
5848 -s%@LN@%$LN%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
5853 -s%@host@%$host%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
5863 -s%@build@%$build%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
5868 -s%@CC@%$CC%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
5873 -s%@CPP@%$CPP%g
5874  
5875 -CEOF
5876 -EOF
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 ||
5883 +echo X/"$0" |
5884 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5885 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
5886 +         /^X\/\(\/\).*/{ s//\1/; q; }
5887 +         s/.*/./; q'`
5888  
5889 -cat >> $CONFIG_STATUS <<\EOF
5890  
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.
5897 -ac_more_lines=:
5898 -ac_sed_cmds=""
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
5909 +
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=';'
5917    else
5918 -    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5919 +    PATH_SEPARATOR=:
5920    fi
5921 -  if test ! -s conftest.s$ac_file; then
5922 -    ac_more_lines=false
5923 -    rm -f conftest.s$ac_file
5924 +  rm -f conf$$.sh
5925 +fi
5926 +
5927 +
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.
5935 +  case $0 in
5936 +    *[\\/]* ) as_myself=$0 ;;
5937 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 +for as_dir in $PATH
5939 +do
5940 +  IFS=$as_save_IFS
5941 +  test -z "$as_dir" && as_dir=.
5942 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5943 +done
5944 +
5945 +       ;;
5946 +  esac
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
5950 +    as_myself=$0
5951 +  fi
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; }; }
5956 +  fi
5957 +  case $CONFIG_SHELL in
5958 +  '')
5959 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5961 +do
5962 +  IFS=$as_save_IFS
5963 +  test -z "$as_dir" && as_dir=.
5964 +  for as_base in sh bash ksh sh5; do
5965 +        case $as_dir in
5966 +        /*)
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+"$@"}
5978 +          fi;;
5979 +        esac
5980 +       done
5981 +done
5982 +;;
5983 +  esac
5984 +
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 |
5994 +    sed '
5995 +      N
5996 +      s,$,-,
5997 +      : loop
5998 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5999 +      t loop
6000 +      s,-$,,
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; }; }
6007 +
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).
6011 +  . ./$as_me.lineno
6012 +  # Exit status is that of the last command.
6013 +  exit
6014 +}
6015 +
6016 +
6017 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6018 +  *c*,-n*) ECHO_N= ECHO_C='
6019 +' ECHO_T='     ' ;;
6020 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6021 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6022 +esac
6023 +
6024 +if expr a : '\(a\)' >/dev/null 2>&1; then
6025 +  as_expr=expr
6026 +else
6027 +  as_expr=false
6028 +fi
6029 +
6030 +rm -f conf$$ conf$$.exe conf$$.file
6031 +echo >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
6037 +    as_ln_s='cp -p'
6038    else
6039 -    if test -z "$ac_sed_cmds"; then
6040 -      ac_sed_cmds="sed -f conftest.s$ac_file"
6041 -    else
6042 -      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6043 -    fi
6044 -    ac_file=`expr $ac_file + 1`
6045 -    ac_beg=$ac_end
6046 -    ac_end=`expr $ac_end + $ac_max_sed_cmds`
6047 +    as_ln_s='ln -s'
6048    fi
6049 +elif ln conf$$.file conf$$ 2>/dev/null; then
6050 +  as_ln_s=ln
6051 +else
6052 +  as_ln_s='cp -p'
6053 +fi
6054 +rm -f conf$$ conf$$.exe conf$$.file
6055 +
6056 +if mkdir -p . 2>/dev/null; then
6057 +  as_mkdir_p=:
6058 +else
6059 +  as_mkdir_p=false
6060 +fi
6061 +
6062 +as_executable_p="test -f"
6063 +
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"
6066 +
6067 +# Sed expression to map a string onto a valid variable name.
6068 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6069 +
6070 +
6071 +# IFS
6072 +# We need space, tab and new line, in precisely that order.
6073 +as_nl='
6074 +'
6075 +IFS="  $as_nl"
6076 +
6077 +# CDPATH.
6078 +$as_unset CDPATH
6079 +
6080 +exec 6>&1
6081 +
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.
6085 +exec 5>>config.log
6086 +{
6087 +  echo
6088 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6089 +## Running $as_me. ##
6090 +_ASBOX
6091 +} >&5
6092 +cat >&5 <<_CSEOF
6093 +
6094 +This file was extended by $as_me, which was
6095 +generated by GNU Autoconf 2.57.  Invocation command line was
6096 +
6097 +  CONFIG_FILES    = $CONFIG_FILES
6098 +  CONFIG_HEADERS  = $CONFIG_HEADERS
6099 +  CONFIG_LINKS    = $CONFIG_LINKS
6100 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
6101 +  $ $0 $@
6102 +
6103 +_CSEOF
6104 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6105 +echo >&5
6106 +_ACEOF
6107 +
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
6111 +fi
6112 +
6113 +if test -n "$ac_config_headers"; then
6114 +  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6115 +fi
6116 +
6117 +if test -n "$ac_config_links"; then
6118 +  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6119 +fi
6120 +
6121 +if test -n "$ac_config_commands"; then
6122 +  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6123 +fi
6124 +
6125 +cat >>$CONFIG_STATUS <<\_ACEOF
6126 +
6127 +ac_cs_usage="\
6128 +\`$as_me' instantiates files from templates according to the
6129 +current configuration.
6130 +
6131 +Usage: $0 [OPTIONS] [FILE]...
6132 +
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
6142 +
6143 +Configuration files:
6144 +$config_files
6145 +
6146 +Configuration headers:
6147 +$config_headers
6148 +
6149 +Configuration commands:
6150 +$config_commands
6151 +
6152 +Report bugs to <bug-autoconf@gnu.org>."
6153 +_ACEOF
6154 +
6155 +cat >>$CONFIG_STATUS <<_ACEOF
6156 +ac_cs_version="\\
6157 +config.status
6158 +configured by $0, generated by GNU Autoconf 2.57,
6159 +  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6160 +
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."
6165 +srcdir=$srcdir
6166 +INSTALL="$INSTALL"
6167 +_ACEOF
6168 +
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.
6172 +ac_need_defaults=:
6173 +while test $# != 0
6174 +do
6175 +  case $1 in
6176 +  --*=*)
6177 +    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6178 +    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6179 +    ac_shift=:
6180 +    ;;
6181 +  -*)
6182 +    ac_option=$1
6183 +    ac_optarg=$2
6184 +    ac_shift=shift
6185 +    ;;
6186 +  *) # This is not an option, so the user has probably given explicit
6187 +     # arguments.
6188 +     ac_option=$1
6189 +     ac_need_defaults=false;;
6190 +  esac
6191 +
6192 +  case $ac_option in
6193 +  # Handling of the options.
6194 +_ACEOF
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 ;;
6200 +  --he | --h)
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 )
6210 +    debug=: ;;
6211 +  --file | --fil | --fi | --f )
6212 +    $ac_shift
6213 +    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6214 +    ac_need_defaults=false;;
6215 +  --header | --heade | --head | --hea )
6216 +    $ac_shift
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)
6221 +    ac_cs_silent=: ;;
6222 +
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; }; } ;;
6229 +
6230 +  *) ac_config_targets="$ac_config_targets $1" ;;
6231 +
6232 +  esac
6233 +  shift
6234  done
6235 -if test -z "$ac_sed_cmds"; then
6236 -  ac_sed_cmds=cat
6237 +
6238 +ac_configure_extra_args=
6239 +
6240 +if $ac_cs_silent; then
6241 +  exec 6>/dev/null
6242 +  ac_configure_extra_args="$ac_configure_extra_args --silent"
6243  fi
6244 -EOF
6245  
6246 -cat >> $CONFIG_STATUS <<EOF
6247 +_ACEOF
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
6252 +fi
6253  
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 \
6257 -    libnet-config"}
6258 -EOF
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" ;;
6266 +_ACEOF
6267 +
6268 +
6269 +
6270 +
6271 +
6272 +cat >>$CONFIG_STATUS <<\_ACEOF
6273 +for ac_config_target in $ac_config_targets
6274 +do
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; }; };;
6294    esac
6295 +done
6296  
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
6306 +fi
6307  
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'`
6316 -  else
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.
6322 +$debug ||
6323 +{
6324 +  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6325 +  trap '{ (exit 1); exit 1; }' 1 2 13 15
6326 +}
6327 +
6328 +# Create a (secure) tmp directory for tmp files.
6329 +
6330 +{
6331 +  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6332 +  test -n "$tmp" && test -d "$tmp"
6333 +}  ||
6334 +{
6335 +  tmp=./confstat$$-$RANDOM
6336 +  (umask 077 && mkdir $tmp)
6337 +} ||
6338 +{
6339 +   echo "$me: cannot create a temporary directory in ." >&2
6340 +   { (exit 1); exit 1; }
6341 +}
6342 +
6343 +_ACEOF
6344 +
6345 +cat >>$CONFIG_STATUS <<_ACEOF
6346 +
6347 +#
6348 +# CONFIG_FILES section.
6349 +#
6350 +
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
6394 +s,@AR@,$AR,;t t
6395 +s,@LN@,$LN,;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
6412 +s,@CC@,$CC,;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
6423 +s,@CPP@,$CPP,;t t
6424 +s,@EGREP@,$EGREP,;t t
6425 +s,@LIBOBJS@,$LIBOBJS,;t t
6426 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6427 +CEOF
6428 +
6429 +_ACEOF
6430 +
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.
6438 +  ac_more_lines=:
6439 +  ac_sed_cmds=
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
6443 +    else
6444 +      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6445 +    fi
6446 +    if test ! -s $tmp/subs.frag; then
6447 +      ac_more_lines=false
6448 +    else
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.
6453 +      (echo ':t
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"
6457 +      else
6458 +       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6459 +      fi
6460 +      ac_sed_frag=`expr $ac_sed_frag + 1`
6461 +      ac_beg=$ac_end
6462 +      ac_end=`expr $ac_end + $ac_max_sed_lines`
6463 +    fi
6464 +  done
6465 +  if test -z "$ac_sed_cmds"; then
6466 +    ac_sed_cmds=cat
6467    fi
6468 +fi # test -n "$CONFIG_FILES"
6469  
6470 -  case "$ac_given_srcdir" in
6471 -  .)  srcdir=.
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" ;;
6478 +_ACEOF
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".
6482 +  case $ac_file in
6483 +  - | *:- | *:-:* ) # input from stdin
6484 +        cat >$tmp/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 ;;
6490    esac
6491  
6492 -  case "$ac_given_INSTALL" in
6493 -  [/$]*) INSTALL="$ac_given_INSTALL" ;;
6494 -  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6495 -  esac
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 ||
6503 +echo X"$ac_file" |
6504 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6505 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6506 +         /^X\(\/\/\)$/{ s//\1/; q; }
6507 +         /^X\(\/\).*/{ s//\1/; q; }
6508 +         s/.*/./; q'`
6509 +  { if $as_mkdir_p; then
6510 +    mkdir -p "$ac_dir"
6511 +  else
6512 +    as_dir="$ac_dir"
6513 +    as_dirs=
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 ||
6522 +echo X"$as_dir" |
6523 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6524 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6525 +         /^X\(\/\/\)$/{ s//\1/; q; }
6526 +         /^X\(\/\).*/{ s//\1/; q; }
6527 +         s/.*/./; q'`
6528 +    done
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; }; }; }
6533  
6534 -  echo creating "$ac_file"
6535 -  rm -f "$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" ;;
6540 -  *) ac_comsub= ;;
6541 +  ac_builddir=.
6542 +
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'`
6547 +else
6548 +  ac_dir_suffix= ac_top_builddir=
6549 +fi
6550 +
6551 +case $srcdir in
6552 +  .)  # No --srcdir option.  We are building in place.
6553 +    ac_srcdir=.
6554 +    if test -z "$ac_top_builddir"; then
6555 +       ac_top_srcdir=.
6556 +    else
6557 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6558 +    fi ;;
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 ;;
6565 +esac
6566 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6567 +# absolute.
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`
6572 +
6573 +
6574 +  case $INSTALL in
6575 +  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6576 +  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6577    esac
6578  
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
6586 -fi; done
6587 -rm -f conftest.s*
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;}
6591 +    rm -f "$ac_file"
6592 +  fi
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
6597 +    configure_input=
6598 +  else
6599 +    configure_input="$ac_file.  "
6600 +  fi
6601 +  configure_input=$configure_input"Generated from `echo $ac_file_in |
6602 +                                     sed 's,.*/,,'` by configure."
6603 +
6604 +  # First look for the input files in the build tree, otherwise in the
6605 +  # src tree.
6606 +  ac_file_inputs=`IFS=:
6607 +    for f in $ac_file_in; do
6608 +      case $f in
6609 +      -) echo $tmp/stdin ;;
6610 +      [\\/$]*)
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; }; }
6615 +         echo $f;;
6616 +      *) # Relative
6617 +         if test -f "$f"; then
6618 +           # Build tree
6619 +           echo $f
6620 +         elif test -f "$srcdir/$f"; then
6621 +           # Source tree
6622 +           echo $srcdir/$f
6623 +         else
6624 +           # /dev/null tree
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; }; }
6628 +         fi;;
6629 +      esac
6630 +    done` || { (exit 1); exit 1; }
6631 +_ACEOF
6632 +cat >>$CONFIG_STATUS <<_ACEOF
6633 +  sed "$ac_vpsub
6634 +$extrasub
6635 +_ACEOF
6636 +cat >>$CONFIG_STATUS <<\_ACEOF
6637 +:t
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
6650 +  rm -f $tmp/stdin
6651 +  if test x"$ac_file" != x-; then
6652 +    mv $tmp/out $ac_file
6653 +  else
6654 +    cat $tmp/out
6655 +    rm -f $tmp/out
6656 +  fi
6657 +
6658 +done
6659 +_ACEOF
6660 +cat >>$CONFIG_STATUS <<\_ACEOF
6661 +
6662 +#
6663 +# CONFIG_HEADER section.
6664 +#
6665  
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.
6668  #
6669  # ac_d sets the value in "#define NAME VALUE" lines.
6670 -ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
6671 -ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
6672 -ac_dC='\3'
6673 -ac_dD='%g'
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'
6679 +ac_dC=' '
6680 +ac_dD=',;t'
6681 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6682 +ac_uA='s,^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6683 +ac_uB='$,\1#\2define\3'
6684  ac_uC=' '
6685 -ac_uD='\4%g'
6686 -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6687 -ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6688 -ac_eB='$%\1#\2define\3'
6689 -ac_eC=' '
6690 -ac_eD='%g'
6691 +ac_uD=',;t'
6692  
6693 -if test "${CONFIG_HEADERS+set}" != set; then
6694 -EOF
6695 -cat >> $CONFIG_STATUS <<EOF
6696 -  CONFIG_HEADERS="include/config.h"
6697 -EOF
6698 -cat >> $CONFIG_STATUS <<\EOF
6699 -fi
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" ;;
6707 +  case $ac_file in
6708 +  - | *:- | *:-:* ) # input from stdin
6709 +        cat >$tmp/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 ;;
6715    esac
6716  
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;}
6720  
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
6725 +  # src tree.
6726 +  ac_file_inputs=`IFS=:
6727 +    for f in $ac_file_in; do
6728 +      case $f in
6729 +      -) echo $tmp/stdin ;;
6730 +      [\\/$]*)
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; }; }
6735 +         echo $f;;
6736 +      *) # Relative
6737 +         if test -f "$f"; then
6738 +           # Build tree
6739 +           echo $f
6740 +         elif test -f "$srcdir/$f"; then
6741 +           # Source tree
6742 +           echo $srcdir/$f
6743 +         else
6744 +           # /dev/null tree
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; }; }
6748 +         fi;;
6749 +      esac
6750 +    done` || { (exit 1); exit 1; }
6751 +  # Remove the trailing spaces.
6752 +  sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
6753  
6754 -EOF
6755 +_ACEOF
6756  
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
6763 -s/[\\&%]/\\&/g
6764 -s%[\\$`]%\\&%g
6765 -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6766 -s%ac_d%ac_u%gp
6767 -s%ac_u%ac_e%gp
6768 -EOF
6769 -sed -n -f conftest.hdr confdefs.h > conftest.vals
6770 -rm -f conftest.hdr
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.
6781 +#
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
6786 +s/[\\&,]/\\&/g
6787 +s,[\\$`],\\&,g
6788 +t clear
6789 +: clear
6790 +s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6791 +t end
6792 +s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6793 +: end
6794 +_ACEOF
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
6801  
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]*%/* & */%
6807 -EOF
6808 +cat >>conftest.undefs <<\_ACEOF
6809 +s,^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6810 +_ACEOF
6811  
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
6822 +do
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
6831 +  echo 'CEOF
6832 +  sed -f $tmp/defines.sed $tmp/in >$tmp/out
6833 +  rm -f $tmp/in
6834 +  mv $tmp/out $tmp/in
6835 +' >>$CONFIG_STATUS
6836 +  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6837 +  rm -f conftest.defines
6838 +  mv conftest.tail conftest.defines
6839 +done
6840 +rm -f conftest.defines
6841 +echo '  fi # grep' >>$CONFIG_STATUS
6842 +echo >>$CONFIG_STATUS
6843  
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
6847  rm -f conftest.tail
6848 -while :
6849 +while grep . conftest.undefs >/dev/null
6850  do
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
6865    echo 'CEOF
6866 -  sed -f conftest.frag conftest.in > conftest.out
6867 -  rm -f conftest.in
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
6874 +  rm -f $tmp/in
6875 +  mv $tmp/out $tmp/in
6876 +' >>$CONFIG_STATUS
6877 +  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6878 +  rm -f conftest.undefs
6879 +  mv conftest.tail conftest.undefs
6880  done
6881 -rm -f conftest.vals
6882 +rm -f conftest.undefs
6883  
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
6888 -  rm -f conftest.in
6889 -  if cmp -s $ac_file conftest.h 2>/dev/null; then
6890 -    echo "$ac_file is unchanged"
6891 -    rm -f conftest.h
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
6898    else
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
6905 +  fi
6906 +  cat $tmp/in >>$tmp/config.h
6907 +  rm -f $tmp/in
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;}
6912 +    else
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 ||
6919 +echo X"$ac_file" |
6920 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6921 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6922 +         /^X\(\/\/\)$/{ s//\1/; q; }
6923 +         /^X\(\/\).*/{ s//\1/; q; }
6924 +         s/.*/./; q'`
6925 +      { if $as_mkdir_p; then
6926 +    mkdir -p "$ac_dir"
6927 +  else
6928 +    as_dir="$ac_dir"
6929 +    as_dirs=
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 ||
6938 +echo X"$as_dir" |
6939 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6940 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6941 +         /^X\(\/\/\)$/{ s//\1/; q; }
6942 +         /^X\(\/\).*/{ s//\1/; q; }
6943 +         s/.*/./; q'`
6944 +    done
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; }; }; }
6949 +
6950 +      rm -f $ac_file
6951 +      mv $tmp/config.h $ac_file
6952      fi
6953 -    rm -f $ac_file
6954 -    mv conftest.h $ac_file
6955 +  else
6956 +    cat $tmp/config.h
6957 +    rm -f $tmp/config.h
6958    fi
6959 -fi; done
6960 +done
6961 +_ACEOF
6962 +cat >>$CONFIG_STATUS <<\_ACEOF
6963  
6964 -EOF
6965 -cat >> $CONFIG_STATUS <<EOF
6966 +#
6967 +# CONFIG_COMMANDS section.
6968 +#
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 ||
6978 +echo X"$ac_dest" |
6979 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6980 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6981 +         /^X\(\/\/\)$/{ s//\1/; q; }
6982 +         /^X\(\/\).*/{ s//\1/; q; }
6983 +         s/.*/./; q'`
6984 +  ac_builddir=.
6985  
6986 -EOF
6987 -cat >> $CONFIG_STATUS <<\EOF
6988 -chmod +x libnet-config
6989 -exit 0
6990 -EOF
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'`
6995 +else
6996 +  ac_dir_suffix= ac_top_builddir=
6997 +fi
6998 +
6999 +case $srcdir in
7000 +  .)  # No --srcdir option.  We are building in place.
7001 +    ac_srcdir=.
7002 +    if test -z "$ac_top_builddir"; then
7003 +       ac_top_srcdir=.
7004 +    else
7005 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7006 +    fi ;;
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 ;;
7013 +esac
7014 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7015 +# absolute.
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`
7020 +
7021 +
7022 +  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7023 +echo "$as_me: executing $ac_dest commands" >&6;}
7024 +  case $ac_dest in
7025 +    default ) chmod +x libnet-config ;;
7026 +  esac
7027 +done
7028 +_ACEOF
7029 +
7030 +cat >>$CONFIG_STATUS <<\_ACEOF
7031 +
7032 +{ (exit 0); exit 0; }
7033 +_ACEOF
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
7038 +
7039 +
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
7049 +  ac_cs_success=:
7050 +  ac_config_status_args=
7051 +  test "$silent" = yes &&
7052 +    ac_config_status_args="$ac_config_status_args --quiet"
7053 +  exec 5>/dev/null
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; }
7059 +fi
7060  
7061  
7062 --- Libnet-1.0.2a/include/libnet.h~configure
7063 +++ Libnet-1.0.2a/include/libnet.h
7064 @@ -84,8 +84,8 @@
7065  #define LIBNET_VERSION  "1.0.2a"
7066  
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."
7073  #endif
7074  
7075 --- Libnet-1.0.2a/./configure.in~configure
7076 +++ Libnet-1.0.2a/./configure.in
7077 @@ -6,7 +6,8 @@
7078  dnl
7079  dnl Process this file with autoconf to produce a configure script.
7080  
7081 -AC_INIT(src/libnet_build_ip.c)
7082 +AC_INIT
7083 +AC_CONFIG_SRCDIR([src/libnet_build_ip.c])
7084  
7085  VER=`cat VERSION`
7086  AC_MSG_RESULT(Beginning autoconfiguration process for libnet-$VER...)
7087 @@ -28,7 +29,7 @@
7088  dnl
7089  dnl Determine hosttype and set the root install directory.
7090  dnl
7091 -AC_CANONICAL_SYSTEM
7092 +AC_CANONICAL_TARGET([])
7093  AC_PREFIX_DEFAULT(/usr)
7094  
7095  if test "$prefix" = "NONE"; then
7096 @@ -49,7 +50,7 @@
7097  dnl
7098  dnl Use these compiler flags if we have gcc.
7099  dnl
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'
7104      CFLAGS="$CCOPTS"
7105 @@ -258,9 +259,11 @@
7106  
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)
7114 +    libnet-config])
7115 +AC_CONFIG_COMMANDS([default],[[chmod +x libnet-config]],[[]])
7116 +AC_OUTPUT
7117  
7118  dnl EOF
7119 --- Libnet-1.0.2a/./support/bpf-lkm/OpenBSD/configure.in~configure
7120 +++ Libnet-1.0.2a/./support/bpf-lkm/OpenBSD/configure.in
7121 @@ -7,11 +7,13 @@
7122  dnl Process this file with autoconf to produce a configure script.
7123  dnl
7124  
7125 -AC_INIT(ether_mod_load.c)
7126 +AC_INIT
7127 +AC_CONFIG_SRCDIR([ether_mod_load.c])
7128  AC_SUBST(KERNEL_VERSION)
7129  
7130  KERNEL_VERSION=`uname -r`
7131  
7132 -AC_OUTPUT(Makefile)
7133 +AC_CONFIG_FILES([Makefile])
7134 +AC_OUTPUT
7135  
7136  dnl EOF