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