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