cleanup .changes
[profile/ivi/dhcp.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for DHCP 4.2.3-P2.
4 #
5 # Report bugs to <dhcp-users@isc.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='DHCP'
576 PACKAGE_TARNAME='dhcp'
577 PACKAGE_VERSION='4.2.3-P2'
578 PACKAGE_STRING='DHCP 4.2.3-P2'
579 PACKAGE_BUGREPORT='dhcp-users@isc.org'
580
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 #  include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 #  include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 INSTALL_PROGRAM
655 INSTALL_SCRIPT
656 INSTALL_DATA
657 am__isrc
658 CYGPATH_W
659 PACKAGE
660 VERSION
661 ACLOCAL
662 AUTOCONF
663 AUTOMAKE
664 AUTOHEADER
665 MAKEINFO
666 install_sh
667 STRIP
668 INSTALL_STRIP_PROGRAM
669 mkdir_p
670 AWK
671 SET_MAKE
672 am__leading_dot
673 AMTAR
674 am__tar
675 am__untar
676 MAINTAINER_MODE_TRUE
677 MAINTAINER_MODE_FALSE
678 MAINT
679 CC
680 CFLAGS
681 LDFLAGS
682 CPPFLAGS
683 ac_ct_CC
684 EXEEXT
685 OBJEXT
686 DEPDIR
687 am__include
688 am__quote
689 AMDEP_TRUE
690 AMDEP_FALSE
691 AMDEPBACKSLASH
692 CCDEPMODE
693 am__fastdepCC_TRUE
694 am__fastdepCC_FALSE
695 CPP
696 GREP
697 EGREP
698 RANLIB
699 byte_order
700 ac_prefix_program
701 LDAP_CFLAGS
702 LIBOBJS
703 LTLIBOBJS'
704 ac_subst_files=''
705       ac_precious_vars='build_alias
706 host_alias
707 target_alias
708 CC
709 CFLAGS
710 LDFLAGS
711 LIBS
712 CPPFLAGS
713 CPP'
714
715
716 # Initialize some variables set by options.
717 ac_init_help=
718 ac_init_version=false
719 # The variables have the same names as the options, with
720 # dashes changed to underlines.
721 cache_file=/dev/null
722 exec_prefix=NONE
723 no_create=
724 no_recursion=
725 prefix=NONE
726 program_prefix=NONE
727 program_suffix=NONE
728 program_transform_name=s,x,x,
729 silent=
730 site=
731 srcdir=
732 verbose=
733 x_includes=NONE
734 x_libraries=NONE
735
736 # Installation directory options.
737 # These are left unexpanded so users can "make install exec_prefix=/foo"
738 # and all the variables that are supposed to be based on exec_prefix
739 # by default will actually change.
740 # Use braces instead of parens because sh, perl, etc. also accept them.
741 # (The list follows the same order as the GNU Coding Standards.)
742 bindir='${exec_prefix}/bin'
743 sbindir='${exec_prefix}/sbin'
744 libexecdir='${exec_prefix}/libexec'
745 datarootdir='${prefix}/share'
746 datadir='${datarootdir}'
747 sysconfdir='${prefix}/etc'
748 sharedstatedir='${prefix}/com'
749 localstatedir='${prefix}/var'
750 includedir='${prefix}/include'
751 oldincludedir='/usr/include'
752 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
753 infodir='${datarootdir}/info'
754 htmldir='${docdir}'
755 dvidir='${docdir}'
756 pdfdir='${docdir}'
757 psdir='${docdir}'
758 libdir='${exec_prefix}/lib'
759 localedir='${datarootdir}/locale'
760 mandir='${datarootdir}/man'
761
762 ac_prev=
763 ac_dashdash=
764 for ac_option
765 do
766   # If the previous option needs an argument, assign it.
767   if test -n "$ac_prev"; then
768     eval $ac_prev=\$ac_option
769     ac_prev=
770     continue
771   fi
772
773   case $ac_option in
774   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775   *)    ac_optarg=yes ;;
776   esac
777
778   # Accept the important Cygnus configure options, so we can diagnose typos.
779
780   case $ac_dashdash$ac_option in
781   --)
782     ac_dashdash=yes ;;
783
784   -bindir | --bindir | --bindi | --bind | --bin | --bi)
785     ac_prev=bindir ;;
786   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
787     bindir=$ac_optarg ;;
788
789   -build | --build | --buil | --bui | --bu)
790     ac_prev=build_alias ;;
791   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
792     build_alias=$ac_optarg ;;
793
794   -cache-file | --cache-file | --cache-fil | --cache-fi \
795   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
796     ac_prev=cache_file ;;
797   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
798   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
799     cache_file=$ac_optarg ;;
800
801   --config-cache | -C)
802     cache_file=config.cache ;;
803
804   -datadir | --datadir | --datadi | --datad)
805     ac_prev=datadir ;;
806   -datadir=* | --datadir=* | --datadi=* | --datad=*)
807     datadir=$ac_optarg ;;
808
809   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
810   | --dataroo | --dataro | --datar)
811     ac_prev=datarootdir ;;
812   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
813   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
814     datarootdir=$ac_optarg ;;
815
816   -disable-* | --disable-*)
817     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
818     # Reject names that are not valid shell variable names.
819     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
820       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
821    { (exit 1); exit 1; }; }
822     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
823     eval enable_$ac_feature=no ;;
824
825   -docdir | --docdir | --docdi | --doc | --do)
826     ac_prev=docdir ;;
827   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
828     docdir=$ac_optarg ;;
829
830   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
831     ac_prev=dvidir ;;
832   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
833     dvidir=$ac_optarg ;;
834
835   -enable-* | --enable-*)
836     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
837     # Reject names that are not valid shell variable names.
838     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840    { (exit 1); exit 1; }; }
841     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842     eval enable_$ac_feature=\$ac_optarg ;;
843
844   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
845   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
846   | --exec | --exe | --ex)
847     ac_prev=exec_prefix ;;
848   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
849   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
850   | --exec=* | --exe=* | --ex=*)
851     exec_prefix=$ac_optarg ;;
852
853   -gas | --gas | --ga | --g)
854     # Obsolete; use --with-gas.
855     with_gas=yes ;;
856
857   -help | --help | --hel | --he | -h)
858     ac_init_help=long ;;
859   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
860     ac_init_help=recursive ;;
861   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
862     ac_init_help=short ;;
863
864   -host | --host | --hos | --ho)
865     ac_prev=host_alias ;;
866   -host=* | --host=* | --hos=* | --ho=*)
867     host_alias=$ac_optarg ;;
868
869   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
870     ac_prev=htmldir ;;
871   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
872   | --ht=*)
873     htmldir=$ac_optarg ;;
874
875   -includedir | --includedir | --includedi | --included | --include \
876   | --includ | --inclu | --incl | --inc)
877     ac_prev=includedir ;;
878   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
879   | --includ=* | --inclu=* | --incl=* | --inc=*)
880     includedir=$ac_optarg ;;
881
882   -infodir | --infodir | --infodi | --infod | --info | --inf)
883     ac_prev=infodir ;;
884   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
885     infodir=$ac_optarg ;;
886
887   -libdir | --libdir | --libdi | --libd)
888     ac_prev=libdir ;;
889   -libdir=* | --libdir=* | --libdi=* | --libd=*)
890     libdir=$ac_optarg ;;
891
892   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
893   | --libexe | --libex | --libe)
894     ac_prev=libexecdir ;;
895   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
896   | --libexe=* | --libex=* | --libe=*)
897     libexecdir=$ac_optarg ;;
898
899   -localedir | --localedir | --localedi | --localed | --locale)
900     ac_prev=localedir ;;
901   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
902     localedir=$ac_optarg ;;
903
904   -localstatedir | --localstatedir | --localstatedi | --localstated \
905   | --localstate | --localstat | --localsta | --localst | --locals)
906     ac_prev=localstatedir ;;
907   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
908   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
909     localstatedir=$ac_optarg ;;
910
911   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
912     ac_prev=mandir ;;
913   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914     mandir=$ac_optarg ;;
915
916   -nfp | --nfp | --nf)
917     # Obsolete; use --without-fp.
918     with_fp=no ;;
919
920   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
921   | --no-cr | --no-c | -n)
922     no_create=yes ;;
923
924   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
926     no_recursion=yes ;;
927
928   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
929   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
930   | --oldin | --oldi | --old | --ol | --o)
931     ac_prev=oldincludedir ;;
932   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
933   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
934   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
935     oldincludedir=$ac_optarg ;;
936
937   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
938     ac_prev=prefix ;;
939   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
940     prefix=$ac_optarg ;;
941
942   -program-prefix | --program-prefix | --program-prefi | --program-pref \
943   | --program-pre | --program-pr | --program-p)
944     ac_prev=program_prefix ;;
945   -program-prefix=* | --program-prefix=* | --program-prefi=* \
946   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
947     program_prefix=$ac_optarg ;;
948
949   -program-suffix | --program-suffix | --program-suffi | --program-suff \
950   | --program-suf | --program-su | --program-s)
951     ac_prev=program_suffix ;;
952   -program-suffix=* | --program-suffix=* | --program-suffi=* \
953   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
954     program_suffix=$ac_optarg ;;
955
956   -program-transform-name | --program-transform-name \
957   | --program-transform-nam | --program-transform-na \
958   | --program-transform-n | --program-transform- \
959   | --program-transform | --program-transfor \
960   | --program-transfo | --program-transf \
961   | --program-trans | --program-tran \
962   | --progr-tra | --program-tr | --program-t)
963     ac_prev=program_transform_name ;;
964   -program-transform-name=* | --program-transform-name=* \
965   | --program-transform-nam=* | --program-transform-na=* \
966   | --program-transform-n=* | --program-transform-=* \
967   | --program-transform=* | --program-transfor=* \
968   | --program-transfo=* | --program-transf=* \
969   | --program-trans=* | --program-tran=* \
970   | --progr-tra=* | --program-tr=* | --program-t=*)
971     program_transform_name=$ac_optarg ;;
972
973   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
974     ac_prev=pdfdir ;;
975   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
976     pdfdir=$ac_optarg ;;
977
978   -psdir | --psdir | --psdi | --psd | --ps)
979     ac_prev=psdir ;;
980   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
981     psdir=$ac_optarg ;;
982
983   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
984   | -silent | --silent | --silen | --sile | --sil)
985     silent=yes ;;
986
987   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
988     ac_prev=sbindir ;;
989   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
990   | --sbi=* | --sb=*)
991     sbindir=$ac_optarg ;;
992
993   -sharedstatedir | --sharedstatedir | --sharedstatedi \
994   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
995   | --sharedst | --shareds | --shared | --share | --shar \
996   | --sha | --sh)
997     ac_prev=sharedstatedir ;;
998   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
999   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1000   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1001   | --sha=* | --sh=*)
1002     sharedstatedir=$ac_optarg ;;
1003
1004   -site | --site | --sit)
1005     ac_prev=site ;;
1006   -site=* | --site=* | --sit=*)
1007     site=$ac_optarg ;;
1008
1009   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1010     ac_prev=srcdir ;;
1011   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1012     srcdir=$ac_optarg ;;
1013
1014   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1015   | --syscon | --sysco | --sysc | --sys | --sy)
1016     ac_prev=sysconfdir ;;
1017   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1018   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1019     sysconfdir=$ac_optarg ;;
1020
1021   -target | --target | --targe | --targ | --tar | --ta | --t)
1022     ac_prev=target_alias ;;
1023   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1024     target_alias=$ac_optarg ;;
1025
1026   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1027     verbose=yes ;;
1028
1029   -version | --version | --versio | --versi | --vers | -V)
1030     ac_init_version=: ;;
1031
1032   -with-* | --with-*)
1033     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1034     # Reject names that are not valid shell variable names.
1035     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036       { echo "$as_me: error: invalid package name: $ac_package" >&2
1037    { (exit 1); exit 1; }; }
1038     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1039     eval with_$ac_package=\$ac_optarg ;;
1040
1041   -without-* | --without-*)
1042     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1043     # Reject names that are not valid shell variable names.
1044     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045       { echo "$as_me: error: invalid package name: $ac_package" >&2
1046    { (exit 1); exit 1; }; }
1047     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1048     eval with_$ac_package=no ;;
1049
1050   --x)
1051     # Obsolete; use --with-x.
1052     with_x=yes ;;
1053
1054   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1055   | --x-incl | --x-inc | --x-in | --x-i)
1056     ac_prev=x_includes ;;
1057   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1058   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1059     x_includes=$ac_optarg ;;
1060
1061   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1062   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1063     ac_prev=x_libraries ;;
1064   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1065   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1066     x_libraries=$ac_optarg ;;
1067
1068   -*) { echo "$as_me: error: unrecognized option: $ac_option
1069 Try \`$0 --help' for more information." >&2
1070    { (exit 1); exit 1; }; }
1071     ;;
1072
1073   *=*)
1074     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1077       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1078    { (exit 1); exit 1; }; }
1079     eval $ac_envvar=\$ac_optarg
1080     export $ac_envvar ;;
1081
1082   *)
1083     # FIXME: should be removed in autoconf 3.0.
1084     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1085     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1087     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1088     ;;
1089
1090   esac
1091 done
1092
1093 if test -n "$ac_prev"; then
1094   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1095   { echo "$as_me: error: missing argument to $ac_option" >&2
1096    { (exit 1); exit 1; }; }
1097 fi
1098
1099 # Be sure to have absolute directory names.
1100 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1101                 datadir sysconfdir sharedstatedir localstatedir includedir \
1102                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1103                 libdir localedir mandir
1104 do
1105   eval ac_val=\$$ac_var
1106   case $ac_val in
1107     [\\/$]* | ?:[\\/]* )  continue;;
1108     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1109   esac
1110   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1111    { (exit 1); exit 1; }; }
1112 done
1113
1114 # There might be people who depend on the old broken behavior: `$host'
1115 # used to hold the argument of --host etc.
1116 # FIXME: To remove some day.
1117 build=$build_alias
1118 host=$host_alias
1119 target=$target_alias
1120
1121 # FIXME: To remove some day.
1122 if test "x$host_alias" != x; then
1123   if test "x$build_alias" = x; then
1124     cross_compiling=maybe
1125     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1126     If a cross compiler is detected then cross compile mode will be used." >&2
1127   elif test "x$build_alias" != "x$host_alias"; then
1128     cross_compiling=yes
1129   fi
1130 fi
1131
1132 ac_tool_prefix=
1133 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1134
1135 test "$silent" = yes && exec 6>/dev/null
1136
1137
1138 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1139 ac_ls_di=`ls -di .` &&
1140 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1141   { echo "$as_me: error: Working directory cannot be determined" >&2
1142    { (exit 1); exit 1; }; }
1143 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1144   { echo "$as_me: error: pwd does not report name of working directory" >&2
1145    { (exit 1); exit 1; }; }
1146
1147
1148 # Find the source files, if location was not specified.
1149 if test -z "$srcdir"; then
1150   ac_srcdir_defaulted=yes
1151   # Try the directory containing this script, then the parent directory.
1152   ac_confdir=`$as_dirname -- "$0" ||
1153 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1154          X"$0" : 'X\(//\)[^/]' \| \
1155          X"$0" : 'X\(//\)$' \| \
1156          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1157 echo X"$0" |
1158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1159             s//\1/
1160             q
1161           }
1162           /^X\(\/\/\)[^/].*/{
1163             s//\1/
1164             q
1165           }
1166           /^X\(\/\/\)$/{
1167             s//\1/
1168             q
1169           }
1170           /^X\(\/\).*/{
1171             s//\1/
1172             q
1173           }
1174           s/.*/./; q'`
1175   srcdir=$ac_confdir
1176   if test ! -r "$srcdir/$ac_unique_file"; then
1177     srcdir=..
1178   fi
1179 else
1180   ac_srcdir_defaulted=no
1181 fi
1182 if test ! -r "$srcdir/$ac_unique_file"; then
1183   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1184   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1185    { (exit 1); exit 1; }; }
1186 fi
1187 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1188 ac_abs_confdir=`(
1189         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1190    { (exit 1); exit 1; }; }
1191         pwd)`
1192 # When building in place, set srcdir=.
1193 if test "$ac_abs_confdir" = "$ac_pwd"; then
1194   srcdir=.
1195 fi
1196 # Remove unnecessary trailing slashes from srcdir.
1197 # Double slashes in file names in object file debugging info
1198 # mess up M-x gdb in Emacs.
1199 case $srcdir in
1200 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1201 esac
1202 for ac_var in $ac_precious_vars; do
1203   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1204   eval ac_env_${ac_var}_value=\$${ac_var}
1205   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1206   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1207 done
1208
1209 #
1210 # Report the --help message.
1211 #
1212 if test "$ac_init_help" = "long"; then
1213   # Omit some internal or obsolete options to make the list less imposing.
1214   # This message is too long to be a string in the A/UX 3.1 sh.
1215   cat <<_ACEOF
1216 \`configure' configures DHCP 4.2.3-P2 to adapt to many kinds of systems.
1217
1218 Usage: $0 [OPTION]... [VAR=VALUE]...
1219
1220 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1221 VAR=VALUE.  See below for descriptions of some of the useful variables.
1222
1223 Defaults for the options are specified in brackets.
1224
1225 Configuration:
1226   -h, --help              display this help and exit
1227       --help=short        display options specific to this package
1228       --help=recursive    display the short help of all the included packages
1229   -V, --version           display version information and exit
1230   -q, --quiet, --silent   do not print \`checking...' messages
1231       --cache-file=FILE   cache test results in FILE [disabled]
1232   -C, --config-cache      alias for \`--cache-file=config.cache'
1233   -n, --no-create         do not create output files
1234       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1235
1236 Installation directories:
1237   --prefix=PREFIX         install architecture-independent files in PREFIX
1238                           [$ac_default_prefix]
1239   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1240                           [PREFIX]
1241
1242 By default, \`make install' will install all the files in
1243 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1244 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1245 for instance \`--prefix=\$HOME'.
1246
1247 For better control, use the options below.
1248
1249 Fine tuning of the installation directories:
1250   --bindir=DIR           user executables [EPREFIX/bin]
1251   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1252   --libexecdir=DIR       program executables [EPREFIX/libexec]
1253   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1254   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1255   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1256   --libdir=DIR           object code libraries [EPREFIX/lib]
1257   --includedir=DIR       C header files [PREFIX/include]
1258   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1259   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1260   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1261   --infodir=DIR          info documentation [DATAROOTDIR/info]
1262   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1263   --mandir=DIR           man documentation [DATAROOTDIR/man]
1264   --docdir=DIR           documentation root [DATAROOTDIR/doc/dhcp]
1265   --htmldir=DIR          html documentation [DOCDIR]
1266   --dvidir=DIR           dvi documentation [DOCDIR]
1267   --pdfdir=DIR           pdf documentation [DOCDIR]
1268   --psdir=DIR            ps documentation [DOCDIR]
1269 _ACEOF
1270
1271   cat <<\_ACEOF
1272
1273 Program names:
1274   --program-prefix=PREFIX            prepend PREFIX to installed program names
1275   --program-suffix=SUFFIX            append SUFFIX to installed program names
1276   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1277 _ACEOF
1278 fi
1279
1280 if test -n "$ac_init_help"; then
1281   case $ac_init_help in
1282      short | recursive ) echo "Configuration of DHCP 4.2.3-P2:";;
1283    esac
1284   cat <<\_ACEOF
1285
1286 Optional Features:
1287   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1288   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1289   --enable-maintainer-mode  enable make rules and dependencies not useful
1290                           (and sometimes confusing) to the casual installer
1291   --disable-dependency-tracking  speeds up one-time build
1292   --enable-dependency-tracking   do not reject slow dependency extractors
1293   --enable-debug          create a debug-only version of the software (default
1294                           is no).
1295   --enable-failover       enable support for failover (default is yes)
1296   --enable-execute        enable support for execute() in config (default is
1297                           yes)
1298   --enable-tracing        enable support for server activity tracing (default
1299                           is yes)
1300   --enable-delayed-ack    queues multiple DHCPACK replies (default is no)
1301   --enable-dhcpv6         enable support for DHCPv6 (default is yes)
1302   --enable-paranoia       enable support for chroot/setuid (default is no)
1303   --enable-early-chroot   enable chrooting prior to configuration (default is
1304                           no)
1305   --enable-ipv4-pktinfo   enable use of pktinfo on IPv4 sockets (default is
1306                           no)
1307   --enable-use-sockets    use the standard BSD socket API (default is no)
1308
1309 Optional Packages:
1310   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1311   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1312   --with-srv-lease-file=PATH
1313                           File for dhcpd leases (default is
1314                           LOCALSTATEDIR/db/dhcpd.leases)
1315   --with-srv6-lease-file=PATH
1316                           File for dhcpd6 leases (default is
1317                           LOCALSTATEDIR/db/dhcpd6.leases)
1318   --with-cli-lease-file=PATH
1319                           File for dhclient leases (default is
1320                           LOCALSTATEDIR/db/dhclient.leases)
1321   --with-cli6-lease-file=PATH
1322                           File for dhclient6 leases (default is
1323                           LOCALSTATEDIR/db/dhclient6.leases)
1324   --with-srv-pid-file=PATH
1325                           File for dhcpd process information (default is
1326                           LOCALSTATEDIR/run/dhcpd.pid)
1327   --with-srv6-pid-file=PATH
1328                           File for dhcpd6 process information (default is
1329                           LOCALSTATEDIR/run/dhcpd6.pid)
1330   --with-cli-pid-file=PATH
1331                           File for dhclient process information (default is
1332                           LOCALSTATEDIR/run/dhclient.pid)
1333   --with-cli6-pid-file=PATH
1334                           File for dhclient6 process information (default is
1335                           LOCALSTATEDIR/run/dhclient6.pid)
1336   --with-relay-pid-file=PATH
1337                           File for dhcrelay process information (default is
1338                           LOCALSTATEDIR/run/dhcrelay.pid)
1339   --with-relay6-pid-file=PATH
1340                           File for dhcrelay6 process information (default is
1341                           LOCALSTATEDIR/run/dhcrelay6.pid)
1342   --with-libbind=PATH     bind includes and libraries are in PATH (default is
1343                           ./bind)
1344   --with-ldap             enable OpenLDAP support in dhcpd (default is no)
1345   --with-ldapcrypto       enable OpenLDAP crypto support in dhcpd (default is
1346                           no)
1347
1348 Some influential environment variables:
1349   CC          C compiler command
1350   CFLAGS      C compiler flags
1351   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1352               nonstandard directory <lib dir>
1353   LIBS        libraries to pass to the linker, e.g. -l<library>
1354   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1355               you have headers in a nonstandard directory <include dir>
1356   CPP         C preprocessor
1357
1358 Use these variables to override the choices made by `configure' or to help
1359 it to find libraries and programs with nonstandard names/locations.
1360
1361 Report bugs to <dhcp-users@isc.org>.
1362 _ACEOF
1363 ac_status=$?
1364 fi
1365
1366 if test "$ac_init_help" = "recursive"; then
1367   # If there are subdirs, report their specific --help.
1368   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1369     test -d "$ac_dir" || continue
1370     ac_builddir=.
1371
1372 case "$ac_dir" in
1373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374 *)
1375   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1376   # A ".." for each directory in $ac_dir_suffix.
1377   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1378   case $ac_top_builddir_sub in
1379   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1381   esac ;;
1382 esac
1383 ac_abs_top_builddir=$ac_pwd
1384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1385 # for backward compatibility:
1386 ac_top_builddir=$ac_top_build_prefix
1387
1388 case $srcdir in
1389   .)  # We are building in place.
1390     ac_srcdir=.
1391     ac_top_srcdir=$ac_top_builddir_sub
1392     ac_abs_top_srcdir=$ac_pwd ;;
1393   [\\/]* | ?:[\\/]* )  # Absolute name.
1394     ac_srcdir=$srcdir$ac_dir_suffix;
1395     ac_top_srcdir=$srcdir
1396     ac_abs_top_srcdir=$srcdir ;;
1397   *) # Relative name.
1398     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1399     ac_top_srcdir=$ac_top_build_prefix$srcdir
1400     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1401 esac
1402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1403
1404     cd "$ac_dir" || { ac_status=$?; continue; }
1405     # Check for guested configure.
1406     if test -f "$ac_srcdir/configure.gnu"; then
1407       echo &&
1408       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1409     elif test -f "$ac_srcdir/configure"; then
1410       echo &&
1411       $SHELL "$ac_srcdir/configure" --help=recursive
1412     else
1413       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1414     fi || ac_status=$?
1415     cd "$ac_pwd" || { ac_status=$?; break; }
1416   done
1417 fi
1418
1419 test -n "$ac_init_help" && exit $ac_status
1420 if $ac_init_version; then
1421   cat <<\_ACEOF
1422 DHCP configure 4.2.3-P2
1423 generated by GNU Autoconf 2.61
1424
1425 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1426 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1427 This configure script is free software; the Free Software Foundation
1428 gives unlimited permission to copy, distribute and modify it.
1429 _ACEOF
1430   exit
1431 fi
1432 cat >config.log <<_ACEOF
1433 This file contains any messages produced by compilers while
1434 running configure, to aid debugging if configure makes a mistake.
1435
1436 It was created by DHCP $as_me 4.2.3-P2, which was
1437 generated by GNU Autoconf 2.61.  Invocation command line was
1438
1439   $ $0 $@
1440
1441 _ACEOF
1442 exec 5>>config.log
1443 {
1444 cat <<_ASUNAME
1445 ## --------- ##
1446 ## Platform. ##
1447 ## --------- ##
1448
1449 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1450 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1451 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1452 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1453 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1454
1455 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1456 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1457
1458 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1459 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1460 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1461 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1462 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1463 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1464 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1465
1466 _ASUNAME
1467
1468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469 for as_dir in $PATH
1470 do
1471   IFS=$as_save_IFS
1472   test -z "$as_dir" && as_dir=.
1473   echo "PATH: $as_dir"
1474 done
1475 IFS=$as_save_IFS
1476
1477 } >&5
1478
1479 cat >&5 <<_ACEOF
1480
1481
1482 ## ----------- ##
1483 ## Core tests. ##
1484 ## ----------- ##
1485
1486 _ACEOF
1487
1488
1489 # Keep a trace of the command line.
1490 # Strip out --no-create and --no-recursion so they do not pile up.
1491 # Strip out --silent because we don't want to record it for future runs.
1492 # Also quote any args containing shell meta-characters.
1493 # Make two passes to allow for proper duplicate-argument suppression.
1494 ac_configure_args=
1495 ac_configure_args0=
1496 ac_configure_args1=
1497 ac_must_keep_next=false
1498 for ac_pass in 1 2
1499 do
1500   for ac_arg
1501   do
1502     case $ac_arg in
1503     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1504     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1505     | -silent | --silent | --silen | --sile | --sil)
1506       continue ;;
1507     *\'*)
1508       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1509     esac
1510     case $ac_pass in
1511     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1512     2)
1513       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1514       if test $ac_must_keep_next = true; then
1515         ac_must_keep_next=false # Got value, back to normal.
1516       else
1517         case $ac_arg in
1518           *=* | --config-cache | -C | -disable-* | --disable-* \
1519           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1520           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1521           | -with-* | --with-* | -without-* | --without-* | --x)
1522             case "$ac_configure_args0 " in
1523               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1524             esac
1525             ;;
1526           -* ) ac_must_keep_next=true ;;
1527         esac
1528       fi
1529       ac_configure_args="$ac_configure_args '$ac_arg'"
1530       ;;
1531     esac
1532   done
1533 done
1534 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1535 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1536
1537 # When interrupted or exit'd, cleanup temporary files, and complete
1538 # config.log.  We remove comments because anyway the quotes in there
1539 # would cause problems or look ugly.
1540 # WARNING: Use '\'' to represent an apostrophe within the trap.
1541 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1542 trap 'exit_status=$?
1543   # Save into config.log some information that might help in debugging.
1544   {
1545     echo
1546
1547     cat <<\_ASBOX
1548 ## ---------------- ##
1549 ## Cache variables. ##
1550 ## ---------------- ##
1551 _ASBOX
1552     echo
1553     # The following way of writing the cache mishandles newlines in values,
1554 (
1555   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1556     eval ac_val=\$$ac_var
1557     case $ac_val in #(
1558     *${as_nl}*)
1559       case $ac_var in #(
1560       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1561 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1562       esac
1563       case $ac_var in #(
1564       _ | IFS | as_nl) ;; #(
1565       *) $as_unset $ac_var ;;
1566       esac ;;
1567     esac
1568   done
1569   (set) 2>&1 |
1570     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1571     *${as_nl}ac_space=\ *)
1572       sed -n \
1573         "s/'\''/'\''\\\\'\'''\''/g;
1574           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1575       ;; #(
1576     *)
1577       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1578       ;;
1579     esac |
1580     sort
1581 )
1582     echo
1583
1584     cat <<\_ASBOX
1585 ## ----------------- ##
1586 ## Output variables. ##
1587 ## ----------------- ##
1588 _ASBOX
1589     echo
1590     for ac_var in $ac_subst_vars
1591     do
1592       eval ac_val=\$$ac_var
1593       case $ac_val in
1594       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1595       esac
1596       echo "$ac_var='\''$ac_val'\''"
1597     done | sort
1598     echo
1599
1600     if test -n "$ac_subst_files"; then
1601       cat <<\_ASBOX
1602 ## ------------------- ##
1603 ## File substitutions. ##
1604 ## ------------------- ##
1605 _ASBOX
1606       echo
1607       for ac_var in $ac_subst_files
1608       do
1609         eval ac_val=\$$ac_var
1610         case $ac_val in
1611         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1612         esac
1613         echo "$ac_var='\''$ac_val'\''"
1614       done | sort
1615       echo
1616     fi
1617
1618     if test -s confdefs.h; then
1619       cat <<\_ASBOX
1620 ## ----------- ##
1621 ## confdefs.h. ##
1622 ## ----------- ##
1623 _ASBOX
1624       echo
1625       cat confdefs.h
1626       echo
1627     fi
1628     test "$ac_signal" != 0 &&
1629       echo "$as_me: caught signal $ac_signal"
1630     echo "$as_me: exit $exit_status"
1631   } >&5
1632   rm -f core *.core core.conftest.* &&
1633     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1634     exit $exit_status
1635 ' 0
1636 for ac_signal in 1 2 13 15; do
1637   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1638 done
1639 ac_signal=0
1640
1641 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1642 rm -f -r conftest* confdefs.h
1643
1644 # Predefined preprocessor variables.
1645
1646 cat >>confdefs.h <<_ACEOF
1647 #define PACKAGE_NAME "$PACKAGE_NAME"
1648 _ACEOF
1649
1650
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1653 _ACEOF
1654
1655
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1658 _ACEOF
1659
1660
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_STRING "$PACKAGE_STRING"
1663 _ACEOF
1664
1665
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1668 _ACEOF
1669
1670
1671 # Let the site file select an alternate cache file if it wants to.
1672 # Prefer explicitly selected file to automatically selected ones.
1673 if test -n "$CONFIG_SITE"; then
1674   set x "$CONFIG_SITE"
1675 elif test "x$prefix" != xNONE; then
1676   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1677 else
1678   set x "$ac_default_prefix/share/config.site" \
1679         "$ac_default_prefix/etc/config.site"
1680 fi
1681 shift
1682 for ac_site_file
1683 do
1684   if test -r "$ac_site_file"; then
1685     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1686 echo "$as_me: loading site script $ac_site_file" >&6;}
1687     sed 's/^/| /' "$ac_site_file" >&5
1688     . "$ac_site_file"
1689   fi
1690 done
1691
1692 if test -r "$cache_file"; then
1693   # Some versions of bash will fail to source /dev/null (special
1694   # files actually), so we avoid doing that.
1695   if test -f "$cache_file"; then
1696     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1697 echo "$as_me: loading cache $cache_file" >&6;}
1698     case $cache_file in
1699       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1700       *)                      . "./$cache_file";;
1701     esac
1702   fi
1703 else
1704   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1705 echo "$as_me: creating cache $cache_file" >&6;}
1706   >$cache_file
1707 fi
1708
1709 # Check that the precious variables saved in the cache have kept the same
1710 # value.
1711 ac_cache_corrupted=false
1712 for ac_var in $ac_precious_vars; do
1713   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1714   eval ac_new_set=\$ac_env_${ac_var}_set
1715   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1716   eval ac_new_val=\$ac_env_${ac_var}_value
1717   case $ac_old_set,$ac_new_set in
1718     set,)
1719       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1720 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1721       ac_cache_corrupted=: ;;
1722     ,set)
1723       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1724 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1725       ac_cache_corrupted=: ;;
1726     ,);;
1727     *)
1728       if test "x$ac_old_val" != "x$ac_new_val"; then
1729         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1730 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1731         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1732 echo "$as_me:   former value:  $ac_old_val" >&2;}
1733         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1734 echo "$as_me:   current value: $ac_new_val" >&2;}
1735         ac_cache_corrupted=:
1736       fi;;
1737   esac
1738   # Pass precious variables to config.status.
1739   if test "$ac_new_set" = set; then
1740     case $ac_new_val in
1741     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1742     *) ac_arg=$ac_var=$ac_new_val ;;
1743     esac
1744     case " $ac_configure_args " in
1745       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1746       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1747     esac
1748   fi
1749 done
1750 if $ac_cache_corrupted; then
1751   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1752 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1753   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1754 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1755    { (exit 1); exit 1; }; }
1756 fi
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782 ac_ext=c
1783 ac_cpp='$CPP $CPPFLAGS'
1784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787
1788
1789
1790 # we specify "foreign" to avoid having to have the GNU mandated files,
1791 # like AUTHORS, COPYING, and such
1792 am__api_version='1.10'
1793
1794 ac_aux_dir=
1795 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1796   if test -f "$ac_dir/install-sh"; then
1797     ac_aux_dir=$ac_dir
1798     ac_install_sh="$ac_aux_dir/install-sh -c"
1799     break
1800   elif test -f "$ac_dir/install.sh"; then
1801     ac_aux_dir=$ac_dir
1802     ac_install_sh="$ac_aux_dir/install.sh -c"
1803     break
1804   elif test -f "$ac_dir/shtool"; then
1805     ac_aux_dir=$ac_dir
1806     ac_install_sh="$ac_aux_dir/shtool install -c"
1807     break
1808   fi
1809 done
1810 if test -z "$ac_aux_dir"; then
1811   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1812 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1813    { (exit 1); exit 1; }; }
1814 fi
1815
1816 # These three variables are undocumented and unsupported,
1817 # and are intended to be withdrawn in a future Autoconf release.
1818 # They can cause serious problems if a builder's source tree is in a directory
1819 # whose full name contains unusual characters.
1820 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1821 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1822 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1823
1824
1825 # Find a good install program.  We prefer a C program (faster),
1826 # so one script is as good as another.  But avoid the broken or
1827 # incompatible versions:
1828 # SysV /etc/install, /usr/sbin/install
1829 # SunOS /usr/etc/install
1830 # IRIX /sbin/install
1831 # AIX /bin/install
1832 # AmigaOS /C/install, which installs bootblocks on floppy discs
1833 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1834 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1835 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1836 # OS/2's system install, which has a completely different semantic
1837 # ./install, which can be erroneously created by make from ./install.sh.
1838 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1839 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1840 if test -z "$INSTALL"; then
1841 if test "${ac_cv_path_install+set}" = set; then
1842   echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1846 do
1847   IFS=$as_save_IFS
1848   test -z "$as_dir" && as_dir=.
1849   # Account for people who put trailing slashes in PATH elements.
1850 case $as_dir/ in
1851   ./ | .// | /cC/* | \
1852   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1853   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1854   /usr/ucb/* ) ;;
1855   *)
1856     # OSF1 and SCO ODT 3.0 have their own names for install.
1857     # Don't use installbsd from OSF since it installs stuff as root
1858     # by default.
1859     for ac_prog in ginstall scoinst install; do
1860       for ac_exec_ext in '' $ac_executable_extensions; do
1861         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1862           if test $ac_prog = install &&
1863             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1864             # AIX install.  It has an incompatible calling convention.
1865             :
1866           elif test $ac_prog = install &&
1867             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1868             # program-specific install script used by HP pwplus--don't use.
1869             :
1870           else
1871             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1872             break 3
1873           fi
1874         fi
1875       done
1876     done
1877     ;;
1878 esac
1879 done
1880 IFS=$as_save_IFS
1881
1882
1883 fi
1884   if test "${ac_cv_path_install+set}" = set; then
1885     INSTALL=$ac_cv_path_install
1886   else
1887     # As a last resort, use the slow shell script.  Don't cache a
1888     # value for INSTALL within a source directory, because that will
1889     # break other packages using the cache if that directory is
1890     # removed, or if the value is a relative name.
1891     INSTALL=$ac_install_sh
1892   fi
1893 fi
1894 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1895 echo "${ECHO_T}$INSTALL" >&6; }
1896
1897 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1898 # It thinks the first close brace ends the variable substitution.
1899 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1900
1901 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1902
1903 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1904
1905 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1906 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1907 # Just in case
1908 sleep 1
1909 echo timestamp > conftest.file
1910 # Do `set' in a subshell so we don't clobber the current shell's
1911 # arguments.  Must try -L first in case configure is actually a
1912 # symlink; some systems play weird games with the mod time of symlinks
1913 # (eg FreeBSD returns the mod time of the symlink's containing
1914 # directory).
1915 if (
1916    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1917    if test "$*" = "X"; then
1918       # -L didn't work.
1919       set X `ls -t $srcdir/configure conftest.file`
1920    fi
1921    rm -f conftest.file
1922    if test "$*" != "X $srcdir/configure conftest.file" \
1923       && test "$*" != "X conftest.file $srcdir/configure"; then
1924
1925       # If neither matched, then we have a broken ls.  This can happen
1926       # if, for instance, CONFIG_SHELL is bash and it inherits a
1927       # broken ls alias from the environment.  This has actually
1928       # happened.  Such a system could not be considered "sane".
1929       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1930 alias in your environment" >&5
1931 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1932 alias in your environment" >&2;}
1933    { (exit 1); exit 1; }; }
1934    fi
1935
1936    test "$2" = conftest.file
1937    )
1938 then
1939    # Ok.
1940    :
1941 else
1942    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1943 Check your system clock" >&5
1944 echo "$as_me: error: newly created file is older than distributed files!
1945 Check your system clock" >&2;}
1946    { (exit 1); exit 1; }; }
1947 fi
1948 { echo "$as_me:$LINENO: result: yes" >&5
1949 echo "${ECHO_T}yes" >&6; }
1950 test "$program_prefix" != NONE &&
1951   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1952 # Use a double $ so make ignores it.
1953 test "$program_suffix" != NONE &&
1954   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1955 # Double any \ or $.  echo might interpret backslashes.
1956 # By default was `s,x,x', remove it if useless.
1957 cat <<\_ACEOF >conftest.sed
1958 s/[\\$]/&&/g;s/;s,x,x,$//
1959 _ACEOF
1960 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1961 rm -f conftest.sed
1962
1963 # expand $ac_aux_dir to an absolute path
1964 am_aux_dir=`cd $ac_aux_dir && pwd`
1965
1966 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1967 # Use eval to expand $SHELL
1968 if eval "$MISSING --run true"; then
1969   am_missing_run="$MISSING --run "
1970 else
1971   am_missing_run=
1972   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1973 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1974 fi
1975
1976 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1977 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1978 if test -z "$MKDIR_P"; then
1979   if test "${ac_cv_path_mkdir+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1984 do
1985   IFS=$as_save_IFS
1986   test -z "$as_dir" && as_dir=.
1987   for ac_prog in mkdir gmkdir; do
1988          for ac_exec_ext in '' $ac_executable_extensions; do
1989            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1990            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1991              'mkdir (GNU coreutils) '* | \
1992              'mkdir (coreutils) '* | \
1993              'mkdir (fileutils) '4.1*)
1994                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1995                break 3;;
1996            esac
1997          done
1998        done
1999 done
2000 IFS=$as_save_IFS
2001
2002 fi
2003
2004   if test "${ac_cv_path_mkdir+set}" = set; then
2005     MKDIR_P="$ac_cv_path_mkdir -p"
2006   else
2007     # As a last resort, use the slow shell script.  Don't cache a
2008     # value for MKDIR_P within a source directory, because that will
2009     # break other packages using the cache if that directory is
2010     # removed, or if the value is a relative name.
2011     test -d ./--version && rmdir ./--version
2012     MKDIR_P="$ac_install_sh -d"
2013   fi
2014 fi
2015 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2016 echo "${ECHO_T}$MKDIR_P" >&6; }
2017
2018 mkdir_p="$MKDIR_P"
2019 case $mkdir_p in
2020   [\\/$]* | ?:[\\/]*) ;;
2021   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2022 esac
2023
2024 for ac_prog in gawk mawk nawk awk
2025 do
2026   # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_AWK+set}" = set; then
2031   echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033   if test -n "$AWK"; then
2034   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2038 do
2039   IFS=$as_save_IFS
2040   test -z "$as_dir" && as_dir=.
2041   for ac_exec_ext in '' $ac_executable_extensions; do
2042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2043     ac_cv_prog_AWK="$ac_prog"
2044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045     break 2
2046   fi
2047 done
2048 done
2049 IFS=$as_save_IFS
2050
2051 fi
2052 fi
2053 AWK=$ac_cv_prog_AWK
2054 if test -n "$AWK"; then
2055   { echo "$as_me:$LINENO: result: $AWK" >&5
2056 echo "${ECHO_T}$AWK" >&6; }
2057 else
2058   { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2060 fi
2061
2062
2063   test -n "$AWK" && break
2064 done
2065
2066 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2067 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2068 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2069 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2070   echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072   cat >conftest.make <<\_ACEOF
2073 SHELL = /bin/sh
2074 all:
2075         @echo '@@@%%%=$(MAKE)=@@@%%%'
2076 _ACEOF
2077 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2078 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2079   *@@@%%%=?*=@@@%%%*)
2080     eval ac_cv_prog_make_${ac_make}_set=yes;;
2081   *)
2082     eval ac_cv_prog_make_${ac_make}_set=no;;
2083 esac
2084 rm -f conftest.make
2085 fi
2086 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2087   { echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6; }
2089   SET_MAKE=
2090 else
2091   { echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6; }
2093   SET_MAKE="MAKE=${MAKE-make}"
2094 fi
2095
2096 rm -rf .tst 2>/dev/null
2097 mkdir .tst 2>/dev/null
2098 if test -d .tst; then
2099   am__leading_dot=.
2100 else
2101   am__leading_dot=_
2102 fi
2103 rmdir .tst 2>/dev/null
2104
2105 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2106   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2107   # is not polluted with repeated "-I."
2108   am__isrc=' -I$(srcdir)'
2109   # test to see if srcdir already configured
2110   if test -f $srcdir/config.status; then
2111     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2112 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2113    { (exit 1); exit 1; }; }
2114   fi
2115 fi
2116
2117 # test whether we have cygpath
2118 if test -z "$CYGPATH_W"; then
2119   if (cygpath --version) >/dev/null 2>/dev/null; then
2120     CYGPATH_W='cygpath -w'
2121   else
2122     CYGPATH_W=echo
2123   fi
2124 fi
2125
2126
2127 # Define the identity of the package.
2128  PACKAGE='dhcp'
2129  VERSION='4.2.3-P2'
2130
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE "$PACKAGE"
2134 _ACEOF
2135
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define VERSION "$VERSION"
2139 _ACEOF
2140
2141 # Some tools Automake needs.
2142
2143 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2144
2145
2146 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2147
2148
2149 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2150
2151
2152 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2153
2154
2155 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2156
2157 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2158
2159 # Installed binaries are usually stripped using `strip' when the user
2160 # run `make install-strip'.  However `strip' might not be the right
2161 # tool to use in cross-compilation environments, therefore Automake
2162 # will honor the `STRIP' environment variable to overrule this program.
2163 if test "$cross_compiling" != no; then
2164   if test -n "$ac_tool_prefix"; then
2165   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2166 set dummy ${ac_tool_prefix}strip; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_STRIP+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   if test -n "$STRIP"; then
2173   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180   for ac_exec_ext in '' $ac_executable_extensions; do
2181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184     break 2
2185   fi
2186 done
2187 done
2188 IFS=$as_save_IFS
2189
2190 fi
2191 fi
2192 STRIP=$ac_cv_prog_STRIP
2193 if test -n "$STRIP"; then
2194   { echo "$as_me:$LINENO: result: $STRIP" >&5
2195 echo "${ECHO_T}$STRIP" >&6; }
2196 else
2197   { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2199 fi
2200
2201
2202 fi
2203 if test -z "$ac_cv_prog_STRIP"; then
2204   ac_ct_STRIP=$STRIP
2205   # Extract the first word of "strip", so it can be a program name with args.
2206 set dummy strip; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   if test -n "$ac_ct_STRIP"; then
2213   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218   IFS=$as_save_IFS
2219   test -z "$as_dir" && as_dir=.
2220   for ac_exec_ext in '' $ac_executable_extensions; do
2221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222     ac_cv_prog_ac_ct_STRIP="strip"
2223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224     break 2
2225   fi
2226 done
2227 done
2228 IFS=$as_save_IFS
2229
2230 fi
2231 fi
2232 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2233 if test -n "$ac_ct_STRIP"; then
2234   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2235 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2236 else
2237   { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2239 fi
2240
2241   if test "x$ac_ct_STRIP" = x; then
2242     STRIP=":"
2243   else
2244     case $cross_compiling:$ac_tool_warned in
2245 yes:)
2246 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2247 whose name does not start with the host triplet.  If you think this
2248 configuration is useful to you, please write to autoconf@gnu.org." >&5
2249 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2250 whose name does not start with the host triplet.  If you think this
2251 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2252 ac_tool_warned=yes ;;
2253 esac
2254     STRIP=$ac_ct_STRIP
2255   fi
2256 else
2257   STRIP="$ac_cv_prog_STRIP"
2258 fi
2259
2260 fi
2261 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2262
2263 # We need awk for the "check" target.  The system "awk" is bad on
2264 # some platforms.
2265 # Always define AMTAR for backward compatibility.
2266
2267 AMTAR=${AMTAR-"${am_missing_run}tar"}
2268
2269 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2270
2271
2272
2273
2274
2275
2276 # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
2277 # the configure and makefiles.  Without it users doing things that
2278 # change the timestamps on the code, like checking it into a cvs
2279 # tree, could trigger a rebuild of the infrastructure files which
2280 # might fail if they don't have the correct tools.
2281 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2282 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2283     # Check whether --enable-maintainer-mode was given.
2284 if test "${enable_maintainer_mode+set}" = set; then
2285   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2286 else
2287   USE_MAINTAINER_MODE=no
2288 fi
2289
2290   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2291 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2292    if test $USE_MAINTAINER_MODE = yes; then
2293   MAINTAINER_MODE_TRUE=
2294   MAINTAINER_MODE_FALSE='#'
2295 else
2296   MAINTAINER_MODE_TRUE='#'
2297   MAINTAINER_MODE_FALSE=
2298 fi
2299
2300   MAINT=$MAINTAINER_MODE_TRUE
2301
2302
2303
2304 # We want to turn on warnings if we are using gcc and the user did
2305 # not specify CFLAGS. The autoconf check for the C compiler sets the
2306 # CFLAGS if gcc is used, so we will save it before we run that check.
2307 SAVE_CFLAGS="$CFLAGS"
2308
2309 # Now find our C compiler.
2310 ac_ext=c
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315 if test -n "$ac_tool_prefix"; then
2316   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2317 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321   echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323   if test -n "$CC"; then
2324   ac_cv_prog_CC="$CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329   IFS=$as_save_IFS
2330   test -z "$as_dir" && as_dir=.
2331   for ac_exec_ext in '' $ac_executable_extensions; do
2332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335     break 2
2336   fi
2337 done
2338 done
2339 IFS=$as_save_IFS
2340
2341 fi
2342 fi
2343 CC=$ac_cv_prog_CC
2344 if test -n "$CC"; then
2345   { echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6; }
2347 else
2348   { echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6; }
2350 fi
2351
2352
2353 fi
2354 if test -z "$ac_cv_prog_CC"; then
2355   ac_ct_CC=$CC
2356   # Extract the first word of "gcc", so it can be a program name with args.
2357 set dummy gcc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   if test -n "$ac_ct_CC"; then
2364   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2365 else
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369   IFS=$as_save_IFS
2370   test -z "$as_dir" && as_dir=.
2371   for ac_exec_ext in '' $ac_executable_extensions; do
2372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373     ac_cv_prog_ac_ct_CC="gcc"
2374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375     break 2
2376   fi
2377 done
2378 done
2379 IFS=$as_save_IFS
2380
2381 fi
2382 fi
2383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2384 if test -n "$ac_ct_CC"; then
2385   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2386 echo "${ECHO_T}$ac_ct_CC" >&6; }
2387 else
2388   { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2390 fi
2391
2392   if test "x$ac_ct_CC" = x; then
2393     CC=""
2394   else
2395     case $cross_compiling:$ac_tool_warned in
2396 yes:)
2397 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2398 whose name does not start with the host triplet.  If you think this
2399 configuration is useful to you, please write to autoconf@gnu.org." >&5
2400 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2401 whose name does not start with the host triplet.  If you think this
2402 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2403 ac_tool_warned=yes ;;
2404 esac
2405     CC=$ac_ct_CC
2406   fi
2407 else
2408   CC="$ac_cv_prog_CC"
2409 fi
2410
2411 if test -z "$CC"; then
2412           if test -n "$ac_tool_prefix"; then
2413     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2414 set dummy ${ac_tool_prefix}cc; ac_word=$2
2415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2417 if test "${ac_cv_prog_CC+set}" = set; then
2418   echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420   if test -n "$CC"; then
2421   ac_cv_prog_CC="$CC" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426   IFS=$as_save_IFS
2427   test -z "$as_dir" && as_dir=.
2428   for ac_exec_ext in '' $ac_executable_extensions; do
2429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430     ac_cv_prog_CC="${ac_tool_prefix}cc"
2431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432     break 2
2433   fi
2434 done
2435 done
2436 IFS=$as_save_IFS
2437
2438 fi
2439 fi
2440 CC=$ac_cv_prog_CC
2441 if test -n "$CC"; then
2442   { echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6; }
2444 else
2445   { echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6; }
2447 fi
2448
2449
2450   fi
2451 fi
2452 if test -z "$CC"; then
2453   # Extract the first word of "cc", so it can be a program name with args.
2454 set dummy cc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   if test -n "$CC"; then
2461   ac_cv_prog_CC="$CC" # Let the user override the test.
2462 else
2463   ac_prog_rejected=no
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467   IFS=$as_save_IFS
2468   test -z "$as_dir" && as_dir=.
2469   for ac_exec_ext in '' $ac_executable_extensions; do
2470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2472        ac_prog_rejected=yes
2473        continue
2474      fi
2475     ac_cv_prog_CC="cc"
2476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477     break 2
2478   fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 if test $ac_prog_rejected = yes; then
2484   # We found a bogon in the path, so make sure we never use it.
2485   set dummy $ac_cv_prog_CC
2486   shift
2487   if test $# != 0; then
2488     # We chose a different compiler from the bogus one.
2489     # However, it has the same basename, so the bogon will be chosen
2490     # first if we set CC to just the basename; use the full file name.
2491     shift
2492     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2493   fi
2494 fi
2495 fi
2496 fi
2497 CC=$ac_cv_prog_CC
2498 if test -n "$CC"; then
2499   { echo "$as_me:$LINENO: result: $CC" >&5
2500 echo "${ECHO_T}$CC" >&6; }
2501 else
2502   { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2504 fi
2505
2506
2507 fi
2508 if test -z "$CC"; then
2509   if test -n "$ac_tool_prefix"; then
2510   for ac_prog in cl.exe
2511   do
2512     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_CC+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$CC"; then
2520   ac_cv_prog_CC="$CC" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 CC=$ac_cv_prog_CC
2540 if test -n "$CC"; then
2541   { echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6; }
2543 else
2544   { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2546 fi
2547
2548
2549     test -n "$CC" && break
2550   done
2551 fi
2552 if test -z "$CC"; then
2553   ac_ct_CC=$CC
2554   for ac_prog in cl.exe
2555 do
2556   # Extract the first word of "$ac_prog", so it can be a program name with args.
2557 set dummy $ac_prog; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   if test -n "$ac_ct_CC"; then
2564   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569   IFS=$as_save_IFS
2570   test -z "$as_dir" && as_dir=.
2571   for ac_exec_ext in '' $ac_executable_extensions; do
2572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573     ac_cv_prog_ac_ct_CC="$ac_prog"
2574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575     break 2
2576   fi
2577 done
2578 done
2579 IFS=$as_save_IFS
2580
2581 fi
2582 fi
2583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2584 if test -n "$ac_ct_CC"; then
2585   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2586 echo "${ECHO_T}$ac_ct_CC" >&6; }
2587 else
2588   { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2590 fi
2591
2592
2593   test -n "$ac_ct_CC" && break
2594 done
2595
2596   if test "x$ac_ct_CC" = x; then
2597     CC=""
2598   else
2599     case $cross_compiling:$ac_tool_warned in
2600 yes:)
2601 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2602 whose name does not start with the host triplet.  If you think this
2603 configuration is useful to you, please write to autoconf@gnu.org." >&5
2604 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2605 whose name does not start with the host triplet.  If you think this
2606 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2607 ac_tool_warned=yes ;;
2608 esac
2609     CC=$ac_ct_CC
2610   fi
2611 fi
2612
2613 fi
2614
2615
2616 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2617 See \`config.log' for more details." >&5
2618 echo "$as_me: error: no acceptable C compiler found in \$PATH
2619 See \`config.log' for more details." >&2;}
2620    { (exit 1); exit 1; }; }
2621
2622 # Provide some information about the compiler.
2623 echo "$as_me:$LINENO: checking for C compiler version" >&5
2624 ac_compiler=`set X $ac_compile; echo $2`
2625 { (ac_try="$ac_compiler --version >&5"
2626 case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631   (eval "$ac_compiler --version >&5") 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }
2635 { (ac_try="$ac_compiler -v >&5"
2636 case "(($ac_try" in
2637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638   *) ac_try_echo=$ac_try;;
2639 esac
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641   (eval "$ac_compiler -v >&5") 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); }
2645 { (ac_try="$ac_compiler -V >&5"
2646 case "(($ac_try" in
2647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648   *) ac_try_echo=$ac_try;;
2649 esac
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651   (eval "$ac_compiler -V >&5") 2>&5
2652   ac_status=$?
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); }
2655
2656 cat >conftest.$ac_ext <<_ACEOF
2657 /* confdefs.h.  */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h.  */
2662
2663 int
2664 main ()
2665 {
2666
2667   ;
2668   return 0;
2669 }
2670 _ACEOF
2671 ac_clean_files_save=$ac_clean_files
2672 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2673 # Try to create an executable without -o first, disregard a.out.
2674 # It will help us diagnose broken compilers, and finding out an intuition
2675 # of exeext.
2676 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2677 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2678 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2679 #
2680 # List of possible output files, starting from the most likely.
2681 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2682 # only as a last resort.  b.out is created by i960 compilers.
2683 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2684 #
2685 # The IRIX 6 linker writes into existing files which may not be
2686 # executable, retaining their permissions.  Remove them first so a
2687 # subsequent execution test works.
2688 ac_rmfiles=
2689 for ac_file in $ac_files
2690 do
2691   case $ac_file in
2692     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2693     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2694   esac
2695 done
2696 rm -f $ac_rmfiles
2697
2698 if { (ac_try="$ac_link_default"
2699 case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_link_default") 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; then
2708   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2709 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2710 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2711 # so that the user can short-circuit this test for compilers unknown to
2712 # Autoconf.
2713 for ac_file in $ac_files ''
2714 do
2715   test -f "$ac_file" || continue
2716   case $ac_file in
2717     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2718         ;;
2719     [ab].out )
2720         # We found the default executable, but exeext='' is most
2721         # certainly right.
2722         break;;
2723     *.* )
2724         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2725         then :; else
2726            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2727         fi
2728         # We set ac_cv_exeext here because the later test for it is not
2729         # safe: cross compilers may not add the suffix if given an `-o'
2730         # argument, so we may need to know it at that point already.
2731         # Even if this section looks crufty: it has the advantage of
2732         # actually working.
2733         break;;
2734     * )
2735         break;;
2736   esac
2737 done
2738 test "$ac_cv_exeext" = no && ac_cv_exeext=
2739
2740 else
2741   ac_file=''
2742 fi
2743
2744 { echo "$as_me:$LINENO: result: $ac_file" >&5
2745 echo "${ECHO_T}$ac_file" >&6; }
2746 if test -z "$ac_file"; then
2747   echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2751 See \`config.log' for more details." >&5
2752 echo "$as_me: error: C compiler cannot create executables
2753 See \`config.log' for more details." >&2;}
2754    { (exit 77); exit 77; }; }
2755 fi
2756
2757 ac_exeext=$ac_cv_exeext
2758
2759 # Check that the compiler produces executables we can run.  If not, either
2760 # the compiler is broken, or we cross compile.
2761 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2762 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2763 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2764 # If not cross compiling, check that we can run a simple program.
2765 if test "$cross_compiling" != yes; then
2766   if { ac_try='./$ac_file'
2767   { (case "(($ac_try" in
2768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769   *) ac_try_echo=$ac_try;;
2770 esac
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772   (eval "$ac_try") 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }; }; then
2776     cross_compiling=no
2777   else
2778     if test "$cross_compiling" = maybe; then
2779         cross_compiling=yes
2780     else
2781         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2782 If you meant to cross compile, use \`--host'.
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: cannot run C compiled programs.
2785 If you meant to cross compile, use \`--host'.
2786 See \`config.log' for more details." >&2;}
2787    { (exit 1); exit 1; }; }
2788     fi
2789   fi
2790 fi
2791 { echo "$as_me:$LINENO: result: yes" >&5
2792 echo "${ECHO_T}yes" >&6; }
2793
2794 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2795 ac_clean_files=$ac_clean_files_save
2796 # Check that the compiler produces executables we can run.  If not, either
2797 # the compiler is broken, or we cross compile.
2798 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2799 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2800 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2801 echo "${ECHO_T}$cross_compiling" >&6; }
2802
2803 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2804 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2805 if { (ac_try="$ac_link"
2806 case "(($ac_try" in
2807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808   *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811   (eval "$ac_link") 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; then
2815   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2816 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2817 # work properly (i.e., refer to `conftest.exe'), while it won't with
2818 # `rm'.
2819 for ac_file in conftest.exe conftest conftest.*; do
2820   test -f "$ac_file" || continue
2821   case $ac_file in
2822     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2823     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2824           break;;
2825     * ) break;;
2826   esac
2827 done
2828 else
2829   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2830 See \`config.log' for more details." >&5
2831 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2832 See \`config.log' for more details." >&2;}
2833    { (exit 1); exit 1; }; }
2834 fi
2835
2836 rm -f conftest$ac_cv_exeext
2837 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2838 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2839
2840 rm -f conftest.$ac_ext
2841 EXEEXT=$ac_cv_exeext
2842 ac_exeext=$EXEEXT
2843 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2844 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2845 if test "${ac_cv_objext+set}" = set; then
2846   echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848   cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h.  */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h.  */
2854
2855 int
2856 main ()
2857 {
2858
2859   ;
2860   return 0;
2861 }
2862 _ACEOF
2863 rm -f conftest.o conftest.obj
2864 if { (ac_try="$ac_compile"
2865 case "(($ac_try" in
2866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867   *) ac_try_echo=$ac_try;;
2868 esac
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870   (eval "$ac_compile") 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; then
2874   for ac_file in conftest.o conftest.obj conftest.*; do
2875   test -f "$ac_file" || continue;
2876   case $ac_file in
2877     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2878     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2879        break;;
2880   esac
2881 done
2882 else
2883   echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2885
2886 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2887 See \`config.log' for more details." >&5
2888 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2889 See \`config.log' for more details." >&2;}
2890    { (exit 1); exit 1; }; }
2891 fi
2892
2893 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2894 fi
2895 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2896 echo "${ECHO_T}$ac_cv_objext" >&6; }
2897 OBJEXT=$ac_cv_objext
2898 ac_objext=$OBJEXT
2899 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2900 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2901 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2902   echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904   cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910
2911 int
2912 main ()
2913 {
2914 #ifndef __GNUC__
2915        choke me
2916 #endif
2917
2918   ;
2919   return 0;
2920 }
2921 _ACEOF
2922 rm -f conftest.$ac_objext
2923 if { (ac_try="$ac_compile"
2924 case "(($ac_try" in
2925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926   *) ac_try_echo=$ac_try;;
2927 esac
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929   (eval "$ac_compile") 2>conftest.er1
2930   ac_status=$?
2931   grep -v '^ *+' conftest.er1 >conftest.err
2932   rm -f conftest.er1
2933   cat conftest.err >&5
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); } && {
2936          test -z "$ac_c_werror_flag" ||
2937          test ! -s conftest.err
2938        } && test -s conftest.$ac_objext; then
2939   ac_compiler_gnu=yes
2940 else
2941   echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2943
2944         ac_compiler_gnu=no
2945 fi
2946
2947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2949
2950 fi
2951 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2952 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2953 GCC=`test $ac_compiler_gnu = yes && echo yes`
2954 ac_test_CFLAGS=${CFLAGS+set}
2955 ac_save_CFLAGS=$CFLAGS
2956 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2957 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2958 if test "${ac_cv_prog_cc_g+set}" = set; then
2959   echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961   ac_save_c_werror_flag=$ac_c_werror_flag
2962    ac_c_werror_flag=yes
2963    ac_cv_prog_cc_g=no
2964    CFLAGS="-g"
2965    cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h.  */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h.  */
2971
2972 int
2973 main ()
2974 {
2975
2976   ;
2977   return 0;
2978 }
2979 _ACEOF
2980 rm -f conftest.$ac_objext
2981 if { (ac_try="$ac_compile"
2982 case "(($ac_try" in
2983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984   *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987   (eval "$ac_compile") 2>conftest.er1
2988   ac_status=$?
2989   grep -v '^ *+' conftest.er1 >conftest.err
2990   rm -f conftest.er1
2991   cat conftest.err >&5
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); } && {
2994          test -z "$ac_c_werror_flag" ||
2995          test ! -s conftest.err
2996        } && test -s conftest.$ac_objext; then
2997   ac_cv_prog_cc_g=yes
2998 else
2999   echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002         CFLAGS=""
3003       cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009
3010 int
3011 main ()
3012 {
3013
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3020 case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_compile") 2>conftest.er1
3026   ac_status=$?
3027   grep -v '^ *+' conftest.er1 >conftest.err
3028   rm -f conftest.er1
3029   cat conftest.err >&5
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } && {
3032          test -z "$ac_c_werror_flag" ||
3033          test ! -s conftest.err
3034        } && test -s conftest.$ac_objext; then
3035   :
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040         ac_c_werror_flag=$ac_save_c_werror_flag
3041          CFLAGS="-g"
3042          cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h.  */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h.  */
3048
3049 int
3050 main ()
3051 {
3052
3053   ;
3054   return 0;
3055 }
3056 _ACEOF
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3059 case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_compile") 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } && {
3071          test -z "$ac_c_werror_flag" ||
3072          test ! -s conftest.err
3073        } && test -s conftest.$ac_objext; then
3074   ac_cv_prog_cc_g=yes
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079
3080 fi
3081
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 fi
3084
3085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 fi
3087
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089    ac_c_werror_flag=$ac_save_c_werror_flag
3090 fi
3091 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3092 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3093 if test "$ac_test_CFLAGS" = set; then
3094   CFLAGS=$ac_save_CFLAGS
3095 elif test $ac_cv_prog_cc_g = yes; then
3096   if test "$GCC" = yes; then
3097     CFLAGS="-g -O2"
3098   else
3099     CFLAGS="-g"
3100   fi
3101 else
3102   if test "$GCC" = yes; then
3103     CFLAGS="-O2"
3104   else
3105     CFLAGS=
3106   fi
3107 fi
3108 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3109 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3110 if test "${ac_cv_prog_cc_c89+set}" = set; then
3111   echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113   ac_cv_prog_cc_c89=no
3114 ac_save_CC=$CC
3115 cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h.  */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h.  */
3121 #include <stdarg.h>
3122 #include <stdio.h>
3123 #include <sys/types.h>
3124 #include <sys/stat.h>
3125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3126 struct buf { int x; };
3127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3128 static char *e (p, i)
3129      char **p;
3130      int i;
3131 {
3132   return p[i];
3133 }
3134 static char *f (char * (*g) (char **, int), char **p, ...)
3135 {
3136   char *s;
3137   va_list v;
3138   va_start (v,p);
3139   s = g (p, va_arg (v,int));
3140   va_end (v);
3141   return s;
3142 }
3143
3144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3145    function prototypes and stuff, but not '\xHH' hex character constants.
3146    These don't provoke an error unfortunately, instead are silently treated
3147    as 'x'.  The following induces an error, until -std is added to get
3148    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3149    array size at least.  It's necessary to write '\x00'==0 to get something
3150    that's true only with -std.  */
3151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3152
3153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3154    inside strings and character constants.  */
3155 #define FOO(x) 'x'
3156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3157
3158 int test (int i, double x);
3159 struct s1 {int (*f) (int a);};
3160 struct s2 {int (*f) (double a);};
3161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3162 int argc;
3163 char **argv;
3164 int
3165 main ()
3166 {
3167 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3173         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3174 do
3175   CC="$ac_save_CC $ac_arg"
3176   rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } && {
3190          test -z "$ac_c_werror_flag" ||
3191          test ! -s conftest.err
3192        } && test -s conftest.$ac_objext; then
3193   ac_cv_prog_cc_c89=$ac_arg
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext
3202   test "x$ac_cv_prog_cc_c89" != "xno" && break
3203 done
3204 rm -f conftest.$ac_ext
3205 CC=$ac_save_CC
3206
3207 fi
3208 # AC_CACHE_VAL
3209 case "x$ac_cv_prog_cc_c89" in
3210   x)
3211     { echo "$as_me:$LINENO: result: none needed" >&5
3212 echo "${ECHO_T}none needed" >&6; } ;;
3213   xno)
3214     { echo "$as_me:$LINENO: result: unsupported" >&5
3215 echo "${ECHO_T}unsupported" >&6; } ;;
3216   *)
3217     CC="$CC $ac_cv_prog_cc_c89"
3218     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3219 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3220 esac
3221
3222
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 DEPDIR="${am__leading_dot}deps"
3229
3230 ac_config_commands="$ac_config_commands depfiles"
3231
3232
3233 am_make=${MAKE-make}
3234 cat > confinc << 'END'
3235 am__doit:
3236         @echo done
3237 .PHONY: am__doit
3238 END
3239 # If we don't find an include directive, just comment out the code.
3240 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3241 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3242 am__include="#"
3243 am__quote=
3244 _am_result=none
3245 # First try GNU make style include.
3246 echo "include confinc" > confmf
3247 # We grep out `Entering directory' and `Leaving directory'
3248 # messages which can occur if `w' ends up in MAKEFLAGS.
3249 # In particular we don't look at `^make:' because GNU make might
3250 # be invoked under some other name (usually "gmake"), in which
3251 # case it prints its new name instead of `make'.
3252 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3253    am__include=include
3254    am__quote=
3255    _am_result=GNU
3256 fi
3257 # Now try BSD make style include.
3258 if test "$am__include" = "#"; then
3259    echo '.include "confinc"' > confmf
3260    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3261       am__include=.include
3262       am__quote="\""
3263       _am_result=BSD
3264    fi
3265 fi
3266
3267
3268 { echo "$as_me:$LINENO: result: $_am_result" >&5
3269 echo "${ECHO_T}$_am_result" >&6; }
3270 rm -f confinc confmf
3271
3272 # Check whether --enable-dependency-tracking was given.
3273 if test "${enable_dependency_tracking+set}" = set; then
3274   enableval=$enable_dependency_tracking;
3275 fi
3276
3277 if test "x$enable_dependency_tracking" != xno; then
3278   am_depcomp="$ac_aux_dir/depcomp"
3279   AMDEPBACKSLASH='\'
3280 fi
3281  if test "x$enable_dependency_tracking" != xno; then
3282   AMDEP_TRUE=
3283   AMDEP_FALSE='#'
3284 else
3285   AMDEP_TRUE='#'
3286   AMDEP_FALSE=
3287 fi
3288
3289
3290
3291 depcc="$CC"   am_compiler_list=
3292
3293 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3294 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3295 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3296   echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3299   # We make a subdir and do the tests there.  Otherwise we can end up
3300   # making bogus files that we don't know about and never remove.  For
3301   # instance it was reported that on HP-UX the gcc test will end up
3302   # making a dummy file named `D' -- because `-MD' means `put the output
3303   # in D'.
3304   mkdir conftest.dir
3305   # Copy depcomp to subdir because otherwise we won't find it if we're
3306   # using a relative directory.
3307   cp "$am_depcomp" conftest.dir
3308   cd conftest.dir
3309   # We will build objects and dependencies in a subdirectory because
3310   # it helps to detect inapplicable dependency modes.  For instance
3311   # both Tru64's cc and ICC support -MD to output dependencies as a
3312   # side effect of compilation, but ICC will put the dependencies in
3313   # the current directory while Tru64 will put them in the object
3314   # directory.
3315   mkdir sub
3316
3317   am_cv_CC_dependencies_compiler_type=none
3318   if test "$am_compiler_list" = ""; then
3319      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3320   fi
3321   for depmode in $am_compiler_list; do
3322     # Setup a source with many dependencies, because some compilers
3323     # like to wrap large dependency lists on column 80 (with \), and
3324     # we should not choose a depcomp mode which is confused by this.
3325     #
3326     # We need to recreate these files for each test, as the compiler may
3327     # overwrite some of them when testing with obscure command lines.
3328     # This happens at least with the AIX C compiler.
3329     : > sub/conftest.c
3330     for i in 1 2 3 4 5 6; do
3331       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3332       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3333       # Solaris 8's {/usr,}/bin/sh.
3334       touch sub/conftst$i.h
3335     done
3336     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3337
3338     case $depmode in
3339     nosideeffect)
3340       # after this tag, mechanisms are not by side-effect, so they'll
3341       # only be used when explicitly requested
3342       if test "x$enable_dependency_tracking" = xyes; then
3343         continue
3344       else
3345         break
3346       fi
3347       ;;
3348     none) break ;;
3349     esac
3350     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3351     # mode.  It turns out that the SunPro C++ compiler does not properly
3352     # handle `-M -o', and we need to detect this.
3353     if depmode=$depmode \
3354        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3355        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3356        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3357          >/dev/null 2>conftest.err &&
3358        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3359        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3360        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3361        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3362       # icc doesn't choke on unknown options, it will just issue warnings
3363       # or remarks (even with -Werror).  So we grep stderr for any message
3364       # that says an option was ignored or not supported.
3365       # When given -MP, icc 7.0 and 7.1 complain thusly:
3366       #   icc: Command line warning: ignoring option '-M'; no argument required
3367       # The diagnosis changed in icc 8.0:
3368       #   icc: Command line remark: option '-MP' not supported
3369       if (grep 'ignoring option' conftest.err ||
3370           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3371         am_cv_CC_dependencies_compiler_type=$depmode
3372         break
3373       fi
3374     fi
3375   done
3376
3377   cd ..
3378   rm -rf conftest.dir
3379 else
3380   am_cv_CC_dependencies_compiler_type=none
3381 fi
3382
3383 fi
3384 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3385 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3386 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3387
3388  if
3389   test "x$enable_dependency_tracking" != xno \
3390   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3391   am__fastdepCC_TRUE=
3392   am__fastdepCC_FALSE='#'
3393 else
3394   am__fastdepCC_TRUE='#'
3395   am__fastdepCC_FALSE=
3396 fi
3397
3398
3399
3400 # Suppress warnings about --datarootdir
3401
3402
3403 # If we have gcc, and AC_PROG_CC changed the flags, then we know the
3404 # user did not specify any flags. Add warnings in this case.
3405 if test "$GCC" = "yes"; then
3406         if test "$CFLAGS" != "$SAVE_CFLAGS"; then
3407                 STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
3408         fi
3409 fi
3410
3411 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
3412 # parts of the IPv6 Advanced Socket API as a result.  This is stupid
3413 # as it breaks how the two halves (Basic and Advanced) of the IPv6
3414 # Socket API were designed to be used but we have to live with it.
3415 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
3416
3417 cat >>confdefs.h <<\_ACEOF
3418 #define _GNU_SOURCE 1
3419 _ACEOF
3420
3421
3422
3423 ac_ext=c
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3429 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3430 # On Suns, sometimes $CPP names a directory.
3431 if test -n "$CPP" && test -d "$CPP"; then
3432   CPP=
3433 fi
3434 if test -z "$CPP"; then
3435   if test "${ac_cv_prog_CPP+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438       # Double quotes because CPP needs to be expanded
3439     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3440     do
3441       ac_preproc_ok=false
3442 for ac_c_preproc_warn_flag in '' yes
3443 do
3444   # Use a header file that comes with gcc, so configuring glibc
3445   # with a fresh cross-compiler works.
3446   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447   # <limits.h> exists even on freestanding compilers.
3448   # On the NeXT, cc -E runs the code through the compiler's parser,
3449   # not just through cpp. "Syntax error" is here to catch this case.
3450   cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h.  */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h.  */
3456 #ifdef __STDC__
3457 # include <limits.h>
3458 #else
3459 # include <assert.h>
3460 #endif
3461                      Syntax error
3462 _ACEOF
3463 if { (ac_try="$ac_cpp conftest.$ac_ext"
3464 case "(($ac_try" in
3465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466   *) ac_try_echo=$ac_try;;
3467 esac
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3470   ac_status=$?
3471   grep -v '^ *+' conftest.er1 >conftest.err
3472   rm -f conftest.er1
3473   cat conftest.err >&5
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); } >/dev/null && {
3476          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3477          test ! -s conftest.err
3478        }; then
3479   :
3480 else
3481   echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484   # Broken: fails on valid input.
3485 continue
3486 fi
3487
3488 rm -f conftest.err conftest.$ac_ext
3489
3490   # OK, works on sane cases.  Now check whether nonexistent headers
3491   # can be detected and how.
3492   cat >conftest.$ac_ext <<_ACEOF
3493 /* confdefs.h.  */
3494 _ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h.  */
3498 #include <ac_nonexistent.h>
3499 _ACEOF
3500 if { (ac_try="$ac_cpp conftest.$ac_ext"
3501 case "(($ac_try" in
3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503   *) ac_try_echo=$ac_try;;
3504 esac
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3507   ac_status=$?
3508   grep -v '^ *+' conftest.er1 >conftest.err
3509   rm -f conftest.er1
3510   cat conftest.err >&5
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } >/dev/null && {
3513          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3514          test ! -s conftest.err
3515        }; then
3516   # Broken: success on invalid input.
3517 continue
3518 else
3519   echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3521
3522   # Passes both tests.
3523 ac_preproc_ok=:
3524 break
3525 fi
3526
3527 rm -f conftest.err conftest.$ac_ext
3528
3529 done
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then
3533   break
3534 fi
3535
3536     done
3537     ac_cv_prog_CPP=$CPP
3538
3539 fi
3540   CPP=$ac_cv_prog_CPP
3541 else
3542   ac_cv_prog_CPP=$CPP
3543 fi
3544 { echo "$as_me:$LINENO: result: $CPP" >&5
3545 echo "${ECHO_T}$CPP" >&6; }
3546 ac_preproc_ok=false
3547 for ac_c_preproc_warn_flag in '' yes
3548 do
3549   # Use a header file that comes with gcc, so configuring glibc
3550   # with a fresh cross-compiler works.
3551   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3552   # <limits.h> exists even on freestanding compilers.
3553   # On the NeXT, cc -E runs the code through the compiler's parser,
3554   # not just through cpp. "Syntax error" is here to catch this case.
3555   cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h.  */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h.  */
3561 #ifdef __STDC__
3562 # include <limits.h>
3563 #else
3564 # include <assert.h>
3565 #endif
3566                      Syntax error
3567 _ACEOF
3568 if { (ac_try="$ac_cpp conftest.$ac_ext"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3575   ac_status=$?
3576   grep -v '^ *+' conftest.er1 >conftest.err
3577   rm -f conftest.er1
3578   cat conftest.err >&5
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); } >/dev/null && {
3581          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3582          test ! -s conftest.err
3583        }; then
3584   :
3585 else
3586   echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3588
3589   # Broken: fails on valid input.
3590 continue
3591 fi
3592
3593 rm -f conftest.err conftest.$ac_ext
3594
3595   # OK, works on sane cases.  Now check whether nonexistent headers
3596   # can be detected and how.
3597   cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h.  */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h.  */
3603 #include <ac_nonexistent.h>
3604 _ACEOF
3605 if { (ac_try="$ac_cpp conftest.$ac_ext"
3606 case "(($ac_try" in
3607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608   *) ac_try_echo=$ac_try;;
3609 esac
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3612   ac_status=$?
3613   grep -v '^ *+' conftest.er1 >conftest.err
3614   rm -f conftest.er1
3615   cat conftest.err >&5
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); } >/dev/null && {
3618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3619          test ! -s conftest.err
3620        }; then
3621   # Broken: success on invalid input.
3622 continue
3623 else
3624   echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627   # Passes both tests.
3628 ac_preproc_ok=:
3629 break
3630 fi
3631
3632 rm -f conftest.err conftest.$ac_ext
3633
3634 done
3635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3636 rm -f conftest.err conftest.$ac_ext
3637 if $ac_preproc_ok; then
3638   :
3639 else
3640   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3641 See \`config.log' for more details." >&5
3642 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3643 See \`config.log' for more details." >&2;}
3644    { (exit 1); exit 1; }; }
3645 fi
3646
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652
3653
3654 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3655 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3656 if test "${ac_cv_path_GREP+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   # Extract the first word of "grep ggrep" to use in msg output
3660 if test -z "$GREP"; then
3661 set dummy grep ggrep; ac_prog_name=$2
3662 if test "${ac_cv_path_GREP+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   ac_path_GREP_found=false
3666 # Loop through the user's path and test for each of PROGNAME-LIST
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3669 do
3670   IFS=$as_save_IFS
3671   test -z "$as_dir" && as_dir=.
3672   for ac_prog in grep ggrep; do
3673   for ac_exec_ext in '' $ac_executable_extensions; do
3674     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3675     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3676     # Check for GNU ac_path_GREP and select it if it is found.
3677   # Check for GNU $ac_path_GREP
3678 case `"$ac_path_GREP" --version 2>&1` in
3679 *GNU*)
3680   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3681 *)
3682   ac_count=0
3683   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3684   while :
3685   do
3686     cat "conftest.in" "conftest.in" >"conftest.tmp"
3687     mv "conftest.tmp" "conftest.in"
3688     cp "conftest.in" "conftest.nl"
3689     echo 'GREP' >> "conftest.nl"
3690     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3691     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3692     ac_count=`expr $ac_count + 1`
3693     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3694       # Best one so far, save it but keep looking for a better one
3695       ac_cv_path_GREP="$ac_path_GREP"
3696       ac_path_GREP_max=$ac_count
3697     fi
3698     # 10*(2^10) chars as input seems more than enough
3699     test $ac_count -gt 10 && break
3700   done
3701   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3702 esac
3703
3704
3705     $ac_path_GREP_found && break 3
3706   done
3707 done
3708
3709 done
3710 IFS=$as_save_IFS
3711
3712
3713 fi
3714
3715 GREP="$ac_cv_path_GREP"
3716 if test -z "$GREP"; then
3717   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3718 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3719    { (exit 1); exit 1; }; }
3720 fi
3721
3722 else
3723   ac_cv_path_GREP=$GREP
3724 fi
3725
3726
3727 fi
3728 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3729 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3730  GREP="$ac_cv_path_GREP"
3731
3732
3733 { echo "$as_me:$LINENO: checking for egrep" >&5
3734 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3735 if test "${ac_cv_path_EGREP+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3739    then ac_cv_path_EGREP="$GREP -E"
3740    else
3741      # Extract the first word of "egrep" to use in msg output
3742 if test -z "$EGREP"; then
3743 set dummy egrep; ac_prog_name=$2
3744 if test "${ac_cv_path_EGREP+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   ac_path_EGREP_found=false
3748 # Loop through the user's path and test for each of PROGNAME-LIST
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3751 do
3752   IFS=$as_save_IFS
3753   test -z "$as_dir" && as_dir=.
3754   for ac_prog in egrep; do
3755   for ac_exec_ext in '' $ac_executable_extensions; do
3756     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3757     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3758     # Check for GNU ac_path_EGREP and select it if it is found.
3759   # Check for GNU $ac_path_EGREP
3760 case `"$ac_path_EGREP" --version 2>&1` in
3761 *GNU*)
3762   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3763 *)
3764   ac_count=0
3765   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3766   while :
3767   do
3768     cat "conftest.in" "conftest.in" >"conftest.tmp"
3769     mv "conftest.tmp" "conftest.in"
3770     cp "conftest.in" "conftest.nl"
3771     echo 'EGREP' >> "conftest.nl"
3772     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3773     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3774     ac_count=`expr $ac_count + 1`
3775     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3776       # Best one so far, save it but keep looking for a better one
3777       ac_cv_path_EGREP="$ac_path_EGREP"
3778       ac_path_EGREP_max=$ac_count
3779     fi
3780     # 10*(2^10) chars as input seems more than enough
3781     test $ac_count -gt 10 && break
3782   done
3783   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3784 esac
3785
3786
3787     $ac_path_EGREP_found && break 3
3788   done
3789 done
3790
3791 done
3792 IFS=$as_save_IFS
3793
3794
3795 fi
3796
3797 EGREP="$ac_cv_path_EGREP"
3798 if test -z "$EGREP"; then
3799   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3800 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3801    { (exit 1); exit 1; }; }
3802 fi
3803
3804 else
3805   ac_cv_path_EGREP=$EGREP
3806 fi
3807
3808
3809    fi
3810 fi
3811 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3812 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3813  EGREP="$ac_cv_path_EGREP"
3814
3815
3816
3817 { echo "$as_me:$LINENO: checking for AIX" >&5
3818 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h.  */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h.  */
3825 #ifdef _AIX
3826   yes
3827 #endif
3828
3829 _ACEOF
3830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3831   $EGREP "yes" >/dev/null 2>&1; then
3832   { echo "$as_me:$LINENO: result: yes" >&5
3833 echo "${ECHO_T}yes" >&6; }
3834 cat >>confdefs.h <<\_ACEOF
3835 #define _ALL_SOURCE 1
3836 _ACEOF
3837
3838 else
3839   { echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6; }
3841 fi
3842 rm -f conftest*
3843
3844
3845 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3846 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3847 if test "${ac_cv_header_stdc+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h.  */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h.  */
3856 #include <stdlib.h>
3857 #include <stdarg.h>
3858 #include <string.h>
3859 #include <float.h>
3860
3861 int
3862 main ()
3863 {
3864
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 rm -f conftest.$ac_objext
3870 if { (ac_try="$ac_compile"
3871 case "(($ac_try" in
3872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873   *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876   (eval "$ac_compile") 2>conftest.er1
3877   ac_status=$?
3878   grep -v '^ *+' conftest.er1 >conftest.err
3879   rm -f conftest.er1
3880   cat conftest.err >&5
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); } && {
3883          test -z "$ac_c_werror_flag" ||
3884          test ! -s conftest.err
3885        } && test -s conftest.$ac_objext; then
3886   ac_cv_header_stdc=yes
3887 else
3888   echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891         ac_cv_header_stdc=no
3892 fi
3893
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895
3896 if test $ac_cv_header_stdc = yes; then
3897   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3898   cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h.  */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h.  */
3904 #include <string.h>
3905
3906 _ACEOF
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908   $EGREP "memchr" >/dev/null 2>&1; then
3909   :
3910 else
3911   ac_cv_header_stdc=no
3912 fi
3913 rm -f conftest*
3914
3915 fi
3916
3917 if test $ac_cv_header_stdc = yes; then
3918   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3919   cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h.  */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h.  */
3925 #include <stdlib.h>
3926
3927 _ACEOF
3928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3929   $EGREP "free" >/dev/null 2>&1; then
3930   :
3931 else
3932   ac_cv_header_stdc=no
3933 fi
3934 rm -f conftest*
3935
3936 fi
3937
3938 if test $ac_cv_header_stdc = yes; then
3939   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3940   if test "$cross_compiling" = yes; then
3941   :
3942 else
3943   cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 #include <ctype.h>
3950 #include <stdlib.h>
3951 #if ((' ' & 0x0FF) == 0x020)
3952 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3953 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3954 #else
3955 # define ISLOWER(c) \
3956                    (('a' <= (c) && (c) <= 'i') \
3957                      || ('j' <= (c) && (c) <= 'r') \
3958                      || ('s' <= (c) && (c) <= 'z'))
3959 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3960 #endif
3961
3962 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3963 int
3964 main ()
3965 {
3966   int i;
3967   for (i = 0; i < 256; i++)
3968     if (XOR (islower (i), ISLOWER (i))
3969         || toupper (i) != TOUPPER (i))
3970       return 2;
3971   return 0;
3972 }
3973 _ACEOF
3974 rm -f conftest$ac_exeext
3975 if { (ac_try="$ac_link"
3976 case "(($ac_try" in
3977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978   *) ac_try_echo=$ac_try;;
3979 esac
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981   (eval "$ac_link") 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3985   { (case "(($ac_try" in
3986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987   *) ac_try_echo=$ac_try;;
3988 esac
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990   (eval "$ac_try") 2>&5
3991   ac_status=$?
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); }; }; then
3994   :
3995 else
3996   echo "$as_me: program exited with status $ac_status" >&5
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
3999
4000 ( exit $ac_status )
4001 ac_cv_header_stdc=no
4002 fi
4003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4004 fi
4005
4006
4007 fi
4008 fi
4009 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4010 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4011 if test $ac_cv_header_stdc = yes; then
4012
4013 cat >>confdefs.h <<\_ACEOF
4014 #define STDC_HEADERS 1
4015 _ACEOF
4016
4017 fi
4018
4019 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4030                   inttypes.h stdint.h unistd.h
4031 do
4032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h.  */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h.  */
4044 $ac_includes_default
4045
4046 #include <$ac_header>
4047 _ACEOF
4048 rm -f conftest.$ac_objext
4049 if { (ac_try="$ac_compile"
4050 case "(($ac_try" in
4051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052   *) ac_try_echo=$ac_try;;
4053 esac
4054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055   (eval "$ac_compile") 2>conftest.er1
4056   ac_status=$?
4057   grep -v '^ *+' conftest.er1 >conftest.err
4058   rm -f conftest.er1
4059   cat conftest.err >&5
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); } && {
4062          test -z "$ac_c_werror_flag" ||
4063          test ! -s conftest.err
4064        } && test -s conftest.$ac_objext; then
4065   eval "$as_ac_Header=yes"
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070         eval "$as_ac_Header=no"
4071 fi
4072
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 fi
4075 ac_res=`eval echo '${'$as_ac_Header'}'`
4076                { echo "$as_me:$LINENO: result: $ac_res" >&5
4077 echo "${ECHO_T}$ac_res" >&6; }
4078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4079   cat >>confdefs.h <<_ACEOF
4080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4081 _ACEOF
4082
4083 fi
4084
4085 done
4086
4087
4088 if test "${ac_cv_header_minix_config_h+set}" = set; then
4089   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4090 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4091 if test "${ac_cv_header_minix_config_h+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 fi
4094 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4095 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4096 else
4097   # Is the header compilable?
4098 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4099 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4100 cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h.  */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h.  */
4106 $ac_includes_default
4107 #include <minix/config.h>
4108 _ACEOF
4109 rm -f conftest.$ac_objext
4110 if { (ac_try="$ac_compile"
4111 case "(($ac_try" in
4112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113   *) ac_try_echo=$ac_try;;
4114 esac
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116   (eval "$ac_compile") 2>conftest.er1
4117   ac_status=$?
4118   grep -v '^ *+' conftest.er1 >conftest.err
4119   rm -f conftest.er1
4120   cat conftest.err >&5
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); } && {
4123          test -z "$ac_c_werror_flag" ||
4124          test ! -s conftest.err
4125        } && test -s conftest.$ac_objext; then
4126   ac_header_compiler=yes
4127 else
4128   echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131         ac_header_compiler=no
4132 fi
4133
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4136 echo "${ECHO_T}$ac_header_compiler" >&6; }
4137
4138 # Is the header present?
4139 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4140 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h.  */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h.  */
4147 #include <minix/config.h>
4148 _ACEOF
4149 if { (ac_try="$ac_cpp conftest.$ac_ext"
4150 case "(($ac_try" in
4151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152   *) ac_try_echo=$ac_try;;
4153 esac
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4156   ac_status=$?
4157   grep -v '^ *+' conftest.er1 >conftest.err
4158   rm -f conftest.er1
4159   cat conftest.err >&5
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); } >/dev/null && {
4162          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4163          test ! -s conftest.err
4164        }; then
4165   ac_header_preproc=yes
4166 else
4167   echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170   ac_header_preproc=no
4171 fi
4172
4173 rm -f conftest.err conftest.$ac_ext
4174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4175 echo "${ECHO_T}$ac_header_preproc" >&6; }
4176
4177 # So?  What about this header?
4178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4179   yes:no: )
4180     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4181 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4182     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4183 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4184     ac_header_preproc=yes
4185     ;;
4186   no:yes:* )
4187     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4188 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4189     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4190 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4191     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4192 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4193     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4194 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4195     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4196 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4197     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4198 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4199     ( cat <<\_ASBOX
4200 ## --------------------------------- ##
4201 ## Report this to dhcp-users@isc.org ##
4202 ## --------------------------------- ##
4203 _ASBOX
4204      ) | sed "s/^/$as_me: WARNING:     /" >&2
4205     ;;
4206 esac
4207 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4208 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4209 if test "${ac_cv_header_minix_config_h+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   ac_cv_header_minix_config_h=$ac_header_preproc
4213 fi
4214 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4215 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4216
4217 fi
4218 if test $ac_cv_header_minix_config_h = yes; then
4219   MINIX=yes
4220 else
4221   MINIX=
4222 fi
4223
4224
4225 if test "$MINIX" = yes; then
4226
4227 cat >>confdefs.h <<\_ACEOF
4228 #define _POSIX_SOURCE 1
4229 _ACEOF
4230
4231
4232 cat >>confdefs.h <<\_ACEOF
4233 #define _POSIX_1_SOURCE 2
4234 _ACEOF
4235
4236
4237 cat >>confdefs.h <<\_ACEOF
4238 #define _MINIX 1
4239 _ACEOF
4240
4241 fi
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253   { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4254 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4255 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4256   echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258   cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h.  */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h.  */
4264
4265 #         define __EXTENSIONS__ 1
4266           $ac_includes_default
4267 int
4268 main ()
4269 {
4270
4271   ;
4272   return 0;
4273 }
4274 _ACEOF
4275 rm -f conftest.$ac_objext
4276 if { (ac_try="$ac_compile"
4277 case "(($ac_try" in
4278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279   *) ac_try_echo=$ac_try;;
4280 esac
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282   (eval "$ac_compile") 2>conftest.er1
4283   ac_status=$?
4284   grep -v '^ *+' conftest.er1 >conftest.err
4285   rm -f conftest.er1
4286   cat conftest.err >&5
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); } && {
4289          test -z "$ac_c_werror_flag" ||
4290          test ! -s conftest.err
4291        } && test -s conftest.$ac_objext; then
4292   ac_cv_safe_to_define___extensions__=yes
4293 else
4294   echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297         ac_cv_safe_to_define___extensions__=no
4298 fi
4299
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 fi
4302 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4303 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4304   test $ac_cv_safe_to_define___extensions__ = yes &&
4305     cat >>confdefs.h <<\_ACEOF
4306 #define __EXTENSIONS__ 1
4307 _ACEOF
4308
4309   cat >>confdefs.h <<\_ACEOF
4310 #define _POSIX_PTHREAD_SEMANTICS 1
4311 _ACEOF
4312
4313   cat >>confdefs.h <<\_ACEOF
4314 #define _TANDEM_SOURCE 1
4315 _ACEOF
4316
4317
4318
4319 if test -n "$ac_tool_prefix"; then
4320   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4321 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4324 if test "${ac_cv_prog_RANLIB+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   if test -n "$RANLIB"; then
4328   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4332 do
4333   IFS=$as_save_IFS
4334   test -z "$as_dir" && as_dir=.
4335   for ac_exec_ext in '' $ac_executable_extensions; do
4336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339     break 2
4340   fi
4341 done
4342 done
4343 IFS=$as_save_IFS
4344
4345 fi
4346 fi
4347 RANLIB=$ac_cv_prog_RANLIB
4348 if test -n "$RANLIB"; then
4349   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4350 echo "${ECHO_T}$RANLIB" >&6; }
4351 else
4352   { echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6; }
4354 fi
4355
4356
4357 fi
4358 if test -z "$ac_cv_prog_RANLIB"; then
4359   ac_ct_RANLIB=$RANLIB
4360   # Extract the first word of "ranlib", so it can be a program name with args.
4361 set dummy ranlib; ac_word=$2
4362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4364 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4365   echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367   if test -n "$ac_ct_RANLIB"; then
4368   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4369 else
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4372 do
4373   IFS=$as_save_IFS
4374   test -z "$as_dir" && as_dir=.
4375   for ac_exec_ext in '' $ac_executable_extensions; do
4376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4377     ac_cv_prog_ac_ct_RANLIB="ranlib"
4378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379     break 2
4380   fi
4381 done
4382 done
4383 IFS=$as_save_IFS
4384
4385 fi
4386 fi
4387 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4388 if test -n "$ac_ct_RANLIB"; then
4389   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4390 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4391 else
4392   { echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6; }
4394 fi
4395
4396   if test "x$ac_ct_RANLIB" = x; then
4397     RANLIB=":"
4398   else
4399     case $cross_compiling:$ac_tool_warned in
4400 yes:)
4401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4402 whose name does not start with the host triplet.  If you think this
4403 configuration is useful to you, please write to autoconf@gnu.org." >&5
4404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4405 whose name does not start with the host triplet.  If you think this
4406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4407 ac_tool_warned=yes ;;
4408 esac
4409     RANLIB=$ac_ct_RANLIB
4410   fi
4411 else
4412   RANLIB="$ac_cv_prog_RANLIB"
4413 fi
4414
4415 ac_config_headers="$ac_config_headers includes/config.h"
4416
4417
4418 # we sometimes need to know byte order for building packets
4419 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4420 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4421 if test "${ac_cv_c_bigendian+set}" = set; then
4422   echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424   # See if sys/param.h defines the BYTE_ORDER macro.
4425 cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h.  */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h.  */
4431 #include <sys/types.h>
4432 #include <sys/param.h>
4433
4434 int
4435 main ()
4436 {
4437 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4438         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4439  bogus endian macros
4440 #endif
4441
4442   ;
4443   return 0;
4444 }
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (ac_try="$ac_compile"
4448 case "(($ac_try" in
4449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450   *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453   (eval "$ac_compile") 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } && {
4460          test -z "$ac_c_werror_flag" ||
4461          test ! -s conftest.err
4462        } && test -s conftest.$ac_objext; then
4463   # It does; now see whether it defined to BIG_ENDIAN or not.
4464 cat >conftest.$ac_ext <<_ACEOF
4465 /* confdefs.h.  */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h.  */
4470 #include <sys/types.h>
4471 #include <sys/param.h>
4472
4473 int
4474 main ()
4475 {
4476 #if BYTE_ORDER != BIG_ENDIAN
4477  not big endian
4478 #endif
4479
4480   ;
4481   return 0;
4482 }
4483 _ACEOF
4484 rm -f conftest.$ac_objext
4485 if { (ac_try="$ac_compile"
4486 case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491   (eval "$ac_compile") 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } && {
4498          test -z "$ac_c_werror_flag" ||
4499          test ! -s conftest.err
4500        } && test -s conftest.$ac_objext; then
4501   ac_cv_c_bigendian=yes
4502 else
4503   echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4505
4506         ac_cv_c_bigendian=no
4507 fi
4508
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514         # It does not; compile a test program.
4515 if test "$cross_compiling" = yes; then
4516   # try to guess the endianness by grepping values into an object file
4517   ac_cv_c_bigendian=unknown
4518   cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4525 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4526 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4527 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4528 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4529 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4530 int
4531 main ()
4532 {
4533  _ascii (); _ebcdic ();
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext
4539 if { (ac_try="$ac_compile"
4540 case "(($ac_try" in
4541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542   *) ac_try_echo=$ac_try;;
4543 esac
4544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545   (eval "$ac_compile") 2>conftest.er1
4546   ac_status=$?
4547   grep -v '^ *+' conftest.er1 >conftest.err
4548   rm -f conftest.er1
4549   cat conftest.err >&5
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } && {
4552          test -z "$ac_c_werror_flag" ||
4553          test ! -s conftest.err
4554        } && test -s conftest.$ac_objext; then
4555   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4556   ac_cv_c_bigendian=yes
4557 fi
4558 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4559   if test "$ac_cv_c_bigendian" = unknown; then
4560     ac_cv_c_bigendian=no
4561   else
4562     # finding both strings is unlikely to happen, but who knows?
4563     ac_cv_c_bigendian=unknown
4564   fi
4565 fi
4566 else
4567   echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570
4571 fi
4572
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 else
4575   cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h.  */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h.  */
4581 $ac_includes_default
4582 int
4583 main ()
4584 {
4585
4586   /* Are we little or big endian?  From Harbison&Steele.  */
4587   union
4588   {
4589     long int l;
4590     char c[sizeof (long int)];
4591   } u;
4592   u.l = 1;
4593   return u.c[sizeof (long int) - 1] == 1;
4594
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 rm -f conftest$ac_exeext
4600 if { (ac_try="$ac_link"
4601 case "(($ac_try" in
4602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603   *) ac_try_echo=$ac_try;;
4604 esac
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606   (eval "$ac_link") 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4610   { (case "(($ac_try" in
4611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612   *) ac_try_echo=$ac_try;;
4613 esac
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615   (eval "$ac_try") 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }; }; then
4619   ac_cv_c_bigendian=no
4620 else
4621   echo "$as_me: program exited with status $ac_status" >&5
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 ( exit $ac_status )
4626 ac_cv_c_bigendian=yes
4627 fi
4628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4629 fi
4630
4631
4632 fi
4633
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 fi
4636 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4637 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4638 case $ac_cv_c_bigendian in
4639   yes)
4640     byte_order=BIG_ENDIAN
4641  ;;
4642   no)
4643     byte_order=LITTLE_ENDIAN
4644  ;;
4645   *)
4646     { { echo "$as_me:$LINENO: error: unknown endianness
4647 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4648 echo "$as_me: error: unknown endianness
4649 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4650    { (exit 1); exit 1; }; } ;;
4651 esac
4652
4653
4654 cat >>confdefs.h <<_ACEOF
4655 #define DHCP_BYTE_ORDER $byte_order
4656 _ACEOF
4657
4658
4659 # Optional compile-time DEBUGging.
4660 # Check whether --enable-debug was given.
4661 if test "${enable_debug+set}" = set; then
4662   enableval=$enable_debug;
4663 fi
4664
4665 # This is very much off by default.
4666 if test "$enable_debug" = "yes" ; then
4667
4668 cat >>confdefs.h <<\_ACEOF
4669 #define DEBUG 1
4670 _ACEOF
4671
4672         # Just override CFLAGS to totally to remove optimization.
4673         CFLAGS="-g"
4674 fi
4675 # XXX: there are actually quite a lot more DEBUG_ features we could enable,
4676 # but I don't want to pollute the --help space.
4677 #
4678 #/* #define DEBUG_TOKENS */
4679 #/* #define DEBUG_PACKET */
4680 #/* #define DEBUG_EXPRESSIONS */
4681 #/* #define DEBUG_FIND_LEASE */
4682 #/* #define DEBUG_EXPRESSION_PARSE */
4683 #/* #define DEBUG_CLASS_MATCHING */
4684 #/* #define DEBUG_MEMORY_LEAKAGE */
4685 #/* #define DEBUG_MALLOC_POOL */
4686 #/* #define DEBUG_LEASE_STATE_TRANSITIONS */
4687 #/* #define DEBUG_RC_HISTORY */
4688 #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
4689 #/* #define RC_HISTORY_MAX 10240 */
4690 #/* #define POINTER_DEBUG */
4691 #/* #define DEBUG_FAILOVER_MESSAGES */
4692 #/* #define DEBUG_FAILOVER_TIMING */
4693 #/* #define DEBUG_DUMP_ALL_LEASES */
4694
4695 # Failover optional compile-time feature.
4696 # Check whether --enable-failover was given.
4697 if test "${enable_failover+set}" = set; then
4698   enableval=$enable_failover;
4699 fi
4700
4701 # Failover is on by default, so define if it is not explicitly disabled.
4702 if test "$enable_failover" != "no"; then
4703
4704 cat >>confdefs.h <<\_ACEOF
4705 #define FAILOVER_PROTOCOL 1
4706 _ACEOF
4707
4708 fi
4709
4710 # execute() support.
4711 # Check whether --enable-execute was given.
4712 if test "${enable_execute+set}" = set; then
4713   enableval=$enable_execute;
4714 fi
4715
4716 # execute() is on by default, so define if it is not explicitly disabled.
4717 if test "$enable_execute" != "no" ; then
4718
4719 cat >>confdefs.h <<\_ACEOF
4720 #define ENABLE_EXECUTE 1
4721 _ACEOF
4722
4723 fi
4724
4725 # Server tracing support.
4726 # Check whether --enable-tracing was given.
4727 if test "${enable_tracing+set}" = set; then
4728   enableval=$enable_tracing;
4729 fi
4730
4731 # tracing is on by default, so define if it is not explicitly disabled.
4732 if test "$enable_tracing" != "no" ; then
4733
4734 cat >>confdefs.h <<\_ACEOF
4735 #define TRACING 1
4736 _ACEOF
4737
4738 fi
4739
4740 # Delayed-ack feature support (experimental).
4741 # Check whether --enable-delayed_ack was given.
4742 if test "${enable_delayed_ack+set}" = set; then
4743   enableval=$enable_delayed_ack;
4744 fi
4745
4746 if test "$enable_delayed_ack" = "yes"; then
4747
4748 cat >>confdefs.h <<\_ACEOF
4749 #define DELAYED_ACK 1
4750 _ACEOF
4751
4752 fi
4753
4754 # DHCPv6 optional compile-time feature.
4755 # Check whether --enable-dhcpv6 was given.
4756 if test "${enable_dhcpv6+set}" = set; then
4757   enableval=$enable_dhcpv6;
4758 fi
4759
4760 # DHCPv6 is on by default, so define if it is not explicitly disabled.
4761 if test "$enable_dhcpv6" != "no"; then
4762
4763 cat >>confdefs.h <<\_ACEOF
4764 #define DHCPv6 1
4765 _ACEOF
4766
4767 fi
4768
4769 # PARANOIA is off by default (until we can test it with all features)
4770 # Check whether --enable-paranoia was given.
4771 if test "${enable_paranoia+set}" = set; then
4772   enableval=$enable_paranoia;
4773 fi
4774
4775 # Check whether --enable-early_chroot was given.
4776 if test "${enable_early_chroot+set}" = set; then
4777   enableval=$enable_early_chroot;
4778 fi
4779
4780 # If someone enables early chroot, but does not enable paranoia, do so for
4781 # them.
4782 if test "$enable_paranoia" != "yes" && \
4783    test "$enable_early_chroot" = "yes" ; then
4784         enable_paranoia="yes"
4785 fi
4786
4787 if test "$enable_paranoia" = "yes" ; then
4788
4789 cat >>confdefs.h <<\_ACEOF
4790 #define PARANOIA 1
4791 _ACEOF
4792
4793 fi
4794 if test "$enable_early_chroot" = "yes" ; then
4795
4796 cat >>confdefs.h <<\_ACEOF
4797 #define EARLY_CHROOT 1
4798 _ACEOF
4799
4800 fi
4801
4802 # Check whether --enable-IPv4_PKTINFO was given.
4803 if test "${enable_IPv4_PKTINFO+set}" = set; then
4804   enableval=$enable_IPv4_PKTINFO;
4805 fi
4806
4807
4808 if test "$enable_ipv4_pktinfo" = "yes"; then
4809
4810 cat >>confdefs.h <<\_ACEOF
4811 #define USE_V4_PKTINFO 1
4812 _ACEOF
4813
4814 fi
4815
4816 # Check whether --enable-USE_SOCKETS was given.
4817 if test "${enable_USE_SOCKETS+set}" = set; then
4818   enableval=$enable_USE_SOCKETS;
4819 fi
4820
4821
4822 if test "$enable_use_sockets" = "yes"; then
4823
4824 cat >>confdefs.h <<\_ACEOF
4825 #define USE_SOCKETS 1
4826 _ACEOF
4827
4828 fi
4829
4830 ###
4831 ### Path fun.  Older versions of DHCP were installed in /usr/sbin, so we
4832 ### need to look there and potentially overwrite by default (but not if
4833 ### the user configures an alternate value).  LOCALSTATEDIR is totally
4834 ### braindead.  No one uses /usr/local/var/db/ nor /usr/local/var/run, and
4835 ### they would be insane for suggesting it.  We need to look in /var/for
4836 ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
4837 ### default.
4838 ###
4839 if test "x$prefix" = xNONE; then
4840   echo $ECHO_N "checking for prefix by $ECHO_C" >&6
4841   # Extract the first word of "dhcpd", so it can be a program name with args.
4842 set dummy dhcpd; ac_word=$2
4843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4845 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848   case $ac_prefix_program in
4849   [\\/]* | ?:[\\/]*)
4850   ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
4851   ;;
4852   *)
4853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856   IFS=$as_save_IFS
4857   test -z "$as_dir" && as_dir=.
4858   for ac_exec_ext in '' $ac_executable_extensions; do
4859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860     ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
4861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862     break 2
4863   fi
4864 done
4865 done
4866 IFS=$as_save_IFS
4867
4868   ;;
4869 esac
4870 fi
4871 ac_prefix_program=$ac_cv_path_ac_prefix_program
4872 if test -n "$ac_prefix_program"; then
4873   { echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
4874 echo "${ECHO_T}$ac_prefix_program" >&6; }
4875 else
4876   { echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6; }
4878 fi
4879
4880
4881   if test -n "$ac_prefix_program"; then
4882     prefix=`$as_dirname -- "$ac_prefix_program" ||
4883 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4884          X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
4885          X"$ac_prefix_program" : 'X\(//\)$' \| \
4886          X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
4887 echo X"$ac_prefix_program" |
4888     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4889             s//\1/
4890             q
4891           }
4892           /^X\(\/\/\)[^/].*/{
4893             s//\1/
4894             q
4895           }
4896           /^X\(\/\/\)$/{
4897             s//\1/
4898             q
4899           }
4900           /^X\(\/\).*/{
4901             s//\1/
4902             q
4903           }
4904           s/.*/./; q'`
4905     prefix=`$as_dirname -- "$prefix" ||
4906 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4907          X"$prefix" : 'X\(//\)[^/]' \| \
4908          X"$prefix" : 'X\(//\)$' \| \
4909          X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
4910 echo X"$prefix" |
4911     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4912             s//\1/
4913             q
4914           }
4915           /^X\(\/\/\)[^/].*/{
4916             s//\1/
4917             q
4918           }
4919           /^X\(\/\/\)$/{
4920             s//\1/
4921             q
4922           }
4923           /^X\(\/\).*/{
4924             s//\1/
4925             q
4926           }
4927           s/.*/./; q'`
4928   fi
4929 fi
4930
4931
4932 # XXX - isn't there SOME WAY to default autoconf to /var instead of
4933 # /usr/local/var/no/one/has/this/please/stop/trying?
4934 case "$localstatedir" in
4935         '${prefix}/var')
4936                 localstatedir=/var
4937                 ;;
4938 esac
4939
4940 # Allow specification of alternate state files
4941
4942 # Check whether --with-srv-lease-file was given.
4943 if test "${with_srv_lease_file+set}" = set; then
4944   withval=$with_srv_lease_file;
4945 cat >>confdefs.h <<_ACEOF
4946 #define _PATH_DHCPD_DB "$withval"
4947 _ACEOF
4948
4949 fi
4950
4951
4952 echo -n "checking for dhcpd.leases location..."
4953 if [ "x$with_srv_lease_file" = "x" ] ; then
4954         if [ -d "${localstatedir}/db" ] ; then
4955                 with_srv_lease_file="${localstatedir}/db/dhcpd.leases"
4956         elif [ -d "${localstatedir}/state" ] ; then
4957                 if [ -d "${localstatedir}/state/dhcp" ] ; then
4958                         with_srv_lease_file="${localstatedir}/state/dhcp/dhcpd.leases"
4959                 else
4960                         with_srv_lease_file="${localstatedir}/state/dhcpd.leases"
4961                 fi
4962         elif [ -d "${localstatedir}/lib" ] ; then
4963                 if [ -d "${localstatedir}/lib/dhcp" ] ; then
4964                         with_srv_lease_file="${localstatedir}/lib/dhcp/dhcpd.leases"
4965                 else
4966                         with_srv_lease_file="${localstatedir}/lib/dhcpd.leases"
4967                 fi
4968         elif [ -d "${localstatedir}/etc" ] ; then
4969                 with_srv_lease_file="${localstatedir}/etc/dhcpd.leases"
4970         else
4971                 with_srv_lease_file="/etc/dhcpd.leases"
4972         fi
4973 fi
4974 echo "$with_srv_lease_file"
4975
4976
4977 # Check whether --with-srv6-lease-file was given.
4978 if test "${with_srv6_lease_file+set}" = set; then
4979   withval=$with_srv6_lease_file;
4980 cat >>confdefs.h <<_ACEOF
4981 #define _PATH_DHCPD6_DB "$withval"
4982 _ACEOF
4983
4984 fi
4985
4986
4987 echo -n "checking for dhcpd6.leases location..."
4988 if [ "x$with_srv6_lease_file" = "x" ] ; then
4989         if [ -d "${localstatedir}/db" ] ; then
4990                 with_srv6_lease_file="${localstatedir}/db/dhcpd6.leases"
4991         elif [ -d "${localstatedir}/state" ] ; then
4992                 if [ -d "${localstatedir}/state/dhcp" ] ; then
4993                         with_srv6_lease_file="${localstatedir}/state/dhcp/dhcpd6.leases"
4994                 else
4995                         with_srv6_lease_file="${localstatedir}/state/dhcpd6.leases"
4996                 fi
4997         elif [ -d "${localstatedir}/lib" ] ; then
4998                 if [ -d "${localstatedir}/lib/dhcp" ] ; then
4999                         with_srv6_lease_file="${localstatedir}/lib/dhcp/dhcpd6.leases"
5000                 else
5001                         with_srv6_lease_file="${localstatedir}/lib/dhcpd6.leases"
5002                 fi
5003         elif [ -d "${localstatedir}/etc" ] ; then
5004                 with_srv6_lease_file="${localstatedir}/etc/dhcpd6.leases"
5005         else
5006                 with_srv6_lease_file="/etc/dhcpd6.leases"
5007         fi
5008 fi
5009 echo "$with_srv6_lease_file"
5010
5011
5012 # Check whether --with-cli-lease-file was given.
5013 if test "${with_cli_lease_file+set}" = set; then
5014   withval=$with_cli_lease_file;
5015 cat >>confdefs.h <<_ACEOF
5016 #define _PATH_DHCLIENT_DB "$withval"
5017 _ACEOF
5018
5019 fi
5020
5021
5022 echo -n "checking for dhclient.leases location..."
5023 if [ "x$with_cli_lease_file" = "x" ] ; then
5024         if [ -d "${localstatedir}/db" ] ; then
5025                 with_cli_lease_file="${localstatedir}/db/dhclient.leases"
5026         elif [ -d "${localstatedir}/state" ] ; then
5027                 if [ -d "${localstatedir}/state/dhcp" ] ; then
5028                         with_cli_lease_file="${localstatedir}/state/dhcp/dhclient.leases"
5029                 else
5030                         with_cli_lease_file="${localstatedir}/state/dhclient.leases"
5031                 fi
5032         elif [ -d "${localstatedir}/lib" ] ; then
5033                 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5034                         with_cli_lease_file="${localstatedir}/lib/dhcp/dhclient.leases"
5035                 else
5036                         with_cli_lease_file="${localstatedir}/lib/dhclient.leases"
5037                 fi
5038         elif [ -d "${localstatedir}/etc" ] ; then
5039                 with_cli_lease_file="${localstatedir}/etc/dhclient.leases"
5040         else
5041                 with_cli_lease_file="/etc/dhclient.leases"
5042         fi
5043 fi
5044 echo "$with_cli_lease_file"
5045
5046
5047 # Check whether --with-cli6-lease-file was given.
5048 if test "${with_cli6_lease_file+set}" = set; then
5049   withval=$with_cli6_lease_file;
5050 cat >>confdefs.h <<_ACEOF
5051 #define _PATH_DHCLIENT6_DB "$withval"
5052 _ACEOF
5053
5054 fi
5055
5056
5057 echo -n "checking for dhclient6.leases location..."
5058 if [ "x$with_cli6_lease_file" = "x" ] ; then
5059         if [ -d "${localstatedir}/db" ] ; then
5060                 with_cli6_lease_file="${localstatedir}/db/dhclient6.leases"
5061         elif [ -d "${localstatedir}/state" ] ; then
5062                 if [ -d "${localstatedir}/state/dhcp" ] ; then
5063                         with_cli6_lease_file="${localstatedir}/state/dhcp/dhclient6.leases"
5064                 else
5065                         with_cli6_lease_file="${localstatedir}/state/dhclient6.leases"
5066                 fi
5067         elif [ -d "${localstatedir}/lib" ] ; then
5068                 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5069                         with_cli6_lease_file="${localstatedir}/lib/dhcp/dhclient6.leases"
5070                 else
5071                         with_cli6_lease_file="${localstatedir}/lib/dhclient6.leases"
5072                 fi
5073         elif [ -d "${localstatedir}/etc" ] ; then
5074                 with_cli6_lease_file="${localstatedir}/etc/dhclient6.leases"
5075         else
5076                 with_cli6_lease_file="/etc/dhclient6.leases"
5077         fi
5078 fi
5079 echo "$with_cli6_lease_file"
5080
5081
5082 # Check whether --with-srv-pid-file was given.
5083 if test "${with_srv_pid_file+set}" = set; then
5084   withval=$with_srv_pid_file;
5085 cat >>confdefs.h <<_ACEOF
5086 #define _PATH_DHCPD_PID "$withval"
5087 _ACEOF
5088
5089 fi
5090
5091
5092 # Check whether --with-srv6-pid-file was given.
5093 if test "${with_srv6_pid_file+set}" = set; then
5094   withval=$with_srv6_pid_file;
5095 cat >>confdefs.h <<_ACEOF
5096 #define _PATH_DHCPD6_PID "$withval"
5097 _ACEOF
5098
5099 fi
5100
5101
5102 # Check whether --with-cli-pid-file was given.
5103 if test "${with_cli_pid_file+set}" = set; then
5104   withval=$with_cli_pid_file;
5105 cat >>confdefs.h <<_ACEOF
5106 #define _PATH_DHCLIENT_PID "$withval"
5107 _ACEOF
5108
5109 fi
5110
5111
5112 # Check whether --with-cli6-pid-file was given.
5113 if test "${with_cli6_pid_file+set}" = set; then
5114   withval=$with_cli6_pid_file;
5115 cat >>confdefs.h <<_ACEOF
5116 #define _PATH_DHCLIENT6_PID "$withval"
5117 _ACEOF
5118
5119 fi
5120
5121
5122 # Check whether --with-relay-pid-file was given.
5123 if test "${with_relay_pid_file+set}" = set; then
5124   withval=$with_relay_pid_file;
5125 cat >>confdefs.h <<_ACEOF
5126 #define _PATH_DHCRELAY_PID "$withval"
5127 _ACEOF
5128
5129 fi
5130
5131
5132 # Check whether --with-relay6-pid-file was given.
5133 if test "${with_relay6_pid_file+set}" = set; then
5134   withval=$with_relay6_pid_file;
5135 cat >>confdefs.h <<_ACEOF
5136 #define _PATH_DHCRELAY6_PID "$withval"
5137 _ACEOF
5138
5139 fi
5140
5141
5142 # Check basic types.
5143
5144   { echo "$as_me:$LINENO: checking for int8_t" >&5
5145 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
5146 if test "${ac_cv_c_int8_t+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149   ac_cv_c_int8_t=no
5150      for ac_type in 'int8_t' 'int' 'long int' \
5151          'long long int' 'short int' 'signed char'; do
5152        cat >conftest.$ac_ext <<_ACEOF
5153 /* confdefs.h.  */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h.  */
5158 $ac_includes_default
5159 int
5160 main ()
5161 {
5162 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
5163 test_array [0] = 0
5164
5165   ;
5166   return 0;
5167 }
5168 _ACEOF
5169 rm -f conftest.$ac_objext
5170 if { (ac_try="$ac_compile"
5171 case "(($ac_try" in
5172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173   *) ac_try_echo=$ac_try;;
5174 esac
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176   (eval "$ac_compile") 2>conftest.er1
5177   ac_status=$?
5178   grep -v '^ *+' conftest.er1 >conftest.err
5179   rm -f conftest.er1
5180   cat conftest.err >&5
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); } && {
5183          test -z "$ac_c_werror_flag" ||
5184          test ! -s conftest.err
5185        } && test -s conftest.$ac_objext; then
5186   cat >conftest.$ac_ext <<_ACEOF
5187 /* confdefs.h.  */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h.  */
5192 $ac_includes_default
5193 int
5194 main ()
5195 {
5196 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
5197                  < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
5198 test_array [0] = 0
5199
5200   ;
5201   return 0;
5202 }
5203 _ACEOF
5204 rm -f conftest.$ac_objext
5205 if { (ac_try="$ac_compile"
5206 case "(($ac_try" in
5207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208   *) ac_try_echo=$ac_try;;
5209 esac
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211   (eval "$ac_compile") 2>conftest.er1
5212   ac_status=$?
5213   grep -v '^ *+' conftest.er1 >conftest.err
5214   rm -f conftest.er1
5215   cat conftest.err >&5
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); } && {
5218          test -z "$ac_c_werror_flag" ||
5219          test ! -s conftest.err
5220        } && test -s conftest.$ac_objext; then
5221   :
5222 else
5223   echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226         case $ac_type in
5227   int8_t) ac_cv_c_int8_t=yes ;;
5228   *) ac_cv_c_int8_t=$ac_type ;;
5229 esac
5230
5231 fi
5232
5233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234 else
5235   echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5237
5238
5239 fi
5240
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242        test "$ac_cv_c_int8_t" != no && break
5243      done
5244 fi
5245 { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
5246 echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
5247   case $ac_cv_c_int8_t in #(
5248   no|yes) ;; #(
5249   *)
5250
5251 cat >>confdefs.h <<_ACEOF
5252 #define int8_t $ac_cv_c_int8_t
5253 _ACEOF
5254 ;;
5255   esac
5256
5257
5258   { echo "$as_me:$LINENO: checking for int16_t" >&5
5259 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
5260 if test "${ac_cv_c_int16_t+set}" = set; then
5261   echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263   ac_cv_c_int16_t=no
5264      for ac_type in 'int16_t' 'int' 'long int' \
5265          'long long int' 'short int' 'signed char'; do
5266        cat >conftest.$ac_ext <<_ACEOF
5267 /* confdefs.h.  */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h.  */
5272 $ac_includes_default
5273 int
5274 main ()
5275 {
5276 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
5277 test_array [0] = 0
5278
5279   ;
5280   return 0;
5281 }
5282 _ACEOF
5283 rm -f conftest.$ac_objext
5284 if { (ac_try="$ac_compile"
5285 case "(($ac_try" in
5286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287   *) ac_try_echo=$ac_try;;
5288 esac
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290   (eval "$ac_compile") 2>conftest.er1
5291   ac_status=$?
5292   grep -v '^ *+' conftest.er1 >conftest.err
5293   rm -f conftest.er1
5294   cat conftest.err >&5
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); } && {
5297          test -z "$ac_c_werror_flag" ||
5298          test ! -s conftest.err
5299        } && test -s conftest.$ac_objext; then
5300   cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h.  */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h.  */
5306 $ac_includes_default
5307 int
5308 main ()
5309 {
5310 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
5311                  < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
5312 test_array [0] = 0
5313
5314   ;
5315   return 0;
5316 }
5317 _ACEOF
5318 rm -f conftest.$ac_objext
5319 if { (ac_try="$ac_compile"
5320 case "(($ac_try" in
5321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322   *) ac_try_echo=$ac_try;;
5323 esac
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325   (eval "$ac_compile") 2>conftest.er1
5326   ac_status=$?
5327   grep -v '^ *+' conftest.er1 >conftest.err
5328   rm -f conftest.er1
5329   cat conftest.err >&5
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); } && {
5332          test -z "$ac_c_werror_flag" ||
5333          test ! -s conftest.err
5334        } && test -s conftest.$ac_objext; then
5335   :
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340         case $ac_type in
5341   int16_t) ac_cv_c_int16_t=yes ;;
5342   *) ac_cv_c_int16_t=$ac_type ;;
5343 esac
5344
5345 fi
5346
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 else
5349   echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5351
5352
5353 fi
5354
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356        test "$ac_cv_c_int16_t" != no && break
5357      done
5358 fi
5359 { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
5360 echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
5361   case $ac_cv_c_int16_t in #(
5362   no|yes) ;; #(
5363   *)
5364
5365 cat >>confdefs.h <<_ACEOF
5366 #define int16_t $ac_cv_c_int16_t
5367 _ACEOF
5368 ;;
5369   esac
5370
5371
5372   { echo "$as_me:$LINENO: checking for int32_t" >&5
5373 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
5374 if test "${ac_cv_c_int32_t+set}" = set; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377   ac_cv_c_int32_t=no
5378      for ac_type in 'int32_t' 'int' 'long int' \
5379          'long long int' 'short int' 'signed char'; do
5380        cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h.  */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h.  */
5386 $ac_includes_default
5387 int
5388 main ()
5389 {
5390 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
5391 test_array [0] = 0
5392
5393   ;
5394   return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (ac_try="$ac_compile"
5399 case "(($ac_try" in
5400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401   *) ac_try_echo=$ac_try;;
5402 esac
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404   (eval "$ac_compile") 2>conftest.er1
5405   ac_status=$?
5406   grep -v '^ *+' conftest.er1 >conftest.err
5407   rm -f conftest.er1
5408   cat conftest.err >&5
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); } && {
5411          test -z "$ac_c_werror_flag" ||
5412          test ! -s conftest.err
5413        } && test -s conftest.$ac_objext; then
5414   cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h.  */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h.  */
5420 $ac_includes_default
5421 int
5422 main ()
5423 {
5424 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
5425                  < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
5426 test_array [0] = 0
5427
5428   ;
5429   return 0;
5430 }
5431 _ACEOF
5432 rm -f conftest.$ac_objext
5433 if { (ac_try="$ac_compile"
5434 case "(($ac_try" in
5435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436   *) ac_try_echo=$ac_try;;
5437 esac
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439   (eval "$ac_compile") 2>conftest.er1
5440   ac_status=$?
5441   grep -v '^ *+' conftest.er1 >conftest.err
5442   rm -f conftest.er1
5443   cat conftest.err >&5
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); } && {
5446          test -z "$ac_c_werror_flag" ||
5447          test ! -s conftest.err
5448        } && test -s conftest.$ac_objext; then
5449   :
5450 else
5451   echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454         case $ac_type in
5455   int32_t) ac_cv_c_int32_t=yes ;;
5456   *) ac_cv_c_int32_t=$ac_type ;;
5457 esac
5458
5459 fi
5460
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 else
5463   echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466
5467 fi
5468
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470        test "$ac_cv_c_int32_t" != no && break
5471      done
5472 fi
5473 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
5474 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
5475   case $ac_cv_c_int32_t in #(
5476   no|yes) ;; #(
5477   *)
5478
5479 cat >>confdefs.h <<_ACEOF
5480 #define int32_t $ac_cv_c_int32_t
5481 _ACEOF
5482 ;;
5483   esac
5484
5485
5486   { echo "$as_me:$LINENO: checking for int64_t" >&5
5487 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
5488 if test "${ac_cv_c_int64_t+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   ac_cv_c_int64_t=no
5492      for ac_type in 'int64_t' 'int' 'long int' \
5493          'long long int' 'short int' 'signed char'; do
5494        cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h.  */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h.  */
5500 $ac_includes_default
5501 int
5502 main ()
5503 {
5504 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
5505 test_array [0] = 0
5506
5507   ;
5508   return 0;
5509 }
5510 _ACEOF
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5513 case "(($ac_try" in
5514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515   *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518   (eval "$ac_compile") 2>conftest.er1
5519   ac_status=$?
5520   grep -v '^ *+' conftest.er1 >conftest.err
5521   rm -f conftest.er1
5522   cat conftest.err >&5
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } && {
5525          test -z "$ac_c_werror_flag" ||
5526          test ! -s conftest.err
5527        } && test -s conftest.$ac_objext; then
5528   cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h.  */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h.  */
5534 $ac_includes_default
5535 int
5536 main ()
5537 {
5538 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
5539                  < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
5540 test_array [0] = 0
5541
5542   ;
5543   return 0;
5544 }
5545 _ACEOF
5546 rm -f conftest.$ac_objext
5547 if { (ac_try="$ac_compile"
5548 case "(($ac_try" in
5549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550   *) ac_try_echo=$ac_try;;
5551 esac
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553   (eval "$ac_compile") 2>conftest.er1
5554   ac_status=$?
5555   grep -v '^ *+' conftest.er1 >conftest.err
5556   rm -f conftest.er1
5557   cat conftest.err >&5
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); } && {
5560          test -z "$ac_c_werror_flag" ||
5561          test ! -s conftest.err
5562        } && test -s conftest.$ac_objext; then
5563   :
5564 else
5565   echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5567
5568         case $ac_type in
5569   int64_t) ac_cv_c_int64_t=yes ;;
5570   *) ac_cv_c_int64_t=$ac_type ;;
5571 esac
5572
5573 fi
5574
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 else
5577   echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5579
5580
5581 fi
5582
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584        test "$ac_cv_c_int64_t" != no && break
5585      done
5586 fi
5587 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
5588 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
5589   case $ac_cv_c_int64_t in #(
5590   no|yes) ;; #(
5591   *)
5592
5593 cat >>confdefs.h <<_ACEOF
5594 #define int64_t $ac_cv_c_int64_t
5595 _ACEOF
5596 ;;
5597   esac
5598
5599
5600 # Some systems need the u_intX_t types defined across.
5601 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
5602 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
5603 if test "${ac_cv_type_u_int8_t+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606   cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h.  */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h.  */
5612 $ac_includes_default
5613 typedef u_int8_t ac__type_new_;
5614 int
5615 main ()
5616 {
5617 if ((ac__type_new_ *) 0)
5618   return 0;
5619 if (sizeof (ac__type_new_))
5620   return 0;
5621   ;
5622   return 0;
5623 }
5624 _ACEOF
5625 rm -f conftest.$ac_objext
5626 if { (ac_try="$ac_compile"
5627 case "(($ac_try" in
5628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629   *) ac_try_echo=$ac_try;;
5630 esac
5631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632   (eval "$ac_compile") 2>conftest.er1
5633   ac_status=$?
5634   grep -v '^ *+' conftest.er1 >conftest.err
5635   rm -f conftest.er1
5636   cat conftest.err >&5
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); } && {
5639          test -z "$ac_c_werror_flag" ||
5640          test ! -s conftest.err
5641        } && test -s conftest.$ac_objext; then
5642   ac_cv_type_u_int8_t=yes
5643 else
5644   echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5646
5647         ac_cv_type_u_int8_t=no
5648 fi
5649
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 fi
5652 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
5653 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
5654 if test $ac_cv_type_u_int8_t = yes; then
5655   :
5656 else
5657
5658
5659   { echo "$as_me:$LINENO: checking for uint8_t" >&5
5660 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
5661 if test "${ac_cv_c_uint8_t+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   ac_cv_c_uint8_t=no
5665      for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
5666          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5667        cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h.  */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h.  */
5673 $ac_includes_default
5674 int
5675 main ()
5676 {
5677 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
5678 test_array [0] = 0
5679
5680   ;
5681   return 0;
5682 }
5683 _ACEOF
5684 rm -f conftest.$ac_objext
5685 if { (ac_try="$ac_compile"
5686 case "(($ac_try" in
5687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688   *) ac_try_echo=$ac_try;;
5689 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691   (eval "$ac_compile") 2>conftest.er1
5692   ac_status=$?
5693   grep -v '^ *+' conftest.er1 >conftest.err
5694   rm -f conftest.er1
5695   cat conftest.err >&5
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); } && {
5698          test -z "$ac_c_werror_flag" ||
5699          test ! -s conftest.err
5700        } && test -s conftest.$ac_objext; then
5701   case $ac_type in
5702   uint8_t) ac_cv_c_uint8_t=yes ;;
5703   *) ac_cv_c_uint8_t=$ac_type ;;
5704 esac
5705
5706 else
5707   echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5709
5710
5711 fi
5712
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714        test "$ac_cv_c_uint8_t" != no && break
5715      done
5716 fi
5717 { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
5718 echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
5719   case $ac_cv_c_uint8_t in #(
5720   no|yes) ;; #(
5721   *)
5722
5723 cat >>confdefs.h <<\_ACEOF
5724 #define _UINT8_T 1
5725 _ACEOF
5726
5727
5728 cat >>confdefs.h <<_ACEOF
5729 #define uint8_t $ac_cv_c_uint8_t
5730 _ACEOF
5731 ;;
5732   esac
5733
5734
5735 cat >>confdefs.h <<\_ACEOF
5736 #define u_int8_t uint8_t
5737 _ACEOF
5738
5739
5740 fi
5741
5742 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
5743 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
5744 if test "${ac_cv_type_u_int16_t+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h.  */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h.  */
5753 $ac_includes_default
5754 typedef u_int16_t ac__type_new_;
5755 int
5756 main ()
5757 {
5758 if ((ac__type_new_ *) 0)
5759   return 0;
5760 if (sizeof (ac__type_new_))
5761   return 0;
5762   ;
5763   return 0;
5764 }
5765 _ACEOF
5766 rm -f conftest.$ac_objext
5767 if { (ac_try="$ac_compile"
5768 case "(($ac_try" in
5769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770   *) ac_try_echo=$ac_try;;
5771 esac
5772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773   (eval "$ac_compile") 2>conftest.er1
5774   ac_status=$?
5775   grep -v '^ *+' conftest.er1 >conftest.err
5776   rm -f conftest.er1
5777   cat conftest.err >&5
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); } && {
5780          test -z "$ac_c_werror_flag" ||
5781          test ! -s conftest.err
5782        } && test -s conftest.$ac_objext; then
5783   ac_cv_type_u_int16_t=yes
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788         ac_cv_type_u_int16_t=no
5789 fi
5790
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 fi
5793 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5794 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
5795 if test $ac_cv_type_u_int16_t = yes; then
5796   :
5797 else
5798
5799
5800   { echo "$as_me:$LINENO: checking for uint16_t" >&5
5801 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
5802 if test "${ac_cv_c_uint16_t+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   ac_cv_c_uint16_t=no
5806      for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
5807          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5808        cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h.  */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h.  */
5814 $ac_includes_default
5815 int
5816 main ()
5817 {
5818 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
5819 test_array [0] = 0
5820
5821   ;
5822   return 0;
5823 }
5824 _ACEOF
5825 rm -f conftest.$ac_objext
5826 if { (ac_try="$ac_compile"
5827 case "(($ac_try" in
5828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829   *) ac_try_echo=$ac_try;;
5830 esac
5831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832   (eval "$ac_compile") 2>conftest.er1
5833   ac_status=$?
5834   grep -v '^ *+' conftest.er1 >conftest.err
5835   rm -f conftest.er1
5836   cat conftest.err >&5
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); } && {
5839          test -z "$ac_c_werror_flag" ||
5840          test ! -s conftest.err
5841        } && test -s conftest.$ac_objext; then
5842   case $ac_type in
5843   uint16_t) ac_cv_c_uint16_t=yes ;;
5844   *) ac_cv_c_uint16_t=$ac_type ;;
5845 esac
5846
5847 else
5848   echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851
5852 fi
5853
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855        test "$ac_cv_c_uint16_t" != no && break
5856      done
5857 fi
5858 { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
5859 echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
5860   case $ac_cv_c_uint16_t in #(
5861   no|yes) ;; #(
5862   *)
5863
5864
5865 cat >>confdefs.h <<_ACEOF
5866 #define uint16_t $ac_cv_c_uint16_t
5867 _ACEOF
5868 ;;
5869   esac
5870
5871
5872 cat >>confdefs.h <<\_ACEOF
5873 #define u_int16_t uint16_t
5874 _ACEOF
5875
5876
5877 fi
5878
5879 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
5880 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
5881 if test "${ac_cv_type_u_int32_t+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h.  */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h.  */
5890 $ac_includes_default
5891 typedef u_int32_t ac__type_new_;
5892 int
5893 main ()
5894 {
5895 if ((ac__type_new_ *) 0)
5896   return 0;
5897 if (sizeof (ac__type_new_))
5898   return 0;
5899   ;
5900   return 0;
5901 }
5902 _ACEOF
5903 rm -f conftest.$ac_objext
5904 if { (ac_try="$ac_compile"
5905 case "(($ac_try" in
5906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907   *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910   (eval "$ac_compile") 2>conftest.er1
5911   ac_status=$?
5912   grep -v '^ *+' conftest.er1 >conftest.err
5913   rm -f conftest.er1
5914   cat conftest.err >&5
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } && {
5917          test -z "$ac_c_werror_flag" ||
5918          test ! -s conftest.err
5919        } && test -s conftest.$ac_objext; then
5920   ac_cv_type_u_int32_t=yes
5921 else
5922   echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925         ac_cv_type_u_int32_t=no
5926 fi
5927
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929 fi
5930 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5931 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
5932 if test $ac_cv_type_u_int32_t = yes; then
5933   :
5934 else
5935
5936
5937   { echo "$as_me:$LINENO: checking for uint32_t" >&5
5938 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
5939 if test "${ac_cv_c_uint32_t+set}" = set; then
5940   echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942   ac_cv_c_uint32_t=no
5943      for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
5944          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
5945        cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h.  */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h.  */
5951 $ac_includes_default
5952 int
5953 main ()
5954 {
5955 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
5956 test_array [0] = 0
5957
5958   ;
5959   return 0;
5960 }
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (ac_try="$ac_compile"
5964 case "(($ac_try" in
5965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966   *) ac_try_echo=$ac_try;;
5967 esac
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969   (eval "$ac_compile") 2>conftest.er1
5970   ac_status=$?
5971   grep -v '^ *+' conftest.er1 >conftest.err
5972   rm -f conftest.er1
5973   cat conftest.err >&5
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); } && {
5976          test -z "$ac_c_werror_flag" ||
5977          test ! -s conftest.err
5978        } && test -s conftest.$ac_objext; then
5979   case $ac_type in
5980   uint32_t) ac_cv_c_uint32_t=yes ;;
5981   *) ac_cv_c_uint32_t=$ac_type ;;
5982 esac
5983
5984 else
5985   echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5987
5988
5989 fi
5990
5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992        test "$ac_cv_c_uint32_t" != no && break
5993      done
5994 fi
5995 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
5996 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
5997   case $ac_cv_c_uint32_t in #(
5998   no|yes) ;; #(
5999   *)
6000
6001 cat >>confdefs.h <<\_ACEOF
6002 #define _UINT32_T 1
6003 _ACEOF
6004
6005
6006 cat >>confdefs.h <<_ACEOF
6007 #define uint32_t $ac_cv_c_uint32_t
6008 _ACEOF
6009 ;;
6010   esac
6011
6012
6013 cat >>confdefs.h <<\_ACEOF
6014 #define u_int32_t uint32_t
6015 _ACEOF
6016
6017
6018 fi
6019
6020 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
6021 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
6022 if test "${ac_cv_type_u_int64_t+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h.  */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h.  */
6031 $ac_includes_default
6032 typedef u_int64_t ac__type_new_;
6033 int
6034 main ()
6035 {
6036 if ((ac__type_new_ *) 0)
6037   return 0;
6038 if (sizeof (ac__type_new_))
6039   return 0;
6040   ;
6041   return 0;
6042 }
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (ac_try="$ac_compile"
6046 case "(($ac_try" in
6047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048   *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051   (eval "$ac_compile") 2>conftest.er1
6052   ac_status=$?
6053   grep -v '^ *+' conftest.er1 >conftest.err
6054   rm -f conftest.er1
6055   cat conftest.err >&5
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); } && {
6058          test -z "$ac_c_werror_flag" ||
6059          test ! -s conftest.err
6060        } && test -s conftest.$ac_objext; then
6061   ac_cv_type_u_int64_t=yes
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066         ac_cv_type_u_int64_t=no
6067 fi
6068
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 fi
6071 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6072 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
6073 if test $ac_cv_type_u_int64_t = yes; then
6074   :
6075 else
6076
6077
6078   { echo "$as_me:$LINENO: checking for uint64_t" >&5
6079 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6080 if test "${ac_cv_c_uint64_t+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   ac_cv_c_uint64_t=no
6084      for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
6085          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6086        cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h.  */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h.  */
6092 $ac_includes_default
6093 int
6094 main ()
6095 {
6096 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
6097 test_array [0] = 0
6098
6099   ;
6100   return 0;
6101 }
6102 _ACEOF
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6105 case "(($ac_try" in
6106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107   *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110   (eval "$ac_compile") 2>conftest.er1
6111   ac_status=$?
6112   grep -v '^ *+' conftest.er1 >conftest.err
6113   rm -f conftest.er1
6114   cat conftest.err >&5
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); } && {
6117          test -z "$ac_c_werror_flag" ||
6118          test ! -s conftest.err
6119        } && test -s conftest.$ac_objext; then
6120   case $ac_type in
6121   uint64_t) ac_cv_c_uint64_t=yes ;;
6122   *) ac_cv_c_uint64_t=$ac_type ;;
6123 esac
6124
6125 else
6126   echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129
6130 fi
6131
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133        test "$ac_cv_c_uint64_t" != no && break
6134      done
6135 fi
6136 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
6137 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
6138   case $ac_cv_c_uint64_t in #(
6139   no|yes) ;; #(
6140   *)
6141
6142 cat >>confdefs.h <<\_ACEOF
6143 #define _UINT64_T 1
6144 _ACEOF
6145
6146
6147 cat >>confdefs.h <<_ACEOF
6148 #define uint64_t $ac_cv_c_uint64_t
6149 _ACEOF
6150 ;;
6151   esac
6152
6153
6154 cat >>confdefs.h <<\_ACEOF
6155 #define u_int64_t uint64_t
6156 _ACEOF
6157
6158
6159 fi
6160
6161
6162 # see if ifaddrs.h is available
6163
6164 for ac_header in ifaddrs.h
6165 do
6166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6168   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 fi
6173 ac_res=`eval echo '${'$as_ac_Header'}'`
6174                { echo "$as_me:$LINENO: result: $ac_res" >&5
6175 echo "${ECHO_T}$ac_res" >&6; }
6176 else
6177   # Is the header compilable?
6178 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6180 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h.  */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h.  */
6186 $ac_includes_default
6187 #include <$ac_header>
6188 _ACEOF
6189 rm -f conftest.$ac_objext
6190 if { (ac_try="$ac_compile"
6191 case "(($ac_try" in
6192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193   *) ac_try_echo=$ac_try;;
6194 esac
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196   (eval "$ac_compile") 2>conftest.er1
6197   ac_status=$?
6198   grep -v '^ *+' conftest.er1 >conftest.err
6199   rm -f conftest.er1
6200   cat conftest.err >&5
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); } && {
6203          test -z "$ac_c_werror_flag" ||
6204          test ! -s conftest.err
6205        } && test -s conftest.$ac_objext; then
6206   ac_header_compiler=yes
6207 else
6208   echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211         ac_header_compiler=no
6212 fi
6213
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6216 echo "${ECHO_T}$ac_header_compiler" >&6; }
6217
6218 # Is the header present?
6219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h.  */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h.  */
6227 #include <$ac_header>
6228 _ACEOF
6229 if { (ac_try="$ac_cpp conftest.$ac_ext"
6230 case "(($ac_try" in
6231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232   *) ac_try_echo=$ac_try;;
6233 esac
6234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6236   ac_status=$?
6237   grep -v '^ *+' conftest.er1 >conftest.err
6238   rm -f conftest.er1
6239   cat conftest.err >&5
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); } >/dev/null && {
6242          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6243          test ! -s conftest.err
6244        }; then
6245   ac_header_preproc=yes
6246 else
6247   echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6249
6250   ac_header_preproc=no
6251 fi
6252
6253 rm -f conftest.err conftest.$ac_ext
6254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6255 echo "${ECHO_T}$ac_header_preproc" >&6; }
6256
6257 # So?  What about this header?
6258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6259   yes:no: )
6260     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6264     ac_header_preproc=yes
6265     ;;
6266   no:yes:* )
6267     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6269     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6270 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6271     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6273     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6274 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6277     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6279     ( cat <<\_ASBOX
6280 ## --------------------------------- ##
6281 ## Report this to dhcp-users@isc.org ##
6282 ## --------------------------------- ##
6283 _ASBOX
6284      ) | sed "s/^/$as_me: WARNING:     /" >&2
6285     ;;
6286 esac
6287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   eval "$as_ac_Header=\$ac_header_preproc"
6293 fi
6294 ac_res=`eval echo '${'$as_ac_Header'}'`
6295                { echo "$as_me:$LINENO: result: $ac_res" >&5
6296 echo "${ECHO_T}$ac_res" >&6; }
6297
6298 fi
6299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6300   cat >>confdefs.h <<_ACEOF
6301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6302 _ACEOF
6303
6304 fi
6305
6306 done
6307
6308
6309 # figure out what IPv4 interface code to use
6310
6311 for ac_header in linux/types.h
6312 do
6313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6315   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 fi
6320 ac_res=`eval echo '${'$as_ac_Header'}'`
6321                { echo "$as_me:$LINENO: result: $ac_res" >&5
6322 echo "${ECHO_T}$ac_res" >&6; }
6323 else
6324   # Is the header compilable?
6325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6327 cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h.  */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h.  */
6333 $ac_includes_default
6334 #include <$ac_header>
6335 _ACEOF
6336 rm -f conftest.$ac_objext
6337 if { (ac_try="$ac_compile"
6338 case "(($ac_try" in
6339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340   *) ac_try_echo=$ac_try;;
6341 esac
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343   (eval "$ac_compile") 2>conftest.er1
6344   ac_status=$?
6345   grep -v '^ *+' conftest.er1 >conftest.err
6346   rm -f conftest.er1
6347   cat conftest.err >&5
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); } && {
6350          test -z "$ac_c_werror_flag" ||
6351          test ! -s conftest.err
6352        } && test -s conftest.$ac_objext; then
6353   ac_header_compiler=yes
6354 else
6355   echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358         ac_header_compiler=no
6359 fi
6360
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6363 echo "${ECHO_T}$ac_header_compiler" >&6; }
6364
6365 # Is the header present?
6366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h.  */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h.  */
6374 #include <$ac_header>
6375 _ACEOF
6376 if { (ac_try="$ac_cpp conftest.$ac_ext"
6377 case "(($ac_try" in
6378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379   *) ac_try_echo=$ac_try;;
6380 esac
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6383   ac_status=$?
6384   grep -v '^ *+' conftest.er1 >conftest.err
6385   rm -f conftest.er1
6386   cat conftest.err >&5
6387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388   (exit $ac_status); } >/dev/null && {
6389          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6390          test ! -s conftest.err
6391        }; then
6392   ac_header_preproc=yes
6393 else
6394   echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397   ac_header_preproc=no
6398 fi
6399
6400 rm -f conftest.err conftest.$ac_ext
6401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6402 echo "${ECHO_T}$ac_header_preproc" >&6; }
6403
6404 # So?  What about this header?
6405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6406   yes:no: )
6407     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6411     ac_header_preproc=yes
6412     ;;
6413   no:yes:* )
6414     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6416     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6417 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6418     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6420     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6421 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6424     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6426     ( cat <<\_ASBOX
6427 ## --------------------------------- ##
6428 ## Report this to dhcp-users@isc.org ##
6429 ## --------------------------------- ##
6430 _ASBOX
6431      ) | sed "s/^/$as_me: WARNING:     /" >&2
6432     ;;
6433 esac
6434 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6437   echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439   eval "$as_ac_Header=\$ac_header_preproc"
6440 fi
6441 ac_res=`eval echo '${'$as_ac_Header'}'`
6442                { echo "$as_me:$LINENO: result: $ac_res" >&5
6443 echo "${ECHO_T}$ac_res" >&6; }
6444
6445 fi
6446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6447   cat >>confdefs.h <<_ACEOF
6448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6449 _ACEOF
6450
6451 fi
6452
6453 done
6454   # needed for linux/filter.h on old systems
6455
6456 { echo "$as_me:$LINENO: checking for linux/filter.h" >&5
6457 echo $ECHO_N "checking for linux/filter.h... $ECHO_C" >&6; }
6458 if test "${ac_cv_header_linux_filter_h+set}" = set; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467
6468 #ifdef HAVE_LINUX_TYPES_H
6469 #include <linux/types.h>
6470 #endif
6471
6472
6473 #include <linux/filter.h>
6474 _ACEOF
6475 rm -f conftest.$ac_objext
6476 if { (ac_try="$ac_compile"
6477 case "(($ac_try" in
6478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479   *) ac_try_echo=$ac_try;;
6480 esac
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482   (eval "$ac_compile") 2>conftest.er1
6483   ac_status=$?
6484   grep -v '^ *+' conftest.er1 >conftest.err
6485   rm -f conftest.er1
6486   cat conftest.err >&5
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); } && {
6489          test -z "$ac_c_werror_flag" ||
6490          test ! -s conftest.err
6491        } && test -s conftest.$ac_objext; then
6492   ac_cv_header_linux_filter_h=yes
6493 else
6494   echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6496
6497         ac_cv_header_linux_filter_h=no
6498 fi
6499
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 fi
6502 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_filter_h" >&5
6503 echo "${ECHO_T}$ac_cv_header_linux_filter_h" >&6; }
6504 if test $ac_cv_header_linux_filter_h = yes; then
6505   DO_LPF=1
6506 fi
6507
6508
6509 if test -n "$DO_LPF"
6510 then
6511
6512 cat >>confdefs.h <<\_ACEOF
6513 #define HAVE_LPF 1
6514 _ACEOF
6515
6516 else
6517         if test "${ac_cv_header_sys_dlpi_h+set}" = set; then
6518   { echo "$as_me:$LINENO: checking for sys/dlpi.h" >&5
6519 echo $ECHO_N "checking for sys/dlpi.h... $ECHO_C" >&6; }
6520 if test "${ac_cv_header_sys_dlpi_h+set}" = set; then
6521   echo $ECHO_N "(cached) $ECHO_C" >&6
6522 fi
6523 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dlpi_h" >&5
6524 echo "${ECHO_T}$ac_cv_header_sys_dlpi_h" >&6; }
6525 else
6526   # Is the header compilable?
6527 { echo "$as_me:$LINENO: checking sys/dlpi.h usability" >&5
6528 echo $ECHO_N "checking sys/dlpi.h usability... $ECHO_C" >&6; }
6529 cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h.  */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h.  */
6535 $ac_includes_default
6536 #include <sys/dlpi.h>
6537 _ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (ac_try="$ac_compile"
6540 case "(($ac_try" in
6541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542   *) ac_try_echo=$ac_try;;
6543 esac
6544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545   (eval "$ac_compile") 2>conftest.er1
6546   ac_status=$?
6547   grep -v '^ *+' conftest.er1 >conftest.err
6548   rm -f conftest.er1
6549   cat conftest.err >&5
6550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551   (exit $ac_status); } && {
6552          test -z "$ac_c_werror_flag" ||
6553          test ! -s conftest.err
6554        } && test -s conftest.$ac_objext; then
6555   ac_header_compiler=yes
6556 else
6557   echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6559
6560         ac_header_compiler=no
6561 fi
6562
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6565 echo "${ECHO_T}$ac_header_compiler" >&6; }
6566
6567 # Is the header present?
6568 { echo "$as_me:$LINENO: checking sys/dlpi.h presence" >&5
6569 echo $ECHO_N "checking sys/dlpi.h presence... $ECHO_C" >&6; }
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h.  */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h.  */
6576 #include <sys/dlpi.h>
6577 _ACEOF
6578 if { (ac_try="$ac_cpp conftest.$ac_ext"
6579 case "(($ac_try" in
6580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581   *) ac_try_echo=$ac_try;;
6582 esac
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6585   ac_status=$?
6586   grep -v '^ *+' conftest.er1 >conftest.err
6587   rm -f conftest.er1
6588   cat conftest.err >&5
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); } >/dev/null && {
6591          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6592          test ! -s conftest.err
6593        }; then
6594   ac_header_preproc=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599   ac_header_preproc=no
6600 fi
6601
6602 rm -f conftest.err conftest.$ac_ext
6603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6604 echo "${ECHO_T}$ac_header_preproc" >&6; }
6605
6606 # So?  What about this header?
6607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6608   yes:no: )
6609     { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: accepted by the compiler, rejected by the preprocessor!" >&5
6610 echo "$as_me: WARNING: sys/dlpi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6611     { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: proceeding with the compiler's result" >&5
6612 echo "$as_me: WARNING: sys/dlpi.h: proceeding with the compiler's result" >&2;}
6613     ac_header_preproc=yes
6614     ;;
6615   no:yes:* )
6616     { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: present but cannot be compiled" >&5
6617 echo "$as_me: WARNING: sys/dlpi.h: present but cannot be compiled" >&2;}
6618     { echo "$as_me:$LINENO: WARNING: sys/dlpi.h:     check for missing prerequisite headers?" >&5
6619 echo "$as_me: WARNING: sys/dlpi.h:     check for missing prerequisite headers?" >&2;}
6620     { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: see the Autoconf documentation" >&5
6621 echo "$as_me: WARNING: sys/dlpi.h: see the Autoconf documentation" >&2;}
6622     { echo "$as_me:$LINENO: WARNING: sys/dlpi.h:     section \"Present But Cannot Be Compiled\"" >&5
6623 echo "$as_me: WARNING: sys/dlpi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6624     { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: proceeding with the preprocessor's result" >&5
6625 echo "$as_me: WARNING: sys/dlpi.h: proceeding with the preprocessor's result" >&2;}
6626     { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: in the future, the compiler will take precedence" >&5
6627 echo "$as_me: WARNING: sys/dlpi.h: in the future, the compiler will take precedence" >&2;}
6628     ( cat <<\_ASBOX
6629 ## --------------------------------- ##
6630 ## Report this to dhcp-users@isc.org ##
6631 ## --------------------------------- ##
6632 _ASBOX
6633      ) | sed "s/^/$as_me: WARNING:     /" >&2
6634     ;;
6635 esac
6636 { echo "$as_me:$LINENO: checking for sys/dlpi.h" >&5
6637 echo $ECHO_N "checking for sys/dlpi.h... $ECHO_C" >&6; }
6638 if test "${ac_cv_header_sys_dlpi_h+set}" = set; then
6639   echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641   ac_cv_header_sys_dlpi_h=$ac_header_preproc
6642 fi
6643 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dlpi_h" >&5
6644 echo "${ECHO_T}$ac_cv_header_sys_dlpi_h" >&6; }
6645
6646 fi
6647 if test $ac_cv_header_sys_dlpi_h = yes; then
6648   DO_DLPI=1
6649 fi
6650
6651
6652         if test -n "$DO_DLPI"
6653         then
6654
6655 cat >>confdefs.h <<\_ACEOF
6656 #define HAVE_DLPI 1
6657 _ACEOF
6658
6659         else
6660                 if test "${ac_cv_header_net_bpf_h+set}" = set; then
6661   { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
6662 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
6663 if test "${ac_cv_header_net_bpf_h+set}" = set; then
6664   echo $ECHO_N "(cached) $ECHO_C" >&6
6665 fi
6666 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
6667 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
6668 else
6669   # Is the header compilable?
6670 { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
6671 echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h.  */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h.  */
6678 $ac_includes_default
6679 #include <net/bpf.h>
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6683 case "(($ac_try" in
6684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685   *) ac_try_echo=$ac_try;;
6686 esac
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688   (eval "$ac_compile") 2>conftest.er1
6689   ac_status=$?
6690   grep -v '^ *+' conftest.er1 >conftest.err
6691   rm -f conftest.er1
6692   cat conftest.err >&5
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); } && {
6695          test -z "$ac_c_werror_flag" ||
6696          test ! -s conftest.err
6697        } && test -s conftest.$ac_objext; then
6698   ac_header_compiler=yes
6699 else
6700   echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6702
6703         ac_header_compiler=no
6704 fi
6705
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6708 echo "${ECHO_T}$ac_header_compiler" >&6; }
6709
6710 # Is the header present?
6711 { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
6712 echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
6713 cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h.  */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h.  */
6719 #include <net/bpf.h>
6720 _ACEOF
6721 if { (ac_try="$ac_cpp conftest.$ac_ext"
6722 case "(($ac_try" in
6723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724   *) ac_try_echo=$ac_try;;
6725 esac
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6728   ac_status=$?
6729   grep -v '^ *+' conftest.er1 >conftest.err
6730   rm -f conftest.er1
6731   cat conftest.err >&5
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); } >/dev/null && {
6734          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6735          test ! -s conftest.err
6736        }; then
6737   ac_header_preproc=yes
6738 else
6739   echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6741
6742   ac_header_preproc=no
6743 fi
6744
6745 rm -f conftest.err conftest.$ac_ext
6746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6747 echo "${ECHO_T}$ac_header_preproc" >&6; }
6748
6749 # So?  What about this header?
6750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6751   yes:no: )
6752     { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
6753 echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6754     { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5
6755 echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;}
6756     ac_header_preproc=yes
6757     ;;
6758   no:yes:* )
6759     { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
6760 echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
6761     { echo "$as_me:$LINENO: WARNING: net/bpf.h:     check for missing prerequisite headers?" >&5
6762 echo "$as_me: WARNING: net/bpf.h:     check for missing prerequisite headers?" >&2;}
6763     { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
6764 echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
6765     { echo "$as_me:$LINENO: WARNING: net/bpf.h:     section \"Present But Cannot Be Compiled\"" >&5
6766 echo "$as_me: WARNING: net/bpf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6767     { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
6768 echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
6769     { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
6770 echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
6771     ( cat <<\_ASBOX
6772 ## --------------------------------- ##
6773 ## Report this to dhcp-users@isc.org ##
6774 ## --------------------------------- ##
6775 _ASBOX
6776      ) | sed "s/^/$as_me: WARNING:     /" >&2
6777     ;;
6778 esac
6779 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
6780 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
6781 if test "${ac_cv_header_net_bpf_h+set}" = set; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784   ac_cv_header_net_bpf_h=$ac_header_preproc
6785 fi
6786 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
6787 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
6788
6789 fi
6790 if test $ac_cv_header_net_bpf_h = yes; then
6791   DO_BPF=1
6792 fi
6793
6794
6795                 if test -n "$DO_BPF"
6796                 then
6797
6798 cat >>confdefs.h <<\_ACEOF
6799 #define HAVE_BPF ""
6800 _ACEOF
6801
6802                 fi
6803         fi
6804 fi
6805
6806 # SIOCGLIFCONF uses some transport structures.  Trick is not all platforms
6807 # use the same structures.  We like to use 'struct lifconf' and 'struct
6808 # lifreq', but we'll use these other structures if they're present.  HPUX
6809 # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
6810 # int value.
6811 #
6812 { echo "$as_me:$LINENO: checking for struct lifnum" >&5
6813 echo $ECHO_N "checking for struct lifnum... $ECHO_C" >&6; }
6814 cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h.  */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h.  */
6820  #include <sys/types.h>
6821   #include <sys/socket.h>
6822   #include <net/if.h>
6823
6824 int
6825 main ()
6826 {
6827  struct lifnum a;
6828
6829   ;
6830   return 0;
6831 }
6832 _ACEOF
6833 rm -f conftest.$ac_objext
6834 if { (ac_try="$ac_compile"
6835 case "(($ac_try" in
6836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837   *) ac_try_echo=$ac_try;;
6838 esac
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840   (eval "$ac_compile") 2>conftest.er1
6841   ac_status=$?
6842   grep -v '^ *+' conftest.er1 >conftest.err
6843   rm -f conftest.er1
6844   cat conftest.err >&5
6845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); } && {
6847          test -z "$ac_c_werror_flag" ||
6848          test ! -s conftest.err
6849        } && test -s conftest.$ac_objext; then
6850   { echo "$as_me:$LINENO: result: yes" >&5
6851 echo "${ECHO_T}yes" >&6; }
6852
6853 cat >>confdefs.h <<\_ACEOF
6854 #define ISC_PLATFORM_HAVELIFNUM 1
6855 _ACEOF
6856
6857 else
6858   echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6860
6861         { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6863 fi
6864
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866
6867 { echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5
6868 echo $ECHO_N "checking for struct if_laddrconf... $ECHO_C" >&6; }
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h.  */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h.  */
6875  #include <sys/types.h>
6876   #include <net/if6.h>
6877
6878 int
6879 main ()
6880 {
6881  struct if_laddrconf a;
6882
6883   ;
6884   return 0;
6885 }
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6889 case "(($ac_try" in
6890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891   *) ac_try_echo=$ac_try;;
6892 esac
6893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894   (eval "$ac_compile") 2>conftest.er1
6895   ac_status=$?
6896   grep -v '^ *+' conftest.er1 >conftest.err
6897   rm -f conftest.er1
6898   cat conftest.err >&5
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); } && {
6901          test -z "$ac_c_werror_flag" ||
6902          test ! -s conftest.err
6903        } && test -s conftest.$ac_objext; then
6904   { echo "$as_me:$LINENO: result: yes" >&5
6905 echo "${ECHO_T}yes" >&6; }
6906
6907 cat >>confdefs.h <<\_ACEOF
6908 #define ISC_PLATFORM_HAVEIF_LADDRCONF 1
6909 _ACEOF
6910
6911 else
6912   echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6914
6915         { echo "$as_me:$LINENO: result: no" >&5
6916 echo "${ECHO_T}no" >&6; }
6917 fi
6918
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920
6921 { echo "$as_me:$LINENO: checking for struct if_laddrreq" >&5
6922 echo $ECHO_N "checking for struct if_laddrreq... $ECHO_C" >&6; }
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h.  */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h.  */
6929 #include <sys/types.h>
6930  #include <net/if6.h>
6931
6932 int
6933 main ()
6934 {
6935  struct if_laddrreq a;
6936
6937   ;
6938   return 0;
6939 }
6940 _ACEOF
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (ac_try="$ac_link"
6943 case "(($ac_try" in
6944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945   *) ac_try_echo=$ac_try;;
6946 esac
6947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948   (eval "$ac_link") 2>conftest.er1
6949   ac_status=$?
6950   grep -v '^ *+' conftest.er1 >conftest.err
6951   rm -f conftest.er1
6952   cat conftest.err >&5
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); } && {
6955          test -z "$ac_c_werror_flag" ||
6956          test ! -s conftest.err
6957        } && test -s conftest$ac_exeext &&
6958        $as_test_x conftest$ac_exeext; then
6959   { echo "$as_me:$LINENO: result: yes" >&5
6960 echo "${ECHO_T}yes" >&6; }
6961
6962 cat >>confdefs.h <<\_ACEOF
6963 #define ISC_PLATFORM_HAVEIF_LADDRREQ 1
6964 _ACEOF
6965
6966 else
6967   echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6969
6970         { echo "$as_me:$LINENO: result: no" >&5
6971 echo "${ECHO_T}no" >&6; }
6972 fi
6973
6974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6975       conftest$ac_exeext conftest.$ac_ext
6976
6977 # Look for optional headers.
6978
6979
6980
6981
6982 for ac_header in sys/socket.h net/if_dl.h net/if6.h regex.h
6983 do
6984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6986   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 fi
6991 ac_res=`eval echo '${'$as_ac_Header'}'`
6992                { echo "$as_me:$LINENO: result: $ac_res" >&5
6993 echo "${ECHO_T}$ac_res" >&6; }
6994 else
6995   # Is the header compilable?
6996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6998 cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h.  */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h.  */
7004 $ac_includes_default
7005 #include <$ac_header>
7006 _ACEOF
7007 rm -f conftest.$ac_objext
7008 if { (ac_try="$ac_compile"
7009 case "(($ac_try" in
7010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011   *) ac_try_echo=$ac_try;;
7012 esac
7013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7014   (eval "$ac_compile") 2>conftest.er1
7015   ac_status=$?
7016   grep -v '^ *+' conftest.er1 >conftest.err
7017   rm -f conftest.er1
7018   cat conftest.err >&5
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); } && {
7021          test -z "$ac_c_werror_flag" ||
7022          test ! -s conftest.err
7023        } && test -s conftest.$ac_objext; then
7024   ac_header_compiler=yes
7025 else
7026   echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7028
7029         ac_header_compiler=no
7030 fi
7031
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7034 echo "${ECHO_T}$ac_header_compiler" >&6; }
7035
7036 # Is the header present?
7037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7039 cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h.  */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h.  */
7045 #include <$ac_header>
7046 _ACEOF
7047 if { (ac_try="$ac_cpp conftest.$ac_ext"
7048 case "(($ac_try" in
7049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050   *) ac_try_echo=$ac_try;;
7051 esac
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7054   ac_status=$?
7055   grep -v '^ *+' conftest.er1 >conftest.err
7056   rm -f conftest.er1
7057   cat conftest.err >&5
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); } >/dev/null && {
7060          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7061          test ! -s conftest.err
7062        }; then
7063   ac_header_preproc=yes
7064 else
7065   echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7067
7068   ac_header_preproc=no
7069 fi
7070
7071 rm -f conftest.err conftest.$ac_ext
7072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7073 echo "${ECHO_T}$ac_header_preproc" >&6; }
7074
7075 # So?  What about this header?
7076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7077   yes:no: )
7078     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7082     ac_header_preproc=yes
7083     ;;
7084   no:yes:* )
7085     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7087     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7088 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7089     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7091     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7092 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7095     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7097     ( cat <<\_ASBOX
7098 ## --------------------------------- ##
7099 ## Report this to dhcp-users@isc.org ##
7100 ## --------------------------------- ##
7101 _ASBOX
7102      ) | sed "s/^/$as_me: WARNING:     /" >&2
7103     ;;
7104 esac
7105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   eval "$as_ac_Header=\$ac_header_preproc"
7111 fi
7112 ac_res=`eval echo '${'$as_ac_Header'}'`
7113                { echo "$as_me:$LINENO: result: $ac_res" >&5
7114 echo "${ECHO_T}$ac_res" >&6; }
7115
7116 fi
7117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7118   cat >>confdefs.h <<_ACEOF
7119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7120 _ACEOF
7121
7122 fi
7123
7124 done
7125
7126
7127 # Solaris needs some libraries for functions
7128 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7129 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7130 if test "${ac_cv_search_socket+set}" = set; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133   ac_func_search_save_LIBS=$LIBS
7134 cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h.  */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h.  */
7140
7141 /* Override any GCC internal prototype to avoid an error.
7142    Use char because int might match the return type of a GCC
7143    builtin and then its argument prototype would still apply.  */
7144 #ifdef __cplusplus
7145 extern "C"
7146 #endif
7147 char socket ();
7148 int
7149 main ()
7150 {
7151 return socket ();
7152   ;
7153   return 0;
7154 }
7155 _ACEOF
7156 for ac_lib in '' socket; do
7157   if test -z "$ac_lib"; then
7158     ac_res="none required"
7159   else
7160     ac_res=-l$ac_lib
7161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7162   fi
7163   rm -f conftest.$ac_objext conftest$ac_exeext
7164 if { (ac_try="$ac_link"
7165 case "(($ac_try" in
7166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167   *) ac_try_echo=$ac_try;;
7168 esac
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170   (eval "$ac_link") 2>conftest.er1
7171   ac_status=$?
7172   grep -v '^ *+' conftest.er1 >conftest.err
7173   rm -f conftest.er1
7174   cat conftest.err >&5
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); } && {
7177          test -z "$ac_c_werror_flag" ||
7178          test ! -s conftest.err
7179        } && test -s conftest$ac_exeext &&
7180        $as_test_x conftest$ac_exeext; then
7181   ac_cv_search_socket=$ac_res
7182 else
7183   echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186
7187 fi
7188
7189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7190       conftest$ac_exeext
7191   if test "${ac_cv_search_socket+set}" = set; then
7192   break
7193 fi
7194 done
7195 if test "${ac_cv_search_socket+set}" = set; then
7196   :
7197 else
7198   ac_cv_search_socket=no
7199 fi
7200 rm conftest.$ac_ext
7201 LIBS=$ac_func_search_save_LIBS
7202 fi
7203 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7204 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7205 ac_res=$ac_cv_search_socket
7206 if test "$ac_res" != no; then
7207   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7208
7209 fi
7210
7211 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
7212 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
7213 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   ac_func_search_save_LIBS=$LIBS
7217 cat >conftest.$ac_ext <<_ACEOF
7218 /* confdefs.h.  */
7219 _ACEOF
7220 cat confdefs.h >>conftest.$ac_ext
7221 cat >>conftest.$ac_ext <<_ACEOF
7222 /* end confdefs.h.  */
7223
7224 /* Override any GCC internal prototype to avoid an error.
7225    Use char because int might match the return type of a GCC
7226    builtin and then its argument prototype would still apply.  */
7227 #ifdef __cplusplus
7228 extern "C"
7229 #endif
7230 char inet_ntoa ();
7231 int
7232 main ()
7233 {
7234 return inet_ntoa ();
7235   ;
7236   return 0;
7237 }
7238 _ACEOF
7239 for ac_lib in '' nsl; do
7240   if test -z "$ac_lib"; then
7241     ac_res="none required"
7242   else
7243     ac_res=-l$ac_lib
7244     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7245   fi
7246   rm -f conftest.$ac_objext conftest$ac_exeext
7247 if { (ac_try="$ac_link"
7248 case "(($ac_try" in
7249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250   *) ac_try_echo=$ac_try;;
7251 esac
7252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253   (eval "$ac_link") 2>conftest.er1
7254   ac_status=$?
7255   grep -v '^ *+' conftest.er1 >conftest.err
7256   rm -f conftest.er1
7257   cat conftest.err >&5
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } && {
7260          test -z "$ac_c_werror_flag" ||
7261          test ! -s conftest.err
7262        } && test -s conftest$ac_exeext &&
7263        $as_test_x conftest$ac_exeext; then
7264   ac_cv_search_inet_ntoa=$ac_res
7265 else
7266   echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269
7270 fi
7271
7272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7273       conftest$ac_exeext
7274   if test "${ac_cv_search_inet_ntoa+set}" = set; then
7275   break
7276 fi
7277 done
7278 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7279   :
7280 else
7281   ac_cv_search_inet_ntoa=no
7282 fi
7283 rm conftest.$ac_ext
7284 LIBS=$ac_func_search_save_LIBS
7285 fi
7286 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7287 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
7288 ac_res=$ac_cv_search_inet_ntoa
7289 if test "$ac_res" != no; then
7290   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7291
7292 fi
7293
7294
7295 { echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
7296 echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
7297 if test "${ac_cv_search_inet_aton+set}" = set; then
7298   echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300   ac_func_search_save_LIBS=$LIBS
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h.  */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h.  */
7307
7308 /* Override any GCC internal prototype to avoid an error.
7309    Use char because int might match the return type of a GCC
7310    builtin and then its argument prototype would still apply.  */
7311 #ifdef __cplusplus
7312 extern "C"
7313 #endif
7314 char inet_aton ();
7315 int
7316 main ()
7317 {
7318 return inet_aton ();
7319   ;
7320   return 0;
7321 }
7322 _ACEOF
7323 for ac_lib in '' socket nsl; do
7324   if test -z "$ac_lib"; then
7325     ac_res="none required"
7326   else
7327     ac_res=-l$ac_lib
7328     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7329   fi
7330   rm -f conftest.$ac_objext conftest$ac_exeext
7331 if { (ac_try="$ac_link"
7332 case "(($ac_try" in
7333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334   *) ac_try_echo=$ac_try;;
7335 esac
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337   (eval "$ac_link") 2>conftest.er1
7338   ac_status=$?
7339   grep -v '^ *+' conftest.er1 >conftest.err
7340   rm -f conftest.er1
7341   cat conftest.err >&5
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); } && {
7344          test -z "$ac_c_werror_flag" ||
7345          test ! -s conftest.err
7346        } && test -s conftest$ac_exeext &&
7347        $as_test_x conftest$ac_exeext; then
7348   ac_cv_search_inet_aton=$ac_res
7349 else
7350   echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7352
7353
7354 fi
7355
7356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7357       conftest$ac_exeext
7358   if test "${ac_cv_search_inet_aton+set}" = set; then
7359   break
7360 fi
7361 done
7362 if test "${ac_cv_search_inet_aton+set}" = set; then
7363   :
7364 else
7365   ac_cv_search_inet_aton=no
7366 fi
7367 rm conftest.$ac_ext
7368 LIBS=$ac_func_search_save_LIBS
7369 fi
7370 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
7371 echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
7372 ac_res=$ac_cv_search_inet_aton
7373 if test "$ac_res" != no; then
7374   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7375
7376 else
7377
7378 cat >>confdefs.h <<\_ACEOF
7379 #define NEED_INET_ATON 1
7380 _ACEOF
7381
7382 fi
7383
7384
7385 # Check for a standalone regex library.
7386 { echo "$as_me:$LINENO: checking for library containing regcomp" >&5
7387 echo $ECHO_N "checking for library containing regcomp... $ECHO_C" >&6; }
7388 if test "${ac_cv_search_regcomp+set}" = set; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   ac_func_search_save_LIBS=$LIBS
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h.  */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h.  */
7398
7399 /* Override any GCC internal prototype to avoid an error.
7400    Use char because int might match the return type of a GCC
7401    builtin and then its argument prototype would still apply.  */
7402 #ifdef __cplusplus
7403 extern "C"
7404 #endif
7405 char regcomp ();
7406 int
7407 main ()
7408 {
7409 return regcomp ();
7410   ;
7411   return 0;
7412 }
7413 _ACEOF
7414 for ac_lib in '' regex; do
7415   if test -z "$ac_lib"; then
7416     ac_res="none required"
7417   else
7418     ac_res=-l$ac_lib
7419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7420   fi
7421   rm -f conftest.$ac_objext conftest$ac_exeext
7422 if { (ac_try="$ac_link"
7423 case "(($ac_try" in
7424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425   *) ac_try_echo=$ac_try;;
7426 esac
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428   (eval "$ac_link") 2>conftest.er1
7429   ac_status=$?
7430   grep -v '^ *+' conftest.er1 >conftest.err
7431   rm -f conftest.er1
7432   cat conftest.err >&5
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); } && {
7435          test -z "$ac_c_werror_flag" ||
7436          test ! -s conftest.err
7437        } && test -s conftest$ac_exeext &&
7438        $as_test_x conftest$ac_exeext; then
7439   ac_cv_search_regcomp=$ac_res
7440 else
7441   echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7443
7444
7445 fi
7446
7447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7448       conftest$ac_exeext
7449   if test "${ac_cv_search_regcomp+set}" = set; then
7450   break
7451 fi
7452 done
7453 if test "${ac_cv_search_regcomp+set}" = set; then
7454   :
7455 else
7456   ac_cv_search_regcomp=no
7457 fi
7458 rm conftest.$ac_ext
7459 LIBS=$ac_func_search_save_LIBS
7460 fi
7461 { echo "$as_me:$LINENO: result: $ac_cv_search_regcomp" >&5
7462 echo "${ECHO_T}$ac_cv_search_regcomp" >&6; }
7463 ac_res=$ac_cv_search_regcomp
7464 if test "$ac_res" != no; then
7465   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7466
7467 fi
7468
7469
7470 # For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
7471 { echo "$as_me:$LINENO: checking for library containing if_nametoindex" >&5
7472 echo $ECHO_N "checking for library containing if_nametoindex... $ECHO_C" >&6; }
7473 if test "${ac_cv_search_if_nametoindex+set}" = set; then
7474   echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476   ac_func_search_save_LIBS=$LIBS
7477 cat >conftest.$ac_ext <<_ACEOF
7478 /* confdefs.h.  */
7479 _ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h.  */
7483
7484 /* Override any GCC internal prototype to avoid an error.
7485    Use char because int might match the return type of a GCC
7486    builtin and then its argument prototype would still apply.  */
7487 #ifdef __cplusplus
7488 extern "C"
7489 #endif
7490 char if_nametoindex ();
7491 int
7492 main ()
7493 {
7494 return if_nametoindex ();
7495   ;
7496   return 0;
7497 }
7498 _ACEOF
7499 for ac_lib in '' ipv6; do
7500   if test -z "$ac_lib"; then
7501     ac_res="none required"
7502   else
7503     ac_res=-l$ac_lib
7504     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7505   fi
7506   rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (ac_try="$ac_link"
7508 case "(($ac_try" in
7509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510   *) ac_try_echo=$ac_try;;
7511 esac
7512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513   (eval "$ac_link") 2>conftest.er1
7514   ac_status=$?
7515   grep -v '^ *+' conftest.er1 >conftest.err
7516   rm -f conftest.er1
7517   cat conftest.err >&5
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); } && {
7520          test -z "$ac_c_werror_flag" ||
7521          test ! -s conftest.err
7522        } && test -s conftest$ac_exeext &&
7523        $as_test_x conftest$ac_exeext; then
7524   ac_cv_search_if_nametoindex=$ac_res
7525 else
7526   echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7528
7529
7530 fi
7531
7532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7533       conftest$ac_exeext
7534   if test "${ac_cv_search_if_nametoindex+set}" = set; then
7535   break
7536 fi
7537 done
7538 if test "${ac_cv_search_if_nametoindex+set}" = set; then
7539   :
7540 else
7541   ac_cv_search_if_nametoindex=no
7542 fi
7543 rm conftest.$ac_ext
7544 LIBS=$ac_func_search_save_LIBS
7545 fi
7546 { echo "$as_me:$LINENO: result: $ac_cv_search_if_nametoindex" >&5
7547 echo "${ECHO_T}$ac_cv_search_if_nametoindex" >&6; }
7548 ac_res=$ac_cv_search_if_nametoindex
7549 if test "$ac_res" != no; then
7550   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7551
7552 fi
7553
7554
7555 # check for /dev/random (declares HAVE_DEV_RANDOM)
7556 { echo "$as_me:$LINENO: checking for /dev/random" >&5
7557 echo $ECHO_N "checking for /dev/random... $ECHO_C" >&6; }
7558 if test "${ac_cv_file__dev_random+set}" = set; then
7559   echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561   test "$cross_compiling" = yes &&
7562   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
7563 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
7564    { (exit 1); exit 1; }; }
7565 if test -r "/dev/random"; then
7566   ac_cv_file__dev_random=yes
7567 else
7568   ac_cv_file__dev_random=no
7569 fi
7570 fi
7571 { echo "$as_me:$LINENO: result: $ac_cv_file__dev_random" >&5
7572 echo "${ECHO_T}$ac_cv_file__dev_random" >&6; }
7573 if test $ac_cv_file__dev_random = yes; then
7574
7575 cat >>confdefs.h <<\_ACEOF
7576 #define HAVE_DEV_RANDOM 1
7577 _ACEOF
7578
7579 fi
7580
7581
7582 # see if there is a "sa_len" field in our interface information structure
7583 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
7584 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
7585 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h.  */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h.  */
7594 #include <sys/socket.h>
7595
7596 int
7597 main ()
7598 {
7599 static struct sockaddr ac_aggr;
7600 if (ac_aggr.sa_len)
7601 return 0;
7602   ;
7603   return 0;
7604 }
7605 _ACEOF
7606 rm -f conftest.$ac_objext
7607 if { (ac_try="$ac_compile"
7608 case "(($ac_try" in
7609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610   *) ac_try_echo=$ac_try;;
7611 esac
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613   (eval "$ac_compile") 2>conftest.er1
7614   ac_status=$?
7615   grep -v '^ *+' conftest.er1 >conftest.err
7616   rm -f conftest.er1
7617   cat conftest.err >&5
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); } && {
7620          test -z "$ac_c_werror_flag" ||
7621          test ! -s conftest.err
7622        } && test -s conftest.$ac_objext; then
7623   ac_cv_member_struct_sockaddr_sa_len=yes
7624 else
7625   echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7627
7628         cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h.  */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h.  */
7634 #include <sys/socket.h>
7635
7636 int
7637 main ()
7638 {
7639 static struct sockaddr ac_aggr;
7640 if (sizeof ac_aggr.sa_len)
7641 return 0;
7642   ;
7643   return 0;
7644 }
7645 _ACEOF
7646 rm -f conftest.$ac_objext
7647 if { (ac_try="$ac_compile"
7648 case "(($ac_try" in
7649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7650   *) ac_try_echo=$ac_try;;
7651 esac
7652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7653   (eval "$ac_compile") 2>conftest.er1
7654   ac_status=$?
7655   grep -v '^ *+' conftest.er1 >conftest.err
7656   rm -f conftest.er1
7657   cat conftest.err >&5
7658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); } && {
7660          test -z "$ac_c_werror_flag" ||
7661          test ! -s conftest.err
7662        } && test -s conftest.$ac_objext; then
7663   ac_cv_member_struct_sockaddr_sa_len=yes
7664 else
7665   echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7667
7668         ac_cv_member_struct_sockaddr_sa_len=no
7669 fi
7670
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 fi
7673
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 fi
7676 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
7677 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
7678 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
7679
7680 cat >>confdefs.h <<\_ACEOF
7681 #define HAVE_SA_LEN
7682 _ACEOF
7683
7684 fi
7685
7686
7687 # figure out pointer size
7688 { echo "$as_me:$LINENO: checking for struct iaddr *" >&5
7689 echo $ECHO_N "checking for struct iaddr *... $ECHO_C" >&6; }
7690 if test "${ac_cv_type_struct_iaddr_p+set}" = set; then
7691   echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693   cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h.  */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h.  */
7699
7700 #include "includes/inet.h"
7701 #include <stdio.h>
7702
7703
7704 typedef struct iaddr * ac__type_new_;
7705 int
7706 main ()
7707 {
7708 if ((ac__type_new_ *) 0)
7709   return 0;
7710 if (sizeof (ac__type_new_))
7711   return 0;
7712   ;
7713   return 0;
7714 }
7715 _ACEOF
7716 rm -f conftest.$ac_objext
7717 if { (ac_try="$ac_compile"
7718 case "(($ac_try" in
7719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720   *) ac_try_echo=$ac_try;;
7721 esac
7722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7723   (eval "$ac_compile") 2>conftest.er1
7724   ac_status=$?
7725   grep -v '^ *+' conftest.er1 >conftest.err
7726   rm -f conftest.er1
7727   cat conftest.err >&5
7728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729   (exit $ac_status); } && {
7730          test -z "$ac_c_werror_flag" ||
7731          test ! -s conftest.err
7732        } && test -s conftest.$ac_objext; then
7733   ac_cv_type_struct_iaddr_p=yes
7734 else
7735   echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7737
7738         ac_cv_type_struct_iaddr_p=no
7739 fi
7740
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 fi
7743 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_iaddr_p" >&5
7744 echo "${ECHO_T}$ac_cv_type_struct_iaddr_p" >&6; }
7745
7746 # The cast to long int works around a bug in the HP C Compiler
7747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7749 # This bug is HP SR number 8606223364.
7750 { echo "$as_me:$LINENO: checking size of struct iaddr *" >&5
7751 echo $ECHO_N "checking size of struct iaddr *... $ECHO_C" >&6; }
7752 if test "${ac_cv_sizeof_struct_iaddr_p+set}" = set; then
7753   echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755   if test "$cross_compiling" = yes; then
7756   # Depending upon the size, compute the lo and hi bounds.
7757 cat >conftest.$ac_ext <<_ACEOF
7758 /* confdefs.h.  */
7759 _ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h.  */
7763
7764 #include "includes/inet.h"
7765 #include <stdio.h>
7766
7767
7768    typedef struct iaddr * ac__type_sizeof_;
7769 int
7770 main ()
7771 {
7772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7773 test_array [0] = 0
7774
7775   ;
7776   return 0;
7777 }
7778 _ACEOF
7779 rm -f conftest.$ac_objext
7780 if { (ac_try="$ac_compile"
7781 case "(($ac_try" in
7782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783   *) ac_try_echo=$ac_try;;
7784 esac
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786   (eval "$ac_compile") 2>conftest.er1
7787   ac_status=$?
7788   grep -v '^ *+' conftest.er1 >conftest.err
7789   rm -f conftest.er1
7790   cat conftest.err >&5
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); } && {
7793          test -z "$ac_c_werror_flag" ||
7794          test ! -s conftest.err
7795        } && test -s conftest.$ac_objext; then
7796   ac_lo=0 ac_mid=0
7797   while :; do
7798     cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h.  */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h.  */
7804
7805 #include "includes/inet.h"
7806 #include <stdio.h>
7807
7808
7809    typedef struct iaddr * ac__type_sizeof_;
7810 int
7811 main ()
7812 {
7813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7814 test_array [0] = 0
7815
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7822 case "(($ac_try" in
7823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824   *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827   (eval "$ac_compile") 2>conftest.er1
7828   ac_status=$?
7829   grep -v '^ *+' conftest.er1 >conftest.err
7830   rm -f conftest.er1
7831   cat conftest.err >&5
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); } && {
7834          test -z "$ac_c_werror_flag" ||
7835          test ! -s conftest.err
7836        } && test -s conftest.$ac_objext; then
7837   ac_hi=$ac_mid; break
7838 else
7839   echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7841
7842         ac_lo=`expr $ac_mid + 1`
7843                         if test $ac_lo -le $ac_mid; then
7844                           ac_lo= ac_hi=
7845                           break
7846                         fi
7847                         ac_mid=`expr 2 '*' $ac_mid + 1`
7848 fi
7849
7850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851   done
7852 else
7853   echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.$ac_ext >&5
7855
7856         cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h.  */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h.  */
7862
7863 #include "includes/inet.h"
7864 #include <stdio.h>
7865
7866
7867    typedef struct iaddr * ac__type_sizeof_;
7868 int
7869 main ()
7870 {
7871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7872 test_array [0] = 0
7873
7874   ;
7875   return 0;
7876 }
7877 _ACEOF
7878 rm -f conftest.$ac_objext
7879 if { (ac_try="$ac_compile"
7880 case "(($ac_try" in
7881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882   *) ac_try_echo=$ac_try;;
7883 esac
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885   (eval "$ac_compile") 2>conftest.er1
7886   ac_status=$?
7887   grep -v '^ *+' conftest.er1 >conftest.err
7888   rm -f conftest.er1
7889   cat conftest.err >&5
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); } && {
7892          test -z "$ac_c_werror_flag" ||
7893          test ! -s conftest.err
7894        } && test -s conftest.$ac_objext; then
7895   ac_hi=-1 ac_mid=-1
7896   while :; do
7897     cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h.  */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h.  */
7903
7904 #include "includes/inet.h"
7905 #include <stdio.h>
7906
7907
7908    typedef struct iaddr * ac__type_sizeof_;
7909 int
7910 main ()
7911 {
7912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7913 test_array [0] = 0
7914
7915   ;
7916   return 0;
7917 }
7918 _ACEOF
7919 rm -f conftest.$ac_objext
7920 if { (ac_try="$ac_compile"
7921 case "(($ac_try" in
7922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923   *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926   (eval "$ac_compile") 2>conftest.er1
7927   ac_status=$?
7928   grep -v '^ *+' conftest.er1 >conftest.err
7929   rm -f conftest.er1
7930   cat conftest.err >&5
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); } && {
7933          test -z "$ac_c_werror_flag" ||
7934          test ! -s conftest.err
7935        } && test -s conftest.$ac_objext; then
7936   ac_lo=$ac_mid; break
7937 else
7938   echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7940
7941         ac_hi=`expr '(' $ac_mid ')' - 1`
7942                         if test $ac_mid -le $ac_hi; then
7943                           ac_lo= ac_hi=
7944                           break
7945                         fi
7946                         ac_mid=`expr 2 '*' $ac_mid`
7947 fi
7948
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950   done
7951 else
7952   echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7954
7955         ac_lo= ac_hi=
7956 fi
7957
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 fi
7960
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 # Binary search between lo and hi bounds.
7963 while test "x$ac_lo" != "x$ac_hi"; do
7964   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7965   cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h.  */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h.  */
7971
7972 #include "includes/inet.h"
7973 #include <stdio.h>
7974
7975
7976    typedef struct iaddr * ac__type_sizeof_;
7977 int
7978 main ()
7979 {
7980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7981 test_array [0] = 0
7982
7983   ;
7984   return 0;
7985 }
7986 _ACEOF
7987 rm -f conftest.$ac_objext
7988 if { (ac_try="$ac_compile"
7989 case "(($ac_try" in
7990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991   *) ac_try_echo=$ac_try;;
7992 esac
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994   (eval "$ac_compile") 2>conftest.er1
7995   ac_status=$?
7996   grep -v '^ *+' conftest.er1 >conftest.err
7997   rm -f conftest.er1
7998   cat conftest.err >&5
7999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000   (exit $ac_status); } && {
8001          test -z "$ac_c_werror_flag" ||
8002          test ! -s conftest.err
8003        } && test -s conftest.$ac_objext; then
8004   ac_hi=$ac_mid
8005 else
8006   echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8008
8009         ac_lo=`expr '(' $ac_mid ')' + 1`
8010 fi
8011
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 done
8014 case $ac_lo in
8015 ?*) ac_cv_sizeof_struct_iaddr_p=$ac_lo;;
8016 '') if test "$ac_cv_type_struct_iaddr_p" = yes; then
8017      { { echo "$as_me:$LINENO: error: cannot compute sizeof (struct iaddr *)
8018 See \`config.log' for more details." >&5
8019 echo "$as_me: error: cannot compute sizeof (struct iaddr *)
8020 See \`config.log' for more details." >&2;}
8021    { (exit 77); exit 77; }; }
8022    else
8023      ac_cv_sizeof_struct_iaddr_p=0
8024    fi ;;
8025 esac
8026 else
8027   cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h.  */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h.  */
8033
8034 #include "includes/inet.h"
8035 #include <stdio.h>
8036
8037
8038    typedef struct iaddr * ac__type_sizeof_;
8039 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8040 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8041 #include <stdio.h>
8042 #include <stdlib.h>
8043 int
8044 main ()
8045 {
8046
8047   FILE *f = fopen ("conftest.val", "w");
8048   if (! f)
8049     return 1;
8050   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8051     {
8052       long int i = longval ();
8053       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8054         return 1;
8055       fprintf (f, "%ld\n", i);
8056     }
8057   else
8058     {
8059       unsigned long int i = ulongval ();
8060       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8061         return 1;
8062       fprintf (f, "%lu\n", i);
8063     }
8064   return ferror (f) || fclose (f) != 0;
8065
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 rm -f conftest$ac_exeext
8071 if { (ac_try="$ac_link"
8072 case "(($ac_try" in
8073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074   *) ac_try_echo=$ac_try;;
8075 esac
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077   (eval "$ac_link") 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8081   { (case "(($ac_try" in
8082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083   *) ac_try_echo=$ac_try;;
8084 esac
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086   (eval "$ac_try") 2>&5
8087   ac_status=$?
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); }; }; then
8090   ac_cv_sizeof_struct_iaddr_p=`cat conftest.val`
8091 else
8092   echo "$as_me: program exited with status $ac_status" >&5
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096 ( exit $ac_status )
8097 if test "$ac_cv_type_struct_iaddr_p" = yes; then
8098      { { echo "$as_me:$LINENO: error: cannot compute sizeof (struct iaddr *)
8099 See \`config.log' for more details." >&5
8100 echo "$as_me: error: cannot compute sizeof (struct iaddr *)
8101 See \`config.log' for more details." >&2;}
8102    { (exit 77); exit 77; }; }
8103    else
8104      ac_cv_sizeof_struct_iaddr_p=0
8105    fi
8106 fi
8107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8108 fi
8109 rm -f conftest.val
8110 fi
8111 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_struct_iaddr_p" >&5
8112 echo "${ECHO_T}$ac_cv_sizeof_struct_iaddr_p" >&6; }
8113
8114
8115
8116 cat >>confdefs.h <<_ACEOF
8117 #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
8118 _ACEOF
8119
8120
8121
8122 # Solaris does not have the msg_control or msg_controlen members in
8123 # in the msghdr structure unless you define:
8124 #
8125 #   _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
8126 #
8127 # See the "standards" man page for details.
8128 #
8129 # We check for the msg_control member, and if it is not found, we check
8130 # again with the appropriate defines added to the CFLAGS. (In order to
8131 # do this we have to remove the check from the cache, which is what the
8132 # "unset" is for.)
8133 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
8134 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
8135 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
8136   echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138   cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h.  */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h.  */
8144
8145 #include <sys/types.h>
8146 #include <sys/socket.h>
8147
8148
8149 int
8150 main ()
8151 {
8152 static struct msghdr ac_aggr;
8153 if (ac_aggr.msg_control)
8154 return 0;
8155   ;
8156   return 0;
8157 }
8158 _ACEOF
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8161 case "(($ac_try" in
8162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163   *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166   (eval "$ac_compile") 2>conftest.er1
8167   ac_status=$?
8168   grep -v '^ *+' conftest.er1 >conftest.err
8169   rm -f conftest.er1
8170   cat conftest.err >&5
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); } && {
8173          test -z "$ac_c_werror_flag" ||
8174          test ! -s conftest.err
8175        } && test -s conftest.$ac_objext; then
8176   ac_cv_member_struct_msghdr_msg_control=yes
8177 else
8178   echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8180
8181         cat >conftest.$ac_ext <<_ACEOF
8182 /* confdefs.h.  */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h.  */
8187
8188 #include <sys/types.h>
8189 #include <sys/socket.h>
8190
8191
8192 int
8193 main ()
8194 {
8195 static struct msghdr ac_aggr;
8196 if (sizeof ac_aggr.msg_control)
8197 return 0;
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8204 case "(($ac_try" in
8205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206   *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209   (eval "$ac_compile") 2>conftest.er1
8210   ac_status=$?
8211   grep -v '^ *+' conftest.er1 >conftest.err
8212   rm -f conftest.er1
8213   cat conftest.err >&5
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); } && {
8216          test -z "$ac_c_werror_flag" ||
8217          test ! -s conftest.err
8218        } && test -s conftest.$ac_objext; then
8219   ac_cv_member_struct_msghdr_msg_control=yes
8220 else
8221   echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8223
8224         ac_cv_member_struct_msghdr_msg_control=no
8225 fi
8226
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228 fi
8229
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231 fi
8232 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
8233 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
8234 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
8235   :
8236 else
8237   CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8238          CFLAGS="$CFLAGS -D__EXTENSIONS__"
8239          unset ac_cv_member_struct_msghdr_msg_control
8240          { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
8241 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
8242 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245   cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h.  */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h.  */
8251
8252 #include <sys/types.h>
8253 #include <sys/socket.h>
8254
8255
8256 int
8257 main ()
8258 {
8259 static struct msghdr ac_aggr;
8260 if (ac_aggr.msg_control)
8261 return 0;
8262   ;
8263   return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8268 case "(($ac_try" in
8269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270   *) ac_try_echo=$ac_try;;
8271 esac
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273   (eval "$ac_compile") 2>conftest.er1
8274   ac_status=$?
8275   grep -v '^ *+' conftest.er1 >conftest.err
8276   rm -f conftest.er1
8277   cat conftest.err >&5
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); } && {
8280          test -z "$ac_c_werror_flag" ||
8281          test ! -s conftest.err
8282        } && test -s conftest.$ac_objext; then
8283   ac_cv_member_struct_msghdr_msg_control=yes
8284 else
8285   echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8287
8288         cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h.  */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h.  */
8294
8295 #include <sys/types.h>
8296 #include <sys/socket.h>
8297
8298
8299 int
8300 main ()
8301 {
8302 static struct msghdr ac_aggr;
8303 if (sizeof ac_aggr.msg_control)
8304 return 0;
8305   ;
8306   return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8311 case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316   (eval "$ac_compile") 2>conftest.er1
8317   ac_status=$?
8318   grep -v '^ *+' conftest.er1 >conftest.err
8319   rm -f conftest.er1
8320   cat conftest.err >&5
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); } && {
8323          test -z "$ac_c_werror_flag" ||
8324          test ! -s conftest.err
8325        } && test -s conftest.$ac_objext; then
8326   ac_cv_member_struct_msghdr_msg_control=yes
8327 else
8328   echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8330
8331         ac_cv_member_struct_msghdr_msg_control=no
8332 fi
8333
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 fi
8336
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338 fi
8339 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
8340 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
8341 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
8342   :
8343 else
8344   { { echo "$as_me:$LINENO: error: Missing msg_control member in
8345                                msg_control structure." >&5
8346 echo "$as_me: error: Missing msg_control member in
8347                                msg_control structure." >&2;}
8348    { (exit 1); exit 1; }; }
8349 fi
8350
8351
8352 fi
8353
8354
8355 libbind=
8356
8357 # Check whether --with-libbind was given.
8358 if test "${with_libbind+set}" = set; then
8359   withval=$with_libbind; use_libbind="$withval"
8360 else
8361   use_libbind="no"
8362 fi
8363
8364 case "$use_libbind" in
8365 yes)
8366         libbind="\${top_srcdir}/bind"
8367         ;;
8368 no)
8369         libbind="\${top_srcdir}/bind"
8370         ;;
8371 *)
8372         libbind="$use_libbind"
8373         ;;
8374 esac
8375
8376 # OpenLDAP support.
8377
8378 # Check whether --with-ldap was given.
8379 if test "${with_ldap+set}" = set; then
8380   withval=$with_ldap; ldap=$withval
8381 else
8382   ldap=no
8383 fi
8384
8385
8386 # OpenLDAP with SSL support.
8387
8388 # Check whether --with-ldapcrypto was given.
8389 if test "${with_ldapcrypto+set}" = set; then
8390   withval=$with_ldapcrypto; ldapcrypto=$withval
8391 else
8392   ldapcrypto=no
8393 fi
8394
8395
8396 # OpenLDAP support is disabled by default, if enabled then SSL support is an
8397 # extra optional that is also disabled by default.  Enabling LDAP SSL support
8398 # implies enabling LDAP support.
8399 if test x$ldap = xyes || test x$ldapcrypto = xyes ; then
8400     { echo "$as_me:$LINENO: checking for library containing ldap_initialize" >&5
8401 echo $ECHO_N "checking for library containing ldap_initialize... $ECHO_C" >&6; }
8402 if test "${ac_cv_search_ldap_initialize+set}" = set; then
8403   echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405   ac_func_search_save_LIBS=$LIBS
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h.  */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h.  */
8412
8413 /* Override any GCC internal prototype to avoid an error.
8414    Use char because int might match the return type of a GCC
8415    builtin and then its argument prototype would still apply.  */
8416 #ifdef __cplusplus
8417 extern "C"
8418 #endif
8419 char ldap_initialize ();
8420 int
8421 main ()
8422 {
8423 return ldap_initialize ();
8424   ;
8425   return 0;
8426 }
8427 _ACEOF
8428 for ac_lib in '' ldap; do
8429   if test -z "$ac_lib"; then
8430     ac_res="none required"
8431   else
8432     ac_res=-l$ac_lib
8433     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8434   fi
8435   rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (ac_try="$ac_link"
8437 case "(($ac_try" in
8438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439   *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442   (eval "$ac_link") 2>conftest.er1
8443   ac_status=$?
8444   grep -v '^ *+' conftest.er1 >conftest.err
8445   rm -f conftest.er1
8446   cat conftest.err >&5
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); } && {
8449          test -z "$ac_c_werror_flag" ||
8450          test ! -s conftest.err
8451        } && test -s conftest$ac_exeext &&
8452        $as_test_x conftest$ac_exeext; then
8453   ac_cv_search_ldap_initialize=$ac_res
8454 else
8455   echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458
8459 fi
8460
8461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8462       conftest$ac_exeext
8463   if test "${ac_cv_search_ldap_initialize+set}" = set; then
8464   break
8465 fi
8466 done
8467 if test "${ac_cv_search_ldap_initialize+set}" = set; then
8468   :
8469 else
8470   ac_cv_search_ldap_initialize=no
8471 fi
8472 rm conftest.$ac_ext
8473 LIBS=$ac_func_search_save_LIBS
8474 fi
8475 { echo "$as_me:$LINENO: result: $ac_cv_search_ldap_initialize" >&5
8476 echo "${ECHO_T}$ac_cv_search_ldap_initialize" >&6; }
8477 ac_res=$ac_cv_search_ldap_initialize
8478 if test "$ac_res" != no; then
8479   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8480
8481 else
8482   { { echo "$as_me:$LINENO: error: *** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
8483 See \`config.log' for more details." >&5
8484 echo "$as_me: error: *** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
8485 See \`config.log' for more details." >&2;}
8486    { (exit 1); exit 1; }; }
8487 fi
8488
8489     { echo "$as_me:$LINENO: checking for library containing ber_pvt_opt_on" >&5
8490 echo $ECHO_N "checking for library containing ber_pvt_opt_on... $ECHO_C" >&6; }
8491 if test "${ac_cv_search_ber_pvt_opt_on+set}" = set; then
8492   echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494   ac_func_search_save_LIBS=$LIBS
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501
8502 /* Override any GCC internal prototype to avoid an error.
8503    Use char because int might match the return type of a GCC
8504    builtin and then its argument prototype would still apply.  */
8505 #ifdef __cplusplus
8506 extern "C"
8507 #endif
8508 char ber_pvt_opt_on ();
8509 int
8510 main ()
8511 {
8512 return ber_pvt_opt_on ();
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 for ac_lib in '' lber; do
8518   if test -z "$ac_lib"; then
8519     ac_res="none required"
8520   else
8521     ac_res=-l$ac_lib
8522     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8523   fi
8524   rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8526 case "(($ac_try" in
8527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528   *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531   (eval "$ac_link") 2>conftest.er1
8532   ac_status=$?
8533   grep -v '^ *+' conftest.er1 >conftest.err
8534   rm -f conftest.er1
8535   cat conftest.err >&5
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); } && {
8538          test -z "$ac_c_werror_flag" ||
8539          test ! -s conftest.err
8540        } && test -s conftest$ac_exeext &&
8541        $as_test_x conftest$ac_exeext; then
8542   ac_cv_search_ber_pvt_opt_on=$ac_res
8543 else
8544   echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8546
8547
8548 fi
8549
8550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8551       conftest$ac_exeext
8552   if test "${ac_cv_search_ber_pvt_opt_on+set}" = set; then
8553   break
8554 fi
8555 done
8556 if test "${ac_cv_search_ber_pvt_opt_on+set}" = set; then
8557   :
8558 else
8559   ac_cv_search_ber_pvt_opt_on=no
8560 fi
8561 rm conftest.$ac_ext
8562 LIBS=$ac_func_search_save_LIBS
8563 fi
8564 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_pvt_opt_on" >&5
8565 echo "${ECHO_T}$ac_cv_search_ber_pvt_opt_on" >&6; }
8566 ac_res=$ac_cv_search_ber_pvt_opt_on
8567 if test "$ac_res" != no; then
8568   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8569
8570 else
8571   { { echo "$as_me:$LINENO: error: *** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
8572 See \`config.log' for more details." >&5
8573 echo "$as_me: error: *** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
8574 See \`config.log' for more details." >&2;}
8575    { (exit 1); exit 1; }; }
8576 fi
8577
8578
8579     if test x$ldapcrypto = xyes ; then
8580         LDAP_CFLAGS="-DLDAP_CONFIGURATION -DLDAP_USE_SSL"
8581
8582     else
8583         LDAP_CFLAGS="-DLDAP_CONFIGURATION"
8584
8585     fi
8586 fi
8587
8588 # Append selected warning levels to CFLAGS before substitution (but after
8589 # AC_TRY_COMPILE & etc).
8590 CFLAGS="$CFLAGS $STD_CWARNINGS"
8591
8592 # Try to add the bind include directory
8593 CFLAGS="$CFLAGS -I$libbind/include"
8594
8595
8596   { echo "$as_me:$LINENO: checking for flexible array members" >&5
8597 echo $ECHO_N "checking for flexible array members... $ECHO_C" >&6; }
8598 if test "${ac_cv_c_flexmember+set}" = set; then
8599   echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601   cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607 #include <stdlib.h>
8608             #include <stdio.h>
8609             #include <stddef.h>
8610             struct s { int n; double d[]; };
8611 int
8612 main ()
8613 {
8614 int m = getchar ();
8615             struct s *p = malloc (offsetof (struct s, d)
8616                                   + m * sizeof (double));
8617             p->d[0] = 0.0;
8618             return p->d != (double *) NULL;
8619   ;
8620   return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext
8624 if { (ac_try="$ac_compile"
8625 case "(($ac_try" in
8626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627   *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630   (eval "$ac_compile") 2>conftest.er1
8631   ac_status=$?
8632   grep -v '^ *+' conftest.er1 >conftest.err
8633   rm -f conftest.er1
8634   cat conftest.err >&5
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); } && {
8637          test -z "$ac_c_werror_flag" ||
8638          test ! -s conftest.err
8639        } && test -s conftest.$ac_objext; then
8640   ac_cv_c_flexmember=yes
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645         ac_cv_c_flexmember=no
8646 fi
8647
8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 fi
8650 { echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
8651 echo "${ECHO_T}$ac_cv_c_flexmember" >&6; }
8652   if test $ac_cv_c_flexmember = yes; then
8653
8654 cat >>confdefs.h <<\_ACEOF
8655 #define FLEXIBLE_ARRAY_MEMBER
8656 _ACEOF
8657
8658   else
8659     cat >>confdefs.h <<\_ACEOF
8660 #define FLEXIBLE_ARRAY_MEMBER 1
8661 _ACEOF
8662
8663   fi
8664
8665
8666 ac_config_files="$ac_config_files Makefile client/Makefile common/Makefile common/tests/Makefile dhcpctl/Makefile dst/Makefile includes/Makefile omapip/Makefile relay/Makefile server/Makefile tests/Makefile"
8667
8668 cat >confcache <<\_ACEOF
8669 # This file is a shell script that caches the results of configure
8670 # tests run on this system so they can be shared between configure
8671 # scripts and configure runs, see configure's option --config-cache.
8672 # It is not useful on other systems.  If it contains results you don't
8673 # want to keep, you may remove or edit it.
8674 #
8675 # config.status only pays attention to the cache file if you give it
8676 # the --recheck option to rerun configure.
8677 #
8678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8680 # following values.
8681
8682 _ACEOF
8683
8684 # The following way of writing the cache mishandles newlines in values,
8685 # but we know of no workaround that is simple, portable, and efficient.
8686 # So, we kill variables containing newlines.
8687 # Ultrix sh set writes to stderr and can't be redirected directly,
8688 # and sets the high bit in the cache file unless we assign to the vars.
8689 (
8690   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8691     eval ac_val=\$$ac_var
8692     case $ac_val in #(
8693     *${as_nl}*)
8694       case $ac_var in #(
8695       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8696 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8697       esac
8698       case $ac_var in #(
8699       _ | IFS | as_nl) ;; #(
8700       *) $as_unset $ac_var ;;
8701       esac ;;
8702     esac
8703   done
8704
8705   (set) 2>&1 |
8706     case $as_nl`(ac_space=' '; set) 2>&1` in #(
8707     *${as_nl}ac_space=\ *)
8708       # `set' does not quote correctly, so add quotes (double-quote
8709       # substitution turns \\\\ into \\, and sed turns \\ into \).
8710       sed -n \
8711         "s/'/'\\\\''/g;
8712           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8713       ;; #(
8714     *)
8715       # `set' quotes correctly as required by POSIX, so do not add quotes.
8716       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8717       ;;
8718     esac |
8719     sort
8720 ) |
8721   sed '
8722      /^ac_cv_env_/b end
8723      t clear
8724      :clear
8725      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8726      t end
8727      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8728      :end' >>confcache
8729 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8730   if test -w "$cache_file"; then
8731     test "x$cache_file" != "x/dev/null" &&
8732       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8733 echo "$as_me: updating cache $cache_file" >&6;}
8734     cat confcache >$cache_file
8735   else
8736     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8737 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8738   fi
8739 fi
8740 rm -f confcache
8741
8742 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8743 # Let make expand exec_prefix.
8744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8745
8746 DEFS=-DHAVE_CONFIG_H
8747
8748 ac_libobjs=
8749 ac_ltlibobjs=
8750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8751   # 1. Remove the extension, and $U if already installed.
8752   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8753   ac_i=`echo "$ac_i" | sed "$ac_script"`
8754   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8755   #    will be set to the directory where LIBOBJS objects are built.
8756   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8757   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8758 done
8759 LIBOBJS=$ac_libobjs
8760
8761 LTLIBOBJS=$ac_ltlibobjs
8762
8763
8764 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8765   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8766 Usually this means the macro was only invoked conditionally." >&5
8767 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8768 Usually this means the macro was only invoked conditionally." >&2;}
8769    { (exit 1); exit 1; }; }
8770 fi
8771 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8772   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8773 Usually this means the macro was only invoked conditionally." >&5
8774 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8775 Usually this means the macro was only invoked conditionally." >&2;}
8776    { (exit 1); exit 1; }; }
8777 fi
8778 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8779   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8780 Usually this means the macro was only invoked conditionally." >&5
8781 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8782 Usually this means the macro was only invoked conditionally." >&2;}
8783    { (exit 1); exit 1; }; }
8784 fi
8785
8786 : ${CONFIG_STATUS=./config.status}
8787 ac_clean_files_save=$ac_clean_files
8788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8789 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8790 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8791 cat >$CONFIG_STATUS <<_ACEOF
8792 #! $SHELL
8793 # Generated by $as_me.
8794 # Run this file to recreate the current configuration.
8795 # Compiler output produced by configure, useful for debugging
8796 # configure, is in config.log if it exists.
8797
8798 debug=false
8799 ac_cs_recheck=false
8800 ac_cs_silent=false
8801 SHELL=\${CONFIG_SHELL-$SHELL}
8802 _ACEOF
8803
8804 cat >>$CONFIG_STATUS <<\_ACEOF
8805 ## --------------------- ##
8806 ## M4sh Initialization.  ##
8807 ## --------------------- ##
8808
8809 # Be more Bourne compatible
8810 DUALCASE=1; export DUALCASE # for MKS sh
8811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8812   emulate sh
8813   NULLCMD=:
8814   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8815   # is contrary to our usage.  Disable this feature.
8816   alias -g '${1+"$@"}'='"$@"'
8817   setopt NO_GLOB_SUBST
8818 else
8819   case `(set -o) 2>/dev/null` in
8820   *posix*) set -o posix ;;
8821 esac
8822
8823 fi
8824
8825
8826
8827
8828 # PATH needs CR
8829 # Avoid depending upon Character Ranges.
8830 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8831 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8832 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8833 as_cr_digits='0123456789'
8834 as_cr_alnum=$as_cr_Letters$as_cr_digits
8835
8836 # The user is always right.
8837 if test "${PATH_SEPARATOR+set}" != set; then
8838   echo "#! /bin/sh" >conf$$.sh
8839   echo  "exit 0"   >>conf$$.sh
8840   chmod +x conf$$.sh
8841   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8842     PATH_SEPARATOR=';'
8843   else
8844     PATH_SEPARATOR=:
8845   fi
8846   rm -f conf$$.sh
8847 fi
8848
8849 # Support unset when possible.
8850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8851   as_unset=unset
8852 else
8853   as_unset=false
8854 fi
8855
8856
8857 # IFS
8858 # We need space, tab and new line, in precisely that order.  Quoting is
8859 # there to prevent editors from complaining about space-tab.
8860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8861 # splitting by setting IFS to empty value.)
8862 as_nl='
8863 '
8864 IFS=" ""        $as_nl"
8865
8866 # Find who we are.  Look in the path if we contain no directory separator.
8867 case $0 in
8868   *[\\/]* ) as_myself=$0 ;;
8869   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872   IFS=$as_save_IFS
8873   test -z "$as_dir" && as_dir=.
8874   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8875 done
8876 IFS=$as_save_IFS
8877
8878      ;;
8879 esac
8880 # We did not find ourselves, most probably we were run as `sh COMMAND'
8881 # in which case we are not to be found in the path.
8882 if test "x$as_myself" = x; then
8883   as_myself=$0
8884 fi
8885 if test ! -f "$as_myself"; then
8886   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8887   { (exit 1); exit 1; }
8888 fi
8889
8890 # Work around bugs in pre-3.0 UWIN ksh.
8891 for as_var in ENV MAIL MAILPATH
8892 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8893 done
8894 PS1='$ '
8895 PS2='> '
8896 PS4='+ '
8897
8898 # NLS nuisances.
8899 for as_var in \
8900   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8901   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8902   LC_TELEPHONE LC_TIME
8903 do
8904   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8905     eval $as_var=C; export $as_var
8906   else
8907     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8908   fi
8909 done
8910
8911 # Required to use basename.
8912 if expr a : '\(a\)' >/dev/null 2>&1 &&
8913    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8914   as_expr=expr
8915 else
8916   as_expr=false
8917 fi
8918
8919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8920   as_basename=basename
8921 else
8922   as_basename=false
8923 fi
8924
8925
8926 # Name of the executable.
8927 as_me=`$as_basename -- "$0" ||
8928 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8929          X"$0" : 'X\(//\)$' \| \
8930          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8931 echo X/"$0" |
8932     sed '/^.*\/\([^/][^/]*\)\/*$/{
8933             s//\1/
8934             q
8935           }
8936           /^X\/\(\/\/\)$/{
8937             s//\1/
8938             q
8939           }
8940           /^X\/\(\/\).*/{
8941             s//\1/
8942             q
8943           }
8944           s/.*/./; q'`
8945
8946 # CDPATH.
8947 $as_unset CDPATH
8948
8949
8950
8951   as_lineno_1=$LINENO
8952   as_lineno_2=$LINENO
8953   test "x$as_lineno_1" != "x$as_lineno_2" &&
8954   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8955
8956   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8957   # uniformly replaced by the line number.  The first 'sed' inserts a
8958   # line-number line after each line using $LINENO; the second 'sed'
8959   # does the real work.  The second script uses 'N' to pair each
8960   # line-number line with the line containing $LINENO, and appends
8961   # trailing '-' during substitution so that $LINENO is not a special
8962   # case at line end.
8963   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8964   # scripts with optimization help from Paolo Bonzini.  Blame Lee
8965   # E. McMahon (1931-1989) for sed's syntax.  :-)
8966   sed -n '
8967     p
8968     /[$]LINENO/=
8969   ' <$as_myself |
8970     sed '
8971       s/[$]LINENO.*/&-/
8972       t lineno
8973       b
8974       :lineno
8975       N
8976       :loop
8977       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8978       t loop
8979       s/-\n.*//
8980     ' >$as_me.lineno &&
8981   chmod +x "$as_me.lineno" ||
8982     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8983    { (exit 1); exit 1; }; }
8984
8985   # Don't try to exec as it changes $[0], causing all sort of problems
8986   # (the dirname of $[0] is not the place where we might find the
8987   # original and so on.  Autoconf is especially sensitive to this).
8988   . "./$as_me.lineno"
8989   # Exit status is that of the last command.
8990   exit
8991 }
8992
8993
8994 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8995   as_dirname=dirname
8996 else
8997   as_dirname=false
8998 fi
8999
9000 ECHO_C= ECHO_N= ECHO_T=
9001 case `echo -n x` in
9002 -n*)
9003   case `echo 'x\c'` in
9004   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9005   *)   ECHO_C='\c';;
9006   esac;;
9007 *)
9008   ECHO_N='-n';;
9009 esac
9010
9011 if expr a : '\(a\)' >/dev/null 2>&1 &&
9012    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9013   as_expr=expr
9014 else
9015   as_expr=false
9016 fi
9017
9018 rm -f conf$$ conf$$.exe conf$$.file
9019 if test -d conf$$.dir; then
9020   rm -f conf$$.dir/conf$$.file
9021 else
9022   rm -f conf$$.dir
9023   mkdir conf$$.dir
9024 fi
9025 echo >conf$$.file
9026 if ln -s conf$$.file conf$$ 2>/dev/null; then
9027   as_ln_s='ln -s'
9028   # ... but there are two gotchas:
9029   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9030   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9031   # In both cases, we have to default to `cp -p'.
9032   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9033     as_ln_s='cp -p'
9034 elif ln conf$$.file conf$$ 2>/dev/null; then
9035   as_ln_s=ln
9036 else
9037   as_ln_s='cp -p'
9038 fi
9039 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9040 rmdir conf$$.dir 2>/dev/null
9041
9042 if mkdir -p . 2>/dev/null; then
9043   as_mkdir_p=:
9044 else
9045   test -d ./-p && rmdir ./-p
9046   as_mkdir_p=false
9047 fi
9048
9049 if test -x / >/dev/null 2>&1; then
9050   as_test_x='test -x'
9051 else
9052   if ls -dL / >/dev/null 2>&1; then
9053     as_ls_L_option=L
9054   else
9055     as_ls_L_option=
9056   fi
9057   as_test_x='
9058     eval sh -c '\''
9059       if test -d "$1"; then
9060         test -d "$1/.";
9061       else
9062         case $1 in
9063         -*)set "./$1";;
9064         esac;
9065         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9066         ???[sx]*):;;*)false;;esac;fi
9067     '\'' sh
9068   '
9069 fi
9070 as_executable_p=$as_test_x
9071
9072 # Sed expression to map a string onto a valid CPP name.
9073 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9074
9075 # Sed expression to map a string onto a valid variable name.
9076 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9077
9078
9079 exec 6>&1
9080
9081 # Save the log message, to keep $[0] and so on meaningful, and to
9082 # report actual input values of CONFIG_FILES etc. instead of their
9083 # values after options handling.
9084 ac_log="
9085 This file was extended by DHCP $as_me 4.2.3-P2, which was
9086 generated by GNU Autoconf 2.61.  Invocation command line was
9087
9088   CONFIG_FILES    = $CONFIG_FILES
9089   CONFIG_HEADERS  = $CONFIG_HEADERS
9090   CONFIG_LINKS    = $CONFIG_LINKS
9091   CONFIG_COMMANDS = $CONFIG_COMMANDS
9092   $ $0 $@
9093
9094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9095 "
9096
9097 _ACEOF
9098
9099 cat >>$CONFIG_STATUS <<_ACEOF
9100 # Files that config.status was made for.
9101 config_files="$ac_config_files"
9102 config_headers="$ac_config_headers"
9103 config_commands="$ac_config_commands"
9104
9105 _ACEOF
9106
9107 cat >>$CONFIG_STATUS <<\_ACEOF
9108 ac_cs_usage="\
9109 \`$as_me' instantiates files from templates according to the
9110 current configuration.
9111
9112 Usage: $0 [OPTIONS] [FILE]...
9113
9114   -h, --help       print this help, then exit
9115   -V, --version    print version number and configuration settings, then exit
9116   -q, --quiet      do not print progress messages
9117   -d, --debug      don't remove temporary files
9118       --recheck    update $as_me by reconfiguring in the same conditions
9119   --file=FILE[:TEMPLATE]
9120                    instantiate the configuration file FILE
9121   --header=FILE[:TEMPLATE]
9122                    instantiate the configuration header FILE
9123
9124 Configuration files:
9125 $config_files
9126
9127 Configuration headers:
9128 $config_headers
9129
9130 Configuration commands:
9131 $config_commands
9132
9133 Report bugs to <bug-autoconf@gnu.org>."
9134
9135 _ACEOF
9136 cat >>$CONFIG_STATUS <<_ACEOF
9137 ac_cs_version="\\
9138 DHCP config.status 4.2.3-P2
9139 configured by $0, generated by GNU Autoconf 2.61,
9140   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9141
9142 Copyright (C) 2006 Free Software Foundation, Inc.
9143 This config.status script is free software; the Free Software Foundation
9144 gives unlimited permission to copy, distribute and modify it."
9145
9146 ac_pwd='$ac_pwd'
9147 srcdir='$srcdir'
9148 INSTALL='$INSTALL'
9149 MKDIR_P='$MKDIR_P'
9150 _ACEOF
9151
9152 cat >>$CONFIG_STATUS <<\_ACEOF
9153 # If no file are specified by the user, then we need to provide default
9154 # value.  By we need to know if files were specified by the user.
9155 ac_need_defaults=:
9156 while test $# != 0
9157 do
9158   case $1 in
9159   --*=*)
9160     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9161     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9162     ac_shift=:
9163     ;;
9164   *)
9165     ac_option=$1
9166     ac_optarg=$2
9167     ac_shift=shift
9168     ;;
9169   esac
9170
9171   case $ac_option in
9172   # Handling of the options.
9173   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9174     ac_cs_recheck=: ;;
9175   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9176     echo "$ac_cs_version"; exit ;;
9177   --debug | --debu | --deb | --de | --d | -d )
9178     debug=: ;;
9179   --file | --fil | --fi | --f )
9180     $ac_shift
9181     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9182     ac_need_defaults=false;;
9183   --header | --heade | --head | --hea )
9184     $ac_shift
9185     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9186     ac_need_defaults=false;;
9187   --he | --h)
9188     # Conflict between --help and --header
9189     { echo "$as_me: error: ambiguous option: $1
9190 Try \`$0 --help' for more information." >&2
9191    { (exit 1); exit 1; }; };;
9192   --help | --hel | -h )
9193     echo "$ac_cs_usage"; exit ;;
9194   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9195   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9196     ac_cs_silent=: ;;
9197
9198   # This is an error.
9199   -*) { echo "$as_me: error: unrecognized option: $1
9200 Try \`$0 --help' for more information." >&2
9201    { (exit 1); exit 1; }; } ;;
9202
9203   *) ac_config_targets="$ac_config_targets $1"
9204      ac_need_defaults=false ;;
9205
9206   esac
9207   shift
9208 done
9209
9210 ac_configure_extra_args=
9211
9212 if $ac_cs_silent; then
9213   exec 6>/dev/null
9214   ac_configure_extra_args="$ac_configure_extra_args --silent"
9215 fi
9216
9217 _ACEOF
9218 cat >>$CONFIG_STATUS <<_ACEOF
9219 if \$ac_cs_recheck; then
9220   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9221   CONFIG_SHELL=$SHELL
9222   export CONFIG_SHELL
9223   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9224 fi
9225
9226 _ACEOF
9227 cat >>$CONFIG_STATUS <<\_ACEOF
9228 exec 5>>config.log
9229 {
9230   echo
9231   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9232 ## Running $as_me. ##
9233 _ASBOX
9234   echo "$ac_log"
9235 } >&5
9236
9237 _ACEOF
9238 cat >>$CONFIG_STATUS <<_ACEOF
9239 #
9240 # INIT-COMMANDS
9241 #
9242 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9243
9244 _ACEOF
9245
9246 cat >>$CONFIG_STATUS <<\_ACEOF
9247
9248 # Handling of arguments.
9249 for ac_config_target in $ac_config_targets
9250 do
9251   case $ac_config_target in
9252     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9253     "includes/config.h") CONFIG_HEADERS="$CONFIG_HEADERS includes/config.h" ;;
9254     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9255     "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
9256     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
9257     "common/tests/Makefile") CONFIG_FILES="$CONFIG_FILES common/tests/Makefile" ;;
9258     "dhcpctl/Makefile") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile" ;;
9259     "dst/Makefile") CONFIG_FILES="$CONFIG_FILES dst/Makefile" ;;
9260     "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;;
9261     "omapip/Makefile") CONFIG_FILES="$CONFIG_FILES omapip/Makefile" ;;
9262     "relay/Makefile") CONFIG_FILES="$CONFIG_FILES relay/Makefile" ;;
9263     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
9264     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9265
9266   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9267 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9268    { (exit 1); exit 1; }; };;
9269   esac
9270 done
9271
9272
9273 # If the user did not use the arguments to specify the items to instantiate,
9274 # then the envvar interface is used.  Set only those that are not.
9275 # We use the long form for the default assignment because of an extremely
9276 # bizarre bug on SunOS 4.1.3.
9277 if $ac_need_defaults; then
9278   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9279   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9280   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9281 fi
9282
9283 # Have a temporary directory for convenience.  Make it in the build tree
9284 # simply because there is no reason against having it here, and in addition,
9285 # creating and moving files from /tmp can sometimes cause problems.
9286 # Hook for its removal unless debugging.
9287 # Note that there is a small window in which the directory will not be cleaned:
9288 # after its creation but before its name has been assigned to `$tmp'.
9289 $debug ||
9290 {
9291   tmp=
9292   trap 'exit_status=$?
9293   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9294 ' 0
9295   trap '{ (exit 1); exit 1; }' 1 2 13 15
9296 }
9297 # Create a (secure) tmp directory for tmp files.
9298
9299 {
9300   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9301   test -n "$tmp" && test -d "$tmp"
9302 }  ||
9303 {
9304   tmp=./conf$$-$RANDOM
9305   (umask 077 && mkdir "$tmp")
9306 } ||
9307 {
9308    echo "$me: cannot create a temporary directory in ." >&2
9309    { (exit 1); exit 1; }
9310 }
9311
9312 #
9313 # Set up the sed scripts for CONFIG_FILES section.
9314 #
9315
9316 # No need to generate the scripts if there are no CONFIG_FILES.
9317 # This happens for instance when ./config.status config.h
9318 if test -n "$CONFIG_FILES"; then
9319
9320 _ACEOF
9321
9322
9323
9324 ac_delim='%!_!# '
9325 for ac_last_try in false false false false false :; do
9326   cat >conf$$subs.sed <<_ACEOF
9327 SHELL!$SHELL$ac_delim
9328 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9329 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9330 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9331 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9332 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9333 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9334 exec_prefix!$exec_prefix$ac_delim
9335 prefix!$prefix$ac_delim
9336 program_transform_name!$program_transform_name$ac_delim
9337 bindir!$bindir$ac_delim
9338 sbindir!$sbindir$ac_delim
9339 libexecdir!$libexecdir$ac_delim
9340 datarootdir!$datarootdir$ac_delim
9341 datadir!$datadir$ac_delim
9342 sysconfdir!$sysconfdir$ac_delim
9343 sharedstatedir!$sharedstatedir$ac_delim
9344 localstatedir!$localstatedir$ac_delim
9345 includedir!$includedir$ac_delim
9346 oldincludedir!$oldincludedir$ac_delim
9347 docdir!$docdir$ac_delim
9348 infodir!$infodir$ac_delim
9349 htmldir!$htmldir$ac_delim
9350 dvidir!$dvidir$ac_delim
9351 pdfdir!$pdfdir$ac_delim
9352 psdir!$psdir$ac_delim
9353 libdir!$libdir$ac_delim
9354 localedir!$localedir$ac_delim
9355 mandir!$mandir$ac_delim
9356 DEFS!$DEFS$ac_delim
9357 ECHO_C!$ECHO_C$ac_delim
9358 ECHO_N!$ECHO_N$ac_delim
9359 ECHO_T!$ECHO_T$ac_delim
9360 LIBS!$LIBS$ac_delim
9361 build_alias!$build_alias$ac_delim
9362 host_alias!$host_alias$ac_delim
9363 target_alias!$target_alias$ac_delim
9364 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9365 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9366 INSTALL_DATA!$INSTALL_DATA$ac_delim
9367 am__isrc!$am__isrc$ac_delim
9368 CYGPATH_W!$CYGPATH_W$ac_delim
9369 PACKAGE!$PACKAGE$ac_delim
9370 VERSION!$VERSION$ac_delim
9371 ACLOCAL!$ACLOCAL$ac_delim
9372 AUTOCONF!$AUTOCONF$ac_delim
9373 AUTOMAKE!$AUTOMAKE$ac_delim
9374 AUTOHEADER!$AUTOHEADER$ac_delim
9375 MAKEINFO!$MAKEINFO$ac_delim
9376 install_sh!$install_sh$ac_delim
9377 STRIP!$STRIP$ac_delim
9378 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
9379 mkdir_p!$mkdir_p$ac_delim
9380 AWK!$AWK$ac_delim
9381 SET_MAKE!$SET_MAKE$ac_delim
9382 am__leading_dot!$am__leading_dot$ac_delim
9383 AMTAR!$AMTAR$ac_delim
9384 am__tar!$am__tar$ac_delim
9385 am__untar!$am__untar$ac_delim
9386 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
9387 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
9388 MAINT!$MAINT$ac_delim
9389 CC!$CC$ac_delim
9390 CFLAGS!$CFLAGS$ac_delim
9391 LDFLAGS!$LDFLAGS$ac_delim
9392 CPPFLAGS!$CPPFLAGS$ac_delim
9393 ac_ct_CC!$ac_ct_CC$ac_delim
9394 EXEEXT!$EXEEXT$ac_delim
9395 OBJEXT!$OBJEXT$ac_delim
9396 DEPDIR!$DEPDIR$ac_delim
9397 am__include!$am__include$ac_delim
9398 am__quote!$am__quote$ac_delim
9399 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
9400 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
9401 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
9402 CCDEPMODE!$CCDEPMODE$ac_delim
9403 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
9404 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
9405 CPP!$CPP$ac_delim
9406 GREP!$GREP$ac_delim
9407 EGREP!$EGREP$ac_delim
9408 RANLIB!$RANLIB$ac_delim
9409 byte_order!$byte_order$ac_delim
9410 ac_prefix_program!$ac_prefix_program$ac_delim
9411 LDAP_CFLAGS!$LDAP_CFLAGS$ac_delim
9412 LIBOBJS!$LIBOBJS$ac_delim
9413 LTLIBOBJS!$LTLIBOBJS$ac_delim
9414 _ACEOF
9415
9416   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then
9417     break
9418   elif $ac_last_try; then
9419     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9420 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9421    { (exit 1); exit 1; }; }
9422   else
9423     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9424   fi
9425 done
9426
9427 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9428 if test -n "$ac_eof"; then
9429   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9430   ac_eof=`expr $ac_eof + 1`
9431 fi
9432
9433 cat >>$CONFIG_STATUS <<_ACEOF
9434 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9436 _ACEOF
9437 sed '
9438 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9439 s/^/s,@/; s/!/@,|#_!!_#|/
9440 :n
9441 t n
9442 s/'"$ac_delim"'$/,g/; t
9443 s/$/\\/; p
9444 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9445 ' >>$CONFIG_STATUS <conf$$subs.sed
9446 rm -f conf$$subs.sed
9447 cat >>$CONFIG_STATUS <<_ACEOF
9448 :end
9449 s/|#_!!_#|//g
9450 CEOF$ac_eof
9451 _ACEOF
9452
9453
9454 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9455 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9456 # trailing colons and then remove the whole line if VPATH becomes empty
9457 # (actually we leave an empty line to preserve line numbers).
9458 if test "x$srcdir" = x.; then
9459   ac_vpsub='/^[  ]*VPATH[        ]*=/{
9460 s/:*\$(srcdir):*/:/
9461 s/:*\${srcdir}:*/:/
9462 s/:*@srcdir@:*/:/
9463 s/^\([^=]*=[     ]*\):*/\1/
9464 s/:*$//
9465 s/^[^=]*=[       ]*$//
9466 }'
9467 fi
9468
9469 cat >>$CONFIG_STATUS <<\_ACEOF
9470 fi # test -n "$CONFIG_FILES"
9471
9472
9473 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
9474 do
9475   case $ac_tag in
9476   :[FHLC]) ac_mode=$ac_tag; continue;;
9477   esac
9478   case $ac_mode$ac_tag in
9479   :[FHL]*:*);;
9480   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9481 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9482    { (exit 1); exit 1; }; };;
9483   :[FH]-) ac_tag=-:-;;
9484   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9485   esac
9486   ac_save_IFS=$IFS
9487   IFS=:
9488   set x $ac_tag
9489   IFS=$ac_save_IFS
9490   shift
9491   ac_file=$1
9492   shift
9493
9494   case $ac_mode in
9495   :L) ac_source=$1;;
9496   :[FH])
9497     ac_file_inputs=
9498     for ac_f
9499     do
9500       case $ac_f in
9501       -) ac_f="$tmp/stdin";;
9502       *) # Look for the file first in the build tree, then in the source tree
9503          # (if the path is not absolute).  The absolute path cannot be DOS-style,
9504          # because $ac_f cannot contain `:'.
9505          test -f "$ac_f" ||
9506            case $ac_f in
9507            [\\/$]*) false;;
9508            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9509            esac ||
9510            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9511 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9512    { (exit 1); exit 1; }; };;
9513       esac
9514       ac_file_inputs="$ac_file_inputs $ac_f"
9515     done
9516
9517     # Let's still pretend it is `configure' which instantiates (i.e., don't
9518     # use $as_me), people would be surprised to read:
9519     #    /* config.h.  Generated by config.status.  */
9520     configure_input="Generated from "`IFS=:
9521           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9522     if test x"$ac_file" != x-; then
9523       configure_input="$ac_file.  $configure_input"
9524       { echo "$as_me:$LINENO: creating $ac_file" >&5
9525 echo "$as_me: creating $ac_file" >&6;}
9526     fi
9527
9528     case $ac_tag in
9529     *:-:* | *:-) cat >"$tmp/stdin";;
9530     esac
9531     ;;
9532   esac
9533
9534   ac_dir=`$as_dirname -- "$ac_file" ||
9535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9536          X"$ac_file" : 'X\(//\)[^/]' \| \
9537          X"$ac_file" : 'X\(//\)$' \| \
9538          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9539 echo X"$ac_file" |
9540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9541             s//\1/
9542             q
9543           }
9544           /^X\(\/\/\)[^/].*/{
9545             s//\1/
9546             q
9547           }
9548           /^X\(\/\/\)$/{
9549             s//\1/
9550             q
9551           }
9552           /^X\(\/\).*/{
9553             s//\1/
9554             q
9555           }
9556           s/.*/./; q'`
9557   { as_dir="$ac_dir"
9558   case $as_dir in #(
9559   -*) as_dir=./$as_dir;;
9560   esac
9561   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9562     as_dirs=
9563     while :; do
9564       case $as_dir in #(
9565       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9566       *) as_qdir=$as_dir;;
9567       esac
9568       as_dirs="'$as_qdir' $as_dirs"
9569       as_dir=`$as_dirname -- "$as_dir" ||
9570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9571          X"$as_dir" : 'X\(//\)[^/]' \| \
9572          X"$as_dir" : 'X\(//\)$' \| \
9573          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9574 echo X"$as_dir" |
9575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9576             s//\1/
9577             q
9578           }
9579           /^X\(\/\/\)[^/].*/{
9580             s//\1/
9581             q
9582           }
9583           /^X\(\/\/\)$/{
9584             s//\1/
9585             q
9586           }
9587           /^X\(\/\).*/{
9588             s//\1/
9589             q
9590           }
9591           s/.*/./; q'`
9592       test -d "$as_dir" && break
9593     done
9594     test -z "$as_dirs" || eval "mkdir $as_dirs"
9595   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9596 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9597    { (exit 1); exit 1; }; }; }
9598   ac_builddir=.
9599
9600 case "$ac_dir" in
9601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9602 *)
9603   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9604   # A ".." for each directory in $ac_dir_suffix.
9605   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9606   case $ac_top_builddir_sub in
9607   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9608   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9609   esac ;;
9610 esac
9611 ac_abs_top_builddir=$ac_pwd
9612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9613 # for backward compatibility:
9614 ac_top_builddir=$ac_top_build_prefix
9615
9616 case $srcdir in
9617   .)  # We are building in place.
9618     ac_srcdir=.
9619     ac_top_srcdir=$ac_top_builddir_sub
9620     ac_abs_top_srcdir=$ac_pwd ;;
9621   [\\/]* | ?:[\\/]* )  # Absolute name.
9622     ac_srcdir=$srcdir$ac_dir_suffix;
9623     ac_top_srcdir=$srcdir
9624     ac_abs_top_srcdir=$srcdir ;;
9625   *) # Relative name.
9626     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9627     ac_top_srcdir=$ac_top_build_prefix$srcdir
9628     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9629 esac
9630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9631
9632
9633   case $ac_mode in
9634   :F)
9635   #
9636   # CONFIG_FILE
9637   #
9638
9639   case $INSTALL in
9640   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9641   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9642   esac
9643   ac_MKDIR_P=$MKDIR_P
9644   case $MKDIR_P in
9645   [\\/$]* | ?:[\\/]* ) ;;
9646   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9647   esac
9648 _ACEOF
9649
9650
9651 # Neutralize VPATH when `$srcdir' = `.'.
9652 # Shell code in configure.ac might set extrasub.
9653 # FIXME: do we really want to maintain this feature?
9654 cat >>$CONFIG_STATUS <<_ACEOF
9655   sed "$ac_vpsub
9656 $extrasub
9657 _ACEOF
9658 cat >>$CONFIG_STATUS <<\_ACEOF
9659 :t
9660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9661 s&@configure_input@&$configure_input&;t t
9662 s&@top_builddir@&$ac_top_builddir_sub&;t t
9663 s&@srcdir@&$ac_srcdir&;t t
9664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9665 s&@top_srcdir@&$ac_top_srcdir&;t t
9666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9667 s&@builddir@&$ac_builddir&;t t
9668 s&@abs_builddir@&$ac_abs_builddir&;t t
9669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9670 s&@INSTALL@&$ac_INSTALL&;t t
9671 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9672 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9673
9674
9675   rm -f "$tmp/stdin"
9676   case $ac_file in
9677   -) cat "$tmp/out"; rm -f "$tmp/out";;
9678   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9679   esac
9680  ;;
9681   :H)
9682   #
9683   # CONFIG_HEADER
9684   #
9685 _ACEOF
9686
9687 # Transform confdefs.h into a sed script `conftest.defines', that
9688 # substitutes the proper values into config.h.in to produce config.h.
9689 rm -f conftest.defines conftest.tail
9690 # First, append a space to every undef/define line, to ease matching.
9691 echo 's/$/ /' >conftest.defines
9692 # Then, protect against being on the right side of a sed subst, or in
9693 # an unquoted here document, in config.status.  If some macros were
9694 # called several times there might be several #defines for the same
9695 # symbol, which is useless.  But do not sort them, since the last
9696 # AC_DEFINE must be honored.
9697 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9698 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9699 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9700 # PARAMS is the parameter list in the macro definition--in most cases, it's
9701 # just an empty string.
9702 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
9703 ac_dB='\\)[      (].*,\\1define\\2'
9704 ac_dC=' '
9705 ac_dD=' ,'
9706
9707 uniq confdefs.h |
9708   sed -n '
9709         t rset
9710         :rset
9711         s/^[     ]*#[    ]*define[       ][      ]*//
9712         t ok
9713         d
9714         :ok
9715         s/[\\&,]/\\&/g
9716         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9717         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9718   ' >>conftest.defines
9719
9720 # Remove the space that was appended to ease matching.
9721 # Then replace #undef with comments.  This is necessary, for
9722 # example, in the case of _POSIX_SOURCE, which is predefined and required
9723 # on some systems where configure will not decide to define it.
9724 # (The regexp can be short, since the line contains either #define or #undef.)
9725 echo 's/ $//
9726 s,^[     #]*u.*,/* & */,' >>conftest.defines
9727
9728 # Break up conftest.defines:
9729 ac_max_sed_lines=50
9730
9731 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9732 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9733 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9734 # et cetera.
9735 ac_in='$ac_file_inputs'
9736 ac_out='"$tmp/out1"'
9737 ac_nxt='"$tmp/out2"'
9738
9739 while :
9740 do
9741   # Write a here document:
9742     cat >>$CONFIG_STATUS <<_ACEOF
9743     # First, check the format of the line:
9744     cat >"\$tmp/defines.sed" <<\\CEOF
9745 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
9746 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
9747 b
9748 :def
9749 _ACEOF
9750   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9751   echo 'CEOF
9752     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9753   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9754   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9755   grep . conftest.tail >/dev/null || break
9756   rm -f conftest.defines
9757   mv conftest.tail conftest.defines
9758 done
9759 rm -f conftest.defines conftest.tail
9760
9761 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9762 cat >>$CONFIG_STATUS <<\_ACEOF
9763   if test x"$ac_file" != x-; then
9764     echo "/* $configure_input  */" >"$tmp/config.h"
9765     cat "$ac_result" >>"$tmp/config.h"
9766     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9767       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9768 echo "$as_me: $ac_file is unchanged" >&6;}
9769     else
9770       rm -f $ac_file
9771       mv "$tmp/config.h" $ac_file
9772     fi
9773   else
9774     echo "/* $configure_input  */"
9775     cat "$ac_result"
9776   fi
9777   rm -f "$tmp/out12"
9778 # Compute $ac_file's index in $config_headers.
9779 _am_arg=$ac_file
9780 _am_stamp_count=1
9781 for _am_header in $config_headers :; do
9782   case $_am_header in
9783     $_am_arg | $_am_arg:* )
9784       break ;;
9785     * )
9786       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9787   esac
9788 done
9789 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9790 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9791          X"$_am_arg" : 'X\(//\)[^/]' \| \
9792          X"$_am_arg" : 'X\(//\)$' \| \
9793          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9794 echo X"$_am_arg" |
9795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9796             s//\1/
9797             q
9798           }
9799           /^X\(\/\/\)[^/].*/{
9800             s//\1/
9801             q
9802           }
9803           /^X\(\/\/\)$/{
9804             s//\1/
9805             q
9806           }
9807           /^X\(\/\).*/{
9808             s//\1/
9809             q
9810           }
9811           s/.*/./; q'`/stamp-h$_am_stamp_count
9812  ;;
9813
9814   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9815 echo "$as_me: executing $ac_file commands" >&6;}
9816  ;;
9817   esac
9818
9819
9820   case $ac_file$ac_mode in
9821     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9822   # Strip MF so we end up with the name of the file.
9823   mf=`echo "$mf" | sed -e 's/:.*$//'`
9824   # Check whether this is an Automake generated Makefile or not.
9825   # We used to match only the files named `Makefile.in', but
9826   # some people rename them; so instead we look at the file content.
9827   # Grep'ing the first line is not enough: some people post-process
9828   # each Makefile.in and add a new line on top of each file to say so.
9829   # Grep'ing the whole file is not good either: AIX grep has a line
9830   # limit of 2048, but all sed's we know have understand at least 4000.
9831   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9832     dirpart=`$as_dirname -- "$mf" ||
9833 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9834          X"$mf" : 'X\(//\)[^/]' \| \
9835          X"$mf" : 'X\(//\)$' \| \
9836          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9837 echo X"$mf" |
9838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9839             s//\1/
9840             q
9841           }
9842           /^X\(\/\/\)[^/].*/{
9843             s//\1/
9844             q
9845           }
9846           /^X\(\/\/\)$/{
9847             s//\1/
9848             q
9849           }
9850           /^X\(\/\).*/{
9851             s//\1/
9852             q
9853           }
9854           s/.*/./; q'`
9855   else
9856     continue
9857   fi
9858   # Extract the definition of DEPDIR, am__include, and am__quote
9859   # from the Makefile without running `make'.
9860   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9861   test -z "$DEPDIR" && continue
9862   am__include=`sed -n 's/^am__include = //p' < "$mf"`
9863   test -z "am__include" && continue
9864   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9865   # When using ansi2knr, U may be empty or an underscore; expand it
9866   U=`sed -n 's/^U = //p' < "$mf"`
9867   # Find all dependency output files, they are included files with
9868   # $(DEPDIR) in their names.  We invoke sed twice because it is the
9869   # simplest approach to changing $(DEPDIR) to its actual value in the
9870   # expansion.
9871   for file in `sed -n "
9872     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9873        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9874     # Make sure the directory exists.
9875     test -f "$dirpart/$file" && continue
9876     fdir=`$as_dirname -- "$file" ||
9877 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9878          X"$file" : 'X\(//\)[^/]' \| \
9879          X"$file" : 'X\(//\)$' \| \
9880          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9881 echo X"$file" |
9882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9883             s//\1/
9884             q
9885           }
9886           /^X\(\/\/\)[^/].*/{
9887             s//\1/
9888             q
9889           }
9890           /^X\(\/\/\)$/{
9891             s//\1/
9892             q
9893           }
9894           /^X\(\/\).*/{
9895             s//\1/
9896             q
9897           }
9898           s/.*/./; q'`
9899     { as_dir=$dirpart/$fdir
9900   case $as_dir in #(
9901   -*) as_dir=./$as_dir;;
9902   esac
9903   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9904     as_dirs=
9905     while :; do
9906       case $as_dir in #(
9907       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9908       *) as_qdir=$as_dir;;
9909       esac
9910       as_dirs="'$as_qdir' $as_dirs"
9911       as_dir=`$as_dirname -- "$as_dir" ||
9912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9913          X"$as_dir" : 'X\(//\)[^/]' \| \
9914          X"$as_dir" : 'X\(//\)$' \| \
9915          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9916 echo X"$as_dir" |
9917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9918             s//\1/
9919             q
9920           }
9921           /^X\(\/\/\)[^/].*/{
9922             s//\1/
9923             q
9924           }
9925           /^X\(\/\/\)$/{
9926             s//\1/
9927             q
9928           }
9929           /^X\(\/\).*/{
9930             s//\1/
9931             q
9932           }
9933           s/.*/./; q'`
9934       test -d "$as_dir" && break
9935     done
9936     test -z "$as_dirs" || eval "mkdir $as_dirs"
9937   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9938 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9939    { (exit 1); exit 1; }; }; }
9940     # echo "creating $dirpart/$file"
9941     echo '# dummy' > "$dirpart/$file"
9942   done
9943 done
9944  ;;
9945
9946   esac
9947 done # for ac_tag
9948
9949
9950 { (exit 0); exit 0; }
9951 _ACEOF
9952 chmod +x $CONFIG_STATUS
9953 ac_clean_files=$ac_clean_files_save
9954
9955
9956 # configure is writing to config.log, and then calls config.status.
9957 # config.status does its own redirection, appending to config.log.
9958 # Unfortunately, on DOS this fails, as config.log is still kept open
9959 # by configure, so config.status won't be able to write to it; its
9960 # output is simply discarded.  So we exec the FD to /dev/null,
9961 # effectively closing config.log, so it can be properly (re)opened and
9962 # appended to by config.status.  When coming back to configure, we
9963 # need to make the FD available again.
9964 if test "$no_create" != yes; then
9965   ac_cs_success=:
9966   ac_config_status_args=
9967   test "$silent" = yes &&
9968     ac_config_status_args="$ac_config_status_args --quiet"
9969   exec 5>/dev/null
9970   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9971   exec 5>>config.log
9972   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9973   # would make configure fail if this is the last instruction.
9974   $ac_cs_success || { (exit 1); exit 1; }
9975 fi
9976
9977
9978 sh util/bindvar.sh