]>
Commit | Line | Data |
---|---|---|
fe5b0fdd DH |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
05a3a6f4 | 3 | # Generated by GNU Autoconf 2.61 for DHCP 4.1.0. |
fe5b0fdd DH |
4 | # |
5 | # Report bugs to <dhcp-users@isc.org>. | |
6 | # | |
4d24561a JR |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
fe5b0fdd DH |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
8c816ebb | 14 | |
4d24561a JR |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
fe5b0fdd DH |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
4d24561a JR |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
42 | # The user is always right. | |
43 | if test "${PATH_SEPARATOR+set}" != set; then | |
44 | echo "#! /bin/sh" >conf$$.sh | |
45 | echo "exit 0" >>conf$$.sh | |
46 | chmod +x conf$$.sh | |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48 | PATH_SEPARATOR=';' | |
49 | else | |
50 | PATH_SEPARATOR=: | |
51 | fi | |
52 | rm -f conf$$.sh | |
fe5b0fdd | 53 | fi |
fe5b0fdd | 54 | |
fe5b0fdd DH |
55 | # Support unset when possible. |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
57 | as_unset=unset | |
58 | else | |
59 | as_unset=false | |
60 | fi | |
61 | ||
62 | ||
4d24561a JR |
63 | # IFS |
64 | # We need space, tab and new line, in precisely that order. Quoting is | |
65 | # there to prevent editors from complaining about space-tab. | |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
67 | # splitting by setting IFS to empty value.) | |
68 | as_nl=' | |
69 | ' | |
70 | IFS=" "" $as_nl" | |
71 | ||
72 | # Find who we are. Look in the path if we contain no directory separator. | |
73 | case $0 in | |
74 | *[\\/]* ) as_myself=$0 ;; | |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
76 | for as_dir in $PATH | |
77 | do | |
78 | IFS=$as_save_IFS | |
79 | test -z "$as_dir" && as_dir=. | |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
81 | done | |
82 | IFS=$as_save_IFS | |
83 | ||
84 | ;; | |
85 | esac | |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
87 | # in which case we are not to be found in the path. | |
88 | if test "x$as_myself" = x; then | |
89 | as_myself=$0 | |
90 | fi | |
91 | if test ! -f "$as_myself"; then | |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
93 | { (exit 1); exit 1; } | |
94 | fi | |
95 | ||
fe5b0fdd | 96 | # Work around bugs in pre-3.0 UWIN ksh. |
4d24561a JR |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
99 | done | |
fe5b0fdd DH |
100 | PS1='$ ' |
101 | PS2='> ' | |
102 | PS4='+ ' | |
103 | ||
104 | # NLS nuisances. | |
105 | for as_var in \ | |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
108 | LC_TELEPHONE LC_TIME | |
109 | do | |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
111 | eval $as_var=C; export $as_var | |
112 | else | |
4d24561a | 113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
fe5b0fdd DH |
114 | fi |
115 | done | |
116 | ||
117 | # Required to use basename. | |
4d24561a JR |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fe5b0fdd DH |
120 | as_expr=expr |
121 | else | |
122 | as_expr=false | |
123 | fi | |
124 | ||
4d24561a | 125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fe5b0fdd DH |
126 | as_basename=basename |
127 | else | |
128 | as_basename=false | |
129 | fi | |
130 | ||
131 | ||
132 | # Name of the executable. | |
4d24561a | 133 | as_me=`$as_basename -- "$0" || |
fe5b0fdd DH |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ | |
4d24561a | 136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 137 | echo X/"$0" | |
4d24561a JR |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 | s//\1/ | |
140 | q | |
141 | } | |
142 | /^X\/\(\/\/\)$/{ | |
143 | s//\1/ | |
144 | q | |
145 | } | |
146 | /^X\/\(\/\).*/{ | |
147 | s//\1/ | |
148 | q | |
149 | } | |
150 | s/.*/./; q'` | |
7f45c65c | 151 | |
4d24561a JR |
152 | # CDPATH. |
153 | $as_unset CDPATH | |
7f45c65c | 154 | |
ded99fc7 | 155 | |
4d24561a JR |
156 | if test "x$CONFIG_SHELL" = x; then |
157 | if (eval ":") 2>/dev/null; then | |
158 | as_have_required=yes | |
159 | else | |
160 | as_have_required=no | |
ded99fc7 EH |
161 | fi |
162 | ||
4d24561a JR |
163 | if test $as_have_required = yes && (eval ": |
164 | (as_func_return () { | |
165 | (exit \$1) | |
166 | } | |
167 | as_func_success () { | |
168 | as_func_return 0 | |
169 | } | |
170 | as_func_failure () { | |
171 | as_func_return 1 | |
172 | } | |
173 | as_func_ret_success () { | |
174 | return 0 | |
175 | } | |
176 | as_func_ret_failure () { | |
177 | return 1 | |
178 | } | |
ded99fc7 | 179 | |
4d24561a JR |
180 | exitcode=0 |
181 | if as_func_success; then | |
182 | : | |
183 | else | |
184 | exitcode=1 | |
185 | echo as_func_success failed. | |
186 | fi | |
ded99fc7 | 187 | |
4d24561a JR |
188 | if as_func_failure; then |
189 | exitcode=1 | |
190 | echo as_func_failure succeeded. | |
191 | fi | |
192 | ||
193 | if as_func_ret_success; then | |
194 | : | |
195 | else | |
196 | exitcode=1 | |
197 | echo as_func_ret_success failed. | |
198 | fi | |
199 | ||
200 | if as_func_ret_failure; then | |
201 | exitcode=1 | |
202 | echo as_func_ret_failure succeeded. | |
203 | fi | |
204 | ||
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
206 | : | |
207 | else | |
208 | exitcode=1 | |
209 | echo positional parameters were not saved. | |
210 | fi | |
211 | ||
212 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
213 | ||
214 | ( | |
215 | as_lineno_1=\$LINENO | |
216 | as_lineno_2=\$LINENO | |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
219 | ") 2> /dev/null; then | |
220 | : | |
221 | else | |
222 | as_candidate_shells= | |
fe5b0fdd | 223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
e62b1eb3 | 224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
fe5b0fdd DH |
225 | do |
226 | IFS=$as_save_IFS | |
227 | test -z "$as_dir" && as_dir=. | |
4d24561a | 228 | case $as_dir in |
fe5b0fdd | 229 | /*) |
4d24561a JR |
230 | for as_base in sh bash ksh sh5; do |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
232 | done;; | |
233 | esac | |
234 | done | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | for as_shell in $as_candidate_shells $SHELL; do | |
239 | # Try only shells that exist, to save several forks. | |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
243 | emulate sh | |
244 | NULLCMD=: | |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
246 | # is contrary to our usage. Disable this feature. | |
247 | alias -g '${1+"$@"}'='"$@"' | |
248 | setopt NO_GLOB_SUBST | |
249 | else | |
250 | case `(set -o) 2>/dev/null` in | |
251 | *posix*) set -o posix ;; | |
252 | esac | |
253 | ||
254 | fi | |
255 | ||
256 | ||
257 | : | |
258 | _ASEOF | |
259 | }; then | |
260 | CONFIG_SHELL=$as_shell | |
261 | as_have_required=yes | |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
264 | emulate sh | |
265 | NULLCMD=: | |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
267 | # is contrary to our usage. Disable this feature. | |
268 | alias -g '${1+"$@"}'='"$@"' | |
269 | setopt NO_GLOB_SUBST | |
270 | else | |
271 | case `(set -o) 2>/dev/null` in | |
272 | *posix*) set -o posix ;; | |
273 | esac | |
274 | ||
275 | fi | |
276 | ||
277 | ||
278 | : | |
279 | (as_func_return () { | |
280 | (exit $1) | |
281 | } | |
282 | as_func_success () { | |
283 | as_func_return 0 | |
284 | } | |
285 | as_func_failure () { | |
286 | as_func_return 1 | |
287 | } | |
288 | as_func_ret_success () { | |
289 | return 0 | |
290 | } | |
291 | as_func_ret_failure () { | |
292 | return 1 | |
293 | } | |
294 | ||
295 | exitcode=0 | |
296 | if as_func_success; then | |
297 | : | |
298 | else | |
299 | exitcode=1 | |
300 | echo as_func_success failed. | |
301 | fi | |
302 | ||
303 | if as_func_failure; then | |
304 | exitcode=1 | |
305 | echo as_func_failure succeeded. | |
306 | fi | |
307 | ||
308 | if as_func_ret_success; then | |
309 | : | |
310 | else | |
311 | exitcode=1 | |
312 | echo as_func_ret_success failed. | |
313 | fi | |
314 | ||
315 | if as_func_ret_failure; then | |
316 | exitcode=1 | |
317 | echo as_func_ret_failure succeeded. | |
318 | fi | |
319 | ||
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
321 | : | |
322 | else | |
323 | exitcode=1 | |
324 | echo positional parameters were not saved. | |
325 | fi | |
326 | ||
327 | test $exitcode = 0) || { (exit 1); exit 1; } | |
328 | ||
329 | ( | |
ded99fc7 EH |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO | |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
4d24561a JR |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 | ||
335 | _ASEOF | |
336 | }; then | |
337 | break | |
338 | fi | |
339 | ||
340 | fi | |
341 | ||
342 | done | |
343 | ||
344 | if test "x$CONFIG_SHELL" != x; then | |
345 | for as_var in BASH_ENV ENV | |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
347 | done | |
348 | export CONFIG_SHELL | |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
350 | fi | |
351 | ||
352 | ||
353 | if test $as_have_required = no; then | |
354 | echo This script requires a shell more modern than all the | |
355 | echo shells that I found on your system. Please install a | |
356 | echo modern shell, or manually run the script under such a | |
357 | echo shell if you do have one. | |
358 | { (exit 1); exit 1; } | |
359 | fi | |
360 | ||
361 | ||
362 | fi | |
363 | ||
364 | fi | |
365 | ||
366 | ||
367 | ||
368 | (eval "as_func_return () { | |
369 | (exit \$1) | |
370 | } | |
371 | as_func_success () { | |
372 | as_func_return 0 | |
373 | } | |
374 | as_func_failure () { | |
375 | as_func_return 1 | |
376 | } | |
377 | as_func_ret_success () { | |
378 | return 0 | |
379 | } | |
380 | as_func_ret_failure () { | |
381 | return 1 | |
382 | } | |
383 | ||
384 | exitcode=0 | |
385 | if as_func_success; then | |
386 | : | |
387 | else | |
388 | exitcode=1 | |
389 | echo as_func_success failed. | |
390 | fi | |
391 | ||
392 | if as_func_failure; then | |
393 | exitcode=1 | |
394 | echo as_func_failure succeeded. | |
395 | fi | |
396 | ||
397 | if as_func_ret_success; then | |
398 | : | |
399 | else | |
400 | exitcode=1 | |
401 | echo as_func_ret_success failed. | |
402 | fi | |
403 | ||
404 | if as_func_ret_failure; then | |
405 | exitcode=1 | |
406 | echo as_func_ret_failure succeeded. | |
407 | fi | |
408 | ||
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
410 | : | |
411 | else | |
412 | exitcode=1 | |
413 | echo positional parameters were not saved. | |
414 | fi | |
415 | ||
416 | test \$exitcode = 0") || { | |
417 | echo No shell found that supports shell functions. | |
418 | echo Please tell autoconf@gnu.org about your system, | |
419 | echo including any error possibly output before this | |
420 | echo message | |
421 | } | |
422 | ||
423 | ||
424 | ||
425 | as_lineno_1=$LINENO | |
426 | as_lineno_2=$LINENO | |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
fe5b0fdd DH |
429 | |
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
431 | # uniformly replaced by the line number. The first 'sed' inserts a | |
4d24561a JR |
432 | # line-number line after each line using $LINENO; the second 'sed' |
433 | # does the real work. The second script uses 'N' to pair each | |
434 | # line-number line with the line containing $LINENO, and appends | |
435 | # trailing '-' during substitution so that $LINENO is not a special | |
436 | # case at line end. | |
fe5b0fdd | 437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
4d24561a JR |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
440 | sed -n ' | |
441 | p | |
442 | /[$]LINENO/= | |
443 | ' <$as_myself | | |
fe5b0fdd | 444 | sed ' |
4d24561a JR |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno | |
447 | b | |
448 | :lineno | |
fe5b0fdd | 449 | N |
4d24561a JR |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
fe5b0fdd | 452 | t loop |
4d24561a | 453 | s/-\n.*// |
fe5b0fdd | 454 | ' >$as_me.lineno && |
4d24561a | 455 | chmod +x "$as_me.lineno" || |
fe5b0fdd DH |
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 | { (exit 1); exit 1; }; } | |
458 | ||
459 | # Don't try to exec as it changes $[0], causing all sort of problems | |
460 | # (the dirname of $[0] is not the place where we might find the | |
4d24561a JR |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" | |
fe5b0fdd DH |
463 | # Exit status is that of the last command. |
464 | exit | |
465 | } | |
466 | ||
467 | ||
4d24561a JR |
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 | as_dirname=dirname | |
470 | else | |
471 | as_dirname=false | |
472 | fi | |
473 | ||
474 | ECHO_C= ECHO_N= ECHO_T= | |
475 | case `echo -n x` in | |
476 | -n*) | |
477 | case `echo 'x\c'` in | |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
479 | *) ECHO_C='\c';; | |
480 | esac;; | |
481 | *) | |
482 | ECHO_N='-n';; | |
fe5b0fdd DH |
483 | esac |
484 | ||
4d24561a JR |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fe5b0fdd DH |
487 | as_expr=expr |
488 | else | |
489 | as_expr=false | |
490 | fi | |
491 | ||
492 | rm -f conf$$ conf$$.exe conf$$.file | |
4d24561a JR |
493 | if test -d conf$$.dir; then |
494 | rm -f conf$$.dir/conf$$.file | |
495 | else | |
496 | rm -f conf$$.dir | |
497 | mkdir conf$$.dir | |
498 | fi | |
fe5b0fdd DH |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
4d24561a JR |
501 | as_ln_s='ln -s' |
502 | # ... but there are two gotchas: | |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
505 | # In both cases, we have to default to `cp -p'. | |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
fe5b0fdd DH |
507 | as_ln_s='cp -p' |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
509 | as_ln_s=ln | |
510 | else | |
511 | as_ln_s='cp -p' | |
512 | fi | |
4d24561a JR |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null | |
fe5b0fdd DH |
515 | |
516 | if mkdir -p . 2>/dev/null; then | |
517 | as_mkdir_p=: | |
518 | else | |
519 | test -d ./-p && rmdir ./-p | |
520 | as_mkdir_p=false | |
521 | fi | |
522 | ||
4d24561a JR |
523 | if test -x / >/dev/null 2>&1; then |
524 | as_test_x='test -x' | |
525 | else | |
526 | if ls -dL / >/dev/null 2>&1; then | |
527 | as_ls_L_option=L | |
528 | else | |
529 | as_ls_L_option= | |
530 | fi | |
531 | as_test_x=' | |
532 | eval sh -c '\'' | |
533 | if test -d "$1"; then | |
534 | test -d "$1/."; | |
535 | else | |
536 | case $1 in | |
537 | -*)set "./$1";; | |
538 | esac; | |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
540 | ???[sx]*):;;*)false;;esac;fi | |
541 | '\'' sh | |
542 | ' | |
543 | fi | |
544 | as_executable_p=$as_test_x | |
fe5b0fdd DH |
545 | |
546 | # Sed expression to map a string onto a valid CPP name. | |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
548 | ||
549 | # Sed expression to map a string onto a valid variable name. | |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
551 | ||
552 | ||
553 | ||
4d24561a | 554 | exec 7<&0 </dev/null 6>&1 |
fe5b0fdd DH |
555 | |
556 | # Name of the host. | |
557 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
558 | # so uname gets run too. | |
559 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
560 | ||
561 | # | |
562 | # Initializations. | |
563 | # | |
564 | ac_default_prefix=/usr/local | |
4d24561a | 565 | ac_clean_files= |
fe5b0fdd | 566 | ac_config_libobj_dir=. |
4d24561a | 567 | LIBOBJS= |
fe5b0fdd DH |
568 | cross_compiling=no |
569 | subdirs= | |
570 | MFLAGS= | |
571 | MAKEFLAGS= | |
572 | SHELL=${CONFIG_SHELL-/bin/sh} | |
573 | ||
574 | # Identity of this package. | |
575 | PACKAGE_NAME='DHCP' | |
576 | PACKAGE_TARNAME='dhcp' | |
05a3a6f4 DH |
577 | PACKAGE_VERSION='4.1.0' |
578 | PACKAGE_STRING='DHCP 4.1.0' | |
fe5b0fdd DH |
579 | PACKAGE_BUGREPORT='dhcp-users@isc.org' |
580 | ||
581 | # Factoring default headers for most tests. | |
582 | ac_includes_default="\ | |
583 | #include <stdio.h> | |
4d24561a | 584 | #ifdef HAVE_SYS_TYPES_H |
fe5b0fdd DH |
585 | # include <sys/types.h> |
586 | #endif | |
4d24561a | 587 | #ifdef HAVE_SYS_STAT_H |
fe5b0fdd DH |
588 | # include <sys/stat.h> |
589 | #endif | |
4d24561a | 590 | #ifdef STDC_HEADERS |
fe5b0fdd DH |
591 | # include <stdlib.h> |
592 | # include <stddef.h> | |
593 | #else | |
4d24561a | 594 | # ifdef HAVE_STDLIB_H |
fe5b0fdd DH |
595 | # include <stdlib.h> |
596 | # endif | |
597 | #endif | |
4d24561a JR |
598 | #ifdef HAVE_STRING_H |
599 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
fe5b0fdd DH |
600 | # include <memory.h> |
601 | # endif | |
602 | # include <string.h> | |
603 | #endif | |
4d24561a | 604 | #ifdef HAVE_STRINGS_H |
fe5b0fdd DH |
605 | # include <strings.h> |
606 | #endif | |
4d24561a | 607 | #ifdef HAVE_INTTYPES_H |
fe5b0fdd | 608 | # include <inttypes.h> |
fe5b0fdd | 609 | #endif |
4d24561a JR |
610 | #ifdef HAVE_STDINT_H |
611 | # include <stdint.h> | |
612 | #endif | |
613 | #ifdef HAVE_UNISTD_H | |
fe5b0fdd DH |
614 | # include <unistd.h> |
615 | #endif" | |
616 | ||
4d24561a JR |
617 | ac_subst_vars='SHELL |
618 | PATH_SEPARATOR | |
619 | PACKAGE_NAME | |
620 | PACKAGE_TARNAME | |
621 | PACKAGE_VERSION | |
622 | PACKAGE_STRING | |
623 | PACKAGE_BUGREPORT | |
624 | exec_prefix | |
625 | prefix | |
626 | program_transform_name | |
627 | bindir | |
628 | sbindir | |
629 | libexecdir | |
630 | datarootdir | |
631 | datadir | |
632 | sysconfdir | |
633 | sharedstatedir | |
634 | localstatedir | |
635 | includedir | |
636 | oldincludedir | |
637 | docdir | |
638 | infodir | |
639 | htmldir | |
640 | dvidir | |
641 | pdfdir | |
642 | psdir | |
643 | libdir | |
644 | localedir | |
645 | mandir | |
646 | DEFS | |
647 | ECHO_C | |
648 | ECHO_N | |
649 | ECHO_T | |
650 | LIBS | |
651 | build_alias | |
652 | host_alias | |
653 | target_alias | |
654 | INSTALL_PROGRAM | |
655 | INSTALL_SCRIPT | |
656 | INSTALL_DATA | |
657 | CYGPATH_W | |
658 | PACKAGE | |
659 | VERSION | |
660 | ACLOCAL | |
661 | AUTOCONF | |
662 | AUTOMAKE | |
663 | AUTOHEADER | |
664 | MAKEINFO | |
665 | install_sh | |
666 | STRIP | |
667 | INSTALL_STRIP_PROGRAM | |
668 | mkdir_p | |
669 | AWK | |
670 | SET_MAKE | |
671 | am__leading_dot | |
672 | AMTAR | |
673 | am__tar | |
674 | am__untar | |
675 | CC | |
676 | CFLAGS | |
677 | LDFLAGS | |
678 | CPPFLAGS | |
679 | ac_ct_CC | |
680 | EXEEXT | |
681 | OBJEXT | |
682 | DEPDIR | |
683 | am__include | |
684 | am__quote | |
685 | AMDEP_TRUE | |
686 | AMDEP_FALSE | |
687 | AMDEPBACKSLASH | |
688 | CCDEPMODE | |
689 | am__fastdepCC_TRUE | |
690 | am__fastdepCC_FALSE | |
4d24561a JR |
691 | CPP |
692 | GREP | |
693 | EGREP | |
69bc1ebd SR |
694 | RANLIB |
695 | byte_order | |
4d24561a JR |
696 | ac_prefix_program |
697 | LIBOBJS | |
698 | LTLIBOBJS' | |
fe5b0fdd | 699 | ac_subst_files='' |
4d24561a JR |
700 | ac_precious_vars='build_alias |
701 | host_alias | |
702 | target_alias | |
703 | CC | |
704 | CFLAGS | |
705 | LDFLAGS | |
706 | LIBS | |
707 | CPPFLAGS | |
708 | CPP' | |
709 | ||
fe5b0fdd DH |
710 | |
711 | # Initialize some variables set by options. | |
712 | ac_init_help= | |
713 | ac_init_version=false | |
714 | # The variables have the same names as the options, with | |
715 | # dashes changed to underlines. | |
716 | cache_file=/dev/null | |
717 | exec_prefix=NONE | |
718 | no_create= | |
719 | no_recursion= | |
720 | prefix=NONE | |
721 | program_prefix=NONE | |
722 | program_suffix=NONE | |
723 | program_transform_name=s,x,x, | |
724 | silent= | |
725 | site= | |
726 | srcdir= | |
727 | verbose= | |
728 | x_includes=NONE | |
729 | x_libraries=NONE | |
730 | ||
731 | # Installation directory options. | |
732 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
733 | # and all the variables that are supposed to be based on exec_prefix | |
734 | # by default will actually change. | |
735 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
4d24561a | 736 | # (The list follows the same order as the GNU Coding Standards.) |
fe5b0fdd DH |
737 | bindir='${exec_prefix}/bin' |
738 | sbindir='${exec_prefix}/sbin' | |
739 | libexecdir='${exec_prefix}/libexec' | |
4d24561a JR |
740 | datarootdir='${prefix}/share' |
741 | datadir='${datarootdir}' | |
fe5b0fdd DH |
742 | sysconfdir='${prefix}/etc' |
743 | sharedstatedir='${prefix}/com' | |
744 | localstatedir='${prefix}/var' | |
745 | includedir='${prefix}/include' | |
746 | oldincludedir='/usr/include' | |
4d24561a JR |
747 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
748 | infodir='${datarootdir}/info' | |
749 | htmldir='${docdir}' | |
750 | dvidir='${docdir}' | |
751 | pdfdir='${docdir}' | |
752 | psdir='${docdir}' | |
753 | libdir='${exec_prefix}/lib' | |
754 | localedir='${datarootdir}/locale' | |
755 | mandir='${datarootdir}/man' | |
fe5b0fdd DH |
756 | |
757 | ac_prev= | |
4d24561a | 758 | ac_dashdash= |
fe5b0fdd DH |
759 | for ac_option |
760 | do | |
761 | # If the previous option needs an argument, assign it. | |
762 | if test -n "$ac_prev"; then | |
4d24561a | 763 | eval $ac_prev=\$ac_option |
fe5b0fdd DH |
764 | ac_prev= |
765 | continue | |
766 | fi | |
767 | ||
4d24561a JR |
768 | case $ac_option in |
769 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
770 | *) ac_optarg=yes ;; | |
771 | esac | |
fe5b0fdd DH |
772 | |
773 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
774 | ||
4d24561a JR |
775 | case $ac_dashdash$ac_option in |
776 | --) | |
777 | ac_dashdash=yes ;; | |
fe5b0fdd DH |
778 | |
779 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
780 | ac_prev=bindir ;; | |
781 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
782 | bindir=$ac_optarg ;; | |
783 | ||
784 | -build | --build | --buil | --bui | --bu) | |
785 | ac_prev=build_alias ;; | |
786 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
787 | build_alias=$ac_optarg ;; | |
788 | ||
789 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
790 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
791 | ac_prev=cache_file ;; | |
792 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
793 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
794 | cache_file=$ac_optarg ;; | |
795 | ||
796 | --config-cache | -C) | |
797 | cache_file=config.cache ;; | |
798 | ||
4d24561a | 799 | -datadir | --datadir | --datadi | --datad) |
fe5b0fdd | 800 | ac_prev=datadir ;; |
4d24561a | 801 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
fe5b0fdd DH |
802 | datadir=$ac_optarg ;; |
803 | ||
4d24561a JR |
804 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
805 | | --dataroo | --dataro | --datar) | |
806 | ac_prev=datarootdir ;; | |
807 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
808 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
809 | datarootdir=$ac_optarg ;; | |
810 | ||
fe5b0fdd DH |
811 | -disable-* | --disable-*) |
812 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
813 | # Reject names that are not valid shell variable names. | |
4d24561a | 814 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
fe5b0fdd DH |
815 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
816 | { (exit 1); exit 1; }; } | |
4d24561a JR |
817 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
818 | eval enable_$ac_feature=no ;; | |
819 | ||
820 | -docdir | --docdir | --docdi | --doc | --do) | |
821 | ac_prev=docdir ;; | |
822 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
823 | docdir=$ac_optarg ;; | |
824 | ||
825 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
826 | ac_prev=dvidir ;; | |
827 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
828 | dvidir=$ac_optarg ;; | |
fe5b0fdd DH |
829 | |
830 | -enable-* | --enable-*) | |
831 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
832 | # Reject names that are not valid shell variable names. | |
4d24561a | 833 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
fe5b0fdd DH |
834 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
835 | { (exit 1); exit 1; }; } | |
4d24561a JR |
836 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
837 | eval enable_$ac_feature=\$ac_optarg ;; | |
fe5b0fdd DH |
838 | |
839 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
840 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
841 | | --exec | --exe | --ex) | |
842 | ac_prev=exec_prefix ;; | |
843 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
844 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
845 | | --exec=* | --exe=* | --ex=*) | |
846 | exec_prefix=$ac_optarg ;; | |
847 | ||
848 | -gas | --gas | --ga | --g) | |
849 | # Obsolete; use --with-gas. | |
850 | with_gas=yes ;; | |
851 | ||
852 | -help | --help | --hel | --he | -h) | |
853 | ac_init_help=long ;; | |
854 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
855 | ac_init_help=recursive ;; | |
856 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
857 | ac_init_help=short ;; | |
858 | ||
859 | -host | --host | --hos | --ho) | |
860 | ac_prev=host_alias ;; | |
861 | -host=* | --host=* | --hos=* | --ho=*) | |
862 | host_alias=$ac_optarg ;; | |
863 | ||
4d24561a JR |
864 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
865 | ac_prev=htmldir ;; | |
866 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
867 | | --ht=*) | |
868 | htmldir=$ac_optarg ;; | |
869 | ||
fe5b0fdd DH |
870 | -includedir | --includedir | --includedi | --included | --include \ |
871 | | --includ | --inclu | --incl | --inc) | |
872 | ac_prev=includedir ;; | |
873 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
874 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
875 | includedir=$ac_optarg ;; | |
876 | ||
877 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
878 | ac_prev=infodir ;; | |
879 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
880 | infodir=$ac_optarg ;; | |
881 | ||
882 | -libdir | --libdir | --libdi | --libd) | |
883 | ac_prev=libdir ;; | |
884 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
885 | libdir=$ac_optarg ;; | |
886 | ||
887 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
888 | | --libexe | --libex | --libe) | |
889 | ac_prev=libexecdir ;; | |
890 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
891 | | --libexe=* | --libex=* | --libe=*) | |
892 | libexecdir=$ac_optarg ;; | |
893 | ||
4d24561a JR |
894 | -localedir | --localedir | --localedi | --localed | --locale) |
895 | ac_prev=localedir ;; | |
896 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
897 | localedir=$ac_optarg ;; | |
898 | ||
fe5b0fdd | 899 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
4d24561a | 900 | | --localstate | --localstat | --localsta | --localst | --locals) |
fe5b0fdd DH |
901 | ac_prev=localstatedir ;; |
902 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
4d24561a | 903 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
fe5b0fdd DH |
904 | localstatedir=$ac_optarg ;; |
905 | ||
906 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
907 | ac_prev=mandir ;; | |
908 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
909 | mandir=$ac_optarg ;; | |
910 | ||
911 | -nfp | --nfp | --nf) | |
912 | # Obsolete; use --without-fp. | |
913 | with_fp=no ;; | |
914 | ||
915 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
916 | | --no-cr | --no-c | -n) | |
917 | no_create=yes ;; | |
918 | ||
919 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
920 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
921 | no_recursion=yes ;; | |
922 | ||
923 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
924 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
925 | | --oldin | --oldi | --old | --ol | --o) | |
926 | ac_prev=oldincludedir ;; | |
927 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
928 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
929 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
930 | oldincludedir=$ac_optarg ;; | |
931 | ||
932 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
933 | ac_prev=prefix ;; | |
934 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
935 | prefix=$ac_optarg ;; | |
936 | ||
937 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
938 | | --program-pre | --program-pr | --program-p) | |
939 | ac_prev=program_prefix ;; | |
940 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
941 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
942 | program_prefix=$ac_optarg ;; | |
943 | ||
944 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
945 | | --program-suf | --program-su | --program-s) | |
946 | ac_prev=program_suffix ;; | |
947 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
948 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
949 | program_suffix=$ac_optarg ;; | |
950 | ||
951 | -program-transform-name | --program-transform-name \ | |
952 | | --program-transform-nam | --program-transform-na \ | |
953 | | --program-transform-n | --program-transform- \ | |
954 | | --program-transform | --program-transfor \ | |
955 | | --program-transfo | --program-transf \ | |
956 | | --program-trans | --program-tran \ | |
957 | | --progr-tra | --program-tr | --program-t) | |
958 | ac_prev=program_transform_name ;; | |
959 | -program-transform-name=* | --program-transform-name=* \ | |
960 | | --program-transform-nam=* | --program-transform-na=* \ | |
961 | | --program-transform-n=* | --program-transform-=* \ | |
962 | | --program-transform=* | --program-transfor=* \ | |
963 | | --program-transfo=* | --program-transf=* \ | |
964 | | --program-trans=* | --program-tran=* \ | |
965 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
966 | program_transform_name=$ac_optarg ;; | |
967 | ||
4d24561a JR |
968 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
969 | ac_prev=pdfdir ;; | |
970 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
971 | pdfdir=$ac_optarg ;; | |
972 | ||
973 | -psdir | --psdir | --psdi | --psd | --ps) | |
974 | ac_prev=psdir ;; | |
975 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
976 | psdir=$ac_optarg ;; | |
977 | ||
fe5b0fdd DH |
978 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
979 | | -silent | --silent | --silen | --sile | --sil) | |
980 | silent=yes ;; | |
981 | ||
982 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
983 | ac_prev=sbindir ;; | |
984 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
985 | | --sbi=* | --sb=*) | |
986 | sbindir=$ac_optarg ;; | |
987 | ||
988 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
989 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
990 | | --sharedst | --shareds | --shared | --share | --shar \ | |
991 | | --sha | --sh) | |
992 | ac_prev=sharedstatedir ;; | |
993 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
994 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
995 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
996 | | --sha=* | --sh=*) | |
997 | sharedstatedir=$ac_optarg ;; | |
998 | ||
999 | -site | --site | --sit) | |
1000 | ac_prev=site ;; | |
1001 | -site=* | --site=* | --sit=*) | |
1002 | site=$ac_optarg ;; | |
1003 | ||
1004 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1005 | ac_prev=srcdir ;; | |
1006 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1007 | srcdir=$ac_optarg ;; | |
1008 | ||
1009 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1010 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1011 | ac_prev=sysconfdir ;; | |
1012 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1013 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1014 | sysconfdir=$ac_optarg ;; | |
1015 | ||
1016 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1017 | ac_prev=target_alias ;; | |
1018 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1019 | target_alias=$ac_optarg ;; | |
1020 | ||
1021 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1022 | verbose=yes ;; | |
1023 | ||
1024 | -version | --version | --versio | --versi | --vers | -V) | |
1025 | ac_init_version=: ;; | |
1026 | ||
1027 | -with-* | --with-*) | |
1028 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1029 | # Reject names that are not valid shell variable names. | |
4d24561a | 1030 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
fe5b0fdd DH |
1031 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1032 | { (exit 1); exit 1; }; } | |
4d24561a JR |
1033 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1034 | eval with_$ac_package=\$ac_optarg ;; | |
fe5b0fdd DH |
1035 | |
1036 | -without-* | --without-*) | |
1037 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1038 | # Reject names that are not valid shell variable names. | |
4d24561a | 1039 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
fe5b0fdd DH |
1040 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1041 | { (exit 1); exit 1; }; } | |
4d24561a JR |
1042 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1043 | eval with_$ac_package=no ;; | |
fe5b0fdd DH |
1044 | |
1045 | --x) | |
1046 | # Obsolete; use --with-x. | |
1047 | with_x=yes ;; | |
1048 | ||
1049 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1050 | | --x-incl | --x-inc | --x-in | --x-i) | |
1051 | ac_prev=x_includes ;; | |
1052 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1053 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1054 | x_includes=$ac_optarg ;; | |
1055 | ||
1056 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1057 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1058 | ac_prev=x_libraries ;; | |
1059 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1060 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1061 | x_libraries=$ac_optarg ;; | |
1062 | ||
1063 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1064 | Try \`$0 --help' for more information." >&2 | |
1065 | { (exit 1); exit 1; }; } | |
1066 | ;; | |
1067 | ||
1068 | *=*) | |
1069 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1070 | # Reject names that are not valid shell variable names. | |
1071 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1072 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1073 | { (exit 1); exit 1; }; } | |
4d24561a | 1074 | eval $ac_envvar=\$ac_optarg |
fe5b0fdd DH |
1075 | export $ac_envvar ;; |
1076 | ||
1077 | *) | |
1078 | # FIXME: should be removed in autoconf 3.0. | |
1079 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1080 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1081 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1082 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1083 | ;; | |
1084 | ||
1085 | esac | |
1086 | done | |
1087 | ||
1088 | if test -n "$ac_prev"; then | |
1089 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1090 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1091 | { (exit 1); exit 1; }; } | |
1092 | fi | |
1093 | ||
4d24561a JR |
1094 | # Be sure to have absolute directory names. |
1095 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1096 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1097 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1098 | libdir localedir mandir | |
7d714d6b | 1099 | do |
4d24561a | 1100 | eval ac_val=\$$ac_var |
7d714d6b | 1101 | case $ac_val in |
4d24561a JR |
1102 | [\\/$]* | ?:[\\/]* ) continue;; |
1103 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
fe5b0fdd | 1104 | esac |
4d24561a JR |
1105 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1106 | { (exit 1); exit 1; }; } | |
fe5b0fdd DH |
1107 | done |
1108 | ||
1109 | # There might be people who depend on the old broken behavior: `$host' | |
1110 | # used to hold the argument of --host etc. | |
1111 | # FIXME: To remove some day. | |
1112 | build=$build_alias | |
1113 | host=$host_alias | |
1114 | target=$target_alias | |
1115 | ||
1116 | # FIXME: To remove some day. | |
1117 | if test "x$host_alias" != x; then | |
1118 | if test "x$build_alias" = x; then | |
1119 | cross_compiling=maybe | |
1120 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1121 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1122 | elif test "x$build_alias" != "x$host_alias"; then | |
1123 | cross_compiling=yes | |
1124 | fi | |
1125 | fi | |
1126 | ||
1127 | ac_tool_prefix= | |
1128 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1129 | ||
1130 | test "$silent" = yes && exec 6>/dev/null | |
1131 | ||
1132 | ||
4d24561a JR |
1133 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1134 | ac_ls_di=`ls -di .` && | |
1135 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1136 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1137 | { (exit 1); exit 1; }; } | |
1138 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1139 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1140 | { (exit 1); exit 1; }; } | |
1141 | ||
1142 | ||
fe5b0fdd DH |
1143 | # Find the source files, if location was not specified. |
1144 | if test -z "$srcdir"; then | |
1145 | ac_srcdir_defaulted=yes | |
4d24561a JR |
1146 | # Try the directory containing this script, then the parent directory. |
1147 | ac_confdir=`$as_dirname -- "$0" || | |
fe5b0fdd DH |
1148 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1149 | X"$0" : 'X\(//\)[^/]' \| \ | |
1150 | X"$0" : 'X\(//\)$' \| \ | |
4d24561a | 1151 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 1152 | echo X"$0" | |
4d24561a JR |
1153 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1154 | s//\1/ | |
1155 | q | |
1156 | } | |
1157 | /^X\(\/\/\)[^/].*/{ | |
1158 | s//\1/ | |
1159 | q | |
1160 | } | |
1161 | /^X\(\/\/\)$/{ | |
1162 | s//\1/ | |
1163 | q | |
1164 | } | |
1165 | /^X\(\/\).*/{ | |
1166 | s//\1/ | |
1167 | q | |
1168 | } | |
1169 | s/.*/./; q'` | |
fe5b0fdd | 1170 | srcdir=$ac_confdir |
4d24561a | 1171 | if test ! -r "$srcdir/$ac_unique_file"; then |
fe5b0fdd DH |
1172 | srcdir=.. |
1173 | fi | |
1174 | else | |
1175 | ac_srcdir_defaulted=no | |
1176 | fi | |
4d24561a JR |
1177 | if test ! -r "$srcdir/$ac_unique_file"; then |
1178 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1179 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
035ed382 | 1180 | { (exit 1); exit 1; }; } |
8d7ba39e | 1181 | fi |
4d24561a JR |
1182 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1183 | ac_abs_confdir=`( | |
1184 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
8d7ba39e | 1185 | { (exit 1); exit 1; }; } |
4d24561a JR |
1186 | pwd)` |
1187 | # When building in place, set srcdir=. | |
1188 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1189 | srcdir=. | |
1190 | fi | |
1191 | # Remove unnecessary trailing slashes from srcdir. | |
1192 | # Double slashes in file names in object file debugging info | |
1193 | # mess up M-x gdb in Emacs. | |
1194 | case $srcdir in | |
1195 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1196 | esac | |
1197 | for ac_var in $ac_precious_vars; do | |
1198 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1199 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1200 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1201 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1202 | done | |
fe5b0fdd DH |
1203 | |
1204 | # | |
1205 | # Report the --help message. | |
1206 | # | |
1207 | if test "$ac_init_help" = "long"; then | |
1208 | # Omit some internal or obsolete options to make the list less imposing. | |
1209 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1210 | cat <<_ACEOF | |
05a3a6f4 | 1211 | \`configure' configures DHCP 4.1.0 to adapt to many kinds of systems. |
fe5b0fdd DH |
1212 | |
1213 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1214 | ||
1215 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1216 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1217 | ||
1218 | Defaults for the options are specified in brackets. | |
1219 | ||
1220 | Configuration: | |
1221 | -h, --help display this help and exit | |
1222 | --help=short display options specific to this package | |
1223 | --help=recursive display the short help of all the included packages | |
1224 | -V, --version display version information and exit | |
1225 | -q, --quiet, --silent do not print \`checking...' messages | |
1226 | --cache-file=FILE cache test results in FILE [disabled] | |
1227 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1228 | -n, --no-create do not create output files | |
1229 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1230 | ||
1231 | Installation directories: | |
1232 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1233 | [$ac_default_prefix] | |
1234 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1235 | [PREFIX] | |
1236 | ||
1237 | By default, \`make install' will install all the files in | |
1238 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1239 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1240 | for instance \`--prefix=\$HOME'. | |
1241 | ||
1242 | For better control, use the options below. | |
1243 | ||
1244 | Fine tuning of the installation directories: | |
1245 | --bindir=DIR user executables [EPREFIX/bin] | |
1246 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1247 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1248 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1249 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1250 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1251 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1252 | --includedir=DIR C header files [PREFIX/include] | |
1253 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
4d24561a JR |
1254 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1255 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1256 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1257 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1258 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1259 | --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp] | |
1260 | --htmldir=DIR html documentation [DOCDIR] | |
1261 | --dvidir=DIR dvi documentation [DOCDIR] | |
1262 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1263 | --psdir=DIR ps documentation [DOCDIR] | |
fe5b0fdd DH |
1264 | _ACEOF |
1265 | ||
1266 | cat <<\_ACEOF | |
1267 | ||
1268 | Program names: | |
1269 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1270 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1271 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1272 | _ACEOF | |
1273 | fi | |
1274 | ||
1275 | if test -n "$ac_init_help"; then | |
1276 | case $ac_init_help in | |
05a3a6f4 | 1277 | short | recursive ) echo "Configuration of DHCP 4.1.0:";; |
fe5b0fdd DH |
1278 | esac |
1279 | cat <<\_ACEOF | |
1280 | ||
1281 | Optional Features: | |
1282 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1283 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
fc3ebe53 DH |
1284 | --disable-dependency-tracking speeds up one-time build |
1285 | --enable-dependency-tracking do not reject slow dependency extractors | |
0552f26e DH |
1286 | --enable-debug create a debug-only version of the software (default |
1287 | is no). | |
1288 | --enable-failover enable support for failover (default is yes) | |
1289 | --enable-execute enable support for execute() in config (default is | |
1290 | yes) | |
1291 | --enable-tracing enable support for server activity tracing (default | |
1292 | is yes) | |
7d714d6b | 1293 | --enable-delayed-ack queues multiple DHCPACK replies (default is no) |
cadea5ff | 1294 | --enable-dhcpv6 enable support for DHCPv6 (default is yes) |
3004d0a3 | 1295 | --enable-paranoia enable support for chroot/setuid (default is no) |
26ef247f | 1296 | --enable-early-chroot enable chrooting prior to configuration (default is |
3004d0a3 | 1297 | no) |
fe5b0fdd DH |
1298 | |
1299 | Optional Packages: | |
1300 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1301 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1302 | --with-srv-lease-file=PATH | |
1303 | File for dhcpd leases (default is | |
1304 | LOCALSTATEDIR/db/dhcpd.leases) | |
8dea7ba7 FD |
1305 | --with-srv6-lease-file=PATH |
1306 | File for dhcpd6 leases (default is | |
1307 | LOCALSTATEDIR/db/dhcpd6.leases) | |
fe5b0fdd DH |
1308 | --with-cli-lease-file=PATH |
1309 | File for dhclient leases (default is | |
1310 | LOCALSTATEDIR/db/dhclient.leases) | |
8dea7ba7 FD |
1311 | --with-cli6-lease-file=PATH |
1312 | File for dhclient6 leases (default is | |
1313 | LOCALSTATEDIR/db/dhclient6.leases) | |
fe5b0fdd DH |
1314 | --with-srv-pid-file=PATH |
1315 | File for dhcpd process information (default is | |
1316 | LOCALSTATEDIR/run/dhcpd.pid) | |
8dea7ba7 FD |
1317 | --with-srv6-pid-file=PATH |
1318 | File for dhcpd6 process information (default is | |
1319 | LOCALSTATEDIR/run/dhcpd6.pid) | |
fe5b0fdd DH |
1320 | --with-cli-pid-file=PATH |
1321 | File for dhclient process information (default is | |
1322 | LOCALSTATEDIR/run/dhclient.pid) | |
8dea7ba7 FD |
1323 | --with-cli6-pid-file=PATH |
1324 | File for dhclient6 process information (default is | |
1325 | LOCALSTATEDIR/run/dhclient6.pid) | |
fe5b0fdd DH |
1326 | --with-relay-pid-file=PATH |
1327 | File for dhcrelay process information (default is | |
1328 | LOCALSTATEDIR/run/dhcrelay.pid) | |
1329 | ||
1330 | Some influential environment variables: | |
1331 | CC C compiler command | |
1332 | CFLAGS C compiler flags | |
1333 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1334 | nonstandard directory <lib dir> | |
4d24561a JR |
1335 | LIBS libraries to pass to the linker, e.g. -l<library> |
1336 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1337 | you have headers in a nonstandard directory <include dir> | |
fe5b0fdd DH |
1338 | CPP C preprocessor |
1339 | ||
1340 | Use these variables to override the choices made by `configure' or to help | |
1341 | it to find libraries and programs with nonstandard names/locations. | |
1342 | ||
1343 | Report bugs to <dhcp-users@isc.org>. | |
1344 | _ACEOF | |
4d24561a | 1345 | ac_status=$? |
fe5b0fdd DH |
1346 | fi |
1347 | ||
1348 | if test "$ac_init_help" = "recursive"; then | |
1349 | # If there are subdirs, report their specific --help. | |
1350 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
4d24561a | 1351 | test -d "$ac_dir" || continue |
fe5b0fdd DH |
1352 | ac_builddir=. |
1353 | ||
4d24561a JR |
1354 | case "$ac_dir" in |
1355 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1356 | *) | |
fe5b0fdd | 1357 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
4d24561a JR |
1358 | # A ".." for each directory in $ac_dir_suffix. |
1359 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1360 | case $ac_top_builddir_sub in | |
1361 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1362 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1363 | esac ;; | |
1364 | esac | |
1365 | ac_abs_top_builddir=$ac_pwd | |
1366 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1367 | # for backward compatibility: | |
1368 | ac_top_builddir=$ac_top_build_prefix | |
fe5b0fdd DH |
1369 | |
1370 | case $srcdir in | |
4d24561a | 1371 | .) # We are building in place. |
fe5b0fdd | 1372 | ac_srcdir=. |
4d24561a JR |
1373 | ac_top_srcdir=$ac_top_builddir_sub |
1374 | ac_abs_top_srcdir=$ac_pwd ;; | |
1375 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fe5b0fdd | 1376 | ac_srcdir=$srcdir$ac_dir_suffix; |
4d24561a JR |
1377 | ac_top_srcdir=$srcdir |
1378 | ac_abs_top_srcdir=$srcdir ;; | |
1379 | *) # Relative name. | |
1380 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1381 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1382 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
7d714d6b | 1383 | esac |
4d24561a JR |
1384 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1385 | ||
1386 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1387 | # Check for guested configure. | |
1388 | if test -f "$ac_srcdir/configure.gnu"; then | |
1389 | echo && | |
1390 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1391 | elif test -f "$ac_srcdir/configure"; then | |
1392 | echo && | |
1393 | $SHELL "$ac_srcdir/configure" --help=recursive | |
fe5b0fdd DH |
1394 | else |
1395 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
4d24561a JR |
1396 | fi || ac_status=$? |
1397 | cd "$ac_pwd" || { ac_status=$?; break; } | |
fe5b0fdd DH |
1398 | done |
1399 | fi | |
1400 | ||
4d24561a | 1401 | test -n "$ac_init_help" && exit $ac_status |
fe5b0fdd DH |
1402 | if $ac_init_version; then |
1403 | cat <<\_ACEOF | |
05a3a6f4 | 1404 | DHCP configure 4.1.0 |
4d24561a | 1405 | generated by GNU Autoconf 2.61 |
fe5b0fdd | 1406 | |
4d24561a JR |
1407 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1408 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
fe5b0fdd DH |
1409 | This configure script is free software; the Free Software Foundation |
1410 | gives unlimited permission to copy, distribute and modify it. | |
1411 | _ACEOF | |
4d24561a | 1412 | exit |
fe5b0fdd | 1413 | fi |
4d24561a | 1414 | cat >config.log <<_ACEOF |
fe5b0fdd DH |
1415 | This file contains any messages produced by compilers while |
1416 | running configure, to aid debugging if configure makes a mistake. | |
1417 | ||
05a3a6f4 | 1418 | It was created by DHCP $as_me 4.1.0, which was |
4d24561a | 1419 | generated by GNU Autoconf 2.61. Invocation command line was |
fe5b0fdd DH |
1420 | |
1421 | $ $0 $@ | |
1422 | ||
1423 | _ACEOF | |
4d24561a | 1424 | exec 5>>config.log |
fe5b0fdd DH |
1425 | { |
1426 | cat <<_ASUNAME | |
1427 | ## --------- ## | |
1428 | ## Platform. ## | |
1429 | ## --------- ## | |
1430 | ||
1431 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1432 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1433 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1434 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1435 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1436 | ||
1437 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1438 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1439 | ||
1440 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1441 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1442 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
4d24561a | 1443 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
fe5b0fdd DH |
1444 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1445 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1446 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1447 | ||
1448 | _ASUNAME | |
1449 | ||
1450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1451 | for as_dir in $PATH | |
1452 | do | |
1453 | IFS=$as_save_IFS | |
1454 | test -z "$as_dir" && as_dir=. | |
1455 | echo "PATH: $as_dir" | |
1456 | done | |
4d24561a | 1457 | IFS=$as_save_IFS |
fe5b0fdd DH |
1458 | |
1459 | } >&5 | |
1460 | ||
1461 | cat >&5 <<_ACEOF | |
1462 | ||
1463 | ||
1464 | ## ----------- ## | |
1465 | ## Core tests. ## | |
1466 | ## ----------- ## | |
1467 | ||
1468 | _ACEOF | |
1469 | ||
1470 | ||
1471 | # Keep a trace of the command line. | |
1472 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1473 | # Strip out --silent because we don't want to record it for future runs. | |
1474 | # Also quote any args containing shell meta-characters. | |
1475 | # Make two passes to allow for proper duplicate-argument suppression. | |
1476 | ac_configure_args= | |
1477 | ac_configure_args0= | |
1478 | ac_configure_args1= | |
1479 | ac_must_keep_next=false | |
1480 | for ac_pass in 1 2 | |
1481 | do | |
1482 | for ac_arg | |
1483 | do | |
1484 | case $ac_arg in | |
1485 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1486 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1487 | | -silent | --silent | --silen | --sile | --sil) | |
1488 | continue ;; | |
4d24561a | 1489 | *\'*) |
fe5b0fdd DH |
1490 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1491 | esac | |
1492 | case $ac_pass in | |
1493 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1494 | 2) | |
1495 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1496 | if test $ac_must_keep_next = true; then | |
1497 | ac_must_keep_next=false # Got value, back to normal. | |
1498 | else | |
1499 | case $ac_arg in | |
1500 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1501 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1502 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1503 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1504 | case "$ac_configure_args0 " in | |
1505 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1506 | esac | |
1507 | ;; | |
1508 | -* ) ac_must_keep_next=true ;; | |
1509 | esac | |
1510 | fi | |
4d24561a | 1511 | ac_configure_args="$ac_configure_args '$ac_arg'" |
fe5b0fdd DH |
1512 | ;; |
1513 | esac | |
1514 | done | |
1515 | done | |
1516 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1517 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1518 | ||
1519 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1520 | # config.log. We remove comments because anyway the quotes in there | |
1521 | # would cause problems or look ugly. | |
4d24561a JR |
1522 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1523 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
fe5b0fdd DH |
1524 | trap 'exit_status=$? |
1525 | # Save into config.log some information that might help in debugging. | |
1526 | { | |
1527 | echo | |
1528 | ||
1529 | cat <<\_ASBOX | |
1530 | ## ---------------- ## | |
1531 | ## Cache variables. ## | |
1532 | ## ---------------- ## | |
1533 | _ASBOX | |
1534 | echo | |
1535 | # The following way of writing the cache mishandles newlines in values, | |
4d24561a JR |
1536 | ( |
1537 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1538 | eval ac_val=\$$ac_var | |
1539 | case $ac_val in #( | |
1540 | *${as_nl}*) | |
1541 | case $ac_var in #( | |
1542 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1543 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1544 | esac | |
1545 | case $ac_var in #( | |
1546 | _ | IFS | as_nl) ;; #( | |
1547 | *) $as_unset $ac_var ;; | |
1548 | esac ;; | |
1549 | esac | |
1550 | done | |
fe5b0fdd | 1551 | (set) 2>&1 | |
4d24561a JR |
1552 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1553 | *${as_nl}ac_space=\ *) | |
fe5b0fdd | 1554 | sed -n \ |
4d24561a JR |
1555 | "s/'\''/'\''\\\\'\'''\''/g; |
1556 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1557 | ;; #( | |
fe5b0fdd | 1558 | *) |
4d24561a | 1559 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
fe5b0fdd | 1560 | ;; |
4d24561a JR |
1561 | esac | |
1562 | sort | |
1563 | ) | |
fe5b0fdd DH |
1564 | echo |
1565 | ||
1566 | cat <<\_ASBOX | |
1567 | ## ----------------- ## | |
1568 | ## Output variables. ## | |
1569 | ## ----------------- ## | |
1570 | _ASBOX | |
1571 | echo | |
1572 | for ac_var in $ac_subst_vars | |
1573 | do | |
4d24561a JR |
1574 | eval ac_val=\$$ac_var |
1575 | case $ac_val in | |
1576 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1577 | esac | |
1578 | echo "$ac_var='\''$ac_val'\''" | |
fe5b0fdd DH |
1579 | done | sort |
1580 | echo | |
1581 | ||
1582 | if test -n "$ac_subst_files"; then | |
1583 | cat <<\_ASBOX | |
4d24561a JR |
1584 | ## ------------------- ## |
1585 | ## File substitutions. ## | |
1586 | ## ------------------- ## | |
fe5b0fdd DH |
1587 | _ASBOX |
1588 | echo | |
1589 | for ac_var in $ac_subst_files | |
1590 | do | |
4d24561a JR |
1591 | eval ac_val=\$$ac_var |
1592 | case $ac_val in | |
1593 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1594 | esac | |
1595 | echo "$ac_var='\''$ac_val'\''" | |
fe5b0fdd DH |
1596 | done | sort |
1597 | echo | |
1598 | fi | |
1599 | ||
1600 | if test -s confdefs.h; then | |
1601 | cat <<\_ASBOX | |
1602 | ## ----------- ## | |
1603 | ## confdefs.h. ## | |
1604 | ## ----------- ## | |
1605 | _ASBOX | |
1606 | echo | |
4d24561a | 1607 | cat confdefs.h |
fe5b0fdd DH |
1608 | echo |
1609 | fi | |
1610 | test "$ac_signal" != 0 && | |
1611 | echo "$as_me: caught signal $ac_signal" | |
1612 | echo "$as_me: exit $exit_status" | |
1613 | } >&5 | |
4d24561a JR |
1614 | rm -f core *.core core.conftest.* && |
1615 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
fe5b0fdd | 1616 | exit $exit_status |
4d24561a | 1617 | ' 0 |
fe5b0fdd DH |
1618 | for ac_signal in 1 2 13 15; do |
1619 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1620 | done | |
1621 | ac_signal=0 | |
1622 | ||
1623 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
4d24561a | 1624 | rm -f -r conftest* confdefs.h |
fe5b0fdd DH |
1625 | |
1626 | # Predefined preprocessor variables. | |
1627 | ||
1628 | cat >>confdefs.h <<_ACEOF | |
1629 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1630 | _ACEOF | |
1631 | ||
1632 | ||
1633 | cat >>confdefs.h <<_ACEOF | |
1634 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1635 | _ACEOF | |
1636 | ||
1637 | ||
1638 | cat >>confdefs.h <<_ACEOF | |
1639 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1640 | _ACEOF | |
1641 | ||
1642 | ||
1643 | cat >>confdefs.h <<_ACEOF | |
1644 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1645 | _ACEOF | |
1646 | ||
1647 | ||
1648 | cat >>confdefs.h <<_ACEOF | |
1649 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1650 | _ACEOF | |
1651 | ||
1652 | ||
1653 | # Let the site file select an alternate cache file if it wants to. | |
1654 | # Prefer explicitly selected file to automatically selected ones. | |
4d24561a JR |
1655 | if test -n "$CONFIG_SITE"; then |
1656 | set x "$CONFIG_SITE" | |
1657 | elif test "x$prefix" != xNONE; then | |
1658 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1659 | else | |
1660 | set x "$ac_default_prefix/share/config.site" \ | |
1661 | "$ac_default_prefix/etc/config.site" | |
fe5b0fdd | 1662 | fi |
4d24561a JR |
1663 | shift |
1664 | for ac_site_file | |
1665 | do | |
fe5b0fdd DH |
1666 | if test -r "$ac_site_file"; then |
1667 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1668 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1669 | sed 's/^/| /' "$ac_site_file" >&5 | |
1670 | . "$ac_site_file" | |
1671 | fi | |
1672 | done | |
1673 | ||
1674 | if test -r "$cache_file"; then | |
1675 | # Some versions of bash will fail to source /dev/null (special | |
1676 | # files actually), so we avoid doing that. | |
1677 | if test -f "$cache_file"; then | |
1678 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1679 | echo "$as_me: loading cache $cache_file" >&6;} | |
1680 | case $cache_file in | |
4d24561a JR |
1681 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1682 | *) . "./$cache_file";; | |
fe5b0fdd DH |
1683 | esac |
1684 | fi | |
1685 | else | |
1686 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1687 | echo "$as_me: creating cache $cache_file" >&6;} | |
1688 | >$cache_file | |
1689 | fi | |
1690 | ||
1691 | # Check that the precious variables saved in the cache have kept the same | |
1692 | # value. | |
1693 | ac_cache_corrupted=false | |
4d24561a | 1694 | for ac_var in $ac_precious_vars; do |
fe5b0fdd DH |
1695 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1696 | eval ac_new_set=\$ac_env_${ac_var}_set | |
4d24561a JR |
1697 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1698 | eval ac_new_val=\$ac_env_${ac_var}_value | |
fe5b0fdd DH |
1699 | case $ac_old_set,$ac_new_set in |
1700 | set,) | |
1701 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1702 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1703 | ac_cache_corrupted=: ;; | |
1704 | ,set) | |
1705 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1706 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1707 | ac_cache_corrupted=: ;; | |
1708 | ,);; | |
1709 | *) | |
1710 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1711 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1712 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1713 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1714 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1715 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1716 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1717 | ac_cache_corrupted=: | |
1718 | fi;; | |
1719 | esac | |
1720 | # Pass precious variables to config.status. | |
1721 | if test "$ac_new_set" = set; then | |
1722 | case $ac_new_val in | |
4d24561a | 1723 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
fe5b0fdd DH |
1724 | *) ac_arg=$ac_var=$ac_new_val ;; |
1725 | esac | |
1726 | case " $ac_configure_args " in | |
1727 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1728 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1729 | esac | |
1730 | fi | |
1731 | done | |
1732 | if $ac_cache_corrupted; then | |
1733 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1734 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1735 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1736 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1737 | { (exit 1); exit 1; }; } | |
1738 | fi | |
1739 | ||
1740 | ||
1741 | ||
1742 | ||
1743 | ||
1744 | ||
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | ||
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | ||
1760 | ||
1761 | ||
1762 | ||
1763 | ||
4d24561a JR |
1764 | ac_ext=c |
1765 | ac_cpp='$CPP $CPPFLAGS' | |
1766 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1767 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1768 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
fe5b0fdd DH |
1769 | |
1770 | ||
1771 | ||
1772 | # we specify "foreign" to avoid having to have the GNU mandated files, | |
1773 | # like AUTHORS, COPYING, and such | |
7d714d6b | 1774 | am__api_version="1.9" |
fe5b0fdd | 1775 | ac_aux_dir= |
4d24561a JR |
1776 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1777 | if test -f "$ac_dir/install-sh"; then | |
fe5b0fdd DH |
1778 | ac_aux_dir=$ac_dir |
1779 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1780 | break | |
4d24561a | 1781 | elif test -f "$ac_dir/install.sh"; then |
fe5b0fdd DH |
1782 | ac_aux_dir=$ac_dir |
1783 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1784 | break | |
4d24561a | 1785 | elif test -f "$ac_dir/shtool"; then |
fe5b0fdd DH |
1786 | ac_aux_dir=$ac_dir |
1787 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1788 | break | |
1789 | fi | |
1790 | done | |
1791 | if test -z "$ac_aux_dir"; then | |
4d24561a JR |
1792 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1793 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
fe5b0fdd DH |
1794 | { (exit 1); exit 1; }; } |
1795 | fi | |
4d24561a JR |
1796 | |
1797 | # These three variables are undocumented and unsupported, | |
1798 | # and are intended to be withdrawn in a future Autoconf release. | |
1799 | # They can cause serious problems if a builder's source tree is in a directory | |
1800 | # whose full name contains unusual characters. | |
1801 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1802 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1803 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1804 | ||
fe5b0fdd DH |
1805 | |
1806 | # Find a good install program. We prefer a C program (faster), | |
1807 | # so one script is as good as another. But avoid the broken or | |
1808 | # incompatible versions: | |
1809 | # SysV /etc/install, /usr/sbin/install | |
1810 | # SunOS /usr/etc/install | |
1811 | # IRIX /sbin/install | |
1812 | # AIX /bin/install | |
1813 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1814 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1815 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1816 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1817 | # OS/2's system install, which has a completely different semantic | |
1818 | # ./install, which can be erroneously created by make from ./install.sh. | |
4d24561a JR |
1819 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1820 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
fe5b0fdd DH |
1821 | if test -z "$INSTALL"; then |
1822 | if test "${ac_cv_path_install+set}" = set; then | |
1823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1824 | else | |
1825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1826 | for as_dir in $PATH | |
1827 | do | |
1828 | IFS=$as_save_IFS | |
1829 | test -z "$as_dir" && as_dir=. | |
1830 | # Account for people who put trailing slashes in PATH elements. | |
1831 | case $as_dir/ in | |
1832 | ./ | .// | /cC/* | \ | |
1833 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1834 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1835 | /usr/ucb/* ) ;; | |
1836 | *) | |
1837 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1838 | # Don't use installbsd from OSF since it installs stuff as root | |
1839 | # by default. | |
1840 | for ac_prog in ginstall scoinst install; do | |
1841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4d24561a | 1842 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
fe5b0fdd DH |
1843 | if test $ac_prog = install && |
1844 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1845 | # AIX install. It has an incompatible calling convention. | |
1846 | : | |
1847 | elif test $ac_prog = install && | |
1848 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1849 | # program-specific install script used by HP pwplus--don't use. | |
1850 | : | |
1851 | else | |
1852 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1853 | break 3 | |
1854 | fi | |
1855 | fi | |
1856 | done | |
1857 | done | |
1858 | ;; | |
1859 | esac | |
1860 | done | |
4d24561a | 1861 | IFS=$as_save_IFS |
fe5b0fdd DH |
1862 | |
1863 | ||
1864 | fi | |
1865 | if test "${ac_cv_path_install+set}" = set; then | |
1866 | INSTALL=$ac_cv_path_install | |
1867 | else | |
4d24561a JR |
1868 | # As a last resort, use the slow shell script. Don't cache a |
1869 | # value for INSTALL within a source directory, because that will | |
fe5b0fdd | 1870 | # break other packages using the cache if that directory is |
4d24561a | 1871 | # removed, or if the value is a relative name. |
fe5b0fdd DH |
1872 | INSTALL=$ac_install_sh |
1873 | fi | |
1874 | fi | |
4d24561a JR |
1875 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1876 | echo "${ECHO_T}$INSTALL" >&6; } | |
fe5b0fdd DH |
1877 | |
1878 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1879 | # It thinks the first close brace ends the variable substitution. | |
1880 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1881 | ||
1882 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1883 | ||
1884 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1885 | ||
4d24561a JR |
1886 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1887 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
fe5b0fdd DH |
1888 | # Just in case |
1889 | sleep 1 | |
fc3ebe53 | 1890 | echo timestamp > conftest.file |
fe5b0fdd DH |
1891 | # Do `set' in a subshell so we don't clobber the current shell's |
1892 | # arguments. Must try -L first in case configure is actually a | |
1893 | # symlink; some systems play weird games with the mod time of symlinks | |
1894 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1895 | # directory). | |
1896 | if ( | |
fc3ebe53 | 1897 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
fe5b0fdd DH |
1898 | if test "$*" = "X"; then |
1899 | # -L didn't work. | |
fc3ebe53 | 1900 | set X `ls -t $srcdir/configure conftest.file` |
fe5b0fdd | 1901 | fi |
fc3ebe53 DH |
1902 | rm -f conftest.file |
1903 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1904 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
fe5b0fdd DH |
1905 | |
1906 | # If neither matched, then we have a broken ls. This can happen | |
1907 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1908 | # broken ls alias from the environment. This has actually | |
1909 | # happened. Such a system could not be considered "sane". | |
1910 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1911 | alias in your environment" >&5 | |
1912 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1913 | alias in your environment" >&2;} | |
1914 | { (exit 1); exit 1; }; } | |
1915 | fi | |
1916 | ||
fc3ebe53 | 1917 | test "$2" = conftest.file |
fe5b0fdd DH |
1918 | ) |
1919 | then | |
1920 | # Ok. | |
1921 | : | |
1922 | else | |
1923 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1924 | Check your system clock" >&5 | |
1925 | echo "$as_me: error: newly created file is older than distributed files! | |
1926 | Check your system clock" >&2;} | |
1927 | { (exit 1); exit 1; }; } | |
1928 | fi | |
4d24561a JR |
1929 | { echo "$as_me:$LINENO: result: yes" >&5 |
1930 | echo "${ECHO_T}yes" >&6; } | |
fe5b0fdd | 1931 | test "$program_prefix" != NONE && |
4d24561a | 1932 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
fe5b0fdd DH |
1933 | # Use a double $ so make ignores it. |
1934 | test "$program_suffix" != NONE && | |
4d24561a | 1935 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
fe5b0fdd DH |
1936 | # Double any \ or $. echo might interpret backslashes. |
1937 | # By default was `s,x,x', remove it if useless. | |
1938 | cat <<\_ACEOF >conftest.sed | |
1939 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1940 | _ACEOF | |
1941 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
4d24561a | 1942 | rm -f conftest.sed |
fe5b0fdd | 1943 | |
fc3ebe53 DH |
1944 | # expand $ac_aux_dir to an absolute path |
1945 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1946 | ||
1947 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1948 | # Use eval to expand $SHELL | |
1949 | if eval "$MISSING --run true"; then | |
1950 | am_missing_run="$MISSING --run " | |
1951 | else | |
1952 | am_missing_run= | |
1953 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1954 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1955 | fi | |
1956 | ||
7d714d6b DH |
1957 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
1958 | # We used to keeping the `.' as first argument, in order to | |
1959 | # allow $(mkdir_p) to be used without argument. As in | |
1960 | # $(mkdir_p) $(somedir) | |
1961 | # where $(somedir) is conditionally defined. However this is wrong | |
1962 | # for two reasons: | |
1963 | # 1. if the package is installed by a user who cannot write `.' | |
1964 | # make install will fail, | |
1965 | # 2. the above comment should most certainly read | |
1966 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1967 | # so it does not work when $(somedir) is undefined and | |
1968 | # $(DESTDIR) is not. | |
1969 | # To support the latter case, we have to write | |
1970 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1971 | # so the `.' trick is pointless. | |
1972 | mkdir_p='mkdir -p --' | |
1973 | else | |
1974 | # On NextStep and OpenStep, the `mkdir' command does not | |
1975 | # recognize any option. It will interpret all options as | |
1976 | # directories to create, and then abort because `.' already | |
1977 | # exists. | |
1978 | for d in ./-p ./--version; | |
1979 | do | |
1980 | test -d $d && rmdir $d | |
1981 | done | |
1982 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1983 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1984 | mkdir_p='$(mkinstalldirs)' | |
fc3ebe53 | 1985 | else |
7d714d6b | 1986 | mkdir_p='$(install_sh) -d' |
fc3ebe53 DH |
1987 | fi |
1988 | fi | |
1989 | ||
1990 | for ac_prog in gawk mawk nawk awk | |
1991 | do | |
1992 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1993 | set dummy $ac_prog; ac_word=$2 | |
4d24561a JR |
1994 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1995 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fc3ebe53 DH |
1996 | if test "${ac_cv_prog_AWK+set}" = set; then |
1997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1998 | else | |
1999 | if test -n "$AWK"; then | |
2000 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2001 | else | |
2002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2003 | for as_dir in $PATH | |
2004 | do | |
2005 | IFS=$as_save_IFS | |
2006 | test -z "$as_dir" && as_dir=. | |
2007 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4d24561a | 2008 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fc3ebe53 DH |
2009 | ac_cv_prog_AWK="$ac_prog" |
2010 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2011 | break 2 | |
2012 | fi | |
2013 | done | |
2014 | done | |
4d24561a | 2015 | IFS=$as_save_IFS |
fc3ebe53 DH |
2016 | |
2017 | fi | |
2018 | fi | |
2019 | AWK=$ac_cv_prog_AWK | |
2020 | if test -n "$AWK"; then | |
4d24561a JR |
2021 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2022 | echo "${ECHO_T}$AWK" >&6; } | |
fc3ebe53 | 2023 | else |
4d24561a JR |
2024 | { echo "$as_me:$LINENO: result: no" >&5 |
2025 | echo "${ECHO_T}no" >&6; } | |
fc3ebe53 DH |
2026 | fi |
2027 | ||
4d24561a | 2028 | |
fc3ebe53 DH |
2029 | test -n "$AWK" && break |
2030 | done | |
2031 | ||
4d24561a JR |
2032 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2033 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2034 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2035 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
fe5b0fdd DH |
2036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2037 | else | |
2038 | cat >conftest.make <<\_ACEOF | |
4d24561a | 2039 | SHELL = /bin/sh |
fe5b0fdd | 2040 | all: |
4d24561a | 2041 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
fe5b0fdd DH |
2042 | _ACEOF |
2043 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
4d24561a JR |
2044 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2045 | *@@@%%%=?*=@@@%%%*) | |
2046 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2047 | *) | |
2048 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2049 | esac | |
fe5b0fdd DH |
2050 | rm -f conftest.make |
2051 | fi | |
4d24561a JR |
2052 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2053 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2054 | echo "${ECHO_T}yes" >&6; } | |
fe5b0fdd DH |
2055 | SET_MAKE= |
2056 | else | |
4d24561a JR |
2057 | { echo "$as_me:$LINENO: result: no" >&5 |
2058 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2059 | SET_MAKE="MAKE=${MAKE-make}" |
2060 | fi | |
2061 | ||
fc3ebe53 DH |
2062 | rm -rf .tst 2>/dev/null |
2063 | mkdir .tst 2>/dev/null | |
2064 | if test -d .tst; then | |
2065 | am__leading_dot=. | |
2066 | else | |
2067 | am__leading_dot=_ | |
2068 | fi | |
2069 | rmdir .tst 2>/dev/null | |
fe5b0fdd | 2070 | |
7d714d6b DH |
2071 | # test to see if srcdir already configured |
2072 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2073 | test -f $srcdir/config.status; then | |
2074 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
fe5b0fdd DH |
2075 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2076 | { (exit 1); exit 1; }; } | |
2077 | fi | |
2078 | ||
fc3ebe53 DH |
2079 | # test whether we have cygpath |
2080 | if test -z "$CYGPATH_W"; then | |
2081 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2082 | CYGPATH_W='cygpath -w' | |
2083 | else | |
2084 | CYGPATH_W=echo | |
2085 | fi | |
2086 | fi | |
2087 | ||
2088 | ||
2089 | # Define the identity of the package. | |
2090 | PACKAGE='dhcp' | |
05a3a6f4 | 2091 | VERSION='4.1.0' |
fc3ebe53 DH |
2092 | |
2093 | ||
fe5b0fdd DH |
2094 | cat >>confdefs.h <<_ACEOF |
2095 | #define PACKAGE "$PACKAGE" | |
2096 | _ACEOF | |
2097 | ||
2098 | ||
2099 | cat >>confdefs.h <<_ACEOF | |
2100 | #define VERSION "$VERSION" | |
2101 | _ACEOF | |
2102 | ||
fc3ebe53 DH |
2103 | # Some tools Automake needs. |
2104 | ||
2105 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
fe5b0fdd | 2106 | |
fe5b0fdd | 2107 | |
fc3ebe53 DH |
2108 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2109 | ||
2110 | ||
2111 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2112 | ||
2113 | ||
2114 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2115 | ||
2116 | ||
2117 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2118 | ||
7d714d6b | 2119 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
fc3ebe53 DH |
2120 | |
2121 | # Installed binaries are usually stripped using `strip' when the user | |
2122 | # run `make install-strip'. However `strip' might not be the right | |
2123 | # tool to use in cross-compilation environments, therefore Automake | |
2124 | # will honor the `STRIP' environment variable to overrule this program. | |
2125 | if test "$cross_compiling" != no; then | |
2126 | if test -n "$ac_tool_prefix"; then | |
2127 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2128 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4d24561a JR |
2129 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fc3ebe53 DH |
2131 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe5b0fdd | 2133 | else |
fc3ebe53 DH |
2134 | if test -n "$STRIP"; then |
2135 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2136 | else | |
2137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2138 | for as_dir in $PATH | |
2139 | do | |
2140 | IFS=$as_save_IFS | |
2141 | test -z "$as_dir" && as_dir=. | |
2142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4d24561a | 2143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fc3ebe53 DH |
2144 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2146 | break 2 | |
2147 | fi | |
2148 | done | |
2149 | done | |
4d24561a | 2150 | IFS=$as_save_IFS |
fe5b0fdd | 2151 | |
fc3ebe53 DH |
2152 | fi |
2153 | fi | |
2154 | STRIP=$ac_cv_prog_STRIP | |
2155 | if test -n "$STRIP"; then | |
4d24561a JR |
2156 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2157 | echo "${ECHO_T}$STRIP" >&6; } | |
fe5b0fdd | 2158 | else |
4d24561a JR |
2159 | { echo "$as_me:$LINENO: result: no" >&5 |
2160 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd | 2161 | fi |
c59de8f4 | 2162 | |
4d24561a | 2163 | |
fe5b0fdd | 2164 | fi |
fc3ebe53 DH |
2165 | if test -z "$ac_cv_prog_STRIP"; then |
2166 | ac_ct_STRIP=$STRIP | |
2167 | # Extract the first word of "strip", so it can be a program name with args. | |
2168 | set dummy strip; ac_word=$2 | |
4d24561a JR |
2169 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fc3ebe53 DH |
2171 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2173 | else | |
2174 | if test -n "$ac_ct_STRIP"; then | |
2175 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2176 | else | |
2177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2178 | for as_dir in $PATH | |
2179 | do | |
2180 | IFS=$as_save_IFS | |
2181 | test -z "$as_dir" && as_dir=. | |
2182 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4d24561a | 2183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fc3ebe53 DH |
2184 | ac_cv_prog_ac_ct_STRIP="strip" |
2185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2186 | break 2 | |
2187 | fi | |
2188 | done | |
2189 | done | |
4d24561a | 2190 | IFS=$as_save_IFS |
fe5b0fdd | 2191 | |
fc3ebe53 DH |
2192 | fi |
2193 | fi | |
2194 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2195 | if test -n "$ac_ct_STRIP"; then | |
4d24561a JR |
2196 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2197 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
fe5b0fdd | 2198 | else |
4d24561a JR |
2199 | { echo "$as_me:$LINENO: result: no" >&5 |
2200 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2201 | fi |
2202 | ||
4d24561a JR |
2203 | if test "x$ac_ct_STRIP" = x; then |
2204 | STRIP=":" | |
2205 | else | |
2206 | case $cross_compiling:$ac_tool_warned in | |
2207 | yes:) | |
2208 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2209 | whose name does not start with the host triplet. If you think this | |
2210 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2211 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2212 | whose name does not start with the host triplet. If you think this | |
2213 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2214 | ac_tool_warned=yes ;; | |
2215 | esac | |
2216 | STRIP=$ac_ct_STRIP | |
2217 | fi | |
c59de8f4 | 2218 | else |
fc3ebe53 DH |
2219 | STRIP="$ac_cv_prog_STRIP" |
2220 | fi | |
2221 | ||
fe5b0fdd | 2222 | fi |
7d714d6b | 2223 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
fc3ebe53 DH |
2224 | |
2225 | # We need awk for the "check" target. The system "awk" is bad on | |
2226 | # some platforms. | |
2227 | # Always define AMTAR for backward compatibility. | |
2228 | ||
2229 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2230 | ||
2231 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2232 | ||
2233 | ||
2234 | ||
fe5b0fdd DH |
2235 | |
2236 | ||
2237 | ||
06eb8bab SK |
2238 | # We want to turn on warnings if we are using gcc and the user did |
2239 | # not specify CFLAGS. The autoconf check for the C compiler sets the | |
2240 | # CFLAGS if gcc is used, so we will save it before we run that check. | |
2241 | SAVE_CFLAGS="$CFLAGS" | |
2242 | ||
2243 | # Now find our C compiler. | |
fe5b0fdd DH |
2244 | ac_ext=c |
2245 | ac_cpp='$CPP $CPPFLAGS' | |
2246 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2247 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2248 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2249 | if test -n "$ac_tool_prefix"; then | |
2250 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2251 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4d24561a JR |
2252 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2254 | if test "${ac_cv_prog_CC+set}" = set; then |
2255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2256 | else | |
2257 | if test -n "$CC"; then | |
2258 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2259 | else | |
2260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2261 | for as_dir in $PATH | |
2262 | do | |
2263 | IFS=$as_save_IFS | |
2264 | test -z "$as_dir" && as_dir=. | |
2265 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4d24561a | 2266 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2267 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2269 | break 2 | |
2270 | fi | |
2271 | done | |
2272 | done | |
4d24561a | 2273 | IFS=$as_save_IFS |
fe5b0fdd DH |
2274 | |
2275 | fi | |
2276 | fi | |
2277 | CC=$ac_cv_prog_CC | |
2278 | if test -n "$CC"; then | |
4d24561a JR |
2279 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2280 | echo "${ECHO_T}$CC" >&6; } | |
fe5b0fdd | 2281 | else |
4d24561a JR |
2282 | { echo "$as_me:$LINENO: result: no" >&5 |
2283 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2284 | fi |
2285 | ||
4d24561a | 2286 | |
fe5b0fdd DH |
2287 | fi |
2288 | if test -z "$ac_cv_prog_CC"; then | |
2289 | ac_ct_CC=$CC | |
2290 | # Extract the first word of "gcc", so it can be a program name with args. | |
2291 | set dummy gcc; ac_word=$2 | |
4d24561a JR |
2292 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2293 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2294 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2296 | else | |
2297 | if test -n "$ac_ct_CC"; then | |
2298 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2299 | else | |
2300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2301 | for as_dir in $PATH | |
2302 | do | |
2303 | IFS=$as_save_IFS | |
2304 | test -z "$as_dir" && as_dir=. | |
2305 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4d24561a | 2306 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2307 | ac_cv_prog_ac_ct_CC="gcc" |
2308 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2309 | break 2 | |
2310 | fi | |
2311 | done | |
2312 | done | |
4d24561a | 2313 | IFS=$as_save_IFS |
fe5b0fdd DH |
2314 | |
2315 | fi | |
2316 | fi | |
2317 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2318 | if test -n "$ac_ct_CC"; then | |
4d24561a JR |
2319 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2320 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
fe5b0fdd | 2321 | else |
4d24561a JR |
2322 | { echo "$as_me:$LINENO: result: no" >&5 |
2323 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2324 | fi |
2325 | ||
4d24561a JR |
2326 | if test "x$ac_ct_CC" = x; then |
2327 | CC="" | |
2328 | else | |
2329 | case $cross_compiling:$ac_tool_warned in | |
2330 | yes:) | |
2331 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2332 | whose name does not start with the host triplet. If you think this | |
2333 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2334 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2335 | whose name does not start with the host triplet. If you think this | |
2336 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2337 | ac_tool_warned=yes ;; | |
2338 | esac | |
2339 | CC=$ac_ct_CC | |
2340 | fi | |
fe5b0fdd DH |
2341 | else |
2342 | CC="$ac_cv_prog_CC" | |
2343 | fi | |
2344 | ||
2345 | if test -z "$CC"; then | |
4d24561a JR |
2346 | if test -n "$ac_tool_prefix"; then |
2347 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
fe5b0fdd | 2348 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
4d24561a JR |
2349 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2350 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2351 | if test "${ac_cv_prog_CC+set}" = set; then |
2352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2353 | else | |
2354 | if test -n "$CC"; then | |
2355 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2356 | else | |
2357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2358 | for as_dir in $PATH | |
2359 | do | |
2360 | IFS=$as_save_IFS | |
2361 | test -z "$as_dir" && as_dir=. | |
2362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4d24561a | 2363 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2364 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2365 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2366 | break 2 | |
2367 | fi | |
2368 | done | |
2369 | done | |
4d24561a | 2370 | IFS=$as_save_IFS |
fe5b0fdd DH |
2371 | |
2372 | fi | |
2373 | fi | |
2374 | CC=$ac_cv_prog_CC | |
2375 | if test -n "$CC"; then | |
4d24561a JR |
2376 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2377 | echo "${ECHO_T}$CC" >&6; } | |
7d714d6b | 2378 | else |
4d24561a JR |
2379 | { echo "$as_me:$LINENO: result: no" >&5 |
2380 | echo "${ECHO_T}no" >&6; } | |
7d714d6b DH |
2381 | fi |
2382 | ||
7d714d6b | 2383 | |
4d24561a | 2384 | fi |
fe5b0fdd DH |
2385 | fi |
2386 | if test -z "$CC"; then | |
2387 | # Extract the first word of "cc", so it can be a program name with args. | |
2388 | set dummy cc; ac_word=$2 | |
4d24561a JR |
2389 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2390 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2391 | if test "${ac_cv_prog_CC+set}" = set; then |
2392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2393 | else | |
2394 | if test -n "$CC"; then | |
2395 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2396 | else | |
2397 | ac_prog_rejected=no | |
2398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2399 | for as_dir in $PATH | |
2400 | do | |
2401 | IFS=$as_save_IFS | |
2402 | test -z "$as_dir" && as_dir=. | |
2403 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4d24561a | 2404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2405 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2406 | ac_prog_rejected=yes | |
2407 | continue | |
2408 | fi | |
2409 | ac_cv_prog_CC="cc" | |
2410 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2411 | break 2 | |
2412 | fi | |
2413 | done | |
2414 | done | |
4d24561a | 2415 | IFS=$as_save_IFS |
fe5b0fdd DH |
2416 | |
2417 | if test $ac_prog_rejected = yes; then | |
2418 | # We found a bogon in the path, so make sure we never use it. | |
2419 | set dummy $ac_cv_prog_CC | |
2420 | shift | |
2421 | if test $# != 0; then | |
2422 | # We chose a different compiler from the bogus one. | |
2423 | # However, it has the same basename, so the bogon will be chosen | |
2424 | # first if we set CC to just the basename; use the full file name. | |
2425 | shift | |
2426 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2427 | fi | |
2428 | fi | |
2429 | fi | |
2430 | fi | |
2431 | CC=$ac_cv_prog_CC | |
2432 | if test -n "$CC"; then | |
4d24561a JR |
2433 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2434 | echo "${ECHO_T}$CC" >&6; } | |
fe5b0fdd | 2435 | else |
4d24561a JR |
2436 | { echo "$as_me:$LINENO: result: no" >&5 |
2437 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2438 | fi |
2439 | ||
4d24561a | 2440 | |
fe5b0fdd DH |
2441 | fi |
2442 | if test -z "$CC"; then | |
2443 | if test -n "$ac_tool_prefix"; then | |
4d24561a | 2444 | for ac_prog in cl.exe |
fe5b0fdd DH |
2445 | do |
2446 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2447 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4d24561a JR |
2448 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2450 | if test "${ac_cv_prog_CC+set}" = set; then |
2451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2452 | else | |
2453 | if test -n "$CC"; then | |
2454 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2455 | else | |
2456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2457 | for as_dir in $PATH | |
2458 | do | |
2459 | IFS=$as_save_IFS | |
2460 | test -z "$as_dir" && as_dir=. | |
2461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4d24561a | 2462 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2463 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2465 | break 2 | |
2466 | fi | |
2467 | done | |
2468 | done | |
4d24561a | 2469 | IFS=$as_save_IFS |
fe5b0fdd DH |
2470 | |
2471 | fi | |
2472 | fi | |
2473 | CC=$ac_cv_prog_CC | |
2474 | if test -n "$CC"; then | |
4d24561a JR |
2475 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2476 | echo "${ECHO_T}$CC" >&6; } | |
fe5b0fdd | 2477 | else |
4d24561a JR |
2478 | { echo "$as_me:$LINENO: result: no" >&5 |
2479 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2480 | fi |
2481 | ||
4d24561a | 2482 | |
fe5b0fdd DH |
2483 | test -n "$CC" && break |
2484 | done | |
2485 | fi | |
2486 | if test -z "$CC"; then | |
2487 | ac_ct_CC=$CC | |
4d24561a | 2488 | for ac_prog in cl.exe |
fe5b0fdd DH |
2489 | do |
2490 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2491 | set dummy $ac_prog; ac_word=$2 | |
4d24561a JR |
2492 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2494 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2496 | else | |
2497 | if test -n "$ac_ct_CC"; then | |
2498 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2499 | else | |
2500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2501 | for as_dir in $PATH | |
2502 | do | |
2503 | IFS=$as_save_IFS | |
2504 | test -z "$as_dir" && as_dir=. | |
2505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4d24561a | 2506 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2507 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2509 | break 2 | |
2510 | fi | |
2511 | done | |
2512 | done | |
4d24561a | 2513 | IFS=$as_save_IFS |
fe5b0fdd DH |
2514 | |
2515 | fi | |
2516 | fi | |
2517 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2518 | if test -n "$ac_ct_CC"; then | |
4d24561a JR |
2519 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2520 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
fe5b0fdd | 2521 | else |
4d24561a JR |
2522 | { echo "$as_me:$LINENO: result: no" >&5 |
2523 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2524 | fi |
2525 | ||
4d24561a | 2526 | |
fe5b0fdd DH |
2527 | test -n "$ac_ct_CC" && break |
2528 | done | |
2529 | ||
4d24561a JR |
2530 | if test "x$ac_ct_CC" = x; then |
2531 | CC="" | |
2532 | else | |
2533 | case $cross_compiling:$ac_tool_warned in | |
2534 | yes:) | |
2535 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2536 | whose name does not start with the host triplet. If you think this | |
2537 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2538 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2539 | whose name does not start with the host triplet. If you think this | |
2540 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2541 | ac_tool_warned=yes ;; | |
2542 | esac | |
2543 | CC=$ac_ct_CC | |
2544 | fi | |
fe5b0fdd DH |
2545 | fi |
2546 | ||
2547 | fi | |
2548 | ||
2549 | ||
2550 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2551 | See \`config.log' for more details." >&5 | |
2552 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2553 | See \`config.log' for more details." >&2;} | |
2554 | { (exit 1); exit 1; }; } | |
2555 | ||
2556 | # Provide some information about the compiler. | |
4d24561a | 2557 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
fe5b0fdd | 2558 | ac_compiler=`set X $ac_compile; echo $2` |
4d24561a JR |
2559 | { (ac_try="$ac_compiler --version >&5" |
2560 | case "(($ac_try" in | |
2561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2562 | *) ac_try_echo=$ac_try;; | |
2563 | esac | |
2564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2565 | (eval "$ac_compiler --version >&5") 2>&5 | |
fe5b0fdd DH |
2566 | ac_status=$? |
2567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2568 | (exit $ac_status); } | |
4d24561a JR |
2569 | { (ac_try="$ac_compiler -v >&5" |
2570 | case "(($ac_try" in | |
2571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2572 | *) ac_try_echo=$ac_try;; | |
2573 | esac | |
2574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2575 | (eval "$ac_compiler -v >&5") 2>&5 | |
fe5b0fdd DH |
2576 | ac_status=$? |
2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2578 | (exit $ac_status); } | |
4d24561a JR |
2579 | { (ac_try="$ac_compiler -V >&5" |
2580 | case "(($ac_try" in | |
2581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2582 | *) ac_try_echo=$ac_try;; | |
2583 | esac | |
2584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2585 | (eval "$ac_compiler -V >&5") 2>&5 | |
fe5b0fdd DH |
2586 | ac_status=$? |
2587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2588 | (exit $ac_status); } | |
2589 | ||
2590 | cat >conftest.$ac_ext <<_ACEOF | |
2591 | /* confdefs.h. */ | |
2592 | _ACEOF | |
2593 | cat confdefs.h >>conftest.$ac_ext | |
2594 | cat >>conftest.$ac_ext <<_ACEOF | |
2595 | /* end confdefs.h. */ | |
2596 | ||
2597 | int | |
2598 | main () | |
2599 | { | |
2600 | ||
2601 | ; | |
2602 | return 0; | |
2603 | } | |
2604 | _ACEOF | |
2605 | ac_clean_files_save=$ac_clean_files | |
2606 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2607 | # Try to create an executable without -o first, disregard a.out. | |
2608 | # It will help us diagnose broken compilers, and finding out an intuition | |
2609 | # of exeext. | |
4d24561a JR |
2610 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2611 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
fe5b0fdd | 2612 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4d24561a JR |
2613 | # |
2614 | # List of possible output files, starting from the most likely. | |
2615 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2616 | # only as a last resort. b.out is created by i960 compilers. | |
2617 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2618 | # | |
2619 | # The IRIX 6 linker writes into existing files which may not be | |
2620 | # executable, retaining their permissions. Remove them first so a | |
2621 | # subsequent execution test works. | |
2622 | ac_rmfiles= | |
2623 | for ac_file in $ac_files | |
2624 | do | |
2625 | case $ac_file in | |
2626 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2627 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2628 | esac | |
2629 | done | |
2630 | rm -f $ac_rmfiles | |
2631 | ||
2632 | if { (ac_try="$ac_link_default" | |
2633 | case "(($ac_try" in | |
2634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2635 | *) ac_try_echo=$ac_try;; | |
2636 | esac | |
2637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2638 | (eval "$ac_link_default") 2>&5 | |
fe5b0fdd DH |
2639 | ac_status=$? |
2640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2641 | (exit $ac_status); }; then | |
4d24561a JR |
2642 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2643 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2644 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2645 | # so that the user can short-circuit this test for compilers unknown to | |
2646 | # Autoconf. | |
2647 | for ac_file in $ac_files '' | |
fe5b0fdd DH |
2648 | do |
2649 | test -f "$ac_file" || continue | |
2650 | case $ac_file in | |
4d24561a | 2651 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
fe5b0fdd DH |
2652 | ;; |
2653 | [ab].out ) | |
2654 | # We found the default executable, but exeext='' is most | |
2655 | # certainly right. | |
2656 | break;; | |
2657 | *.* ) | |
4d24561a JR |
2658 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2659 | then :; else | |
2660 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2661 | fi | |
2662 | # We set ac_cv_exeext here because the later test for it is not | |
2663 | # safe: cross compilers may not add the suffix if given an `-o' | |
2664 | # argument, so we may need to know it at that point already. | |
2665 | # Even if this section looks crufty: it has the advantage of | |
2666 | # actually working. | |
fe5b0fdd DH |
2667 | break;; |
2668 | * ) | |
2669 | break;; | |
2670 | esac | |
2671 | done | |
4d24561a JR |
2672 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2673 | ||
fe5b0fdd | 2674 | else |
4d24561a JR |
2675 | ac_file='' |
2676 | fi | |
2677 | ||
2678 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2679 | echo "${ECHO_T}$ac_file" >&6; } | |
2680 | if test -z "$ac_file"; then | |
fe5b0fdd DH |
2681 | echo "$as_me: failed program was:" >&5 |
2682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2683 | ||
2684 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2685 | See \`config.log' for more details." >&5 | |
2686 | echo "$as_me: error: C compiler cannot create executables | |
2687 | See \`config.log' for more details." >&2;} | |
2688 | { (exit 77); exit 77; }; } | |
2689 | fi | |
2690 | ||
2691 | ac_exeext=$ac_cv_exeext | |
fe5b0fdd | 2692 | |
4d24561a | 2693 | # Check that the compiler produces executables we can run. If not, either |
fe5b0fdd | 2694 | # the compiler is broken, or we cross compile. |
4d24561a JR |
2695 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2696 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2697 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2698 | # If not cross compiling, check that we can run a simple program. | |
2699 | if test "$cross_compiling" != yes; then | |
2700 | if { ac_try='./$ac_file' | |
4d24561a JR |
2701 | { (case "(($ac_try" in |
2702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2703 | *) ac_try_echo=$ac_try;; | |
2704 | esac | |
2705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2706 | (eval "$ac_try") 2>&5 | |
fe5b0fdd DH |
2707 | ac_status=$? |
2708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2709 | (exit $ac_status); }; }; then | |
2710 | cross_compiling=no | |
2711 | else | |
2712 | if test "$cross_compiling" = maybe; then | |
2713 | cross_compiling=yes | |
2714 | else | |
2715 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2716 | If you meant to cross compile, use \`--host'. | |
2717 | See \`config.log' for more details." >&5 | |
2718 | echo "$as_me: error: cannot run C compiled programs. | |
2719 | If you meant to cross compile, use \`--host'. | |
2720 | See \`config.log' for more details." >&2;} | |
2721 | { (exit 1); exit 1; }; } | |
2722 | fi | |
2723 | fi | |
2724 | fi | |
4d24561a JR |
2725 | { echo "$as_me:$LINENO: result: yes" >&5 |
2726 | echo "${ECHO_T}yes" >&6; } | |
fe5b0fdd DH |
2727 | |
2728 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2729 | ac_clean_files=$ac_clean_files_save | |
4d24561a | 2730 | # Check that the compiler produces executables we can run. If not, either |
fe5b0fdd | 2731 | # the compiler is broken, or we cross compile. |
4d24561a JR |
2732 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2733 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2734 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2735 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2736 | ||
2737 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2738 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2739 | if { (ac_try="$ac_link" | |
2740 | case "(($ac_try" in | |
2741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2742 | *) ac_try_echo=$ac_try;; | |
2743 | esac | |
2744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2745 | (eval "$ac_link") 2>&5 | |
fe5b0fdd DH |
2746 | ac_status=$? |
2747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2748 | (exit $ac_status); }; then | |
2749 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2750 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2751 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2752 | # `rm'. | |
2753 | for ac_file in conftest.exe conftest conftest.*; do | |
2754 | test -f "$ac_file" || continue | |
2755 | case $ac_file in | |
4d24561a | 2756 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
fe5b0fdd DH |
2757 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2758 | break;; | |
2759 | * ) break;; | |
2760 | esac | |
2761 | done | |
2762 | else | |
2763 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2764 | See \`config.log' for more details." >&5 | |
2765 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2766 | See \`config.log' for more details." >&2;} | |
2767 | { (exit 1); exit 1; }; } | |
2768 | fi | |
2769 | ||
2770 | rm -f conftest$ac_cv_exeext | |
4d24561a JR |
2771 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2772 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
fe5b0fdd DH |
2773 | |
2774 | rm -f conftest.$ac_ext | |
2775 | EXEEXT=$ac_cv_exeext | |
2776 | ac_exeext=$EXEEXT | |
4d24561a JR |
2777 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2778 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2779 | if test "${ac_cv_objext+set}" = set; then |
2780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2781 | else | |
2782 | cat >conftest.$ac_ext <<_ACEOF | |
2783 | /* confdefs.h. */ | |
2784 | _ACEOF | |
2785 | cat confdefs.h >>conftest.$ac_ext | |
2786 | cat >>conftest.$ac_ext <<_ACEOF | |
2787 | /* end confdefs.h. */ | |
2788 | ||
2789 | int | |
2790 | main () | |
2791 | { | |
2792 | ||
2793 | ; | |
2794 | return 0; | |
2795 | } | |
2796 | _ACEOF | |
2797 | rm -f conftest.o conftest.obj | |
4d24561a JR |
2798 | if { (ac_try="$ac_compile" |
2799 | case "(($ac_try" in | |
2800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2801 | *) ac_try_echo=$ac_try;; | |
2802 | esac | |
2803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2804 | (eval "$ac_compile") 2>&5 | |
fe5b0fdd DH |
2805 | ac_status=$? |
2806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2807 | (exit $ac_status); }; then | |
4d24561a JR |
2808 | for ac_file in conftest.o conftest.obj conftest.*; do |
2809 | test -f "$ac_file" || continue; | |
fe5b0fdd | 2810 | case $ac_file in |
4d24561a | 2811 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
fe5b0fdd DH |
2812 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2813 | break;; | |
2814 | esac | |
2815 | done | |
2816 | else | |
2817 | echo "$as_me: failed program was:" >&5 | |
2818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2819 | ||
2820 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2821 | See \`config.log' for more details." >&5 | |
2822 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2823 | See \`config.log' for more details." >&2;} | |
2824 | { (exit 1); exit 1; }; } | |
2825 | fi | |
2826 | ||
2827 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2828 | fi | |
4d24561a JR |
2829 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2830 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
fe5b0fdd DH |
2831 | OBJEXT=$ac_cv_objext |
2832 | ac_objext=$OBJEXT | |
4d24561a JR |
2833 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2834 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2835 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2837 | else | |
2838 | cat >conftest.$ac_ext <<_ACEOF | |
2839 | /* confdefs.h. */ | |
2840 | _ACEOF | |
2841 | cat confdefs.h >>conftest.$ac_ext | |
2842 | cat >>conftest.$ac_ext <<_ACEOF | |
2843 | /* end confdefs.h. */ | |
2844 | ||
2845 | int | |
2846 | main () | |
2847 | { | |
2848 | #ifndef __GNUC__ | |
2849 | choke me | |
2850 | #endif | |
2851 | ||
2852 | ; | |
2853 | return 0; | |
2854 | } | |
2855 | _ACEOF | |
2856 | rm -f conftest.$ac_objext | |
4d24561a JR |
2857 | if { (ac_try="$ac_compile" |
2858 | case "(($ac_try" in | |
2859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2860 | *) ac_try_echo=$ac_try;; | |
2861 | esac | |
2862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2863 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
2864 | ac_status=$? |
2865 | grep -v '^ *+' conftest.er1 >conftest.err | |
2866 | rm -f conftest.er1 | |
2867 | cat conftest.err >&5 | |
2868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
2869 | (exit $ac_status); } && { |
2870 | test -z "$ac_c_werror_flag" || | |
2871 | test ! -s conftest.err | |
2872 | } && test -s conftest.$ac_objext; then | |
fe5b0fdd DH |
2873 | ac_compiler_gnu=yes |
2874 | else | |
2875 | echo "$as_me: failed program was:" >&5 | |
2876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2877 | ||
4d24561a | 2878 | ac_compiler_gnu=no |
fe5b0fdd | 2879 | fi |
4d24561a JR |
2880 | |
2881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fe5b0fdd DH |
2882 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2883 | ||
2884 | fi | |
4d24561a JR |
2885 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2886 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
fe5b0fdd DH |
2887 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2888 | ac_test_CFLAGS=${CFLAGS+set} | |
2889 | ac_save_CFLAGS=$CFLAGS | |
4d24561a JR |
2890 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2891 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2892 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2894 | else | |
4d24561a JR |
2895 | ac_save_c_werror_flag=$ac_c_werror_flag |
2896 | ac_c_werror_flag=yes | |
2897 | ac_cv_prog_cc_g=no | |
2898 | CFLAGS="-g" | |
2899 | cat >conftest.$ac_ext <<_ACEOF | |
fe5b0fdd DH |
2900 | /* confdefs.h. */ |
2901 | _ACEOF | |
2902 | cat confdefs.h >>conftest.$ac_ext | |
2903 | cat >>conftest.$ac_ext <<_ACEOF | |
2904 | /* end confdefs.h. */ | |
2905 | ||
2906 | int | |
2907 | main () | |
2908 | { | |
2909 | ||
2910 | ; | |
2911 | return 0; | |
2912 | } | |
2913 | _ACEOF | |
2914 | rm -f conftest.$ac_objext | |
4d24561a JR |
2915 | if { (ac_try="$ac_compile" |
2916 | case "(($ac_try" in | |
2917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2918 | *) ac_try_echo=$ac_try;; | |
2919 | esac | |
2920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2921 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
2922 | ac_status=$? |
2923 | grep -v '^ *+' conftest.er1 >conftest.err | |
2924 | rm -f conftest.er1 | |
2925 | cat conftest.err >&5 | |
2926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
2927 | (exit $ac_status); } && { |
2928 | test -z "$ac_c_werror_flag" || | |
2929 | test ! -s conftest.err | |
2930 | } && test -s conftest.$ac_objext; then | |
2931 | ac_cv_prog_cc_g=yes | |
2932 | else | |
2933 | echo "$as_me: failed program was:" >&5 | |
2934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2935 | ||
2936 | CFLAGS="" | |
2937 | cat >conftest.$ac_ext <<_ACEOF | |
2938 | /* confdefs.h. */ | |
2939 | _ACEOF | |
2940 | cat confdefs.h >>conftest.$ac_ext | |
2941 | cat >>conftest.$ac_ext <<_ACEOF | |
2942 | /* end confdefs.h. */ | |
2943 | ||
2944 | int | |
2945 | main () | |
2946 | { | |
2947 | ||
2948 | ; | |
2949 | return 0; | |
2950 | } | |
2951 | _ACEOF | |
2952 | rm -f conftest.$ac_objext | |
2953 | if { (ac_try="$ac_compile" | |
2954 | case "(($ac_try" in | |
2955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2956 | *) ac_try_echo=$ac_try;; | |
2957 | esac | |
2958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2959 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd | 2960 | ac_status=$? |
4d24561a JR |
2961 | grep -v '^ *+' conftest.er1 >conftest.err |
2962 | rm -f conftest.er1 | |
2963 | cat conftest.err >&5 | |
fe5b0fdd | 2964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d24561a JR |
2965 | (exit $ac_status); } && { |
2966 | test -z "$ac_c_werror_flag" || | |
2967 | test ! -s conftest.err | |
2968 | } && test -s conftest.$ac_objext; then | |
2969 | : | |
2970 | else | |
2971 | echo "$as_me: failed program was:" >&5 | |
2972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2973 | ||
2974 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2975 | CFLAGS="-g" | |
2976 | cat >conftest.$ac_ext <<_ACEOF | |
2977 | /* confdefs.h. */ | |
2978 | _ACEOF | |
2979 | cat confdefs.h >>conftest.$ac_ext | |
2980 | cat >>conftest.$ac_ext <<_ACEOF | |
2981 | /* end confdefs.h. */ | |
2982 | ||
2983 | int | |
2984 | main () | |
2985 | { | |
2986 | ||
2987 | ; | |
2988 | return 0; | |
2989 | } | |
2990 | _ACEOF | |
2991 | rm -f conftest.$ac_objext | |
2992 | if { (ac_try="$ac_compile" | |
2993 | case "(($ac_try" in | |
2994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2995 | *) ac_try_echo=$ac_try;; | |
2996 | esac | |
2997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2998 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd | 2999 | ac_status=$? |
4d24561a JR |
3000 | grep -v '^ *+' conftest.er1 >conftest.err |
3001 | rm -f conftest.er1 | |
3002 | cat conftest.err >&5 | |
fe5b0fdd | 3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d24561a JR |
3004 | (exit $ac_status); } && { |
3005 | test -z "$ac_c_werror_flag" || | |
3006 | test ! -s conftest.err | |
3007 | } && test -s conftest.$ac_objext; then | |
fe5b0fdd DH |
3008 | ac_cv_prog_cc_g=yes |
3009 | else | |
3010 | echo "$as_me: failed program was:" >&5 | |
3011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3012 | ||
4d24561a | 3013 | |
6e999c3c | 3014 | fi |
4d24561a JR |
3015 | |
3016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3017 | fi | |
3018 | ||
3019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3020 | fi | |
3021 | ||
3022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3023 | ac_c_werror_flag=$ac_save_c_werror_flag | |
fe5b0fdd | 3024 | fi |
4d24561a JR |
3025 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3026 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
fe5b0fdd DH |
3027 | if test "$ac_test_CFLAGS" = set; then |
3028 | CFLAGS=$ac_save_CFLAGS | |
3029 | elif test $ac_cv_prog_cc_g = yes; then | |
3030 | if test "$GCC" = yes; then | |
3031 | CFLAGS="-g -O2" | |
3032 | else | |
3033 | CFLAGS="-g" | |
3034 | fi | |
3035 | else | |
3036 | if test "$GCC" = yes; then | |
3037 | CFLAGS="-O2" | |
3038 | else | |
3039 | CFLAGS= | |
3040 | fi | |
3041 | fi | |
4d24561a JR |
3042 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3043 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3044 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
fe5b0fdd DH |
3045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3046 | else | |
4d24561a | 3047 | ac_cv_prog_cc_c89=no |
fe5b0fdd DH |
3048 | ac_save_CC=$CC |
3049 | cat >conftest.$ac_ext <<_ACEOF | |
3050 | /* confdefs.h. */ | |
3051 | _ACEOF | |
3052 | cat confdefs.h >>conftest.$ac_ext | |
3053 | cat >>conftest.$ac_ext <<_ACEOF | |
3054 | /* end confdefs.h. */ | |
3055 | #include <stdarg.h> | |
3056 | #include <stdio.h> | |
3057 | #include <sys/types.h> | |
3058 | #include <sys/stat.h> | |
3059 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3060 | struct buf { int x; }; | |
3061 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3062 | static char *e (p, i) | |
3063 | char **p; | |
3064 | int i; | |
3065 | { | |
3066 | return p[i]; | |
3067 | } | |
3068 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3069 | { | |
3070 | char *s; | |
3071 | va_list v; | |
3072 | va_start (v,p); | |
3073 | s = g (p, va_arg (v,int)); | |
3074 | va_end (v); | |
3075 | return s; | |
3076 | } | |
3077 | ||
3078 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3079 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3080 | These don't provoke an error unfortunately, instead are silently treated | |
4d24561a | 3081 | as 'x'. The following induces an error, until -std is added to get |
fe5b0fdd DH |
3082 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3083 | array size at least. It's necessary to write '\x00'==0 to get something | |
4d24561a | 3084 | that's true only with -std. */ |
fe5b0fdd DH |
3085 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3086 | ||
4d24561a JR |
3087 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3088 | inside strings and character constants. */ | |
3089 | #define FOO(x) 'x' | |
3090 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3091 | ||
fe5b0fdd DH |
3092 | int test (int i, double x); |
3093 | struct s1 {int (*f) (int a);}; | |
3094 | struct s2 {int (*f) (double a);}; | |
3095 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3096 | int argc; | |
3097 | char **argv; | |
3098 | int | |
3099 | main () | |
3100 | { | |
3101 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3102 | ; | |
3103 | return 0; | |
3104 | } | |
3105 | _ACEOF | |
4d24561a JR |
3106 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3107 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
fe5b0fdd DH |
3108 | do |
3109 | CC="$ac_save_CC $ac_arg" | |
3110 | rm -f conftest.$ac_objext | |
4d24561a JR |
3111 | if { (ac_try="$ac_compile" |
3112 | case "(($ac_try" in | |
3113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3114 | *) ac_try_echo=$ac_try;; | |
3115 | esac | |
3116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3117 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
3118 | ac_status=$? |
3119 | grep -v '^ *+' conftest.er1 >conftest.err | |
3120 | rm -f conftest.er1 | |
3121 | cat conftest.err >&5 | |
3122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
3123 | (exit $ac_status); } && { |
3124 | test -z "$ac_c_werror_flag" || | |
3125 | test ! -s conftest.err | |
3126 | } && test -s conftest.$ac_objext; then | |
3127 | ac_cv_prog_cc_c89=$ac_arg | |
fe5b0fdd DH |
3128 | else |
3129 | echo "$as_me: failed program was:" >&5 | |
3130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3131 | ||
4d24561a | 3132 | |
fe5b0fdd | 3133 | fi |
4d24561a JR |
3134 | |
3135 | rm -f core conftest.err conftest.$ac_objext | |
3136 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
fe5b0fdd | 3137 | done |
4d24561a | 3138 | rm -f conftest.$ac_ext |
fe5b0fdd DH |
3139 | CC=$ac_save_CC |
3140 | ||
3141 | fi | |
4d24561a JR |
3142 | # AC_CACHE_VAL |
3143 | case "x$ac_cv_prog_cc_c89" in | |
3144 | x) | |
3145 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3146 | echo "${ECHO_T}none needed" >&6; } ;; | |
3147 | xno) | |
3148 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3149 | echo "${ECHO_T}unsupported" >&6; } ;; | |
fe5b0fdd | 3150 | *) |
4d24561a JR |
3151 | CC="$CC $ac_cv_prog_cc_c89" |
3152 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3153 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
fe5b0fdd DH |
3154 | esac |
3155 | ||
7d714d6b | 3156 | |
7d714d6b DH |
3157 | ac_ext=c |
3158 | ac_cpp='$CPP $CPPFLAGS' | |
3159 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3160 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3161 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3162 | DEPDIR="${am__leading_dot}deps" | |
3163 | ||
4d24561a | 3164 | ac_config_commands="$ac_config_commands depfiles" |
7d714d6b DH |
3165 | |
3166 | ||
3167 | am_make=${MAKE-make} | |
3168 | cat > confinc << 'END' | |
3169 | am__doit: | |
3170 | @echo done | |
3171 | .PHONY: am__doit | |
3172 | END | |
3173 | # If we don't find an include directive, just comment out the code. | |
4d24561a JR |
3174 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3175 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
7d714d6b DH |
3176 | am__include="#" |
3177 | am__quote= | |
3178 | _am_result=none | |
3179 | # First try GNU make style include. | |
3180 | echo "include confinc" > confmf | |
3181 | # We grep out `Entering directory' and `Leaving directory' | |
3182 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3183 | # In particular we don't look at `^make:' because GNU make might | |
3184 | # be invoked under some other name (usually "gmake"), in which | |
3185 | # case it prints its new name instead of `make'. | |
3186 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
fc3ebe53 DH |
3187 | am__include=include |
3188 | am__quote= | |
3189 | _am_result=GNU | |
3190 | fi | |
3191 | # Now try BSD make style include. | |
3192 | if test "$am__include" = "#"; then | |
3193 | echo '.include "confinc"' > confmf | |
3194 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3195 | am__include=.include | |
3196 | am__quote="\"" | |
3197 | _am_result=BSD | |
3198 | fi | |
3199 | fi | |
3200 | ||
3201 | ||
4d24561a JR |
3202 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3203 | echo "${ECHO_T}$_am_result" >&6; } | |
fc3ebe53 DH |
3204 | rm -f confinc confmf |
3205 | ||
4d24561a | 3206 | # Check whether --enable-dependency-tracking was given. |
fc3ebe53 | 3207 | if test "${enable_dependency_tracking+set}" = set; then |
4d24561a JR |
3208 | enableval=$enable_dependency_tracking; |
3209 | fi | |
fc3ebe53 | 3210 | |
fc3ebe53 DH |
3211 | if test "x$enable_dependency_tracking" != xno; then |
3212 | am_depcomp="$ac_aux_dir/depcomp" | |
3213 | AMDEPBACKSLASH='\' | |
3214 | fi | |
7d714d6b DH |
3215 | |
3216 | ||
3217 | if test "x$enable_dependency_tracking" != xno; then | |
fc3ebe53 DH |
3218 | AMDEP_TRUE= |
3219 | AMDEP_FALSE='#' | |
3220 | else | |
3221 | AMDEP_TRUE='#' | |
3222 | AMDEP_FALSE= | |
3223 | fi | |
3224 | ||
3225 | ||
3226 | ||
7d714d6b | 3227 | |
fc3ebe53 DH |
3228 | depcc="$CC" am_compiler_list= |
3229 | ||
4d24561a JR |
3230 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3231 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
fc3ebe53 DH |
3232 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3234 | else | |
3235 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3236 | # We make a subdir and do the tests there. Otherwise we can end up | |
3237 | # making bogus files that we don't know about and never remove. For | |
3238 | # instance it was reported that on HP-UX the gcc test will end up | |
3239 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3240 | # in D'. | |
3241 | mkdir conftest.dir | |
3242 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3243 | # using a relative directory. | |
3244 | cp "$am_depcomp" conftest.dir | |
3245 | cd conftest.dir | |
3246 | # We will build objects and dependencies in a subdirectory because | |
3247 | # it helps to detect inapplicable dependency modes. For instance | |
3248 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3249 | # side effect of compilation, but ICC will put the dependencies in | |
3250 | # the current directory while Tru64 will put them in the object | |
3251 | # directory. | |
3252 | mkdir sub | |
3253 | ||
3254 | am_cv_CC_dependencies_compiler_type=none | |
3255 | if test "$am_compiler_list" = ""; then | |
3256 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3257 | fi | |
3258 | for depmode in $am_compiler_list; do | |
3259 | # Setup a source with many dependencies, because some compilers | |
3260 | # like to wrap large dependency lists on column 80 (with \), and | |
3261 | # we should not choose a depcomp mode which is confused by this. | |
3262 | # | |
3263 | # We need to recreate these files for each test, as the compiler may | |
3264 | # overwrite some of them when testing with obscure command lines. | |
3265 | # This happens at least with the AIX C compiler. | |
3266 | : > sub/conftest.c | |
3267 | for i in 1 2 3 4 5 6; do | |
3268 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3269 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3270 | # Solaris 8's {/usr,}/bin/sh. | |
3271 | touch sub/conftst$i.h | |
3272 | done | |
3273 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3274 | ||
3275 | case $depmode in | |
3276 | nosideeffect) | |
3277 | # after this tag, mechanisms are not by side-effect, so they'll | |
3278 | # only be used when explicitly requested | |
3279 | if test "x$enable_dependency_tracking" = xyes; then | |
3280 | continue | |
3281 | else | |
3282 | break | |
3283 | fi | |
3284 | ;; | |
3285 | none) break ;; | |
3286 | esac | |
3287 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3288 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3289 | # handle `-M -o', and we need to detect this. | |
3290 | if depmode=$depmode \ | |
3291 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3292 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3293 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3294 | >/dev/null 2>conftest.err && | |
3295 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3296 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3297 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3298 | # icc doesn't choke on unknown options, it will just issue warnings | |
3299 | # or remarks (even with -Werror). So we grep stderr for any message | |
3300 | # that says an option was ignored or not supported. | |
3301 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3302 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3303 | # The diagnosis changed in icc 8.0: | |
3304 | # icc: Command line remark: option '-MP' not supported | |
3305 | if (grep 'ignoring option' conftest.err || | |
3306 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3307 | am_cv_CC_dependencies_compiler_type=$depmode | |
3308 | break | |
3309 | fi | |
3310 | fi | |
3311 | done | |
3312 | ||
3313 | cd .. | |
3314 | rm -rf conftest.dir | |
3315 | else | |
3316 | am_cv_CC_dependencies_compiler_type=none | |
3317 | fi | |
3318 | ||
3319 | fi | |
4d24561a JR |
3320 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3321 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
fc3ebe53 DH |
3322 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3323 | ||
7d714d6b DH |
3324 | |
3325 | ||
3326 | if | |
fc3ebe53 DH |
3327 | test "x$enable_dependency_tracking" != xno \ |
3328 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3329 | am__fastdepCC_TRUE= | |
3330 | am__fastdepCC_FALSE='#' | |
3331 | else | |
3332 | am__fastdepCC_TRUE='#' | |
3333 | am__fastdepCC_FALSE= | |
3334 | fi | |
3335 | ||
fe5b0fdd | 3336 | |
06eb8bab | 3337 | |
4260dd9f EH |
3338 | # Suppress warnings about --datarootdir |
3339 | ||
3340 | ||
06eb8bab SK |
3341 | # If we have gcc, and AC_PROG_CC changed the flags, then we know the |
3342 | # user did not specify any flags. Add warnings in this case. | |
3343 | if test "$GCC" = "yes"; then | |
3344 | if test "$CFLAGS" != "$SAVE_CFLAGS"; then | |
c5b1ad9f | 3345 | STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing" |
06eb8bab SK |
3346 | fi |
3347 | fi | |
3348 | ||
69bc1ebd SR |
3349 | # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides |
3350 | # parts of the IPv6 Advanced Socket API as a result. This is stupid | |
3351 | # as it breaks how the two halves (Basic and Advanced) of the IPv6 | |
3352 | # Socket API were designed to be used but we have to live with it. | |
3353 | # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. | |
fe5b0fdd | 3354 | |
69bc1ebd SR |
3355 | cat >>confdefs.h <<\_ACEOF |
3356 | #define _GNU_SOURCE 1 | |
3357 | _ACEOF | |
fe5b0fdd DH |
3358 | |
3359 | ||
fe5b0fdd | 3360 | |
4d24561a JR |
3361 | ac_ext=c |
3362 | ac_cpp='$CPP $CPPFLAGS' | |
3363 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3364 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3365 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3366 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3367 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
3368 | # On Suns, sometimes $CPP names a directory. | |
3369 | if test -n "$CPP" && test -d "$CPP"; then | |
3370 | CPP= | |
3371 | fi | |
3372 | if test -z "$CPP"; then | |
3373 | if test "${ac_cv_prog_CPP+set}" = set; then | |
273bfdc3 | 3374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe5b0fdd | 3375 | else |
4d24561a JR |
3376 | # Double quotes because CPP needs to be expanded |
3377 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3378 | do | |
3379 | ac_preproc_ok=false | |
3380 | for ac_c_preproc_warn_flag in '' yes | |
3381 | do | |
3382 | # Use a header file that comes with gcc, so configuring glibc | |
3383 | # with a fresh cross-compiler works. | |
3384 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3385 | # <limits.h> exists even on freestanding compilers. | |
3386 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3387 | # not just through cpp. "Syntax error" is here to catch this case. | |
3388 | cat >conftest.$ac_ext <<_ACEOF | |
c9a1db5e MA |
3389 | /* confdefs.h. */ |
3390 | _ACEOF | |
3391 | cat confdefs.h >>conftest.$ac_ext | |
3392 | cat >>conftest.$ac_ext <<_ACEOF | |
3393 | /* end confdefs.h. */ | |
4d24561a JR |
3394 | #ifdef __STDC__ |
3395 | # include <limits.h> | |
3396 | #else | |
3397 | # include <assert.h> | |
035ed382 | 3398 | #endif |
4d24561a | 3399 | Syntax error |
c9a1db5e | 3400 | _ACEOF |
4d24561a JR |
3401 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3402 | case "(($ac_try" in | |
3403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3404 | *) ac_try_echo=$ac_try;; | |
3405 | esac | |
3406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3407 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
c9a1db5e MA |
3408 | ac_status=$? |
3409 | grep -v '^ *+' conftest.er1 >conftest.err | |
3410 | rm -f conftest.er1 | |
3411 | cat conftest.err >&5 | |
3412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
3413 | (exit $ac_status); } >/dev/null && { |
3414 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3415 | test ! -s conftest.err | |
3416 | }; then | |
3417 | : | |
3418 | else | |
3419 | echo "$as_me: failed program was:" >&5 | |
3420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3421 | ||
3422 | # Broken: fails on valid input. | |
3423 | continue | |
3424 | fi | |
3425 | ||
3426 | rm -f conftest.err conftest.$ac_ext | |
3427 | ||
3428 | # OK, works on sane cases. Now check whether nonexistent headers | |
3429 | # can be detected and how. | |
3430 | cat >conftest.$ac_ext <<_ACEOF | |
c9a1db5e MA |
3431 | /* confdefs.h. */ |
3432 | _ACEOF | |
3433 | cat confdefs.h >>conftest.$ac_ext | |
3434 | cat >>conftest.$ac_ext <<_ACEOF | |
3435 | /* end confdefs.h. */ | |
4d24561a | 3436 | #include <ac_nonexistent.h> |
c9a1db5e | 3437 | _ACEOF |
4d24561a JR |
3438 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3439 | case "(($ac_try" in | |
3440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3441 | *) ac_try_echo=$ac_try;; | |
3442 | esac | |
3443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3444 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
035ed382 DH |
3445 | ac_status=$? |
3446 | grep -v '^ *+' conftest.er1 >conftest.err | |
3447 | rm -f conftest.er1 | |
3448 | cat conftest.err >&5 | |
3449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
3450 | (exit $ac_status); } >/dev/null && { |
3451 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3452 | test ! -s conftest.err | |
3453 | }; then | |
3454 | # Broken: success on invalid input. | |
3455 | continue | |
035ed382 DH |
3456 | else |
3457 | echo "$as_me: failed program was:" >&5 | |
3458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe5b0fdd | 3459 | |
4d24561a JR |
3460 | # Passes both tests. |
3461 | ac_preproc_ok=: | |
3462 | break | |
ded99fc7 | 3463 | fi |
7d714d6b | 3464 | |
4d24561a JR |
3465 | rm -f conftest.err conftest.$ac_ext |
3466 | ||
3467 | done | |
3468 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3469 | rm -f conftest.err conftest.$ac_ext | |
3470 | if $ac_preproc_ok; then | |
3471 | break | |
3472 | fi | |
3473 | ||
3474 | done | |
3475 | ac_cv_prog_CPP=$CPP | |
3476 | ||
3477 | fi | |
3478 | CPP=$ac_cv_prog_CPP | |
3479 | else | |
3480 | ac_cv_prog_CPP=$CPP | |
3481 | fi | |
3482 | { echo "$as_me:$LINENO: result: $CPP" >&5 | |
3483 | echo "${ECHO_T}$CPP" >&6; } | |
3484 | ac_preproc_ok=false | |
3485 | for ac_c_preproc_warn_flag in '' yes | |
3486 | do | |
3487 | # Use a header file that comes with gcc, so configuring glibc | |
3488 | # with a fresh cross-compiler works. | |
3489 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3490 | # <limits.h> exists even on freestanding compilers. | |
3491 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3492 | # not just through cpp. "Syntax error" is here to catch this case. | |
c9a1db5e MA |
3493 | cat >conftest.$ac_ext <<_ACEOF |
3494 | /* confdefs.h. */ | |
3495 | _ACEOF | |
3496 | cat confdefs.h >>conftest.$ac_ext | |
3497 | cat >>conftest.$ac_ext <<_ACEOF | |
3498 | /* end confdefs.h. */ | |
4d24561a JR |
3499 | #ifdef __STDC__ |
3500 | # include <limits.h> | |
3501 | #else | |
3502 | # include <assert.h> | |
3503 | #endif | |
3504 | Syntax error | |
7d714d6b | 3505 | _ACEOF |
4d24561a JR |
3506 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3507 | case "(($ac_try" in | |
3508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3509 | *) ac_try_echo=$ac_try;; | |
3510 | esac | |
3511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3512 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
035ed382 DH |
3513 | ac_status=$? |
3514 | grep -v '^ *+' conftest.er1 >conftest.err | |
3515 | rm -f conftest.er1 | |
3516 | cat conftest.err >&5 | |
3517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
3518 | (exit $ac_status); } >/dev/null && { |
3519 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3520 | test ! -s conftest.err | |
3521 | }; then | |
3522 | : | |
035ed382 DH |
3523 | else |
3524 | echo "$as_me: failed program was:" >&5 | |
3525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
dd3276e3 | 3526 | |
4d24561a JR |
3527 | # Broken: fails on valid input. |
3528 | continue | |
035ed382 | 3529 | fi |
4d24561a JR |
3530 | |
3531 | rm -f conftest.err conftest.$ac_ext | |
3532 | ||
3533 | # OK, works on sane cases. Now check whether nonexistent headers | |
3534 | # can be detected and how. | |
c9a1db5e MA |
3535 | cat >conftest.$ac_ext <<_ACEOF |
3536 | /* confdefs.h. */ | |
3537 | _ACEOF | |
3538 | cat confdefs.h >>conftest.$ac_ext | |
3539 | cat >>conftest.$ac_ext <<_ACEOF | |
3540 | /* end confdefs.h. */ | |
4d24561a | 3541 | #include <ac_nonexistent.h> |
c9a1db5e | 3542 | _ACEOF |
4d24561a JR |
3543 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3544 | case "(($ac_try" in | |
3545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3546 | *) ac_try_echo=$ac_try;; | |
3547 | esac | |
3548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3549 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7d714d6b | 3550 | ac_status=$? |
4d24561a JR |
3551 | grep -v '^ *+' conftest.er1 >conftest.err |
3552 | rm -f conftest.er1 | |
3553 | cat conftest.err >&5 | |
7d714d6b | 3554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d24561a JR |
3555 | (exit $ac_status); } >/dev/null && { |
3556 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3557 | test ! -s conftest.err | |
3558 | }; then | |
3559 | # Broken: success on invalid input. | |
3560 | continue | |
c9a1db5e | 3561 | else |
4d24561a | 3562 | echo "$as_me: failed program was:" >&5 |
c9a1db5e | 3563 | sed 's/^/| /' conftest.$ac_ext >&5 |
273bfdc3 | 3564 | |
4d24561a JR |
3565 | # Passes both tests. |
3566 | ac_preproc_ok=: | |
3567 | break | |
8d7ba39e | 3568 | fi |
dd3276e3 | 3569 | |
4d24561a | 3570 | rm -f conftest.err conftest.$ac_ext |
8d7ba39e | 3571 | |
4d24561a JR |
3572 | done |
3573 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3574 | rm -f conftest.err conftest.$ac_ext | |
3575 | if $ac_preproc_ok; then | |
3576 | : | |
3577 | else | |
3578 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3579 | See \`config.log' for more details." >&5 | |
3580 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3581 | See \`config.log' for more details." >&2;} | |
3582 | { (exit 1); exit 1; }; } | |
7d714d6b | 3583 | fi |
7f45c65c | 3584 | |
4d24561a JR |
3585 | ac_ext=c |
3586 | ac_cpp='$CPP $CPPFLAGS' | |
3587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8d7ba39e | 3590 | |
8d7ba39e | 3591 | |
4d24561a JR |
3592 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3593 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3594 | if test "${ac_cv_path_GREP+set}" = set; then | |
3595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3596 | else | |
3597 | # Extract the first word of "grep ggrep" to use in msg output | |
3598 | if test -z "$GREP"; then | |
3599 | set dummy grep ggrep; ac_prog_name=$2 | |
3600 | if test "${ac_cv_path_GREP+set}" = set; then | |
3601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3602 | else | |
3603 | ac_path_GREP_found=false | |
3604 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3606 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3607 | do | |
3608 | IFS=$as_save_IFS | |
3609 | test -z "$as_dir" && as_dir=. | |
3610 | for ac_prog in grep ggrep; do | |
3611 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3612 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3613 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3614 | # Check for GNU ac_path_GREP and select it if it is found. | |
3615 | # Check for GNU $ac_path_GREP | |
3616 | case `"$ac_path_GREP" --version 2>&1` in | |
3617 | *GNU*) | |
3618 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3619 | *) | |
3620 | ac_count=0 | |
3621 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3622 | while : | |
3623 | do | |
3624 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3625 | mv "conftest.tmp" "conftest.in" | |
3626 | cp "conftest.in" "conftest.nl" | |
3627 | echo 'GREP' >> "conftest.nl" | |
3628 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3629 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3630 | ac_count=`expr $ac_count + 1` | |
3631 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3632 | # Best one so far, save it but keep looking for a better one | |
3633 | ac_cv_path_GREP="$ac_path_GREP" | |
3634 | ac_path_GREP_max=$ac_count | |
3635 | fi | |
3636 | # 10*(2^10) chars as input seems more than enough | |
3637 | test $ac_count -gt 10 && break | |
3638 | done | |
3639 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3640 | esac | |
7f45c65c | 3641 | |
237bfdc9 | 3642 | |
4d24561a JR |
3643 | $ac_path_GREP_found && break 3 |
3644 | done | |
3645 | done | |
7d714d6b | 3646 | |
4d24561a JR |
3647 | done |
3648 | IFS=$as_save_IFS | |
8d7ba39e | 3649 | |
7f45c65c | 3650 | |
8d7ba39e | 3651 | fi |
c62c07ef | 3652 | |
4d24561a JR |
3653 | GREP="$ac_cv_path_GREP" |
3654 | if test -z "$GREP"; then | |
3655 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3656 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3657 | { (exit 1); exit 1; }; } | |
3658 | fi | |
035ed382 | 3659 | |
4d24561a JR |
3660 | else |
3661 | ac_cv_path_GREP=$GREP | |
3662 | fi | |
6e999c3c | 3663 | |
6e999c3c | 3664 | |
7d714d6b | 3665 | fi |
4d24561a JR |
3666 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3667 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3668 | GREP="$ac_cv_path_GREP" | |
6e999c3c | 3669 | |
6e999c3c | 3670 | |
4d24561a JR |
3671 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3672 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3673 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3675 | else | |
3676 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3677 | then ac_cv_path_EGREP="$GREP -E" | |
3678 | else | |
3679 | # Extract the first word of "egrep" to use in msg output | |
3680 | if test -z "$EGREP"; then | |
3681 | set dummy egrep; ac_prog_name=$2 | |
3682 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3684 | else | |
3685 | ac_path_EGREP_found=false | |
3686 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3688 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3689 | do | |
3690 | IFS=$as_save_IFS | |
3691 | test -z "$as_dir" && as_dir=. | |
3692 | for ac_prog in egrep; do | |
3693 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3694 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3695 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3696 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3697 | # Check for GNU $ac_path_EGREP | |
3698 | case `"$ac_path_EGREP" --version 2>&1` in | |
3699 | *GNU*) | |
3700 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3701 | *) | |
3702 | ac_count=0 | |
3703 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3704 | while : | |
3705 | do | |
3706 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3707 | mv "conftest.tmp" "conftest.in" | |
3708 | cp "conftest.in" "conftest.nl" | |
3709 | echo 'EGREP' >> "conftest.nl" | |
3710 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3711 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3712 | ac_count=`expr $ac_count + 1` | |
3713 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3714 | # Best one so far, save it but keep looking for a better one | |
3715 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3716 | ac_path_EGREP_max=$ac_count | |
3717 | fi | |
3718 | # 10*(2^10) chars as input seems more than enough | |
3719 | test $ac_count -gt 10 && break | |
3720 | done | |
3721 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3722 | esac | |
6e999c3c | 3723 | |
6e999c3c | 3724 | |
4d24561a JR |
3725 | $ac_path_EGREP_found && break 3 |
3726 | done | |
3727 | done | |
6e999c3c | 3728 | |
4d24561a JR |
3729 | done |
3730 | IFS=$as_save_IFS | |
7d714d6b | 3731 | |
7d714d6b | 3732 | |
4d24561a | 3733 | fi |
7d714d6b | 3734 | |
4d24561a JR |
3735 | EGREP="$ac_cv_path_EGREP" |
3736 | if test -z "$EGREP"; then | |
3737 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3738 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3739 | { (exit 1); exit 1; }; } | |
ded99fc7 | 3740 | fi |
6e999c3c | 3741 | |
4d24561a JR |
3742 | else |
3743 | ac_cv_path_EGREP=$EGREP | |
3744 | fi | |
6e999c3c | 3745 | |
7d714d6b | 3746 | |
4d24561a | 3747 | fi |
8d7ba39e | 3748 | fi |
4d24561a JR |
3749 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3750 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3751 | EGREP="$ac_cv_path_EGREP" | |
6e999c3c | 3752 | |
6e999c3c | 3753 | |
69bc1ebd SR |
3754 | |
3755 | { echo "$as_me:$LINENO: checking for AIX" >&5 | |
3756 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } | |
3757 | cat >conftest.$ac_ext <<_ACEOF | |
3758 | /* confdefs.h. */ | |
3759 | _ACEOF | |
3760 | cat confdefs.h >>conftest.$ac_ext | |
3761 | cat >>conftest.$ac_ext <<_ACEOF | |
3762 | /* end confdefs.h. */ | |
3763 | #ifdef _AIX | |
3764 | yes | |
3765 | #endif | |
3766 | ||
3767 | _ACEOF | |
3768 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3769 | $EGREP "yes" >/dev/null 2>&1; then | |
3770 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3771 | echo "${ECHO_T}yes" >&6; } | |
3772 | cat >>confdefs.h <<\_ACEOF | |
3773 | #define _ALL_SOURCE 1 | |
3774 | _ACEOF | |
3775 | ||
3776 | else | |
3777 | { echo "$as_me:$LINENO: result: no" >&5 | |
3778 | echo "${ECHO_T}no" >&6; } | |
3779 | fi | |
3780 | rm -f conftest* | |
3781 | ||
3782 | ||
4d24561a JR |
3783 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3784 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
3785 | if test "${ac_cv_header_stdc+set}" = set; then | |
3786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3787 | else | |
3788 | cat >conftest.$ac_ext <<_ACEOF | |
3789 | /* confdefs.h. */ | |
7f45c65c | 3790 | _ACEOF |
4d24561a JR |
3791 | cat confdefs.h >>conftest.$ac_ext |
3792 | cat >>conftest.$ac_ext <<_ACEOF | |
3793 | /* end confdefs.h. */ | |
3794 | #include <stdlib.h> | |
3795 | #include <stdarg.h> | |
3796 | #include <string.h> | |
3797 | #include <float.h> | |
6e999c3c | 3798 | |
4d24561a JR |
3799 | int |
3800 | main () | |
3801 | { | |
7f45c65c | 3802 | |
4d24561a JR |
3803 | ; |
3804 | return 0; | |
3805 | } | |
8d7ba39e | 3806 | _ACEOF |
4d24561a JR |
3807 | rm -f conftest.$ac_objext |
3808 | if { (ac_try="$ac_compile" | |
3809 | case "(($ac_try" in | |
3810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3811 | *) ac_try_echo=$ac_try;; | |
3812 | esac | |
3813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3814 | (eval "$ac_compile") 2>conftest.er1 | |
3815 | ac_status=$? | |
3816 | grep -v '^ *+' conftest.er1 >conftest.err | |
3817 | rm -f conftest.er1 | |
3818 | cat conftest.err >&5 | |
3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3820 | (exit $ac_status); } && { | |
3821 | test -z "$ac_c_werror_flag" || | |
3822 | test ! -s conftest.err | |
3823 | } && test -s conftest.$ac_objext; then | |
3824 | ac_cv_header_stdc=yes | |
3825 | else | |
3826 | echo "$as_me: failed program was:" >&5 | |
3827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6e999c3c | 3828 | |
4d24561a | 3829 | ac_cv_header_stdc=no |
7f45c65c | 3830 | fi |
6e999c3c | 3831 | |
4d24561a JR |
3832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3833 | ||
3834 | if test $ac_cv_header_stdc = yes; then | |
3835 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3836 | cat >conftest.$ac_ext <<_ACEOF | |
3837 | /* confdefs.h. */ | |
3838 | _ACEOF | |
3839 | cat confdefs.h >>conftest.$ac_ext | |
3840 | cat >>conftest.$ac_ext <<_ACEOF | |
3841 | /* end confdefs.h. */ | |
3842 | #include <string.h> | |
3843 | ||
3844 | _ACEOF | |
3845 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3846 | $EGREP "memchr" >/dev/null 2>&1; then | |
3847 | : | |
7f45c65c | 3848 | else |
4d24561a JR |
3849 | ac_cv_header_stdc=no |
3850 | fi | |
3851 | rm -f conftest* | |
6e999c3c | 3852 | |
8d7ba39e | 3853 | fi |
7f45c65c | 3854 | |
4d24561a JR |
3855 | if test $ac_cv_header_stdc = yes; then |
3856 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3857 | cat >conftest.$ac_ext <<_ACEOF | |
3858 | /* confdefs.h. */ | |
3859 | _ACEOF | |
3860 | cat confdefs.h >>conftest.$ac_ext | |
3861 | cat >>conftest.$ac_ext <<_ACEOF | |
3862 | /* end confdefs.h. */ | |
3863 | #include <stdlib.h> | |
3864 | ||
3865 | _ACEOF | |
3866 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3867 | $EGREP "free" >/dev/null 2>&1; then | |
3868 | : | |
ded99fc7 | 3869 | else |
4d24561a | 3870 | ac_cv_header_stdc=no |
237bfdc9 | 3871 | fi |
4d24561a | 3872 | rm -f conftest* |
fe5b0fdd | 3873 | |
7f45c65c | 3874 | fi |
7f45c65c | 3875 | |
4d24561a JR |
3876 | if test $ac_cv_header_stdc = yes; then |
3877 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3878 | if test "$cross_compiling" = yes; then | |
3879 | : | |
3880 | else | |
3881 | cat >conftest.$ac_ext <<_ACEOF | |
3882 | /* confdefs.h. */ | |
237bfdc9 | 3883 | _ACEOF |
4d24561a JR |
3884 | cat confdefs.h >>conftest.$ac_ext |
3885 | cat >>conftest.$ac_ext <<_ACEOF | |
3886 | /* end confdefs.h. */ | |
3887 | #include <ctype.h> | |
3888 | #include <stdlib.h> | |
3889 | #if ((' ' & 0x0FF) == 0x020) | |
3890 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3891 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3892 | #else | |
3893 | # define ISLOWER(c) \ | |
3894 | (('a' <= (c) && (c) <= 'i') \ | |
3895 | || ('j' <= (c) && (c) <= 'r') \ | |
3896 | || ('s' <= (c) && (c) <= 'z')) | |
3897 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3898 | #endif | |
237bfdc9 | 3899 | |
4d24561a JR |
3900 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3901 | int | |
3902 | main () | |
3903 | { | |
3904 | int i; | |
3905 | for (i = 0; i < 256; i++) | |
3906 | if (XOR (islower (i), ISLOWER (i)) | |
3907 | || toupper (i) != TOUPPER (i)) | |
3908 | return 2; | |
3909 | return 0; | |
3910 | } | |
7d714d6b | 3911 | _ACEOF |
4d24561a JR |
3912 | rm -f conftest$ac_exeext |
3913 | if { (ac_try="$ac_link" | |
3914 | case "(($ac_try" in | |
3915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3916 | *) ac_try_echo=$ac_try;; | |
3917 | esac | |
3918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3919 | (eval "$ac_link") 2>&5 | |
3920 | ac_status=$? | |
3921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3923 | { (case "(($ac_try" in | |
3924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3925 | *) ac_try_echo=$ac_try;; | |
3926 | esac | |
3927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3928 | (eval "$ac_try") 2>&5 | |
3929 | ac_status=$? | |
3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3931 | (exit $ac_status); }; }; then | |
3932 | : | |
3933 | else | |
3934 | echo "$as_me: program exited with status $ac_status" >&5 | |
3935 | echo "$as_me: failed program was:" >&5 | |
3936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
237bfdc9 | 3937 | |
4d24561a JR |
3938 | ( exit $ac_status ) |
3939 | ac_cv_header_stdc=no | |
7d714d6b | 3940 | fi |
4d24561a | 3941 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
237bfdc9 | 3942 | fi |
ded99fc7 EH |
3943 | |
3944 | ||
7d714d6b | 3945 | fi |
4d24561a JR |
3946 | fi |
3947 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3948 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
3949 | if test $ac_cv_header_stdc = yes; then | |
7d714d6b | 3950 | |
4d24561a JR |
3951 | cat >>confdefs.h <<\_ACEOF |
3952 | #define STDC_HEADERS 1 | |
7d714d6b DH |
3953 | _ACEOF |
3954 | ||
4d24561a | 3955 | fi |
7d714d6b | 3956 | |
4d24561a | 3957 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7d714d6b | 3958 | |
7d714d6b | 3959 | |
7d714d6b | 3960 | |
7d714d6b | 3961 | |
7d714d6b | 3962 | |
7d714d6b | 3963 | |
7d714d6b | 3964 | |
7d714d6b | 3965 | |
7d714d6b | 3966 | |
4d24561a JR |
3967 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3968 | inttypes.h stdint.h unistd.h | |
3969 | do | |
3970 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3971 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3972 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
3973 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ded99fc7 EH |
3974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3975 | else | |
7d714d6b | 3976 | cat >conftest.$ac_ext <<_ACEOF |
7f45c65c EH |
3977 | /* confdefs.h. */ |
3978 | _ACEOF | |
3979 | cat confdefs.h >>conftest.$ac_ext | |
3980 | cat >>conftest.$ac_ext <<_ACEOF | |
3981 | /* end confdefs.h. */ | |
4d24561a JR |
3982 | $ac_includes_default |
3983 | ||
3984 | #include <$ac_header> | |
7f45c65c | 3985 | _ACEOF |
4d24561a JR |
3986 | rm -f conftest.$ac_objext |
3987 | if { (ac_try="$ac_compile" | |
3988 | case "(($ac_try" in | |
3989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3990 | *) ac_try_echo=$ac_try;; | |
3991 | esac | |
3992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3993 | (eval "$ac_compile") 2>conftest.er1 | |
7f45c65c EH |
3994 | ac_status=$? |
3995 | grep -v '^ *+' conftest.er1 >conftest.err | |
3996 | rm -f conftest.er1 | |
3997 | cat conftest.err >&5 | |
3998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
3999 | (exit $ac_status); } && { |
4000 | test -z "$ac_c_werror_flag" || | |
4001 | test ! -s conftest.err | |
4002 | } && test -s conftest.$ac_objext; then | |
4003 | eval "$as_ac_Header=yes" | |
7d714d6b DH |
4004 | else |
4005 | echo "$as_me: failed program was:" >&5 | |
4006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4007 | ||
4d24561a | 4008 | eval "$as_ac_Header=no" |
7d714d6b | 4009 | fi |
7d714d6b | 4010 | |
4d24561a JR |
4011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4012 | fi | |
4013 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
4014 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4015 | echo "${ECHO_T}$ac_res" >&6; } | |
4016 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4017 | cat >>confdefs.h <<_ACEOF | |
4018 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4019 | _ACEOF | |
4020 | ||
4021 | fi | |
4022 | ||
4023 | done | |
4024 | ||
4025 | ||
69bc1ebd SR |
4026 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
4027 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4028 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } | |
4029 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4031 | fi | |
4032 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4033 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } | |
4034 | else | |
4035 | # Is the header compilable? | |
4036 | { echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
4037 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; } | |
4038 | cat >conftest.$ac_ext <<_ACEOF | |
4039 | /* confdefs.h. */ | |
4040 | _ACEOF | |
4041 | cat confdefs.h >>conftest.$ac_ext | |
4042 | cat >>conftest.$ac_ext <<_ACEOF | |
4043 | /* end confdefs.h. */ | |
4044 | $ac_includes_default | |
4045 | #include <minix/config.h> | |
4046 | _ACEOF | |
4047 | rm -f conftest.$ac_objext | |
4048 | if { (ac_try="$ac_compile" | |
4049 | case "(($ac_try" in | |
4050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4051 | *) ac_try_echo=$ac_try;; | |
4052 | esac | |
4053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4054 | (eval "$ac_compile") 2>conftest.er1 | |
4055 | ac_status=$? | |
4056 | grep -v '^ *+' conftest.er1 >conftest.err | |
4057 | rm -f conftest.er1 | |
4058 | cat conftest.err >&5 | |
4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4060 | (exit $ac_status); } && { | |
4061 | test -z "$ac_c_werror_flag" || | |
4062 | test ! -s conftest.err | |
4063 | } && test -s conftest.$ac_objext; then | |
4064 | ac_header_compiler=yes | |
4065 | else | |
4066 | echo "$as_me: failed program was:" >&5 | |
4067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4068 | ||
4069 | ac_header_compiler=no | |
4070 | fi | |
4071 | ||
4072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4073 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4074 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
4075 | ||
4076 | # Is the header present? | |
4077 | { echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
4078 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; } | |
4079 | cat >conftest.$ac_ext <<_ACEOF | |
4080 | /* confdefs.h. */ | |
4081 | _ACEOF | |
4082 | cat confdefs.h >>conftest.$ac_ext | |
4083 | cat >>conftest.$ac_ext <<_ACEOF | |
4084 | /* end confdefs.h. */ | |
4085 | #include <minix/config.h> | |
4086 | _ACEOF | |
4087 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4088 | case "(($ac_try" in | |
4089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4090 | *) ac_try_echo=$ac_try;; | |
4091 | esac | |
4092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4093 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4094 | ac_status=$? | |
4095 | grep -v '^ *+' conftest.er1 >conftest.err | |
4096 | rm -f conftest.er1 | |
4097 | cat conftest.err >&5 | |
4098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4099 | (exit $ac_status); } >/dev/null && { | |
4100 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4101 | test ! -s conftest.err | |
4102 | }; then | |
4103 | ac_header_preproc=yes | |
4104 | else | |
4105 | echo "$as_me: failed program was:" >&5 | |
4106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4107 | ||
4108 | ac_header_preproc=no | |
4109 | fi | |
4110 | ||
4111 | rm -f conftest.err conftest.$ac_ext | |
4112 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4113 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
4114 | ||
4115 | # So? What about this header? | |
4116 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4117 | yes:no: ) | |
4118 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4119 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4120 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4121 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
4122 | ac_header_preproc=yes | |
4123 | ;; | |
4124 | no:yes:* ) | |
4125 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
4126 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4127 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4128 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4129 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4130 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4131 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4132 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4133 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4134 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4135 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4136 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
4137 | ( cat <<\_ASBOX | |
4138 | ## --------------------------------- ## | |
4139 | ## Report this to dhcp-users@isc.org ## | |
4140 | ## --------------------------------- ## | |
4141 | _ASBOX | |
4142 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
4143 | ;; | |
4144 | esac | |
4145 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4146 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } | |
4147 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4149 | else | |
4150 | ac_cv_header_minix_config_h=$ac_header_preproc | |
4151 | fi | |
4152 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4153 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } | |
4154 | ||
4155 | fi | |
4156 | if test $ac_cv_header_minix_config_h = yes; then | |
4157 | MINIX=yes | |
4158 | else | |
4159 | MINIX= | |
4160 | fi | |
4161 | ||
4162 | ||
4163 | if test "$MINIX" = yes; then | |
4164 | ||
4165 | cat >>confdefs.h <<\_ACEOF | |
4166 | #define _POSIX_SOURCE 1 | |
4167 | _ACEOF | |
4168 | ||
4169 | ||
4170 | cat >>confdefs.h <<\_ACEOF | |
4171 | #define _POSIX_1_SOURCE 2 | |
4172 | _ACEOF | |
4173 | ||
4174 | ||
4175 | cat >>confdefs.h <<\_ACEOF | |
4176 | #define _MINIX 1 | |
4177 | _ACEOF | |
4178 | ||
4179 | fi | |
4180 | ||
4181 | ||
4182 | ||
4183 | ||
4184 | ||
4185 | ||
4186 | ||
4187 | ||
4188 | ||
4189 | ||
4190 | ||
4191 | { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4192 | echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; } | |
4193 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
4194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4195 | else | |
4196 | cat >conftest.$ac_ext <<_ACEOF | |
4197 | /* confdefs.h. */ | |
4198 | _ACEOF | |
4199 | cat confdefs.h >>conftest.$ac_ext | |
4200 | cat >>conftest.$ac_ext <<_ACEOF | |
4201 | /* end confdefs.h. */ | |
4202 | ||
4203 | # define __EXTENSIONS__ 1 | |
4204 | $ac_includes_default | |
4205 | int | |
4206 | main () | |
4207 | { | |
4208 | ||
4209 | ; | |
4210 | return 0; | |
4211 | } | |
4212 | _ACEOF | |
4213 | rm -f conftest.$ac_objext | |
4214 | if { (ac_try="$ac_compile" | |
4215 | case "(($ac_try" in | |
4216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4217 | *) ac_try_echo=$ac_try;; | |
4218 | esac | |
4219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4220 | (eval "$ac_compile") 2>conftest.er1 | |
4221 | ac_status=$? | |
4222 | grep -v '^ *+' conftest.er1 >conftest.err | |
4223 | rm -f conftest.er1 | |
4224 | cat conftest.err >&5 | |
4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4226 | (exit $ac_status); } && { | |
4227 | test -z "$ac_c_werror_flag" || | |
4228 | test ! -s conftest.err | |
4229 | } && test -s conftest.$ac_objext; then | |
4230 | ac_cv_safe_to_define___extensions__=yes | |
4231 | else | |
4232 | echo "$as_me: failed program was:" >&5 | |
4233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4234 | ||
4235 | ac_cv_safe_to_define___extensions__=no | |
4236 | fi | |
4237 | ||
4238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4239 | fi | |
4240 | { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4241 | echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; } | |
4242 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4243 | cat >>confdefs.h <<\_ACEOF | |
4244 | #define __EXTENSIONS__ 1 | |
4245 | _ACEOF | |
4246 | ||
4247 | cat >>confdefs.h <<\_ACEOF | |
4248 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
4249 | _ACEOF | |
4250 | ||
4251 | cat >>confdefs.h <<\_ACEOF | |
4252 | #define _TANDEM_SOURCE 1 | |
4253 | _ACEOF | |
4254 | ||
4255 | ||
4256 | ||
4257 | if test -n "$ac_tool_prefix"; then | |
4258 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4259 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4260 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4262 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4264 | else | |
4265 | if test -n "$RANLIB"; then | |
4266 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4267 | else | |
4268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4269 | for as_dir in $PATH | |
4270 | do | |
4271 | IFS=$as_save_IFS | |
4272 | test -z "$as_dir" && as_dir=. | |
4273 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4275 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4276 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4277 | break 2 | |
4278 | fi | |
4279 | done | |
4280 | done | |
4281 | IFS=$as_save_IFS | |
4282 | ||
4283 | fi | |
4284 | fi | |
4285 | RANLIB=$ac_cv_prog_RANLIB | |
4286 | if test -n "$RANLIB"; then | |
4287 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4288 | echo "${ECHO_T}$RANLIB" >&6; } | |
4289 | else | |
4290 | { echo "$as_me:$LINENO: result: no" >&5 | |
4291 | echo "${ECHO_T}no" >&6; } | |
4292 | fi | |
4293 | ||
4294 | ||
4295 | fi | |
4296 | if test -z "$ac_cv_prog_RANLIB"; then | |
4297 | ac_ct_RANLIB=$RANLIB | |
4298 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4299 | set dummy ranlib; ac_word=$2 | |
4300 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4302 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4304 | else | |
4305 | if test -n "$ac_ct_RANLIB"; then | |
4306 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4307 | else | |
4308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4309 | for as_dir in $PATH | |
4310 | do | |
4311 | IFS=$as_save_IFS | |
4312 | test -z "$as_dir" && as_dir=. | |
4313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4314 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4315 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4317 | break 2 | |
4318 | fi | |
4319 | done | |
4320 | done | |
4321 | IFS=$as_save_IFS | |
4322 | ||
4323 | fi | |
4324 | fi | |
4325 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4326 | if test -n "$ac_ct_RANLIB"; then | |
4327 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4328 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
4329 | else | |
4330 | { echo "$as_me:$LINENO: result: no" >&5 | |
4331 | echo "${ECHO_T}no" >&6; } | |
4332 | fi | |
4333 | ||
4334 | if test "x$ac_ct_RANLIB" = x; then | |
4335 | RANLIB=":" | |
4336 | else | |
4337 | case $cross_compiling:$ac_tool_warned in | |
4338 | yes:) | |
4339 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4340 | whose name does not start with the host triplet. If you think this | |
4341 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4342 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4343 | whose name does not start with the host triplet. If you think this | |
4344 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4345 | ac_tool_warned=yes ;; | |
4346 | esac | |
4347 | RANLIB=$ac_ct_RANLIB | |
4348 | fi | |
4349 | else | |
4350 | RANLIB="$ac_cv_prog_RANLIB" | |
4351 | fi | |
4352 | ||
4353 | ac_config_headers="$ac_config_headers includes/config.h" | |
4354 | ||
4355 | ||
4356 | # we sometimes need to know byte order for building packets | |
4d24561a JR |
4357 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
4358 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
4359 | if test "${ac_cv_c_bigendian+set}" = set; then | |
4360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4361 | else | |
4362 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4363 | cat >conftest.$ac_ext <<_ACEOF | |
4364 | /* confdefs.h. */ | |
035ed382 DH |
4365 | _ACEOF |
4366 | cat confdefs.h >>conftest.$ac_ext | |
4367 | cat >>conftest.$ac_ext <<_ACEOF | |
4368 | /* end confdefs.h. */ | |
4d24561a JR |
4369 | #include <sys/types.h> |
4370 | #include <sys/param.h> | |
4371 | ||
4372 | int | |
4373 | main () | |
4374 | { | |
4375 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | |
4376 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
4377 | bogus endian macros | |
4378 | #endif | |
4379 | ||
4380 | ; | |
4381 | return 0; | |
4382 | } | |
fe5b0fdd | 4383 | _ACEOF |
4d24561a JR |
4384 | rm -f conftest.$ac_objext |
4385 | if { (ac_try="$ac_compile" | |
4386 | case "(($ac_try" in | |
4387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4388 | *) ac_try_echo=$ac_try;; | |
4389 | esac | |
4390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4391 | (eval "$ac_compile") 2>conftest.er1 | |
035ed382 DH |
4392 | ac_status=$? |
4393 | grep -v '^ *+' conftest.er1 >conftest.err | |
4394 | rm -f conftest.er1 | |
4395 | cat conftest.err >&5 | |
4396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
4397 | (exit $ac_status); } && { |
4398 | test -z "$ac_c_werror_flag" || | |
4399 | test ! -s conftest.err | |
4400 | } && test -s conftest.$ac_objext; then | |
4401 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4402 | cat >conftest.$ac_ext <<_ACEOF | |
6e999c3c SK |
4403 | /* confdefs.h. */ |
4404 | _ACEOF | |
4405 | cat confdefs.h >>conftest.$ac_ext | |
4406 | cat >>conftest.$ac_ext <<_ACEOF | |
4407 | /* end confdefs.h. */ | |
4d24561a JR |
4408 | #include <sys/types.h> |
4409 | #include <sys/param.h> | |
4410 | ||
4411 | int | |
4412 | main () | |
4413 | { | |
4414 | #if BYTE_ORDER != BIG_ENDIAN | |
4415 | not big endian | |
7d714d6b | 4416 | #endif |
4d24561a JR |
4417 | |
4418 | ; | |
4419 | return 0; | |
4420 | } | |
6e999c3c | 4421 | _ACEOF |
4d24561a JR |
4422 | rm -f conftest.$ac_objext |
4423 | if { (ac_try="$ac_compile" | |
4424 | case "(($ac_try" in | |
4425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4426 | *) ac_try_echo=$ac_try;; | |
4427 | esac | |
4428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4429 | (eval "$ac_compile") 2>conftest.er1 | |
8d7ba39e | 4430 | ac_status=$? |
237bfdc9 DH |
4431 | grep -v '^ *+' conftest.er1 >conftest.err |
4432 | rm -f conftest.er1 | |
4433 | cat conftest.err >&5 | |
8d7ba39e | 4434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d24561a JR |
4435 | (exit $ac_status); } && { |
4436 | test -z "$ac_c_werror_flag" || | |
4437 | test ! -s conftest.err | |
4438 | } && test -s conftest.$ac_objext; then | |
4439 | ac_cv_c_bigendian=yes | |
237bfdc9 DH |
4440 | else |
4441 | echo "$as_me: failed program was:" >&5 | |
fe5b0fdd DH |
4442 | sed 's/^/| /' conftest.$ac_ext >&5 |
4443 | ||
4d24561a | 4444 | ac_cv_c_bigendian=no |
3004d0a3 | 4445 | fi |
3004d0a3 | 4446 | |
4d24561a JR |
4447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4448 | else | |
4449 | echo "$as_me: failed program was:" >&5 | |
4450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4451 | ||
4452 | # It does not; compile a test program. | |
4453 | if test "$cross_compiling" = yes; then | |
4454 | # try to guess the endianness by grepping values into an object file | |
4455 | ac_cv_c_bigendian=unknown | |
237bfdc9 DH |
4456 | cat >conftest.$ac_ext <<_ACEOF |
4457 | /* confdefs.h. */ | |
6e999c3c | 4458 | _ACEOF |
237bfdc9 DH |
4459 | cat confdefs.h >>conftest.$ac_ext |
4460 | cat >>conftest.$ac_ext <<_ACEOF | |
4461 | /* end confdefs.h. */ | |
4d24561a JR |
4462 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
4463 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
4464 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
4465 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
4466 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
4467 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
4468 | int | |
4469 | main () | |
4470 | { | |
4471 | _ascii (); _ebcdic (); | |
4472 | ; | |
4473 | return 0; | |
4474 | } | |
8dea7ba7 | 4475 | _ACEOF |
4d24561a JR |
4476 | rm -f conftest.$ac_objext |
4477 | if { (ac_try="$ac_compile" | |
4478 | case "(($ac_try" in | |
4479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4480 | *) ac_try_echo=$ac_try;; | |
4481 | esac | |
4482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4483 | (eval "$ac_compile") 2>conftest.er1 | |
237bfdc9 | 4484 | ac_status=$? |
7d714d6b DH |
4485 | grep -v '^ *+' conftest.er1 >conftest.err |
4486 | rm -f conftest.er1 | |
4487 | cat conftest.err >&5 | |
237bfdc9 | 4488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d24561a JR |
4489 | (exit $ac_status); } && { |
4490 | test -z "$ac_c_werror_flag" || | |
4491 | test ! -s conftest.err | |
4492 | } && test -s conftest.$ac_objext; then | |
4493 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
4494 | ac_cv_c_bigendian=yes | |
4495 | fi | |
4496 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
4497 | if test "$ac_cv_c_bigendian" = unknown; then | |
4498 | ac_cv_c_bigendian=no | |
7d714d6b | 4499 | else |
4d24561a JR |
4500 | # finding both strings is unlikely to happen, but who knows? |
4501 | ac_cv_c_bigendian=unknown | |
7d714d6b | 4502 | fi |
7d714d6b | 4503 | fi |
7d714d6b DH |
4504 | else |
4505 | echo "$as_me: failed program was:" >&5 | |
237bfdc9 DH |
4506 | sed 's/^/| /' conftest.$ac_ext >&5 |
4507 | ||
ded99fc7 EH |
4508 | |
4509 | fi | |
ded99fc7 | 4510 | |
4d24561a | 4511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7d714d6b DH |
4512 | else |
4513 | cat >conftest.$ac_ext <<_ACEOF | |
4514 | /* confdefs.h. */ | |
ded99fc7 | 4515 | _ACEOF |
7d714d6b DH |
4516 | cat confdefs.h >>conftest.$ac_ext |
4517 | cat >>conftest.$ac_ext <<_ACEOF | |
4518 | /* end confdefs.h. */ | |
4d24561a | 4519 | $ac_includes_default |
7d714d6b DH |
4520 | int |
4521 | main () | |
4522 | { | |
ded99fc7 | 4523 | |
4d24561a JR |
4524 | /* Are we little or big endian? From Harbison&Steele. */ |
4525 | union | |
4526 | { | |
4527 | long int l; | |
4528 | char c[sizeof (long int)]; | |
4529 | } u; | |
4530 | u.l = 1; | |
4531 | return u.c[sizeof (long int) - 1] == 1; | |
4532 | ||
7d714d6b DH |
4533 | ; |
4534 | return 0; | |
4535 | } | |
ded99fc7 | 4536 | _ACEOF |
4d24561a JR |
4537 | rm -f conftest$ac_exeext |
4538 | if { (ac_try="$ac_link" | |
4539 | case "(($ac_try" in | |
4540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4541 | *) ac_try_echo=$ac_try;; | |
4542 | esac | |
4543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4544 | (eval "$ac_link") 2>&5 | |
7d714d6b DH |
4545 | ac_status=$? |
4546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
4547 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4548 | { (case "(($ac_try" in | |
4549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4550 | *) ac_try_echo=$ac_try;; | |
4551 | esac | |
4552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4553 | (eval "$ac_try") 2>&5 | |
7d714d6b DH |
4554 | ac_status=$? |
4555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4556 | (exit $ac_status); }; }; then | |
4d24561a | 4557 | ac_cv_c_bigendian=no |
7d714d6b | 4558 | else |
4d24561a JR |
4559 | echo "$as_me: program exited with status $ac_status" >&5 |
4560 | echo "$as_me: failed program was:" >&5 | |
7d714d6b DH |
4561 | sed 's/^/| /' conftest.$ac_ext >&5 |
4562 | ||
4d24561a JR |
4563 | ( exit $ac_status ) |
4564 | ac_cv_c_bigendian=yes | |
4565 | fi | |
4566 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4567 | fi | |
4568 | ||
4569 | ||
4570 | fi | |
4571 | ||
4572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4573 | fi | |
4574 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
4575 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
4576 | case $ac_cv_c_bigendian in | |
4577 | yes) | |
4578 | byte_order=BIG_ENDIAN | |
4579 | ;; | |
4580 | no) | |
4581 | byte_order=LITTLE_ENDIAN | |
4582 | ;; | |
4583 | *) | |
4584 | { { echo "$as_me:$LINENO: error: unknown endianness | |
4585 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
4586 | echo "$as_me: error: unknown endianness | |
4587 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
4588 | { (exit 1); exit 1; }; } ;; | |
4589 | esac | |
4590 | ||
4591 | ||
4592 | cat >>confdefs.h <<_ACEOF | |
4593 | #define DHCP_BYTE_ORDER $byte_order | |
4594 | _ACEOF | |
4595 | ||
4596 | ||
4597 | # Optional compile-time DEBUGging. | |
4598 | # Check whether --enable-debug was given. | |
4599 | if test "${enable_debug+set}" = set; then | |
4600 | enableval=$enable_debug; | |
4601 | fi | |
4602 | ||
4603 | # This is very much off by default. | |
4604 | if test "$enable_debug" = "yes" ; then | |
4605 | ||
4606 | cat >>confdefs.h <<\_ACEOF | |
4607 | #define DEBUG 1 | |
4608 | _ACEOF | |
4609 | ||
4610 | # Just override CFLAGS to totally to remove optimization. | |
4611 | CFLAGS="-g" | |
4612 | fi | |
4613 | # XXX: there are actually quite a lot more DEBUG_ features we could enable, | |
4614 | # but I don't want to pollute the --help space. | |
4615 | # | |
4616 | #/* #define DEBUG_TOKENS */ | |
4617 | #/* #define DEBUG_PACKET */ | |
4618 | #/* #define DEBUG_EXPRESSIONS */ | |
4619 | #/* #define DEBUG_FIND_LEASE */ | |
4620 | #/* #define DEBUG_EXPRESSION_PARSE */ | |
4621 | #/* #define DEBUG_CLASS_MATCHING */ | |
4622 | #/* #define DEBUG_MEMORY_LEAKAGE */ | |
4623 | #/* #define DEBUG_MALLOC_POOL */ | |
4624 | #/* #define DEBUG_LEASE_STATE_TRANSITIONS */ | |
4625 | #/* #define DEBUG_RC_HISTORY */ | |
4626 | #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */ | |
4627 | #/* #define RC_HISTORY_MAX 10240 */ | |
4628 | #/* #define POINTER_DEBUG */ | |
4629 | #/* #define DEBUG_FAILOVER_MESSAGES */ | |
4630 | #/* #define DEBUG_FAILOVER_TIMING */ | |
4631 | #/* #define DEBUG_DUMP_ALL_LEASES */ | |
4632 | ||
4633 | # Failover optional compile-time feature. | |
4634 | # Check whether --enable-failover was given. | |
4635 | if test "${enable_failover+set}" = set; then | |
4636 | enableval=$enable_failover; | |
4637 | fi | |
4638 | ||
4639 | # Failover is on by default, so define if it is not explicitly disabled. | |
4640 | if test "$enable_failover" != "no"; then | |
4641 | ||
4642 | cat >>confdefs.h <<\_ACEOF | |
4643 | #define FAILOVER_PROTOCOL 1 | |
4644 | _ACEOF | |
4645 | ||
4646 | fi | |
4647 | ||
4648 | # execute() support. | |
4649 | # Check whether --enable-execute was given. | |
4650 | if test "${enable_execute+set}" = set; then | |
4651 | enableval=$enable_execute; | |
4652 | fi | |
4653 | ||
4654 | # execute() is on by default, so define if it is not explicitly disabled. | |
4655 | if test "$enable_execute" != "no" ; then | |
4656 | ||
4657 | cat >>confdefs.h <<\_ACEOF | |
4658 | #define ENABLE_EXECUTE 1 | |
4659 | _ACEOF | |
4660 | ||
4661 | fi | |
4662 | ||
4663 | # Server tracing support. | |
4664 | # Check whether --enable-tracing was given. | |
4665 | if test "${enable_tracing+set}" = set; then | |
4666 | enableval=$enable_tracing; | |
4667 | fi | |
4668 | ||
4669 | # tracing is on by default, so define if it is not explicitly disabled. | |
4670 | if test "$enable_tracing" != "no" ; then | |
4671 | ||
4672 | cat >>confdefs.h <<\_ACEOF | |
4673 | #define TRACING 1 | |
4674 | _ACEOF | |
4675 | ||
4676 | fi | |
4677 | ||
4678 | # Delayed-ack feature support (experimental). | |
4679 | # Check whether --enable-delayed_ack was given. | |
4680 | if test "${enable_delayed_ack+set}" = set; then | |
4681 | enableval=$enable_delayed_ack; | |
4682 | fi | |
4683 | ||
4684 | if test "$enable_delayed_ack" = "yes"; then | |
4685 | ||
4686 | cat >>confdefs.h <<\_ACEOF | |
4687 | #define DELAYED_ACK 1 | |
4688 | _ACEOF | |
4689 | ||
4690 | fi | |
4691 | ||
4692 | # DHCPv6 optional compile-time feature. | |
4693 | # Check whether --enable-dhcpv6 was given. | |
4694 | if test "${enable_dhcpv6+set}" = set; then | |
4695 | enableval=$enable_dhcpv6; | |
4696 | fi | |
4697 | ||
4698 | # DHCPv6 is on by default, so define if it is not explicitly disabled. | |
4699 | if test "$enable_dhcpv6" != "no"; then | |
4700 | ||
4701 | cat >>confdefs.h <<\_ACEOF | |
4702 | #define DHCPv6 1 | |
4703 | _ACEOF | |
4704 | ||
4705 | fi | |
4706 | ||
4707 | # PARANOIA is off by default (until we can test it with all features) | |
4708 | # Check whether --enable-paranoia was given. | |
4709 | if test "${enable_paranoia+set}" = set; then | |
4710 | enableval=$enable_paranoia; | |
4711 | fi | |
4712 | ||
4713 | # Check whether --enable-early_chroot was given. | |
4714 | if test "${enable_early_chroot+set}" = set; then | |
4715 | enableval=$enable_early_chroot; | |
4716 | fi | |
4717 | ||
4718 | # If someone enables early chroot, but does not enable paranoia, do so for | |
4719 | # them. | |
4720 | if test "$enable_paranoia" != "yes" && \ | |
4721 | test "$enable_early_chroot" = "yes" ; then | |
4722 | enable_paranoia="yes" | |
4723 | fi | |
4724 | ||
4725 | if test "$enable_paranoia" = "yes" ; then | |
4726 | ||
4727 | cat >>confdefs.h <<\_ACEOF | |
4728 | #define PARANOIA 1 | |
4729 | _ACEOF | |
4730 | ||
4731 | fi | |
4732 | if test "$enable_early_chroot" = "yes" ; then | |
4733 | ||
4734 | cat >>confdefs.h <<\_ACEOF | |
4735 | #define EARLY_CHROOT 1 | |
4736 | _ACEOF | |
4737 | ||
4738 | fi | |
4739 | ||
4740 | ### | |
4741 | ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we | |
4742 | ### need to look there and potentially overwrite by default (but not if | |
4743 | ### the user configures an alternate value). LOCALSTATEDIR is totally | |
4744 | ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and | |
4745 | ### they would be insane for suggesting it. We need to look in /var/for | |
4746 | ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by | |
4747 | ### default. | |
4748 | ### | |
4749 | if test "x$prefix" = xNONE; then | |
4750 | echo $ECHO_N "checking for prefix by $ECHO_C" >&6 | |
4751 | # Extract the first word of "dhcpd", so it can be a program name with args. | |
4752 | set dummy dhcpd; ac_word=$2 | |
4753 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4755 | if test "${ac_cv_path_ac_prefix_program+set}" = set; then | |
4756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4757 | else | |
4758 | case $ac_prefix_program in | |
4759 | [\\/]* | ?:[\\/]*) | |
4760 | ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path. | |
4761 | ;; | |
4762 | *) | |
4763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4764 | for as_dir in $PATH | |
4765 | do | |
4766 | IFS=$as_save_IFS | |
4767 | test -z "$as_dir" && as_dir=. | |
4768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4769 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4770 | ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext" | |
4771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4772 | break 2 | |
4773 | fi | |
4774 | done | |
4775 | done | |
4776 | IFS=$as_save_IFS | |
4777 | ||
4778 | ;; | |
4779 | esac | |
4780 | fi | |
4781 | ac_prefix_program=$ac_cv_path_ac_prefix_program | |
4782 | if test -n "$ac_prefix_program"; then | |
4783 | { echo "$as_me:$LINENO: result: $ac_prefix_program" >&5 | |
4784 | echo "${ECHO_T}$ac_prefix_program" >&6; } | |
4785 | else | |
4786 | { echo "$as_me:$LINENO: result: no" >&5 | |
4787 | echo "${ECHO_T}no" >&6; } | |
4788 | fi | |
4789 | ||
4790 | ||
4791 | if test -n "$ac_prefix_program"; then | |
4792 | prefix=`$as_dirname -- "$ac_prefix_program" || | |
4793 | $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4794 | X"$ac_prefix_program" : 'X\(//\)[^/]' \| \ | |
4795 | X"$ac_prefix_program" : 'X\(//\)$' \| \ | |
4796 | X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null || | |
4797 | echo X"$ac_prefix_program" | | |
4798 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4799 | s//\1/ | |
4800 | q | |
4801 | } | |
4802 | /^X\(\/\/\)[^/].*/{ | |
4803 | s//\1/ | |
4804 | q | |
4805 | } | |
4806 | /^X\(\/\/\)$/{ | |
4807 | s//\1/ | |
4808 | q | |
4809 | } | |
4810 | /^X\(\/\).*/{ | |
4811 | s//\1/ | |
4812 | q | |
4813 | } | |
4814 | s/.*/./; q'` | |
4815 | prefix=`$as_dirname -- "$prefix" || | |
4816 | $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4817 | X"$prefix" : 'X\(//\)[^/]' \| \ | |
4818 | X"$prefix" : 'X\(//\)$' \| \ | |
4819 | X"$prefix" : 'X\(/\)' \| . 2>/dev/null || | |
4820 | echo X"$prefix" | | |
4821 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4822 | s//\1/ | |
4823 | q | |
4824 | } | |
4825 | /^X\(\/\/\)[^/].*/{ | |
4826 | s//\1/ | |
4827 | q | |
4828 | } | |
4829 | /^X\(\/\/\)$/{ | |
4830 | s//\1/ | |
4831 | q | |
4832 | } | |
4833 | /^X\(\/\).*/{ | |
4834 | s//\1/ | |
4835 | q | |
4836 | } | |
4837 | s/.*/./; q'` | |
4838 | fi | |
4839 | fi | |
4840 | ||
4841 | ||
4842 | # XXX - isn't there SOME WAY to default autoconf to /var instead of | |
4843 | # /usr/local/var/no/one/has/this/please/stop/trying? | |
4844 | case "$localstatedir" in | |
4845 | '${prefix}/var') | |
4846 | localstatedir=/var | |
4847 | ;; | |
4848 | esac | |
4849 | ||
4850 | # Allow specification of alternate state files | |
4851 | ||
4852 | # Check whether --with-srv-lease-file was given. | |
4853 | if test "${with_srv_lease_file+set}" = set; then | |
4854 | withval=$with_srv_lease_file; | |
4855 | cat >>confdefs.h <<_ACEOF | |
4856 | #define _PATH_DHCPD_DB "$withval" | |
4857 | _ACEOF | |
4858 | ||
4859 | fi | |
4860 | ||
4861 | ||
4862 | echo -n "checking for dhcpd.leases location..." | |
4863 | if [ "x$with_srv_lease_file" = "x" ] ; then | |
4864 | if [ -d "${localstatedir}/db" ] ; then | |
4865 | with_srv_lease_file="${localstatedir}/db/dhcpd.leases" | |
4866 | elif [ -d "${localstatedir}/state" ] ; then | |
4867 | if [ -d "${localstatedir}/state/dhcp" ] ; then | |
4868 | with_srv_lease_file="${localstatedir}/state/dhcp/dhcpd.leases" | |
4869 | else | |
4870 | with_srv_lease_file="${localstatedir}/state/dhcpd.leases" | |
4871 | fi | |
4872 | elif [ -d "${localstatedir}/lib" ] ; then | |
4873 | if [ -d "${localstatedir}/lib/dhcp" ] ; then | |
4874 | with_srv_lease_file="${localstatedir}/lib/dhcp/dhcpd.leases" | |
4875 | else | |
4876 | with_srv_lease_file="${localstatedir}/lib/dhcpd.leases" | |
4877 | fi | |
4878 | elif [ -d "${localstatedir}/etc" ] ; then | |
4879 | with_srv_lease_file="${localstatedir}/etc/dhcpd.leases" | |
4880 | else | |
4881 | with_srv_lease_file="/etc/dhcpd.leases" | |
4882 | fi | |
4883 | fi | |
4884 | echo "$with_srv_lease_file" | |
4885 | ||
4886 | ||
4887 | # Check whether --with-srv6-lease-file was given. | |
4888 | if test "${with_srv6_lease_file+set}" = set; then | |
4889 | withval=$with_srv6_lease_file; | |
4890 | cat >>confdefs.h <<_ACEOF | |
4891 | #define _PATH_DHCPD6_DB "$withval" | |
4892 | _ACEOF | |
4893 | ||
4894 | fi | |
4895 | ||
4896 | ||
4897 | echo -n "checking for dhcpd6.leases location..." | |
4898 | if [ "x$with_srv6_lease_file" = "x" ] ; then | |
4899 | if [ -d "${localstatedir}/db" ] ; then | |
4900 | with_srv6_lease_file="${localstatedir}/db/dhcpd6.leases" | |
4901 | elif [ -d "${localstatedir}/state" ] ; then | |
4902 | if [ -d "${localstatedir}/state/dhcp" ] ; then | |
4903 | with_srv6_lease_file="${localstatedir}/state/dhcp/dhcpd6.leases" | |
4904 | else | |
4905 | with_srv6_lease_file="${localstatedir}/state/dhcpd6.leases" | |
4906 | fi | |
4907 | elif [ -d "${localstatedir}/lib" ] ; then | |
4908 | if [ -d "${localstatedir}/lib/dhcp" ] ; then | |
4909 | with_srv6_lease_file="${localstatedir}/lib/dhcp/dhcpd6.leases" | |
4910 | else | |
4911 | with_srv6_lease_file="${localstatedir}/lib/dhcpd6.leases" | |
4912 | fi | |
4913 | elif [ -d "${localstatedir}/etc" ] ; then | |
4914 | with_srv6_lease_file="${localstatedir}/etc/dhcpd6.leases" | |
4915 | else | |
4916 | with_srv6_lease_file="/etc/dhcpd6.leases" | |
4917 | fi | |
237bfdc9 | 4918 | fi |
4d24561a | 4919 | echo "$with_srv6_lease_file" |
6e999c3c | 4920 | |
6e999c3c | 4921 | |
4d24561a JR |
4922 | # Check whether --with-cli-lease-file was given. |
4923 | if test "${with_cli_lease_file+set}" = set; then | |
4924 | withval=$with_cli_lease_file; | |
4925 | cat >>confdefs.h <<_ACEOF | |
4926 | #define _PATH_DHCLIENT_DB "$withval" | |
237bfdc9 | 4927 | _ACEOF |
6e999c3c | 4928 | |
7f45c65c | 4929 | fi |
6e999c3c | 4930 | |
6e999c3c | 4931 | |
4d24561a JR |
4932 | echo -n "checking for dhclient.leases location..." |
4933 | if [ "x$with_cli_lease_file" = "x" ] ; then | |
4934 | if [ -d "${localstatedir}/db" ] ; then | |
4935 | with_cli_lease_file="${localstatedir}/db/dhclient.leases" | |
4936 | elif [ -d "${localstatedir}/state" ] ; then | |
4937 | if [ -d "${localstatedir}/state/dhcp" ] ; then | |
4938 | with_cli_lease_file="${localstatedir}/state/dhcp/dhclient.leases" | |
4939 | else | |
4940 | with_cli_lease_file="${localstatedir}/state/dhclient.leases" | |
4941 | fi | |
4942 | elif [ -d "${localstatedir}/lib" ] ; then | |
4943 | if [ -d "${localstatedir}/lib/dhcp" ] ; then | |
4944 | with_cli_lease_file="${localstatedir}/lib/dhcp/dhclient.leases" | |
4945 | else | |
4946 | with_cli_lease_file="${localstatedir}/lib/dhclient.leases" | |
4947 | fi | |
4948 | elif [ -d "${localstatedir}/etc" ] ; then | |
4949 | with_cli_lease_file="${localstatedir}/etc/dhclient.leases" | |
4950 | else | |
4951 | with_cli_lease_file="/etc/dhclient.leases" | |
4952 | fi | |
7d714d6b | 4953 | fi |
4d24561a | 4954 | echo "$with_cli_lease_file" |
237bfdc9 | 4955 | |
7d714d6b | 4956 | |
4d24561a JR |
4957 | # Check whether --with-cli6-lease-file was given. |
4958 | if test "${with_cli6_lease_file+set}" = set; then | |
4959 | withval=$with_cli6_lease_file; | |
4960 | cat >>confdefs.h <<_ACEOF | |
4961 | #define _PATH_DHCLIENT6_DB "$withval" | |
8dea7ba7 FD |
4962 | _ACEOF |
4963 | ||
7d714d6b | 4964 | fi |
8dea7ba7 FD |
4965 | |
4966 | ||
4d24561a JR |
4967 | echo -n "checking for dhclient6.leases location..." |
4968 | if [ "x$with_cli6_lease_file" = "x" ] ; then | |
4969 | if [ -d "${localstatedir}/db" ] ; then | |
4970 | with_cli6_lease_file="${localstatedir}/db/dhclient6.leases" | |
4971 | elif [ -d "${localstatedir}/state" ] ; then | |
4972 | if [ -d "${localstatedir}/state/dhcp" ] ; then | |
4973 | with_cli6_lease_file="${localstatedir}/state/dhcp/dhclient6.leases" | |
4974 | else | |
4975 | with_cli6_lease_file="${localstatedir}/state/dhclient6.leases" | |
4976 | fi | |
4977 | elif [ -d "${localstatedir}/lib" ] ; then | |
4978 | if [ -d "${localstatedir}/lib/dhcp" ] ; then | |
4979 | with_cli6_lease_file="${localstatedir}/lib/dhcp/dhclient6.leases" | |
4980 | else | |
4981 | with_cli6_lease_file="${localstatedir}/lib/dhclient6.leases" | |
4982 | fi | |
4983 | elif [ -d "${localstatedir}/etc" ] ; then | |
4984 | with_cli6_lease_file="${localstatedir}/etc/dhclient6.leases" | |
4985 | else | |
4986 | with_cli6_lease_file="/etc/dhclient6.leases" | |
4987 | fi | |
8dea7ba7 | 4988 | fi |
4d24561a | 4989 | echo "$with_cli6_lease_file" |
8dea7ba7 FD |
4990 | |
4991 | ||
4d24561a JR |
4992 | # Check whether --with-srv-pid-file was given. |
4993 | if test "${with_srv_pid_file+set}" = set; then | |
4994 | withval=$with_srv_pid_file; | |
4995 | cat >>confdefs.h <<_ACEOF | |
4996 | #define _PATH_DHCPD_PID "$withval" | |
4997 | _ACEOF | |
6e999c3c | 4998 | |
4d24561a | 4999 | fi |
7f45c65c EH |
5000 | |
5001 | ||
4d24561a JR |
5002 | # Check whether --with-srv6-pid-file was given. |
5003 | if test "${with_srv6_pid_file+set}" = set; then | |
5004 | withval=$with_srv6_pid_file; | |
5005 | cat >>confdefs.h <<_ACEOF | |
5006 | #define _PATH_DHCPD6_PID "$withval" | |
5007 | _ACEOF | |
8dea7ba7 | 5008 | |
4d24561a | 5009 | fi |
8dea7ba7 FD |
5010 | |
5011 | ||
4d24561a JR |
5012 | # Check whether --with-cli-pid-file was given. |
5013 | if test "${with_cli_pid_file+set}" = set; then | |
5014 | withval=$with_cli_pid_file; | |
5015 | cat >>confdefs.h <<_ACEOF | |
5016 | #define _PATH_DHCLIENT_PID "$withval" | |
5017 | _ACEOF | |
8dea7ba7 | 5018 | |
4d24561a | 5019 | fi |
8dea7ba7 FD |
5020 | |
5021 | ||
4d24561a JR |
5022 | # Check whether --with-cli6-pid-file was given. |
5023 | if test "${with_cli6_pid_file+set}" = set; then | |
5024 | withval=$with_cli6_pid_file; | |
5025 | cat >>confdefs.h <<_ACEOF | |
5026 | #define _PATH_DHCLIENT6_PID "$withval" | |
6e999c3c SK |
5027 | _ACEOF |
5028 | ||
7d714d6b | 5029 | fi |
4d24561a JR |
5030 | |
5031 | ||
5032 | # Check whether --with-relay-pid-file was given. | |
5033 | if test "${with_relay_pid_file+set}" = set; then | |
5034 | withval=$with_relay_pid_file; | |
5035 | cat >>confdefs.h <<_ACEOF | |
5036 | #define _PATH_DHCRELAY_PID "$withval" | |
6e999c3c SK |
5037 | _ACEOF |
5038 | ||
5039 | fi | |
5040 | ||
5041 | ||
4d24561a | 5042 | # see if ifaddrs.h is available |
6e999c3c | 5043 | |
a37c9dd1 MA |
5044 | for ac_header in ifaddrs.h |
5045 | do | |
5046 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4d24561a JR |
5047 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5048 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5049 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5050 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
a37c9dd1 MA |
5051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5052 | fi | |
4d24561a JR |
5053 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5054 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5055 | echo "${ECHO_T}$ac_res" >&6; } | |
a37c9dd1 MA |
5056 | else |
5057 | # Is the header compilable? | |
4d24561a JR |
5058 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5059 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
a37c9dd1 MA |
5060 | cat >conftest.$ac_ext <<_ACEOF |
5061 | /* confdefs.h. */ | |
5062 | _ACEOF | |
5063 | cat confdefs.h >>conftest.$ac_ext | |
5064 | cat >>conftest.$ac_ext <<_ACEOF | |
5065 | /* end confdefs.h. */ | |
5066 | $ac_includes_default | |
5067 | #include <$ac_header> | |
5068 | _ACEOF | |
5069 | rm -f conftest.$ac_objext | |
4d24561a JR |
5070 | if { (ac_try="$ac_compile" |
5071 | case "(($ac_try" in | |
5072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5073 | *) ac_try_echo=$ac_try;; | |
5074 | esac | |
5075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5076 | (eval "$ac_compile") 2>conftest.er1 | |
a37c9dd1 MA |
5077 | ac_status=$? |
5078 | grep -v '^ *+' conftest.er1 >conftest.err | |
5079 | rm -f conftest.er1 | |
5080 | cat conftest.err >&5 | |
5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
5082 | (exit $ac_status); } && { |
5083 | test -z "$ac_c_werror_flag" || | |
5084 | test ! -s conftest.err | |
5085 | } && test -s conftest.$ac_objext; then | |
a37c9dd1 MA |
5086 | ac_header_compiler=yes |
5087 | else | |
5088 | echo "$as_me: failed program was:" >&5 | |
5089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5090 | ||
4d24561a | 5091 | ac_header_compiler=no |
a37c9dd1 | 5092 | fi |
4d24561a JR |
5093 | |
5094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5095 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5096 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
a37c9dd1 MA |
5097 | |
5098 | # Is the header present? | |
4d24561a JR |
5099 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5100 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
a37c9dd1 MA |
5101 | cat >conftest.$ac_ext <<_ACEOF |
5102 | /* confdefs.h. */ | |
5103 | _ACEOF | |
5104 | cat confdefs.h >>conftest.$ac_ext | |
5105 | cat >>conftest.$ac_ext <<_ACEOF | |
5106 | /* end confdefs.h. */ | |
5107 | #include <$ac_header> | |
5108 | _ACEOF | |
4d24561a JR |
5109 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5110 | case "(($ac_try" in | |
5111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5112 | *) ac_try_echo=$ac_try;; | |
5113 | esac | |
5114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5115 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
a37c9dd1 MA |
5116 | ac_status=$? |
5117 | grep -v '^ *+' conftest.er1 >conftest.err | |
5118 | rm -f conftest.er1 | |
5119 | cat conftest.err >&5 | |
5120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
5121 | (exit $ac_status); } >/dev/null && { |
5122 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5123 | test ! -s conftest.err | |
5124 | }; then | |
a37c9dd1 MA |
5125 | ac_header_preproc=yes |
5126 | else | |
5127 | echo "$as_me: failed program was:" >&5 | |
5128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5129 | ||
5130 | ac_header_preproc=no | |
5131 | fi | |
4d24561a | 5132 | |
a37c9dd1 | 5133 | rm -f conftest.err conftest.$ac_ext |
4d24561a JR |
5134 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5135 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
a37c9dd1 MA |
5136 | |
5137 | # So? What about this header? | |
5138 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5139 | yes:no: ) | |
5140 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5141 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5142 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5143 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5144 | ac_header_preproc=yes | |
5145 | ;; | |
5146 | no:yes:* ) | |
5147 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5148 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5149 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5150 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5151 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5152 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5153 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5154 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5155 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5156 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5157 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5158 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4d24561a | 5159 | ( cat <<\_ASBOX |
a37c9dd1 MA |
5160 | ## --------------------------------- ## |
5161 | ## Report this to dhcp-users@isc.org ## | |
5162 | ## --------------------------------- ## | |
5163 | _ASBOX | |
4d24561a | 5164 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
a37c9dd1 MA |
5165 | ;; |
5166 | esac | |
4d24561a JR |
5167 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5168 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5169 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
a37c9dd1 MA |
5170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5171 | else | |
5172 | eval "$as_ac_Header=\$ac_header_preproc" | |
5173 | fi | |
4d24561a JR |
5174 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5175 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5176 | echo "${ECHO_T}$ac_res" >&6; } | |
a37c9dd1 MA |
5177 | |
5178 | fi | |
5179 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5180 | cat >>confdefs.h <<_ACEOF | |
5181 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5182 | _ACEOF | |
5183 | ||
5184 | fi | |
5185 | ||
5186 | done | |
5187 | ||
5188 | ||
5189 | # figure out what IPv4 interface code to use | |
5190 | ||
6e999c3c SK |
5191 | for ac_header in linux/types.h |
5192 | do | |
5193 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4d24561a JR |
5194 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5195 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
fe5b0fdd DH |
5198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5199 | fi | |
4d24561a JR |
5200 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5201 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5202 | echo "${ECHO_T}$ac_res" >&6; } | |
fe5b0fdd DH |
5203 | else |
5204 | # Is the header compilable? | |
4d24561a JR |
5205 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5206 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
fe5b0fdd DH |
5207 | cat >conftest.$ac_ext <<_ACEOF |
5208 | /* confdefs.h. */ | |
5209 | _ACEOF | |
5210 | cat confdefs.h >>conftest.$ac_ext | |
5211 | cat >>conftest.$ac_ext <<_ACEOF | |
5212 | /* end confdefs.h. */ | |
5213 | $ac_includes_default | |
6e999c3c | 5214 | #include <$ac_header> |
fe5b0fdd DH |
5215 | _ACEOF |
5216 | rm -f conftest.$ac_objext | |
4d24561a JR |
5217 | if { (ac_try="$ac_compile" |
5218 | case "(($ac_try" in | |
5219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5220 | *) ac_try_echo=$ac_try;; | |
5221 | esac | |
5222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5223 | (eval "$ac_compile") 2>conftest.er1 | |
6e999c3c SK |
5224 | ac_status=$? |
5225 | grep -v '^ *+' conftest.er1 >conftest.err | |
5226 | rm -f conftest.er1 | |
5227 | cat conftest.err >&5 | |
5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
5229 | (exit $ac_status); } && { |
5230 | test -z "$ac_c_werror_flag" || | |
5231 | test ! -s conftest.err | |
5232 | } && test -s conftest.$ac_objext; then | |
6e999c3c SK |
5233 | ac_header_compiler=yes |
5234 | else | |
5235 | echo "$as_me: failed program was:" >&5 | |
5236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5237 | ||
4d24561a | 5238 | ac_header_compiler=no |
6e999c3c | 5239 | fi |
4d24561a JR |
5240 | |
5241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5242 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5243 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
6e999c3c SK |
5244 | |
5245 | # Is the header present? | |
4d24561a JR |
5246 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5247 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
6e999c3c SK |
5248 | cat >conftest.$ac_ext <<_ACEOF |
5249 | /* confdefs.h. */ | |
5250 | _ACEOF | |
5251 | cat confdefs.h >>conftest.$ac_ext | |
5252 | cat >>conftest.$ac_ext <<_ACEOF | |
5253 | /* end confdefs.h. */ | |
5254 | #include <$ac_header> | |
5255 | _ACEOF | |
4d24561a JR |
5256 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5257 | case "(($ac_try" in | |
5258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5259 | *) ac_try_echo=$ac_try;; | |
5260 | esac | |
5261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5262 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
fe5b0fdd DH |
5263 | ac_status=$? |
5264 | grep -v '^ *+' conftest.er1 >conftest.err | |
5265 | rm -f conftest.er1 | |
5266 | cat conftest.err >&5 | |
5267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
5268 | (exit $ac_status); } >/dev/null && { |
5269 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5270 | test ! -s conftest.err | |
5271 | }; then | |
6e999c3c SK |
5272 | ac_header_preproc=yes |
5273 | else | |
5274 | echo "$as_me: failed program was:" >&5 | |
5275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5276 | ||
5277 | ac_header_preproc=no | |
5278 | fi | |
4d24561a | 5279 | |
6e999c3c | 5280 | rm -f conftest.err conftest.$ac_ext |
4d24561a JR |
5281 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5282 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
6e999c3c SK |
5283 | |
5284 | # So? What about this header? | |
5285 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5286 | yes:no: ) | |
5287 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5288 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5290 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5291 | ac_header_preproc=yes | |
5292 | ;; | |
5293 | no:yes:* ) | |
5294 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5295 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5296 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5297 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5298 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5299 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5300 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5301 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5302 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5303 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5304 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5305 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4d24561a | 5306 | ( cat <<\_ASBOX |
6e999c3c SK |
5307 | ## --------------------------------- ## |
5308 | ## Report this to dhcp-users@isc.org ## | |
5309 | ## --------------------------------- ## | |
5310 | _ASBOX | |
4d24561a | 5311 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
6e999c3c SK |
5312 | ;; |
5313 | esac | |
4d24561a JR |
5314 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5315 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5316 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6e999c3c SK |
5317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5318 | else | |
5319 | eval "$as_ac_Header=\$ac_header_preproc" | |
5320 | fi | |
4d24561a JR |
5321 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5322 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5323 | echo "${ECHO_T}$ac_res" >&6; } | |
6e999c3c SK |
5324 | |
5325 | fi | |
5326 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5327 | cat >>confdefs.h <<_ACEOF | |
5328 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5329 | _ACEOF | |
5330 | ||
5331 | fi | |
5332 | ||
5333 | done | |
5334 | # needed for linux/filter.h on old systems | |
5335 | ||
4d24561a JR |
5336 | { echo "$as_me:$LINENO: checking for linux/filter.h" >&5 |
5337 | echo $ECHO_N "checking for linux/filter.h... $ECHO_C" >&6; } | |
6e999c3c SK |
5338 | if test "${ac_cv_header_linux_filter_h+set}" = set; then |
5339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5340 | else | |
5341 | cat >conftest.$ac_ext <<_ACEOF | |
5342 | /* confdefs.h. */ | |
5343 | _ACEOF | |
5344 | cat confdefs.h >>conftest.$ac_ext | |
5345 | cat >>conftest.$ac_ext <<_ACEOF | |
5346 | /* end confdefs.h. */ | |
5347 | ||
5348 | #ifdef HAVE_LINUX_TYPES_H | |
5349 | #include <linux/types.h> | |
5350 | #endif | |
5351 | ||
5352 | ||
5353 | #include <linux/filter.h> | |
5354 | _ACEOF | |
5355 | rm -f conftest.$ac_objext | |
4d24561a JR |
5356 | if { (ac_try="$ac_compile" |
5357 | case "(($ac_try" in | |
5358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5359 | *) ac_try_echo=$ac_try;; | |
5360 | esac | |
5361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5362 | (eval "$ac_compile") 2>conftest.er1 | |
035ed382 | 5363 | ac_status=$? |
6e999c3c SK |
5364 | grep -v '^ *+' conftest.er1 >conftest.err |
5365 | rm -f conftest.er1 | |
5366 | cat conftest.err >&5 | |
035ed382 | 5367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d24561a JR |
5368 | (exit $ac_status); } && { |
5369 | test -z "$ac_c_werror_flag" || | |
5370 | test ! -s conftest.err | |
5371 | } && test -s conftest.$ac_objext; then | |
6e999c3c SK |
5372 | ac_cv_header_linux_filter_h=yes |
5373 | else | |
5374 | echo "$as_me: failed program was:" >&5 | |
5375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5376 | ||
4d24561a | 5377 | ac_cv_header_linux_filter_h=no |
6e999c3c | 5378 | fi |
4d24561a JR |
5379 | |
5380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6e999c3c | 5381 | fi |
4d24561a JR |
5382 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_filter_h" >&5 |
5383 | echo "${ECHO_T}$ac_cv_header_linux_filter_h" >&6; } | |
6e999c3c SK |
5384 | if test $ac_cv_header_linux_filter_h = yes; then |
5385 | DO_LPF=1 | |
5386 | fi | |
5387 | ||
5388 | ||
5389 | if test -n "$DO_LPF" | |
5390 | then | |
5391 | ||
5392 | cat >>confdefs.h <<\_ACEOF | |
5393 | #define USE_LPF 1 | |
5394 | _ACEOF | |
5395 | ||
5396 | else | |
5397 | if test "${ac_cv_header_sys_dlpi_h+set}" = set; then | |
4d24561a JR |
5398 | { echo "$as_me:$LINENO: checking for sys/dlpi.h" >&5 |
5399 | echo $ECHO_N "checking for sys/dlpi.h... $ECHO_C" >&6; } | |
6e999c3c SK |
5400 | if test "${ac_cv_header_sys_dlpi_h+set}" = set; then |
5401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5402 | fi | |
4d24561a JR |
5403 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dlpi_h" >&5 |
5404 | echo "${ECHO_T}$ac_cv_header_sys_dlpi_h" >&6; } | |
6e999c3c SK |
5405 | else |
5406 | # Is the header compilable? | |
4d24561a JR |
5407 | { echo "$as_me:$LINENO: checking sys/dlpi.h usability" >&5 |
5408 | echo $ECHO_N "checking sys/dlpi.h usability... $ECHO_C" >&6; } | |
6e999c3c SK |
5409 | cat >conftest.$ac_ext <<_ACEOF |
5410 | /* confdefs.h. */ | |
5411 | _ACEOF | |
5412 | cat confdefs.h >>conftest.$ac_ext | |
5413 | cat >>conftest.$ac_ext <<_ACEOF | |
5414 | /* end confdefs.h. */ | |
5415 | $ac_includes_default | |
5416 | #include <sys/dlpi.h> | |
5417 | _ACEOF | |
5418 | rm -f conftest.$ac_objext | |
4d24561a JR |
5419 | if { (ac_try="$ac_compile" |
5420 | case "(($ac_try" in | |
5421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5422 | *) ac_try_echo=$ac_try;; | |
5423 | esac | |
5424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5425 | (eval "$ac_compile") 2>conftest.er1 | |
035ed382 | 5426 | ac_status=$? |
6e999c3c SK |
5427 | grep -v '^ *+' conftest.er1 >conftest.err |
5428 | rm -f conftest.er1 | |
5429 | cat conftest.err >&5 | |
035ed382 | 5430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d24561a JR |
5431 | (exit $ac_status); } && { |
5432 | test -z "$ac_c_werror_flag" || | |
5433 | test ! -s conftest.err | |
5434 | } && test -s conftest.$ac_objext; then | |
fe5b0fdd DH |
5435 | ac_header_compiler=yes |
5436 | else | |
5437 | echo "$as_me: failed program was:" >&5 | |
5438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5439 | ||
4d24561a | 5440 | ac_header_compiler=no |
fe5b0fdd | 5441 | fi |
4d24561a JR |
5442 | |
5443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5444 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5445 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
fe5b0fdd DH |
5446 | |
5447 | # Is the header present? | |
4d24561a JR |
5448 | { echo "$as_me:$LINENO: checking sys/dlpi.h presence" >&5 |
5449 | echo $ECHO_N "checking sys/dlpi.h presence... $ECHO_C" >&6; } | |
fe5b0fdd DH |
5450 | cat >conftest.$ac_ext <<_ACEOF |
5451 | /* confdefs.h. */ | |
5452 | _ACEOF | |
5453 | cat confdefs.h >>conftest.$ac_ext | |
5454 | cat >>conftest.$ac_ext <<_ACEOF | |
5455 | /* end confdefs.h. */ | |
5456 | #include <sys/dlpi.h> | |
5457 | _ACEOF | |
4d24561a JR |
5458 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5459 | case "(($ac_try" in | |
5460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5461 | *) ac_try_echo=$ac_try;; | |
5462 | esac | |
5463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5464 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
fe5b0fdd DH |
5465 | ac_status=$? |
5466 | grep -v '^ *+' conftest.er1 >conftest.err | |
5467 | rm -f conftest.er1 | |
5468 | cat conftest.err >&5 | |
5469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
5470 | (exit $ac_status); } >/dev/null && { |
5471 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5472 | test ! -s conftest.err | |
5473 | }; then | |
fe5b0fdd DH |
5474 | ac_header_preproc=yes |
5475 | else | |
5476 | echo "$as_me: failed program was:" >&5 | |
5477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5478 | ||
5479 | ac_header_preproc=no | |
5480 | fi | |
4d24561a | 5481 | |
fe5b0fdd | 5482 | rm -f conftest.err conftest.$ac_ext |
4d24561a JR |
5483 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5484 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
fe5b0fdd DH |
5485 | |
5486 | # So? What about this header? | |
5487 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5488 | yes:no: ) | |
5489 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5490 | echo "$as_me: WARNING: sys/dlpi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5491 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: proceeding with the compiler's result" >&5 | |
5492 | echo "$as_me: WARNING: sys/dlpi.h: proceeding with the compiler's result" >&2;} | |
5493 | ac_header_preproc=yes | |
5494 | ;; | |
5495 | no:yes:* ) | |
5496 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: present but cannot be compiled" >&5 | |
5497 | echo "$as_me: WARNING: sys/dlpi.h: present but cannot be compiled" >&2;} | |
5498 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: check for missing prerequisite headers?" >&5 | |
5499 | echo "$as_me: WARNING: sys/dlpi.h: check for missing prerequisite headers?" >&2;} | |
5500 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: see the Autoconf documentation" >&5 | |
5501 | echo "$as_me: WARNING: sys/dlpi.h: see the Autoconf documentation" >&2;} | |
5502 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5503 | echo "$as_me: WARNING: sys/dlpi.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5504 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: proceeding with the preprocessor's result" >&5 | |
5505 | echo "$as_me: WARNING: sys/dlpi.h: proceeding with the preprocessor's result" >&2;} | |
5506 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: in the future, the compiler will take precedence" >&5 | |
5507 | echo "$as_me: WARNING: sys/dlpi.h: in the future, the compiler will take precedence" >&2;} | |
4d24561a | 5508 | ( cat <<\_ASBOX |
fe5b0fdd DH |
5509 | ## --------------------------------- ## |
5510 | ## Report this to dhcp-users@isc.org ## | |
5511 | ## --------------------------------- ## | |
5512 | _ASBOX | |
4d24561a | 5513 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
fe5b0fdd DH |
5514 | ;; |
5515 | esac | |
4d24561a JR |
5516 | { echo "$as_me:$LINENO: checking for sys/dlpi.h" >&5 |
5517 | echo $ECHO_N "checking for sys/dlpi.h... $ECHO_C" >&6; } | |
fe5b0fdd DH |
5518 | if test "${ac_cv_header_sys_dlpi_h+set}" = set; then |
5519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5520 | else | |
5521 | ac_cv_header_sys_dlpi_h=$ac_header_preproc | |
5522 | fi | |
4d24561a JR |
5523 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dlpi_h" >&5 |
5524 | echo "${ECHO_T}$ac_cv_header_sys_dlpi_h" >&6; } | |
fe5b0fdd DH |
5525 | |
5526 | fi | |
5527 | if test $ac_cv_header_sys_dlpi_h = yes; then | |
f125dc8b SK |
5528 | DO_DLPI=1 |
5529 | fi | |
5530 | ||
5531 | ||
5532 | if test -n "$DO_DLPI" | |
5533 | then | |
fe5b0fdd DH |
5534 | |
5535 | cat >>confdefs.h <<\_ACEOF | |
5536 | #define USE_DLPI 1 | |
5537 | _ACEOF | |
5538 | ||
f125dc8b SK |
5539 | else |
5540 | if test "${ac_cv_header_net_bpf_h+set}" = set; then | |
4d24561a JR |
5541 | { echo "$as_me:$LINENO: checking for net/bpf.h" >&5 |
5542 | echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; } | |
fe5b0fdd DH |
5543 | if test "${ac_cv_header_net_bpf_h+set}" = set; then |
5544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5545 | fi | |
4d24561a JR |
5546 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5 |
5547 | echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; } | |
fe5b0fdd DH |
5548 | else |
5549 | # Is the header compilable? | |
4d24561a JR |
5550 | { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5 |
5551 | echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; } | |
fe5b0fdd DH |
5552 | cat >conftest.$ac_ext <<_ACEOF |
5553 | /* confdefs.h. */ | |
5554 | _ACEOF | |
5555 | cat confdefs.h >>conftest.$ac_ext | |
5556 | cat >>conftest.$ac_ext <<_ACEOF | |
5557 | /* end confdefs.h. */ | |
5558 | $ac_includes_default | |
5559 | #include <net/bpf.h> | |
5560 | _ACEOF | |
5561 | rm -f conftest.$ac_objext | |
4d24561a JR |
5562 | if { (ac_try="$ac_compile" |
5563 | case "(($ac_try" in | |
5564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5565 | *) ac_try_echo=$ac_try;; | |
5566 | esac | |
5567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5568 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
5569 | ac_status=$? |
5570 | grep -v '^ *+' conftest.er1 >conftest.err | |
5571 | rm -f conftest.er1 | |
5572 | cat conftest.err >&5 | |
5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
5574 | (exit $ac_status); } && { |
5575 | test -z "$ac_c_werror_flag" || | |
5576 | test ! -s conftest.err | |
5577 | } && test -s conftest.$ac_objext; then | |
fe5b0fdd DH |
5578 | ac_header_compiler=yes |
5579 | else | |
5580 | echo "$as_me: failed program was:" >&5 | |
5581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5582 | ||
4d24561a | 5583 | ac_header_compiler=no |
fe5b0fdd | 5584 | fi |
4d24561a JR |
5585 | |
5586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5587 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5588 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
fe5b0fdd DH |
5589 | |
5590 | # Is the header present? | |
4d24561a JR |
5591 | { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5 |
5592 | echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; } | |
fe5b0fdd DH |
5593 | cat >conftest.$ac_ext <<_ACEOF |
5594 | /* confdefs.h. */ | |
5595 | _ACEOF | |
5596 | cat confdefs.h >>conftest.$ac_ext | |
5597 | cat >>conftest.$ac_ext <<_ACEOF | |
5598 | /* end confdefs.h. */ | |
5599 | #include <net/bpf.h> | |
5600 | _ACEOF | |
4d24561a JR |
5601 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5602 | case "(($ac_try" in | |
5603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5604 | *) ac_try_echo=$ac_try;; | |
5605 | esac | |
5606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5607 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
fe5b0fdd DH |
5608 | ac_status=$? |
5609 | grep -v '^ *+' conftest.er1 >conftest.err | |
5610 | rm -f conftest.er1 | |
5611 | cat conftest.err >&5 | |
5612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
5613 | (exit $ac_status); } >/dev/null && { |
5614 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5615 | test ! -s conftest.err | |
5616 | }; then | |
fe5b0fdd DH |
5617 | ac_header_preproc=yes |
5618 | else | |
5619 | echo "$as_me: failed program was:" >&5 | |
5620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5621 | ||
5622 | ac_header_preproc=no | |
5623 | fi | |
4d24561a | 5624 | |
fe5b0fdd | 5625 | rm -f conftest.err conftest.$ac_ext |
4d24561a JR |
5626 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5627 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
fe5b0fdd DH |
5628 | |
5629 | # So? What about this header? | |
5630 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5631 | yes:no: ) | |
5632 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5633 | echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5634 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5 | |
5635 | echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;} | |
5636 | ac_header_preproc=yes | |
5637 | ;; | |
5638 | no:yes:* ) | |
5639 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5 | |
5640 | echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;} | |
5641 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5 | |
5642 | echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;} | |
5643 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5 | |
5644 | echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;} | |
5645 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5646 | echo "$as_me: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5647 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5 | |
5648 | echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;} | |
5649 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5 | |
5650 | echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;} | |
4d24561a | 5651 | ( cat <<\_ASBOX |
fe5b0fdd DH |
5652 | ## --------------------------------- ## |
5653 | ## Report this to dhcp-users@isc.org ## | |
5654 | ## --------------------------------- ## | |
5655 | _ASBOX | |
4d24561a | 5656 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
fe5b0fdd DH |
5657 | ;; |
5658 | esac | |
4d24561a JR |
5659 | { echo "$as_me:$LINENO: checking for net/bpf.h" >&5 |
5660 | echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; } | |
fe5b0fdd DH |
5661 | if test "${ac_cv_header_net_bpf_h+set}" = set; then |
5662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5663 | else | |
e62b1eb3 DH |
5664 | ac_cv_header_net_bpf_h=$ac_header_preproc |
5665 | fi | |
4d24561a JR |
5666 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5 |
5667 | echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; } | |
e62b1eb3 DH |
5668 | |
5669 | fi | |
5670 | if test $ac_cv_header_net_bpf_h = yes; then | |
f125dc8b SK |
5671 | DO_BPF=1 |
5672 | fi | |
5673 | ||
5674 | ||
5675 | if test -n "$DO_BPF" | |
5676 | then | |
e62b1eb3 DH |
5677 | |
5678 | cat >>confdefs.h <<\_ACEOF | |
f125dc8b | 5679 | #define USE_BPF "" |
e62b1eb3 DH |
5680 | _ACEOF |
5681 | ||
f125dc8b SK |
5682 | fi |
5683 | fi | |
e62b1eb3 | 5684 | |
f125dc8b | 5685 | fi |
e62b1eb3 | 5686 | |
c62c07ef DH |
5687 | # SIOCGLIFCONF uses some transport structures. Trick is not all platforms |
5688 | # use the same structures. We like to use 'struct lifconf' and 'struct | |
5689 | # lifreq', but we'll use these other structures if they're present. HPUX | |
5690 | # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an | |
5691 | # int value. | |
5692 | # | |
4d24561a JR |
5693 | { echo "$as_me:$LINENO: checking for struct lifnum" >&5 |
5694 | echo $ECHO_N "checking for struct lifnum... $ECHO_C" >&6; } | |
c62c07ef DH |
5695 | cat >conftest.$ac_ext <<_ACEOF |
5696 | /* confdefs.h. */ | |
5697 | _ACEOF | |
5698 | cat confdefs.h >>conftest.$ac_ext | |
5699 | cat >>conftest.$ac_ext <<_ACEOF | |
5700 | /* end confdefs.h. */ | |
5701 | #include <sys/types.h> | |
a37c9dd1 | 5702 | #include <sys/socket.h> |
c62c07ef DH |
5703 | #include <net/if.h> |
5704 | ||
5705 | int | |
5706 | main () | |
5707 | { | |
5708 | struct lifnum a; | |
5709 | ||
5710 | ; | |
5711 | return 0; | |
5712 | } | |
5713 | _ACEOF | |
5714 | rm -f conftest.$ac_objext | |
4d24561a JR |
5715 | if { (ac_try="$ac_compile" |
5716 | case "(($ac_try" in | |
5717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5718 | *) ac_try_echo=$ac_try;; | |
5719 | esac | |
5720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5721 | (eval "$ac_compile") 2>conftest.er1 | |
c62c07ef DH |
5722 | ac_status=$? |
5723 | grep -v '^ *+' conftest.er1 >conftest.err | |
5724 | rm -f conftest.er1 | |
5725 | cat conftest.err >&5 | |
5726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
5727 | (exit $ac_status); } && { |
5728 | test -z "$ac_c_werror_flag" || | |
5729 | test ! -s conftest.err | |
5730 | } && test -s conftest.$ac_objext; then | |
5731 | { echo "$as_me:$LINENO: result: yes" >&5 | |
5732 | echo "${ECHO_T}yes" >&6; } | |
c62c07ef DH |
5733 | |
5734 | cat >>confdefs.h <<\_ACEOF | |
5735 | #define ISC_PLATFORM_HAVELIFNUM 1 | |
5736 | _ACEOF | |
5737 | ||
5738 | else | |
5739 | echo "$as_me: failed program was:" >&5 | |
5740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5741 | ||
4d24561a JR |
5742 | { echo "$as_me:$LINENO: result: no" >&5 |
5743 | echo "${ECHO_T}no" >&6; } | |
c62c07ef | 5744 | fi |
c62c07ef | 5745 | |
4d24561a JR |
5746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5747 | ||
5748 | { echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5 | |
5749 | echo $ECHO_N "checking for struct if_laddrconf... $ECHO_C" >&6; } | |
c62c07ef DH |
5750 | cat >conftest.$ac_ext <<_ACEOF |
5751 | /* confdefs.h. */ | |
5752 | _ACEOF | |
5753 | cat confdefs.h >>conftest.$ac_ext | |
5754 | cat >>conftest.$ac_ext <<_ACEOF | |
5755 | /* end confdefs.h. */ | |
5756 | #include <sys/types.h> | |
5757 | #include <net/if6.h> | |
5758 | ||
5759 | int | |
5760 | main () | |
5761 | { | |
5762 | struct if_laddrconf a; | |
5763 | ||
5764 | ; | |
5765 | return 0; | |
5766 | } | |
5767 | _ACEOF | |
5768 | rm -f conftest.$ac_objext | |
4d24561a JR |
5769 | if { (ac_try="$ac_compile" |
5770 | case "(($ac_try" in | |
5771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5772 | *) ac_try_echo=$ac_try;; | |
5773 | esac | |
5774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5775 | (eval "$ac_compile") 2>conftest.er1 | |
c62c07ef DH |
5776 | ac_status=$? |
5777 | grep -v '^ *+' conftest.er1 >conftest.err | |
5778 | rm -f conftest.er1 | |
5779 | cat conftest.err >&5 | |
5780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
5781 | (exit $ac_status); } && { |
5782 | test -z "$ac_c_werror_flag" || | |
5783 | test ! -s conftest.err | |
5784 | } && test -s conftest.$ac_objext; then | |
5785 | { echo "$as_me:$LINENO: result: yes" >&5 | |
5786 | echo "${ECHO_T}yes" >&6; } | |
c62c07ef DH |
5787 | |
5788 | cat >>confdefs.h <<\_ACEOF | |
5789 | #define ISC_PLATFORM_HAVEIF_LADDRCONF 1 | |
5790 | _ACEOF | |
5791 | ||
5792 | else | |
5793 | echo "$as_me: failed program was:" >&5 | |
5794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5795 | ||
4d24561a JR |
5796 | { echo "$as_me:$LINENO: result: no" >&5 |
5797 | echo "${ECHO_T}no" >&6; } | |
c62c07ef | 5798 | fi |
c62c07ef | 5799 | |
4d24561a JR |
5800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5801 | ||
5802 | { echo "$as_me:$LINENO: checking for struct if_laddrreq" >&5 | |
5803 | echo $ECHO_N "checking for struct if_laddrreq... $ECHO_C" >&6; } | |
c62c07ef DH |
5804 | cat >conftest.$ac_ext <<_ACEOF |
5805 | /* confdefs.h. */ | |
5806 | _ACEOF | |
5807 | cat confdefs.h >>conftest.$ac_ext | |
5808 | cat >>conftest.$ac_ext <<_ACEOF | |
5809 | /* end confdefs.h. */ | |
5810 | #include <sys/types.h> | |
5811 | #include <net/if6.h> | |
5812 | ||
5813 | int | |
5814 | main () | |
5815 | { | |
5816 | struct if_laddrreq a; | |
5817 | ||
5818 | ; | |
5819 | return 0; | |
5820 | } | |
5821 | _ACEOF | |
5822 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4d24561a JR |
5823 | if { (ac_try="$ac_link" |
5824 | case "(($ac_try" in | |
5825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5826 | *) ac_try_echo=$ac_try;; | |
5827 | esac | |
5828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5829 | (eval "$ac_link") 2>conftest.er1 | |
c62c07ef DH |
5830 | ac_status=$? |
5831 | grep -v '^ *+' conftest.er1 >conftest.err | |
5832 | rm -f conftest.er1 | |
5833 | cat conftest.err >&5 | |
5834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
5835 | (exit $ac_status); } && { |
5836 | test -z "$ac_c_werror_flag" || | |
5837 | test ! -s conftest.err | |
5838 | } && test -s conftest$ac_exeext && | |
5839 | $as_test_x conftest$ac_exeext; then | |
5840 | { echo "$as_me:$LINENO: result: yes" >&5 | |
5841 | echo "${ECHO_T}yes" >&6; } | |
c62c07ef DH |
5842 | |
5843 | cat >>confdefs.h <<\_ACEOF | |
5844 | #define ISC_PLATFORM_HAVEIF_LADDRREQ 1 | |
5845 | _ACEOF | |
5846 | ||
5847 | else | |
5848 | echo "$as_me: failed program was:" >&5 | |
5849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5850 | ||
4d24561a JR |
5851 | { echo "$as_me:$LINENO: result: no" >&5 |
5852 | echo "${ECHO_T}no" >&6; } | |
c62c07ef | 5853 | fi |
4d24561a JR |
5854 | |
5855 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
c62c07ef DH |
5856 | conftest$ac_exeext conftest.$ac_ext |
5857 | ||
6dd7efa2 | 5858 | # Look for optional headers. |
c59de8f4 DH |
5859 | |
5860 | ||
c62c07ef | 5861 | |
a37c9dd1 MA |
5862 | |
5863 | for ac_header in sys/socket.h net/if_dl.h net/if6.h regex.h | |
c59de8f4 DH |
5864 | do |
5865 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4d24561a JR |
5866 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5867 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5869 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6dd7efa2 DH |
5870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5871 | fi | |
4d24561a JR |
5872 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5873 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5874 | echo "${ECHO_T}$ac_res" >&6; } | |
6dd7efa2 DH |
5875 | else |
5876 | # Is the header compilable? | |
4d24561a JR |
5877 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5878 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
6dd7efa2 DH |
5879 | cat >conftest.$ac_ext <<_ACEOF |
5880 | /* confdefs.h. */ | |
5881 | _ACEOF | |
5882 | cat confdefs.h >>conftest.$ac_ext | |
5883 | cat >>conftest.$ac_ext <<_ACEOF | |
5884 | /* end confdefs.h. */ | |
5885 | $ac_includes_default | |
c59de8f4 | 5886 | #include <$ac_header> |
6dd7efa2 DH |
5887 | _ACEOF |
5888 | rm -f conftest.$ac_objext | |
4d24561a JR |
5889 | if { (ac_try="$ac_compile" |
5890 | case "(($ac_try" in | |
5891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5892 | *) ac_try_echo=$ac_try;; | |
5893 | esac | |
5894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5895 | (eval "$ac_compile") 2>conftest.er1 | |
c9a1db5e | 5896 | ac_status=$? |
76c944da SK |
5897 | grep -v '^ *+' conftest.er1 >conftest.err |
5898 | rm -f conftest.er1 | |
5899 | cat conftest.err >&5 | |
c9a1db5e | 5900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d24561a JR |
5901 | (exit $ac_status); } && { |
5902 | test -z "$ac_c_werror_flag" || | |
5903 | test ! -s conftest.err | |
5904 | } && test -s conftest.$ac_objext; then | |
dd3276e3 | 5905 | ac_header_compiler=yes |
c9a1db5e MA |
5906 | else |
5907 | echo "$as_me: failed program was:" >&5 | |
5908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5909 | ||
4d24561a | 5910 | ac_header_compiler=no |
f085596f | 5911 | fi |
4d24561a JR |
5912 | |
5913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5914 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5915 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
dd3276e3 SK |
5916 | |
5917 | # Is the header present? | |
4d24561a JR |
5918 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5919 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
dd3276e3 | 5920 | cat >conftest.$ac_ext <<_ACEOF |
c62c07ef DH |
5921 | /* confdefs.h. */ |
5922 | _ACEOF | |
5923 | cat confdefs.h >>conftest.$ac_ext | |
5924 | cat >>conftest.$ac_ext <<_ACEOF | |
5925 | /* end confdefs.h. */ | |
dd3276e3 | 5926 | #include <$ac_header> |
c62c07ef | 5927 | _ACEOF |
4d24561a JR |
5928 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5929 | case "(($ac_try" in | |
5930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5931 | *) ac_try_echo=$ac_try;; | |
5932 | esac | |
5933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5934 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
c62c07ef DH |
5935 | ac_status=$? |
5936 | grep -v '^ *+' conftest.er1 >conftest.err | |
5937 | rm -f conftest.er1 | |
5938 | cat conftest.err >&5 | |
5939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
5940 | (exit $ac_status); } >/dev/null && { |
5941 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5942 | test ! -s conftest.err | |
5943 | }; then | |
dd3276e3 | 5944 | ac_header_preproc=yes |
f085596f | 5945 | else |
c62c07ef DH |
5946 | echo "$as_me: failed program was:" >&5 |
5947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5948 | ||
dd3276e3 | 5949 | ac_header_preproc=no |
c62c07ef | 5950 | fi |
4d24561a | 5951 | |
dd3276e3 | 5952 | rm -f conftest.err conftest.$ac_ext |
4d24561a JR |
5953 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5954 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
dd3276e3 SK |
5955 | |
5956 | # So? What about this header? | |
5957 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5958 | yes:no: ) | |
5959 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5960 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5961 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5962 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5963 | ac_header_preproc=yes | |
5964 | ;; | |
5965 | no:yes:* ) | |
5966 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5967 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5968 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5969 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5970 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5971 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5972 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5973 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5974 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5975 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5976 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5977 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4d24561a | 5978 | ( cat <<\_ASBOX |
dd3276e3 SK |
5979 | ## --------------------------------- ## |
5980 | ## Report this to dhcp-users@isc.org ## | |
5981 | ## --------------------------------- ## | |
5982 | _ASBOX | |
4d24561a | 5983 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
dd3276e3 SK |
5984 | ;; |
5985 | esac | |
4d24561a JR |
5986 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5987 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5988 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
dd3276e3 SK |
5989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5990 | else | |
5991 | eval "$as_ac_Header=\$ac_header_preproc" | |
76c944da | 5992 | fi |
4d24561a JR |
5993 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5994 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5995 | echo "${ECHO_T}$ac_res" >&6; } | |
dd3276e3 | 5996 | |
76c944da | 5997 | fi |
dd3276e3 | 5998 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ded99fc7 EH |
5999 | cat >>confdefs.h <<_ACEOF |
6000 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6001 | _ACEOF | |
237bfdc9 DH |
6002 | |
6003 | fi | |
7d714d6b | 6004 | |
4d24561a | 6005 | done |
7d714d6b | 6006 | |
4d24561a JR |
6007 | |
6008 | # find an MD5 library | |
6009 | { echo "$as_me:$LINENO: checking for library containing MD5_Init" >&5 | |
6010 | echo $ECHO_N "checking for library containing MD5_Init... $ECHO_C" >&6; } | |
6011 | if test "${ac_cv_search_MD5_Init+set}" = set; then | |
6012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6013 | else | |
6014 | ac_func_search_save_LIBS=$LIBS | |
6015 | cat >conftest.$ac_ext <<_ACEOF | |
035ed382 DH |
6016 | /* confdefs.h. */ |
6017 | _ACEOF | |
6018 | cat confdefs.h >>conftest.$ac_ext | |
6019 | cat >>conftest.$ac_ext <<_ACEOF | |
6020 | /* end confdefs.h. */ | |
6021 | ||
4d24561a JR |
6022 | /* Override any GCC internal prototype to avoid an error. |
6023 | Use char because int might match the return type of a GCC | |
6024 | builtin and then its argument prototype would still apply. */ | |
035ed382 DH |
6025 | #ifdef __cplusplus |
6026 | extern "C" | |
6027 | #endif | |
4d24561a | 6028 | char MD5_Init (); |
035ed382 DH |
6029 | int |
6030 | main () | |
6031 | { | |
4d24561a | 6032 | return MD5_Init (); |
035ed382 DH |
6033 | ; |
6034 | return 0; | |
6035 | } | |
6036 | _ACEOF | |
4d24561a JR |
6037 | for ac_lib in '' crypto; do |
6038 | if test -z "$ac_lib"; then | |
6039 | ac_res="none required" | |
6040 | else | |
6041 | ac_res=-l$ac_lib | |
6042 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6043 | fi | |
6044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6045 | if { (ac_try="$ac_link" | |
6046 | case "(($ac_try" in | |
6047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6048 | *) ac_try_echo=$ac_try;; | |
6049 | esac | |
6050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6051 | (eval "$ac_link") 2>conftest.er1 | |
035ed382 DH |
6052 | ac_status=$? |
6053 | grep -v '^ *+' conftest.er1 >conftest.err | |
6054 | rm -f conftest.er1 | |
6055 | cat conftest.err >&5 | |
6056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
6057 | (exit $ac_status); } && { |
6058 | test -z "$ac_c_werror_flag" || | |
6059 | test ! -s conftest.err | |
6060 | } && test -s conftest$ac_exeext && | |
6061 | $as_test_x conftest$ac_exeext; then | |
6062 | ac_cv_search_MD5_Init=$ac_res | |
035ed382 DH |
6063 | else |
6064 | echo "$as_me: failed program was:" >&5 | |
6065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6066 | ||
4d24561a | 6067 | |
ded99fc7 | 6068 | fi |
4d24561a JR |
6069 | |
6070 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6071 | conftest$ac_exeext | |
6072 | if test "${ac_cv_search_MD5_Init+set}" = set; then | |
6073 | break | |
6e999c3c | 6074 | fi |
4d24561a JR |
6075 | done |
6076 | if test "${ac_cv_search_MD5_Init+set}" = set; then | |
6077 | : | |
6078 | else | |
6079 | ac_cv_search_MD5_Init=no | |
6080 | fi | |
6081 | rm conftest.$ac_ext | |
6e999c3c SK |
6082 | LIBS=$ac_func_search_save_LIBS |
6083 | fi | |
4d24561a JR |
6084 | { echo "$as_me:$LINENO: result: $ac_cv_search_MD5_Init" >&5 |
6085 | echo "${ECHO_T}$ac_cv_search_MD5_Init" >&6; } | |
6086 | ac_res=$ac_cv_search_MD5_Init | |
6087 | if test "$ac_res" != no; then | |
6088 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6e999c3c SK |
6089 | |
6090 | fi | |
6091 | ||
4d24561a JR |
6092 | { echo "$as_me:$LINENO: checking for library containing MD5Init" >&5 |
6093 | echo $ECHO_N "checking for library containing MD5Init... $ECHO_C" >&6; } | |
6094 | if test "${ac_cv_search_MD5Init+set}" = set; then | |
6e999c3c SK |
6095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6096 | else | |
6097 | ac_func_search_save_LIBS=$LIBS | |
6098 | cat >conftest.$ac_ext <<_ACEOF | |
035ed382 DH |
6099 | /* confdefs.h. */ |
6100 | _ACEOF | |
6101 | cat confdefs.h >>conftest.$ac_ext | |
6102 | cat >>conftest.$ac_ext <<_ACEOF | |
6103 | /* end confdefs.h. */ | |
6104 | ||
4d24561a JR |
6105 | /* Override any GCC internal prototype to avoid an error. |
6106 | Use char because int might match the return type of a GCC | |
6107 | builtin and then its argument prototype would still apply. */ | |
035ed382 DH |
6108 | #ifdef __cplusplus |
6109 | extern "C" | |
6110 | #endif | |
4d24561a | 6111 | char MD5Init (); |
035ed382 DH |
6112 | int |
6113 | main () | |
6114 | { | |
4d24561a | 6115 | return MD5Init (); |
035ed382 DH |
6116 | ; |
6117 | return 0; | |
6118 | } | |
6119 | _ACEOF | |
4d24561a JR |
6120 | for ac_lib in '' crypto; do |
6121 | if test -z "$ac_lib"; then | |
6122 | ac_res="none required" | |
6123 | else | |
6124 | ac_res=-l$ac_lib | |
6125 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6126 | fi | |
6127 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6128 | if { (ac_try="$ac_link" | |
6129 | case "(($ac_try" in | |
6130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6131 | *) ac_try_echo=$ac_try;; | |
6132 | esac | |
6133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6134 | (eval "$ac_link") 2>conftest.er1 | |
035ed382 DH |
6135 | ac_status=$? |
6136 | grep -v '^ *+' conftest.er1 >conftest.err | |
6137 | rm -f conftest.er1 | |
6138 | cat conftest.err >&5 | |
6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
6140 | (exit $ac_status); } && { |
6141 | test -z "$ac_c_werror_flag" || | |
6142 | test ! -s conftest.err | |
6143 | } && test -s conftest$ac_exeext && | |
6144 | $as_test_x conftest$ac_exeext; then | |
6145 | ac_cv_search_MD5Init=$ac_res | |
035ed382 DH |
6146 | else |
6147 | echo "$as_me: failed program was:" >&5 | |
6148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6149 | ||
4d24561a | 6150 | |
ded99fc7 | 6151 | fi |
4d24561a JR |
6152 | |
6153 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6154 | conftest$ac_exeext | |
6155 | if test "${ac_cv_search_MD5Init+set}" = set; then | |
6156 | break | |
6157 | fi | |
6158 | done | |
6159 | if test "${ac_cv_search_MD5Init+set}" = set; then | |
6160 | : | |
6161 | else | |
6162 | ac_cv_search_MD5Init=no | |
6163 | fi | |
6164 | rm conftest.$ac_ext | |
6165 | LIBS=$ac_func_search_save_LIBS | |
6166 | fi | |
6167 | { echo "$as_me:$LINENO: result: $ac_cv_search_MD5Init" >&5 | |
6168 | echo "${ECHO_T}$ac_cv_search_MD5Init" >&6; } | |
6169 | ac_res=$ac_cv_search_MD5Init | |
6170 | if test "$ac_res" != no; then | |
6171 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6172 | ||
6173 | fi | |
6174 | ||
6175 | ||
6176 | # Solaris needs some libraries for functions | |
6177 | { echo "$as_me:$LINENO: checking for library containing socket" >&5 | |
6178 | echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } | |
6179 | if test "${ac_cv_search_socket+set}" = set; then | |
6180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6181 | else | |
6182 | ac_func_search_save_LIBS=$LIBS | |
6183 | cat >conftest.$ac_ext <<_ACEOF | |
7d714d6b DH |
6184 | /* confdefs.h. */ |
6185 | _ACEOF | |
6186 | cat confdefs.h >>conftest.$ac_ext | |
6187 | cat >>conftest.$ac_ext <<_ACEOF | |
6188 | /* end confdefs.h. */ | |
237bfdc9 | 6189 | |
4d24561a JR |
6190 | /* Override any GCC internal prototype to avoid an error. |
6191 | Use char because int might match the return type of a GCC | |
6192 | builtin and then its argument prototype would still apply. */ | |
7d714d6b DH |
6193 | #ifdef __cplusplus |
6194 | extern "C" | |
6195 | #endif | |
4d24561a | 6196 | char socket (); |
7d714d6b DH |
6197 | int |
6198 | main () | |
6199 | { | |
4d24561a | 6200 | return socket (); |
7d714d6b DH |
6201 | ; |
6202 | return 0; | |
6203 | } | |
6204 | _ACEOF | |
4d24561a JR |
6205 | for ac_lib in '' socket; do |
6206 | if test -z "$ac_lib"; then | |
6207 | ac_res="none required" | |
6208 | else | |
6209 | ac_res=-l$ac_lib | |
6210 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6211 | fi | |
6212 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6213 | if { (ac_try="$ac_link" | |
6214 | case "(($ac_try" in | |
6215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6216 | *) ac_try_echo=$ac_try;; | |
6217 | esac | |
6218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6219 | (eval "$ac_link") 2>conftest.er1 | |
7d714d6b DH |
6220 | ac_status=$? |
6221 | grep -v '^ *+' conftest.er1 >conftest.err | |
6222 | rm -f conftest.er1 | |
6223 | cat conftest.err >&5 | |
6224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
6225 | (exit $ac_status); } && { |
6226 | test -z "$ac_c_werror_flag" || | |
6227 | test ! -s conftest.err | |
6228 | } && test -s conftest$ac_exeext && | |
6229 | $as_test_x conftest$ac_exeext; then | |
6230 | ac_cv_search_socket=$ac_res | |
ded99fc7 | 6231 | else |
7d714d6b DH |
6232 | echo "$as_me: failed program was:" >&5 |
6233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6234 | ||
4d24561a | 6235 | |
7d714d6b | 6236 | fi |
4d24561a JR |
6237 | |
6238 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6239 | conftest$ac_exeext | |
6240 | if test "${ac_cv_search_socket+set}" = set; then | |
6241 | break | |
6242 | fi | |
6243 | done | |
6244 | if test "${ac_cv_search_socket+set}" = set; then | |
6245 | : | |
6246 | else | |
6247 | ac_cv_search_socket=no | |
6e999c3c | 6248 | fi |
4d24561a | 6249 | rm conftest.$ac_ext |
035ed382 DH |
6250 | LIBS=$ac_func_search_save_LIBS |
6251 | fi | |
4d24561a JR |
6252 | { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 |
6253 | echo "${ECHO_T}$ac_cv_search_socket" >&6; } | |
6254 | ac_res=$ac_cv_search_socket | |
6255 | if test "$ac_res" != no; then | |
6256 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
035ed382 DH |
6257 | |
6258 | fi | |
6259 | ||
4d24561a JR |
6260 | { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5 |
6261 | echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; } | |
6262 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
035ed382 DH |
6263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6264 | else | |
6265 | ac_func_search_save_LIBS=$LIBS | |
a36687f0 SK |
6266 | cat >conftest.$ac_ext <<_ACEOF |
6267 | /* confdefs.h. */ | |
6268 | _ACEOF | |
6269 | cat confdefs.h >>conftest.$ac_ext | |
6270 | cat >>conftest.$ac_ext <<_ACEOF | |
6271 | /* end confdefs.h. */ | |
6272 | ||
4d24561a JR |
6273 | /* Override any GCC internal prototype to avoid an error. |
6274 | Use char because int might match the return type of a GCC | |
6275 | builtin and then its argument prototype would still apply. */ | |
a36687f0 SK |
6276 | #ifdef __cplusplus |
6277 | extern "C" | |
6278 | #endif | |
4d24561a | 6279 | char inet_ntoa (); |
a36687f0 SK |
6280 | int |
6281 | main () | |
6282 | { | |
4d24561a | 6283 | return inet_ntoa (); |
a36687f0 SK |
6284 | ; |
6285 | return 0; | |
6286 | } | |
6287 | _ACEOF | |
4d24561a JR |
6288 | for ac_lib in '' nsl; do |
6289 | if test -z "$ac_lib"; then | |
6290 | ac_res="none required" | |
6291 | else | |
6292 | ac_res=-l$ac_lib | |
6293 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6294 | fi | |
6295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6296 | if { (ac_try="$ac_link" | |
6297 | case "(($ac_try" in | |
6298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6299 | *) ac_try_echo=$ac_try;; | |
6300 | esac | |
6301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6302 | (eval "$ac_link") 2>conftest.er1 | |
a36687f0 SK |
6303 | ac_status=$? |
6304 | grep -v '^ *+' conftest.er1 >conftest.err | |
6305 | rm -f conftest.er1 | |
6306 | cat conftest.err >&5 | |
6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
6308 | (exit $ac_status); } && { |
6309 | test -z "$ac_c_werror_flag" || | |
6310 | test ! -s conftest.err | |
6311 | } && test -s conftest$ac_exeext && | |
6312 | $as_test_x conftest$ac_exeext; then | |
6313 | ac_cv_search_inet_ntoa=$ac_res | |
a36687f0 SK |
6314 | else |
6315 | echo "$as_me: failed program was:" >&5 | |
6316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6317 | ||
4d24561a | 6318 | |
ded99fc7 | 6319 | fi |
4d24561a JR |
6320 | |
6321 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6322 | conftest$ac_exeext | |
6323 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
6324 | break | |
6325 | fi | |
6326 | done | |
6327 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
6328 | : | |
6329 | else | |
6330 | ac_cv_search_inet_ntoa=no | |
6331 | fi | |
6332 | rm conftest.$ac_ext | |
6333 | LIBS=$ac_func_search_save_LIBS | |
6334 | fi | |
6335 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5 | |
6336 | echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; } | |
6337 | ac_res=$ac_cv_search_inet_ntoa | |
6338 | if test "$ac_res" != no; then | |
6339 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6340 | ||
6341 | fi | |
6342 | ||
6343 | ||
6344 | { echo "$as_me:$LINENO: checking for library containing inet_aton" >&5 | |
6345 | echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; } | |
6346 | if test "${ac_cv_search_inet_aton+set}" = set; then | |
6347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6348 | else | |
6349 | ac_func_search_save_LIBS=$LIBS | |
6350 | cat >conftest.$ac_ext <<_ACEOF | |
c62c07ef DH |
6351 | /* confdefs.h. */ |
6352 | _ACEOF | |
6353 | cat confdefs.h >>conftest.$ac_ext | |
6354 | cat >>conftest.$ac_ext <<_ACEOF | |
6355 | /* end confdefs.h. */ | |
a36687f0 | 6356 | |
4d24561a JR |
6357 | /* Override any GCC internal prototype to avoid an error. |
6358 | Use char because int might match the return type of a GCC | |
6359 | builtin and then its argument prototype would still apply. */ | |
c62c07ef DH |
6360 | #ifdef __cplusplus |
6361 | extern "C" | |
6362 | #endif | |
7d714d6b | 6363 | char inet_aton (); |
c62c07ef DH |
6364 | int |
6365 | main () | |
6366 | { | |
4d24561a | 6367 | return inet_aton (); |
c62c07ef DH |
6368 | ; |
6369 | return 0; | |
6370 | } | |
6371 | _ACEOF | |
4d24561a JR |
6372 | for ac_lib in '' socket nsl; do |
6373 | if test -z "$ac_lib"; then | |
6374 | ac_res="none required" | |
6375 | else | |
6376 | ac_res=-l$ac_lib | |
6377 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6378 | fi | |
6379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6380 | if { (ac_try="$ac_link" | |
6381 | case "(($ac_try" in | |
6382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6383 | *) ac_try_echo=$ac_try;; | |
6384 | esac | |
6385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6386 | (eval "$ac_link") 2>conftest.er1 | |
c62c07ef DH |
6387 | ac_status=$? |
6388 | grep -v '^ *+' conftest.er1 >conftest.err | |
6389 | rm -f conftest.er1 | |
6390 | cat conftest.err >&5 | |
6391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
6392 | (exit $ac_status); } && { |
6393 | test -z "$ac_c_werror_flag" || | |
6394 | test ! -s conftest.err | |
6395 | } && test -s conftest$ac_exeext && | |
6396 | $as_test_x conftest$ac_exeext; then | |
6397 | ac_cv_search_inet_aton=$ac_res | |
f085596f | 6398 | else |
c62c07ef DH |
6399 | echo "$as_me: failed program was:" >&5 |
6400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6401 | ||
4d24561a | 6402 | |
7f45c65c | 6403 | fi |
4d24561a JR |
6404 | |
6405 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6406 | conftest$ac_exeext | |
6407 | if test "${ac_cv_search_inet_aton+set}" = set; then | |
6408 | break | |
ded99fc7 | 6409 | fi |
4d24561a JR |
6410 | done |
6411 | if test "${ac_cv_search_inet_aton+set}" = set; then | |
6412 | : | |
6413 | else | |
6414 | ac_cv_search_inet_aton=no | |
6415 | fi | |
6416 | rm conftest.$ac_ext | |
a36687f0 SK |
6417 | LIBS=$ac_func_search_save_LIBS |
6418 | fi | |
4d24561a JR |
6419 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5 |
6420 | echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; } | |
6421 | ac_res=$ac_cv_search_inet_aton | |
6422 | if test "$ac_res" != no; then | |
6423 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7d714d6b DH |
6424 | |
6425 | else | |
6426 | ||
6427 | cat >>confdefs.h <<\_ACEOF | |
6428 | #define NEED_INET_ATON 1 | |
6429 | _ACEOF | |
a36687f0 SK |
6430 | |
6431 | fi | |
6432 | ||
dd3276e3 | 6433 | |
7d714d6b | 6434 | # Check for a standalone regex library. |
4d24561a JR |
6435 | { echo "$as_me:$LINENO: checking for library containing regcomp" >&5 |
6436 | echo $ECHO_N "checking for library containing regcomp... $ECHO_C" >&6; } | |
7d714d6b | 6437 | if test "${ac_cv_search_regcomp+set}" = set; then |
a36687f0 SK |
6438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6439 | else | |
6440 | ac_func_search_save_LIBS=$LIBS | |
6d7bdffc MA |
6441 | cat >conftest.$ac_ext <<_ACEOF |
6442 | /* confdefs.h. */ | |
6443 | _ACEOF | |
6444 | cat confdefs.h >>conftest.$ac_ext | |
6445 | cat >>conftest.$ac_ext <<_ACEOF | |
6446 | /* end confdefs.h. */ | |
6447 | ||
4d24561a JR |
6448 | /* Override any GCC internal prototype to avoid an error. |
6449 | Use char because int might match the return type of a GCC | |
7d714d6b | 6450 | builtin and then its argument prototype would still apply. */ |
7d714d6b DH |
6451 | #ifdef __cplusplus |
6452 | extern "C" | |
6453 | #endif | |
7d714d6b DH |
6454 | char regcomp (); |
6455 | int | |
6456 | main () | |
6457 | { | |
4d24561a | 6458 | return regcomp (); |
7d714d6b DH |
6459 | ; |
6460 | return 0; | |
6461 | } | |
6462 | _ACEOF | |
4d24561a JR |
6463 | for ac_lib in '' regex; do |
6464 | if test -z "$ac_lib"; then | |
6465 | ac_res="none required" | |
6466 | else | |
6467 | ac_res=-l$ac_lib | |
6468 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6469 | fi | |
6470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6471 | if { (ac_try="$ac_link" | |
6472 | case "(($ac_try" in | |
6473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6474 | *) ac_try_echo=$ac_try;; | |
6475 | esac | |
6476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6477 | (eval "$ac_link") 2>conftest.er1 | |
7d714d6b DH |
6478 | ac_status=$? |
6479 | grep -v '^ *+' conftest.er1 >conftest.err | |
6480 | rm -f conftest.er1 | |
6481 | cat conftest.err >&5 | |
6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
6483 | (exit $ac_status); } && { |
6484 | test -z "$ac_c_werror_flag" || | |
6485 | test ! -s conftest.err | |
6486 | } && test -s conftest$ac_exeext && | |
6487 | $as_test_x conftest$ac_exeext; then | |
6488 | ac_cv_search_regcomp=$ac_res | |
ded99fc7 | 6489 | else |
7d714d6b DH |
6490 | echo "$as_me: failed program was:" >&5 |
6491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6492 | ||
6e999c3c SK |
6493 | |
6494 | fi | |
4d24561a JR |
6495 | |
6496 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6497 | conftest$ac_exeext | |
6498 | if test "${ac_cv_search_regcomp+set}" = set; then | |
6499 | break | |
6500 | fi | |
6501 | done | |
6502 | if test "${ac_cv_search_regcomp+set}" = set; then | |
6503 | : | |
dd3276e3 | 6504 | else |
4d24561a JR |
6505 | ac_cv_search_regcomp=no |
6506 | fi | |
6507 | rm conftest.$ac_ext | |
6508 | LIBS=$ac_func_search_save_LIBS | |
6509 | fi | |
6510 | { echo "$as_me:$LINENO: result: $ac_cv_search_regcomp" >&5 | |
6511 | echo "${ECHO_T}$ac_cv_search_regcomp" >&6; } | |
6512 | ac_res=$ac_cv_search_regcomp | |
6513 | if test "$ac_res" != no; then | |
6514 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
035ed382 | 6515 | |
ded99fc7 | 6516 | fi |
4d24561a JR |
6517 | |
6518 | ||
6519 | # For HP/UX we need -lipv6 for if_nametoindex, perhaps others. | |
6520 | { echo "$as_me:$LINENO: checking for library containing if_nametoindex" >&5 | |
6521 | echo $ECHO_N "checking for library containing if_nametoindex... $ECHO_C" >&6; } | |
6522 | if test "${ac_cv_search_if_nametoindex+set}" = set; then | |
6523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6524 | else | |
6525 | ac_func_search_save_LIBS=$LIBS | |
6526 | cat >conftest.$ac_ext <<_ACEOF | |
c62c07ef DH |
6527 | /* confdefs.h. */ |
6528 | _ACEOF | |
6529 | cat confdefs.h >>conftest.$ac_ext | |
6530 | cat >>conftest.$ac_ext <<_ACEOF | |
6531 | /* end confdefs.h. */ | |
c9a1db5e | 6532 | |
4d24561a JR |
6533 | /* Override any GCC internal prototype to avoid an error. |
6534 | Use char because int might match the return type of a GCC | |
6535 | builtin and then its argument prototype would still apply. */ | |
c62c07ef DH |
6536 | #ifdef __cplusplus |
6537 | extern "C" | |
6538 | #endif | |
6e999c3c | 6539 | char if_nametoindex (); |
c62c07ef DH |
6540 | int |
6541 | main () | |
6542 | { | |
4d24561a | 6543 | return if_nametoindex (); |
c62c07ef DH |
6544 | ; |
6545 | return 0; | |
6546 | } | |
6547 | _ACEOF | |
4d24561a JR |
6548 | for ac_lib in '' ipv6; do |
6549 | if test -z "$ac_lib"; then | |
6550 | ac_res="none required" | |
6551 | else | |
6552 | ac_res=-l$ac_lib | |
6553 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6554 | fi | |
6555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6556 | if { (ac_try="$ac_link" | |
6557 | case "(($ac_try" in | |
6558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6559 | *) ac_try_echo=$ac_try;; | |
6560 | esac | |
6561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6562 | (eval "$ac_link") 2>conftest.er1 | |
c62c07ef DH |
6563 | ac_status=$? |
6564 | grep -v '^ *+' conftest.er1 >conftest.err | |
6565 | rm -f conftest.er1 | |
6566 | cat conftest.err >&5 | |
6567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
6568 | (exit $ac_status); } && { |
6569 | test -z "$ac_c_werror_flag" || | |
6570 | test ! -s conftest.err | |
6571 | } && test -s conftest$ac_exeext && | |
6572 | $as_test_x conftest$ac_exeext; then | |
6573 | ac_cv_search_if_nametoindex=$ac_res | |
f085596f | 6574 | else |
c62c07ef DH |
6575 | echo "$as_me: failed program was:" >&5 |
6576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6577 | ||
4d24561a | 6578 | |
6e999c3c | 6579 | fi |
4d24561a JR |
6580 | |
6581 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6582 | conftest$ac_exeext | |
6583 | if test "${ac_cv_search_if_nametoindex+set}" = set; then | |
6584 | break | |
6e999c3c | 6585 | fi |
4d24561a JR |
6586 | done |
6587 | if test "${ac_cv_search_if_nametoindex+set}" = set; then | |
6588 | : | |
6589 | else | |
6590 | ac_cv_search_if_nametoindex=no | |
6591 | fi | |
6592 | rm conftest.$ac_ext | |
6e999c3c SK |
6593 | LIBS=$ac_func_search_save_LIBS |
6594 | fi | |
4d24561a JR |
6595 | { echo "$as_me:$LINENO: result: $ac_cv_search_if_nametoindex" >&5 |
6596 | echo "${ECHO_T}$ac_cv_search_if_nametoindex" >&6; } | |
6597 | ac_res=$ac_cv_search_if_nametoindex | |
6598 | if test "$ac_res" != no; then | |
6599 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
035ed382 DH |
6600 | |
6601 | fi | |
6e999c3c SK |
6602 | |
6603 | ||
6604 | # check for /dev/random (declares HAVE_DEV_RANDOM) | |
4d24561a JR |
6605 | { echo "$as_me:$LINENO: checking for /dev/random" >&5 |
6606 | echo $ECHO_N "checking for /dev/random... $ECHO_C" >&6; } | |
6e999c3c SK |
6607 | if test "${ac_cv_file__dev_random+set}" = set; then |
6608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6609 | else | |
6610 | test "$cross_compiling" = yes && | |
6611 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | |
6612 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
6613 | { (exit 1); exit 1; }; } | |
6614 | if test -r "/dev/random"; then | |
6615 | ac_cv_file__dev_random=yes | |
6616 | else | |
6617 | ac_cv_file__dev_random=no | |
c9a1db5e | 6618 | fi |
c9a1db5e | 6619 | fi |
4d24561a JR |
6620 | { echo "$as_me:$LINENO: result: $ac_cv_file__dev_random" >&5 |
6621 | echo "${ECHO_T}$ac_cv_file__dev_random" >&6; } | |
6e999c3c SK |
6622 | if test $ac_cv_file__dev_random = yes; then |
6623 | ||
6624 | cat >>confdefs.h <<\_ACEOF | |
6625 | #define HAVE_DEV_RANDOM 1 | |
6626 | _ACEOF | |
c9a1db5e MA |
6627 | |
6628 | fi | |
6629 | ||
a36687f0 | 6630 | |
6e999c3c | 6631 | # see if there is a "sa_len" field in our interface information structure |
4d24561a JR |
6632 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
6633 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } | |
6e999c3c | 6634 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
c9a1db5e MA |
6635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6636 | else | |
6e999c3c | 6637 | cat >conftest.$ac_ext <<_ACEOF |
c62c07ef DH |
6638 | /* confdefs.h. */ |
6639 | _ACEOF | |
6640 | cat confdefs.h >>conftest.$ac_ext | |
6641 | cat >>conftest.$ac_ext <<_ACEOF | |
6642 | /* end confdefs.h. */ | |
6e999c3c | 6643 | #include <sys/socket.h> |
c62c07ef | 6644 | |
c9a1db5e MA |
6645 | int |
6646 | main () | |
6647 | { | |
6e999c3c SK |
6648 | static struct sockaddr ac_aggr; |
6649 | if (ac_aggr.sa_len) | |
6650 | return 0; | |
c9a1db5e MA |
6651 | ; |
6652 | return 0; | |
6653 | } | |
6654 | _ACEOF | |
6e999c3c | 6655 | rm -f conftest.$ac_objext |
4d24561a JR |
6656 | if { (ac_try="$ac_compile" |
6657 | case "(($ac_try" in | |
6658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6659 | *) ac_try_echo=$ac_try;; | |
6660 | esac | |
6661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6662 | (eval "$ac_compile") 2>conftest.er1 | |
c9a1db5e MA |
6663 | ac_status=$? |
6664 | grep -v '^ *+' conftest.er1 >conftest.err | |
6665 | rm -f conftest.er1 | |
6666 | cat conftest.err >&5 | |
6667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
6668 | (exit $ac_status); } && { |
6669 | test -z "$ac_c_werror_flag" || | |
6670 | test ! -s conftest.err | |
6671 | } && test -s conftest.$ac_objext; then | |
6e999c3c | 6672 | ac_cv_member_struct_sockaddr_sa_len=yes |
c9a1db5e MA |
6673 | else |
6674 | echo "$as_me: failed program was:" >&5 | |
6675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6676 | ||
4d24561a | 6677 | cat >conftest.$ac_ext <<_ACEOF |
035ed382 DH |
6678 | /* confdefs.h. */ |
6679 | _ACEOF | |
6680 | cat confdefs.h >>conftest.$ac_ext | |
6681 | cat >>conftest.$ac_ext <<_ACEOF | |
6682 | /* end confdefs.h. */ | |
6e999c3c | 6683 | #include <sys/socket.h> |
dd3276e3 | 6684 | |
035ed382 DH |
6685 | int |
6686 | main () | |
6687 | { | |
6e999c3c SK |
6688 | static struct sockaddr ac_aggr; |
6689 | if (sizeof ac_aggr.sa_len) | |
6690 | return 0; | |
035ed382 DH |
6691 | ; |
6692 | return 0; | |
6693 | } | |
6694 | _ACEOF | |
6e999c3c | 6695 | rm -f conftest.$ac_objext |
4d24561a JR |
6696 | if { (ac_try="$ac_compile" |
6697 | case "(($ac_try" in | |
6698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6699 | *) ac_try_echo=$ac_try;; | |
6700 | esac | |
6701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6702 | (eval "$ac_compile") 2>conftest.er1 | |
035ed382 DH |
6703 | ac_status=$? |
6704 | grep -v '^ *+' conftest.er1 >conftest.err | |
6705 | rm -f conftest.er1 | |
6706 | cat conftest.err >&5 | |
6707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
6708 | (exit $ac_status); } && { |
6709 | test -z "$ac_c_werror_flag" || | |
6710 | test ! -s conftest.err | |
6711 | } && test -s conftest.$ac_objext; then | |
6e999c3c | 6712 | ac_cv_member_struct_sockaddr_sa_len=yes |
dd3276e3 | 6713 | else |
035ed382 DH |
6714 | echo "$as_me: failed program was:" >&5 |
6715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6716 | ||
4d24561a | 6717 | ac_cv_member_struct_sockaddr_sa_len=no |
035ed382 | 6718 | fi |
4d24561a JR |
6719 | |
6720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c9a1db5e | 6721 | fi |
4d24561a JR |
6722 | |
6723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6e999c3c | 6724 | fi |
4d24561a JR |
6725 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
6726 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
6e999c3c | 6727 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
76c944da SK |
6728 | |
6729 | cat >>confdefs.h <<\_ACEOF | |
6e999c3c | 6730 | #define HAVE_SA_LEN |
76c944da | 6731 | _ACEOF |
c9a1db5e MA |
6732 | |
6733 | fi | |
035ed382 DH |
6734 | |
6735 | ||
6e999c3c | 6736 | # figure out pointer size |
4d24561a JR |
6737 | { echo "$as_me:$LINENO: checking for struct iaddr *" >&5 |
6738 | echo $ECHO_N "checking for struct iaddr *... $ECHO_C" >&6; } | |
6e999c3c | 6739 | if test "${ac_cv_type_struct_iaddr_p+set}" = set; then |
035ed382 DH |
6740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6741 | else | |
6e999c3c | 6742 | cat >conftest.$ac_ext <<_ACEOF |
035ed382 DH |
6743 | /* confdefs.h. */ |
6744 | _ACEOF | |
6745 | cat confdefs.h >>conftest.$ac_ext | |
6746 | cat >>conftest.$ac_ext <<_ACEOF | |
6747 | /* end confdefs.h. */ | |
6748 | ||
6e999c3c SK |
6749 | #include "includes/inet.h" |
6750 | #include <stdio.h> | |
6751 | ||
6752 | ||
4d24561a | 6753 | typedef struct iaddr * ac__type_new_; |
035ed382 DH |
6754 | int |
6755 | main () | |
6756 | { | |
4d24561a | 6757 | if ((ac__type_new_ *) 0) |
6e999c3c | 6758 | return 0; |
4d24561a | 6759 | if (sizeof (ac__type_new_)) |
6e999c3c | 6760 | return 0; |
035ed382 DH |
6761 | ; |
6762 | return 0; | |
6763 | } | |
6764 | _ACEOF | |
6e999c3c | 6765 | rm -f conftest.$ac_objext |
4d24561a JR |
6766 | if { (ac_try="$ac_compile" |
6767 | case "(($ac_try" in | |
6768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6769 | *) ac_try_echo=$ac_try;; | |
6770 | esac | |
6771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6772 | (eval "$ac_compile") 2>conftest.er1 | |
035ed382 DH |
6773 | ac_status=$? |
6774 | grep -v '^ *+' conftest.er1 >conftest.err | |
6775 | rm -f conftest.er1 | |
6776 | cat conftest.err >&5 | |
6777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
6778 | (exit $ac_status); } && { |
6779 | test -z "$ac_c_werror_flag" || | |
6780 | test ! -s conftest.err | |
6781 | } && test -s conftest.$ac_objext; then | |
6e999c3c | 6782 | ac_cv_type_struct_iaddr_p=yes |
035ed382 DH |
6783 | else |
6784 | echo "$as_me: failed program was:" >&5 | |
6785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6786 | ||
4d24561a | 6787 | ac_cv_type_struct_iaddr_p=no |
035ed382 | 6788 | fi |
4d24561a JR |
6789 | |
6790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6e999c3c | 6791 | fi |
4d24561a JR |
6792 | { echo "$as_me:$LINENO: result: $ac_cv_type_struct_iaddr_p" >&5 |
6793 | echo "${ECHO_T}$ac_cv_type_struct_iaddr_p" >&6; } | |
6e999c3c | 6794 | |
4d24561a JR |
6795 | # The cast to long int works around a bug in the HP C Compiler |
6796 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6797 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6798 | # This bug is HP SR number 8606223364. | |
6799 | { echo "$as_me:$LINENO: checking size of struct iaddr *" >&5 | |
6800 | echo $ECHO_N "checking size of struct iaddr *... $ECHO_C" >&6; } | |
6e999c3c SK |
6801 | if test "${ac_cv_sizeof_struct_iaddr_p+set}" = set; then |
6802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6803 | else | |
6804 | if test "$cross_compiling" = yes; then | |
6805 | # Depending upon the size, compute the lo and hi bounds. | |
6806 | cat >conftest.$ac_ext <<_ACEOF | |
c59de8f4 DH |
6807 | /* confdefs.h. */ |
6808 | _ACEOF | |
6809 | cat confdefs.h >>conftest.$ac_ext | |
6810 | cat >>conftest.$ac_ext <<_ACEOF | |
6811 | /* end confdefs.h. */ | |
6812 | ||
6e999c3c SK |
6813 | #include "includes/inet.h" |
6814 | #include <stdio.h> | |
6815 | ||
6816 | ||
4d24561a | 6817 | typedef struct iaddr * ac__type_sizeof_; |
c59de8f4 DH |
6818 | int |
6819 | main () | |
6820 | { | |
4d24561a | 6821 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
6e999c3c SK |
6822 | test_array [0] = 0 |
6823 | ||
c59de8f4 DH |
6824 | ; |
6825 | return 0; | |
6826 | } | |
6827 | _ACEOF | |
6e999c3c | 6828 | rm -f conftest.$ac_objext |
4d24561a JR |
6829 | if { (ac_try="$ac_compile" |
6830 | case "(($ac_try" in | |
6831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6832 | *) ac_try_echo=$ac_try;; | |
6833 | esac | |
6834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6835 | (eval "$ac_compile") 2>conftest.er1 | |
c59de8f4 DH |
6836 | ac_status=$? |
6837 | grep -v '^ *+' conftest.er1 >conftest.err | |
6838 | rm -f conftest.er1 | |
6839 | cat conftest.err >&5 | |
6840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
6841 | (exit $ac_status); } && { |
6842 | test -z "$ac_c_werror_flag" || | |
6843 | test ! -s conftest.err | |
6844 | } && test -s conftest.$ac_objext; then | |
6e999c3c SK |
6845 | ac_lo=0 ac_mid=0 |
6846 | while :; do | |
6847 | cat >conftest.$ac_ext <<_ACEOF | |
6848 | /* confdefs.h. */ | |
6849 | _ACEOF | |
6850 | cat confdefs.h >>conftest.$ac_ext | |
6851 | cat >>conftest.$ac_ext <<_ACEOF | |
6852 | /* end confdefs.h. */ | |
6853 | ||
6854 | #include "includes/inet.h" | |
6855 | #include <stdio.h> | |
6856 | ||
6857 | ||
4d24561a | 6858 | typedef struct iaddr * ac__type_sizeof_; |
6e999c3c SK |
6859 | int |
6860 | main () | |
6861 | { | |
4d24561a | 6862 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
6e999c3c SK |
6863 | test_array [0] = 0 |
6864 | ||
6865 | ; | |
6866 | return 0; | |
6867 | } | |
6868 | _ACEOF | |
6869 | rm -f conftest.$ac_objext | |
4d24561a JR |
6870 | if { (ac_try="$ac_compile" |
6871 | case "(($ac_try" in | |
6872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6873 | *) ac_try_echo=$ac_try;; | |
6874 | esac | |
6875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6876 | (eval "$ac_compile") 2>conftest.er1 | |
035ed382 | 6877 | ac_status=$? |
6e999c3c SK |
6878 | grep -v '^ *+' conftest.er1 >conftest.err |
6879 | rm -f conftest.er1 | |
6880 | cat conftest.err >&5 | |
035ed382 | 6881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d24561a JR |
6882 | (exit $ac_status); } && { |
6883 | test -z "$ac_c_werror_flag" || | |
6884 | test ! -s conftest.err | |
6885 | } && test -s conftest.$ac_objext; then | |
6e999c3c | 6886 | ac_hi=$ac_mid; break |
c59de8f4 DH |
6887 | else |
6888 | echo "$as_me: failed program was:" >&5 | |
6889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6890 | ||
4d24561a JR |
6891 | ac_lo=`expr $ac_mid + 1` |
6892 | if test $ac_lo -le $ac_mid; then | |
6893 | ac_lo= ac_hi= | |
6894 | break | |
6895 | fi | |
6896 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
c59de8f4 | 6897 | fi |
4d24561a JR |
6898 | |
6899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6e999c3c | 6900 | done |
8f77e286 | 6901 | else |
6e999c3c SK |
6902 | echo "$as_me: failed program was:" >&5 |
6903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6904 | ||
4d24561a | 6905 | cat >conftest.$ac_ext <<_ACEOF |
8f77e286 DH |
6906 | /* confdefs.h. */ |
6907 | _ACEOF | |
6908 | cat confdefs.h >>conftest.$ac_ext | |
6909 | cat >>conftest.$ac_ext <<_ACEOF | |
6910 | /* end confdefs.h. */ | |
6911 | ||
6e999c3c SK |
6912 | #include "includes/inet.h" |
6913 | #include <stdio.h> | |
6914 | ||
6915 | ||
4d24561a | 6916 | typedef struct iaddr * ac__type_sizeof_; |
8f77e286 DH |
6917 | int |
6918 | main () | |
6919 | { | |
4d24561a | 6920 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
6e999c3c SK |
6921 | test_array [0] = 0 |
6922 | ||
8f77e286 DH |
6923 | ; |
6924 | return 0; | |
6925 | } | |
6926 | _ACEOF | |
6e999c3c | 6927 | rm -f conftest.$ac_objext |
4d24561a JR |
6928 | if { (ac_try="$ac_compile" |
6929 | case "(($ac_try" in | |
6930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6931 | *) ac_try_echo=$ac_try;; | |
6932 | esac | |
6933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6934 | (eval "$ac_compile") 2>conftest.er1 | |
8f77e286 DH |
6935 | ac_status=$? |
6936 | grep -v '^ *+' conftest.er1 >conftest.err | |
6937 | rm -f conftest.er1 | |
6938 | cat conftest.err >&5 | |
6939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
6940 | (exit $ac_status); } && { |
6941 | test -z "$ac_c_werror_flag" || | |
6942 | test ! -s conftest.err | |
6943 | } && test -s conftest.$ac_objext; then | |
6e999c3c SK |
6944 | ac_hi=-1 ac_mid=-1 |
6945 | while :; do | |
8f77e286 DH |
6946 | cat >conftest.$ac_ext <<_ACEOF |
6947 | /* confdefs.h. */ | |
6948 | _ACEOF | |
6949 | cat confdefs.h >>conftest.$ac_ext | |
6950 | cat >>conftest.$ac_ext <<_ACEOF | |
6951 | /* end confdefs.h. */ | |
6952 | ||
6e999c3c SK |
6953 | #include "includes/inet.h" |
6954 | #include <stdio.h> | |
6955 | ||
6956 | ||
4d24561a | 6957 | typedef struct iaddr * ac__type_sizeof_; |
8f77e286 DH |
6958 | int |
6959 | main () | |
6960 | { | |
4d24561a | 6961 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
6e999c3c SK |
6962 | test_array [0] = 0 |
6963 | ||
8f77e286 DH |
6964 | ; |
6965 | return 0; | |
6966 | } | |
6967 | _ACEOF | |
6e999c3c | 6968 | rm -f conftest.$ac_objext |
4d24561a JR |
6969 | if { (ac_try="$ac_compile" |
6970 | case "(($ac_try" in | |
6971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6972 | *) ac_try_echo=$ac_try;; | |
6973 | esac | |
6974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6975 | (eval "$ac_compile") 2>conftest.er1 | |
8f77e286 DH |
6976 | ac_status=$? |
6977 | grep -v '^ *+' conftest.er1 >conftest.err | |
6978 | rm -f conftest.er1 | |
6979 | cat conftest.err >&5 | |
6980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
6981 | (exit $ac_status); } && { |
6982 | test -z "$ac_c_werror_flag" || | |
6983 | test ! -s conftest.err | |
6984 | } && test -s conftest.$ac_objext; then | |
6e999c3c | 6985 | ac_lo=$ac_mid; break |
8f77e286 DH |
6986 | else |
6987 | echo "$as_me: failed program was:" >&5 | |
6988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6989 | ||
4d24561a JR |
6990 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6991 | if test $ac_mid -le $ac_hi; then | |
6992 | ac_lo= ac_hi= | |
6993 | break | |
6994 | fi | |
6995 | ac_mid=`expr 2 '*' $ac_mid` | |
8f77e286 | 6996 | fi |
4d24561a JR |
6997 | |
6998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6e999c3c | 6999 | done |
76c944da | 7000 | else |
6e999c3c SK |
7001 | echo "$as_me: failed program was:" >&5 |
7002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
76c944da | 7003 | |
4d24561a | 7004 | ac_lo= ac_hi= |
76c944da | 7005 | fi |
4d24561a JR |
7006 | |
7007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6e999c3c | 7008 | fi |
4d24561a JR |
7009 | |
7010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6e999c3c SK |
7011 | # Binary search between lo and hi bounds. |
7012 | while test "x$ac_lo" != "x$ac_hi"; do | |
7013 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
76c944da | 7014 | cat >conftest.$ac_ext <<_ACEOF |
c9a1db5e MA |
7015 | /* confdefs.h. */ |
7016 | _ACEOF | |
7017 | cat confdefs.h >>conftest.$ac_ext | |
7018 | cat >>conftest.$ac_ext <<_ACEOF | |
7019 | /* end confdefs.h. */ | |
7020 | ||
6e999c3c SK |
7021 | #include "includes/inet.h" |
7022 | #include <stdio.h> | |
7023 | ||
7024 | ||
4d24561a | 7025 | typedef struct iaddr * ac__type_sizeof_; |
c9a1db5e MA |
7026 | int |
7027 | main () | |
7028 | { | |
4d24561a | 7029 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
6e999c3c SK |
7030 | test_array [0] = 0 |
7031 | ||
c9a1db5e MA |
7032 | ; |
7033 | return 0; | |
7034 | } | |
7035 | _ACEOF | |
76c944da | 7036 | rm -f conftest.$ac_objext |
4d24561a JR |
7037 | if { (ac_try="$ac_compile" |
7038 | case "(($ac_try" in | |
7039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7040 | *) ac_try_echo=$ac_try;; | |
7041 | esac | |
7042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7043 | (eval "$ac_compile") 2>conftest.er1 | |
c9a1db5e MA |
7044 | ac_status=$? |
7045 | grep -v '^ *+' conftest.er1 >conftest.err | |
7046 | rm -f conftest.er1 | |
7047 | cat conftest.err >&5 | |
7048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
7049 | (exit $ac_status); } && { |
7050 | test -z "$ac_c_werror_flag" || | |
7051 | test ! -s conftest.err | |
7052 | } && test -s conftest.$ac_objext; then | |
6e999c3c | 7053 | ac_hi=$ac_mid |
c9a1db5e MA |
7054 | else |
7055 | echo "$as_me: failed program was:" >&5 | |
7056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7057 | ||
4d24561a | 7058 | ac_lo=`expr '(' $ac_mid ')' + 1` |
6e999c3c | 7059 | fi |
4d24561a JR |
7060 | |
7061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6e999c3c SK |
7062 | done |
7063 | case $ac_lo in | |
7064 | ?*) ac_cv_sizeof_struct_iaddr_p=$ac_lo;; | |
4d24561a JR |
7065 | '') if test "$ac_cv_type_struct_iaddr_p" = yes; then |
7066 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (struct iaddr *) | |
6e999c3c | 7067 | See \`config.log' for more details." >&5 |
4d24561a | 7068 | echo "$as_me: error: cannot compute sizeof (struct iaddr *) |
6e999c3c | 7069 | See \`config.log' for more details." >&2;} |
4d24561a JR |
7070 | { (exit 77); exit 77; }; } |
7071 | else | |
7072 | ac_cv_sizeof_struct_iaddr_p=0 | |
7073 | fi ;; | |
6e999c3c SK |
7074 | esac |
7075 | else | |
7076 | cat >conftest.$ac_ext <<_ACEOF | |
c9a1db5e MA |
7077 | /* confdefs.h. */ |
7078 | _ACEOF | |
7079 | cat confdefs.h >>conftest.$ac_ext | |
7080 | cat >>conftest.$ac_ext <<_ACEOF | |
7081 | /* end confdefs.h. */ | |
7082 | ||
6e999c3c SK |
7083 | #include "includes/inet.h" |
7084 | #include <stdio.h> | |
7085 | ||
7086 | ||
4d24561a JR |
7087 | typedef struct iaddr * ac__type_sizeof_; |
7088 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
7089 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6e999c3c SK |
7090 | #include <stdio.h> |
7091 | #include <stdlib.h> | |
c9a1db5e MA |
7092 | int |
7093 | main () | |
7094 | { | |
6e999c3c SK |
7095 | |
7096 | FILE *f = fopen ("conftest.val", "w"); | |
7097 | if (! f) | |
4d24561a JR |
7098 | return 1; |
7099 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
6e999c3c | 7100 | { |
4d24561a JR |
7101 | long int i = longval (); |
7102 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
7103 | return 1; | |
6e999c3c SK |
7104 | fprintf (f, "%ld\n", i); |
7105 | } | |
7106 | else | |
7107 | { | |
4d24561a JR |
7108 | unsigned long int i = ulongval (); |
7109 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
7110 | return 1; | |
6e999c3c SK |
7111 | fprintf (f, "%lu\n", i); |
7112 | } | |
4d24561a | 7113 | return ferror (f) || fclose (f) != 0; |
6e999c3c | 7114 | |
c9a1db5e MA |
7115 | ; |
7116 | return 0; | |
7117 | } | |
7118 | _ACEOF | |
6e999c3c | 7119 | rm -f conftest$ac_exeext |
4d24561a JR |
7120 | if { (ac_try="$ac_link" |
7121 | case "(($ac_try" in | |
7122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7123 | *) ac_try_echo=$ac_try;; | |
7124 | esac | |
7125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7126 | (eval "$ac_link") 2>&5 | |
035ed382 DH |
7127 | ac_status=$? |
7128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6e999c3c | 7129 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4d24561a JR |
7130 | { (case "(($ac_try" in |
7131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7132 | *) ac_try_echo=$ac_try;; | |
7133 | esac | |
7134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7135 | (eval "$ac_try") 2>&5 | |
035ed382 DH |
7136 | ac_status=$? |
7137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7138 | (exit $ac_status); }; }; then | |
6e999c3c | 7139 | ac_cv_sizeof_struct_iaddr_p=`cat conftest.val` |
fe5b0fdd | 7140 | else |
6e999c3c SK |
7141 | echo "$as_me: program exited with status $ac_status" >&5 |
7142 | echo "$as_me: failed program was:" >&5 | |
fe5b0fdd DH |
7143 | sed 's/^/| /' conftest.$ac_ext >&5 |
7144 | ||
6e999c3c | 7145 | ( exit $ac_status ) |
4d24561a JR |
7146 | if test "$ac_cv_type_struct_iaddr_p" = yes; then |
7147 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (struct iaddr *) | |
6e999c3c | 7148 | See \`config.log' for more details." >&5 |
4d24561a | 7149 | echo "$as_me: error: cannot compute sizeof (struct iaddr *) |
6e999c3c | 7150 | See \`config.log' for more details." >&2;} |
4d24561a JR |
7151 | { (exit 77); exit 77; }; } |
7152 | else | |
7153 | ac_cv_sizeof_struct_iaddr_p=0 | |
7154 | fi | |
273bfdc3 | 7155 | fi |
4d24561a | 7156 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fe5b0fdd | 7157 | fi |
6e999c3c | 7158 | rm -f conftest.val |
7d714d6b | 7159 | fi |
4d24561a JR |
7160 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_struct_iaddr_p" >&5 |
7161 | echo "${ECHO_T}$ac_cv_sizeof_struct_iaddr_p" >&6; } | |
7162 | ||
7163 | ||
7164 | ||
6e999c3c SK |
7165 | cat >>confdefs.h <<_ACEOF |
7166 | #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p | |
76c944da | 7167 | _ACEOF |
fe5b0fdd | 7168 | |
fe5b0fdd | 7169 | |
76c944da | 7170 | |
6e999c3c SK |
7171 | # Solaris does not have the msg_control or msg_controlen members in |
7172 | # in the msghdr structure unless you define: | |
7173 | # | |
7174 | # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__ | |
7175 | # | |
7176 | # See the "standards" man page for details. | |
7177 | # | |
7178 | # We check for the msg_control member, and if it is not found, we check | |
7179 | # again with the appropriate defines added to the CFLAGS. (In order to | |
7180 | # do this we have to remove the check from the cache, which is what the | |
7181 | # "unset" is for.) | |
4d24561a JR |
7182 | { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5 |
7183 | echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; } | |
6e999c3c | 7184 | if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then |
fe5b0fdd DH |
7185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7186 | else | |
76c944da | 7187 | cat >conftest.$ac_ext <<_ACEOF |
fe5b0fdd DH |
7188 | /* confdefs.h. */ |
7189 | _ACEOF | |
7190 | cat confdefs.h >>conftest.$ac_ext | |
7191 | cat >>conftest.$ac_ext <<_ACEOF | |
7192 | /* end confdefs.h. */ | |
7193 | ||
6e999c3c SK |
7194 | #include <sys/types.h> |
7195 | #include <sys/socket.h> | |
76c944da SK |
7196 | |
7197 | ||
fe5b0fdd DH |
7198 | int |
7199 | main () | |
7200 | { | |
6e999c3c SK |
7201 | static struct msghdr ac_aggr; |
7202 | if (ac_aggr.msg_control) | |
7203 | return 0; | |
fe5b0fdd DH |
7204 | ; |
7205 | return 0; | |
7206 | } | |
7207 | _ACEOF | |
76c944da | 7208 | rm -f conftest.$ac_objext |
4d24561a JR |
7209 | if { (ac_try="$ac_compile" |
7210 | case "(($ac_try" in | |
7211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7212 | *) ac_try_echo=$ac_try;; | |
7213 | esac | |
7214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7215 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
7216 | ac_status=$? |
7217 | grep -v '^ *+' conftest.er1 >conftest.err | |
7218 | rm -f conftest.er1 | |
7219 | cat conftest.err >&5 | |
7220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
7221 | (exit $ac_status); } && { |
7222 | test -z "$ac_c_werror_flag" || | |
7223 | test ! -s conftest.err | |
7224 | } && test -s conftest.$ac_objext; then | |
6e999c3c | 7225 | ac_cv_member_struct_msghdr_msg_control=yes |
fe5b0fdd DH |
7226 | else |
7227 | echo "$as_me: failed program was:" >&5 | |
7228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7229 | ||
4d24561a | 7230 | cat >conftest.$ac_ext <<_ACEOF |
fe5b0fdd DH |
7231 | /* confdefs.h. */ |
7232 | _ACEOF | |
7233 | cat confdefs.h >>conftest.$ac_ext | |
7234 | cat >>conftest.$ac_ext <<_ACEOF | |
7235 | /* end confdefs.h. */ | |
7236 | ||
6e999c3c SK |
7237 | #include <sys/types.h> |
7238 | #include <sys/socket.h> | |
76c944da SK |
7239 | |
7240 | ||
fe5b0fdd DH |
7241 | int |
7242 | main () | |
7243 | { | |
6e999c3c SK |
7244 | static struct msghdr ac_aggr; |
7245 | if (sizeof ac_aggr.msg_control) | |
7246 | return 0; | |
fe5b0fdd DH |
7247 | ; |
7248 | return 0; | |
7249 | } | |
7250 | _ACEOF | |
76c944da | 7251 | rm -f conftest.$ac_objext |
4d24561a JR |
7252 | if { (ac_try="$ac_compile" |
7253 | case "(($ac_try" in | |
7254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7255 | *) ac_try_echo=$ac_try;; | |
7256 | esac | |
7257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7258 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
7259 | ac_status=$? |
7260 | grep -v '^ *+' conftest.er1 >conftest.err | |
7261 | rm -f conftest.er1 | |
7262 | cat conftest.err >&5 | |
7263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4d24561a JR |
7264 | (exit $ac_status); } && { |
7265 | test -z "$ac_c_werror_flag" || | |
7266 | test ! -s conftest.err | |
7267 | } && test -s conftest.$ac_objext; then | |
6e999c3c SK |
7268 | ac_cv_member_struct_msghdr_msg_control=yes |
7269 | else | |
7270 | echo "$as_me: failed program was:" >&5 | |
7271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7272 | ||
4d24561a | 7273 | ac_cv_member_struct_msghdr_msg_control=no |
6e999c3c | 7274 | fi |
4d24561a JR |
7275 | |
7276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6e999c3c | 7277 | fi |
4d24561a JR |
7278 | |
7279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6e999c3c | 7280 | fi |
4d24561a JR |
7281 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5 |
7282 | echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; } | |
6e999c3c SK |
7283 | if test $ac_cv_member_struct_msghdr_msg_control = yes; then |
7284 | : | |
7285 | else | |
7286 | CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | |
7287 | CFLAGS="$CFLAGS -D__EXTENSIONS__" | |
7288 | unset ac_cv_member_struct_msghdr_msg_control | |
4d24561a JR |
7289 | { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5 |
7290 | echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; } | |
6e999c3c SK |
7291 | if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then |
7292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7293 | else | |
7294 | cat >conftest.$ac_ext <<_ACEOF | |
dd3276e3 SK |
7295 | /* confdefs.h. */ |
7296 | _ACEOF | |
7297 | cat confdefs.h >>conftest.$ac_ext | |
7298 | cat >>conftest.$ac_ext <<_ACEOF | |
7299 | /* end confdefs.h. */ | |
7300 | ||
6e999c3c SK |
7301 | #include <sys/types.h> |
7302 | #include <sys/socket.h> | |
dd3276e3 SK |
7303 | |
7304 | ||
dd3276e3 SK |
7305 | int |
7306 | main () | |
7307 | { | |
6e999c3c SK |
7308 | static struct msghdr ac_aggr; |
7309 | if (ac_aggr.msg_control) | |
7310 | return 0; | |
dd3276e3 SK |
7311 | ; |
7312 | return 0; | |
7313 | } | |
7314 | _ACEOF | |
7315 | rm -f conftest.$ac_objext | |
4d24561a JR |
7316 | if { (ac_try="$ac_compile" |
7317 | case "(($ac_try" in | |
7318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7319 | *) ac_try_echo=$ac_try;; | |
7320 | esac | |
7321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7322 | (eval "$ac_compile") 2>conftest.er1 | |
c62c07ef | 7323 | ac_status=$? |
dd3276e3 SK |
7324 | grep -v '^ *+' conftest.er1 >conftest.err |
7325 | rm -f conftest.er1 | |
7326 | cat conftest.err >&5 | |
c62c07ef | 7327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d24561a JR |
7328 | (exit $ac_status); } && { |
7329 | test -z "$ac_c_werror_flag" || | |
7330 | test ! -s conftest.err | |
7331 | } && test -s conftest.$ac_objext; then | |
6e999c3c | 7332 | ac_cv_member_struct_msghdr_msg_control=yes |
dd3276e3 SK |
7333 | else |
7334 | echo "$as_me: failed program was:" >&5 | |
7335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7336 | ||
4d24561a | 7337 | cat >conftest.$ac_ext <<_ACEOF |
dd3276e3 SK |
7338 | /* confdefs.h. */ |
7339 | _ACEOF | |
7340 | cat confdefs.h >>conftest.$ac_ext | |
7341 | cat >>conftest.$ac_ext <<_ACEOF | |
7342 | /* end confdefs.h. */ | |
7343 | ||
6e999c3c SK |
7344 | #include <sys/types.h> |
7345 | #include <sys/socket.h> | |
dd3276e3 SK |
7346 | |
7347 | ||
dd3276e3 SK |
7348 | int |
7349 | main () | |
7350 | { | |
6e999c3c SK |
7351 | static struct msghdr ac_aggr; |
7352 | if (sizeof ac_aggr.msg_control) | |
7353 | return 0; | |
dd3276e3 SK |
7354 | ; |
7355 | return 0; | |
7356 | } | |
7357 | _ACEOF | |
7358 | rm -f conftest.$ac_objext | |
4d24561a JR |
7359 | if { (ac_try="$ac_compile" |
7360 | case "(($ac_try" in | |
7361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7362 | *) ac_try_echo=$ac_try;; | |
7363 | esac | |
7364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7365 | (eval "$ac_compile") 2>conftest.er1 | |
c62c07ef | 7366 | ac_status=$? |
dd3276e3 SK |
7367 | grep -v '^ *+' conftest.er1 >conftest.err |
7368 | rm -f conftest.er1 | |
7369 | cat conftest.err >&5 | |
c62c07ef | 7370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d24561a JR |
7371 | (exit $ac_status); } && { |
7372 | test -z "$ac_c_werror_flag" || | |
7373 | test ! -s conftest.err | |
7374 | } && test -s conftest.$ac_objext; then | |
6e999c3c SK |
7375 | ac_cv_member_struct_msghdr_msg_control=yes |
7376 | else | |
7377 | echo "$as_me: failed program was:" >&5 | |
7378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
76c944da | 7379 | |
4d24561a | 7380 | ac_cv_member_struct_msghdr_msg_control=no |
6e999c3c | 7381 | fi |
4d24561a JR |
7382 | |
7383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6e999c3c | 7384 | fi |
4d24561a JR |
7385 | |
7386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c62c07ef | 7387 | fi |
4d24561a JR |
7388 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5 |
7389 | echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; } | |
dd3276e3 SK |
7390 | if test $ac_cv_member_struct_msghdr_msg_control = yes; then |
7391 | : | |
c62c07ef | 7392 | else |
dd3276e3 SK |
7393 | { { echo "$as_me:$LINENO: error: Missing msg_control member in |
7394 | msg_control structure." >&5 | |
7395 | echo "$as_me: error: Missing msg_control member in | |
7396 | msg_control structure." >&2;} | |
7397 | { (exit 1); exit 1; }; } | |
a36687f0 | 7398 | fi |
dd3276e3 | 7399 | |
06eb8bab | 7400 | |
c62c07ef | 7401 | fi |
8c816ebb | 7402 | |
fe5b0fdd | 7403 | |
c5b1ad9f DH |
7404 | # Append selected warning levels to CFLAGS before substitution (but after |
7405 | # AC_TRY_COMPILE & etc). | |
7406 | CFLAGS="$CFLAGS $STD_CWARNINGS" | |
7407 | ||
4d24561a JR |
7408 | ac_config_files="$ac_config_files Makefile client/Makefile common/Makefile common/tests/Makefile dhcpctl/Makefile dst/Makefile includes/Makefile minires/Makefile omapip/Makefile relay/Makefile server/Makefile tests/Makefile" |
7409 | ||
fe5b0fdd DH |
7410 | cat >confcache <<\_ACEOF |
7411 | # This file is a shell script that caches the results of configure | |
7412 | # tests run on this system so they can be shared between configure | |
7413 | # scripts and configure runs, see configure's option --config-cache. | |
7414 | # It is not useful on other systems. If it contains results you don't | |
7415 | # want to keep, you may remove or edit it. | |
7416 | # | |
7417 | # config.status only pays attention to the cache file if you give it | |
7418 | # the --recheck option to rerun configure. | |
7419 | # | |
7420 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7421 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7422 | # following values. | |
7423 | ||
7424 | _ACEOF | |
7425 | ||
7426 | # The following way of writing the cache mishandles newlines in values, | |
7427 | # but we know of no workaround that is simple, portable, and efficient. | |
4d24561a | 7428 | # So, we kill variables containing newlines. |
fe5b0fdd DH |
7429 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7430 | # and sets the high bit in the cache file unless we assign to the vars. | |
4d24561a JR |
7431 | ( |
7432 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7433 | eval ac_val=\$$ac_var | |
7434 | case $ac_val in #( | |
7435 | *${as_nl}*) | |
7436 | case $ac_var in #( | |
7437 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
7438 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7439 | esac | |
7440 | case $ac_var in #( | |
7441 | _ | IFS | as_nl) ;; #( | |
7442 | *) $as_unset $ac_var ;; | |
7443 | esac ;; | |
7444 | esac | |
7445 | done | |
7446 | ||
fe5b0fdd | 7447 | (set) 2>&1 | |
4d24561a JR |
7448 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7449 | *${as_nl}ac_space=\ *) | |
fe5b0fdd DH |
7450 | # `set' does not quote correctly, so add quotes (double-quote |
7451 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7452 | sed -n \ | |
7453 | "s/'/'\\\\''/g; | |
7454 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4d24561a | 7455 | ;; #( |
fe5b0fdd DH |
7456 | *) |
7457 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4d24561a | 7458 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
fe5b0fdd | 7459 | ;; |
4d24561a JR |
7460 | esac | |
7461 | sort | |
7462 | ) | | |
fe5b0fdd | 7463 | sed ' |
4d24561a | 7464 | /^ac_cv_env_/b end |
fe5b0fdd | 7465 | t clear |
4d24561a | 7466 | :clear |
fe5b0fdd DH |
7467 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7468 | t end | |
4d24561a JR |
7469 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7470 | :end' >>confcache | |
7471 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7472 | if test -w "$cache_file"; then | |
7473 | test "x$cache_file" != "x/dev/null" && | |
7474 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
7475 | echo "$as_me: updating cache $cache_file" >&6;} | |
fe5b0fdd | 7476 | cat confcache >$cache_file |
d758ad8c | 7477 | else |
4d24561a JR |
7478 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
7479 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
d758ad8c | 7480 | fi |
48ceb859 | 7481 | fi |
fe5b0fdd DH |
7482 | rm -f confcache |
7483 | ||
7484 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7485 | # Let make expand exec_prefix. | |
7486 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7487 | ||
7488 | DEFS=-DHAVE_CONFIG_H | |
7489 | ||
7490 | ac_libobjs= | |
7491 | ac_ltlibobjs= | |
7492 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7493 | # 1. Remove the extension, and $U if already installed. | |
4d24561a JR |
7494 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7495 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
7496 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7497 | # will be set to the directory where LIBOBJS objects are built. | |
7498 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7499 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
fe5b0fdd DH |
7500 | done |
7501 | LIBOBJS=$ac_libobjs | |
7502 | ||
7503 | LTLIBOBJS=$ac_ltlibobjs | |
7504 | ||
7505 | ||
fc3ebe53 DH |
7506 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
7507 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
7508 | Usually this means the macro was only invoked conditionally." >&5 | |
7509 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
7510 | Usually this means the macro was only invoked conditionally." >&2;} | |
7511 | { (exit 1); exit 1; }; } | |
7512 | fi | |
7513 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
7514 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
7515 | Usually this means the macro was only invoked conditionally." >&5 | |
7516 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
7517 | Usually this means the macro was only invoked conditionally." >&2;} | |
7518 | { (exit 1); exit 1; }; } | |
7519 | fi | |
48ceb859 | 7520 | |
fe5b0fdd DH |
7521 | : ${CONFIG_STATUS=./config.status} |
7522 | ac_clean_files_save=$ac_clean_files | |
7523 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7524 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
7525 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7526 | cat >$CONFIG_STATUS <<_ACEOF | |
7527 | #! $SHELL | |
7528 | # Generated by $as_me. | |
7529 | # Run this file to recreate the current configuration. | |
7530 | # Compiler output produced by configure, useful for debugging | |
7531 | # configure, is in config.log if it exists. | |
343729b9 | 7532 | |
fe5b0fdd DH |
7533 | debug=false |
7534 | ac_cs_recheck=false | |
7535 | ac_cs_silent=false | |
7536 | SHELL=\${CONFIG_SHELL-$SHELL} | |
7537 | _ACEOF | |
7538 | ||
7539 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7540 | ## --------------------- ## | |
7541 | ## M4sh Initialization. ## | |
7542 | ## --------------------- ## | |
7543 | ||
4d24561a JR |
7544 | # Be more Bourne compatible |
7545 | DUALCASE=1; export DUALCASE # for MKS sh | |
fe5b0fdd DH |
7546 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
7547 | emulate sh | |
7548 | NULLCMD=: | |
7549 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
7550 | # is contrary to our usage. Disable this feature. | |
7551 | alias -g '${1+"$@"}'='"$@"' | |
4d24561a JR |
7552 | setopt NO_GLOB_SUBST |
7553 | else | |
7554 | case `(set -o) 2>/dev/null` in | |
7555 | *posix*) set -o posix ;; | |
7556 | esac | |
7557 | ||
7558 | fi | |
7559 | ||
7560 | ||
7561 | ||
7562 | ||
7563 | # PATH needs CR | |
7564 | # Avoid depending upon Character Ranges. | |
7565 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7566 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7567 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7568 | as_cr_digits='0123456789' | |
7569 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7570 | ||
7571 | # The user is always right. | |
7572 | if test "${PATH_SEPARATOR+set}" != set; then | |
7573 | echo "#! /bin/sh" >conf$$.sh | |
7574 | echo "exit 0" >>conf$$.sh | |
7575 | chmod +x conf$$.sh | |
7576 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7577 | PATH_SEPARATOR=';' | |
7578 | else | |
7579 | PATH_SEPARATOR=: | |
7580 | fi | |
7581 | rm -f conf$$.sh | |
6057415f | 7582 | fi |
fe5b0fdd | 7583 | |
fe5b0fdd DH |
7584 | # Support unset when possible. |
7585 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7586 | as_unset=unset | |
7587 | else | |
7588 | as_unset=false | |
d758ad8c TL |
7589 | fi |
7590 | ||
fe5b0fdd | 7591 | |
4d24561a JR |
7592 | # IFS |
7593 | # We need space, tab and new line, in precisely that order. Quoting is | |
7594 | # there to prevent editors from complaining about space-tab. | |
7595 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7596 | # splitting by setting IFS to empty value.) | |
7597 | as_nl=' | |
7598 | ' | |
7599 | IFS=" "" $as_nl" | |
7600 | ||
7601 | # Find who we are. Look in the path if we contain no directory separator. | |
7602 | case $0 in | |
7603 | *[\\/]* ) as_myself=$0 ;; | |
7604 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7605 | for as_dir in $PATH | |
7606 | do | |
7607 | IFS=$as_save_IFS | |
7608 | test -z "$as_dir" && as_dir=. | |
7609 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7610 | done | |
7611 | IFS=$as_save_IFS | |
7612 | ||
7613 | ;; | |
7614 | esac | |
7615 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7616 | # in which case we are not to be found in the path. | |
7617 | if test "x$as_myself" = x; then | |
7618 | as_myself=$0 | |
7619 | fi | |
7620 | if test ! -f "$as_myself"; then | |
7621 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7622 | { (exit 1); exit 1; } | |
7623 | fi | |
7624 | ||
fe5b0fdd | 7625 | # Work around bugs in pre-3.0 UWIN ksh. |
4d24561a JR |
7626 | for as_var in ENV MAIL MAILPATH |
7627 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
7628 | done | |
fe5b0fdd DH |
7629 | PS1='$ ' |
7630 | PS2='> ' | |
7631 | PS4='+ ' | |
7632 | ||
7633 | # NLS nuisances. | |
7634 | for as_var in \ | |
7635 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
7636 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
7637 | LC_TELEPHONE LC_TIME | |
7638 | do | |
7639 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
7640 | eval $as_var=C; export $as_var | |
7641 | else | |
4d24561a | 7642 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
fe5b0fdd | 7643 | fi |
7d3bc4e5 | 7644 | done |
8c816ebb | 7645 | |
fe5b0fdd | 7646 | # Required to use basename. |
4d24561a JR |
7647 | if expr a : '\(a\)' >/dev/null 2>&1 && |
7648 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fe5b0fdd DH |
7649 | as_expr=expr |
7650 | else | |
7651 | as_expr=false | |
7652 | fi | |
7653 | ||
4d24561a | 7654 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fe5b0fdd DH |
7655 | as_basename=basename |
7656 | else | |
7657 | as_basename=false | |
7658 | fi | |
7659 | ||
7660 | ||
7661 | # Name of the executable. | |
4d24561a | 7662 | as_me=`$as_basename -- "$0" || |
fe5b0fdd DH |
7663 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7664 | X"$0" : 'X\(//\)$' \| \ | |
4d24561a | 7665 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 7666 | echo X/"$0" | |
4d24561a JR |
7667 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
7668 | s//\1/ | |
7669 | q | |
7670 | } | |
7671 | /^X\/\(\/\/\)$/{ | |
7672 | s//\1/ | |
7673 | q | |
7674 | } | |
7675 | /^X\/\(\/\).*/{ | |
7676 | s//\1/ | |
7677 | q | |
7678 | } | |
7679 | s/.*/./; q'` | |
7680 | ||
7681 | # CDPATH. | |
7682 | $as_unset CDPATH | |
7683 | ||
7684 | ||
fe5b0fdd DH |
7685 | |
7686 | as_lineno_1=$LINENO | |
7687 | as_lineno_2=$LINENO | |
7688 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
4d24561a | 7689 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
fe5b0fdd DH |
7690 | |
7691 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
7692 | # uniformly replaced by the line number. The first 'sed' inserts a | |
4d24561a JR |
7693 | # line-number line after each line using $LINENO; the second 'sed' |
7694 | # does the real work. The second script uses 'N' to pair each | |
7695 | # line-number line with the line containing $LINENO, and appends | |
7696 | # trailing '-' during substitution so that $LINENO is not a special | |
7697 | # case at line end. | |
fe5b0fdd | 7698 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
4d24561a JR |
7699 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
7700 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
7701 | sed -n ' | |
7702 | p | |
7703 | /[$]LINENO/= | |
7704 | ' <$as_myself | | |
fe5b0fdd | 7705 | sed ' |
4d24561a JR |
7706 | s/[$]LINENO.*/&-/ |
7707 | t lineno | |
7708 | b | |
7709 | :lineno | |
fe5b0fdd | 7710 | N |
4d24561a JR |
7711 | :loop |
7712 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
fe5b0fdd | 7713 | t loop |
4d24561a | 7714 | s/-\n.*// |
fe5b0fdd | 7715 | ' >$as_me.lineno && |
4d24561a JR |
7716 | chmod +x "$as_me.lineno" || |
7717 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
fe5b0fdd DH |
7718 | { (exit 1); exit 1; }; } |
7719 | ||
7720 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7721 | # (the dirname of $[0] is not the place where we might find the | |
4d24561a JR |
7722 | # original and so on. Autoconf is especially sensitive to this). |
7723 | . "./$as_me.lineno" | |
fe5b0fdd DH |
7724 | # Exit status is that of the last command. |
7725 | exit | |
7726 | } | |
7727 | ||
7728 | ||
4d24561a JR |
7729 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7730 | as_dirname=dirname | |
7731 | else | |
7732 | as_dirname=false | |
7733 | fi | |
7734 | ||
7735 | ECHO_C= ECHO_N= ECHO_T= | |
7736 | case `echo -n x` in | |
7737 | -n*) | |
7738 | case `echo 'x\c'` in | |
7739 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7740 | *) ECHO_C='\c';; | |
7741 | esac;; | |
7742 | *) | |
7743 | ECHO_N='-n';; | |
fe5b0fdd DH |
7744 | esac |
7745 | ||
4d24561a JR |
7746 | if expr a : '\(a\)' >/dev/null 2>&1 && |
7747 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fe5b0fdd DH |
7748 | as_expr=expr |
7749 | else | |
7750 | as_expr=false | |
7751 | fi | |
7752 | ||
7753 | rm -f conf$$ conf$$.exe conf$$.file | |
4d24561a JR |
7754 | if test -d conf$$.dir; then |
7755 | rm -f conf$$.dir/conf$$.file | |
7756 | else | |
7757 | rm -f conf$$.dir | |
7758 | mkdir conf$$.dir | |
7759 | fi | |
fe5b0fdd DH |
7760 | echo >conf$$.file |
7761 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
4d24561a JR |
7762 | as_ln_s='ln -s' |
7763 | # ... but there are two gotchas: | |
7764 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7765 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7766 | # In both cases, we have to default to `cp -p'. | |
7767 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
fe5b0fdd DH |
7768 | as_ln_s='cp -p' |
7769 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7770 | as_ln_s=ln | |
7771 | else | |
7772 | as_ln_s='cp -p' | |
7773 | fi | |
4d24561a JR |
7774 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7775 | rmdir conf$$.dir 2>/dev/null | |
fe5b0fdd DH |
7776 | |
7777 | if mkdir -p . 2>/dev/null; then | |
7778 | as_mkdir_p=: | |
7779 | else | |
7780 | test -d ./-p && rmdir ./-p | |
7781 | as_mkdir_p=false | |
d758ad8c | 7782 | fi |
2ac5bde5 | 7783 | |
4d24561a JR |
7784 | if test -x / >/dev/null 2>&1; then |
7785 | as_test_x='test -x' | |
7786 | else | |
7787 | if ls -dL / >/dev/null 2>&1; then | |
7788 | as_ls_L_option=L | |
7789 | else | |
7790 | as_ls_L_option= | |
7791 | fi | |
7792 | as_test_x=' | |
7793 | eval sh -c '\'' | |
7794 | if test -d "$1"; then | |
7795 | test -d "$1/."; | |
7796 | else | |
7797 | case $1 in | |
7798 | -*)set "./$1";; | |
7799 | esac; | |
7800 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
7801 | ???[sx]*):;;*)false;;esac;fi | |
7802 | '\'' sh | |
7803 | ' | |
7804 | fi | |
7805 | as_executable_p=$as_test_x | |
fe5b0fdd DH |
7806 | |
7807 | # Sed expression to map a string onto a valid CPP name. | |
7808 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7809 | ||
7810 | # Sed expression to map a string onto a valid variable name. | |
7811 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7812 | ||
7813 | ||
7814 | exec 6>&1 | |
7815 | ||
4d24561a | 7816 | # Save the log message, to keep $[0] and so on meaningful, and to |
fe5b0fdd | 7817 | # report actual input values of CONFIG_FILES etc. instead of their |
4d24561a JR |
7818 | # values after options handling. |
7819 | ac_log=" | |
05a3a6f4 | 7820 | This file was extended by DHCP $as_me 4.1.0, which was |
4d24561a | 7821 | generated by GNU Autoconf 2.61. Invocation command line was |
fe5b0fdd DH |
7822 | |
7823 | CONFIG_FILES = $CONFIG_FILES | |
7824 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7825 | CONFIG_LINKS = $CONFIG_LINKS | |
7826 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7827 | $ $0 $@ | |
7828 | ||
4d24561a JR |
7829 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7830 | " | |
7831 | ||
fe5b0fdd DH |
7832 | _ACEOF |
7833 | ||
4d24561a | 7834 | cat >>$CONFIG_STATUS <<_ACEOF |
fe5b0fdd | 7835 | # Files that config.status was made for. |
4d24561a JR |
7836 | config_files="$ac_config_files" |
7837 | config_headers="$ac_config_headers" | |
7838 | config_commands="$ac_config_commands" | |
7d714d6b | 7839 | |
4d24561a | 7840 | _ACEOF |
fe5b0fdd DH |
7841 | |
7842 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7843 | ac_cs_usage="\ | |
7844 | \`$as_me' instantiates files from templates according to the | |
7845 | current configuration. | |
7846 | ||
7847 | Usage: $0 [OPTIONS] [FILE]... | |
7848 | ||
7849 | -h, --help print this help, then exit | |
4d24561a | 7850 | -V, --version print version number and configuration settings, then exit |
fe5b0fdd DH |
7851 | -q, --quiet do not print progress messages |
7852 | -d, --debug don't remove temporary files | |
7853 | --recheck update $as_me by reconfiguring in the same conditions | |
7854 | --file=FILE[:TEMPLATE] | |
7855 | instantiate the configuration file FILE | |
7856 | --header=FILE[:TEMPLATE] | |
7857 | instantiate the configuration header FILE | |
7858 | ||
7859 | Configuration files: | |
7860 | $config_files | |
7861 | ||
7862 | Configuration headers: | |
7863 | $config_headers | |
7864 | ||
fc3ebe53 DH |
7865 | Configuration commands: |
7866 | $config_commands | |
7867 | ||
fe5b0fdd | 7868 | Report bugs to <bug-autoconf@gnu.org>." |
7d714d6b | 7869 | |
4d24561a | 7870 | _ACEOF |
fe5b0fdd DH |
7871 | cat >>$CONFIG_STATUS <<_ACEOF |
7872 | ac_cs_version="\\ | |
05a3a6f4 | 7873 | DHCP config.status 4.1.0 |
4d24561a JR |
7874 | configured by $0, generated by GNU Autoconf 2.61, |
7875 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
fe5b0fdd | 7876 | |
4d24561a | 7877 | Copyright (C) 2006 Free Software Foundation, Inc. |
fe5b0fdd DH |
7878 | This config.status script is free software; the Free Software Foundation |
7879 | gives unlimited permission to copy, distribute and modify it." | |
4d24561a JR |
7880 | |
7881 | ac_pwd='$ac_pwd' | |
7882 | srcdir='$srcdir' | |
7883 | INSTALL='$INSTALL' | |
fe5b0fdd DH |
7884 | _ACEOF |
7885 | ||
7886 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7887 | # If no file are specified by the user, then we need to provide default | |
7888 | # value. By we need to know if files were specified by the user. | |
7889 | ac_need_defaults=: | |
7890 | while test $# != 0 | |
7891 | do | |
7892 | case $1 in | |
7893 | --*=*) | |
4d24561a JR |
7894 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7895 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
fe5b0fdd DH |
7896 | ac_shift=: |
7897 | ;; | |
4d24561a | 7898 | *) |
fe5b0fdd DH |
7899 | ac_option=$1 |
7900 | ac_optarg=$2 | |
7901 | ac_shift=shift | |
7902 | ;; | |
7903 | esac | |
7904 | ||
7905 | case $ac_option in | |
7906 | # Handling of the options. | |
7907 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
7908 | ac_cs_recheck=: ;; | |
4d24561a JR |
7909 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7910 | echo "$ac_cs_version"; exit ;; | |
7911 | --debug | --debu | --deb | --de | --d | -d ) | |
fe5b0fdd DH |
7912 | debug=: ;; |
7913 | --file | --fil | --fi | --f ) | |
7914 | $ac_shift | |
7915 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
7916 | ac_need_defaults=false;; | |
7917 | --header | --heade | --head | --hea ) | |
7918 | $ac_shift | |
7919 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
7920 | ac_need_defaults=false;; | |
4d24561a JR |
7921 | --he | --h) |
7922 | # Conflict between --help and --header | |
7923 | { echo "$as_me: error: ambiguous option: $1 | |
7924 | Try \`$0 --help' for more information." >&2 | |
7925 | { (exit 1); exit 1; }; };; | |
7926 | --help | --hel | -h ) | |
7927 | echo "$ac_cs_usage"; exit ;; | |
fe5b0fdd DH |
7928 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7929 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7930 | ac_cs_silent=: ;; | |
7931 | ||
7932 | # This is an error. | |
4d24561a JR |
7933 | -*) { echo "$as_me: error: unrecognized option: $1 |
7934 | Try \`$0 --help' for more information." >&2 | |
fe5b0fdd DH |
7935 | { (exit 1); exit 1; }; } ;; |
7936 | ||
4d24561a JR |
7937 | *) ac_config_targets="$ac_config_targets $1" |
7938 | ac_need_defaults=false ;; | |
fe5b0fdd DH |
7939 | |
7940 | esac | |
7941 | shift | |
7942 | done | |
7943 | ||
7944 | ac_configure_extra_args= | |
7945 | ||
7946 | if $ac_cs_silent; then | |
7947 | exec 6>/dev/null | |
7948 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7949 | fi | |
7950 | ||
7951 | _ACEOF | |
7952 | cat >>$CONFIG_STATUS <<_ACEOF | |
7953 | if \$ac_cs_recheck; then | |
4d24561a JR |
7954 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
7955 | CONFIG_SHELL=$SHELL | |
7956 | export CONFIG_SHELL | |
7957 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe5b0fdd DH |
7958 | fi |
7959 | ||
7960 | _ACEOF | |
4d24561a JR |
7961 | cat >>$CONFIG_STATUS <<\_ACEOF |
7962 | exec 5>>config.log | |
7963 | { | |
7964 | echo | |
7965 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7966 | ## Running $as_me. ## | |
7967 | _ASBOX | |
7968 | echo "$ac_log" | |
7969 | } >&5 | |
fe5b0fdd | 7970 | |
4d24561a | 7971 | _ACEOF |
fc3ebe53 DH |
7972 | cat >>$CONFIG_STATUS <<_ACEOF |
7973 | # | |
4d24561a | 7974 | # INIT-COMMANDS |
fc3ebe53 | 7975 | # |
fc3ebe53 | 7976 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
fe5b0fdd | 7977 | |
fc3ebe53 | 7978 | _ACEOF |
fe5b0fdd | 7979 | |
7d714d6b | 7980 | cat >>$CONFIG_STATUS <<\_ACEOF |
4d24561a JR |
7981 | |
7982 | # Handling of arguments. | |
fe5b0fdd DH |
7983 | for ac_config_target in $ac_config_targets |
7984 | do | |
4d24561a JR |
7985 | case $ac_config_target in |
7986 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
7987 | "includes/config.h") CONFIG_HEADERS="$CONFIG_HEADERS includes/config.h" ;; | |
7988 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7989 | "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;; | |
7990 | "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; | |
7991 | "common/tests/Makefile") CONFIG_FILES="$CONFIG_FILES common/tests/Makefile" ;; | |
7992 | "dhcpctl/Makefile") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile" ;; | |
7993 | "dst/Makefile") CONFIG_FILES="$CONFIG_FILES dst/Makefile" ;; | |
7994 | "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;; | |
7995 | "minires/Makefile") CONFIG_FILES="$CONFIG_FILES minires/Makefile" ;; | |
7996 | "omapip/Makefile") CONFIG_FILES="$CONFIG_FILES omapip/Makefile" ;; | |
7997 | "relay/Makefile") CONFIG_FILES="$CONFIG_FILES relay/Makefile" ;; | |
7998 | "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; | |
7999 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
8000 | ||
fe5b0fdd DH |
8001 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
8002 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
8003 | { (exit 1); exit 1; }; };; | |
8004 | esac | |
8005 | done | |
8006 | ||
4d24561a | 8007 | |
fe5b0fdd DH |
8008 | # If the user did not use the arguments to specify the items to instantiate, |
8009 | # then the envvar interface is used. Set only those that are not. | |
8010 | # We use the long form for the default assignment because of an extremely | |
8011 | # bizarre bug on SunOS 4.1.3. | |
8012 | if $ac_need_defaults; then | |
8013 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8014 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
fc3ebe53 | 8015 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
fe5b0fdd DH |
8016 | fi |
8017 | ||
8018 | # Have a temporary directory for convenience. Make it in the build tree | |
4d24561a | 8019 | # simply because there is no reason against having it here, and in addition, |
fe5b0fdd | 8020 | # creating and moving files from /tmp can sometimes cause problems. |
4d24561a JR |
8021 | # Hook for its removal unless debugging. |
8022 | # Note that there is a small window in which the directory will not be cleaned: | |
8023 | # after its creation but before its name has been assigned to `$tmp'. | |
fe5b0fdd DH |
8024 | $debug || |
8025 | { | |
4d24561a JR |
8026 | tmp= |
8027 | trap 'exit_status=$? | |
8028 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
8029 | ' 0 | |
fe5b0fdd DH |
8030 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
8031 | } | |
8032 | # Create a (secure) tmp directory for tmp files. | |
8033 | ||
8034 | { | |
4d24561a | 8035 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
fe5b0fdd DH |
8036 | test -n "$tmp" && test -d "$tmp" |
8037 | } || | |
8038 | { | |
4d24561a JR |
8039 | tmp=./conf$$-$RANDOM |
8040 | (umask 077 && mkdir "$tmp") | |
fe5b0fdd DH |
8041 | } || |
8042 | { | |
8043 | echo "$me: cannot create a temporary directory in ." >&2 | |
6e999c3c SK |
8044 | { (exit 1); exit 1; } |
8045 | } | |
035ed382 | 8046 | |
fe5b0fdd | 8047 | # |
4d24561a | 8048 | # Set up the sed scripts for CONFIG_FILES section. |
fe5b0fdd DH |
8049 | # |
8050 | ||
8051 | # No need to generate the scripts if there are no CONFIG_FILES. | |
8052 | # This happens for instance when ./config.status config.h | |
4d24561a JR |
8053 | if test -n "$CONFIG_FILES"; then |
8054 | ||
8055 | _ACEOF | |
8056 | ||
8057 | ||
8058 | ||
8059 | ac_delim='%!_!# ' | |
8060 | for ac_last_try in false false false false false :; do | |
8061 | cat >conf$$subs.sed <<_ACEOF | |
8062 | SHELL!$SHELL$ac_delim | |
8063 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
8064 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
8065 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
8066 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
8067 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
8068 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
8069 | exec_prefix!$exec_prefix$ac_delim | |
8070 | prefix!$prefix$ac_delim | |
8071 | program_transform_name!$program_transform_name$ac_delim | |
8072 | bindir!$bindir$ac_delim | |
8073 | sbindir!$sbindir$ac_delim | |
8074 | libexecdir!$libexecdir$ac_delim | |
8075 | datarootdir!$datarootdir$ac_delim | |
8076 | datadir!$datadir$ac_delim | |
8077 | sysconfdir!$sysconfdir$ac_delim | |
8078 | sharedstatedir!$sharedstatedir$ac_delim | |
8079 | localstatedir!$localstatedir$ac_delim | |
8080 | includedir!$includedir$ac_delim | |
8081 | oldincludedir!$oldincludedir$ac_delim | |
8082 | docdir!$docdir$ac_delim | |
8083 | infodir!$infodir$ac_delim | |
8084 | htmldir!$htmldir$ac_delim | |
8085 | dvidir!$dvidir$ac_delim | |
8086 | pdfdir!$pdfdir$ac_delim | |
8087 | psdir!$psdir$ac_delim | |
8088 | libdir!$libdir$ac_delim | |
8089 | localedir!$localedir$ac_delim | |
8090 | mandir!$mandir$ac_delim | |
8091 | DEFS!$DEFS$ac_delim | |
8092 | ECHO_C!$ECHO_C$ac_delim | |
8093 | ECHO_N!$ECHO_N$ac_delim | |
8094 | ECHO_T!$ECHO_T$ac_delim | |
8095 | LIBS!$LIBS$ac_delim | |
8096 | build_alias!$build_alias$ac_delim | |
8097 | host_alias!$host_alias$ac_delim | |
8098 | target_alias!$target_alias$ac_delim | |
8099 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
8100 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
8101 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
8102 | CYGPATH_W!$CYGPATH_W$ac_delim | |
8103 | PACKAGE!$PACKAGE$ac_delim | |
8104 | VERSION!$VERSION$ac_delim | |
8105 | ACLOCAL!$ACLOCAL$ac_delim | |
8106 | AUTOCONF!$AUTOCONF$ac_delim | |
8107 | AUTOMAKE!$AUTOMAKE$ac_delim | |
8108 | AUTOHEADER!$AUTOHEADER$ac_delim | |
8109 | MAKEINFO!$MAKEINFO$ac_delim | |
8110 | install_sh!$install_sh$ac_delim | |
8111 | STRIP!$STRIP$ac_delim | |
8112 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
8113 | mkdir_p!$mkdir_p$ac_delim | |
8114 | AWK!$AWK$ac_delim | |
8115 | SET_MAKE!$SET_MAKE$ac_delim | |
8116 | am__leading_dot!$am__leading_dot$ac_delim | |
8117 | AMTAR!$AMTAR$ac_delim | |
8118 | am__tar!$am__tar$ac_delim | |
8119 | am__untar!$am__untar$ac_delim | |
8120 | CC!$CC$ac_delim | |
8121 | CFLAGS!$CFLAGS$ac_delim | |
8122 | LDFLAGS!$LDFLAGS$ac_delim | |
8123 | CPPFLAGS!$CPPFLAGS$ac_delim | |
8124 | ac_ct_CC!$ac_ct_CC$ac_delim | |
8125 | EXEEXT!$EXEEXT$ac_delim | |
8126 | OBJEXT!$OBJEXT$ac_delim | |
8127 | DEPDIR!$DEPDIR$ac_delim | |
8128 | am__include!$am__include$ac_delim | |
8129 | am__quote!$am__quote$ac_delim | |
8130 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
8131 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
8132 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
8133 | CCDEPMODE!$CCDEPMODE$ac_delim | |
8134 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
8135 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
4d24561a JR |
8136 | CPP!$CPP$ac_delim |
8137 | GREP!$GREP$ac_delim | |
8138 | EGREP!$EGREP$ac_delim | |
69bc1ebd SR |
8139 | RANLIB!$RANLIB$ac_delim |
8140 | byte_order!$byte_order$ac_delim | |
4d24561a JR |
8141 | ac_prefix_program!$ac_prefix_program$ac_delim |
8142 | LIBOBJS!$LIBOBJS$ac_delim | |
8143 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
8144 | _ACEOF | |
8145 | ||
8146 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then | |
8147 | break | |
8148 | elif $ac_last_try; then | |
8149 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
8150 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
8151 | { (exit 1); exit 1; }; } | |
8152 | else | |
8153 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
c9a1db5e | 8154 | fi |
4d24561a JR |
8155 | done |
8156 | ||
8157 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
8158 | if test -n "$ac_eof"; then | |
8159 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
8160 | ac_eof=`expr $ac_eof + 1` | |
8161 | fi | |
273bfdc3 | 8162 | |
4d24561a JR |
8163 | cat >>$CONFIG_STATUS <<_ACEOF |
8164 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
8165 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
8166 | _ACEOF | |
8167 | sed ' | |
8168 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
8169 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
8170 | :n | |
8171 | t n | |
8172 | s/'"$ac_delim"'$/,g/; t | |
8173 | s/$/\\/; p | |
8174 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
8175 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
8176 | rm -f conf$$subs.sed | |
8177 | cat >>$CONFIG_STATUS <<_ACEOF | |
8178 | :end | |
8179 | s/|#_!!_#|//g | |
8180 | CEOF$ac_eof | |
c9a1db5e | 8181 | _ACEOF |
4d24561a JR |
8182 | |
8183 | ||
8184 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
8185 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8186 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8187 | # (actually we leave an empty line to preserve line numbers). | |
8188 | if test "x$srcdir" = x.; then | |
8189 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8190 | s/:*\$(srcdir):*/:/ | |
8191 | s/:*\${srcdir}:*/:/ | |
8192 | s/:*@srcdir@:*/:/ | |
8193 | s/^\([^=]*=[ ]*\):*/\1/ | |
8194 | s/:*$// | |
8195 | s/^[^=]*=[ ]*$// | |
8196 | }' | |
8197 | fi | |
8198 | ||
c9a1db5e | 8199 | cat >>$CONFIG_STATUS <<\_ACEOF |
4d24561a JR |
8200 | fi # test -n "$CONFIG_FILES" |
8201 | ||
8202 | ||
8203 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
8204 | do | |
8205 | case $ac_tag in | |
8206 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8207 | esac | |
8208 | case $ac_mode$ac_tag in | |
8209 | :[FHL]*:*);; | |
8210 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
8211 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
8212 | { (exit 1); exit 1; }; };; | |
8213 | :[FH]-) ac_tag=-:-;; | |
8214 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8215 | esac | |
8216 | ac_save_IFS=$IFS | |
8217 | IFS=: | |
8218 | set x $ac_tag | |
8219 | IFS=$ac_save_IFS | |
8220 | shift | |
8221 | ac_file=$1 | |
8222 | shift | |
8223 | ||
8224 | case $ac_mode in | |
8225 | :L) ac_source=$1;; | |
8226 | :[FH]) | |
8227 | ac_file_inputs= | |
8228 | for ac_f | |
8229 | do | |
8230 | case $ac_f in | |
8231 | -) ac_f="$tmp/stdin";; | |
8232 | *) # Look for the file first in the build tree, then in the source tree | |
8233 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8234 | # because $ac_f cannot contain `:'. | |
8235 | test -f "$ac_f" || | |
8236 | case $ac_f in | |
8237 | [\\/$]*) false;; | |
8238 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8239 | esac || | |
8240 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
8241 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
8242 | { (exit 1); exit 1; }; };; | |
8243 | esac | |
8244 | ac_file_inputs="$ac_file_inputs $ac_f" | |
8245 | done | |
8246 | ||
8247 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8248 | # use $as_me), people would be surprised to read: | |
8249 | # /* config.h. Generated by config.status. */ | |
8250 | configure_input="Generated from "`IFS=: | |
8251 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
8252 | if test x"$ac_file" != x-; then | |
8253 | configure_input="$ac_file. $configure_input" | |
8254 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
8255 | echo "$as_me: creating $ac_file" >&6;} | |
8256 | fi | |
8257 | ||
8258 | case $ac_tag in | |
8259 | *:-:* | *:-) cat >"$tmp/stdin";; | |
8260 | esac | |
8261 | ;; | |
fe5b0fdd DH |
8262 | esac |
8263 | ||
4d24561a | 8264 | ac_dir=`$as_dirname -- "$ac_file" || |
fe5b0fdd DH |
8265 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8266 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8267 | X"$ac_file" : 'X\(//\)$' \| \ | |
4d24561a | 8268 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 8269 | echo X"$ac_file" | |
4d24561a JR |
8270 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8271 | s//\1/ | |
8272 | q | |
8273 | } | |
8274 | /^X\(\/\/\)[^/].*/{ | |
8275 | s//\1/ | |
8276 | q | |
8277 | } | |
8278 | /^X\(\/\/\)$/{ | |
8279 | s//\1/ | |
8280 | q | |
8281 | } | |
8282 | /^X\(\/\).*/{ | |
8283 | s//\1/ | |
8284 | q | |
8285 | } | |
8286 | s/.*/./; q'` | |
8287 | { as_dir="$ac_dir" | |
8288 | case $as_dir in #( | |
8289 | -*) as_dir=./$as_dir;; | |
8290 | esac | |
8291 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
fe5b0fdd | 8292 | as_dirs= |
4d24561a JR |
8293 | while :; do |
8294 | case $as_dir in #( | |
8295 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
8296 | *) as_qdir=$as_dir;; | |
8297 | esac | |
8298 | as_dirs="'$as_qdir' $as_dirs" | |
8299 | as_dir=`$as_dirname -- "$as_dir" || | |
fe5b0fdd DH |
8300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8301 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8302 | X"$as_dir" : 'X\(//\)$' \| \ | |
4d24561a | 8303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 8304 | echo X"$as_dir" | |
4d24561a JR |
8305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8306 | s//\1/ | |
8307 | q | |
8308 | } | |
8309 | /^X\(\/\/\)[^/].*/{ | |
8310 | s//\1/ | |
8311 | q | |
8312 | } | |
8313 | /^X\(\/\/\)$/{ | |
8314 | s//\1/ | |
8315 | q | |
8316 | } | |
8317 | /^X\(\/\).*/{ | |
8318 | s//\1/ | |
8319 | q | |
8320 | } | |
8321 | s/.*/./; q'` | |
8322 | test -d "$as_dir" && break | |
fe5b0fdd | 8323 | done |
4d24561a JR |
8324 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
8325 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
8326 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
fe5b0fdd DH |
8327 | { (exit 1); exit 1; }; }; } |
8328 | ac_builddir=. | |
8329 | ||
4d24561a JR |
8330 | case "$ac_dir" in |
8331 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8332 | *) | |
fe5b0fdd | 8333 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
4d24561a JR |
8334 | # A ".." for each directory in $ac_dir_suffix. |
8335 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
8336 | case $ac_top_builddir_sub in | |
8337 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8338 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8339 | esac ;; | |
8340 | esac | |
8341 | ac_abs_top_builddir=$ac_pwd | |
8342 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8343 | # for backward compatibility: | |
8344 | ac_top_builddir=$ac_top_build_prefix | |
fe5b0fdd DH |
8345 | |
8346 | case $srcdir in | |
4d24561a | 8347 | .) # We are building in place. |
fe5b0fdd | 8348 | ac_srcdir=. |
4d24561a JR |
8349 | ac_top_srcdir=$ac_top_builddir_sub |
8350 | ac_abs_top_srcdir=$ac_pwd ;; | |
8351 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fe5b0fdd | 8352 | ac_srcdir=$srcdir$ac_dir_suffix; |
4d24561a JR |
8353 | ac_top_srcdir=$srcdir |
8354 | ac_abs_top_srcdir=$srcdir ;; | |
8355 | *) # Relative name. | |
8356 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8357 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8358 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fe5b0fdd | 8359 | esac |
4d24561a | 8360 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fe5b0fdd DH |
8361 | |
8362 | ||
4d24561a JR |
8363 | case $ac_mode in |
8364 | :F) | |
8365 | # | |
8366 | # CONFIG_FILE | |
8367 | # | |
fe5b0fdd DH |
8368 | |
8369 | case $INSTALL in | |
8370 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
4d24561a | 8371 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
fe5b0fdd | 8372 | esac |
4d24561a | 8373 | _ACEOF |
273bfdc3 | 8374 | |
4d24561a JR |
8375 | |
8376 | # Neutralize VPATH when `$srcdir' = `.'. | |
8377 | # Shell code in configure.ac might set extrasub. | |
8378 | # FIXME: do we really want to maintain this feature? | |
fe5b0fdd DH |
8379 | cat >>$CONFIG_STATUS <<_ACEOF |
8380 | sed "$ac_vpsub | |
8381 | $extrasub | |
8382 | _ACEOF | |
8383 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8384 | :t | |
8385 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
4d24561a JR |
8386 | s&@configure_input@&$configure_input&;t t |
8387 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8388 | s&@srcdir@&$ac_srcdir&;t t | |
8389 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8390 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8391 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8392 | s&@builddir@&$ac_builddir&;t t | |
8393 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8394 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8395 | s&@INSTALL@&$ac_INSTALL&;t t | |
4d24561a JR |
8396 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
8397 | ||
4d24561a JR |
8398 | |
8399 | rm -f "$tmp/stdin" | |
fe5b0fdd | 8400 | case $ac_file in |
4d24561a JR |
8401 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
8402 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
fe5b0fdd | 8403 | esac |
4d24561a JR |
8404 | ;; |
8405 | :H) | |
8406 | # | |
8407 | # CONFIG_HEADER | |
8408 | # | |
8409 | _ACEOF | |
8410 | ||
8411 | # Transform confdefs.h into a sed script `conftest.defines', that | |
8412 | # substitutes the proper values into config.h.in to produce config.h. | |
8413 | rm -f conftest.defines conftest.tail | |
8414 | # First, append a space to every undef/define line, to ease matching. | |
8415 | echo 's/$/ /' >conftest.defines | |
8416 | # Then, protect against being on the right side of a sed subst, or in | |
8417 | # an unquoted here document, in config.status. If some macros were | |
8418 | # called several times there might be several #defines for the same | |
8419 | # symbol, which is useless. But do not sort them, since the last | |
8420 | # AC_DEFINE must be honored. | |
8421 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8422 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
8423 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
8424 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
8425 | # just an empty string. | |
8426 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
8427 | ac_dB='\\)[ (].*,\\1define\\2' | |
8428 | ac_dC=' ' | |
8429 | ac_dD=' ,' | |
8430 | ||
8431 | uniq confdefs.h | | |
8432 | sed -n ' | |
8433 | t rset | |
8434 | :rset | |
8435 | s/^[ ]*#[ ]*define[ ][ ]*// | |
8436 | t ok | |
8437 | d | |
8438 | :ok | |
8439 | s/[\\&,]/\\&/g | |
8440 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
8441 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
8442 | ' >>conftest.defines | |
8443 | ||
8444 | # Remove the space that was appended to ease matching. | |
8445 | # Then replace #undef with comments. This is necessary, for | |
fe5b0fdd DH |
8446 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
8447 | # on some systems where configure will not decide to define it. | |
4d24561a JR |
8448 | # (The regexp can be short, since the line contains either #define or #undef.) |
8449 | echo 's/ $// | |
8450 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
8451 | ||
8452 | # Break up conftest.defines: | |
8453 | ac_max_sed_lines=50 | |
8454 | ||
8455 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
8456 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
8457 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
8458 | # et cetera. | |
8459 | ac_in='$ac_file_inputs' | |
8460 | ac_out='"$tmp/out1"' | |
8461 | ac_nxt='"$tmp/out2"' | |
8462 | ||
8463 | while : | |
fe5b0fdd | 8464 | do |
4d24561a JR |
8465 | # Write a here document: |
8466 | cat >>$CONFIG_STATUS <<_ACEOF | |
8467 | # First, check the format of the line: | |
8468 | cat >"\$tmp/defines.sed" <<\\CEOF | |
8469 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
8470 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
8471 | b | |
8472 | :def | |
8473 | _ACEOF | |
8474 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
fe5b0fdd | 8475 | echo 'CEOF |
4d24561a JR |
8476 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
8477 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
8478 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
8479 | grep . conftest.tail >/dev/null || break | |
fe5b0fdd DH |
8480 | rm -f conftest.defines |
8481 | mv conftest.tail conftest.defines | |
8482 | done | |
4d24561a | 8483 | rm -f conftest.defines conftest.tail |
fe5b0fdd | 8484 | |
4d24561a | 8485 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
fe5b0fdd DH |
8486 | cat >>$CONFIG_STATUS <<\_ACEOF |
8487 | if test x"$ac_file" != x-; then | |
4d24561a JR |
8488 | echo "/* $configure_input */" >"$tmp/config.h" |
8489 | cat "$ac_result" >>"$tmp/config.h" | |
8490 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
fe5b0fdd DH |
8491 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
8492 | echo "$as_me: $ac_file is unchanged" >&6;} | |
8493 | else | |
8494 | rm -f $ac_file | |
4d24561a | 8495 | mv "$tmp/config.h" $ac_file |
fe5b0fdd DH |
8496 | fi |
8497 | else | |
4d24561a JR |
8498 | echo "/* $configure_input */" |
8499 | cat "$ac_result" | |
fe5b0fdd | 8500 | fi |
4d24561a | 8501 | rm -f "$tmp/out12" |
fc3ebe53 DH |
8502 | # Compute $ac_file's index in $config_headers. |
8503 | _am_stamp_count=1 | |
8504 | for _am_header in $config_headers :; do | |
8505 | case $_am_header in | |
8506 | $ac_file | $ac_file:* ) | |
8507 | break ;; | |
8508 | * ) | |
8509 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
8510 | esac | |
8511 | done | |
4d24561a | 8512 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
fc3ebe53 DH |
8513 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8514 | X$ac_file : 'X\(//\)[^/]' \| \ | |
8515 | X$ac_file : 'X\(//\)$' \| \ | |
4d24561a | 8516 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
fc3ebe53 | 8517 | echo X$ac_file | |
4d24561a JR |
8518 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8519 | s//\1/ | |
8520 | q | |
8521 | } | |
8522 | /^X\(\/\/\)[^/].*/{ | |
8523 | s//\1/ | |
8524 | q | |
8525 | } | |
8526 | /^X\(\/\/\)$/{ | |
8527 | s//\1/ | |
8528 | q | |
8529 | } | |
8530 | /^X\(\/\).*/{ | |
8531 | s//\1/ | |
8532 | q | |
8533 | } | |
8534 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8535 | ;; | |
7d714d6b | 8536 | |
4d24561a JR |
8537 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
8538 | echo "$as_me: executing $ac_file commands" >&6;} | |
8539 | ;; | |
8540 | esac | |
fc3ebe53 DH |
8541 | |
8542 | ||
4d24561a JR |
8543 | case $ac_file$ac_mode in |
8544 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
fc3ebe53 DH |
8545 | # Strip MF so we end up with the name of the file. |
8546 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
8547 | # Check whether this is an Automake generated Makefile or not. | |
8548 | # We used to match only the files named `Makefile.in', but | |
8549 | # some people rename them; so instead we look at the file content. | |
8550 | # Grep'ing the first line is not enough: some people post-process | |
8551 | # each Makefile.in and add a new line on top of each file to say so. | |
7d714d6b DH |
8552 | # So let's grep whole file. |
8553 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
4d24561a | 8554 | dirpart=`$as_dirname -- "$mf" || |
fc3ebe53 DH |
8555 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8556 | X"$mf" : 'X\(//\)[^/]' \| \ | |
8557 | X"$mf" : 'X\(//\)$' \| \ | |
4d24561a | 8558 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
fc3ebe53 | 8559 | echo X"$mf" | |
4d24561a JR |
8560 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8561 | s//\1/ | |
8562 | q | |
8563 | } | |
8564 | /^X\(\/\/\)[^/].*/{ | |
8565 | s//\1/ | |
8566 | q | |
8567 | } | |
8568 | /^X\(\/\/\)$/{ | |
8569 | s//\1/ | |
8570 | q | |
8571 | } | |
8572 | /^X\(\/\).*/{ | |
8573 | s//\1/ | |
8574 | q | |
8575 | } | |
8576 | s/.*/./; q'` | |
fc3ebe53 DH |
8577 | else |
8578 | continue | |
8579 | fi | |
8580 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8581 | # from the Makefile without running `make'. | |
8582 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
8583 | test -z "$DEPDIR" && continue | |
8584 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
8585 | test -z "am__include" && continue | |
8586 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
8587 | # When using ansi2knr, U may be empty or an underscore; expand it | |
8588 | U=`sed -n 's/^U = //p' < "$mf"` | |
8589 | # Find all dependency output files, they are included files with | |
8590 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
8591 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
8592 | # expansion. | |
8593 | for file in `sed -n " | |
8594 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8595 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
8596 | # Make sure the directory exists. | |
8597 | test -f "$dirpart/$file" && continue | |
4d24561a | 8598 | fdir=`$as_dirname -- "$file" || |
fc3ebe53 DH |
8599 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8600 | X"$file" : 'X\(//\)[^/]' \| \ | |
8601 | X"$file" : 'X\(//\)$' \| \ | |
4d24561a | 8602 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
fc3ebe53 | 8603 | echo X"$file" | |
4d24561a JR |
8604 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8605 | s//\1/ | |
8606 | q | |
8607 | } | |
8608 | /^X\(\/\/\)[^/].*/{ | |
8609 | s//\1/ | |
8610 | q | |
8611 | } | |
8612 | /^X\(\/\/\)$/{ | |
8613 | s//\1/ | |
8614 | q | |
8615 | } | |
8616 | /^X\(\/\).*/{ | |
8617 | s//\1/ | |
8618 | q | |
8619 | } | |
8620 | s/.*/./; q'` | |
8621 | { as_dir=$dirpart/$fdir | |
8622 | case $as_dir in #( | |
8623 | -*) as_dir=./$as_dir;; | |
8624 | esac | |
8625 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
fc3ebe53 | 8626 | as_dirs= |
4d24561a JR |
8627 | while :; do |
8628 | case $as_dir in #( | |
8629 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
8630 | *) as_qdir=$as_dir;; | |
8631 | esac | |
8632 | as_dirs="'$as_qdir' $as_dirs" | |
8633 | as_dir=`$as_dirname -- "$as_dir" || | |
fc3ebe53 DH |
8634 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8635 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8636 | X"$as_dir" : 'X\(//\)$' \| \ | |
4d24561a | 8637 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
fc3ebe53 | 8638 | echo X"$as_dir" | |
4d24561a JR |
8639 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8640 | s//\1/ | |
8641 | q | |
8642 | } | |
8643 | /^X\(\/\/\)[^/].*/{ | |
8644 | s//\1/ | |
8645 | q | |
8646 | } | |
8647 | /^X\(\/\/\)$/{ | |
8648 | s//\1/ | |
8649 | q | |
8650 | } | |
8651 | /^X\(\/\).*/{ | |
8652 | s//\1/ | |
8653 | q | |
8654 | } | |
8655 | s/.*/./; q'` | |
8656 | test -d "$as_dir" && break | |
fc3ebe53 | 8657 | done |
4d24561a JR |
8658 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
8659 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
8660 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
fc3ebe53 | 8661 | { (exit 1); exit 1; }; }; } |
fc3ebe53 DH |
8662 | # echo "creating $dirpart/$file" |
8663 | echo '# dummy' > "$dirpart/$file" | |
8664 | done | |
8665 | done | |
8666 | ;; | |
4d24561a | 8667 | |
fc3ebe53 | 8668 | esac |
4d24561a | 8669 | done # for ac_tag |
fe5b0fdd DH |
8670 | |
8671 | ||
8672 | { (exit 0); exit 0; } | |
8673 | _ACEOF | |
8674 | chmod +x $CONFIG_STATUS | |
8675 | ac_clean_files=$ac_clean_files_save | |
8676 | ||
8677 | ||
8678 | # configure is writing to config.log, and then calls config.status. | |
8679 | # config.status does its own redirection, appending to config.log. | |
8680 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8681 | # by configure, so config.status won't be able to write to it; its | |
8682 | # output is simply discarded. So we exec the FD to /dev/null, | |
8683 | # effectively closing config.log, so it can be properly (re)opened and | |
8684 | # appended to by config.status. When coming back to configure, we | |
8685 | # need to make the FD available again. | |
8686 | if test "$no_create" != yes; then | |
8687 | ac_cs_success=: | |
8688 | ac_config_status_args= | |
8689 | test "$silent" = yes && | |
8690 | ac_config_status_args="$ac_config_status_args --quiet" | |
8691 | exec 5>/dev/null | |
8692 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8693 | exec 5>>config.log | |
8694 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8695 | # would make configure fail if this is the last instruction. | |
8696 | $ac_cs_success || { (exit 1); exit 1; } | |
8697 | fi | |
8698 | ||
8699 |