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