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