]>
Commit | Line | Data |
---|---|---|
fe5b0fdd DH |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
573f1809 | 3 | # Generated by GNU Autoconf 2.69 for DHCP 4.3.4. |
fe5b0fdd DH |
4 | # |
5 | # Report bugs to <dhcp-users@isc.org>. | |
6 | # | |
a24b9f23 MA |
7 | # |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | # | |
10 | # | |
fe5b0fdd DH |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
a24b9f23 MA |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
8c816ebb | 16 | |
4d24561a JR |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
a24b9f23 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
fe5b0fdd DH |
20 | emulate sh |
21 | NULLCMD=: | |
a24b9f23 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
fe5b0fdd DH |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
4d24561a JR |
25 | setopt NO_GLOB_SUBST |
26 | else | |
a24b9f23 MA |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
4d24561a | 32 | esac |
4d24561a JR |
33 | fi |
34 | ||
35 | ||
a24b9f23 MA |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
2d5fba9b | 56 | else |
a24b9f23 MA |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
2d5fba9b | 69 | fi |
a24b9f23 MA |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
fe5b0fdd | 72 | fi |
fe5b0fdd | 73 | |
a24b9f23 MA |
74 | # The user is always right. |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
fe5b0fdd DH |
81 | fi |
82 | ||
83 | ||
4d24561a JR |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
4d24561a JR |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
a24b9f23 MA |
92 | as_myself= |
93 | case $0 in #(( | |
4d24561a JR |
94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
a24b9f23 MA |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
4d24561a JR |
102 | IFS=$as_save_IFS |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
a24b9f23 MA |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
113 | exit 1 | |
4d24561a JR |
114 | fi |
115 | ||
a24b9f23 MA |
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
4d24561a | 123 | done |
fe5b0fdd DH |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
a24b9f23 MA |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
137 | # Use a proper internal environment variable to ensure we don't fall | |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
162 | if test "x$CONFIG_SHELL" = x; then | |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
195 | test x\$exitcode = x0 || exit 1 | |
196 | test -x / || exit 1" | |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | test \$(( 1 + 1 )) = 2 || exit 1" | |
202 | if (eval "$as_required") 2>/dev/null; then : | |
203 | as_have_required=yes | |
204 | else | |
205 | as_have_required=no | |
206 | fi | |
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
208 | ||
209 | else | |
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
211 | as_found=false | |
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
2d5fba9b | 213 | do |
a24b9f23 MA |
214 | IFS=$as_save_IFS |
215 | test -z "$as_dir" && as_dir=. | |
216 | as_found=: | |
217 | case $as_dir in #( | |
218 | /*) | |
219 | for as_base in sh bash ksh sh5; do | |
220 | # Try only shells that exist, to save several forks. | |
221 | as_shell=$as_dir/$as_base | |
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | CONFIG_SHELL=$as_shell as_have_required=yes | |
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
226 | break 2 | |
227 | fi | |
228 | fi | |
229 | done;; | |
230 | esac | |
231 | as_found=false | |
232 | done | |
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
235 | CONFIG_SHELL=$SHELL as_have_required=yes | |
236 | fi; } | |
237 | IFS=$as_save_IFS | |
238 | ||
239 | ||
240 | if test "x$CONFIG_SHELL" != x; then : | |
241 | export CONFIG_SHELL | |
242 | # We cannot yet assume a decent shell, so we have to provide a | |
243 | # neutralization value for shells without unset; and this also | |
244 | # works around shells that cannot unset nonexistent variables. | |
245 | # Preserve -v and -x to the replacement shell. | |
246 | BASH_ENV=/dev/null | |
247 | ENV=/dev/null | |
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
249 | case $- in # (((( | |
250 | *v*x* | *x*v* ) as_opts=-vx ;; | |
251 | *v* ) as_opts=-v ;; | |
252 | *x* ) as_opts=-x ;; | |
253 | * ) as_opts= ;; | |
254 | esac | |
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
256 | # Admittedly, this is quite paranoid, since all the known shells bail | |
257 | # out after a failed `exec'. | |
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
259 | exit 255 | |
260 | fi | |
261 | ||
262 | if test x$as_have_required = xno; then : | |
263 | $as_echo "$0: This script requires a shell more modern than all" | |
264 | $as_echo "$0: the shells that I found on your system." | |
265 | if test x${ZSH_VERSION+set} = xset ; then | |
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
2d5fba9b | 268 | else |
a24b9f23 MA |
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and dhcp-users@isc.org |
270 | $0: about your system, including any error possibly output | |
271 | $0: before this message. Then install a modern shell, or | |
272 | $0: manually run the script under such a shell if you do | |
273 | $0: have one." | |
4a70cb10 | 274 | fi |
a24b9f23 MA |
275 | exit 1 |
276 | fi | |
277 | fi | |
278 | fi | |
279 | SHELL=${CONFIG_SHELL-/bin/sh} | |
280 | export SHELL | |
281 | # Unset more variables known to interfere with behavior of common tools. | |
282 | CLICOLOR_FORCE= GREP_OPTIONS= | |
283 | unset CLICOLOR_FORCE GREP_OPTIONS | |
284 | ||
285 | ## --------------------- ## | |
286 | ## M4sh Shell Functions. ## | |
287 | ## --------------------- ## | |
288 | # as_fn_unset VAR | |
289 | # --------------- | |
290 | # Portably unset VAR. | |
291 | as_fn_unset () | |
292 | { | |
293 | { eval $1=; unset $1;} | |
294 | } | |
295 | as_unset=as_fn_unset | |
296 | ||
297 | # as_fn_set_status STATUS | |
298 | # ----------------------- | |
299 | # Set $? to STATUS, without forking. | |
300 | as_fn_set_status () | |
301 | { | |
302 | return $1 | |
303 | } # as_fn_set_status | |
304 | ||
305 | # as_fn_exit STATUS | |
306 | # ----------------- | |
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
308 | as_fn_exit () | |
309 | { | |
310 | set +e | |
311 | as_fn_set_status $1 | |
312 | exit $1 | |
313 | } # as_fn_exit | |
314 | ||
315 | # as_fn_mkdir_p | |
316 | # ------------- | |
317 | # Create "$as_dir" as a directory, including parents if necessary. | |
318 | as_fn_mkdir_p () | |
319 | { | |
320 | ||
321 | case $as_dir in #( | |
322 | -*) as_dir=./$as_dir;; | |
323 | esac | |
324 | test -d "$as_dir" || eval $as_mkdir_p || { | |
325 | as_dirs= | |
326 | while :; do | |
327 | case $as_dir in #( | |
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
329 | *) as_qdir=$as_dir;; | |
330 | esac | |
331 | as_dirs="'$as_qdir' $as_dirs" | |
332 | as_dir=`$as_dirname -- "$as_dir" || | |
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
335 | X"$as_dir" : 'X\(//\)$' \| \ | |
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
337 | $as_echo X"$as_dir" | | |
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
339 | s//\1/ | |
340 | q | |
341 | } | |
342 | /^X\(\/\/\)[^/].*/{ | |
343 | s//\1/ | |
344 | q | |
345 | } | |
346 | /^X\(\/\/\)$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\).*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | s/.*/./; q'` | |
355 | test -d "$as_dir" && break | |
356 | done | |
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
359 | ||
360 | ||
361 | } # as_fn_mkdir_p | |
362 | ||
363 | # as_fn_executable_p FILE | |
364 | # ----------------------- | |
365 | # Test if FILE is an executable regular file. | |
366 | as_fn_executable_p () | |
367 | { | |
368 | test -f "$1" && test -x "$1" | |
369 | } # as_fn_executable_p | |
370 | # as_fn_append VAR VALUE | |
371 | # ---------------------- | |
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
373 | # advantage of any shell optimizations that allow amortized linear growth over | |
374 | # repeated appends, instead of the typical quadratic growth present in naive | |
375 | # implementations. | |
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
377 | eval 'as_fn_append () | |
378 | { | |
379 | eval $1+=\$2 | |
380 | }' | |
381 | else | |
382 | as_fn_append () | |
383 | { | |
384 | eval $1=\$$1\$2 | |
385 | } | |
386 | fi # as_fn_append | |
387 | ||
388 | # as_fn_arith ARG... | |
389 | # ------------------ | |
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
392 | # must be portable across $(()) and expr. | |
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
394 | eval 'as_fn_arith () | |
395 | { | |
396 | as_val=$(( $* )) | |
397 | }' | |
398 | else | |
399 | as_fn_arith () | |
400 | { | |
401 | as_val=`expr "$@" || test $? -eq 1` | |
402 | } | |
403 | fi # as_fn_arith | |
404 | ||
405 | ||
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
407 | # ---------------------------------------- | |
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
410 | # script with STATUS, using 1 if that was 0. | |
411 | as_fn_error () | |
412 | { | |
413 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
414 | if test "$4"; then | |
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
417 | fi | |
418 | $as_echo "$as_me: error: $2" >&2 | |
419 | as_fn_exit $as_status | |
420 | } # as_fn_error | |
fe5b0fdd | 421 | |
4d24561a JR |
422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fe5b0fdd DH |
424 | as_expr=expr |
425 | else | |
426 | as_expr=false | |
427 | fi | |
428 | ||
4d24561a | 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fe5b0fdd DH |
430 | as_basename=basename |
431 | else | |
432 | as_basename=false | |
433 | fi | |
434 | ||
a24b9f23 MA |
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
436 | as_dirname=dirname | |
437 | else | |
438 | as_dirname=false | |
439 | fi | |
fe5b0fdd | 440 | |
4d24561a | 441 | as_me=`$as_basename -- "$0" || |
fe5b0fdd DH |
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
443 | X"$0" : 'X\(//\)$' \| \ | |
4d24561a | 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
a24b9f23 | 445 | $as_echo X/"$0" | |
4d24561a JR |
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
447 | s//\1/ | |
448 | q | |
449 | } | |
450 | /^X\/\(\/\/\)$/{ | |
451 | s//\1/ | |
452 | q | |
453 | } | |
454 | /^X\/\(\/\).*/{ | |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | s/.*/./; q'` | |
7f45c65c | 459 | |
a24b9f23 MA |
460 | # Avoid depending upon Character Ranges. |
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
464 | as_cr_digits='0123456789' | |
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7f45c65c | 466 | |
ded99fc7 | 467 | |
a24b9f23 MA |
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
473 | sed -n ' | |
474 | p | |
475 | /[$]LINENO/= | |
476 | ' <$as_myself | | |
477 | sed ' | |
478 | s/[$]LINENO.*/&-/ | |
479 | t lineno | |
480 | b | |
481 | :lineno | |
482 | N | |
483 | :loop | |
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
485 | t loop | |
486 | s/-\n.*// | |
487 | ' >$as_me.lineno && | |
488 | chmod +x "$as_me.lineno" || | |
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
ded99fc7 | 490 | |
a24b9f23 MA |
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
492 | # already done that, so ensure we don't try to do so again and fall | |
493 | # in an infinite loop. This has already happened in practice. | |
494 | _as_can_reexec=no; export _as_can_reexec | |
495 | # Don't try to exec as it changes $[0], causing all sort of problems | |
496 | # (the dirname of $[0] is not the place where we might find the | |
497 | # original and so on. Autoconf is especially sensitive to this). | |
498 | . "./$as_me.lineno" | |
499 | # Exit status is that of the last command. | |
500 | exit | |
4d24561a | 501 | } |
ded99fc7 | 502 | |
a24b9f23 MA |
503 | ECHO_C= ECHO_N= ECHO_T= |
504 | case `echo -n x` in #((((( | |
505 | -n*) | |
506 | case `echo 'xy\c'` in | |
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
508 | xy) ECHO_C='\c';; | |
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
510 | ECHO_T=' ';; | |
511 | esac;; | |
512 | *) | |
513 | ECHO_N='-n';; | |
514 | esac | |
529be52a | 515 | |
a24b9f23 MA |
516 | rm -f conf$$ conf$$.exe conf$$.file |
517 | if test -d conf$$.dir; then | |
518 | rm -f conf$$.dir/conf$$.file | |
4a70cb10 | 519 | else |
a24b9f23 MA |
520 | rm -f conf$$.dir |
521 | mkdir conf$$.dir 2>/dev/null | |
522 | fi | |
523 | if (echo >conf$$.file) 2>/dev/null; then | |
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
525 | as_ln_s='ln -s' | |
526 | # ... but there are two gotchas: | |
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
529 | # In both cases, we have to default to `cp -pR'. | |
530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
531 | as_ln_s='cp -pR' | |
532 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
533 | as_ln_s=ln | |
534 | else | |
535 | as_ln_s='cp -pR' | |
536 | fi | |
4d24561a | 537 | else |
a24b9f23 | 538 | as_ln_s='cp -pR' |
4d24561a | 539 | fi |
a24b9f23 MA |
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
541 | rmdir conf$$.dir 2>/dev/null | |
4d24561a | 542 | |
a24b9f23 MA |
543 | if mkdir -p . 2>/dev/null; then |
544 | as_mkdir_p='mkdir -p "$as_dir"' | |
529be52a | 545 | else |
a24b9f23 MA |
546 | test -d ./-p && rmdir ./-p |
547 | as_mkdir_p=false | |
529be52a | 548 | fi |
4d24561a | 549 | |
a24b9f23 MA |
550 | as_test_x='test -x' |
551 | as_executable_p=as_fn_executable_p | |
fe5b0fdd | 552 | |
a24b9f23 MA |
553 | # Sed expression to map a string onto a valid CPP name. |
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
529be52a | 555 | |
a24b9f23 MA |
556 | # Sed expression to map a string onto a valid variable name. |
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
529be52a | 558 | |
529be52a | 559 | |
a24b9f23 MA |
560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
561 | exec 6>&1 | |
529be52a | 562 | |
a24b9f23 MA |
563 | # Name of the host. |
564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
565 | # so uname gets run too. | |
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
529be52a SR |
567 | |
568 | # | |
569 | # Initializations. | |
570 | # | |
571 | ac_default_prefix=/usr/local | |
572 | ac_clean_files= | |
573 | ac_config_libobj_dir=. | |
574 | LIBOBJS= | |
575 | cross_compiling=no | |
576 | subdirs= | |
577 | MFLAGS= | |
578 | MAKEFLAGS= | |
529be52a SR |
579 | |
580 | # Identity of this package. | |
581 | PACKAGE_NAME='DHCP' | |
fe5b0fdd | 582 | PACKAGE_TARNAME='dhcp' |
573f1809 TM |
583 | PACKAGE_VERSION='4.3.4' |
584 | PACKAGE_STRING='DHCP 4.3.4' | |
fe5b0fdd | 585 | PACKAGE_BUGREPORT='dhcp-users@isc.org' |
a24b9f23 | 586 | PACKAGE_URL='' |
fe5b0fdd DH |
587 | |
588 | # Factoring default headers for most tests. | |
589 | ac_includes_default="\ | |
590 | #include <stdio.h> | |
4d24561a | 591 | #ifdef HAVE_SYS_TYPES_H |
fe5b0fdd DH |
592 | # include <sys/types.h> |
593 | #endif | |
4d24561a | 594 | #ifdef HAVE_SYS_STAT_H |
fe5b0fdd DH |
595 | # include <sys/stat.h> |
596 | #endif | |
4d24561a | 597 | #ifdef STDC_HEADERS |
fe5b0fdd DH |
598 | # include <stdlib.h> |
599 | # include <stddef.h> | |
600 | #else | |
4d24561a | 601 | # ifdef HAVE_STDLIB_H |
fe5b0fdd DH |
602 | # include <stdlib.h> |
603 | # endif | |
604 | #endif | |
4d24561a JR |
605 | #ifdef HAVE_STRING_H |
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
fe5b0fdd DH |
607 | # include <memory.h> |
608 | # endif | |
609 | # include <string.h> | |
610 | #endif | |
4d24561a | 611 | #ifdef HAVE_STRINGS_H |
fe5b0fdd DH |
612 | # include <strings.h> |
613 | #endif | |
4d24561a | 614 | #ifdef HAVE_INTTYPES_H |
fe5b0fdd | 615 | # include <inttypes.h> |
fe5b0fdd | 616 | #endif |
4d24561a JR |
617 | #ifdef HAVE_STDINT_H |
618 | # include <stdint.h> | |
619 | #endif | |
620 | #ifdef HAVE_UNISTD_H | |
fe5b0fdd DH |
621 | # include <unistd.h> |
622 | #endif" | |
623 | ||
a24b9f23 MA |
624 | ac_subst_vars='am__EXEEXT_FALSE |
625 | am__EXEEXT_TRUE | |
626 | LTLIBOBJS | |
529be52a | 627 | LIBOBJS |
a24b9f23 | 628 | LDAP_CFLAGS |
743d6937 | 629 | LDAP_LIBS |
7a6146d8 FD |
630 | BINDVERSION |
631 | BINDBIND | |
5a428b2e | 632 | BINDSRCDIR |
0fb9c8a1 | 633 | BINDDIR |
a24b9f23 | 634 | ac_prefix_program |
f2d20b9e | 635 | DISTCHECK_ATF_CONFIGURE_FLAG |
a24b9f23 MA |
636 | HAVE_ATF_FALSE |
637 | HAVE_ATF_TRUE | |
cacce092 | 638 | pkgcfg_found |
9a111ee8 | 639 | ATF_BIN |
a24b9f23 MA |
640 | ATF_LDFLAGS |
641 | ATF_CFLAGS | |
6913a589 FD |
642 | BIND_ATF_FALSE |
643 | BIND_ATF_TRUE | |
a24b9f23 | 644 | byte_order |
e619bd67 | 645 | AR |
a24b9f23 MA |
646 | RANLIB |
647 | EGREP | |
648 | GREP | |
649 | CPP | |
b4a10c76 FD |
650 | CROSS_COMPILING_FALSE |
651 | CROSS_COMPILING_TRUE | |
6913a589 | 652 | BINDCONFIG |
a24b9f23 MA |
653 | am__fastdepCC_FALSE |
654 | am__fastdepCC_TRUE | |
655 | CCDEPMODE | |
656 | am__nodep | |
657 | AMDEPBACKSLASH | |
658 | AMDEP_FALSE | |
659 | AMDEP_TRUE | |
660 | am__quote | |
661 | am__include | |
662 | DEPDIR | |
663 | OBJEXT | |
664 | EXEEXT | |
665 | ac_ct_CC | |
666 | CPPFLAGS | |
667 | LDFLAGS | |
668 | CFLAGS | |
669 | CC | |
670 | host_os | |
671 | host_vendor | |
672 | host_cpu | |
673 | host | |
674 | build_os | |
675 | build_vendor | |
676 | build_cpu | |
677 | build | |
678 | MAINT | |
679 | MAINTAINER_MODE_FALSE | |
680 | MAINTAINER_MODE_TRUE | |
69e9da00 TM |
681 | AM_BACKSLASH |
682 | AM_DEFAULT_VERBOSITY | |
683 | AM_DEFAULT_V | |
684 | AM_V | |
a24b9f23 MA |
685 | am__untar |
686 | am__tar | |
687 | AMTAR | |
688 | am__leading_dot | |
689 | SET_MAKE | |
690 | AWK | |
691 | mkdir_p | |
692 | MKDIR_P | |
693 | INSTALL_STRIP_PROGRAM | |
694 | STRIP | |
695 | install_sh | |
696 | MAKEINFO | |
697 | AUTOHEADER | |
698 | AUTOMAKE | |
699 | AUTOCONF | |
700 | ACLOCAL | |
701 | VERSION | |
702 | PACKAGE | |
703 | CYGPATH_W | |
704 | am__isrc | |
705 | INSTALL_DATA | |
706 | INSTALL_SCRIPT | |
707 | INSTALL_PROGRAM | |
708 | target_alias | |
709 | host_alias | |
710 | build_alias | |
711 | LIBS | |
712 | ECHO_T | |
713 | ECHO_N | |
714 | ECHO_C | |
715 | DEFS | |
716 | mandir | |
717 | localedir | |
718 | libdir | |
719 | psdir | |
720 | pdfdir | |
721 | dvidir | |
722 | htmldir | |
723 | infodir | |
724 | docdir | |
725 | oldincludedir | |
726 | includedir | |
727 | localstatedir | |
728 | sharedstatedir | |
729 | sysconfdir | |
730 | datadir | |
731 | datarootdir | |
732 | libexecdir | |
733 | sbindir | |
734 | bindir | |
735 | program_transform_name | |
736 | prefix | |
737 | exec_prefix | |
738 | PACKAGE_URL | |
739 | PACKAGE_BUGREPORT | |
740 | PACKAGE_STRING | |
741 | PACKAGE_VERSION | |
742 | PACKAGE_TARNAME | |
743 | PACKAGE_NAME | |
744 | PATH_SEPARATOR | |
745 | SHELL' | |
746 | ac_subst_files='' | |
747 | ac_user_opts=' | |
748 | enable_option_checking | |
69e9da00 | 749 | enable_silent_rules |
a24b9f23 MA |
750 | enable_maintainer_mode |
751 | enable_dependency_tracking | |
752 | enable_debug | |
753 | enable_failover | |
754 | enable_execute | |
755 | enable_tracing | |
756 | enable_delayed_ack | |
757 | enable_dhcpv6 | |
785c1a51 | 758 | enable_dhcpv4o6 |
a24b9f23 MA |
759 | enable_paranoia |
760 | enable_early_chroot | |
761 | enable_ipv4_pktinfo | |
762 | enable_use_sockets | |
763 | enable_secs_byteorder | |
00e9af8e | 764 | enable_log_pid |
3933e2aa | 765 | enable_binary_leases |
a24b9f23 MA |
766 | with_atf |
767 | with_srv_lease_file | |
768 | with_srv6_lease_file | |
769 | with_cli_lease_file | |
770 | with_cli6_lease_file | |
771 | with_srv_pid_file | |
772 | with_srv6_pid_file | |
773 | with_cli_pid_file | |
774 | with_cli6_pid_file | |
775 | with_relay_pid_file | |
776 | with_relay6_pid_file | |
a6ed1aa8 | 777 | with_randomdev |
a24b9f23 MA |
778 | with_libbind |
779 | with_ldap | |
780 | with_ldapcrypto | |
743d6937 TM |
781 | with_ldap_gssapi |
782 | with_ldapcasa | |
a24b9f23 MA |
783 | ' |
784 | ac_precious_vars='build_alias | |
785 | host_alias | |
786 | target_alias | |
787 | CC | |
788 | CFLAGS | |
789 | LDFLAGS | |
790 | LIBS | |
791 | CPPFLAGS | |
792 | CPP' | |
793 | ||
794 | ||
795 | # Initialize some variables set by options. | |
796 | ac_init_help= | |
797 | ac_init_version=false | |
798 | ac_unrecognized_opts= | |
799 | ac_unrecognized_sep= | |
800 | # The variables have the same names as the options, with | |
801 | # dashes changed to underlines. | |
802 | cache_file=/dev/null | |
803 | exec_prefix=NONE | |
804 | no_create= | |
805 | no_recursion= | |
806 | prefix=NONE | |
807 | program_prefix=NONE | |
808 | program_suffix=NONE | |
809 | program_transform_name=s,x,x, | |
810 | silent= | |
fe5b0fdd DH |
811 | site= |
812 | srcdir= | |
813 | verbose= | |
814 | x_includes=NONE | |
815 | x_libraries=NONE | |
816 | ||
817 | # Installation directory options. | |
818 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
819 | # and all the variables that are supposed to be based on exec_prefix | |
820 | # by default will actually change. | |
821 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
4d24561a | 822 | # (The list follows the same order as the GNU Coding Standards.) |
fe5b0fdd DH |
823 | bindir='${exec_prefix}/bin' |
824 | sbindir='${exec_prefix}/sbin' | |
825 | libexecdir='${exec_prefix}/libexec' | |
4d24561a JR |
826 | datarootdir='${prefix}/share' |
827 | datadir='${datarootdir}' | |
fe5b0fdd DH |
828 | sysconfdir='${prefix}/etc' |
829 | sharedstatedir='${prefix}/com' | |
830 | localstatedir='${prefix}/var' | |
831 | includedir='${prefix}/include' | |
832 | oldincludedir='/usr/include' | |
4d24561a JR |
833 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
834 | infodir='${datarootdir}/info' | |
835 | htmldir='${docdir}' | |
836 | dvidir='${docdir}' | |
837 | pdfdir='${docdir}' | |
838 | psdir='${docdir}' | |
839 | libdir='${exec_prefix}/lib' | |
840 | localedir='${datarootdir}/locale' | |
841 | mandir='${datarootdir}/man' | |
fe5b0fdd DH |
842 | |
843 | ac_prev= | |
4d24561a | 844 | ac_dashdash= |
fe5b0fdd DH |
845 | for ac_option |
846 | do | |
847 | # If the previous option needs an argument, assign it. | |
848 | if test -n "$ac_prev"; then | |
4d24561a | 849 | eval $ac_prev=\$ac_option |
fe5b0fdd DH |
850 | ac_prev= |
851 | continue | |
852 | fi | |
853 | ||
4d24561a | 854 | case $ac_option in |
a24b9f23 MA |
855 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
856 | *=) ac_optarg= ;; | |
857 | *) ac_optarg=yes ;; | |
4d24561a | 858 | esac |
fe5b0fdd DH |
859 | |
860 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
861 | ||
4d24561a JR |
862 | case $ac_dashdash$ac_option in |
863 | --) | |
864 | ac_dashdash=yes ;; | |
fe5b0fdd DH |
865 | |
866 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
867 | ac_prev=bindir ;; | |
868 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
869 | bindir=$ac_optarg ;; | |
870 | ||
871 | -build | --build | --buil | --bui | --bu) | |
872 | ac_prev=build_alias ;; | |
873 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
874 | build_alias=$ac_optarg ;; | |
875 | ||
876 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
877 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
878 | ac_prev=cache_file ;; | |
879 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
880 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
881 | cache_file=$ac_optarg ;; | |
882 | ||
883 | --config-cache | -C) | |
884 | cache_file=config.cache ;; | |
885 | ||
4d24561a | 886 | -datadir | --datadir | --datadi | --datad) |
fe5b0fdd | 887 | ac_prev=datadir ;; |
4d24561a | 888 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
fe5b0fdd DH |
889 | datadir=$ac_optarg ;; |
890 | ||
4d24561a JR |
891 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
892 | | --dataroo | --dataro | --datar) | |
893 | ac_prev=datarootdir ;; | |
894 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
895 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
896 | datarootdir=$ac_optarg ;; | |
897 | ||
fe5b0fdd | 898 | -disable-* | --disable-*) |
a24b9f23 | 899 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
fe5b0fdd | 900 | # Reject names that are not valid shell variable names. |
a24b9f23 MA |
901 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
902 | as_fn_error $? "invalid feature name: $ac_useropt" | |
903 | ac_useropt_orig=$ac_useropt | |
904 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
905 | case $ac_user_opts in | |
906 | *" | |
907 | "enable_$ac_useropt" | |
908 | "*) ;; | |
909 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
910 | ac_unrecognized_sep=', ';; | |
911 | esac | |
912 | eval enable_$ac_useropt=no ;; | |
4d24561a JR |
913 | |
914 | -docdir | --docdir | --docdi | --doc | --do) | |
915 | ac_prev=docdir ;; | |
916 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
917 | docdir=$ac_optarg ;; | |
918 | ||
919 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
920 | ac_prev=dvidir ;; | |
921 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
922 | dvidir=$ac_optarg ;; | |
fe5b0fdd DH |
923 | |
924 | -enable-* | --enable-*) | |
a24b9f23 | 925 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
fe5b0fdd | 926 | # Reject names that are not valid shell variable names. |
a24b9f23 MA |
927 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
928 | as_fn_error $? "invalid feature name: $ac_useropt" | |
929 | ac_useropt_orig=$ac_useropt | |
930 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
931 | case $ac_user_opts in | |
932 | *" | |
933 | "enable_$ac_useropt" | |
934 | "*) ;; | |
935 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
936 | ac_unrecognized_sep=', ';; | |
937 | esac | |
938 | eval enable_$ac_useropt=\$ac_optarg ;; | |
fe5b0fdd DH |
939 | |
940 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
941 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
942 | | --exec | --exe | --ex) | |
943 | ac_prev=exec_prefix ;; | |
944 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
945 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
946 | | --exec=* | --exe=* | --ex=*) | |
947 | exec_prefix=$ac_optarg ;; | |
948 | ||
949 | -gas | --gas | --ga | --g) | |
950 | # Obsolete; use --with-gas. | |
951 | with_gas=yes ;; | |
952 | ||
953 | -help | --help | --hel | --he | -h) | |
954 | ac_init_help=long ;; | |
955 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
956 | ac_init_help=recursive ;; | |
957 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
958 | ac_init_help=short ;; | |
959 | ||
960 | -host | --host | --hos | --ho) | |
961 | ac_prev=host_alias ;; | |
962 | -host=* | --host=* | --hos=* | --ho=*) | |
963 | host_alias=$ac_optarg ;; | |
964 | ||
4d24561a JR |
965 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
966 | ac_prev=htmldir ;; | |
967 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
968 | | --ht=*) | |
969 | htmldir=$ac_optarg ;; | |
970 | ||
fe5b0fdd DH |
971 | -includedir | --includedir | --includedi | --included | --include \ |
972 | | --includ | --inclu | --incl | --inc) | |
973 | ac_prev=includedir ;; | |
974 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
975 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
976 | includedir=$ac_optarg ;; | |
977 | ||
978 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
979 | ac_prev=infodir ;; | |
980 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
981 | infodir=$ac_optarg ;; | |
982 | ||
983 | -libdir | --libdir | --libdi | --libd) | |
984 | ac_prev=libdir ;; | |
985 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
986 | libdir=$ac_optarg ;; | |
987 | ||
988 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
989 | | --libexe | --libex | --libe) | |
990 | ac_prev=libexecdir ;; | |
991 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
992 | | --libexe=* | --libex=* | --libe=*) | |
993 | libexecdir=$ac_optarg ;; | |
994 | ||
4d24561a JR |
995 | -localedir | --localedir | --localedi | --localed | --locale) |
996 | ac_prev=localedir ;; | |
997 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
998 | localedir=$ac_optarg ;; | |
999 | ||
fe5b0fdd | 1000 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
4d24561a | 1001 | | --localstate | --localstat | --localsta | --localst | --locals) |
fe5b0fdd DH |
1002 | ac_prev=localstatedir ;; |
1003 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
4d24561a | 1004 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
fe5b0fdd DH |
1005 | localstatedir=$ac_optarg ;; |
1006 | ||
1007 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1008 | ac_prev=mandir ;; | |
1009 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1010 | mandir=$ac_optarg ;; | |
1011 | ||
1012 | -nfp | --nfp | --nf) | |
1013 | # Obsolete; use --without-fp. | |
1014 | with_fp=no ;; | |
1015 | ||
1016 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1017 | | --no-cr | --no-c | -n) | |
1018 | no_create=yes ;; | |
1019 | ||
1020 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1021 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1022 | no_recursion=yes ;; | |
1023 | ||
1024 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1025 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1026 | | --oldin | --oldi | --old | --ol | --o) | |
1027 | ac_prev=oldincludedir ;; | |
1028 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1029 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1030 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1031 | oldincludedir=$ac_optarg ;; | |
1032 | ||
1033 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1034 | ac_prev=prefix ;; | |
1035 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1036 | prefix=$ac_optarg ;; | |
1037 | ||
1038 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1039 | | --program-pre | --program-pr | --program-p) | |
1040 | ac_prev=program_prefix ;; | |
1041 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1042 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1043 | program_prefix=$ac_optarg ;; | |
1044 | ||
1045 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1046 | | --program-suf | --program-su | --program-s) | |
1047 | ac_prev=program_suffix ;; | |
1048 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1049 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1050 | program_suffix=$ac_optarg ;; | |
1051 | ||
1052 | -program-transform-name | --program-transform-name \ | |
1053 | | --program-transform-nam | --program-transform-na \ | |
1054 | | --program-transform-n | --program-transform- \ | |
1055 | | --program-transform | --program-transfor \ | |
1056 | | --program-transfo | --program-transf \ | |
1057 | | --program-trans | --program-tran \ | |
1058 | | --progr-tra | --program-tr | --program-t) | |
1059 | ac_prev=program_transform_name ;; | |
1060 | -program-transform-name=* | --program-transform-name=* \ | |
1061 | | --program-transform-nam=* | --program-transform-na=* \ | |
1062 | | --program-transform-n=* | --program-transform-=* \ | |
1063 | | --program-transform=* | --program-transfor=* \ | |
1064 | | --program-transfo=* | --program-transf=* \ | |
1065 | | --program-trans=* | --program-tran=* \ | |
1066 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1067 | program_transform_name=$ac_optarg ;; | |
1068 | ||
4d24561a JR |
1069 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1070 | ac_prev=pdfdir ;; | |
1071 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1072 | pdfdir=$ac_optarg ;; | |
1073 | ||
1074 | -psdir | --psdir | --psdi | --psd | --ps) | |
1075 | ac_prev=psdir ;; | |
1076 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1077 | psdir=$ac_optarg ;; | |
1078 | ||
fe5b0fdd DH |
1079 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1080 | | -silent | --silent | --silen | --sile | --sil) | |
1081 | silent=yes ;; | |
1082 | ||
1083 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1084 | ac_prev=sbindir ;; | |
1085 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1086 | | --sbi=* | --sb=*) | |
1087 | sbindir=$ac_optarg ;; | |
1088 | ||
1089 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1090 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1091 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1092 | | --sha | --sh) | |
1093 | ac_prev=sharedstatedir ;; | |
1094 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1095 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1096 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1097 | | --sha=* | --sh=*) | |
1098 | sharedstatedir=$ac_optarg ;; | |
1099 | ||
1100 | -site | --site | --sit) | |
1101 | ac_prev=site ;; | |
1102 | -site=* | --site=* | --sit=*) | |
1103 | site=$ac_optarg ;; | |
1104 | ||
1105 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1106 | ac_prev=srcdir ;; | |
1107 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1108 | srcdir=$ac_optarg ;; | |
1109 | ||
1110 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1111 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1112 | ac_prev=sysconfdir ;; | |
1113 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1114 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1115 | sysconfdir=$ac_optarg ;; | |
1116 | ||
1117 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1118 | ac_prev=target_alias ;; | |
1119 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1120 | target_alias=$ac_optarg ;; | |
1121 | ||
1122 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1123 | verbose=yes ;; | |
1124 | ||
1125 | -version | --version | --versio | --versi | --vers | -V) | |
1126 | ac_init_version=: ;; | |
1127 | ||
1128 | -with-* | --with-*) | |
a24b9f23 | 1129 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
fe5b0fdd | 1130 | # Reject names that are not valid shell variable names. |
a24b9f23 MA |
1131 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1132 | as_fn_error $? "invalid package name: $ac_useropt" | |
1133 | ac_useropt_orig=$ac_useropt | |
1134 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1135 | case $ac_user_opts in | |
1136 | *" | |
1137 | "with_$ac_useropt" | |
1138 | "*) ;; | |
1139 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1140 | ac_unrecognized_sep=', ';; | |
1141 | esac | |
1142 | eval with_$ac_useropt=\$ac_optarg ;; | |
fe5b0fdd DH |
1143 | |
1144 | -without-* | --without-*) | |
a24b9f23 | 1145 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
fe5b0fdd | 1146 | # Reject names that are not valid shell variable names. |
a24b9f23 MA |
1147 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1148 | as_fn_error $? "invalid package name: $ac_useropt" | |
1149 | ac_useropt_orig=$ac_useropt | |
1150 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1151 | case $ac_user_opts in | |
1152 | *" | |
1153 | "with_$ac_useropt" | |
1154 | "*) ;; | |
1155 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1156 | ac_unrecognized_sep=', ';; | |
1157 | esac | |
1158 | eval with_$ac_useropt=no ;; | |
fe5b0fdd DH |
1159 | |
1160 | --x) | |
1161 | # Obsolete; use --with-x. | |
1162 | with_x=yes ;; | |
1163 | ||
1164 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1165 | | --x-incl | --x-inc | --x-in | --x-i) | |
1166 | ac_prev=x_includes ;; | |
1167 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1168 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1169 | x_includes=$ac_optarg ;; | |
1170 | ||
1171 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1172 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1173 | ac_prev=x_libraries ;; | |
1174 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1175 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1176 | x_libraries=$ac_optarg ;; | |
1177 | ||
a24b9f23 MA |
1178 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1179 | Try \`$0 --help' for more information" | |
fe5b0fdd DH |
1180 | ;; |
1181 | ||
1182 | *=*) | |
1183 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1184 | # Reject names that are not valid shell variable names. | |
a24b9f23 MA |
1185 | case $ac_envvar in #( |
1186 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1187 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1188 | esac | |
4d24561a | 1189 | eval $ac_envvar=\$ac_optarg |
fe5b0fdd DH |
1190 | export $ac_envvar ;; |
1191 | ||
1192 | *) | |
1193 | # FIXME: should be removed in autoconf 3.0. | |
a24b9f23 | 1194 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
fe5b0fdd | 1195 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
a24b9f23 MA |
1196 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1197 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
fe5b0fdd DH |
1198 | ;; |
1199 | ||
1200 | esac | |
1201 | done | |
1202 | ||
1203 | if test -n "$ac_prev"; then | |
1204 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
a24b9f23 | 1205 | as_fn_error $? "missing argument to $ac_option" |
fe5b0fdd DH |
1206 | fi |
1207 | ||
a24b9f23 MA |
1208 | if test -n "$ac_unrecognized_opts"; then |
1209 | case $enable_option_checking in | |
1210 | no) ;; | |
1211 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1212 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1213 | esac | |
1214 | fi | |
1215 | ||
1216 | # Check all directory arguments for consistency. | |
4d24561a JR |
1217 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1218 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1219 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1220 | libdir localedir mandir | |
7d714d6b | 1221 | do |
4d24561a | 1222 | eval ac_val=\$$ac_var |
a24b9f23 MA |
1223 | # Remove trailing slashes. |
1224 | case $ac_val in | |
1225 | */ ) | |
1226 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1227 | eval $ac_var=\$ac_val;; | |
1228 | esac | |
1229 | # Be sure to have absolute directory names. | |
7d714d6b | 1230 | case $ac_val in |
4d24561a JR |
1231 | [\\/$]* | ?:[\\/]* ) continue;; |
1232 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
fe5b0fdd | 1233 | esac |
a24b9f23 | 1234 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
fe5b0fdd DH |
1235 | done |
1236 | ||
1237 | # There might be people who depend on the old broken behavior: `$host' | |
1238 | # used to hold the argument of --host etc. | |
1239 | # FIXME: To remove some day. | |
1240 | build=$build_alias | |
1241 | host=$host_alias | |
1242 | target=$target_alias | |
1243 | ||
1244 | # FIXME: To remove some day. | |
1245 | if test "x$host_alias" != x; then | |
1246 | if test "x$build_alias" = x; then | |
1247 | cross_compiling=maybe | |
fe5b0fdd DH |
1248 | elif test "x$build_alias" != "x$host_alias"; then |
1249 | cross_compiling=yes | |
1250 | fi | |
1251 | fi | |
1252 | ||
1253 | ac_tool_prefix= | |
1254 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1255 | ||
1256 | test "$silent" = yes && exec 6>/dev/null | |
1257 | ||
1258 | ||
4d24561a JR |
1259 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1260 | ac_ls_di=`ls -di .` && | |
1261 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
a24b9f23 | 1262 | as_fn_error $? "working directory cannot be determined" |
4d24561a | 1263 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
a24b9f23 | 1264 | as_fn_error $? "pwd does not report name of working directory" |
4d24561a JR |
1265 | |
1266 | ||
fe5b0fdd DH |
1267 | # Find the source files, if location was not specified. |
1268 | if test -z "$srcdir"; then | |
1269 | ac_srcdir_defaulted=yes | |
4d24561a | 1270 | # Try the directory containing this script, then the parent directory. |
a24b9f23 MA |
1271 | ac_confdir=`$as_dirname -- "$as_myself" || |
1272 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1273 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1274 | X"$as_myself" : 'X\(//\)$' \| \ | |
1275 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1276 | $as_echo X"$as_myself" | | |
4d24561a JR |
1277 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1278 | s//\1/ | |
1279 | q | |
1280 | } | |
1281 | /^X\(\/\/\)[^/].*/{ | |
1282 | s//\1/ | |
1283 | q | |
1284 | } | |
1285 | /^X\(\/\/\)$/{ | |
1286 | s//\1/ | |
1287 | q | |
1288 | } | |
1289 | /^X\(\/\).*/{ | |
1290 | s//\1/ | |
1291 | q | |
1292 | } | |
1293 | s/.*/./; q'` | |
fe5b0fdd | 1294 | srcdir=$ac_confdir |
4d24561a | 1295 | if test ! -r "$srcdir/$ac_unique_file"; then |
fe5b0fdd DH |
1296 | srcdir=.. |
1297 | fi | |
1298 | else | |
1299 | ac_srcdir_defaulted=no | |
1300 | fi | |
4d24561a JR |
1301 | if test ! -r "$srcdir/$ac_unique_file"; then |
1302 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
a24b9f23 | 1303 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
8d7ba39e | 1304 | fi |
4d24561a JR |
1305 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1306 | ac_abs_confdir=`( | |
a24b9f23 | 1307 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
4d24561a JR |
1308 | pwd)` |
1309 | # When building in place, set srcdir=. | |
1310 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1311 | srcdir=. | |
1312 | fi | |
1313 | # Remove unnecessary trailing slashes from srcdir. | |
1314 | # Double slashes in file names in object file debugging info | |
1315 | # mess up M-x gdb in Emacs. | |
1316 | case $srcdir in | |
1317 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1318 | esac | |
1319 | for ac_var in $ac_precious_vars; do | |
1320 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1321 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1322 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1323 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1324 | done | |
fe5b0fdd DH |
1325 | |
1326 | # | |
1327 | # Report the --help message. | |
1328 | # | |
1329 | if test "$ac_init_help" = "long"; then | |
1330 | # Omit some internal or obsolete options to make the list less imposing. | |
1331 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1332 | cat <<_ACEOF | |
573f1809 | 1333 | \`configure' configures DHCP 4.3.4 to adapt to many kinds of systems. |
fe5b0fdd DH |
1334 | |
1335 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1336 | ||
1337 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1338 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1339 | ||
1340 | Defaults for the options are specified in brackets. | |
1341 | ||
1342 | Configuration: | |
1343 | -h, --help display this help and exit | |
1344 | --help=short display options specific to this package | |
1345 | --help=recursive display the short help of all the included packages | |
1346 | -V, --version display version information and exit | |
a24b9f23 | 1347 | -q, --quiet, --silent do not print \`checking ...' messages |
fe5b0fdd DH |
1348 | --cache-file=FILE cache test results in FILE [disabled] |
1349 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1350 | -n, --no-create do not create output files | |
1351 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1352 | ||
1353 | Installation directories: | |
1354 | --prefix=PREFIX install architecture-independent files in PREFIX | |
a24b9f23 | 1355 | [$ac_default_prefix] |
fe5b0fdd | 1356 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
a24b9f23 | 1357 | [PREFIX] |
fe5b0fdd DH |
1358 | |
1359 | By default, \`make install' will install all the files in | |
1360 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1361 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1362 | for instance \`--prefix=\$HOME'. | |
1363 | ||
1364 | For better control, use the options below. | |
1365 | ||
1366 | Fine tuning of the installation directories: | |
a24b9f23 MA |
1367 | --bindir=DIR user executables [EPREFIX/bin] |
1368 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1369 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1370 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1371 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1372 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1373 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1374 | --includedir=DIR C header files [PREFIX/include] | |
1375 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1376 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1377 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1378 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1379 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1380 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1381 | --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp] | |
1382 | --htmldir=DIR html documentation [DOCDIR] | |
1383 | --dvidir=DIR dvi documentation [DOCDIR] | |
1384 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1385 | --psdir=DIR ps documentation [DOCDIR] | |
fe5b0fdd DH |
1386 | _ACEOF |
1387 | ||
1388 | cat <<\_ACEOF | |
1389 | ||
1390 | Program names: | |
1391 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1392 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1393 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
a24b9f23 MA |
1394 | |
1395 | System types: | |
1396 | --build=BUILD configure for building on BUILD [guessed] | |
1397 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
fe5b0fdd DH |
1398 | _ACEOF |
1399 | fi | |
1400 | ||
1401 | if test -n "$ac_init_help"; then | |
1402 | case $ac_init_help in | |
573f1809 | 1403 | short | recursive ) echo "Configuration of DHCP 4.3.4:";; |
fe5b0fdd DH |
1404 | esac |
1405 | cat <<\_ACEOF | |
1406 | ||
1407 | Optional Features: | |
a24b9f23 | 1408 | --disable-option-checking ignore unrecognized --enable/--with options |
fe5b0fdd DH |
1409 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1410 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
69e9da00 TM |
1411 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1412 | --disable-silent-rules verbose build output (undo: "make V=0") | |
a24b9f23 MA |
1413 | --enable-maintainer-mode |
1414 | enable make rules and dependencies not useful (and | |
1415 | sometimes confusing) to the casual installer | |
1416 | --enable-dependency-tracking | |
1417 | do not reject slow dependency extractors | |
1418 | --disable-dependency-tracking | |
1419 | speeds up one-time build | |
0552f26e DH |
1420 | --enable-debug create a debug-only version of the software (default |
1421 | is no). | |
1422 | --enable-failover enable support for failover (default is yes) | |
1423 | --enable-execute enable support for execute() in config (default is | |
1424 | yes) | |
1425 | --enable-tracing enable support for server activity tracing (default | |
1426 | is yes) | |
7d714d6b | 1427 | --enable-delayed-ack queues multiple DHCPACK replies (default is no) |
cadea5ff | 1428 | --enable-dhcpv6 enable support for DHCPv6 (default is yes) |
785c1a51 FD |
1429 | --enable-dhcpv4o6 enable support for DHCPv4-over-DHCPv6 (default is |
1430 | no) | |
3004d0a3 | 1431 | --enable-paranoia enable support for chroot/setuid (default is no) |
26ef247f | 1432 | --enable-early-chroot enable chrooting prior to configuration (default is |
3004d0a3 | 1433 | no) |
f8cc78ba SR |
1434 | --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets (default is |
1435 | no) | |
1436 | --enable-use-sockets use the standard BSD socket API (default is no) | |
881442e2 SR |
1437 | --enable-secs-byteorder Correct bad byteorders in the secs field (default is |
1438 | no). | |
00e9af8e | 1439 | --enable-log-pid Include PIDs in syslog messages (default is no). |
3933e2aa SR |
1440 | --enable-binary-leases enable support for binary insertion of leases |
1441 | (default is no) | |
fe5b0fdd DH |
1442 | |
1443 | Optional Packages: | |
1444 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1445 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
6913a589 | 1446 | --with-atf=PATH specify location where atf was installed (or "bind") |
fe5b0fdd DH |
1447 | --with-srv-lease-file=PATH |
1448 | File for dhcpd leases (default is | |
1449 | LOCALSTATEDIR/db/dhcpd.leases) | |
8dea7ba7 FD |
1450 | --with-srv6-lease-file=PATH |
1451 | File for dhcpd6 leases (default is | |
1452 | LOCALSTATEDIR/db/dhcpd6.leases) | |
fe5b0fdd DH |
1453 | --with-cli-lease-file=PATH |
1454 | File for dhclient leases (default is | |
1455 | LOCALSTATEDIR/db/dhclient.leases) | |
8dea7ba7 FD |
1456 | --with-cli6-lease-file=PATH |
1457 | File for dhclient6 leases (default is | |
1458 | LOCALSTATEDIR/db/dhclient6.leases) | |
fe5b0fdd DH |
1459 | --with-srv-pid-file=PATH |
1460 | File for dhcpd process information (default is | |
1461 | LOCALSTATEDIR/run/dhcpd.pid) | |
8dea7ba7 FD |
1462 | --with-srv6-pid-file=PATH |
1463 | File for dhcpd6 process information (default is | |
1464 | LOCALSTATEDIR/run/dhcpd6.pid) | |
fe5b0fdd DH |
1465 | --with-cli-pid-file=PATH |
1466 | File for dhclient process information (default is | |
1467 | LOCALSTATEDIR/run/dhclient.pid) | |
8dea7ba7 FD |
1468 | --with-cli6-pid-file=PATH |
1469 | File for dhclient6 process information (default is | |
1470 | LOCALSTATEDIR/run/dhclient6.pid) | |
fe5b0fdd DH |
1471 | --with-relay-pid-file=PATH |
1472 | File for dhcrelay process information (default is | |
1473 | LOCALSTATEDIR/run/dhcrelay.pid) | |
5ce8d6e7 SR |
1474 | --with-relay6-pid-file=PATH |
1475 | File for dhcrelay6 process information (default is | |
1476 | LOCALSTATEDIR/run/dhcrelay6.pid) | |
a6ed1aa8 | 1477 | --with-randomdev=PATH Path for random device (default is /dev/random) |
7a6146d8 | 1478 | --with-libbind=PATH bind includes and libraries are in PATH |
2d5fba9b DH |
1479 | --with-ldap enable OpenLDAP support in dhcpd (default is no) |
1480 | --with-ldapcrypto enable OpenLDAP crypto support in dhcpd (default is | |
1481 | no) | |
743d6937 TM |
1482 | --with-ldap-gssapi enable krb5/gssapi authentication for OpenLDAP in |
1483 | dhcpd (default is no) | |
1484 | --with-ldapcasa enable LDAP CASA auth support in dhcpd (default is | |
1485 | no) | |
fe5b0fdd DH |
1486 | |
1487 | Some influential environment variables: | |
1488 | CC C compiler command | |
1489 | CFLAGS C compiler flags | |
1490 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1491 | nonstandard directory <lib dir> | |
4d24561a | 1492 | LIBS libraries to pass to the linker, e.g. -l<library> |
a24b9f23 | 1493 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
4d24561a | 1494 | you have headers in a nonstandard directory <include dir> |
fe5b0fdd DH |
1495 | CPP C preprocessor |
1496 | ||
1497 | Use these variables to override the choices made by `configure' or to help | |
1498 | it to find libraries and programs with nonstandard names/locations. | |
1499 | ||
1500 | Report bugs to <dhcp-users@isc.org>. | |
1501 | _ACEOF | |
4d24561a | 1502 | ac_status=$? |
fe5b0fdd DH |
1503 | fi |
1504 | ||
1505 | if test "$ac_init_help" = "recursive"; then | |
1506 | # If there are subdirs, report their specific --help. | |
1507 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
a24b9f23 MA |
1508 | test -d "$ac_dir" || |
1509 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1510 | continue | |
fe5b0fdd DH |
1511 | ac_builddir=. |
1512 | ||
4d24561a JR |
1513 | case "$ac_dir" in |
1514 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1515 | *) | |
a24b9f23 | 1516 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
4d24561a | 1517 | # A ".." for each directory in $ac_dir_suffix. |
a24b9f23 | 1518 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
4d24561a JR |
1519 | case $ac_top_builddir_sub in |
1520 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1521 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1522 | esac ;; | |
1523 | esac | |
1524 | ac_abs_top_builddir=$ac_pwd | |
1525 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1526 | # for backward compatibility: | |
1527 | ac_top_builddir=$ac_top_build_prefix | |
fe5b0fdd DH |
1528 | |
1529 | case $srcdir in | |
4d24561a | 1530 | .) # We are building in place. |
fe5b0fdd | 1531 | ac_srcdir=. |
4d24561a JR |
1532 | ac_top_srcdir=$ac_top_builddir_sub |
1533 | ac_abs_top_srcdir=$ac_pwd ;; | |
1534 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fe5b0fdd | 1535 | ac_srcdir=$srcdir$ac_dir_suffix; |
4d24561a JR |
1536 | ac_top_srcdir=$srcdir |
1537 | ac_abs_top_srcdir=$srcdir ;; | |
1538 | *) # Relative name. | |
1539 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1540 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1541 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
7d714d6b | 1542 | esac |
4d24561a JR |
1543 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1544 | ||
1545 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1546 | # Check for guested configure. | |
1547 | if test -f "$ac_srcdir/configure.gnu"; then | |
1548 | echo && | |
1549 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1550 | elif test -f "$ac_srcdir/configure"; then | |
1551 | echo && | |
1552 | $SHELL "$ac_srcdir/configure" --help=recursive | |
fe5b0fdd | 1553 | else |
a24b9f23 | 1554 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
4d24561a JR |
1555 | fi || ac_status=$? |
1556 | cd "$ac_pwd" || { ac_status=$?; break; } | |
fe5b0fdd DH |
1557 | done |
1558 | fi | |
1559 | ||
4d24561a | 1560 | test -n "$ac_init_help" && exit $ac_status |
fe5b0fdd DH |
1561 | if $ac_init_version; then |
1562 | cat <<\_ACEOF | |
573f1809 | 1563 | DHCP configure 4.3.4 |
a24b9f23 | 1564 | generated by GNU Autoconf 2.69 |
fe5b0fdd | 1565 | |
a24b9f23 | 1566 | Copyright (C) 2012 Free Software Foundation, Inc. |
fe5b0fdd DH |
1567 | This configure script is free software; the Free Software Foundation |
1568 | gives unlimited permission to copy, distribute and modify it. | |
1569 | _ACEOF | |
4d24561a | 1570 | exit |
fe5b0fdd | 1571 | fi |
fe5b0fdd | 1572 | |
a24b9f23 MA |
1573 | ## ------------------------ ## |
1574 | ## Autoconf initialization. ## | |
1575 | ## ------------------------ ## | |
4a70cb10 | 1576 | |
a24b9f23 MA |
1577 | # ac_fn_c_try_compile LINENO |
1578 | # -------------------------- | |
1579 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1580 | ac_fn_c_try_compile () | |
1581 | { | |
1582 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1583 | rm -f conftest.$ac_objext | |
1584 | if { { ac_try="$ac_compile" | |
1585 | case "(($ac_try" in | |
1586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1587 | *) ac_try_echo=$ac_try;; | |
1588 | esac | |
1589 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1590 | $as_echo "$ac_try_echo"; } >&5 | |
1591 | (eval "$ac_compile") 2>conftest.err | |
1592 | ac_status=$? | |
1593 | if test -s conftest.err; then | |
1594 | grep -v '^ *+' conftest.err >conftest.er1 | |
1595 | cat conftest.er1 >&5 | |
1596 | mv -f conftest.er1 conftest.err | |
1597 | fi | |
1598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1599 | test $ac_status = 0; } && { | |
1600 | test -z "$ac_c_werror_flag" || | |
1601 | test ! -s conftest.err | |
1602 | } && test -s conftest.$ac_objext; then : | |
1603 | ac_retval=0 | |
1604 | else | |
1605 | $as_echo "$as_me: failed program was:" >&5 | |
1606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4a70cb10 | 1607 | |
a24b9f23 MA |
1608 | ac_retval=1 |
1609 | fi | |
1610 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1611 | as_fn_set_status $ac_retval | |
1612 | ||
1613 | } # ac_fn_c_try_compile | |
1614 | ||
1615 | # ac_fn_c_try_cpp LINENO | |
1616 | # ---------------------- | |
1617 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1618 | ac_fn_c_try_cpp () | |
fe5b0fdd | 1619 | { |
a24b9f23 MA |
1620 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1621 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1622 | case "(($ac_try" in | |
1623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1624 | *) ac_try_echo=$ac_try;; | |
1625 | esac | |
1626 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1627 | $as_echo "$ac_try_echo"; } >&5 | |
1628 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1629 | ac_status=$? | |
1630 | if test -s conftest.err; then | |
1631 | grep -v '^ *+' conftest.err >conftest.er1 | |
1632 | cat conftest.er1 >&5 | |
1633 | mv -f conftest.er1 conftest.err | |
1634 | fi | |
1635 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1636 | test $ac_status = 0; } > conftest.i && { | |
1637 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1638 | test ! -s conftest.err | |
1639 | }; then : | |
1640 | ac_retval=0 | |
1641 | else | |
1642 | $as_echo "$as_me: failed program was:" >&5 | |
1643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe5b0fdd | 1644 | |
a24b9f23 MA |
1645 | ac_retval=1 |
1646 | fi | |
1647 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1648 | as_fn_set_status $ac_retval | |
fe5b0fdd | 1649 | |
a24b9f23 | 1650 | } # ac_fn_c_try_cpp |
fe5b0fdd | 1651 | |
a24b9f23 MA |
1652 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1653 | # ------------------------------------------------------- | |
1654 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1655 | # the include files in INCLUDES and setting the cache variable VAR | |
1656 | # accordingly. | |
1657 | ac_fn_c_check_header_mongrel () | |
1658 | { | |
1659 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1660 | if eval \${$3+:} false; then : | |
1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1662 | $as_echo_n "checking for $2... " >&6; } | |
1663 | if eval \${$3+:} false; then : | |
1664 | $as_echo_n "(cached) " >&6 | |
1665 | fi | |
1666 | eval ac_res=\$$3 | |
1667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1668 | $as_echo "$ac_res" >&6; } | |
1669 | else | |
1670 | # Is the header compilable? | |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1672 | $as_echo_n "checking $2 usability... " >&6; } | |
1673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1674 | /* end confdefs.h. */ | |
1675 | $4 | |
1676 | #include <$2> | |
1677 | _ACEOF | |
1678 | if ac_fn_c_try_compile "$LINENO"; then : | |
1679 | ac_header_compiler=yes | |
1680 | else | |
1681 | ac_header_compiler=no | |
1682 | fi | |
1683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1685 | $as_echo "$ac_header_compiler" >&6; } | |
fe5b0fdd | 1686 | |
a24b9f23 MA |
1687 | # Is the header present? |
1688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1689 | $as_echo_n "checking $2 presence... " >&6; } | |
1690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1691 | /* end confdefs.h. */ | |
1692 | #include <$2> | |
1693 | _ACEOF | |
1694 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1695 | ac_header_preproc=yes | |
1696 | else | |
1697 | ac_header_preproc=no | |
1698 | fi | |
1699 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1701 | $as_echo "$ac_header_preproc" >&6; } | |
fe5b0fdd | 1702 | |
a24b9f23 MA |
1703 | # So? What about this header? |
1704 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1705 | yes:no: ) | |
1706 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1707 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1709 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1710 | ;; | |
1711 | no:yes:* ) | |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1713 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1715 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1717 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1719 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1721 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1722 | ( $as_echo "## --------------------------------- ## | |
1723 | ## Report this to dhcp-users@isc.org ## | |
1724 | ## --------------------------------- ##" | |
1725 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1726 | ;; | |
1727 | esac | |
1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1729 | $as_echo_n "checking for $2... " >&6; } | |
1730 | if eval \${$3+:} false; then : | |
1731 | $as_echo_n "(cached) " >&6 | |
1732 | else | |
1733 | eval "$3=\$ac_header_compiler" | |
1734 | fi | |
1735 | eval ac_res=\$$3 | |
1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1737 | $as_echo "$ac_res" >&6; } | |
1738 | fi | |
1739 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
fe5b0fdd | 1740 | |
a24b9f23 | 1741 | } # ac_fn_c_check_header_mongrel |
fe5b0fdd | 1742 | |
a24b9f23 MA |
1743 | # ac_fn_c_try_run LINENO |
1744 | # ---------------------- | |
1745 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1746 | # that executables *can* be run. | |
1747 | ac_fn_c_try_run () | |
1748 | { | |
1749 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1750 | if { { ac_try="$ac_link" | |
1751 | case "(($ac_try" in | |
1752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1753 | *) ac_try_echo=$ac_try;; | |
1754 | esac | |
1755 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1756 | $as_echo "$ac_try_echo"; } >&5 | |
1757 | (eval "$ac_link") 2>&5 | |
1758 | ac_status=$? | |
1759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1760 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1761 | { { case "(($ac_try" in | |
1762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1763 | *) ac_try_echo=$ac_try;; | |
1764 | esac | |
1765 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1766 | $as_echo "$ac_try_echo"; } >&5 | |
1767 | (eval "$ac_try") 2>&5 | |
1768 | ac_status=$? | |
1769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1770 | test $ac_status = 0; }; }; then : | |
1771 | ac_retval=0 | |
1772 | else | |
1773 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1774 | $as_echo "$as_me: failed program was:" >&5 | |
1775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe5b0fdd | 1776 | |
a24b9f23 MA |
1777 | ac_retval=$ac_status |
1778 | fi | |
1779 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1780 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1781 | as_fn_set_status $ac_retval | |
fe5b0fdd | 1782 | |
a24b9f23 | 1783 | } # ac_fn_c_try_run |
fe5b0fdd | 1784 | |
a24b9f23 MA |
1785 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1786 | # ------------------------------------------------------- | |
1787 | # Tests whether HEADER exists and can be compiled using the include files in | |
1788 | # INCLUDES, setting the cache variable VAR accordingly. | |
1789 | ac_fn_c_check_header_compile () | |
1790 | { | |
1791 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1793 | $as_echo_n "checking for $2... " >&6; } | |
1794 | if eval \${$3+:} false; then : | |
1795 | $as_echo_n "(cached) " >&6 | |
1796 | else | |
1797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1798 | /* end confdefs.h. */ | |
1799 | $4 | |
1800 | #include <$2> | |
fe5b0fdd | 1801 | _ACEOF |
a24b9f23 MA |
1802 | if ac_fn_c_try_compile "$LINENO"; then : |
1803 | eval "$3=yes" | |
1804 | else | |
1805 | eval "$3=no" | |
1806 | fi | |
1807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1808 | fi | |
1809 | eval ac_res=\$$3 | |
1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1811 | $as_echo "$ac_res" >&6; } | |
1812 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
fe5b0fdd | 1813 | |
a24b9f23 | 1814 | } # ac_fn_c_check_header_compile |
fe5b0fdd | 1815 | |
a24b9f23 MA |
1816 | # ac_fn_c_find_intX_t LINENO BITS VAR |
1817 | # ----------------------------------- | |
1818 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
1819 | # accordingly. | |
1820 | ac_fn_c_find_intX_t () | |
1821 | { | |
1822 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
1824 | $as_echo_n "checking for int$2_t... " >&6; } | |
1825 | if eval \${$3+:} false; then : | |
1826 | $as_echo_n "(cached) " >&6 | |
1827 | else | |
1828 | eval "$3=no" | |
1829 | # Order is important - never check a type that is potentially smaller | |
1830 | # than half of the expected target width. | |
1831 | for ac_type in int$2_t 'int' 'long int' \ | |
1832 | 'long long int' 'short int' 'signed char'; do | |
1833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1834 | /* end confdefs.h. */ | |
1835 | $ac_includes_default | |
1836 | enum { N = $2 / 2 - 1 }; | |
1837 | int | |
1838 | main () | |
1839 | { | |
1840 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | |
1841 | test_array [0] = 0; | |
1842 | return test_array [0]; | |
fe5b0fdd | 1843 | |
a24b9f23 MA |
1844 | ; |
1845 | return 0; | |
1846 | } | |
4a70cb10 | 1847 | _ACEOF |
a24b9f23 MA |
1848 | if ac_fn_c_try_compile "$LINENO"; then : |
1849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1850 | /* end confdefs.h. */ | |
1851 | $ac_includes_default | |
1852 | enum { N = $2 / 2 - 1 }; | |
1853 | int | |
1854 | main () | |
1855 | { | |
1856 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
1857 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
1858 | test_array [0] = 0; | |
1859 | return test_array [0]; | |
fe5b0fdd | 1860 | |
a24b9f23 MA |
1861 | ; |
1862 | return 0; | |
1863 | } | |
529be52a | 1864 | _ACEOF |
a24b9f23 | 1865 | if ac_fn_c_try_compile "$LINENO"; then : |
fe5b0fdd | 1866 | |
a24b9f23 MA |
1867 | else |
1868 | case $ac_type in #( | |
1869 | int$2_t) : | |
1870 | eval "$3=yes" ;; #( | |
1871 | *) : | |
1872 | eval "$3=\$ac_type" ;; | |
1873 | esac | |
1874 | fi | |
1875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1876 | fi | |
1877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1878 | if eval test \"x\$"$3"\" = x"no"; then : | |
fe5b0fdd | 1879 | |
a24b9f23 MA |
1880 | else |
1881 | break | |
1882 | fi | |
1883 | done | |
1884 | fi | |
1885 | eval ac_res=\$$3 | |
1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1887 | $as_echo "$ac_res" >&6; } | |
1888 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
fe5b0fdd | 1889 | |
a24b9f23 | 1890 | } # ac_fn_c_find_intX_t |
fe5b0fdd | 1891 | |
a24b9f23 MA |
1892 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1893 | # ------------------------------------------- | |
1894 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1895 | # variable VAR accordingly. | |
1896 | ac_fn_c_check_type () | |
1897 | { | |
1898 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1900 | $as_echo_n "checking for $2... " >&6; } | |
1901 | if eval \${$3+:} false; then : | |
1902 | $as_echo_n "(cached) " >&6 | |
1903 | else | |
1904 | eval "$3=no" | |
1905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1906 | /* end confdefs.h. */ | |
1907 | $4 | |
1908 | int | |
1909 | main () | |
1910 | { | |
1911 | if (sizeof ($2)) | |
1912 | return 0; | |
1913 | ; | |
1914 | return 0; | |
1915 | } | |
4a70cb10 | 1916 | _ACEOF |
a24b9f23 MA |
1917 | if ac_fn_c_try_compile "$LINENO"; then : |
1918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1919 | /* end confdefs.h. */ | |
1920 | $4 | |
1921 | int | |
1922 | main () | |
1923 | { | |
1924 | if (sizeof (($2))) | |
1925 | return 0; | |
1926 | ; | |
1927 | return 0; | |
1928 | } | |
4a70cb10 | 1929 | _ACEOF |
a24b9f23 | 1930 | if ac_fn_c_try_compile "$LINENO"; then : |
529be52a | 1931 | |
4a70cb10 | 1932 | else |
a24b9f23 | 1933 | eval "$3=yes" |
4a70cb10 | 1934 | fi |
a24b9f23 | 1935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4a70cb10 | 1936 | fi |
a24b9f23 | 1937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4a70cb10 | 1938 | fi |
a24b9f23 MA |
1939 | eval ac_res=\$$3 |
1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1941 | $as_echo "$ac_res" >&6; } | |
1942 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
fe5b0fdd | 1943 | |
a24b9f23 | 1944 | } # ac_fn_c_check_type |
fe5b0fdd | 1945 | |
a24b9f23 MA |
1946 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
1947 | # ------------------------------------ | |
1948 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
1949 | # accordingly. | |
1950 | ac_fn_c_find_uintX_t () | |
1951 | { | |
1952 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
1954 | $as_echo_n "checking for uint$2_t... " >&6; } | |
1955 | if eval \${$3+:} false; then : | |
1956 | $as_echo_n "(cached) " >&6 | |
1957 | else | |
1958 | eval "$3=no" | |
1959 | # Order is important - never check a type that is potentially smaller | |
1960 | # than half of the expected target width. | |
1961 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
1962 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
1963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1964 | /* end confdefs.h. */ | |
1965 | $ac_includes_default | |
1966 | int | |
1967 | main () | |
1968 | { | |
1969 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | |
1970 | test_array [0] = 0; | |
1971 | return test_array [0]; | |
fe5b0fdd | 1972 | |
a24b9f23 MA |
1973 | ; |
1974 | return 0; | |
1975 | } | |
1976 | _ACEOF | |
1977 | if ac_fn_c_try_compile "$LINENO"; then : | |
1978 | case $ac_type in #( | |
1979 | uint$2_t) : | |
1980 | eval "$3=yes" ;; #( | |
1981 | *) : | |
1982 | eval "$3=\$ac_type" ;; | |
1983 | esac | |
1984 | fi | |
1985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1986 | if eval test \"x\$"$3"\" = x"no"; then : | |
fe5b0fdd | 1987 | |
a24b9f23 MA |
1988 | else |
1989 | break | |
1990 | fi | |
1991 | done | |
1992 | fi | |
1993 | eval ac_res=\$$3 | |
1994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1995 | $as_echo "$ac_res" >&6; } | |
1996 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
fe5b0fdd | 1997 | |
a24b9f23 | 1998 | } # ac_fn_c_find_uintX_t |
fe5b0fdd | 1999 | |
a24b9f23 MA |
2000 | # ac_fn_c_try_link LINENO |
2001 | # ----------------------- | |
2002 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2003 | ac_fn_c_try_link () | |
2004 | { | |
2005 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2006 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2007 | if { { ac_try="$ac_link" | |
2008 | case "(($ac_try" in | |
2009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2010 | *) ac_try_echo=$ac_try;; | |
2011 | esac | |
2012 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2013 | $as_echo "$ac_try_echo"; } >&5 | |
2014 | (eval "$ac_link") 2>conftest.err | |
2015 | ac_status=$? | |
2016 | if test -s conftest.err; then | |
2017 | grep -v '^ *+' conftest.err >conftest.er1 | |
2018 | cat conftest.er1 >&5 | |
2019 | mv -f conftest.er1 conftest.err | |
2020 | fi | |
2021 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2022 | test $ac_status = 0; } && { | |
2023 | test -z "$ac_c_werror_flag" || | |
2024 | test ! -s conftest.err | |
2025 | } && test -s conftest$ac_exeext && { | |
2026 | test "$cross_compiling" = yes || | |
2027 | test -x conftest$ac_exeext | |
2028 | }; then : | |
2029 | ac_retval=0 | |
2030 | else | |
2031 | $as_echo "$as_me: failed program was:" >&5 | |
2032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe5b0fdd | 2033 | |
a24b9f23 MA |
2034 | ac_retval=1 |
2035 | fi | |
2036 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2037 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2038 | # interfere with the next link command; also delete a directory that is | |
2039 | # left behind by Apple's compiler. We do this before executing the actions. | |
2040 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2041 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2042 | as_fn_set_status $ac_retval | |
fe5b0fdd | 2043 | |
a24b9f23 | 2044 | } # ac_fn_c_try_link |
fe5b0fdd | 2045 | |
dc9d7b08 MA |
2046 | # ac_fn_c_check_func LINENO FUNC VAR |
2047 | # ---------------------------------- | |
2048 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2049 | ac_fn_c_check_func () | |
2050 | { | |
2051 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2053 | $as_echo_n "checking for $2... " >&6; } | |
2054 | if eval \${$3+:} false; then : | |
2055 | $as_echo_n "(cached) " >&6 | |
2056 | else | |
2057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2058 | /* end confdefs.h. */ | |
2059 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2060 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2061 | #define $2 innocuous_$2 | |
2062 | ||
2063 | /* System header to define __stub macros and hopefully few prototypes, | |
2064 | which can conflict with char $2 (); below. | |
2065 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2066 | <limits.h> exists even on freestanding compilers. */ | |
2067 | ||
2068 | #ifdef __STDC__ | |
2069 | # include <limits.h> | |
2070 | #else | |
2071 | # include <assert.h> | |
2072 | #endif | |
2073 | ||
2074 | #undef $2 | |
2075 | ||
2076 | /* Override any GCC internal prototype to avoid an error. | |
2077 | Use char because int might match the return type of a GCC | |
2078 | builtin and then its argument prototype would still apply. */ | |
2079 | #ifdef __cplusplus | |
2080 | extern "C" | |
2081 | #endif | |
2082 | char $2 (); | |
2083 | /* The GNU C library defines this for functions which it implements | |
2084 | to always fail with ENOSYS. Some functions are actually named | |
2085 | something starting with __ and the normal name is an alias. */ | |
2086 | #if defined __stub_$2 || defined __stub___$2 | |
2087 | choke me | |
2088 | #endif | |
2089 | ||
2090 | int | |
2091 | main () | |
2092 | { | |
2093 | return $2 (); | |
2094 | ; | |
2095 | return 0; | |
2096 | } | |
2097 | _ACEOF | |
2098 | if ac_fn_c_try_link "$LINENO"; then : | |
2099 | eval "$3=yes" | |
2100 | else | |
2101 | eval "$3=no" | |
2102 | fi | |
2103 | rm -f core conftest.err conftest.$ac_objext \ | |
2104 | conftest$ac_exeext conftest.$ac_ext | |
2105 | fi | |
2106 | eval ac_res=\$$3 | |
2107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2108 | $as_echo "$ac_res" >&6; } | |
2109 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2110 | ||
2111 | } # ac_fn_c_check_func | |
2112 | ||
a24b9f23 MA |
2113 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2114 | # ---------------------------------------------------- | |
2115 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2116 | # INCLUDES, setting cache variable VAR accordingly. | |
2117 | ac_fn_c_check_member () | |
2118 | { | |
2119 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2121 | $as_echo_n "checking for $2.$3... " >&6; } | |
2122 | if eval \${$4+:} false; then : | |
2123 | $as_echo_n "(cached) " >&6 | |
2124 | else | |
2125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2126 | /* end confdefs.h. */ | |
2127 | $5 | |
2128 | int | |
2129 | main () | |
2130 | { | |
2131 | static $2 ac_aggr; | |
2132 | if (ac_aggr.$3) | |
2133 | return 0; | |
2134 | ; | |
2135 | return 0; | |
2136 | } | |
2137 | _ACEOF | |
2138 | if ac_fn_c_try_compile "$LINENO"; then : | |
2139 | eval "$4=yes" | |
2140 | else | |
2141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2142 | /* end confdefs.h. */ | |
2143 | $5 | |
2144 | int | |
2145 | main () | |
2146 | { | |
2147 | static $2 ac_aggr; | |
2148 | if (sizeof ac_aggr.$3) | |
2149 | return 0; | |
2150 | ; | |
2151 | return 0; | |
2152 | } | |
2153 | _ACEOF | |
2154 | if ac_fn_c_try_compile "$LINENO"; then : | |
2155 | eval "$4=yes" | |
2156 | else | |
2157 | eval "$4=no" | |
2158 | fi | |
2159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2160 | fi | |
2161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2162 | fi | |
2163 | eval ac_res=\$$4 | |
2164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2165 | $as_echo "$ac_res" >&6; } | |
2166 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
fe5b0fdd | 2167 | |
a24b9f23 | 2168 | } # ac_fn_c_check_member |
fe5b0fdd | 2169 | |
a24b9f23 MA |
2170 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2171 | # -------------------------------------------- | |
2172 | # Tries to find the compile-time value of EXPR in a program that includes | |
2173 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2174 | # computed | |
2175 | ac_fn_c_compute_int () | |
2176 | { | |
2177 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2178 | if test "$cross_compiling" = yes; then | |
2179 | # Depending upon the size, compute the lo and hi bounds. | |
2180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2181 | /* end confdefs.h. */ | |
2182 | $4 | |
2183 | int | |
2184 | main () | |
2185 | { | |
2186 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2187 | test_array [0] = 0; | |
2188 | return test_array [0]; | |
4d24561a | 2189 | |
a24b9f23 MA |
2190 | ; |
2191 | return 0; | |
2192 | } | |
2193 | _ACEOF | |
2194 | if ac_fn_c_try_compile "$LINENO"; then : | |
2195 | ac_lo=0 ac_mid=0 | |
2196 | while :; do | |
2197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2198 | /* end confdefs.h. */ | |
2199 | $4 | |
2200 | int | |
2201 | main () | |
2202 | { | |
2203 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2204 | test_array [0] = 0; | |
2205 | return test_array [0]; | |
fe5b0fdd | 2206 | |
a24b9f23 MA |
2207 | ; |
2208 | return 0; | |
2209 | } | |
2210 | _ACEOF | |
2211 | if ac_fn_c_try_compile "$LINENO"; then : | |
2212 | ac_hi=$ac_mid; break | |
2213 | else | |
2214 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2215 | if test $ac_lo -le $ac_mid; then | |
2216 | ac_lo= ac_hi= | |
2217 | break | |
2218 | fi | |
2219 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2220 | fi | |
2221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2222 | done | |
2223 | else | |
2224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2225 | /* end confdefs.h. */ | |
2226 | $4 | |
2227 | int | |
2228 | main () | |
2229 | { | |
2230 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2231 | test_array [0] = 0; | |
2232 | return test_array [0]; | |
fe5b0fdd | 2233 | |
a24b9f23 MA |
2234 | ; |
2235 | return 0; | |
2236 | } | |
2237 | _ACEOF | |
2238 | if ac_fn_c_try_compile "$LINENO"; then : | |
2239 | ac_hi=-1 ac_mid=-1 | |
2240 | while :; do | |
2241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2242 | /* end confdefs.h. */ | |
2243 | $4 | |
2244 | int | |
2245 | main () | |
2246 | { | |
2247 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2248 | test_array [0] = 0; | |
2249 | return test_array [0]; | |
fe5b0fdd | 2250 | |
a24b9f23 MA |
2251 | ; |
2252 | return 0; | |
2253 | } | |
2254 | _ACEOF | |
2255 | if ac_fn_c_try_compile "$LINENO"; then : | |
2256 | ac_lo=$ac_mid; break | |
2257 | else | |
2258 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2259 | if test $ac_mid -le $ac_hi; then | |
2260 | ac_lo= ac_hi= | |
2261 | break | |
2262 | fi | |
2263 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2264 | fi | |
2265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2266 | done | |
2267 | else | |
2268 | ac_lo= ac_hi= | |
2269 | fi | |
2270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2271 | fi | |
2272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2273 | # Binary search between lo and hi bounds. | |
2274 | while test "x$ac_lo" != "x$ac_hi"; do | |
2275 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2277 | /* end confdefs.h. */ | |
2278 | $4 | |
2279 | int | |
2280 | main () | |
2281 | { | |
2282 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2283 | test_array [0] = 0; | |
2284 | return test_array [0]; | |
fe5b0fdd | 2285 | |
a24b9f23 MA |
2286 | ; |
2287 | return 0; | |
2288 | } | |
2289 | _ACEOF | |
2290 | if ac_fn_c_try_compile "$LINENO"; then : | |
2291 | ac_hi=$ac_mid | |
2292 | else | |
2293 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2294 | fi | |
2295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2296 | done | |
2297 | case $ac_lo in #(( | |
2298 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2299 | '') ac_retval=1 ;; | |
2300 | esac | |
2301 | else | |
2302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2303 | /* end confdefs.h. */ | |
2304 | $4 | |
2305 | static long int longval () { return $2; } | |
2306 | static unsigned long int ulongval () { return $2; } | |
2307 | #include <stdio.h> | |
2308 | #include <stdlib.h> | |
2309 | int | |
2310 | main () | |
2311 | { | |
4d24561a | 2312 | |
a24b9f23 MA |
2313 | FILE *f = fopen ("conftest.val", "w"); |
2314 | if (! f) | |
2315 | return 1; | |
2316 | if (($2) < 0) | |
2317 | { | |
2318 | long int i = longval (); | |
2319 | if (i != ($2)) | |
2320 | return 1; | |
2321 | fprintf (f, "%ld", i); | |
2322 | } | |
2323 | else | |
2324 | { | |
2325 | unsigned long int i = ulongval (); | |
2326 | if (i != ($2)) | |
2327 | return 1; | |
2328 | fprintf (f, "%lu", i); | |
2329 | } | |
2330 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2331 | on some platforms. */ | |
2332 | return ferror (f) || fclose (f) != 0; | |
4d24561a | 2333 | |
a24b9f23 MA |
2334 | ; |
2335 | return 0; | |
2336 | } | |
2337 | _ACEOF | |
2338 | if ac_fn_c_try_run "$LINENO"; then : | |
2339 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2340 | else | |
2341 | ac_retval=1 | |
2342 | fi | |
2343 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2344 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2345 | rm -f conftest.val | |
8d7ba39e | 2346 | |
a24b9f23 MA |
2347 | fi |
2348 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2349 | as_fn_set_status $ac_retval | |
8d7ba39e | 2350 | |
a24b9f23 MA |
2351 | } # ac_fn_c_compute_int |
2352 | cat >config.log <<_ACEOF | |
2353 | This file contains any messages produced by compilers while | |
2354 | running configure, to aid debugging if configure makes a mistake. | |
2d5fba9b | 2355 | |
573f1809 | 2356 | It was created by DHCP $as_me 4.3.4, which was |
a24b9f23 | 2357 | generated by GNU Autoconf 2.69. Invocation command line was |
6e999c3c | 2358 | |
a24b9f23 | 2359 | $ $0 $@ |
6e999c3c | 2360 | |
a24b9f23 MA |
2361 | _ACEOF |
2362 | exec 5>>config.log | |
2363 | { | |
2364 | cat <<_ASUNAME | |
2365 | ## --------- ## | |
2366 | ## Platform. ## | |
2367 | ## --------- ## | |
6e999c3c | 2368 | |
a24b9f23 MA |
2369 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2370 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2371 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2372 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2373 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
7f45c65c | 2374 | |
a24b9f23 MA |
2375 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2376 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
7f45c65c | 2377 | |
a24b9f23 MA |
2378 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2379 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2380 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2381 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2382 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2383 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2384 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
237bfdc9 | 2385 | |
a24b9f23 | 2386 | _ASUNAME |
4a70cb10 | 2387 | |
a24b9f23 | 2388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4a70cb10 TM |
2389 | for as_dir in $PATH |
2390 | do | |
2391 | IFS=$as_save_IFS | |
2392 | test -z "$as_dir" && as_dir=. | |
a24b9f23 MA |
2393 | $as_echo "PATH: $as_dir" |
2394 | done | |
4a70cb10 | 2395 | IFS=$as_save_IFS |
ded99fc7 | 2396 | |
a24b9f23 | 2397 | } >&5 |
ded99fc7 | 2398 | |
a24b9f23 | 2399 | cat >&5 <<_ACEOF |
7d714d6b | 2400 | |
7d714d6b | 2401 | |
a24b9f23 MA |
2402 | ## ----------- ## |
2403 | ## Core tests. ## | |
2404 | ## ----------- ## | |
5ce8d6e7 | 2405 | |
a24b9f23 | 2406 | _ACEOF |
5ce8d6e7 SR |
2407 | |
2408 | ||
a24b9f23 MA |
2409 | # Keep a trace of the command line. |
2410 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2411 | # Strip out --silent because we don't want to record it for future runs. | |
2412 | # Also quote any args containing shell meta-characters. | |
2413 | # Make two passes to allow for proper duplicate-argument suppression. | |
2414 | ac_configure_args= | |
2415 | ac_configure_args0= | |
2416 | ac_configure_args1= | |
2417 | ac_must_keep_next=false | |
2418 | for ac_pass in 1 2 | |
2419 | do | |
2420 | for ac_arg | |
2421 | do | |
2422 | case $ac_arg in | |
2423 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2424 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2425 | | -silent | --silent | --silen | --sile | --sil) | |
2426 | continue ;; | |
2427 | *\'*) | |
2428 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2429 | esac | |
2430 | case $ac_pass in | |
2431 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2432 | 2) | |
2433 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2434 | if test $ac_must_keep_next = true; then | |
2435 | ac_must_keep_next=false # Got value, back to normal. | |
4a70cb10 | 2436 | else |
a24b9f23 MA |
2437 | case $ac_arg in |
2438 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2439 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2440 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2441 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2442 | case "$ac_configure_args0 " in | |
2443 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2444 | esac | |
2445 | ;; | |
2446 | -* ) ac_must_keep_next=true ;; | |
2447 | esac | |
4a70cb10 | 2448 | fi |
a24b9f23 | 2449 | as_fn_append ac_configure_args " '$ac_arg'" |
4a70cb10 | 2450 | ;; |
4a70cb10 | 2451 | esac |
4a70cb10 | 2452 | done |
a24b9f23 MA |
2453 | done |
2454 | { ac_configure_args0=; unset ac_configure_args0;} | |
2455 | { ac_configure_args1=; unset ac_configure_args1;} | |
d5e0cd6f | 2456 | |
a24b9f23 MA |
2457 | # When interrupted or exit'd, cleanup temporary files, and complete |
2458 | # config.log. We remove comments because anyway the quotes in there | |
2459 | # would cause problems or look ugly. | |
2460 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2461 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2462 | trap 'exit_status=$? | |
2463 | # Save into config.log some information that might help in debugging. | |
2464 | { | |
2465 | echo | |
529be52a | 2466 | |
a24b9f23 MA |
2467 | $as_echo "## ---------------- ## |
2468 | ## Cache variables. ## | |
2469 | ## ---------------- ##" | |
2470 | echo | |
2471 | # The following way of writing the cache mishandles newlines in values, | |
2472 | ( | |
2473 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2474 | eval ac_val=\$$ac_var | |
2475 | case $ac_val in #( | |
2476 | *${as_nl}*) | |
2477 | case $ac_var in #( | |
2478 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2479 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2480 | esac | |
2481 | case $ac_var in #( | |
2482 | _ | IFS | as_nl) ;; #( | |
2483 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2484 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2485 | esac ;; | |
2486 | esac | |
2487 | done | |
2488 | (set) 2>&1 | | |
2489 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2490 | *${as_nl}ac_space=\ *) | |
2491 | sed -n \ | |
2492 | "s/'\''/'\''\\\\'\'''\''/g; | |
2493 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2494 | ;; #( | |
2495 | *) | |
2496 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2497 | ;; | |
2498 | esac | | |
2499 | sort | |
2500 | ) | |
2501 | echo | |
529be52a | 2502 | |
a24b9f23 MA |
2503 | $as_echo "## ----------------- ## |
2504 | ## Output variables. ## | |
2505 | ## ----------------- ##" | |
2506 | echo | |
2507 | for ac_var in $ac_subst_vars | |
2508 | do | |
2509 | eval ac_val=\$$ac_var | |
2510 | case $ac_val in | |
2511 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2512 | esac | |
2513 | $as_echo "$ac_var='\''$ac_val'\''" | |
2514 | done | sort | |
2515 | echo | |
529be52a | 2516 | |
a24b9f23 MA |
2517 | if test -n "$ac_subst_files"; then |
2518 | $as_echo "## ------------------- ## | |
2519 | ## File substitutions. ## | |
2520 | ## ------------------- ##" | |
2521 | echo | |
2522 | for ac_var in $ac_subst_files | |
2523 | do | |
2524 | eval ac_val=\$$ac_var | |
2525 | case $ac_val in | |
2526 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2527 | esac | |
2528 | $as_echo "$ac_var='\''$ac_val'\''" | |
2529 | done | sort | |
2530 | echo | |
2531 | fi | |
529be52a | 2532 | |
a24b9f23 MA |
2533 | if test -s confdefs.h; then |
2534 | $as_echo "## ----------- ## | |
2535 | ## confdefs.h. ## | |
2536 | ## ----------- ##" | |
2537 | echo | |
2538 | cat confdefs.h | |
2539 | echo | |
2540 | fi | |
2541 | test "$ac_signal" != 0 && | |
2542 | $as_echo "$as_me: caught signal $ac_signal" | |
2543 | $as_echo "$as_me: exit $exit_status" | |
2544 | } >&5 | |
2545 | rm -f core *.core core.conftest.* && | |
2546 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2547 | exit $exit_status | |
2548 | ' 0 | |
2549 | for ac_signal in 1 2 13 15; do | |
2550 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
529be52a | 2551 | done |
a24b9f23 | 2552 | ac_signal=0 |
529be52a | 2553 | |
a24b9f23 MA |
2554 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2555 | rm -f -r conftest* confdefs.h | |
529be52a | 2556 | |
a24b9f23 MA |
2557 | $as_echo "/* confdefs.h */" > confdefs.h |
2558 | ||
2559 | # Predefined preprocessor variables. | |
2560 | ||
2561 | cat >>confdefs.h <<_ACEOF | |
2562 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
529be52a | 2563 | _ACEOF |
a24b9f23 MA |
2564 | |
2565 | cat >>confdefs.h <<_ACEOF | |
2566 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
529be52a | 2567 | _ACEOF |
529be52a | 2568 | |
a24b9f23 MA |
2569 | cat >>confdefs.h <<_ACEOF |
2570 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2571 | _ACEOF | |
529be52a | 2572 | |
a24b9f23 MA |
2573 | cat >>confdefs.h <<_ACEOF |
2574 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2575 | _ACEOF | |
529be52a | 2576 | |
a24b9f23 MA |
2577 | cat >>confdefs.h <<_ACEOF |
2578 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
529be52a | 2579 | _ACEOF |
a24b9f23 MA |
2580 | |
2581 | cat >>confdefs.h <<_ACEOF | |
2582 | #define PACKAGE_URL "$PACKAGE_URL" | |
529be52a | 2583 | _ACEOF |
529be52a | 2584 | |
a24b9f23 MA |
2585 | |
2586 | # Let the site file select an alternate cache file if it wants to. | |
2587 | # Prefer an explicitly selected file to automatically selected ones. | |
2588 | ac_site_file1=NONE | |
2589 | ac_site_file2=NONE | |
2590 | if test -n "$CONFIG_SITE"; then | |
2591 | # We do not want a PATH search for config.site. | |
2592 | case $CONFIG_SITE in #(( | |
2593 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2594 | */*) ac_site_file1=$CONFIG_SITE;; | |
2595 | *) ac_site_file1=./$CONFIG_SITE;; | |
2596 | esac | |
2597 | elif test "x$prefix" != xNONE; then | |
2598 | ac_site_file1=$prefix/share/config.site | |
2599 | ac_site_file2=$prefix/etc/config.site | |
2600 | else | |
2601 | ac_site_file1=$ac_default_prefix/share/config.site | |
2602 | ac_site_file2=$ac_default_prefix/etc/config.site | |
529be52a | 2603 | fi |
a24b9f23 MA |
2604 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2605 | do | |
2606 | test "x$ac_site_file" = xNONE && continue | |
2607 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2609 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2610 | sed 's/^/| /' "$ac_site_file" >&5 | |
2611 | . "$ac_site_file" \ | |
2612 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2613 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2614 | as_fn_error $? "failed to load site script $ac_site_file | |
2615 | See \`config.log' for more details" "$LINENO" 5; } | |
2616 | fi | |
2617 | done | |
529be52a | 2618 | |
a24b9f23 MA |
2619 | if test -r "$cache_file"; then |
2620 | # Some versions of bash will fail to source /dev/null (special files | |
2621 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2622 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2624 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2625 | case $cache_file in | |
2626 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2627 | *) . "./$cache_file";; | |
2628 | esac | |
2629 | fi | |
2630 | else | |
2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2632 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2633 | >$cache_file | |
2634 | fi | |
529be52a | 2635 | |
a24b9f23 MA |
2636 | # Check that the precious variables saved in the cache have kept the same |
2637 | # value. | |
2638 | ac_cache_corrupted=false | |
2639 | for ac_var in $ac_precious_vars; do | |
2640 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2641 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2642 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2643 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2644 | case $ac_old_set,$ac_new_set in | |
2645 | set,) | |
2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2647 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2648 | ac_cache_corrupted=: ;; | |
2649 | ,set) | |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2651 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2652 | ac_cache_corrupted=: ;; | |
2653 | ,);; | |
2654 | *) | |
2655 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2656 | # differences in whitespace do not lead to failure. | |
2657 | ac_old_val_w=`echo x $ac_old_val` | |
2658 | ac_new_val_w=`echo x $ac_new_val` | |
2659 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2661 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2662 | ac_cache_corrupted=: | |
2663 | else | |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2665 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2666 | eval $ac_var=\$ac_old_val | |
2667 | fi | |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2669 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2671 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2672 | fi;; | |
2673 | esac | |
2674 | # Pass precious variables to config.status. | |
2675 | if test "$ac_new_set" = set; then | |
2676 | case $ac_new_val in | |
2677 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2678 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2679 | esac | |
2680 | case " $ac_configure_args " in | |
2681 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2682 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2683 | esac | |
2684 | fi | |
529be52a | 2685 | done |
a24b9f23 MA |
2686 | if $ac_cache_corrupted; then |
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2690 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2691 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
529be52a | 2692 | fi |
a24b9f23 MA |
2693 | ## -------------------- ## |
2694 | ## Main body of script. ## | |
2695 | ## -------------------- ## | |
529be52a SR |
2696 | |
2697 | ac_ext=c | |
2698 | ac_cpp='$CPP $CPPFLAGS' | |
2699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2702 | ||
2703 | ||
529be52a | 2704 | |
a24b9f23 MA |
2705 | # we specify "foreign" to avoid having to have the GNU mandated files, |
2706 | # like AUTHORS, COPYING, and such | |
db1a8f68 | 2707 | am__api_version='1.15' |
529be52a | 2708 | |
a24b9f23 MA |
2709 | ac_aux_dir= |
2710 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2711 | if test -f "$ac_dir/install-sh"; then | |
2712 | ac_aux_dir=$ac_dir | |
2713 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2714 | break | |
2715 | elif test -f "$ac_dir/install.sh"; then | |
2716 | ac_aux_dir=$ac_dir | |
2717 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2718 | break | |
2719 | elif test -f "$ac_dir/shtool"; then | |
2720 | ac_aux_dir=$ac_dir | |
2721 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2722 | break | |
2723 | fi | |
529be52a | 2724 | done |
a24b9f23 MA |
2725 | if test -z "$ac_aux_dir"; then |
2726 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
529be52a SR |
2727 | fi |
2728 | ||
a24b9f23 MA |
2729 | # These three variables are undocumented and unsupported, |
2730 | # and are intended to be withdrawn in a future Autoconf release. | |
2731 | # They can cause serious problems if a builder's source tree is in a directory | |
2732 | # whose full name contains unusual characters. | |
2733 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2734 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2735 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
529be52a SR |
2736 | |
2737 | ||
a24b9f23 MA |
2738 | # Find a good install program. We prefer a C program (faster), |
2739 | # so one script is as good as another. But avoid the broken or | |
2740 | # incompatible versions: | |
2741 | # SysV /etc/install, /usr/sbin/install | |
2742 | # SunOS /usr/etc/install | |
2743 | # IRIX /sbin/install | |
2744 | # AIX /bin/install | |
2745 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2746 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2747 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2748 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2749 | # OS/2's system install, which has a completely different semantic | |
2750 | # ./install, which can be erroneously created by make from ./install.sh. | |
2751 | # Reject install programs that cannot install multiple files. | |
2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2753 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2754 | if test -z "$INSTALL"; then | |
2755 | if ${ac_cv_path_install+:} false; then : | |
2756 | $as_echo_n "(cached) " >&6 | |
529be52a | 2757 | else |
a24b9f23 MA |
2758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2759 | for as_dir in $PATH | |
529be52a SR |
2760 | do |
2761 | IFS=$as_save_IFS | |
2762 | test -z "$as_dir" && as_dir=. | |
a24b9f23 MA |
2763 | # Account for people who put trailing slashes in PATH elements. |
2764 | case $as_dir/ in #(( | |
2765 | ./ | .// | /[cC]/* | \ | |
2766 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2767 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2768 | /usr/ucb/* ) ;; | |
2769 | *) | |
2770 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2771 | # Don't use installbsd from OSF since it installs stuff as root | |
2772 | # by default. | |
2773 | for ac_prog in ginstall scoinst install; do | |
2774 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2775 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2776 | if test $ac_prog = install && | |
2777 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2778 | # AIX install. It has an incompatible calling convention. | |
2779 | : | |
2780 | elif test $ac_prog = install && | |
2781 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2782 | # program-specific install script used by HP pwplus--don't use. | |
2783 | : | |
2784 | else | |
2785 | rm -rf conftest.one conftest.two conftest.dir | |
2786 | echo one > conftest.one | |
2787 | echo two > conftest.two | |
2788 | mkdir conftest.dir | |
2789 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2790 | test -s conftest.one && test -s conftest.two && | |
2791 | test -s conftest.dir/conftest.one && | |
2792 | test -s conftest.dir/conftest.two | |
2793 | then | |
2794 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2795 | break 3 | |
2796 | fi | |
2797 | fi | |
2798 | fi | |
2799 | done | |
2800 | done | |
2801 | ;; | |
529be52a SR |
2802 | esac |
2803 | ||
529be52a | 2804 | done |
529be52a SR |
2805 | IFS=$as_save_IFS |
2806 | ||
a24b9f23 | 2807 | rm -rf conftest.one conftest.two conftest.dir |
529be52a SR |
2808 | |
2809 | fi | |
a24b9f23 MA |
2810 | if test "${ac_cv_path_install+set}" = set; then |
2811 | INSTALL=$ac_cv_path_install | |
2812 | else | |
2813 | # As a last resort, use the slow shell script. Don't cache a | |
2814 | # value for INSTALL within a source directory, because that will | |
2815 | # break other packages using the cache if that directory is | |
2816 | # removed, or if the value is a relative name. | |
2817 | INSTALL=$ac_install_sh | |
2818 | fi | |
529be52a | 2819 | fi |
a24b9f23 MA |
2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2821 | $as_echo "$INSTALL" >&6; } | |
529be52a | 2822 | |
a24b9f23 MA |
2823 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2824 | # It thinks the first close brace ends the variable substitution. | |
2825 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
529be52a | 2826 | |
a24b9f23 | 2827 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
529be52a | 2828 | |
a24b9f23 | 2829 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
529be52a | 2830 | |
a24b9f23 MA |
2831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2832 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2833 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2834 | # name. Accept space and tab only in the latter. | |
2835 | am_lf=' | |
2836 | ' | |
2837 | case `pwd` in | |
2838 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2839 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2840 | esac | |
2841 | case $srcdir in | |
2842 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2843 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2844 | esac | |
529be52a | 2845 | |
a24b9f23 MA |
2846 | # Do 'set' in a subshell so we don't clobber the current shell's |
2847 | # arguments. Must try -L first in case configure is actually a | |
2848 | # symlink; some systems play weird games with the mod time of symlinks | |
2849 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2850 | # directory). | |
2851 | if ( | |
2852 | am_has_slept=no | |
2853 | for am_try in 1 2; do | |
2854 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2855 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2856 | if test "$*" = "X"; then | |
2857 | # -L didn't work. | |
2858 | set X `ls -t "$srcdir/configure" conftest.file` | |
2859 | fi | |
2860 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2861 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2862 | ||
2863 | # If neither matched, then we have a broken ls. This can happen | |
2864 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2865 | # broken ls alias from the environment. This has actually | |
2866 | # happened. Such a system could not be considered "sane". | |
2867 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2868 | alias in your environment" "$LINENO" 5 | |
2869 | fi | |
2870 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2871 | break | |
2872 | fi | |
2873 | # Just in case. | |
2874 | sleep 1 | |
2875 | am_has_slept=yes | |
2876 | done | |
2877 | test "$2" = conftest.file | |
2878 | ) | |
2879 | then | |
2880 | # Ok. | |
2881 | : | |
529be52a | 2882 | else |
a24b9f23 MA |
2883 | as_fn_error $? "newly created file is older than distributed files! |
2884 | Check your system clock" "$LINENO" 5 | |
529be52a | 2885 | fi |
a24b9f23 MA |
2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2887 | $as_echo "yes" >&6; } | |
2888 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2889 | # generated files are strictly newer. | |
2890 | am_sleep_pid= | |
2891 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2892 | ( sleep 1 ) & | |
2893 | am_sleep_pid=$! | |
529be52a SR |
2894 | fi |
2895 | ||
a24b9f23 | 2896 | rm -f conftest.file |
529be52a | 2897 | |
a24b9f23 MA |
2898 | test "$program_prefix" != NONE && |
2899 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2900 | # Use a double $ so make ignores it. | |
2901 | test "$program_suffix" != NONE && | |
2902 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2903 | # Double any \ or $. | |
2904 | # By default was `s,x,x', remove it if useless. | |
2905 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2906 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
529be52a | 2907 | |
db1a8f68 SR |
2908 | # Expand $ac_aux_dir to an absolute path. |
2909 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
529be52a | 2910 | |
a24b9f23 MA |
2911 | if test x"${MISSING+set}" != xset; then |
2912 | case $am_aux_dir in | |
2913 | *\ * | *\ *) | |
2914 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2915 | *) | |
2916 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2917 | esac | |
529be52a | 2918 | fi |
a24b9f23 | 2919 | # Use eval to expand $SHELL |
69e9da00 TM |
2920 | if eval "$MISSING --is-lightweight"; then |
2921 | am_missing_run="$MISSING " | |
529be52a | 2922 | else |
a24b9f23 MA |
2923 | am_missing_run= |
2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2925 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
529be52a | 2926 | fi |
529be52a | 2927 | |
db1a8f68 | 2928 | if test x"${install_sh+set}" != xset; then |
a24b9f23 MA |
2929 | case $am_aux_dir in |
2930 | *\ * | *\ *) | |
2931 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2932 | *) | |
2933 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2934 | esac | |
529be52a SR |
2935 | fi |
2936 | ||
a24b9f23 MA |
2937 | # Installed binaries are usually stripped using 'strip' when the user |
2938 | # run "make install-strip". However 'strip' might not be the right | |
2939 | # tool to use in cross-compilation environments, therefore Automake | |
2940 | # will honor the 'STRIP' environment variable to overrule this program. | |
2941 | if test "$cross_compiling" != no; then | |
2942 | if test -n "$ac_tool_prefix"; then | |
2943 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2944 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2946 | $as_echo_n "checking for $ac_word... " >&6; } | |
2947 | if ${ac_cv_prog_STRIP+:} false; then : | |
2948 | $as_echo_n "(cached) " >&6 | |
529be52a | 2949 | else |
a24b9f23 MA |
2950 | if test -n "$STRIP"; then |
2951 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
529be52a | 2952 | else |
a24b9f23 MA |
2953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2954 | for as_dir in $PATH | |
2955 | do | |
2956 | IFS=$as_save_IFS | |
2957 | test -z "$as_dir" && as_dir=. | |
2958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2959 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2960 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2962 | break 2 | |
2963 | fi | |
2964 | done | |
2965 | done | |
2966 | IFS=$as_save_IFS | |
529be52a | 2967 | |
529be52a | 2968 | fi |
a24b9f23 MA |
2969 | fi |
2970 | STRIP=$ac_cv_prog_STRIP | |
2971 | if test -n "$STRIP"; then | |
2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2973 | $as_echo "$STRIP" >&6; } | |
2974 | else | |
2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2976 | $as_echo "no" >&6; } | |
529be52a SR |
2977 | fi |
2978 | ||
2979 | ||
a24b9f23 MA |
2980 | fi |
2981 | if test -z "$ac_cv_prog_STRIP"; then | |
2982 | ac_ct_STRIP=$STRIP | |
2983 | # Extract the first word of "strip", so it can be a program name with args. | |
2984 | set dummy strip; ac_word=$2 | |
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2986 | $as_echo_n "checking for $ac_word... " >&6; } | |
2987 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2988 | $as_echo_n "(cached) " >&6 | |
2989 | else | |
2990 | if test -n "$ac_ct_STRIP"; then | |
2991 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2992 | else | |
2993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2994 | for as_dir in $PATH | |
2995 | do | |
2996 | IFS=$as_save_IFS | |
2997 | test -z "$as_dir" && as_dir=. | |
2998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2999 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3000 | ac_cv_prog_ac_ct_STRIP="strip" | |
3001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3002 | break 2 | |
3003 | fi | |
3004 | done | |
3005 | done | |
3006 | IFS=$as_save_IFS | |
3007 | ||
529be52a SR |
3008 | fi |
3009 | fi | |
a24b9f23 MA |
3010 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3011 | if test -n "$ac_ct_STRIP"; then | |
3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3013 | $as_echo "$ac_ct_STRIP" >&6; } | |
3014 | else | |
3015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3016 | $as_echo "no" >&6; } | |
529be52a SR |
3017 | fi |
3018 | ||
a24b9f23 MA |
3019 | if test "x$ac_ct_STRIP" = x; then |
3020 | STRIP=":" | |
3021 | else | |
3022 | case $cross_compiling:$ac_tool_warned in | |
3023 | yes:) | |
3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3025 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3026 | ac_tool_warned=yes ;; | |
3027 | esac | |
3028 | STRIP=$ac_ct_STRIP | |
3029 | fi | |
3030 | else | |
3031 | STRIP="$ac_cv_prog_STRIP" | |
3032 | fi | |
529be52a | 3033 | |
a24b9f23 MA |
3034 | fi |
3035 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
529be52a | 3036 | |
a24b9f23 MA |
3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
3038 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3039 | if test -z "$MKDIR_P"; then | |
3040 | if ${ac_cv_path_mkdir+:} false; then : | |
3041 | $as_echo_n "(cached) " >&6 | |
3042 | else | |
3043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3044 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3045 | do | |
3046 | IFS=$as_save_IFS | |
3047 | test -z "$as_dir" && as_dir=. | |
3048 | for ac_prog in mkdir gmkdir; do | |
3049 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3050 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
3051 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3052 | 'mkdir (GNU coreutils) '* | \ | |
3053 | 'mkdir (coreutils) '* | \ | |
3054 | 'mkdir (fileutils) '4.1*) | |
3055 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3056 | break 3;; | |
3057 | esac | |
3058 | done | |
3059 | done | |
3060 | done | |
3061 | IFS=$as_save_IFS | |
529be52a | 3062 | |
a24b9f23 | 3063 | fi |
529be52a | 3064 | |
a24b9f23 MA |
3065 | test -d ./--version && rmdir ./--version |
3066 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3067 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3068 | else | |
3069 | # As a last resort, use the slow shell script. Don't cache a | |
3070 | # value for MKDIR_P within a source directory, because that will | |
3071 | # break other packages using the cache if that directory is | |
3072 | # removed, or if the value is a relative name. | |
3073 | MKDIR_P="$ac_install_sh -d" | |
3074 | fi | |
3075 | fi | |
3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3077 | $as_echo "$MKDIR_P" >&6; } | |
529be52a | 3078 | |
a24b9f23 | 3079 | for ac_prog in gawk mawk nawk awk |
529be52a | 3080 | do |
a24b9f23 MA |
3081 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3082 | set dummy $ac_prog; ac_word=$2 | |
3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3084 | $as_echo_n "checking for $ac_word... " >&6; } | |
3085 | if ${ac_cv_prog_AWK+:} false; then : | |
3086 | $as_echo_n "(cached) " >&6 | |
529be52a | 3087 | else |
a24b9f23 MA |
3088 | if test -n "$AWK"; then |
3089 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3090 | else | |
3091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3092 | for as_dir in $PATH | |
3093 | do | |
3094 | IFS=$as_save_IFS | |
3095 | test -z "$as_dir" && as_dir=. | |
3096 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3097 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3098 | ac_cv_prog_AWK="$ac_prog" | |
3099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3100 | break 2 | |
3101 | fi | |
3102 | done | |
3103 | done | |
3104 | IFS=$as_save_IFS | |
529be52a | 3105 | |
529be52a | 3106 | fi |
529be52a | 3107 | fi |
a24b9f23 MA |
3108 | AWK=$ac_cv_prog_AWK |
3109 | if test -n "$AWK"; then | |
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3111 | $as_echo "$AWK" >&6; } | |
3112 | else | |
3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3114 | $as_echo "no" >&6; } | |
529be52a SR |
3115 | fi |
3116 | ||
529be52a | 3117 | |
a24b9f23 MA |
3118 | test -n "$AWK" && break |
3119 | done | |
529be52a | 3120 | |
a24b9f23 MA |
3121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3122 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3123 | set x ${MAKE-make} | |
3124 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3125 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3126 | $as_echo_n "(cached) " >&6 | |
529be52a | 3127 | else |
a24b9f23 MA |
3128 | cat >conftest.make <<\_ACEOF |
3129 | SHELL = /bin/sh | |
3130 | all: | |
3131 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
529be52a | 3132 | _ACEOF |
a24b9f23 MA |
3133 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
3134 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3135 | *@@@%%%=?*=@@@%%%*) | |
3136 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3137 | *) | |
3138 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
529be52a | 3139 | esac |
a24b9f23 MA |
3140 | rm -f conftest.make |
3141 | fi | |
3142 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3144 | $as_echo "yes" >&6; } | |
3145 | SET_MAKE= | |
529be52a | 3146 | else |
a24b9f23 MA |
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3148 | $as_echo "no" >&6; } | |
3149 | SET_MAKE="MAKE=${MAKE-make}" | |
529be52a SR |
3150 | fi |
3151 | ||
a24b9f23 MA |
3152 | rm -rf .tst 2>/dev/null |
3153 | mkdir .tst 2>/dev/null | |
3154 | if test -d .tst; then | |
3155 | am__leading_dot=. | |
529be52a | 3156 | else |
a24b9f23 | 3157 | am__leading_dot=_ |
529be52a | 3158 | fi |
a24b9f23 | 3159 | rmdir .tst 2>/dev/null |
529be52a | 3160 | |
69e9da00 TM |
3161 | # Check whether --enable-silent-rules was given. |
3162 | if test "${enable_silent_rules+set}" = set; then : | |
3163 | enableval=$enable_silent_rules; | |
3164 | fi | |
3165 | ||
3166 | case $enable_silent_rules in # ((( | |
3167 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3168 | no) AM_DEFAULT_VERBOSITY=1;; | |
3169 | *) AM_DEFAULT_VERBOSITY=1;; | |
3170 | esac | |
3171 | am_make=${MAKE-make} | |
3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3173 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3174 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3175 | $as_echo_n "(cached) " >&6 | |
3176 | else | |
3177 | if $as_echo 'TRUE=$(BAR$(V)) | |
3178 | BAR0=false | |
3179 | BAR1=true | |
3180 | V=1 | |
3181 | am__doit: | |
3182 | @$(TRUE) | |
3183 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3184 | am_cv_make_support_nested_variables=yes | |
3185 | else | |
3186 | am_cv_make_support_nested_variables=no | |
3187 | fi | |
3188 | fi | |
3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3190 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3191 | if test $am_cv_make_support_nested_variables = yes; then | |
3192 | AM_V='$(V)' | |
3193 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3194 | else | |
3195 | AM_V=$AM_DEFAULT_VERBOSITY | |
3196 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3197 | fi | |
3198 | AM_BACKSLASH='\' | |
3199 | ||
a24b9f23 MA |
3200 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3201 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3202 | # is not polluted with repeated "-I." | |
3203 | am__isrc=' -I$(srcdir)' | |
3204 | # test to see if srcdir already configured | |
3205 | if test -f $srcdir/config.status; then | |
3206 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3207 | fi | |
529be52a SR |
3208 | fi |
3209 | ||
a24b9f23 MA |
3210 | # test whether we have cygpath |
3211 | if test -z "$CYGPATH_W"; then | |
3212 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3213 | CYGPATH_W='cygpath -w' | |
3214 | else | |
3215 | CYGPATH_W=echo | |
3216 | fi | |
3217 | fi | |
529be52a | 3218 | |
529be52a | 3219 | |
a24b9f23 MA |
3220 | # Define the identity of the package. |
3221 | PACKAGE='dhcp' | |
573f1809 | 3222 | VERSION='4.3.4' |
529be52a SR |
3223 | |
3224 | ||
a24b9f23 MA |
3225 | cat >>confdefs.h <<_ACEOF |
3226 | #define PACKAGE "$PACKAGE" | |
529be52a SR |
3227 | _ACEOF |
3228 | ||
3229 | ||
a24b9f23 MA |
3230 | cat >>confdefs.h <<_ACEOF |
3231 | #define VERSION "$VERSION" | |
529be52a SR |
3232 | _ACEOF |
3233 | ||
a24b9f23 MA |
3234 | # Some tools Automake needs. |
3235 | ||
3236 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3237 | ||
3238 | ||
3239 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3240 | ||
3241 | ||
3242 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
529be52a SR |
3243 | |
3244 | ||
a24b9f23 MA |
3245 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
3246 | ||
3247 | ||
3248 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
529be52a | 3249 | |
a24b9f23 MA |
3250 | # For better backward compatibility. To be removed once Automake 1.9.x |
3251 | # dies out for good. For more background, see: | |
3252 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3253 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3254 | mkdir_p='$(MKDIR_P)' | |
529be52a | 3255 | |
db1a8f68 SR |
3256 | # We need awk for the "check" target (and possibly the TAP driver). The |
3257 | # system "awk" is bad on some platforms. | |
a24b9f23 MA |
3258 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3259 | # in the wild :-( We should find a proper way to deprecate it ... | |
3260 | AMTAR='$${TAR-tar}' | |
529be52a | 3261 | |
69e9da00 TM |
3262 | |
3263 | # We'll loop over all known methods to create a tar archive until one works. | |
3264 | _am_tools='gnutar pax cpio none' | |
3265 | ||
a24b9f23 | 3266 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
529be52a SR |
3267 | |
3268 | ||
3269 | ||
3270 | ||
3271 | ||
3272 | ||
69e9da00 TM |
3273 | # POSIX will say in a future version that running "rm -f" with no argument |
3274 | # is OK; and we want to be able to make that assumption in our Makefile | |
3275 | # recipes. So use an aggressive probe to check that the usage we want is | |
3276 | # actually supported "in the wild" to an acceptable degree. | |
3277 | # See automake bug#10828. | |
3278 | # To make any issue more visible, cause the running configure to be aborted | |
3279 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3280 | # user can still override this though. | |
3281 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3282 | cat >&2 <<'END' | |
3283 | Oops! | |
3284 | ||
3285 | Your 'rm' program seems unable to run without file operands specified | |
3286 | on the command line, even when the '-f' option is present. This is contrary | |
3287 | to the behaviour of most rm programs out there, and not conforming with | |
3288 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3289 | ||
3290 | Please tell bug-automake@gnu.org about your system, including the value | |
3291 | of your $PATH and any error possibly output before this message. This | |
3292 | can help us improve future automake versions. | |
3293 | ||
3294 | END | |
3295 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3296 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3297 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3298 | echo >&2 | |
3299 | else | |
3300 | cat >&2 <<'END' | |
3301 | Aborting the configuration process, to ensure you take notice of the issue. | |
3302 | ||
3303 | You can download and install GNU coreutils to get an 'rm' implementation | |
3304 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3305 | ||
3306 | If you want to complete the configuration process using your problematic | |
3307 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3308 | to "yes", and re-run configure. | |
3309 | ||
3310 | END | |
3311 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3312 | fi | |
3313 | fi | |
3314 | ||
db1a8f68 | 3315 | |
a24b9f23 MA |
3316 | # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding |
3317 | # the configure and makefiles. Without it users doing things that | |
3318 | # change the timestamps on the code, like checking it into a cvs | |
3319 | # tree, could trigger a rebuild of the infrastructure files which | |
3320 | # might fail if they don't have the correct tools. | |
3321 | ||
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3323 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3324 | # Check whether --enable-maintainer-mode was given. | |
3325 | if test "${enable_maintainer_mode+set}" = set; then : | |
3326 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
529be52a | 3327 | else |
a24b9f23 MA |
3328 | USE_MAINTAINER_MODE=no |
3329 | fi | |
529be52a | 3330 | |
a24b9f23 MA |
3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3332 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3333 | if test $USE_MAINTAINER_MODE = yes; then | |
3334 | MAINTAINER_MODE_TRUE= | |
3335 | MAINTAINER_MODE_FALSE='#' | |
3336 | else | |
3337 | MAINTAINER_MODE_TRUE='#' | |
3338 | MAINTAINER_MODE_FALSE= | |
3339 | fi | |
529be52a | 3340 | |
a24b9f23 MA |
3341 | MAINT=$MAINTAINER_MODE_TRUE |
3342 | ||
3343 | ||
3344 | ||
3345 | # Make sure we can run config.sub. | |
3346 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3347 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3348 | ||
3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3350 | $as_echo_n "checking build system type... " >&6; } | |
3351 | if ${ac_cv_build+:} false; then : | |
3352 | $as_echo_n "(cached) " >&6 | |
529be52a | 3353 | else |
a24b9f23 MA |
3354 | ac_build_alias=$build_alias |
3355 | test "x$ac_build_alias" = x && | |
3356 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3357 | test "x$ac_build_alias" = x && | |
3358 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3359 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3360 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
529be52a | 3361 | |
529be52a | 3362 | fi |
a24b9f23 MA |
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3364 | $as_echo "$ac_cv_build" >&6; } | |
3365 | case $ac_cv_build in | |
3366 | *-*-*) ;; | |
3367 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
3368 | esac | |
3369 | build=$ac_cv_build | |
3370 | ac_save_IFS=$IFS; IFS='-' | |
3371 | set x $ac_cv_build | |
3372 | shift | |
3373 | build_cpu=$1 | |
3374 | build_vendor=$2 | |
3375 | shift; shift | |
3376 | # Remember, the first character of IFS is used to create $*, | |
3377 | # except with old shells: | |
3378 | build_os=$* | |
3379 | IFS=$ac_save_IFS | |
3380 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
529be52a | 3381 | |
a24b9f23 MA |
3382 | |
3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3384 | $as_echo_n "checking host system type... " >&6; } | |
3385 | if ${ac_cv_host+:} false; then : | |
3386 | $as_echo_n "(cached) " >&6 | |
3387 | else | |
3388 | if test "x$host_alias" = x; then | |
3389 | ac_cv_host=$ac_cv_build | |
3390 | else | |
3391 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3392 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
529be52a | 3393 | fi |
529be52a | 3394 | |
a24b9f23 MA |
3395 | fi |
3396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3397 | $as_echo "$ac_cv_host" >&6; } | |
3398 | case $ac_cv_host in | |
3399 | *-*-*) ;; | |
3400 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3401 | esac | |
3402 | host=$ac_cv_host | |
3403 | ac_save_IFS=$IFS; IFS='-' | |
3404 | set x $ac_cv_host | |
3405 | shift | |
3406 | host_cpu=$1 | |
3407 | host_vendor=$2 | |
3408 | shift; shift | |
3409 | # Remember, the first character of IFS is used to create $*, | |
3410 | # except with old shells: | |
3411 | host_os=$* | |
3412 | IFS=$ac_save_IFS | |
3413 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
529be52a | 3414 | |
529be52a SR |
3415 | |
3416 | ||
a24b9f23 MA |
3417 | # We want to turn on warnings if we are using gcc and the user did |
3418 | # not specify CFLAGS. The autoconf check for the C compiler sets the | |
3419 | # CFLAGS if gcc is used, so we will save it before we run that check. | |
3420 | SAVE_CFLAGS="$CFLAGS" | |
529be52a | 3421 | |
a24b9f23 MA |
3422 | # Now find our C compiler. |
3423 | ac_ext=c | |
3424 | ac_cpp='$CPP $CPPFLAGS' | |
3425 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3426 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3427 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
529be52a | 3428 | if test -n "$ac_tool_prefix"; then |
a24b9f23 MA |
3429 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3430 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3432 | $as_echo_n "checking for $ac_word... " >&6; } | |
3433 | if ${ac_cv_prog_CC+:} false; then : | |
3434 | $as_echo_n "(cached) " >&6 | |
529be52a | 3435 | else |
a24b9f23 MA |
3436 | if test -n "$CC"; then |
3437 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
529be52a SR |
3438 | else |
3439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3440 | for as_dir in $PATH | |
3441 | do | |
3442 | IFS=$as_save_IFS | |
3443 | test -z "$as_dir" && as_dir=. | |
a24b9f23 MA |
3444 | for ac_exec_ext in '' $ac_executable_extensions; do |
3445 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3446 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
529be52a SR |
3448 | break 2 |
3449 | fi | |
3450 | done | |
a24b9f23 | 3451 | done |
529be52a SR |
3452 | IFS=$as_save_IFS |
3453 | ||
3454 | fi | |
3455 | fi | |
a24b9f23 MA |
3456 | CC=$ac_cv_prog_CC |
3457 | if test -n "$CC"; then | |
3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3459 | $as_echo "$CC" >&6; } | |
529be52a | 3460 | else |
a24b9f23 MA |
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3462 | $as_echo "no" >&6; } | |
529be52a SR |
3463 | fi |
3464 | ||
3465 | ||
3466 | fi | |
a24b9f23 MA |
3467 | if test -z "$ac_cv_prog_CC"; then |
3468 | ac_ct_CC=$CC | |
3469 | # Extract the first word of "gcc", so it can be a program name with args. | |
3470 | set dummy gcc; ac_word=$2 | |
3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3472 | $as_echo_n "checking for $ac_word... " >&6; } | |
3473 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3474 | $as_echo_n "(cached) " >&6 | |
529be52a | 3475 | else |
a24b9f23 MA |
3476 | if test -n "$ac_ct_CC"; then |
3477 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
529be52a SR |
3478 | else |
3479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3480 | for as_dir in $PATH | |
3481 | do | |
3482 | IFS=$as_save_IFS | |
3483 | test -z "$as_dir" && as_dir=. | |
a24b9f23 MA |
3484 | for ac_exec_ext in '' $ac_executable_extensions; do |
3485 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3486 | ac_cv_prog_ac_ct_CC="gcc" | |
3487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
529be52a SR |
3488 | break 2 |
3489 | fi | |
3490 | done | |
a24b9f23 | 3491 | done |
529be52a SR |
3492 | IFS=$as_save_IFS |
3493 | ||
3494 | fi | |
3495 | fi | |
a24b9f23 MA |
3496 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3497 | if test -n "$ac_ct_CC"; then | |
3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3499 | $as_echo "$ac_ct_CC" >&6; } | |
529be52a | 3500 | else |
a24b9f23 MA |
3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3502 | $as_echo "no" >&6; } | |
529be52a SR |
3503 | fi |
3504 | ||
a24b9f23 MA |
3505 | if test "x$ac_ct_CC" = x; then |
3506 | CC="" | |
529be52a SR |
3507 | else |
3508 | case $cross_compiling:$ac_tool_warned in | |
3509 | yes:) | |
a24b9f23 MA |
3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3511 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
529be52a SR |
3512 | ac_tool_warned=yes ;; |
3513 | esac | |
a24b9f23 | 3514 | CC=$ac_ct_CC |
529be52a SR |
3515 | fi |
3516 | else | |
a24b9f23 | 3517 | CC="$ac_cv_prog_CC" |
529be52a SR |
3518 | fi |
3519 | ||
a24b9f23 MA |
3520 | if test -z "$CC"; then |
3521 | if test -n "$ac_tool_prefix"; then | |
3522 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3523 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3525 | $as_echo_n "checking for $ac_word... " >&6; } | |
3526 | if ${ac_cv_prog_CC+:} false; then : | |
3527 | $as_echo_n "(cached) " >&6 | |
529be52a | 3528 | else |
a24b9f23 MA |
3529 | if test -n "$CC"; then |
3530 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
529be52a | 3531 | else |
a24b9f23 MA |
3532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3533 | for as_dir in $PATH | |
3534 | do | |
3535 | IFS=$as_save_IFS | |
3536 | test -z "$as_dir" && as_dir=. | |
3537 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3538 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3539 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3541 | break 2 | |
529be52a | 3542 | fi |
a24b9f23 MA |
3543 | done |
3544 | done | |
3545 | IFS=$as_save_IFS | |
529be52a SR |
3546 | |
3547 | fi | |
a24b9f23 MA |
3548 | fi |
3549 | CC=$ac_cv_prog_CC | |
3550 | if test -n "$CC"; then | |
3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3552 | $as_echo "$CC" >&6; } | |
3553 | else | |
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3555 | $as_echo "no" >&6; } | |
529be52a SR |
3556 | fi |
3557 | ||
529be52a | 3558 | |
a24b9f23 | 3559 | fi |
529be52a | 3560 | fi |
a24b9f23 MA |
3561 | if test -z "$CC"; then |
3562 | # Extract the first word of "cc", so it can be a program name with args. | |
3563 | set dummy cc; ac_word=$2 | |
3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3565 | $as_echo_n "checking for $ac_word... " >&6; } | |
3566 | if ${ac_cv_prog_CC+:} false; then : | |
3567 | $as_echo_n "(cached) " >&6 | |
3568 | else | |
3569 | if test -n "$CC"; then | |
3570 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3571 | else | |
3572 | ac_prog_rejected=no | |
3573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3574 | for as_dir in $PATH | |
3575 | do | |
3576 | IFS=$as_save_IFS | |
3577 | test -z "$as_dir" && as_dir=. | |
3578 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3579 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3580 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3581 | ac_prog_rejected=yes | |
3582 | continue | |
3583 | fi | |
3584 | ac_cv_prog_CC="cc" | |
3585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3586 | break 2 | |
3587 | fi | |
3588 | done | |
3589 | done | |
3590 | IFS=$as_save_IFS | |
529be52a | 3591 | |
a24b9f23 MA |
3592 | if test $ac_prog_rejected = yes; then |
3593 | # We found a bogon in the path, so make sure we never use it. | |
3594 | set dummy $ac_cv_prog_CC | |
3595 | shift | |
3596 | if test $# != 0; then | |
3597 | # We chose a different compiler from the bogus one. | |
3598 | # However, it has the same basename, so the bogon will be chosen | |
3599 | # first if we set CC to just the basename; use the full file name. | |
3600 | shift | |
3601 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3602 | fi | |
529be52a | 3603 | fi |
529be52a | 3604 | fi |
529be52a | 3605 | fi |
a24b9f23 MA |
3606 | CC=$ac_cv_prog_CC |
3607 | if test -n "$CC"; then | |
3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3609 | $as_echo "$CC" >&6; } | |
3610 | else | |
3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3612 | $as_echo "no" >&6; } | |
529be52a SR |
3613 | fi |
3614 | ||
529be52a | 3615 | |
529be52a | 3616 | fi |
a24b9f23 MA |
3617 | if test -z "$CC"; then |
3618 | if test -n "$ac_tool_prefix"; then | |
3619 | for ac_prog in cl.exe | |
3620 | do | |
3621 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3622 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3624 | $as_echo_n "checking for $ac_word... " >&6; } | |
3625 | if ${ac_cv_prog_CC+:} false; then : | |
3626 | $as_echo_n "(cached) " >&6 | |
3627 | else | |
3628 | if test -n "$CC"; then | |
3629 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3630 | else | |
3631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3632 | for as_dir in $PATH | |
3633 | do | |
3634 | IFS=$as_save_IFS | |
3635 | test -z "$as_dir" && as_dir=. | |
3636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3637 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3638 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3640 | break 2 | |
3641 | fi | |
3642 | done | |
3643 | done | |
3644 | IFS=$as_save_IFS | |
529be52a | 3645 | |
529be52a | 3646 | fi |
529be52a | 3647 | fi |
a24b9f23 MA |
3648 | CC=$ac_cv_prog_CC |
3649 | if test -n "$CC"; then | |
3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3651 | $as_echo "$CC" >&6; } | |
3652 | else | |
3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3654 | $as_echo "no" >&6; } | |
3655 | fi | |
529be52a | 3656 | |
529be52a | 3657 | |
a24b9f23 MA |
3658 | test -n "$CC" && break |
3659 | done | |
529be52a | 3660 | fi |
a24b9f23 MA |
3661 | if test -z "$CC"; then |
3662 | ac_ct_CC=$CC | |
3663 | for ac_prog in cl.exe | |
3664 | do | |
3665 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3666 | set dummy $ac_prog; ac_word=$2 | |
3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3668 | $as_echo_n "checking for $ac_word... " >&6; } | |
3669 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3670 | $as_echo_n "(cached) " >&6 | |
3671 | else | |
3672 | if test -n "$ac_ct_CC"; then | |
3673 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3674 | else | |
3675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3676 | for as_dir in $PATH | |
3677 | do | |
3678 | IFS=$as_save_IFS | |
3679 | test -z "$as_dir" && as_dir=. | |
3680 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3681 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3682 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3684 | break 2 | |
3685 | fi | |
3686 | done | |
3687 | done | |
3688 | IFS=$as_save_IFS | |
529be52a | 3689 | |
529be52a | 3690 | fi |
529be52a | 3691 | fi |
a24b9f23 MA |
3692 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3693 | if test -n "$ac_ct_CC"; then | |
3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3695 | $as_echo "$ac_ct_CC" >&6; } | |
3696 | else | |
3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3698 | $as_echo "no" >&6; } | |
529be52a SR |
3699 | fi |
3700 | ||
3701 | ||
a24b9f23 MA |
3702 | test -n "$ac_ct_CC" && break |
3703 | done | |
529be52a | 3704 | |
a24b9f23 MA |
3705 | if test "x$ac_ct_CC" = x; then |
3706 | CC="" | |
3707 | else | |
3708 | case $cross_compiling:$ac_tool_warned in | |
3709 | yes:) | |
3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3711 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3712 | ac_tool_warned=yes ;; | |
3713 | esac | |
3714 | CC=$ac_ct_CC | |
3715 | fi | |
529be52a SR |
3716 | fi |
3717 | ||
881442e2 SR |
3718 | fi |
3719 | ||
3720 | ||
a24b9f23 MA |
3721 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3722 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3723 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3724 | See \`config.log' for more details" "$LINENO" 5; } | |
881442e2 | 3725 | |
a24b9f23 MA |
3726 | # Provide some information about the compiler. |
3727 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3728 | set X $ac_compile | |
3729 | ac_compiler=$2 | |
3730 | for ac_option in --version -v -V -qversion; do | |
3731 | { { ac_try="$ac_compiler $ac_option >&5" | |
3732 | case "(($ac_try" in | |
3733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3734 | *) ac_try_echo=$ac_try;; | |
3735 | esac | |
3736 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3737 | $as_echo "$ac_try_echo"; } >&5 | |
3738 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3739 | ac_status=$? | |
3740 | if test -s conftest.err; then | |
3741 | sed '10a\ | |
3742 | ... rest of stderr output deleted ... | |
3743 | 10q' conftest.err >conftest.er1 | |
3744 | cat conftest.er1 >&5 | |
3745 | fi | |
3746 | rm -f conftest.er1 conftest.err | |
3747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3748 | test $ac_status = 0; } | |
3749 | done | |
881442e2 | 3750 | |
a24b9f23 MA |
3751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3752 | /* end confdefs.h. */ | |
529be52a | 3753 | |
a24b9f23 MA |
3754 | int |
3755 | main () | |
3756 | { | |
529be52a | 3757 | |
a24b9f23 MA |
3758 | ; |
3759 | return 0; | |
3760 | } | |
3761 | _ACEOF | |
3762 | ac_clean_files_save=$ac_clean_files | |
3763 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3764 | # Try to create an executable without -o first, disregard a.out. | |
3765 | # It will help us diagnose broken compilers, and finding out an intuition | |
3766 | # of exeext. | |
3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3768 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3769 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
529be52a | 3770 | |
a24b9f23 MA |
3771 | # The possible output files: |
3772 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
529be52a | 3773 | |
a24b9f23 MA |
3774 | ac_rmfiles= |
3775 | for ac_file in $ac_files | |
3776 | do | |
3777 | case $ac_file in | |
3778 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3779 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3780 | esac | |
3781 | done | |
3782 | rm -f $ac_rmfiles | |
529be52a | 3783 | |
a24b9f23 MA |
3784 | if { { ac_try="$ac_link_default" |
3785 | case "(($ac_try" in | |
3786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3787 | *) ac_try_echo=$ac_try;; | |
3788 | esac | |
3789 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3790 | $as_echo "$ac_try_echo"; } >&5 | |
3791 | (eval "$ac_link_default") 2>&5 | |
3792 | ac_status=$? | |
3793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3794 | test $ac_status = 0; }; then : | |
3795 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3796 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3797 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3798 | # so that the user can short-circuit this test for compilers unknown to | |
3799 | # Autoconf. | |
3800 | for ac_file in $ac_files '' | |
3801 | do | |
3802 | test -f "$ac_file" || continue | |
3803 | case $ac_file in | |
3804 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3805 | ;; | |
3806 | [ab].out ) | |
3807 | # We found the default executable, but exeext='' is most | |
3808 | # certainly right. | |
3809 | break;; | |
3810 | *.* ) | |
3811 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3812 | then :; else | |
3813 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3814 | fi | |
3815 | # We set ac_cv_exeext here because the later test for it is not | |
3816 | # safe: cross compilers may not add the suffix if given an `-o' | |
3817 | # argument, so we may need to know it at that point already. | |
3818 | # Even if this section looks crufty: it has the advantage of | |
3819 | # actually working. | |
3820 | break;; | |
3821 | * ) | |
3822 | break;; | |
3823 | esac | |
3824 | done | |
3825 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
529be52a | 3826 | |
529be52a | 3827 | else |
a24b9f23 | 3828 | ac_file='' |
529be52a | 3829 | fi |
a24b9f23 MA |
3830 | if test -z "$ac_file"; then : |
3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3832 | $as_echo "no" >&6; } | |
3833 | $as_echo "$as_me: failed program was:" >&5 | |
3834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
529be52a | 3835 | |
a24b9f23 MA |
3836 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3837 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3838 | as_fn_error 77 "C compiler cannot create executables | |
3839 | See \`config.log' for more details" "$LINENO" 5; } | |
529be52a | 3840 | else |
a24b9f23 MA |
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3842 | $as_echo "yes" >&6; } | |
3843 | fi | |
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3845 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3847 | $as_echo "$ac_file" >&6; } | |
3848 | ac_exeext=$ac_cv_exeext | |
529be52a | 3849 | |
a24b9f23 MA |
3850 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3851 | ac_clean_files=$ac_clean_files_save | |
3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3853 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3854 | if { { ac_try="$ac_link" | |
3855 | case "(($ac_try" in | |
3856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3857 | *) ac_try_echo=$ac_try;; | |
529be52a | 3858 | esac |
a24b9f23 MA |
3859 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3860 | $as_echo "$ac_try_echo"; } >&5 | |
3861 | (eval "$ac_link") 2>&5 | |
3862 | ac_status=$? | |
3863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3864 | test $ac_status = 0; }; then : | |
3865 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3866 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3867 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3868 | # `rm'. | |
3869 | for ac_file in conftest.exe conftest conftest.*; do | |
3870 | test -f "$ac_file" || continue | |
3871 | case $ac_file in | |
3872 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3873 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3874 | break;; | |
3875 | * ) break;; | |
3876 | esac | |
3877 | done | |
529be52a | 3878 | else |
a24b9f23 MA |
3879 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3880 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3881 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3882 | See \`config.log' for more details" "$LINENO" 5; } | |
529be52a | 3883 | fi |
a24b9f23 MA |
3884 | rm -f conftest conftest$ac_cv_exeext |
3885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3886 | $as_echo "$ac_cv_exeext" >&6; } | |
529be52a | 3887 | |
a24b9f23 MA |
3888 | rm -f conftest.$ac_ext |
3889 | EXEEXT=$ac_cv_exeext | |
3890 | ac_exeext=$EXEEXT | |
3891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3892 | /* end confdefs.h. */ | |
3893 | #include <stdio.h> | |
3894 | int | |
3895 | main () | |
3896 | { | |
3897 | FILE *f = fopen ("conftest.out", "w"); | |
3898 | return ferror (f) || fclose (f) != 0; | |
529be52a | 3899 | |
a24b9f23 MA |
3900 | ; |
3901 | return 0; | |
3902 | } | |
3903 | _ACEOF | |
3904 | ac_clean_files="$ac_clean_files conftest.out" | |
3905 | # Check that the compiler produces executables we can run. If not, either | |
3906 | # the compiler is broken, or we cross compile. | |
3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3908 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3909 | if test "$cross_compiling" != yes; then | |
3910 | { { ac_try="$ac_link" | |
3911 | case "(($ac_try" in | |
3912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3913 | *) ac_try_echo=$ac_try;; | |
3914 | esac | |
3915 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3916 | $as_echo "$ac_try_echo"; } >&5 | |
3917 | (eval "$ac_link") 2>&5 | |
3918 | ac_status=$? | |
3919 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3920 | test $ac_status = 0; } | |
3921 | if { ac_try='./conftest$ac_cv_exeext' | |
3922 | { { case "(($ac_try" in | |
3923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3924 | *) ac_try_echo=$ac_try;; | |
3925 | esac | |
3926 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3927 | $as_echo "$ac_try_echo"; } >&5 | |
3928 | (eval "$ac_try") 2>&5 | |
3929 | ac_status=$? | |
3930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3931 | test $ac_status = 0; }; }; then | |
3932 | cross_compiling=no | |
3933 | else | |
3934 | if test "$cross_compiling" = maybe; then | |
3935 | cross_compiling=yes | |
3936 | else | |
3937 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3938 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3939 | as_fn_error $? "cannot run C compiled programs. | |
3940 | If you meant to cross compile, use \`--host'. | |
3941 | See \`config.log' for more details" "$LINENO" 5; } | |
3942 | fi | |
529be52a SR |
3943 | fi |
3944 | fi | |
a24b9f23 MA |
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3946 | $as_echo "$cross_compiling" >&6; } | |
529be52a | 3947 | |
a24b9f23 MA |
3948 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3949 | ac_clean_files=$ac_clean_files_save | |
3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3951 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3952 | if ${ac_cv_objext+:} false; then : | |
3953 | $as_echo_n "(cached) " >&6 | |
3954 | else | |
3955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3956 | /* end confdefs.h. */ | |
529be52a | 3957 | |
a24b9f23 MA |
3958 | int |
3959 | main () | |
3960 | { | |
3961 | ||
3962 | ; | |
3963 | return 0; | |
3964 | } | |
3965 | _ACEOF | |
3966 | rm -f conftest.o conftest.obj | |
3967 | if { { ac_try="$ac_compile" | |
3968 | case "(($ac_try" in | |
3969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3970 | *) ac_try_echo=$ac_try;; | |
529be52a | 3971 | esac |
a24b9f23 MA |
3972 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3973 | $as_echo "$ac_try_echo"; } >&5 | |
3974 | (eval "$ac_compile") 2>&5 | |
3975 | ac_status=$? | |
3976 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3977 | test $ac_status = 0; }; then : | |
3978 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3979 | test -f "$ac_file" || continue; | |
3980 | case $ac_file in | |
3981 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3982 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3983 | break;; | |
3984 | esac | |
3985 | done | |
3986 | else | |
3987 | $as_echo "$as_me: failed program was:" >&5 | |
3988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
529be52a | 3989 | |
a24b9f23 MA |
3990 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3991 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3992 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3993 | See \`config.log' for more details" "$LINENO" 5; } | |
3994 | fi | |
3995 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3996 | fi | |
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3998 | $as_echo "$ac_cv_objext" >&6; } | |
3999 | OBJEXT=$ac_cv_objext | |
4000 | ac_objext=$OBJEXT | |
4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4002 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4003 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
4004 | $as_echo_n "(cached) " >&6 | |
4005 | else | |
4006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4007 | /* end confdefs.h. */ | |
529be52a | 4008 | |
a24b9f23 MA |
4009 | int |
4010 | main () | |
4011 | { | |
4012 | #ifndef __GNUC__ | |
4013 | choke me | |
4014 | #endif | |
4015 | ||
4016 | ; | |
4017 | return 0; | |
4018 | } | |
529be52a | 4019 | _ACEOF |
a24b9f23 MA |
4020 | if ac_fn_c_try_compile "$LINENO"; then : |
4021 | ac_compiler_gnu=yes | |
4022 | else | |
4023 | ac_compiler_gnu=no | |
4024 | fi | |
4025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4026 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
529be52a SR |
4027 | |
4028 | fi | |
a24b9f23 MA |
4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4030 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4031 | if test $ac_compiler_gnu = yes; then | |
4032 | GCC=yes | |
4033 | else | |
4034 | GCC= | |
4035 | fi | |
4036 | ac_test_CFLAGS=${CFLAGS+set} | |
4037 | ac_save_CFLAGS=$CFLAGS | |
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4039 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4040 | if ${ac_cv_prog_cc_g+:} false; then : | |
4041 | $as_echo_n "(cached) " >&6 | |
4042 | else | |
4043 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4044 | ac_c_werror_flag=yes | |
4045 | ac_cv_prog_cc_g=no | |
4046 | CFLAGS="-g" | |
4047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4048 | /* end confdefs.h. */ | |
d5e0cd6f | 4049 | |
a24b9f23 MA |
4050 | int |
4051 | main () | |
4052 | { | |
529be52a | 4053 | |
a24b9f23 MA |
4054 | ; |
4055 | return 0; | |
4056 | } | |
4057 | _ACEOF | |
4058 | if ac_fn_c_try_compile "$LINENO"; then : | |
4059 | ac_cv_prog_cc_g=yes | |
4060 | else | |
4061 | CFLAGS="" | |
4062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4063 | /* end confdefs.h. */ | |
d5e0cd6f | 4064 | |
a24b9f23 MA |
4065 | int |
4066 | main () | |
4067 | { | |
d5e0cd6f | 4068 | |
a24b9f23 MA |
4069 | ; |
4070 | return 0; | |
4071 | } | |
529be52a | 4072 | _ACEOF |
a24b9f23 | 4073 | if ac_fn_c_try_compile "$LINENO"; then : |
d5e0cd6f | 4074 | |
a24b9f23 MA |
4075 | else |
4076 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4077 | CFLAGS="-g" | |
4078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4079 | /* end confdefs.h. */ | |
d5e0cd6f | 4080 | |
a24b9f23 MA |
4081 | int |
4082 | main () | |
4083 | { | |
d5e0cd6f | 4084 | |
a24b9f23 MA |
4085 | ; |
4086 | return 0; | |
4087 | } | |
4088 | _ACEOF | |
4089 | if ac_fn_c_try_compile "$LINENO"; then : | |
4090 | ac_cv_prog_cc_g=yes | |
4a70cb10 | 4091 | fi |
a24b9f23 MA |
4092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4093 | fi | |
4094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4095 | fi | |
4096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4097 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4098 | fi | |
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4100 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4101 | if test "$ac_test_CFLAGS" = set; then | |
4102 | CFLAGS=$ac_save_CFLAGS | |
4103 | elif test $ac_cv_prog_cc_g = yes; then | |
4104 | if test "$GCC" = yes; then | |
4105 | CFLAGS="-g -O2" | |
4106 | else | |
4107 | CFLAGS="-g" | |
4108 | fi | |
4109 | else | |
4110 | if test "$GCC" = yes; then | |
4111 | CFLAGS="-O2" | |
4112 | else | |
4113 | CFLAGS= | |
4114 | fi | |
4115 | fi | |
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4117 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4118 | if ${ac_cv_prog_cc_c89+:} false; then : | |
4119 | $as_echo_n "(cached) " >&6 | |
4120 | else | |
4121 | ac_cv_prog_cc_c89=no | |
4122 | ac_save_CC=$CC | |
4123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4124 | /* end confdefs.h. */ | |
4125 | #include <stdarg.h> | |
4126 | #include <stdio.h> | |
4127 | struct stat; | |
4128 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4129 | struct buf { int x; }; | |
4130 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4131 | static char *e (p, i) | |
4132 | char **p; | |
4133 | int i; | |
4134 | { | |
4135 | return p[i]; | |
4136 | } | |
4137 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4138 | { | |
4139 | char *s; | |
4140 | va_list v; | |
4141 | va_start (v,p); | |
4142 | s = g (p, va_arg (v,int)); | |
4143 | va_end (v); | |
4144 | return s; | |
4145 | } | |
4146 | ||
4147 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4148 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4149 | These don't provoke an error unfortunately, instead are silently treated | |
4150 | as 'x'. The following induces an error, until -std is added to get | |
4151 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4152 | array size at least. It's necessary to write '\x00'==0 to get something | |
4153 | that's true only with -std. */ | |
4154 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
d5e0cd6f | 4155 | |
a24b9f23 MA |
4156 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4157 | inside strings and character constants. */ | |
4158 | #define FOO(x) 'x' | |
4159 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
d5e0cd6f | 4160 | |
a24b9f23 MA |
4161 | int test (int i, double x); |
4162 | struct s1 {int (*f) (int a);}; | |
4163 | struct s2 {int (*f) (double a);}; | |
4164 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4165 | int argc; | |
4166 | char **argv; | |
4167 | int | |
4168 | main () | |
4169 | { | |
4170 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4171 | ; | |
4172 | return 0; | |
4173 | } | |
d5e0cd6f | 4174 | _ACEOF |
a24b9f23 MA |
4175 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4176 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4177 | do | |
4178 | CC="$ac_save_CC $ac_arg" | |
4179 | if ac_fn_c_try_compile "$LINENO"; then : | |
4180 | ac_cv_prog_cc_c89=$ac_arg | |
d5e0cd6f | 4181 | fi |
a24b9f23 MA |
4182 | rm -f core conftest.err conftest.$ac_objext |
4183 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4184 | done | |
4185 | rm -f conftest.$ac_ext | |
4186 | CC=$ac_save_CC | |
d5e0cd6f | 4187 | |
a24b9f23 MA |
4188 | fi |
4189 | # AC_CACHE_VAL | |
4190 | case "x$ac_cv_prog_cc_c89" in | |
4191 | x) | |
4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4193 | $as_echo "none needed" >&6; } ;; | |
4194 | xno) | |
4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4196 | $as_echo "unsupported" >&6; } ;; | |
4197 | *) | |
4198 | CC="$CC $ac_cv_prog_cc_c89" | |
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4200 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4201 | esac | |
4202 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
d5e0cd6f | 4203 | |
d5e0cd6f | 4204 | fi |
d5e0cd6f | 4205 | |
a24b9f23 MA |
4206 | ac_ext=c |
4207 | ac_cpp='$CPP $CPPFLAGS' | |
4208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
69e9da00 TM |
4211 | |
4212 | ac_ext=c | |
4213 | ac_cpp='$CPP $CPPFLAGS' | |
4214 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4215 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4216 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4218 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4219 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4220 | $as_echo_n "(cached) " >&6 | |
4221 | else | |
4222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4223 | /* end confdefs.h. */ | |
4224 | ||
4225 | int | |
4226 | main () | |
4227 | { | |
4228 | ||
4229 | ; | |
4230 | return 0; | |
4231 | } | |
4232 | _ACEOF | |
4233 | # Make sure it works both with $CC and with simple cc. | |
4234 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4235 | # compilers refuse to overwrite an existing .o file with -o, | |
4236 | # though they will create one. | |
4237 | am_cv_prog_cc_c_o=yes | |
4238 | for am_i in 1 2; do | |
4239 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4240 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4241 | ac_status=$? | |
4242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4243 | (exit $ac_status); } \ | |
4244 | && test -f conftest2.$ac_objext; then | |
4245 | : OK | |
4246 | else | |
4247 | am_cv_prog_cc_c_o=no | |
4248 | break | |
4249 | fi | |
4250 | done | |
4251 | rm -f core conftest* | |
4252 | unset am_i | |
4253 | fi | |
4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4255 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4256 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4257 | # Losing compiler, so override with the script. | |
4258 | # FIXME: It is wrong to rewrite CC. | |
4259 | # But if we don't then we get into trouble of one sort or another. | |
4260 | # A longer-term fix would be to have automake use am__CC in this case, | |
4261 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4262 | CC="$am_aux_dir/compile $CC" | |
4263 | fi | |
4264 | ac_ext=c | |
4265 | ac_cpp='$CPP $CPPFLAGS' | |
4266 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4267 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4268 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4269 | ||
a24b9f23 MA |
4270 | DEPDIR="${am__leading_dot}deps" |
4271 | ||
4272 | ac_config_commands="$ac_config_commands depfiles" | |
d5e0cd6f | 4273 | |
d5e0cd6f | 4274 | |
a24b9f23 MA |
4275 | am_make=${MAKE-make} |
4276 | cat > confinc << 'END' | |
4277 | am__doit: | |
4278 | @echo this is the am__doit target | |
4279 | .PHONY: am__doit | |
4280 | END | |
4281 | # If we don't find an include directive, just comment out the code. | |
4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4283 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4284 | am__include="#" | |
4285 | am__quote= | |
4286 | _am_result=none | |
4287 | # First try GNU make style include. | |
4288 | echo "include confinc" > confmf | |
4289 | # Ignore all kinds of additional output from 'make'. | |
4290 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4291 | *the\ am__doit\ target*) | |
4292 | am__include=include | |
4293 | am__quote= | |
4294 | _am_result=GNU | |
4295 | ;; | |
4296 | esac | |
4297 | # Now try BSD make style include. | |
4298 | if test "$am__include" = "#"; then | |
4299 | echo '.include "confinc"' > confmf | |
4300 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4301 | *the\ am__doit\ target*) | |
4302 | am__include=.include | |
4303 | am__quote="\"" | |
4304 | _am_result=BSD | |
4305 | ;; | |
4306 | esac | |
4a70cb10 | 4307 | fi |
4a70cb10 | 4308 | |
529be52a | 4309 | |
a24b9f23 MA |
4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4311 | $as_echo "$_am_result" >&6; } | |
4312 | rm -f confinc confmf | |
4313 | ||
4314 | # Check whether --enable-dependency-tracking was given. | |
4315 | if test "${enable_dependency_tracking+set}" = set; then : | |
4316 | enableval=$enable_dependency_tracking; | |
4a70cb10 | 4317 | fi |
d5e0cd6f | 4318 | |
a24b9f23 MA |
4319 | if test "x$enable_dependency_tracking" != xno; then |
4320 | am_depcomp="$ac_aux_dir/depcomp" | |
4321 | AMDEPBACKSLASH='\' | |
4322 | am__nodep='_no' | |
4323 | fi | |
4324 | if test "x$enable_dependency_tracking" != xno; then | |
4325 | AMDEP_TRUE= | |
4326 | AMDEP_FALSE='#' | |
4327 | else | |
4328 | AMDEP_TRUE='#' | |
4329 | AMDEP_FALSE= | |
4330 | fi | |
d5e0cd6f | 4331 | |
d5e0cd6f | 4332 | |
d5e0cd6f | 4333 | |
a24b9f23 | 4334 | depcc="$CC" am_compiler_list= |
d5e0cd6f | 4335 | |
a24b9f23 MA |
4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4337 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4338 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4339 | $as_echo_n "(cached) " >&6 | |
4340 | else | |
4341 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4342 | # We make a subdir and do the tests there. Otherwise we can end up | |
4343 | # making bogus files that we don't know about and never remove. For | |
4344 | # instance it was reported that on HP-UX the gcc test will end up | |
4345 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4346 | # in D". | |
4347 | rm -rf conftest.dir | |
4348 | mkdir conftest.dir | |
4349 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4350 | # using a relative directory. | |
4351 | cp "$am_depcomp" conftest.dir | |
4352 | cd conftest.dir | |
4353 | # We will build objects and dependencies in a subdirectory because | |
4354 | # it helps to detect inapplicable dependency modes. For instance | |
4355 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4356 | # side effect of compilation, but ICC will put the dependencies in | |
4357 | # the current directory while Tru64 will put them in the object | |
4358 | # directory. | |
4359 | mkdir sub | |
4a70cb10 | 4360 | |
a24b9f23 MA |
4361 | am_cv_CC_dependencies_compiler_type=none |
4362 | if test "$am_compiler_list" = ""; then | |
4363 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4364 | fi | |
4365 | am__universal=false | |
4366 | case " $depcc " in #( | |
4367 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4368 | esac | |
d5e0cd6f | 4369 | |
a24b9f23 MA |
4370 | for depmode in $am_compiler_list; do |
4371 | # Setup a source with many dependencies, because some compilers | |
4372 | # like to wrap large dependency lists on column 80 (with \), and | |
4373 | # we should not choose a depcomp mode which is confused by this. | |
4374 | # | |
4375 | # We need to recreate these files for each test, as the compiler may | |
4376 | # overwrite some of them when testing with obscure command lines. | |
4377 | # This happens at least with the AIX C compiler. | |
4378 | : > sub/conftest.c | |
4379 | for i in 1 2 3 4 5 6; do | |
4380 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4381 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4382 | # Solaris 10 /bin/sh. | |
4383 | echo '/* dummy */' > sub/conftst$i.h | |
4384 | done | |
4385 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
529be52a | 4386 | |
a24b9f23 MA |
4387 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4388 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4389 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4390 | # versions had trouble with output in subdirs. | |
4391 | am__obj=sub/conftest.${OBJEXT-o} | |
4392 | am__minus_obj="-o $am__obj" | |
4393 | case $depmode in | |
4394 | gcc) | |
4395 | # This depmode causes a compiler race in universal mode. | |
4396 | test "$am__universal" = false || continue | |
4397 | ;; | |
4398 | nosideeffect) | |
4399 | # After this tag, mechanisms are not by side-effect, so they'll | |
4400 | # only be used when explicitly requested. | |
4401 | if test "x$enable_dependency_tracking" = xyes; then | |
4402 | continue | |
4403 | else | |
4404 | break | |
4405 | fi | |
4406 | ;; | |
4407 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4408 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4409 | # not run yet. These depmodes are late enough in the game, and | |
4410 | # so weak that their functioning should not be impacted. | |
4411 | am__obj=conftest.${OBJEXT-o} | |
4412 | am__minus_obj= | |
4413 | ;; | |
4414 | none) break ;; | |
4415 | esac | |
4416 | if depmode=$depmode \ | |
4417 | source=sub/conftest.c object=$am__obj \ | |
4418 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4419 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4420 | >/dev/null 2>conftest.err && | |
4421 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4422 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4423 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4424 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4425 | # icc doesn't choke on unknown options, it will just issue warnings | |
4426 | # or remarks (even with -Werror). So we grep stderr for any message | |
4427 | # that says an option was ignored or not supported. | |
4428 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4429 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4430 | # The diagnosis changed in icc 8.0: | |
4431 | # icc: Command line remark: option '-MP' not supported | |
4432 | if (grep 'ignoring option' conftest.err || | |
4433 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4434 | am_cv_CC_dependencies_compiler_type=$depmode | |
4435 | break | |
4436 | fi | |
4437 | fi | |
4438 | done | |
529be52a | 4439 | |
a24b9f23 MA |
4440 | cd .. |
4441 | rm -rf conftest.dir | |
4442 | else | |
4443 | am_cv_CC_dependencies_compiler_type=none | |
d5e0cd6f | 4444 | fi |
d5e0cd6f | 4445 | |
4a70cb10 | 4446 | fi |
a24b9f23 MA |
4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4448 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4449 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
9d6af565 | 4450 | |
a24b9f23 MA |
4451 | if |
4452 | test "x$enable_dependency_tracking" != xno \ | |
4453 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4454 | am__fastdepCC_TRUE= | |
4455 | am__fastdepCC_FALSE='#' | |
4456 | else | |
4457 | am__fastdepCC_TRUE='#' | |
4458 | am__fastdepCC_FALSE= | |
4459 | fi | |
529be52a | 4460 | |
529be52a | 4461 | |
529be52a | 4462 | |
a24b9f23 | 4463 | # Suppress warnings about --datarootdir |
529be52a | 4464 | |
529be52a | 4465 | |
a24b9f23 MA |
4466 | # If we have gcc, and AC_PROG_CC changed the flags, then we know the |
4467 | # user did not specify any flags. Add warnings in this case. | |
4468 | if test "$GCC" = "yes"; then | |
4469 | if test "$CFLAGS" != "$SAVE_CFLAGS"; then | |
4470 | STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing" | |
4471 | fi | |
4a70cb10 | 4472 | fi |
4a70cb10 | 4473 | |
6913a589 FD |
4474 | # We can have some flags to pass to bind configure |
4475 | BINDCONFIG= | |
b4a10c76 FD |
4476 | if test "$cross_compiling" = "yes"; then |
4477 | BINDCONFIG="--host=$host" | |
4478 | fi | |
4479 | ||
4480 | if test "$cross_compiling" = "yes"; then | |
4481 | CROSS_COMPILING_TRUE= | |
4482 | CROSS_COMPILING_FALSE='#' | |
4483 | else | |
4484 | CROSS_COMPILING_TRUE='#' | |
4485 | CROSS_COMPILING_FALSE= | |
4486 | fi | |
6913a589 FD |
4487 | |
4488 | ||
a24b9f23 MA |
4489 | # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides |
4490 | # parts of the IPv6 Advanced Socket API as a result. This is stupid | |
4491 | # as it breaks how the two halves (Basic and Advanced) of the IPv6 | |
4492 | # Socket API were designed to be used but we have to live with it. | |
4493 | # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. | |
4a70cb10 | 4494 | |
a24b9f23 MA |
4495 | ac_ext=c |
4496 | ac_cpp='$CPP $CPPFLAGS' | |
4497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4501 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4502 | # On Suns, sometimes $CPP names a directory. | |
4503 | if test -n "$CPP" && test -d "$CPP"; then | |
4504 | CPP= | |
4505 | fi | |
4506 | if test -z "$CPP"; then | |
4507 | if ${ac_cv_prog_CPP+:} false; then : | |
4508 | $as_echo_n "(cached) " >&6 | |
4a70cb10 | 4509 | else |
a24b9f23 MA |
4510 | # Double quotes because CPP needs to be expanded |
4511 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4512 | do | |
4513 | ac_preproc_ok=false | |
4514 | for ac_c_preproc_warn_flag in '' yes | |
4515 | do | |
4516 | # Use a header file that comes with gcc, so configuring glibc | |
4517 | # with a fresh cross-compiler works. | |
4518 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4519 | # <limits.h> exists even on freestanding compilers. | |
4520 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4521 | # not just through cpp. "Syntax error" is here to catch this case. | |
4522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9d6af565 | 4523 | /* end confdefs.h. */ |
a24b9f23 MA |
4524 | #ifdef __STDC__ |
4525 | # include <limits.h> | |
4526 | #else | |
4527 | # include <assert.h> | |
4528 | #endif | |
4529 | Syntax error | |
529be52a | 4530 | _ACEOF |
a24b9f23 | 4531 | if ac_fn_c_try_cpp "$LINENO"; then : |
9d6af565 | 4532 | |
9d6af565 | 4533 | else |
a24b9f23 MA |
4534 | # Broken: fails on valid input. |
4535 | continue | |
529be52a | 4536 | fi |
a24b9f23 | 4537 | rm -f conftest.err conftest.i conftest.$ac_ext |
4a70cb10 | 4538 | |
a24b9f23 MA |
4539 | # OK, works on sane cases. Now check whether nonexistent headers |
4540 | # can be detected and how. | |
4541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4542 | /* end confdefs.h. */ | |
4543 | #include <ac_nonexistent.h> | |
4544 | _ACEOF | |
4545 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4546 | # Broken: success on invalid input. | |
4547 | continue | |
4a70cb10 | 4548 | else |
a24b9f23 MA |
4549 | # Passes both tests. |
4550 | ac_preproc_ok=: | |
4551 | break | |
9d6af565 | 4552 | fi |
a24b9f23 | 4553 | rm -f conftest.err conftest.i conftest.$ac_ext |
9d6af565 | 4554 | |
a24b9f23 MA |
4555 | done |
4556 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4557 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4558 | if $ac_preproc_ok; then : | |
4559 | break | |
9d6af565 | 4560 | fi |
529be52a | 4561 | |
a24b9f23 MA |
4562 | done |
4563 | ac_cv_prog_CPP=$CPP | |
529be52a | 4564 | |
a24b9f23 MA |
4565 | fi |
4566 | CPP=$ac_cv_prog_CPP | |
529be52a | 4567 | else |
a24b9f23 MA |
4568 | ac_cv_prog_CPP=$CPP |
4569 | fi | |
4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4571 | $as_echo "$CPP" >&6; } | |
4572 | ac_preproc_ok=false | |
4573 | for ac_c_preproc_warn_flag in '' yes | |
4574 | do | |
4575 | # Use a header file that comes with gcc, so configuring glibc | |
4576 | # with a fresh cross-compiler works. | |
4577 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4578 | # <limits.h> exists even on freestanding compilers. | |
4579 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4580 | # not just through cpp. "Syntax error" is here to catch this case. | |
4581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
529be52a | 4582 | /* end confdefs.h. */ |
a24b9f23 MA |
4583 | #ifdef __STDC__ |
4584 | # include <limits.h> | |
4585 | #else | |
4586 | # include <assert.h> | |
4587 | #endif | |
4588 | Syntax error | |
4589 | _ACEOF | |
4590 | if ac_fn_c_try_cpp "$LINENO"; then : | |
529be52a | 4591 | |
a24b9f23 MA |
4592 | else |
4593 | # Broken: fails on valid input. | |
4594 | continue | |
4a70cb10 | 4595 | fi |
a24b9f23 | 4596 | rm -f conftest.err conftest.i conftest.$ac_ext |
529be52a | 4597 | |
a24b9f23 MA |
4598 | # OK, works on sane cases. Now check whether nonexistent headers |
4599 | # can be detected and how. | |
4600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4601 | /* end confdefs.h. */ | |
4602 | #include <ac_nonexistent.h> | |
4603 | _ACEOF | |
4604 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4605 | # Broken: success on invalid input. | |
4606 | continue | |
529be52a | 4607 | else |
a24b9f23 MA |
4608 | # Passes both tests. |
4609 | ac_preproc_ok=: | |
4610 | break | |
4a70cb10 | 4611 | fi |
a24b9f23 | 4612 | rm -f conftest.err conftest.i conftest.$ac_ext |
4a70cb10 | 4613 | |
a24b9f23 MA |
4614 | done |
4615 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4616 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4617 | if $ac_preproc_ok; then : | |
4618 | ||
4619 | else | |
4620 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4621 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4622 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4623 | See \`config.log' for more details" "$LINENO" 5; } | |
529be52a | 4624 | fi |
529be52a | 4625 | |
a24b9f23 MA |
4626 | ac_ext=c |
4627 | ac_cpp='$CPP $CPPFLAGS' | |
4628 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4629 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4630 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
529be52a SR |
4631 | |
4632 | ||
a24b9f23 MA |
4633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4634 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4635 | if ${ac_cv_path_GREP+:} false; then : | |
4636 | $as_echo_n "(cached) " >&6 | |
d5e0cd6f | 4637 | else |
a24b9f23 MA |
4638 | if test -z "$GREP"; then |
4639 | ac_path_GREP_found=false | |
4640 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4642 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4643 | do | |
4644 | IFS=$as_save_IFS | |
4645 | test -z "$as_dir" && as_dir=. | |
4646 | for ac_prog in grep ggrep; do | |
4647 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4648 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4649 | as_fn_executable_p "$ac_path_GREP" || continue | |
4650 | # Check for GNU ac_path_GREP and select it if it is found. | |
4651 | # Check for GNU $ac_path_GREP | |
4652 | case `"$ac_path_GREP" --version 2>&1` in | |
4653 | *GNU*) | |
4654 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4655 | *) | |
4656 | ac_count=0 | |
4657 | $as_echo_n 0123456789 >"conftest.in" | |
4658 | while : | |
4659 | do | |
4660 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4661 | mv "conftest.tmp" "conftest.in" | |
4662 | cp "conftest.in" "conftest.nl" | |
4663 | $as_echo 'GREP' >> "conftest.nl" | |
4664 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4665 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4666 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4667 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4668 | # Best one so far, save it but keep looking for a better one | |
4669 | ac_cv_path_GREP="$ac_path_GREP" | |
4670 | ac_path_GREP_max=$ac_count | |
4671 | fi | |
4672 | # 10*(2^10) chars as input seems more than enough | |
4673 | test $ac_count -gt 10 && break | |
4674 | done | |
4675 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
529be52a | 4676 | esac |
529be52a | 4677 | |
a24b9f23 MA |
4678 | $ac_path_GREP_found && break 3 |
4679 | done | |
4680 | done | |
4681 | done | |
4682 | IFS=$as_save_IFS | |
4683 | if test -z "$ac_cv_path_GREP"; then | |
4684 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4685 | fi | |
d5e0cd6f | 4686 | else |
a24b9f23 MA |
4687 | ac_cv_path_GREP=$GREP |
4688 | fi | |
4a70cb10 | 4689 | |
d5e0cd6f | 4690 | fi |
a24b9f23 MA |
4691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4692 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4693 | GREP="$ac_cv_path_GREP" | |
4a70cb10 | 4694 | |
d5e0cd6f | 4695 | |
a24b9f23 MA |
4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4697 | $as_echo_n "checking for egrep... " >&6; } | |
4698 | if ${ac_cv_path_EGREP+:} false; then : | |
4699 | $as_echo_n "(cached) " >&6 | |
4700 | else | |
4701 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4702 | then ac_cv_path_EGREP="$GREP -E" | |
4703 | else | |
4704 | if test -z "$EGREP"; then | |
4705 | ac_path_EGREP_found=false | |
4706 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4708 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4709 | do | |
4710 | IFS=$as_save_IFS | |
4711 | test -z "$as_dir" && as_dir=. | |
4712 | for ac_prog in egrep; do | |
4713 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4714 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4715 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4716 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4717 | # Check for GNU $ac_path_EGREP | |
4718 | case `"$ac_path_EGREP" --version 2>&1` in | |
4719 | *GNU*) | |
4720 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4721 | *) | |
4722 | ac_count=0 | |
4723 | $as_echo_n 0123456789 >"conftest.in" | |
4724 | while : | |
4725 | do | |
4726 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4727 | mv "conftest.tmp" "conftest.in" | |
4728 | cp "conftest.in" "conftest.nl" | |
4729 | $as_echo 'EGREP' >> "conftest.nl" | |
4730 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4731 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4732 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4733 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4734 | # Best one so far, save it but keep looking for a better one | |
4735 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4736 | ac_path_EGREP_max=$ac_count | |
4737 | fi | |
4738 | # 10*(2^10) chars as input seems more than enough | |
4739 | test $ac_count -gt 10 && break | |
4740 | done | |
4741 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4742 | esac | |
d5e0cd6f | 4743 | |
a24b9f23 MA |
4744 | $ac_path_EGREP_found && break 3 |
4745 | done | |
4746 | done | |
4747 | done | |
4748 | IFS=$as_save_IFS | |
4749 | if test -z "$ac_cv_path_EGREP"; then | |
4750 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4751 | fi | |
4752 | else | |
4753 | ac_cv_path_EGREP=$EGREP | |
529be52a | 4754 | fi |
4a70cb10 | 4755 | |
a24b9f23 | 4756 | fi |
529be52a | 4757 | fi |
a24b9f23 MA |
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4759 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4760 | EGREP="$ac_cv_path_EGREP" | |
4a70cb10 TM |
4761 | |
4762 | ||
a24b9f23 MA |
4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4764 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4765 | if ${ac_cv_header_stdc+:} false; then : | |
4766 | $as_echo_n "(cached) " >&6 | |
d5e0cd6f | 4767 | else |
a24b9f23 | 4768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d5e0cd6f | 4769 | /* end confdefs.h. */ |
a24b9f23 MA |
4770 | #include <stdlib.h> |
4771 | #include <stdarg.h> | |
4772 | #include <string.h> | |
4773 | #include <float.h> | |
4774 | ||
529be52a SR |
4775 | int |
4776 | main () | |
4777 | { | |
4a70cb10 | 4778 | |
529be52a SR |
4779 | ; |
4780 | return 0; | |
4781 | } | |
4782 | _ACEOF | |
a24b9f23 MA |
4783 | if ac_fn_c_try_compile "$LINENO"; then : |
4784 | ac_cv_header_stdc=yes | |
4785 | else | |
4786 | ac_cv_header_stdc=no | |
4787 | fi | |
4788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4789 | ||
4790 | if test $ac_cv_header_stdc = yes; then | |
4791 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
529be52a | 4793 | /* end confdefs.h. */ |
a24b9f23 | 4794 | #include <string.h> |
d5e0cd6f | 4795 | |
d5e0cd6f | 4796 | _ACEOF |
a24b9f23 MA |
4797 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4798 | $EGREP "memchr" >/dev/null 2>&1; then : | |
d5e0cd6f | 4799 | |
a24b9f23 MA |
4800 | else |
4801 | ac_cv_header_stdc=no | |
4802 | fi | |
4803 | rm -f conftest* | |
4a70cb10 TM |
4804 | |
4805 | fi | |
d5e0cd6f | 4806 | |
a24b9f23 MA |
4807 | if test $ac_cv_header_stdc = yes; then |
4808 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4810 | /* end confdefs.h. */ | |
4811 | #include <stdlib.h> | |
529be52a | 4812 | |
a24b9f23 MA |
4813 | _ACEOF |
4814 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4815 | $EGREP "free" >/dev/null 2>&1; then : | |
4a70cb10 | 4816 | |
a24b9f23 MA |
4817 | else |
4818 | ac_cv_header_stdc=no | |
d5e0cd6f | 4819 | fi |
a24b9f23 | 4820 | rm -f conftest* |
d5e0cd6f | 4821 | |
d5e0cd6f | 4822 | fi |
d5e0cd6f | 4823 | |
a24b9f23 MA |
4824 | if test $ac_cv_header_stdc = yes; then |
4825 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4826 | if test "$cross_compiling" = yes; then : | |
4827 | : | |
4828 | else | |
4829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4830 | /* end confdefs.h. */ | |
4831 | #include <ctype.h> | |
4832 | #include <stdlib.h> | |
4833 | #if ((' ' & 0x0FF) == 0x020) | |
4834 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4835 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4836 | #else | |
4837 | # define ISLOWER(c) \ | |
4838 | (('a' <= (c) && (c) <= 'i') \ | |
4839 | || ('j' <= (c) && (c) <= 'r') \ | |
4840 | || ('s' <= (c) && (c) <= 'z')) | |
4841 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4842 | #endif | |
d5e0cd6f | 4843 | |
a24b9f23 | 4844 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4a70cb10 TM |
4845 | int |
4846 | main () | |
4847 | { | |
a24b9f23 MA |
4848 | int i; |
4849 | for (i = 0; i < 256; i++) | |
4850 | if (XOR (islower (i), ISLOWER (i)) | |
4851 | || toupper (i) != TOUPPER (i)) | |
4852 | return 2; | |
4a70cb10 TM |
4853 | return 0; |
4854 | } | |
d5e0cd6f | 4855 | _ACEOF |
a24b9f23 MA |
4856 | if ac_fn_c_try_run "$LINENO"; then : |
4857 | ||
529be52a | 4858 | else |
a24b9f23 MA |
4859 | ac_cv_header_stdc=no |
4860 | fi | |
4861 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4862 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4863 | fi | |
529be52a | 4864 | |
529be52a | 4865 | fi |
a24b9f23 MA |
4866 | fi |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4868 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4869 | if test $ac_cv_header_stdc = yes; then | |
4870 | ||
4871 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
d5e0cd6f | 4872 | |
529be52a | 4873 | fi |
a24b9f23 MA |
4874 | |
4875 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4876 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4877 | inttypes.h stdint.h unistd.h | |
4878 | do : | |
4879 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4880 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4881 | " | |
4882 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4883 | cat >>confdefs.h <<_ACEOF | |
4884 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4885 | _ACEOF | |
4886 | ||
4887 | fi | |
4888 | ||
4889 | done | |
4890 | ||
4891 | ||
4892 | ||
4893 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4894 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
4895 | MINIX=yes | |
529be52a | 4896 | else |
a24b9f23 MA |
4897 | MINIX= |
4898 | fi | |
4899 | ||
4900 | ||
4901 | if test "$MINIX" = yes; then | |
4902 | ||
4903 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4904 | ||
4905 | ||
4906 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4907 | ||
529be52a | 4908 | |
a24b9f23 | 4909 | $as_echo "#define _MINIX 1" >>confdefs.h |
529be52a | 4910 | |
a24b9f23 MA |
4911 | fi |
4912 | ||
4913 | ||
4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4915 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4916 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
4917 | $as_echo_n "(cached) " >&6 | |
529be52a | 4918 | else |
a24b9f23 | 4919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
529be52a | 4920 | /* end confdefs.h. */ |
a24b9f23 MA |
4921 | |
4922 | # define __EXTENSIONS__ 1 | |
4923 | $ac_includes_default | |
4a70cb10 TM |
4924 | int |
4925 | main () | |
4926 | { | |
d5e0cd6f | 4927 | |
4a70cb10 TM |
4928 | ; |
4929 | return 0; | |
4930 | } | |
4931 | _ACEOF | |
a24b9f23 MA |
4932 | if ac_fn_c_try_compile "$LINENO"; then : |
4933 | ac_cv_safe_to_define___extensions__=yes | |
4a70cb10 | 4934 | else |
a24b9f23 | 4935 | ac_cv_safe_to_define___extensions__=no |
4a70cb10 TM |
4936 | fi |
4937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d5e0cd6f | 4938 | fi |
a24b9f23 MA |
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4940 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4941 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4942 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
d5e0cd6f | 4943 | |
a24b9f23 | 4944 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
4a70cb10 | 4945 | |
a24b9f23 | 4946 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
529be52a | 4947 | |
a24b9f23 | 4948 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
529be52a | 4949 | |
a24b9f23 | 4950 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
4a70cb10 | 4951 | |
529be52a SR |
4952 | |
4953 | ||
a24b9f23 MA |
4954 | if test -n "$ac_tool_prefix"; then |
4955 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4956 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4958 | $as_echo_n "checking for $ac_word... " >&6; } | |
4959 | if ${ac_cv_prog_RANLIB+:} false; then : | |
4960 | $as_echo_n "(cached) " >&6 | |
4961 | else | |
4962 | if test -n "$RANLIB"; then | |
4963 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4964 | else | |
4965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4966 | for as_dir in $PATH | |
4967 | do | |
4968 | IFS=$as_save_IFS | |
4969 | test -z "$as_dir" && as_dir=. | |
4970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4972 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4974 | break 2 | |
4975 | fi | |
4976 | done | |
4977 | done | |
4978 | IFS=$as_save_IFS | |
4979 | ||
4980 | fi | |
4981 | fi | |
4982 | RANLIB=$ac_cv_prog_RANLIB | |
4983 | if test -n "$RANLIB"; then | |
4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4985 | $as_echo "$RANLIB" >&6; } | |
4986 | else | |
4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4988 | $as_echo "no" >&6; } | |
529be52a SR |
4989 | fi |
4990 | ||
a24b9f23 MA |
4991 | |
4992 | fi | |
4993 | if test -z "$ac_cv_prog_RANLIB"; then | |
4994 | ac_ct_RANLIB=$RANLIB | |
4995 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4996 | set dummy ranlib; ac_word=$2 | |
4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4998 | $as_echo_n "checking for $ac_word... " >&6; } | |
4999 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
5000 | $as_echo_n "(cached) " >&6 | |
529be52a | 5001 | else |
a24b9f23 MA |
5002 | if test -n "$ac_ct_RANLIB"; then |
5003 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
d5e0cd6f | 5004 | else |
a24b9f23 MA |
5005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5006 | for as_dir in $PATH | |
5007 | do | |
5008 | IFS=$as_save_IFS | |
5009 | test -z "$as_dir" && as_dir=. | |
5010 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5012 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5014 | break 2 | |
5015 | fi | |
5016 | done | |
5017 | done | |
5018 | IFS=$as_save_IFS | |
529be52a | 5019 | |
d5e0cd6f | 5020 | fi |
d5e0cd6f | 5021 | fi |
a24b9f23 MA |
5022 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5023 | if test -n "$ac_ct_RANLIB"; then | |
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5025 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5026 | else | |
5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5028 | $as_echo "no" >&6; } | |
5029 | fi | |
5030 | ||
5031 | if test "x$ac_ct_RANLIB" = x; then | |
5032 | RANLIB=":" | |
5033 | else | |
5034 | case $cross_compiling:$ac_tool_warned in | |
5035 | yes:) | |
5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5037 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5038 | ac_tool_warned=yes ;; | |
5039 | esac | |
5040 | RANLIB=$ac_ct_RANLIB | |
5041 | fi | |
529be52a | 5042 | else |
a24b9f23 MA |
5043 | RANLIB="$ac_cv_prog_RANLIB" |
5044 | fi | |
5045 | ||
e619bd67 FD |
5046 | |
5047 | # Extract the first word of "ar", so it can be a program name with args. | |
5048 | set dummy ar; ac_word=$2 | |
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5050 | $as_echo_n "checking for $ac_word... " >&6; } | |
5051 | if ${ac_cv_path_AR+:} false; then : | |
5052 | $as_echo_n "(cached) " >&6 | |
5053 | else | |
5054 | case $AR in | |
5055 | [\\/]* | ?:[\\/]*) | |
5056 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
5057 | ;; | |
5058 | *) | |
5059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5060 | for as_dir in $PATH | |
5061 | do | |
5062 | IFS=$as_save_IFS | |
5063 | test -z "$as_dir" && as_dir=. | |
5064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5065 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5066 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
5067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5068 | break 2 | |
5069 | fi | |
5070 | done | |
5071 | done | |
5072 | IFS=$as_save_IFS | |
5073 | ||
5074 | ;; | |
5075 | esac | |
5076 | fi | |
5077 | AR=$ac_cv_path_AR | |
5078 | if test -n "$AR"; then | |
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5080 | $as_echo "$AR" >&6; } | |
5081 | else | |
5082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5083 | $as_echo "no" >&6; } | |
5084 | fi | |
5085 | ||
5086 | ||
5087 | ||
5088 | ||
cab61f43 FD |
5089 | if test "X$AR" = "X"; then |
5090 | as_fn_error $? " | |
5091 | ar program not found. Please fix your PATH to include the directory in | |
5092 | which ar resides, or set AR in the environment with the full path to ar." "$LINENO" 5 | |
5093 | fi | |
5094 | ||
a24b9f23 | 5095 | ac_config_headers="$ac_config_headers includes/config.h" |
d5e0cd6f | 5096 | |
529be52a | 5097 | |
a24b9f23 MA |
5098 | # we sometimes need to know byte order for building packets |
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
5100 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5101 | if ${ac_cv_c_bigendian+:} false; then : | |
5102 | $as_echo_n "(cached) " >&6 | |
4a70cb10 | 5103 | else |
a24b9f23 MA |
5104 | ac_cv_c_bigendian=unknown |
5105 | # See if we're dealing with a universal compiler. | |
5106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d5e0cd6f | 5107 | /* end confdefs.h. */ |
a24b9f23 MA |
5108 | #ifndef __APPLE_CC__ |
5109 | not a universal capable compiler | |
5110 | #endif | |
5111 | typedef int dummy; | |
5112 | ||
5113 | _ACEOF | |
5114 | if ac_fn_c_try_compile "$LINENO"; then : | |
5115 | ||
5116 | # Check for potential -arch flags. It is not universal unless | |
5117 | # there are at least two -arch flags with different values. | |
5118 | ac_arch= | |
5119 | ac_prev= | |
5120 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5121 | if test -n "$ac_prev"; then | |
5122 | case $ac_word in | |
5123 | i?86 | x86_64 | ppc | ppc64) | |
5124 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5125 | ac_arch=$ac_word | |
5126 | else | |
5127 | ac_cv_c_bigendian=universal | |
5128 | break | |
5129 | fi | |
5130 | ;; | |
5131 | esac | |
5132 | ac_prev= | |
5133 | elif test "x$ac_word" = "x-arch"; then | |
5134 | ac_prev=arch | |
5135 | fi | |
5136 | done | |
5137 | fi | |
5138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5139 | if test $ac_cv_c_bigendian = unknown; then | |
5140 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5142 | /* end confdefs.h. */ | |
5143 | #include <sys/types.h> | |
5144 | #include <sys/param.h> | |
5145 | ||
d5e0cd6f DH |
5146 | int |
5147 | main () | |
5148 | { | |
a24b9f23 MA |
5149 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
5150 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5151 | && LITTLE_ENDIAN) | |
5152 | bogus endian macros | |
5153 | #endif | |
d5e0cd6f DH |
5154 | |
5155 | ; | |
5156 | return 0; | |
5157 | } | |
5158 | _ACEOF | |
a24b9f23 MA |
5159 | if ac_fn_c_try_compile "$LINENO"; then : |
5160 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5162 | /* end confdefs.h. */ | |
5163 | #include <sys/types.h> | |
5164 | #include <sys/param.h> | |
d5e0cd6f | 5165 | |
a24b9f23 MA |
5166 | int |
5167 | main () | |
5168 | { | |
5169 | #if BYTE_ORDER != BIG_ENDIAN | |
5170 | not big endian | |
5171 | #endif | |
d5e0cd6f | 5172 | |
a24b9f23 MA |
5173 | ; |
5174 | return 0; | |
5175 | } | |
5176 | _ACEOF | |
5177 | if ac_fn_c_try_compile "$LINENO"; then : | |
5178 | ac_cv_c_bigendian=yes | |
5179 | else | |
5180 | ac_cv_c_bigendian=no | |
529be52a | 5181 | fi |
529be52a | 5182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
529be52a | 5183 | fi |
a24b9f23 MA |
5184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5185 | fi | |
5186 | if test $ac_cv_c_bigendian = unknown; then | |
5187 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5189 | /* end confdefs.h. */ | |
5190 | #include <limits.h> | |
d5e0cd6f | 5191 | |
a24b9f23 MA |
5192 | int |
5193 | main () | |
5194 | { | |
5195 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5196 | bogus endian macros | |
5197 | #endif | |
d5e0cd6f | 5198 | |
a24b9f23 MA |
5199 | ; |
5200 | return 0; | |
5201 | } | |
529be52a | 5202 | _ACEOF |
a24b9f23 MA |
5203 | if ac_fn_c_try_compile "$LINENO"; then : |
5204 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
529be52a | 5206 | /* end confdefs.h. */ |
a24b9f23 MA |
5207 | #include <limits.h> |
5208 | ||
529be52a SR |
5209 | int |
5210 | main () | |
5211 | { | |
a24b9f23 MA |
5212 | #ifndef _BIG_ENDIAN |
5213 | not big endian | |
5214 | #endif | |
5215 | ||
529be52a SR |
5216 | ; |
5217 | return 0; | |
5218 | } | |
5219 | _ACEOF | |
a24b9f23 MA |
5220 | if ac_fn_c_try_compile "$LINENO"; then : |
5221 | ac_cv_c_bigendian=yes | |
529be52a | 5222 | else |
a24b9f23 MA |
5223 | ac_cv_c_bigendian=no |
5224 | fi | |
5225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5226 | fi | |
5227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5228 | fi | |
5229 | if test $ac_cv_c_bigendian = unknown; then | |
5230 | # Compile a test program. | |
5231 | if test "$cross_compiling" = yes; then : | |
5232 | # Try to guess by grepping values from an object file. | |
5233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5234 | /* end confdefs.h. */ | |
5235 | short int ascii_mm[] = | |
5236 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5237 | short int ascii_ii[] = | |
5238 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5239 | int use_ascii (int i) { | |
5240 | return ascii_mm[i] + ascii_ii[i]; | |
5241 | } | |
5242 | short int ebcdic_ii[] = | |
5243 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5244 | short int ebcdic_mm[] = | |
5245 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5246 | int use_ebcdic (int i) { | |
5247 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5248 | } | |
5249 | extern int foo; | |
d5e0cd6f | 5250 | |
a24b9f23 MA |
5251 | int |
5252 | main () | |
5253 | { | |
5254 | return use_ascii (foo) == use_ebcdic (foo); | |
5255 | ; | |
5256 | return 0; | |
5257 | } | |
5258 | _ACEOF | |
5259 | if ac_fn_c_try_compile "$LINENO"; then : | |
5260 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5261 | ac_cv_c_bigendian=yes | |
5262 | fi | |
5263 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5264 | if test "$ac_cv_c_bigendian" = unknown; then | |
5265 | ac_cv_c_bigendian=no | |
5266 | else | |
5267 | # finding both strings is unlikely to happen, but who knows? | |
5268 | ac_cv_c_bigendian=unknown | |
5269 | fi | |
5270 | fi | |
4a70cb10 | 5271 | fi |
529be52a | 5272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
529be52a | 5273 | else |
a24b9f23 | 5274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
529be52a SR |
5275 | /* end confdefs.h. */ |
5276 | $ac_includes_default | |
5277 | int | |
5278 | main () | |
5279 | { | |
a24b9f23 MA |
5280 | |
5281 | /* Are we little or big endian? From Harbison&Steele. */ | |
5282 | union | |
5283 | { | |
5284 | long int l; | |
5285 | char c[sizeof (long int)]; | |
5286 | } u; | |
5287 | u.l = 1; | |
5288 | return u.c[sizeof (long int) - 1] == 1; | |
d5e0cd6f | 5289 | |
529be52a SR |
5290 | ; |
5291 | return 0; | |
5292 | } | |
5293 | _ACEOF | |
a24b9f23 MA |
5294 | if ac_fn_c_try_run "$LINENO"; then : |
5295 | ac_cv_c_bigendian=no | |
529be52a | 5296 | else |
a24b9f23 MA |
5297 | ac_cv_c_bigendian=yes |
5298 | fi | |
5299 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5300 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4a70cb10 | 5301 | fi |
d5e0cd6f | 5302 | |
a24b9f23 | 5303 | fi |
4a70cb10 | 5304 | fi |
a24b9f23 MA |
5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
5306 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5307 | case $ac_cv_c_bigendian in #( | |
5308 | yes) | |
5309 | byte_order=BIG_ENDIAN | |
5310 | ;; #( | |
5311 | no) | |
5312 | byte_order=LITTLE_ENDIAN | |
5313 | ;; #( | |
5314 | universal) | |
d5e0cd6f | 5315 | |
a24b9f23 MA |
5316 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
5317 | ||
5318 | ;; #( | |
5319 | *) | |
5320 | as_fn_error $? "unknown endianness | |
5321 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
5322 | esac | |
d5e0cd6f | 5323 | |
9d6af565 | 5324 | |
529be52a | 5325 | cat >>confdefs.h <<_ACEOF |
a24b9f23 | 5326 | #define DHCP_BYTE_ORDER $byte_order |
529be52a | 5327 | _ACEOF |
4a70cb10 | 5328 | |
4a70cb10 | 5329 | |
a24b9f23 MA |
5330 | # Optional compile-time DEBUGging. |
5331 | # Check whether --enable-debug was given. | |
5332 | if test "${enable_debug+set}" = set; then : | |
45adf35c TM |
5333 | enableval=$enable_debug; case "${enableval}" in |
5334 | yes) enable_debug=yes | |
5335 | ||
5336 | $as_echo "#define DEBUG 1" >>confdefs.h | |
5337 | ||
9a111ee8 | 5338 | # Just override CFLAGS totally to remove optimization. |
45adf35c TM |
5339 | CFLAGS="-g";; |
5340 | no) enable_debug=no ;; | |
5341 | *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; | |
5342 | esac | |
a24b9f23 MA |
5343 | else |
5344 | enable_debug=no | |
5345 | fi | |
5346 | ||
9d6af565 | 5347 | |
a24b9f23 MA |
5348 | # XXX: there are actually quite a lot more DEBUG_ features we could enable, |
5349 | # but I don't want to pollute the --help space. | |
5350 | # | |
5351 | #/* #define DEBUG_TOKENS */ | |
5352 | #/* #define DEBUG_PACKET */ | |
5353 | #/* #define DEBUG_EXPRESSIONS */ | |
5354 | #/* #define DEBUG_FIND_LEASE */ | |
5355 | #/* #define DEBUG_EXPRESSION_PARSE */ | |
5356 | #/* #define DEBUG_CLASS_MATCHING */ | |
5357 | #/* #define DEBUG_MEMORY_LEAKAGE */ | |
5358 | #/* #define DEBUG_MALLOC_POOL */ | |
5359 | #/* #define DEBUG_LEASE_STATE_TRANSITIONS */ | |
5360 | #/* #define DEBUG_RC_HISTORY */ | |
5361 | #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */ | |
5362 | #/* #define RC_HISTORY_MAX 10240 */ | |
5363 | #/* #define POINTER_DEBUG */ | |
5364 | #/* #define DEBUG_FAILOVER_MESSAGES */ | |
5365 | #/* #define DEBUG_FAILOVER_TIMING */ | |
5366 | #/* #define DEBUG_DUMP_ALL_LEASES */ | |
9d6af565 | 5367 | |
a24b9f23 MA |
5368 | # Failover optional compile-time feature. |
5369 | # Check whether --enable-failover was given. | |
5370 | if test "${enable_failover+set}" = set; then : | |
5371 | enableval=$enable_failover; | |
9d6af565 | 5372 | fi |
9d6af565 | 5373 | |
a24b9f23 MA |
5374 | # Failover is on by default, so define if it is not explicitly disabled. |
5375 | if test "$enable_failover" != "no"; then | |
e82906fc | 5376 | enable_failover="yes" |
a24b9f23 MA |
5377 | |
5378 | $as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h | |
9d6af565 | 5379 | |
4a70cb10 | 5380 | fi |
9d6af565 | 5381 | |
a24b9f23 MA |
5382 | # execute() support. |
5383 | # Check whether --enable-execute was given. | |
5384 | if test "${enable_execute+set}" = set; then : | |
5385 | enableval=$enable_execute; | |
4a70cb10 | 5386 | fi |
9d6af565 | 5387 | |
a24b9f23 MA |
5388 | # execute() is on by default, so define if it is not explicitly disabled. |
5389 | if test "$enable_execute" != "no" ; then | |
e82906fc | 5390 | enable_execute="yes" |
9d6af565 | 5391 | |
a24b9f23 | 5392 | $as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h |
9d6af565 | 5393 | |
a24b9f23 | 5394 | fi |
9d6af565 | 5395 | |
a24b9f23 MA |
5396 | # Server tracing support. |
5397 | # Check whether --enable-tracing was given. | |
5398 | if test "${enable_tracing+set}" = set; then : | |
5399 | enableval=$enable_tracing; | |
5400 | fi | |
5401 | ||
5402 | # tracing is on by default, so define if it is not explicitly disabled. | |
5403 | if test "$enable_tracing" != "no" ; then | |
9d6af565 | 5404 | |
a24b9f23 | 5405 | $as_echo "#define TRACING 1" >>confdefs.h |
9d6af565 | 5406 | |
4a70cb10 | 5407 | fi |
9d6af565 | 5408 | |
a24b9f23 MA |
5409 | # Delayed-ack feature support (experimental). |
5410 | # Check whether --enable-delayed_ack was given. | |
5411 | if test "${enable_delayed_ack+set}" = set; then : | |
5412 | enableval=$enable_delayed_ack; | |
4a70cb10 TM |
5413 | fi |
5414 | ||
a24b9f23 | 5415 | if test "$enable_delayed_ack" = "yes"; then |
4a70cb10 | 5416 | |
a24b9f23 | 5417 | $as_echo "#define DELAYED_ACK 1" >>confdefs.h |
9d6af565 | 5418 | |
e82906fc TM |
5419 | else |
5420 | enable_delayed_ack="no" | |
a24b9f23 | 5421 | fi |
9d6af565 | 5422 | |
a24b9f23 MA |
5423 | # DHCPv6 optional compile-time feature. |
5424 | # Check whether --enable-dhcpv6 was given. | |
5425 | if test "${enable_dhcpv6+set}" = set; then : | |
5426 | enableval=$enable_dhcpv6; | |
5427 | fi | |
8cc64a89 | 5428 | |
a24b9f23 MA |
5429 | # DHCPv6 is on by default, so define if it is not explicitly disabled. |
5430 | if test "$enable_dhcpv6" != "no"; then | |
e82906fc | 5431 | enable_dhcpv6="yes" |
d5e0cd6f | 5432 | |
a24b9f23 | 5433 | $as_echo "#define DHCPv6 1" >>confdefs.h |
6e999c3c | 5434 | |
a37c9dd1 | 5435 | fi |
a37c9dd1 | 5436 | |
785c1a51 FD |
5437 | # DHCPv4o6 optional compile-time feature. |
5438 | # Check whether --enable-dhcpv4o6 was given. | |
5439 | if test "${enable_dhcpv4o6+set}" = set; then : | |
5440 | enableval=$enable_dhcpv4o6; | |
5441 | fi | |
5442 | ||
5443 | # DHCPv4o6 is off by default, so define if it is explicitly enabled. | |
5444 | if test "$enable_dhcpv4o6" = "yes"; then | |
5445 | # DHCPv4o6 requires DHCPv6 | |
5446 | if test "$enable_dhcpv6" = "no"; then | |
5447 | as_fn_error $? "dhcpv4o6 requires dhcpv6" "$LINENO" 5 | |
5448 | fi | |
5449 | # DHCPv4o6 is not yet compatible with delayed-ack | |
5450 | if test "$enable_delayed_ack" = "yes"; then | |
5451 | as_fn_error $? "dhcpv4o6 is not compatible with delayed-ack" "$LINENO" 5 | |
5452 | fi | |
5453 | ||
5454 | $as_echo "#define DHCP4o6 1" >>confdefs.h | |
5455 | ||
5456 | fi | |
5457 | ||
a24b9f23 MA |
5458 | # PARANOIA is off by default (until we can test it with all features) |
5459 | # Check whether --enable-paranoia was given. | |
5460 | if test "${enable_paranoia+set}" = set; then : | |
5461 | enableval=$enable_paranoia; | |
5462 | fi | |
4d24561a | 5463 | |
a24b9f23 MA |
5464 | # Check whether --enable-early_chroot was given. |
5465 | if test "${enable_early_chroot+set}" = set; then : | |
5466 | enableval=$enable_early_chroot; | |
4a70cb10 | 5467 | fi |
529be52a | 5468 | |
a24b9f23 MA |
5469 | # If someone enables early chroot, but does not enable paranoia, do so for |
5470 | # them. | |
5471 | if test "$enable_paranoia" != "yes" && \ | |
5472 | test "$enable_early_chroot" = "yes" ; then | |
5473 | enable_paranoia="yes" | |
a37c9dd1 | 5474 | fi |
4d24561a | 5475 | |
a24b9f23 | 5476 | if test "$enable_paranoia" = "yes" ; then |
a37c9dd1 | 5477 | |
a24b9f23 | 5478 | $as_echo "#define PARANOIA 1" >>confdefs.h |
4a70cb10 | 5479 | |
4a70cb10 | 5480 | fi |
a24b9f23 | 5481 | if test "$enable_early_chroot" = "yes" ; then |
529be52a | 5482 | |
a24b9f23 | 5483 | $as_echo "#define EARLY_CHROOT 1" >>confdefs.h |
529be52a | 5484 | |
a37c9dd1 | 5485 | fi |
a24b9f23 MA |
5486 | |
5487 | # Check whether --enable-ipv4_pktinfo was given. | |
5488 | if test "${enable_ipv4_pktinfo+set}" = set; then : | |
5489 | enableval=$enable_ipv4_pktinfo; | |
5490 | fi | |
5491 | ||
5492 | ||
5493 | if test "$enable_ipv4_pktinfo" = "yes"; then | |
5494 | ||
5495 | $as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h | |
a37c9dd1 | 5496 | |
529be52a | 5497 | fi |
a37c9dd1 | 5498 | |
a24b9f23 MA |
5499 | # Check whether --enable-use_sockets was given. |
5500 | if test "${enable_use_sockets+set}" = set; then : | |
5501 | enableval=$enable_use_sockets; | |
a37c9dd1 MA |
5502 | fi |
5503 | ||
a37c9dd1 | 5504 | |
a24b9f23 | 5505 | if test "$enable_use_sockets" = "yes"; then |
a37c9dd1 | 5506 | |
a24b9f23 | 5507 | $as_echo "#define USE_SOCKETS 1" >>confdefs.h |
a37c9dd1 | 5508 | |
a24b9f23 | 5509 | fi |
6e999c3c | 5510 | |
a24b9f23 MA |
5511 | # Try to hnadle incorrect byte order for secs field |
5512 | # This is off by default | |
5513 | # Check whether --enable-secs_byteorder was given. | |
5514 | if test "${enable_secs_byteorder+set}" = set; then : | |
5515 | enableval=$enable_secs_byteorder; | |
6e999c3c | 5516 | fi |
4d24561a | 5517 | |
6e999c3c | 5518 | |
a24b9f23 MA |
5519 | if test "$enable_secs_byteorder" = "yes" ; then |
5520 | ||
5521 | $as_echo "#define SECS_BYTEORDER 1" >>confdefs.h | |
529be52a | 5522 | |
4a70cb10 | 5523 | fi |
4a70cb10 | 5524 | |
66e40c5d SR |
5525 | # Include the PID in the log messages. This is useful when there may |
5526 | # be multiple instances of a program. | |
00e9af8e SR |
5527 | # This is off by default |
5528 | # Check whether --enable-log_pid was given. | |
5529 | if test "${enable_log_pid+set}" = set; then : | |
5530 | enableval=$enable_log_pid; | |
5531 | fi | |
5532 | ||
5533 | if test "$enable_log_pid" = "yes" ; then | |
5534 | ||
5535 | $as_echo "#define USE_LOG_PID 1" >>confdefs.h | |
5536 | ||
5537 | fi | |
5538 | ||
3933e2aa SR |
5539 | # Allow for binary search when inserting v4 leases into queues |
5540 | # Check whether --enable-binary_leases was given. | |
5541 | if test "${enable_binary_leases+set}" = set; then : | |
5542 | enableval=$enable_binary_leases; | |
5543 | fi | |
5544 | ||
5545 | # binary_leases is off by default. | |
5546 | if test "$enable_binary_leases" = "yes"; then | |
5547 | ||
5548 | $as_echo "#define BINARY_LEASES 1" >>confdefs.h | |
5549 | ||
e82906fc TM |
5550 | else |
5551 | enable_binary_leases="no" | |
3933e2aa SR |
5552 | fi |
5553 | ||
a24b9f23 | 5554 | # Testing section |
529be52a | 5555 | |
f2d20b9e | 5556 | DISTCHECK_ATF_CONFIGURE_FLAG= |
a24b9f23 MA |
5557 | atf_path="no" |
5558 | ||
5559 | # Check whether --with-atf was given. | |
5560 | if test "${with_atf+set}" = set; then : | |
5561 | withval=$with_atf; atf_path="$withval" | |
529be52a | 5562 | fi |
4a70cb10 | 5563 | |
6913a589 FD |
5564 | if test "$atf_path" = "bind"; then |
5565 | BIND_ATF_TRUE= | |
5566 | BIND_ATF_FALSE='#' | |
5567 | else | |
5568 | BIND_ATF_TRUE='#' | |
5569 | BIND_ATF_FALSE= | |
5570 | fi | |
5571 | ||
5572 | if test "$atf_path" = "bind" ; then | |
f2d20b9e | 5573 | DISTCHECK_ATF_CONFIGURE_FLAG="--with-atf=bind" |
6913a589 FD |
5574 | atf_pcp="bind" |
5575 | atf_path="\${top_srcdir}/bind/atf" | |
5576 | ATF_CFLAGS="-I$atf_path/include -DUNIT_TEST" | |
5577 | ATF_LDFLAGS="-L$atf_path/lib -latf-c" | |
5a428b2e | 5578 | ATF_BIN=`cd $srcdir; pwd`/bind/atf/bin |
6913a589 FD |
5579 | |
5580 | ||
5581 | ||
5582 | BINDCONFIG="$BINDCONFIG --with-atf" | |
5583 | elif test "$atf_path" != "no" ; then | |
f2d20b9e | 5584 | DISTCHECK_ATF_CONFIGURE_FLAG="--with-atf=$atf_path" |
a24b9f23 MA |
5585 | # Config path for pkg-config |
5586 | atf_pcp="" | |
5587 | if test "$atf_path" != "yes" ; then | |
5588 | if test -f $atf_path/lib/pkgconfig/atf-c.pc ; then | |
5589 | atf_pcp=$atf_path/lib/pkgconfig | |
5590 | elif test -f $atf_path/lib64/pkgconfig/atf-c.pc ; then | |
5591 | atf_pcp=$atf_path/lib64/pkgconfig | |
5592 | fi | |
5593 | else | |
5594 | # Not specified, try some common paths | |
5595 | atf_dirs="/usr /usr/local /usr/pkg /opt /opt/local" | |
5596 | for d in $atf_dirs | |
5597 | do | |
5598 | if test -f $d/lib/pkgconfig/atf-c.pc ; then | |
5599 | atf_pcp=$d/lib/pkgconfig | |
9a111ee8 | 5600 | atf_path=$d |
a24b9f23 MA |
5601 | elif test -f $d/lib64/pkgconfig/atf-c.pc ; then |
5602 | atf_pcp=$d/lib64/pkgconfig | |
9a111ee8 | 5603 | atf_path=$d |
a24b9f23 MA |
5604 | fi |
5605 | done | |
5606 | fi | |
9a111ee8 | 5607 | |
a24b9f23 MA |
5608 | if test "$atf_pcp" = "" ; then |
5609 | as_fn_error $? "Unable to find atf files in location specified" "$LINENO" 5 | |
5610 | else | |
cacce092 TM |
5611 | # Extract the first word of "pkg-config", so it can be a program name with args. |
5612 | set dummy pkg-config; ac_word=$2 | |
5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5614 | $as_echo_n "checking for $ac_word... " >&6; } | |
5615 | if ${ac_cv_prog_pkgcfg_found+:} false; then : | |
5616 | $as_echo_n "(cached) " >&6 | |
5617 | else | |
5618 | if test -n "$pkgcfg_found"; then | |
5619 | ac_cv_prog_pkgcfg_found="$pkgcfg_found" # Let the user override the test. | |
5620 | else | |
5621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5622 | for as_dir in $PATH | |
5623 | do | |
5624 | IFS=$as_save_IFS | |
5625 | test -z "$as_dir" && as_dir=. | |
5626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5628 | ac_cv_prog_pkgcfg_found="pkg-config" | |
5629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5630 | break 2 | |
5631 | fi | |
5632 | done | |
5633 | done | |
5634 | IFS=$as_save_IFS | |
5635 | ||
5636 | fi | |
5637 | fi | |
5638 | pkgcfg_found=$ac_cv_prog_pkgcfg_found | |
5639 | if test -n "$pkgcfg_found"; then | |
5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgcfg_found" >&5 | |
5641 | $as_echo "$pkgcfg_found" >&6; } | |
5642 | else | |
5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5644 | $as_echo "no" >&6; } | |
5645 | fi | |
5646 | ||
5647 | ||
5648 | if test "$pkgcfg_found" = ""; then | |
5649 | as_fn_error $? "Could not locate ATF, pkg-config not installed" "$LINENO" 5 | |
5650 | fi | |
a24b9f23 MA |
5651 | ATF_CFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST" |
5652 | ATF_LDFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`" | |
9a111ee8 TM |
5653 | if test -f $atf_pcp/atf-sh.pc ; then |
5654 | ATF_BIN="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin" | |
5655 | else | |
5656 | # older versions don't have atf-sh, try usual place | |
5657 | ATF_BIN=$atf_path/bin | |
5658 | fi | |
5659 | ||
5660 | if test ! -x $ATF_BIN/atf-run -o ! -x $ATF_BIN/atf-report ; then | |
5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: atf-run,atf-report not found, assuming they are in your path" >&5 | |
5662 | $as_echo "$as_me: WARNING: atf-run,atf-report not found, assuming they are in your path" >&2;} | |
5663 | fi | |
5664 | ||
5665 | ||
a24b9f23 MA |
5666 | |
5667 | ||
5668 | fi | |
529be52a | 5669 | fi |
6e999c3c | 5670 | |
a24b9f23 MA |
5671 | if test "$atf_pcp" != ""; then |
5672 | HAVE_ATF_TRUE= | |
5673 | HAVE_ATF_FALSE='#' | |
5674 | else | |
5675 | HAVE_ATF_TRUE='#' | |
5676 | HAVE_ATF_FALSE= | |
6e999c3c | 5677 | fi |
4d24561a | 5678 | |
9a111ee8 TM |
5679 | if test -z "$HAVE_ATF_TRUE"; then : |
5680 | ||
5681 | $as_echo "#define HAVE_ATF 1" >>confdefs.h | |
5682 | ||
5683 | fi | |
a24b9f23 | 5684 | |
f2d20b9e | 5685 | |
a24b9f23 MA |
5686 | ### |
5687 | ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we | |
5688 | ### need to look there and potentially overwrite by default (but not if | |
5689 | ### the user configures an alternate value). LOCALSTATEDIR is totally | |
5690 | ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and | |
5691 | ### they would be insane for suggesting it. We need to look in /var/for | |
5692 | ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by | |
5693 | ### default. | |
5694 | ### | |
5695 | if test "x$prefix" = xNONE; then | |
5696 | $as_echo_n "checking for prefix by " >&6 | |
5697 | # Extract the first word of "dhcpd", so it can be a program name with args. | |
5698 | set dummy dhcpd; ac_word=$2 | |
5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5700 | $as_echo_n "checking for $ac_word... " >&6; } | |
5701 | if ${ac_cv_path_ac_prefix_program+:} false; then : | |
5702 | $as_echo_n "(cached) " >&6 | |
5703 | else | |
5704 | case $ac_prefix_program in | |
5705 | [\\/]* | ?:[\\/]*) | |
5706 | ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path. | |
5707 | ;; | |
5708 | *) | |
5709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5710 | for as_dir in $PATH | |
5711 | do | |
5712 | IFS=$as_save_IFS | |
5713 | test -z "$as_dir" && as_dir=. | |
5714 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5715 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5716 | ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext" | |
5717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5718 | break 2 | |
5719 | fi | |
529be52a | 5720 | done |
a24b9f23 MA |
5721 | done |
5722 | IFS=$as_save_IFS | |
6e999c3c | 5723 | |
a24b9f23 MA |
5724 | ;; |
5725 | esac | |
5726 | fi | |
5727 | ac_prefix_program=$ac_cv_path_ac_prefix_program | |
5728 | if test -n "$ac_prefix_program"; then | |
5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5 | |
5730 | $as_echo "$ac_prefix_program" >&6; } | |
529be52a | 5731 | else |
a24b9f23 MA |
5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5733 | $as_echo "no" >&6; } | |
5734 | fi | |
6e999c3c | 5735 | |
a24b9f23 MA |
5736 | |
5737 | if test -n "$ac_prefix_program"; then | |
5738 | prefix=`$as_dirname -- "$ac_prefix_program" || | |
5739 | $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5740 | X"$ac_prefix_program" : 'X\(//\)[^/]' \| \ | |
5741 | X"$ac_prefix_program" : 'X\(//\)$' \| \ | |
5742 | X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null || | |
5743 | $as_echo X"$ac_prefix_program" | | |
5744 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
5745 | s//\1/ | |
5746 | q | |
5747 | } | |
5748 | /^X\(\/\/\)[^/].*/{ | |
5749 | s//\1/ | |
5750 | q | |
5751 | } | |
5752 | /^X\(\/\/\)$/{ | |
5753 | s//\1/ | |
5754 | q | |
5755 | } | |
5756 | /^X\(\/\).*/{ | |
5757 | s//\1/ | |
5758 | q | |
5759 | } | |
5760 | s/.*/./; q'` | |
5761 | prefix=`$as_dirname -- "$prefix" || | |
5762 | $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5763 | X"$prefix" : 'X\(//\)[^/]' \| \ | |
5764 | X"$prefix" : 'X\(//\)$' \| \ | |
5765 | X"$prefix" : 'X\(/\)' \| . 2>/dev/null || | |
5766 | $as_echo X"$prefix" | | |
5767 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
5768 | s//\1/ | |
5769 | q | |
5770 | } | |
5771 | /^X\(\/\/\)[^/].*/{ | |
5772 | s//\1/ | |
5773 | q | |
5774 | } | |
5775 | /^X\(\/\/\)$/{ | |
5776 | s//\1/ | |
5777 | q | |
5778 | } | |
5779 | /^X\(\/\).*/{ | |
5780 | s//\1/ | |
5781 | q | |
5782 | } | |
5783 | s/.*/./; q'` | |
5784 | fi | |
5785 | fi | |
4a70cb10 | 5786 | |
529be52a | 5787 | |
a24b9f23 MA |
5788 | # XXX - isn't there SOME WAY to default autoconf to /var instead of |
5789 | # /usr/local/var/no/one/has/this/please/stop/trying? | |
5790 | case "$localstatedir" in | |
5791 | '${prefix}/var') | |
5792 | localstatedir=/var | |
5793 | ;; | |
529be52a | 5794 | esac |
6e999c3c | 5795 | |
a24b9f23 MA |
5796 | # Allow specification of alternate state files |
5797 | ||
5798 | # Check whether --with-srv-lease-file was given. | |
5799 | if test "${with_srv_lease_file+set}" = set; then : | |
5800 | withval=$with_srv_lease_file; | |
5801 | cat >>confdefs.h <<_ACEOF | |
5802 | #define _PATH_DHCPD_DB "$withval" | |
5803 | _ACEOF | |
6e999c3c | 5804 | |
4a70cb10 | 5805 | fi |
6e999c3c SK |
5806 | |
5807 | ||
6913a589 FD |
5808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd.leases location" >&5 |
5809 | $as_echo_n "checking for dhcpd.leases location... " >&6; } | |
a24b9f23 MA |
5810 | if [ "x$with_srv_lease_file" = "x" ] ; then |
5811 | if [ -d "${localstatedir}/db" ] ; then | |
5812 | with_srv_lease_file="${localstatedir}/db/dhcpd.leases" | |
5813 | elif [ -d "${localstatedir}/state" ] ; then | |
5814 | if [ -d "${localstatedir}/state/dhcp" ] ; then | |
5815 | with_srv_lease_file="${localstatedir}/state/dhcp/dhcpd.leases" | |
5816 | else | |
5817 | with_srv_lease_file="${localstatedir}/state/dhcpd.leases" | |
5818 | fi | |
5819 | elif [ -d "${localstatedir}/lib" ] ; then | |
5820 | if [ -d "${localstatedir}/lib/dhcp" ] ; then | |
5821 | with_srv_lease_file="${localstatedir}/lib/dhcp/dhcpd.leases" | |
5822 | else | |
5823 | with_srv_lease_file="${localstatedir}/lib/dhcpd.leases" | |
5824 | fi | |
5825 | elif [ -d "${localstatedir}/etc" ] ; then | |
5826 | with_srv_lease_file="${localstatedir}/etc/dhcpd.leases" | |
5827 | else | |
5828 | with_srv_lease_file="/etc/dhcpd.leases" | |
5829 | fi | |
5830 | fi | |
6913a589 FD |
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv_lease_file" >&5 |
5832 | $as_echo "$with_srv_lease_file" >&6; } | |
529be52a | 5833 | |
a24b9f23 MA |
5834 | |
5835 | # Check whether --with-srv6-lease-file was given. | |
5836 | if test "${with_srv6_lease_file+set}" = set; then : | |
5837 | withval=$with_srv6_lease_file; | |
5838 | cat >>confdefs.h <<_ACEOF | |
5839 | #define _PATH_DHCPD6_DB "$withval" | |
6e999c3c | 5840 | _ACEOF |
4d24561a | 5841 | |
6e999c3c SK |
5842 | fi |
5843 | ||
a24b9f23 | 5844 | |
6913a589 FD |
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd6.leases location" >&5 |
5846 | $as_echo_n "checking for dhcpd6.leases location... " >&6; } | |
a24b9f23 MA |
5847 | if [ "x$with_srv6_lease_file" = "x" ] ; then |
5848 | if [ -d "${localstatedir}/db" ] ; then | |
5849 | with_srv6_lease_file="${localstatedir}/db/dhcpd6.leases" | |
5850 | elif [ -d "${localstatedir}/state" ] ; then | |
5851 | if [ -d "${localstatedir}/state/dhcp" ] ; then | |
5852 | with_srv6_lease_file="${localstatedir}/state/dhcp/dhcpd6.leases" | |
5853 | else | |
5854 | with_srv6_lease_file="${localstatedir}/state/dhcpd6.leases" | |
5855 | fi | |
5856 | elif [ -d "${localstatedir}/lib" ] ; then | |
5857 | if [ -d "${localstatedir}/lib/dhcp" ] ; then | |
5858 | with_srv6_lease_file="${localstatedir}/lib/dhcp/dhcpd6.leases" | |
5859 | else | |
5860 | with_srv6_lease_file="${localstatedir}/lib/dhcpd6.leases" | |
5861 | fi | |
5862 | elif [ -d "${localstatedir}/etc" ] ; then | |
5863 | with_srv6_lease_file="${localstatedir}/etc/dhcpd6.leases" | |
5864 | else | |
5865 | with_srv6_lease_file="/etc/dhcpd6.leases" | |
5866 | fi | |
4a70cb10 | 5867 | fi |
6913a589 FD |
5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv6_lease_file" >&5 |
5869 | $as_echo "$with_srv6_lease_file" >&6; } | |
6e999c3c | 5870 | |
6e999c3c | 5871 | |
a24b9f23 MA |
5872 | # Check whether --with-cli-lease-file was given. |
5873 | if test "${with_cli_lease_file+set}" = set; then : | |
5874 | withval=$with_cli_lease_file; | |
5875 | cat >>confdefs.h <<_ACEOF | |
5876 | #define _PATH_DHCLIENT_DB "$withval" | |
6e999c3c | 5877 | _ACEOF |
fe5b0fdd | 5878 | |
fe5b0fdd | 5879 | fi |
4d24561a | 5880 | |
fe5b0fdd | 5881 | |
6913a589 FD |
5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient.leases location" >&5 |
5883 | $as_echo_n "checking for dhclient.leases location... " >&6; } | |
a24b9f23 MA |
5884 | if [ "x$with_cli_lease_file" = "x" ] ; then |
5885 | if [ -d "${localstatedir}/db" ] ; then | |
5886 | with_cli_lease_file="${localstatedir}/db/dhclient.leases" | |
5887 | elif [ -d "${localstatedir}/state" ] ; then | |
5888 | if [ -d "${localstatedir}/state/dhcp" ] ; then | |
5889 | with_cli_lease_file="${localstatedir}/state/dhcp/dhclient.leases" | |
5890 | else | |
5891 | with_cli_lease_file="${localstatedir}/state/dhclient.leases" | |
5892 | fi | |
5893 | elif [ -d "${localstatedir}/lib" ] ; then | |
5894 | if [ -d "${localstatedir}/lib/dhcp" ] ; then | |
5895 | with_cli_lease_file="${localstatedir}/lib/dhcp/dhclient.leases" | |
5896 | else | |
5897 | with_cli_lease_file="${localstatedir}/lib/dhclient.leases" | |
5898 | fi | |
5899 | elif [ -d "${localstatedir}/etc" ] ; then | |
5900 | with_cli_lease_file="${localstatedir}/etc/dhclient.leases" | |
5901 | else | |
5902 | with_cli_lease_file="/etc/dhclient.leases" | |
5903 | fi | |
529be52a | 5904 | fi |
6913a589 FD |
5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli_lease_file" >&5 |
5906 | $as_echo "$with_cli_lease_file" >&6; } | |
fe5b0fdd | 5907 | |
4d24561a | 5908 | |
a24b9f23 MA |
5909 | # Check whether --with-cli6-lease-file was given. |
5910 | if test "${with_cli6_lease_file+set}" = set; then : | |
5911 | withval=$with_cli6_lease_file; | |
5912 | cat >>confdefs.h <<_ACEOF | |
5913 | #define _PATH_DHCLIENT6_DB "$withval" | |
5914 | _ACEOF | |
fe5b0fdd | 5915 | |
a24b9f23 | 5916 | fi |
529be52a | 5917 | |
fe5b0fdd | 5918 | |
6913a589 FD |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient6.leases location" >&5 |
5920 | $as_echo_n "checking for dhclient6.leases location... " >&6; } | |
a24b9f23 MA |
5921 | if [ "x$with_cli6_lease_file" = "x" ] ; then |
5922 | if [ -d "${localstatedir}/db" ] ; then | |
5923 | with_cli6_lease_file="${localstatedir}/db/dhclient6.leases" | |
5924 | elif [ -d "${localstatedir}/state" ] ; then | |
5925 | if [ -d "${localstatedir}/state/dhcp" ] ; then | |
5926 | with_cli6_lease_file="${localstatedir}/state/dhcp/dhclient6.leases" | |
5927 | else | |
5928 | with_cli6_lease_file="${localstatedir}/state/dhclient6.leases" | |
5929 | fi | |
5930 | elif [ -d "${localstatedir}/lib" ] ; then | |
5931 | if [ -d "${localstatedir}/lib/dhcp" ] ; then | |
5932 | with_cli6_lease_file="${localstatedir}/lib/dhcp/dhclient6.leases" | |
5933 | else | |
5934 | with_cli6_lease_file="${localstatedir}/lib/dhclient6.leases" | |
5935 | fi | |
5936 | elif [ -d "${localstatedir}/etc" ] ; then | |
5937 | with_cli6_lease_file="${localstatedir}/etc/dhclient6.leases" | |
529be52a | 5938 | else |
a24b9f23 MA |
5939 | with_cli6_lease_file="/etc/dhclient6.leases" |
5940 | fi | |
f125dc8b | 5941 | fi |
6913a589 FD |
5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli6_lease_file" >&5 |
5943 | $as_echo "$with_cli6_lease_file" >&6; } | |
a24b9f23 MA |
5944 | |
5945 | ||
5946 | # Check whether --with-srv-pid-file was given. | |
5947 | if test "${with_srv_pid_file+set}" = set; then : | |
5948 | withval=$with_srv_pid_file; | |
5949 | cat >>confdefs.h <<_ACEOF | |
5950 | #define _PATH_DHCPD_PID "$withval" | |
fe5b0fdd DH |
5951 | _ACEOF |
5952 | ||
fe5b0fdd | 5953 | fi |
4a70cb10 TM |
5954 | |
5955 | ||
a24b9f23 MA |
5956 | # Check whether --with-srv6-pid-file was given. |
5957 | if test "${with_srv6_pid_file+set}" = set; then : | |
5958 | withval=$with_srv6_pid_file; | |
5959 | cat >>confdefs.h <<_ACEOF | |
5960 | #define _PATH_DHCPD6_PID "$withval" | |
fe5b0fdd | 5961 | _ACEOF |
fe5b0fdd | 5962 | |
fe5b0fdd | 5963 | fi |
4d24561a | 5964 | |
fe5b0fdd | 5965 | |
a24b9f23 MA |
5966 | # Check whether --with-cli-pid-file was given. |
5967 | if test "${with_cli_pid_file+set}" = set; then : | |
5968 | withval=$with_cli_pid_file; | |
5969 | cat >>confdefs.h <<_ACEOF | |
5970 | #define _PATH_DHCLIENT_PID "$withval" | |
5971 | _ACEOF | |
4d24561a | 5972 | |
529be52a | 5973 | fi |
f125dc8b | 5974 | |
e62b1eb3 | 5975 | |
a24b9f23 MA |
5976 | # Check whether --with-cli6-pid-file was given. |
5977 | if test "${with_cli6_pid_file+set}" = set; then : | |
5978 | withval=$with_cli6_pid_file; | |
5979 | cat >>confdefs.h <<_ACEOF | |
5980 | #define _PATH_DHCLIENT6_PID "$withval" | |
e62b1eb3 DH |
5981 | _ACEOF |
5982 | ||
529be52a | 5983 | fi |
e62b1eb3 | 5984 | |
a24b9f23 MA |
5985 | |
5986 | # Check whether --with-relay-pid-file was given. | |
5987 | if test "${with_relay_pid_file+set}" = set; then : | |
5988 | withval=$with_relay_pid_file; | |
5989 | cat >>confdefs.h <<_ACEOF | |
5990 | #define _PATH_DHCRELAY_PID "$withval" | |
c62c07ef | 5991 | _ACEOF |
c62c07ef | 5992 | |
a24b9f23 | 5993 | fi |
c62c07ef | 5994 | |
c62c07ef | 5995 | |
a24b9f23 MA |
5996 | # Check whether --with-relay6-pid-file was given. |
5997 | if test "${with_relay6_pid_file+set}" = set; then : | |
5998 | withval=$with_relay6_pid_file; | |
5999 | cat >>confdefs.h <<_ACEOF | |
6000 | #define _PATH_DHCRELAY6_PID "$withval" | |
529be52a | 6001 | _ACEOF |
c62c07ef | 6002 | |
529be52a | 6003 | fi |
c62c07ef | 6004 | |
4a70cb10 | 6005 | |
a24b9f23 MA |
6006 | # Check basic types. |
6007 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" | |
6008 | case $ac_cv_c_int8_t in #( | |
6009 | no|yes) ;; #( | |
6010 | *) | |
c62c07ef | 6011 | |
a24b9f23 MA |
6012 | cat >>confdefs.h <<_ACEOF |
6013 | #define int8_t $ac_cv_c_int8_t | |
529be52a | 6014 | _ACEOF |
a24b9f23 | 6015 | ;; |
529be52a | 6016 | esac |
c62c07ef | 6017 | |
a24b9f23 MA |
6018 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
6019 | case $ac_cv_c_int16_t in #( | |
6020 | no|yes) ;; #( | |
6021 | *) | |
c62c07ef | 6022 | |
a24b9f23 MA |
6023 | cat >>confdefs.h <<_ACEOF |
6024 | #define int16_t $ac_cv_c_int16_t | |
c62c07ef | 6025 | _ACEOF |
a24b9f23 MA |
6026 | ;; |
6027 | esac | |
c62c07ef | 6028 | |
a24b9f23 MA |
6029 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
6030 | case $ac_cv_c_int32_t in #( | |
6031 | no|yes) ;; #( | |
6032 | *) | |
c62c07ef | 6033 | |
a24b9f23 MA |
6034 | cat >>confdefs.h <<_ACEOF |
6035 | #define int32_t $ac_cv_c_int32_t | |
529be52a | 6036 | _ACEOF |
a24b9f23 | 6037 | ;; |
529be52a | 6038 | esac |
4d24561a | 6039 | |
a24b9f23 MA |
6040 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
6041 | case $ac_cv_c_int64_t in #( | |
6042 | no|yes) ;; #( | |
6043 | *) | |
6044 | ||
6045 | cat >>confdefs.h <<_ACEOF | |
6046 | #define int64_t $ac_cv_c_int64_t | |
529be52a | 6047 | _ACEOF |
a24b9f23 MA |
6048 | ;; |
6049 | esac | |
c62c07ef | 6050 | |
9a266235 | 6051 | |
a24b9f23 MA |
6052 | # Some systems need the u_intX_t types defined across. |
6053 | ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default" | |
6054 | if test "x$ac_cv_type_u_int8_t" = xyes; then : | |
4a70cb10 | 6055 | |
a24b9f23 | 6056 | else |
9a266235 | 6057 | |
a24b9f23 MA |
6058 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
6059 | case $ac_cv_c_uint8_t in #( | |
6060 | no|yes) ;; #( | |
6061 | *) | |
4a70cb10 | 6062 | |
a24b9f23 | 6063 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
9a266235 | 6064 | |
a24b9f23 MA |
6065 | |
6066 | cat >>confdefs.h <<_ACEOF | |
6067 | #define uint8_t $ac_cv_c_uint8_t | |
529be52a | 6068 | _ACEOF |
a24b9f23 MA |
6069 | ;; |
6070 | esac | |
529be52a | 6071 | |
9a266235 | 6072 | |
a24b9f23 | 6073 | $as_echo "#define u_int8_t uint8_t" >>confdefs.h |
9a266235 | 6074 | |
9a266235 SR |
6075 | |
6076 | fi | |
6077 | ||
a24b9f23 MA |
6078 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" |
6079 | if test "x$ac_cv_type_u_int16_t" = xyes; then : | |
c59de8f4 | 6080 | |
a24b9f23 | 6081 | else |
c59de8f4 | 6082 | |
a24b9f23 MA |
6083 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
6084 | case $ac_cv_c_uint16_t in #( | |
6085 | no|yes) ;; #( | |
6086 | *) | |
c62c07ef | 6087 | |
a37c9dd1 | 6088 | |
a24b9f23 MA |
6089 | cat >>confdefs.h <<_ACEOF |
6090 | #define uint16_t $ac_cv_c_uint16_t | |
529be52a | 6091 | _ACEOF |
a24b9f23 MA |
6092 | ;; |
6093 | esac | |
c9a1db5e | 6094 | |
4d24561a | 6095 | |
a24b9f23 | 6096 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h |
dd3276e3 | 6097 | |
c62c07ef DH |
6098 | |
6099 | fi | |
4d24561a | 6100 | |
a24b9f23 MA |
6101 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
6102 | if test "x$ac_cv_type_u_int32_t" = xyes; then : | |
dd3276e3 | 6103 | |
529be52a | 6104 | else |
237bfdc9 | 6105 | |
a24b9f23 MA |
6106 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
6107 | case $ac_cv_c_uint32_t in #( | |
6108 | no|yes) ;; #( | |
6109 | *) | |
7d714d6b | 6110 | |
a24b9f23 | 6111 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
4d24561a | 6112 | |
4d24561a | 6113 | |
a24b9f23 MA |
6114 | cat >>confdefs.h <<_ACEOF |
6115 | #define uint32_t $ac_cv_c_uint32_t | |
529be52a | 6116 | _ACEOF |
a24b9f23 MA |
6117 | ;; |
6118 | esac | |
4a70cb10 | 6119 | |
4a70cb10 | 6120 | |
a24b9f23 | 6121 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h |
4a70cb10 | 6122 | |
035ed382 | 6123 | |
529be52a | 6124 | fi |
4a70cb10 | 6125 | |
a24b9f23 MA |
6126 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default" |
6127 | if test "x$ac_cv_type_u_int64_t" = xyes; then : | |
035ed382 | 6128 | |
529be52a | 6129 | else |
a36687f0 | 6130 | |
a24b9f23 MA |
6131 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
6132 | case $ac_cv_c_uint64_t in #( | |
6133 | no|yes) ;; #( | |
6134 | *) | |
6135 | ||
6136 | $as_echo "#define _UINT64_T 1" >>confdefs.h | |
6137 | ||
6138 | ||
6139 | cat >>confdefs.h <<_ACEOF | |
6140 | #define uint64_t $ac_cv_c_uint64_t | |
a36687f0 | 6141 | _ACEOF |
a24b9f23 MA |
6142 | ;; |
6143 | esac | |
529be52a | 6144 | |
a36687f0 | 6145 | |
a24b9f23 | 6146 | $as_echo "#define u_int64_t uint64_t" >>confdefs.h |
4d24561a | 6147 | |
4d24561a | 6148 | |
529be52a SR |
6149 | fi |
6150 | ||
6151 | ||
a24b9f23 MA |
6152 | # see if ifaddrs.h is available |
6153 | for ac_header in ifaddrs.h | |
6154 | do : | |
6155 | ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" | |
6156 | if test "x$ac_cv_header_ifaddrs_h" = xyes; then : | |
6157 | cat >>confdefs.h <<_ACEOF | |
6158 | #define HAVE_IFADDRS_H 1 | |
529be52a | 6159 | _ACEOF |
a36687f0 | 6160 | |
a24b9f23 MA |
6161 | fi |
6162 | ||
6163 | done | |
4d24561a | 6164 | |
4d24561a | 6165 | |
a24b9f23 MA |
6166 | # figure out what IPv4 interface code to use |
6167 | for ac_header in linux/types.h | |
6168 | do : | |
6169 | ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default" | |
6170 | if test "x$ac_cv_header_linux_types_h" = xyes; then : | |
6171 | cat >>confdefs.h <<_ACEOF | |
6172 | #define HAVE_LINUX_TYPES_H 1 | |
6173 | _ACEOF | |
7d714d6b | 6174 | |
529be52a | 6175 | fi |
a24b9f23 | 6176 | |
529be52a | 6177 | done |
a24b9f23 MA |
6178 | # needed for linux/filter.h on old systems |
6179 | ||
6180 | ac_fn_c_check_header_compile "$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" " | |
6181 | #ifdef HAVE_LINUX_TYPES_H | |
6182 | #include <linux/types.h> | |
6183 | #endif | |
6184 | ||
6185 | " | |
6186 | if test "x$ac_cv_header_linux_filter_h" = xyes; then : | |
6187 | DO_LPF=1 | |
529be52a | 6188 | fi |
a24b9f23 MA |
6189 | |
6190 | ||
6191 | if test -n "$DO_LPF" | |
6192 | then | |
6193 | ||
6194 | $as_echo "#define HAVE_LPF 1" >>confdefs.h | |
7d714d6b | 6195 | |
529be52a | 6196 | else |
a24b9f23 MA |
6197 | ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default" |
6198 | if test "x$ac_cv_header_sys_dlpi_h" = xyes; then : | |
6199 | DO_DLPI=1 | |
6200 | fi | |
a36687f0 | 6201 | |
dd3276e3 | 6202 | |
a24b9f23 MA |
6203 | if test -n "$DO_DLPI" |
6204 | then | |
6205 | ||
6206 | $as_echo "#define HAVE_DLPI 1" >>confdefs.h | |
6207 | ||
6208 | else | |
6209 | ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default" | |
6210 | if test "x$ac_cv_header_net_bpf_h" = xyes; then : | |
6211 | DO_BPF=1 | |
4a70cb10 | 6212 | fi |
4a70cb10 | 6213 | |
529be52a | 6214 | |
a24b9f23 MA |
6215 | if test -n "$DO_BPF" |
6216 | then | |
6217 | ||
6218 | $as_echo "#define HAVE_BPF 1" >>confdefs.h | |
6219 | ||
6220 | fi | |
6221 | fi | |
6222 | fi | |
6223 | ||
6224 | # SIOCGLIFCONF uses some transport structures. Trick is not all platforms | |
6225 | # use the same structures. We like to use 'struct lifconf' and 'struct | |
6226 | # lifreq', but we'll use these other structures if they're present. HPUX | |
6227 | # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an | |
6228 | # int value. | |
6229 | # | |
6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5 | |
6231 | $as_echo_n "checking for struct lifnum... " >&6; } | |
6232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6d7bdffc | 6233 | /* end confdefs.h. */ |
a24b9f23 MA |
6234 | #include <sys/types.h> |
6235 | #include <sys/socket.h> | |
6236 | #include <net/if.h> | |
6d7bdffc | 6237 | |
7d714d6b DH |
6238 | int |
6239 | main () | |
6240 | { | |
a24b9f23 MA |
6241 | struct lifnum a; |
6242 | ||
7d714d6b DH |
6243 | ; |
6244 | return 0; | |
6245 | } | |
6246 | _ACEOF | |
a24b9f23 MA |
6247 | if ac_fn_c_try_compile "$LINENO"; then : |
6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6249 | $as_echo "yes" >&6; } | |
7d714d6b | 6250 | |
a24b9f23 | 6251 | $as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h |
6e999c3c | 6252 | |
529be52a | 6253 | else |
a24b9f23 MA |
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6255 | $as_echo "no" >&6; } | |
529be52a | 6256 | fi |
a24b9f23 | 6257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
529be52a | 6258 | |
a24b9f23 MA |
6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 |
6260 | $as_echo_n "checking for struct if_laddrconf... " >&6; } | |
6261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c62c07ef | 6262 | /* end confdefs.h. */ |
a24b9f23 MA |
6263 | #include <sys/types.h> |
6264 | #include <net/if6.h> | |
c9a1db5e | 6265 | |
c62c07ef DH |
6266 | int |
6267 | main () | |
6268 | { | |
a24b9f23 MA |
6269 | struct if_laddrconf a; |
6270 | ||
c62c07ef DH |
6271 | ; |
6272 | return 0; | |
6273 | } | |
6274 | _ACEOF | |
a24b9f23 MA |
6275 | if ac_fn_c_try_compile "$LINENO"; then : |
6276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6277 | $as_echo "yes" >&6; } | |
6e999c3c | 6278 | |
a24b9f23 | 6279 | $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h |
529be52a | 6280 | |
529be52a | 6281 | else |
a24b9f23 MA |
6282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6283 | $as_echo "no" >&6; } | |
529be52a | 6284 | fi |
a24b9f23 | 6285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
529be52a | 6286 | |
a24b9f23 MA |
6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 |
6288 | $as_echo_n "checking for struct if_laddrreq... " >&6; } | |
6289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
035ed382 | 6290 | /* end confdefs.h. */ |
a24b9f23 MA |
6291 | #include <sys/types.h> |
6292 | #include <net/if6.h> | |
529be52a SR |
6293 | |
6294 | int | |
6295 | main () | |
6296 | { | |
a24b9f23 MA |
6297 | struct if_laddrreq a; |
6298 | ||
529be52a SR |
6299 | ; |
6300 | return 0; | |
6301 | } | |
6302 | _ACEOF | |
a24b9f23 MA |
6303 | if ac_fn_c_try_link "$LINENO"; then : |
6304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6305 | $as_echo "yes" >&6; } | |
6306 | ||
6307 | $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h | |
6308 | ||
529be52a | 6309 | else |
a24b9f23 MA |
6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6311 | $as_echo "no" >&6; } | |
6312 | fi | |
6313 | rm -f core conftest.err conftest.$ac_objext \ | |
6314 | conftest$ac_exeext conftest.$ac_ext | |
529be52a | 6315 | |
a24b9f23 MA |
6316 | # |
6317 | # check for GCC noreturn attribute | |
6318 | # | |
6319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5 | |
6320 | $as_echo_n "checking for GCC noreturn attribute... " >&6; } | |
6321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
529be52a | 6322 | /* end confdefs.h. */ |
dd3276e3 | 6323 | |
035ed382 DH |
6324 | int |
6325 | main () | |
6326 | { | |
a24b9f23 | 6327 | void foo() __attribute__((noreturn)); |
035ed382 DH |
6328 | ; |
6329 | return 0; | |
6330 | } | |
6331 | _ACEOF | |
a24b9f23 MA |
6332 | if ac_fn_c_try_compile "$LINENO"; then : |
6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6334 | $as_echo "yes" >&6; } | |
6335 | ||
6336 | $as_echo "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h | |
6337 | ||
529be52a | 6338 | else |
a24b9f23 MA |
6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6340 | $as_echo "no" >&6; } | |
529be52a | 6341 | |
a24b9f23 | 6342 | $as_echo "#define ISC_DHCP_NORETURN /**/" >>confdefs.h |
4d24561a | 6343 | |
6e999c3c | 6344 | fi |
529be52a | 6345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
529be52a | 6346 | |
a24b9f23 MA |
6347 | # Look for optional headers. |
6348 | for ac_header in sys/socket.h net/if_dl.h net/if6.h regex.h | |
6349 | do : | |
6350 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6351 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
6352 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
6353 | cat >>confdefs.h <<_ACEOF | |
6354 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
529be52a | 6355 | _ACEOF |
c9a1db5e MA |
6356 | |
6357 | fi | |
035ed382 | 6358 | |
a24b9f23 MA |
6359 | done |
6360 | ||
035ed382 | 6361 | |
a24b9f23 MA |
6362 | # Solaris needs some libraries for functions |
6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
6364 | $as_echo_n "checking for library containing socket... " >&6; } | |
6365 | if ${ac_cv_search_socket+:} false; then : | |
6366 | $as_echo_n "(cached) " >&6 | |
2d5fba9b | 6367 | else |
a24b9f23 MA |
6368 | ac_func_search_save_LIBS=$LIBS |
6369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2d5fba9b DH |
6370 | /* end confdefs.h. */ |
6371 | ||
a24b9f23 MA |
6372 | /* Override any GCC internal prototype to avoid an error. |
6373 | Use char because int might match the return type of a GCC | |
6374 | builtin and then its argument prototype would still apply. */ | |
6375 | #ifdef __cplusplus | |
6376 | extern "C" | |
6377 | #endif | |
6378 | char socket (); | |
2d5fba9b DH |
6379 | int |
6380 | main () | |
6381 | { | |
a24b9f23 | 6382 | return socket (); |
2d5fba9b DH |
6383 | ; |
6384 | return 0; | |
6385 | } | |
6386 | _ACEOF | |
a24b9f23 MA |
6387 | for ac_lib in '' socket; do |
6388 | if test -z "$ac_lib"; then | |
6389 | ac_res="none required" | |
6390 | else | |
6391 | ac_res=-l$ac_lib | |
6392 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6393 | fi | |
6394 | if ac_fn_c_try_link "$LINENO"; then : | |
6395 | ac_cv_search_socket=$ac_res | |
6396 | fi | |
6397 | rm -f core conftest.err conftest.$ac_objext \ | |
6398 | conftest$ac_exeext | |
6399 | if ${ac_cv_search_socket+:} false; then : | |
6400 | break | |
6401 | fi | |
6402 | done | |
6403 | if ${ac_cv_search_socket+:} false; then : | |
529be52a | 6404 | |
a24b9f23 MA |
6405 | else |
6406 | ac_cv_search_socket=no | |
6407 | fi | |
6408 | rm conftest.$ac_ext | |
6409 | LIBS=$ac_func_search_save_LIBS | |
4a70cb10 | 6410 | fi |
a24b9f23 MA |
6411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
6412 | $as_echo "$ac_cv_search_socket" >&6; } | |
6413 | ac_res=$ac_cv_search_socket | |
6414 | if test "$ac_res" != no; then : | |
6415 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
529be52a | 6416 | |
2d5fba9b | 6417 | fi |
2d5fba9b | 6418 | |
a24b9f23 MA |
6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 |
6420 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
6421 | if ${ac_cv_search_inet_ntoa+:} false; then : | |
6422 | $as_echo_n "(cached) " >&6 | |
6e999c3c | 6423 | else |
a24b9f23 MA |
6424 | ac_func_search_save_LIBS=$LIBS |
6425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
529be52a | 6426 | /* end confdefs.h. */ |
c59de8f4 | 6427 | |
a24b9f23 MA |
6428 | /* Override any GCC internal prototype to avoid an error. |
6429 | Use char because int might match the return type of a GCC | |
6430 | builtin and then its argument prototype would still apply. */ | |
6431 | #ifdef __cplusplus | |
6432 | extern "C" | |
6433 | #endif | |
6434 | char inet_ntoa (); | |
529be52a SR |
6435 | int |
6436 | main () | |
6437 | { | |
a24b9f23 | 6438 | return inet_ntoa (); |
529be52a SR |
6439 | ; |
6440 | return 0; | |
6441 | } | |
6442 | _ACEOF | |
a24b9f23 MA |
6443 | for ac_lib in '' nsl; do |
6444 | if test -z "$ac_lib"; then | |
6445 | ac_res="none required" | |
6446 | else | |
6447 | ac_res=-l$ac_lib | |
6448 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6449 | fi | |
6450 | if ac_fn_c_try_link "$LINENO"; then : | |
6451 | ac_cv_search_inet_ntoa=$ac_res | |
6452 | fi | |
6453 | rm -f core conftest.err conftest.$ac_objext \ | |
6454 | conftest$ac_exeext | |
6455 | if ${ac_cv_search_inet_ntoa+:} false; then : | |
6456 | break | |
6457 | fi | |
6458 | done | |
6459 | if ${ac_cv_search_inet_ntoa+:} false; then : | |
6e999c3c | 6460 | |
a24b9f23 MA |
6461 | else |
6462 | ac_cv_search_inet_ntoa=no | |
6463 | fi | |
6464 | rm conftest.$ac_ext | |
6465 | LIBS=$ac_func_search_save_LIBS | |
6466 | fi | |
6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
6468 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
6469 | ac_res=$ac_cv_search_inet_ntoa | |
6470 | if test "$ac_res" != no; then : | |
6471 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6472 | ||
6473 | fi | |
529be52a SR |
6474 | |
6475 | ||
a24b9f23 MA |
6476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 |
6477 | $as_echo_n "checking for library containing inet_aton... " >&6; } | |
6478 | if ${ac_cv_search_inet_aton+:} false; then : | |
6479 | $as_echo_n "(cached) " >&6 | |
6480 | else | |
6481 | ac_func_search_save_LIBS=$LIBS | |
6482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6483 | /* end confdefs.h. */ | |
6484 | ||
6485 | /* Override any GCC internal prototype to avoid an error. | |
6486 | Use char because int might match the return type of a GCC | |
6487 | builtin and then its argument prototype would still apply. */ | |
6488 | #ifdef __cplusplus | |
6489 | extern "C" | |
6490 | #endif | |
6491 | char inet_aton (); | |
6e999c3c SK |
6492 | int |
6493 | main () | |
6494 | { | |
a24b9f23 | 6495 | return inet_aton (); |
6e999c3c SK |
6496 | ; |
6497 | return 0; | |
6498 | } | |
6499 | _ACEOF | |
a24b9f23 MA |
6500 | for ac_lib in '' socket nsl; do |
6501 | if test -z "$ac_lib"; then | |
6502 | ac_res="none required" | |
6503 | else | |
6504 | ac_res=-l$ac_lib | |
6505 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6506 | fi | |
6507 | if ac_fn_c_try_link "$LINENO"; then : | |
6508 | ac_cv_search_inet_aton=$ac_res | |
c59de8f4 | 6509 | fi |
a24b9f23 MA |
6510 | rm -f core conftest.err conftest.$ac_objext \ |
6511 | conftest$ac_exeext | |
6512 | if ${ac_cv_search_inet_aton+:} false; then : | |
6513 | break | |
6514 | fi | |
6515 | done | |
6516 | if ${ac_cv_search_inet_aton+:} false; then : | |
4d24561a | 6517 | |
8f77e286 | 6518 | else |
a24b9f23 MA |
6519 | ac_cv_search_inet_aton=no |
6520 | fi | |
6521 | rm conftest.$ac_ext | |
6522 | LIBS=$ac_func_search_save_LIBS | |
6523 | fi | |
6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 | |
6525 | $as_echo "$ac_cv_search_inet_aton" >&6; } | |
6526 | ac_res=$ac_cv_search_inet_aton | |
6527 | if test "$ac_res" != no; then : | |
6528 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6e999c3c | 6529 | |
a24b9f23 | 6530 | else |
6e999c3c | 6531 | |
a24b9f23 | 6532 | $as_echo "#define NEED_INET_ATON 1" >>confdefs.h |
6e999c3c | 6533 | |
a24b9f23 | 6534 | fi |
529be52a | 6535 | |
529be52a | 6536 | |
a24b9f23 MA |
6537 | # Check for a standalone regex library. |
6538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5 | |
6539 | $as_echo_n "checking for library containing regcomp... " >&6; } | |
6540 | if ${ac_cv_search_regcomp+:} false; then : | |
6541 | $as_echo_n "(cached) " >&6 | |
6542 | else | |
6543 | ac_func_search_save_LIBS=$LIBS | |
6544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8f77e286 DH |
6545 | /* end confdefs.h. */ |
6546 | ||
a24b9f23 MA |
6547 | /* Override any GCC internal prototype to avoid an error. |
6548 | Use char because int might match the return type of a GCC | |
6549 | builtin and then its argument prototype would still apply. */ | |
6550 | #ifdef __cplusplus | |
6551 | extern "C" | |
6552 | #endif | |
6553 | char regcomp (); | |
8f77e286 DH |
6554 | int |
6555 | main () | |
6556 | { | |
a24b9f23 | 6557 | return regcomp (); |
8f77e286 DH |
6558 | ; |
6559 | return 0; | |
6560 | } | |
6561 | _ACEOF | |
a24b9f23 MA |
6562 | for ac_lib in '' regex; do |
6563 | if test -z "$ac_lib"; then | |
6564 | ac_res="none required" | |
6565 | else | |
6566 | ac_res=-l$ac_lib | |
6567 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6568 | fi | |
6569 | if ac_fn_c_try_link "$LINENO"; then : | |
6570 | ac_cv_search_regcomp=$ac_res | |
6571 | fi | |
6572 | rm -f core conftest.err conftest.$ac_objext \ | |
6573 | conftest$ac_exeext | |
6574 | if ${ac_cv_search_regcomp+:} false; then : | |
6575 | break | |
8f77e286 | 6576 | fi |
a24b9f23 MA |
6577 | done |
6578 | if ${ac_cv_search_regcomp+:} false; then : | |
4d24561a | 6579 | |
76c944da | 6580 | else |
a24b9f23 | 6581 | ac_cv_search_regcomp=no |
76c944da | 6582 | fi |
a24b9f23 MA |
6583 | rm conftest.$ac_ext |
6584 | LIBS=$ac_func_search_save_LIBS | |
6e999c3c | 6585 | fi |
a24b9f23 MA |
6586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5 |
6587 | $as_echo "$ac_cv_search_regcomp" >&6; } | |
6588 | ac_res=$ac_cv_search_regcomp | |
6589 | if test "$ac_res" != no; then : | |
6590 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4d24561a | 6591 | |
a24b9f23 | 6592 | fi |
529be52a | 6593 | |
c9a1db5e | 6594 | |
dc9d7b08 MA |
6595 | for ac_func in strlcat |
6596 | do : | |
6597 | ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" | |
6598 | if test "x$ac_cv_func_strlcat" = xyes; then : | |
6599 | cat >>confdefs.h <<_ACEOF | |
6600 | #define HAVE_STRLCAT 1 | |
6601 | _ACEOF | |
6602 | ||
6603 | fi | |
6604 | done | |
6605 | ||
6606 | ||
a24b9f23 MA |
6607 | # For HP/UX we need -lipv6 for if_nametoindex, perhaps others. |
6608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5 | |
6609 | $as_echo_n "checking for library containing if_nametoindex... " >&6; } | |
6610 | if ${ac_cv_search_if_nametoindex+:} false; then : | |
6611 | $as_echo_n "(cached) " >&6 | |
6612 | else | |
6613 | ac_func_search_save_LIBS=$LIBS | |
6614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6615 | /* end confdefs.h. */ | |
6e999c3c | 6616 | |
a24b9f23 MA |
6617 | /* Override any GCC internal prototype to avoid an error. |
6618 | Use char because int might match the return type of a GCC | |
6619 | builtin and then its argument prototype would still apply. */ | |
6620 | #ifdef __cplusplus | |
6621 | extern "C" | |
6622 | #endif | |
6623 | char if_nametoindex (); | |
529be52a SR |
6624 | int |
6625 | main () | |
6626 | { | |
a24b9f23 | 6627 | return if_nametoindex (); |
529be52a SR |
6628 | ; |
6629 | return 0; | |
6630 | } | |
6631 | _ACEOF | |
a24b9f23 MA |
6632 | for ac_lib in '' ipv6; do |
6633 | if test -z "$ac_lib"; then | |
6634 | ac_res="none required" | |
6635 | else | |
6636 | ac_res=-l$ac_lib | |
6637 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6638 | fi | |
6639 | if ac_fn_c_try_link "$LINENO"; then : | |
6640 | ac_cv_search_if_nametoindex=$ac_res | |
6641 | fi | |
6642 | rm -f core conftest.err conftest.$ac_objext \ | |
6643 | conftest$ac_exeext | |
6644 | if ${ac_cv_search_if_nametoindex+:} false; then : | |
6645 | break | |
6646 | fi | |
6647 | done | |
6648 | if ${ac_cv_search_if_nametoindex+:} false; then : | |
6649 | ||
529be52a | 6650 | else |
a24b9f23 MA |
6651 | ac_cv_search_if_nametoindex=no |
6652 | fi | |
6653 | rm conftest.$ac_ext | |
6654 | LIBS=$ac_func_search_save_LIBS | |
6655 | fi | |
6656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5 | |
6657 | $as_echo "$ac_cv_search_if_nametoindex" >&6; } | |
6658 | ac_res=$ac_cv_search_if_nametoindex | |
6659 | if test "$ac_res" != no; then : | |
6660 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6e999c3c | 6661 | |
4a70cb10 | 6662 | fi |
6e999c3c | 6663 | |
a24b9f23 MA |
6664 | |
6665 | # check for /dev/random (declares HAVE_DEV_RANDOM) | |
a6ed1aa8 FD |
6666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5 |
6667 | $as_echo_n "checking for random device... " >&6; } | |
6668 | ||
6669 | # Check whether --with-randomdev was given. | |
6670 | if test "${with_randomdev+set}" = set; then : | |
6671 | withval=$with_randomdev; use_randomdev="$withval" | |
6672 | else | |
6673 | use_randomdev="unspec" | |
6674 | fi | |
6675 | ||
6676 | if test "$use_randomdev" = "unspec"; then | |
6677 | if test "$cross_compiling" = "yes"; then | |
6678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5 | |
6679 | $as_echo "unspecified" >&6; } | |
6680 | as_fn_error $? " need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5 | |
6681 | fi | |
6682 | use_randomdev="/dev/random" | |
6683 | elif test "$use_randomdev" = "yes"; then | |
6684 | use_randomdev="/dev/random" | |
6685 | fi | |
6686 | if test "$use_randomdev" = "no"; then | |
6687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | |
6688 | $as_echo "disabled" >&6; } | |
6689 | BINDCONFIG="$BINDCONFIG --with-randomdev=no" | |
6690 | else | |
6691 | if test "$cross_compiling" = "yes"; then | |
6692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev (unchecked)" >&5 | |
6693 | $as_echo "$use_randomdev (unchecked)" >&6; } | |
6694 | else | |
6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev" >&5 | |
6696 | $as_echo "$use_randomdev" >&6; } | |
6697 | as_ac_File=`$as_echo "ac_cv_file_$use_randomdev" | $as_tr_sh` | |
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $use_randomdev" >&5 | |
6699 | $as_echo_n "checking for $use_randomdev... " >&6; } | |
6700 | if eval \${$as_ac_File+:} false; then : | |
a24b9f23 | 6701 | $as_echo_n "(cached) " >&6 |
529be52a | 6702 | else |
a24b9f23 MA |
6703 | test "$cross_compiling" = yes && |
6704 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | |
a6ed1aa8 FD |
6705 | if test -r "$use_randomdev"; then |
6706 | eval "$as_ac_File=yes" | |
a24b9f23 | 6707 | else |
a6ed1aa8 | 6708 | eval "$as_ac_File=no" |
a24b9f23 MA |
6709 | fi |
6710 | fi | |
a6ed1aa8 FD |
6711 | eval ac_res=\$$as_ac_File |
6712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6713 | $as_echo "$ac_res" >&6; } | |
6714 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | |
c9a1db5e | 6715 | |
a24b9f23 | 6716 | $as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h |
6e999c3c | 6717 | |
a6ed1aa8 FD |
6718 | else |
6719 | as_fn_error $? "cannot find $use_randomdev" "$LINENO" 5 | |
a24b9f23 | 6720 | fi |
6e999c3c | 6721 | |
a6ed1aa8 FD |
6722 | fi |
6723 | BINDCONFIG="$BINDCONFIG --with-randomdev=$use_randomdev" | |
6724 | fi | |
6e999c3c | 6725 | |
a24b9f23 MA |
6726 | # see if there is a "sa_len" field in our interface information structure |
6727 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> | |
6728 | " | |
6729 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : | |
6730 | ||
6731 | $as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h | |
6732 | ||
6733 | fi | |
6734 | ||
6e999c3c | 6735 | |
a24b9f23 | 6736 | # figure out pointer size |
f2d20b9e FD |
6737 | SAVE_CFLAGS="$CFLAGS" |
6738 | CFLAGS="$CFLAGS -I$srcdir" | |
a24b9f23 MA |
6739 | # The cast to long int works around a bug in the HP C Compiler |
6740 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6741 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6742 | # This bug is HP SR number 8606223364. | |
6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5 | |
6744 | $as_echo_n "checking size of struct iaddr *... " >&6; } | |
6745 | if ${ac_cv_sizeof_struct_iaddr_p+:} false; then : | |
6746 | $as_echo_n "(cached) " >&6 | |
fe5b0fdd | 6747 | else |
a24b9f23 MA |
6748 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" " |
6749 | #include \"includes/inet.h\" | |
6750 | #include <stdio.h> | |
529be52a | 6751 | |
a24b9f23 MA |
6752 | "; then : |
6753 | ||
6754 | else | |
6755 | if test "$ac_cv_type_struct_iaddr_p" = yes; then | |
6756 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6757 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6758 | as_fn_error 77 "cannot compute sizeof (struct iaddr *) | |
6759 | See \`config.log' for more details" "$LINENO" 5; } | |
4d24561a JR |
6760 | else |
6761 | ac_cv_sizeof_struct_iaddr_p=0 | |
6762 | fi | |
273bfdc3 | 6763 | fi |
a24b9f23 | 6764 | |
7d714d6b | 6765 | fi |
a24b9f23 MA |
6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5 |
6767 | $as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; } | |
4d24561a JR |
6768 | |
6769 | ||
6770 | ||
6e999c3c SK |
6771 | cat >>confdefs.h <<_ACEOF |
6772 | #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p | |
76c944da | 6773 | _ACEOF |
fe5b0fdd | 6774 | |
fe5b0fdd | 6775 | |
f2d20b9e | 6776 | CFLAGS="$SAVE_CFLAGS" |
76c944da | 6777 | |
9a266235 | 6778 | # Solaris does not have the msg_control or msg_controlen members |
6e999c3c SK |
6779 | # in the msghdr structure unless you define: |
6780 | # | |
6781 | # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__ | |
6782 | # | |
6783 | # See the "standards" man page for details. | |
6784 | # | |
6785 | # We check for the msg_control member, and if it is not found, we check | |
6786 | # again with the appropriate defines added to the CFLAGS. (In order to | |
6787 | # do this we have to remove the check from the cache, which is what the | |
6788 | # "unset" is for.) | |
a24b9f23 | 6789 | ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " |
529be52a SR |
6790 | #include <sys/types.h> |
6791 | #include <sys/socket.h> | |
6792 | ||
a24b9f23 MA |
6793 | " |
6794 | if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : | |
529be52a | 6795 | |
6e999c3c SK |
6796 | else |
6797 | CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | |
6798 | CFLAGS="$CFLAGS -D__EXTENSIONS__" | |
6799 | unset ac_cv_member_struct_msghdr_msg_control | |
a24b9f23 | 6800 | ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " |
529be52a SR |
6801 | #include <sys/types.h> |
6802 | #include <sys/socket.h> | |
6803 | ||
a24b9f23 MA |
6804 | " |
6805 | if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : | |
529be52a | 6806 | |
c62c07ef | 6807 | else |
a24b9f23 MA |
6808 | as_fn_error $? "Missing msg_control member in |
6809 | msg_control structure." "$LINENO" 5 | |
a36687f0 | 6810 | fi |
dd3276e3 | 6811 | |
06eb8bab | 6812 | |
c62c07ef | 6813 | fi |
8c816ebb | 6814 | |
fe5b0fdd | 6815 | |
75d02fcf TM |
6816 | ac_fn_c_check_member "$LINENO" "struct tpacket_auxdata" "tp_vlan_tci" "ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" "#include <linux/if_packet.h> |
6817 | " | |
6818 | if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes; then : | |
6819 | ||
6820 | $as_echo "#define VLAN_TCI_PRESENT 1" >>confdefs.h | |
6821 | ||
6822 | ||
6823 | fi | |
6824 | ||
6825 | ||
7a6146d8 | 6826 | # bind/Makefile.in is not from automake so we need 2 sets of variables |
0fb9c8a1 | 6827 | BINDDIR= |
5a428b2e | 6828 | BINDSRCDIR= |
7a6146d8 FD |
6829 | BINDBIND= |
6830 | BINDVERSION= | |
a81f3ae6 SR |
6831 | |
6832 | # Check whether --with-libbind was given. | |
a24b9f23 | 6833 | if test "${with_libbind+set}" = set; then : |
a81f3ae6 SR |
6834 | withval=$with_libbind; use_libbind="$withval" |
6835 | else | |
6836 | use_libbind="no" | |
6837 | fi | |
6838 | ||
6839 | case "$use_libbind" in | |
6840 | yes) | |
7a6146d8 | 6841 | as_fn_error $? "PATH is required in --with-libbind=PATH" "$LINENO" 5 |
a81f3ae6 SR |
6842 | ;; |
6843 | no) | |
0fb9c8a1 | 6844 | BINDDIR="\${top_srcdir}/bind" |
5a428b2e | 6845 | BINDSRCDIR="\${top_srcdir}/bind" |
7a6146d8 FD |
6846 | if test ! -d "$srcdir/bind"; then |
6847 | as_fn_error $? "Where to find or build bind includes and libraries must be specified" "$LINENO" 5 | |
6848 | fi | |
6849 | if test ! -f "$srcdir/bind/version.tmp"; then | |
6850 | as_fn_error $? "Cannot find $srcdir/bind/version.tmp" "$LINENO" 5 | |
6851 | fi | |
6852 | my_abs_srcdir=`cd $srcdir && pwd` | |
6853 | BINDBIND="${my_abs_srcdir}/bind" | |
6854 | . "$srcdir/bind/version.tmp" | |
6855 | BINDVERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER} | |
6856 | ac_config_files="$ac_config_files $srcdir/bind/Makefile" | |
6857 | ||
a81f3ae6 SR |
6858 | ;; |
6859 | *) | |
0fb9c8a1 | 6860 | BINDDIR="$use_libbind" |
a81f3ae6 SR |
6861 | ;; |
6862 | esac | |
6863 | ||
0fb9c8a1 | 6864 | |
5a428b2e | 6865 | |
7a6146d8 FD |
6866 | |
6867 | ||
2d5fba9b DH |
6868 | # OpenLDAP support. |
6869 | ||
6870 | # Check whether --with-ldap was given. | |
a24b9f23 | 6871 | if test "${with_ldap+set}" = set; then : |
2d5fba9b DH |
6872 | withval=$with_ldap; ldap=$withval |
6873 | else | |
6874 | ldap=no | |
6875 | fi | |
6876 | ||
6877 | ||
6878 | # OpenLDAP with SSL support. | |
6879 | ||
6880 | # Check whether --with-ldapcrypto was given. | |
a24b9f23 | 6881 | if test "${with_ldapcrypto+set}" = set; then : |
2d5fba9b DH |
6882 | withval=$with_ldapcrypto; ldapcrypto=$withval |
6883 | else | |
6884 | ldapcrypto=no | |
6885 | fi | |
6886 | ||
6887 | ||
743d6937 TM |
6888 | # Gssapi to allow LDAP to authenticate with a keytab |
6889 | ||
6890 | # Check whether --with-ldap-gssapi was given. | |
6891 | if test "${with_ldap_gssapi+set}" = set; then : | |
6892 | withval=$with_ldap_gssapi; ldap_gssapi=$withval | |
6893 | else | |
6894 | ldap_gssapi=no | |
6895 | fi | |
6896 | ||
6897 | ||
6898 | ||
6899 | # LDAP CASA auth support. | |
6900 | ||
6901 | # Check whether --with-ldapcasa was given. | |
6902 | if test "${with_ldapcasa+set}" = set; then : | |
6903 | withval=$with_ldapcasa; ldapcasa=$withval | |
6904 | else | |
6905 | ldapcasa=no | |
6906 | fi | |
6907 | ||
6908 | ||
2d5fba9b DH |
6909 | # OpenLDAP support is disabled by default, if enabled then SSL support is an |
6910 | # extra optional that is also disabled by default. Enabling LDAP SSL support | |
743d6937 TM |
6911 | # implies enabling LDAP support. Similarly, KRB5 support implies LDAP support, |
6912 | # but doesn't include SSL. The two are not dependant. | |
6913 | if test x$ldap = xyes || test x$ldapcrypto = xyes || test x$ldap_gssapi = xyes; then | |
6914 | saved_LIBS="$LIBS" | |
6915 | LIBS="" | |
a24b9f23 MA |
6916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5 |
6917 | $as_echo_n "checking for library containing ldap_initialize... " >&6; } | |
6918 | if ${ac_cv_search_ldap_initialize+:} false; then : | |
6919 | $as_echo_n "(cached) " >&6 | |
2d5fba9b DH |
6920 | else |
6921 | ac_func_search_save_LIBS=$LIBS | |
a24b9f23 | 6922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2d5fba9b DH |
6923 | /* end confdefs.h. */ |
6924 | ||
6925 | /* Override any GCC internal prototype to avoid an error. | |
6926 | Use char because int might match the return type of a GCC | |
6927 | builtin and then its argument prototype would still apply. */ | |
6928 | #ifdef __cplusplus | |
6929 | extern "C" | |
6930 | #endif | |
6931 | char ldap_initialize (); | |
6932 | int | |
6933 | main () | |
6934 | { | |
6935 | return ldap_initialize (); | |
6936 | ; | |
6937 | return 0; | |
6938 | } | |
6939 | _ACEOF | |
6940 | for ac_lib in '' ldap; do | |
6941 | if test -z "$ac_lib"; then | |
6942 | ac_res="none required" | |
6943 | else | |
6944 | ac_res=-l$ac_lib | |
6945 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6946 | fi | |
a24b9f23 | 6947 | if ac_fn_c_try_link "$LINENO"; then : |
2d5fba9b | 6948 | ac_cv_search_ldap_initialize=$ac_res |
2d5fba9b | 6949 | fi |
a24b9f23 MA |
6950 | rm -f core conftest.err conftest.$ac_objext \ |
6951 | conftest$ac_exeext | |
6952 | if ${ac_cv_search_ldap_initialize+:} false; then : | |
2d5fba9b DH |
6953 | break |
6954 | fi | |
6955 | done | |
a24b9f23 MA |
6956 | if ${ac_cv_search_ldap_initialize+:} false; then : |
6957 | ||
2d5fba9b DH |
6958 | else |
6959 | ac_cv_search_ldap_initialize=no | |
6960 | fi | |
6961 | rm conftest.$ac_ext | |
6962 | LIBS=$ac_func_search_save_LIBS | |
6963 | fi | |
a24b9f23 MA |
6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5 |
6965 | $as_echo "$ac_cv_search_ldap_initialize" >&6; } | |
2d5fba9b | 6966 | ac_res=$ac_cv_search_ldap_initialize |
a24b9f23 | 6967 | if test "$ac_res" != no; then : |
2d5fba9b DH |
6968 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
6969 | ||
6970 | else | |
a24b9f23 MA |
6971 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
6972 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6973 | as_fn_error $? "*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package? | |
6974 | See \`config.log' for more details" "$LINENO" 5; } | |
2d5fba9b DH |
6975 | fi |
6976 | ||
a24b9f23 MA |
6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5 |
6978 | $as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; } | |
6979 | if ${ac_cv_search_ber_pvt_opt_on+:} false; then : | |
6980 | $as_echo_n "(cached) " >&6 | |
8f95db41 SR |
6981 | else |
6982 | ac_func_search_save_LIBS=$LIBS | |
a24b9f23 | 6983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f95db41 SR |
6984 | /* end confdefs.h. */ |
6985 | ||
6986 | /* Override any GCC internal prototype to avoid an error. | |
6987 | Use char because int might match the return type of a GCC | |
6988 | builtin and then its argument prototype would still apply. */ | |
6989 | #ifdef __cplusplus | |
6990 | extern "C" | |
6991 | #endif | |
6992 | char ber_pvt_opt_on (); | |
6993 | int | |
6994 | main () | |
6995 | { | |
6996 | return ber_pvt_opt_on (); | |
6997 | ; | |
6998 | return 0; | |
6999 | } | |
7000 | _ACEOF | |
7001 | for ac_lib in '' lber; do | |
7002 | if test -z "$ac_lib"; then | |
7003 | ac_res="none required" | |
7004 | else | |
7005 | ac_res=-l$ac_lib | |
7006 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7007 | fi | |
a24b9f23 | 7008 | if ac_fn_c_try_link "$LINENO"; then : |
8f95db41 | 7009 | ac_cv_search_ber_pvt_opt_on=$ac_res |
8f95db41 | 7010 | fi |
a24b9f23 MA |
7011 | rm -f core conftest.err conftest.$ac_objext \ |
7012 | conftest$ac_exeext | |
7013 | if ${ac_cv_search_ber_pvt_opt_on+:} false; then : | |
8f95db41 SR |
7014 | break |
7015 | fi | |
7016 | done | |
a24b9f23 MA |
7017 | if ${ac_cv_search_ber_pvt_opt_on+:} false; then : |
7018 | ||
8f95db41 SR |
7019 | else |
7020 | ac_cv_search_ber_pvt_opt_on=no | |
7021 | fi | |
7022 | rm conftest.$ac_ext | |
7023 | LIBS=$ac_func_search_save_LIBS | |
7024 | fi | |
a24b9f23 MA |
7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5 |
7026 | $as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; } | |
8f95db41 | 7027 | ac_res=$ac_cv_search_ber_pvt_opt_on |
a24b9f23 | 7028 | if test "$ac_res" != no; then : |
8f95db41 SR |
7029 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
7030 | ||
7031 | else | |
a24b9f23 MA |
7032 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7033 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7034 | as_fn_error $? "*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package? | |
7035 | See \`config.log' for more details" "$LINENO" 5; } | |
8f95db41 SR |
7036 | fi |
7037 | ||
743d6937 TM |
7038 | if test x$ldap_gssapi = xyes ; then |
7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5 | |
7040 | $as_echo_n "checking for library containing krb5_init_context... " >&6; } | |
7041 | if ${ac_cv_search_krb5_init_context+:} false; then : | |
7042 | $as_echo_n "(cached) " >&6 | |
7043 | else | |
7044 | ac_func_search_save_LIBS=$LIBS | |
7045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7046 | /* end confdefs.h. */ | |
7047 | ||
7048 | /* Override any GCC internal prototype to avoid an error. | |
7049 | Use char because int might match the return type of a GCC | |
7050 | builtin and then its argument prototype would still apply. */ | |
7051 | #ifdef __cplusplus | |
7052 | extern "C" | |
7053 | #endif | |
7054 | char krb5_init_context (); | |
7055 | int | |
7056 | main () | |
7057 | { | |
7058 | return krb5_init_context (); | |
7059 | ; | |
7060 | return 0; | |
7061 | } | |
7062 | _ACEOF | |
7063 | for ac_lib in '' krb5; do | |
7064 | if test -z "$ac_lib"; then | |
7065 | ac_res="none required" | |
7066 | else | |
7067 | ac_res=-l$ac_lib | |
7068 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7069 | fi | |
7070 | if ac_fn_c_try_link "$LINENO"; then : | |
7071 | ac_cv_search_krb5_init_context=$ac_res | |
7072 | fi | |
7073 | rm -f core conftest.err conftest.$ac_objext \ | |
7074 | conftest$ac_exeext | |
7075 | if ${ac_cv_search_krb5_init_context+:} false; then : | |
7076 | break | |
7077 | fi | |
7078 | done | |
7079 | if ${ac_cv_search_krb5_init_context+:} false; then : | |
7080 | ||
7081 | else | |
7082 | ac_cv_search_krb5_init_context=no | |
7083 | fi | |
7084 | rm conftest.$ac_ext | |
7085 | LIBS=$ac_func_search_save_LIBS | |
7086 | fi | |
7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_init_context" >&5 | |
7088 | $as_echo "$ac_cv_search_krb5_init_context" >&6; } | |
7089 | ac_res=$ac_cv_search_krb5_init_context | |
7090 | if test "$ac_res" != no; then : | |
7091 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7092 | ||
7093 | else | |
7094 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7095 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7096 | as_fn_error $? "*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package? | |
7097 | See \`config.log' for more details" "$LINENO" 5; } | |
7098 | fi | |
7099 | ||
7100 | fi | |
7101 | ||
7102 | # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS | |
7103 | LDAP_LIBS=$LIBS | |
7104 | ||
7105 | LIBS="$saved_LIBS" | |
7106 | ||
7107 | ||
7108 | for ac_header in ldap.h | |
7109 | do : | |
7110 | ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default" | |
7111 | if test "x$ac_cv_header_ldap_h" = xyes; then : | |
7112 | cat >>confdefs.h <<_ACEOF | |
7113 | #define HAVE_LDAP_H 1 | |
7114 | _ACEOF | |
7115 | ||
7116 | fi | |
7117 | ||
7118 | done | |
7119 | ||
7120 | for ac_func in inet_pton inet_ntop | |
7121 | do : | |
7122 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7123 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
7124 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
7125 | cat >>confdefs.h <<_ACEOF | |
7126 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7127 | _ACEOF | |
7128 | ||
7129 | fi | |
7130 | done | |
2d5fba9b | 7131 | |
2d5fba9b | 7132 | |
2d5fba9b | 7133 | |
743d6937 TM |
7134 | LDAP_CFLAGS="-DLDAP_CONFIGURATION" |
7135 | ||
7136 | if test x$ldapcasa = xyes ; then | |
7137 | for ac_header in micasa_mgmd.h | |
7138 | do : | |
7139 | ac_fn_c_check_header_mongrel "$LINENO" "micasa_mgmd.h" "ac_cv_header_micasa_mgmd_h" "$ac_includes_default" | |
7140 | if test "x$ac_cv_header_micasa_mgmd_h" = xyes; then : | |
7141 | cat >>confdefs.h <<_ACEOF | |
7142 | #define HAVE_MICASA_MGMD_H 1 | |
7143 | _ACEOF | |
7144 | ||
7145 | LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_CASA_AUTH" | |
7146 | ||
7147 | else | |
7148 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7149 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7150 | as_fn_error $? "*** Cannot find micasa_mgmd.h for ldap casa auth support | |
7151 | See \`config.log' for more details" "$LINENO" 5; } | |
7152 | fi | |
7153 | ||
7154 | done | |
7155 | ||
7156 | fi | |
7157 | ||
7158 | if test x$ldapcrypto = xyes ; then | |
7159 | LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_SSL" | |
7160 | fi | |
7161 | ||
7162 | if test x$ldap_gssapi = xyes; then | |
7163 | LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_GSSAPI" | |
2d5fba9b | 7164 | fi |
743d6937 TM |
7165 | |
7166 | LDAP_CFLAGS=$LDAP_CFLAGS | |
7167 | ||
2d5fba9b DH |
7168 | fi |
7169 | ||
c5b1ad9f | 7170 | # Append selected warning levels to CFLAGS before substitution (but after |
d7d9c0c7 | 7171 | # AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc). |
c5b1ad9f DH |
7172 | CFLAGS="$CFLAGS $STD_CWARNINGS" |
7173 | ||
5a428b2e FD |
7174 | # Try to add the bind and dhcp include directories |
7175 | CFLAGS="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include" | |
a81f3ae6 | 7176 | |
a24b9f23 MA |
7177 | case "$host" in |
7178 | *-darwin*) | |
0f1a34e9 TM |
7179 | CFLAGS="$CFLAGS -D__APPLE_USE_RFC_3542";; |
7180 | *-solaris*) | |
7181 | # As of Solaris 11, ethernet dev files are in /dev/net | |
7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/net" >&5 | |
7183 | $as_echo_n "checking for /dev/net... " >&6; } | |
7184 | if ${ac_cv_file__dev_net+:} false; then : | |
7185 | $as_echo_n "(cached) " >&6 | |
7186 | else | |
7187 | test "$cross_compiling" = yes && | |
7188 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | |
7189 | if test -r "/dev/net"; then | |
7190 | ac_cv_file__dev_net=yes | |
7191 | else | |
7192 | ac_cv_file__dev_net=no | |
7193 | fi | |
7194 | fi | |
7195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_net" >&5 | |
7196 | $as_echo "$ac_cv_file__dev_net" >&6; } | |
7197 | if test "x$ac_cv_file__dev_net" = xyes; then : | |
7198 | ||
7199 | $as_echo "#define USE_DEV_NET 1" >>confdefs.h | |
7200 | ||
7201 | fi | |
7202 | ||
7203 | ;; | |
a24b9f23 MA |
7204 | esac |
7205 | ||
e715a7b1 | 7206 | |
a24b9f23 MA |
7207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5 |
7208 | $as_echo_n "checking for flexible array members... " >&6; } | |
7209 | if ${ac_cv_c_flexmember+:} false; then : | |
7210 | $as_echo_n "(cached) " >&6 | |
e715a7b1 | 7211 | else |
a24b9f23 | 7212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e715a7b1 SR |
7213 | /* end confdefs.h. */ |
7214 | #include <stdlib.h> | |
7215 | #include <stdio.h> | |
7216 | #include <stddef.h> | |
7217 | struct s { int n; double d[]; }; | |
7218 | int | |
7219 | main () | |
7220 | { | |
7221 | int m = getchar (); | |
7222 | struct s *p = malloc (offsetof (struct s, d) | |
7223 | + m * sizeof (double)); | |
7224 | p->d[0] = 0.0; | |
7225 | return p->d != (double *) NULL; | |
7226 | ; | |
7227 | return 0; | |
7228 | } | |
7229 | _ACEOF | |
a24b9f23 | 7230 | if ac_fn_c_try_compile "$LINENO"; then : |
e715a7b1 SR |
7231 | ac_cv_c_flexmember=yes |
7232 | else | |
a24b9f23 | 7233 | ac_cv_c_flexmember=no |
e715a7b1 | 7234 | fi |
e715a7b1 SR |
7235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7236 | fi | |
a24b9f23 MA |
7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 |
7238 | $as_echo "$ac_cv_c_flexmember" >&6; } | |
e715a7b1 SR |
7239 | if test $ac_cv_c_flexmember = yes; then |
7240 | ||
a24b9f23 | 7241 | $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h |
e715a7b1 SR |
7242 | |
7243 | else | |
a24b9f23 | 7244 | $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h |
e715a7b1 SR |
7245 | |
7246 | fi | |
7247 | ||
7248 | ||
7a6146d8 | 7249 | ac_config_files="$ac_config_files Makefile client/Makefile client/tests/Makefile common/Makefile common/tests/Makefile dhcpctl/Makefile includes/Makefile omapip/Makefile relay/Makefile server/Makefile tests/Makefile tests/unittest.sh server/tests/Makefile doc/devel/doxyfile" |
4d24561a | 7250 | |
fe5b0fdd DH |
7251 | cat >confcache <<\_ACEOF |
7252 | # This file is a shell script that caches the results of configure | |
7253 | # tests run on this system so they can be shared between configure | |
7254 | # scripts and configure runs, see configure's option --config-cache. | |
7255 | # It is not useful on other systems. If it contains results you don't | |
7256 | # want to keep, you may remove or edit it. | |
7257 | # | |
7258 | # config.status only pays attention to the cache file if you give it | |
7259 | # the --recheck option to rerun configure. | |
7260 | # | |
7261 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7262 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7263 | # following values. | |
7264 | ||
7265 | _ACEOF | |
7266 | ||
7267 | # The following way of writing the cache mishandles newlines in values, | |
7268 | # but we know of no workaround that is simple, portable, and efficient. | |
4d24561a | 7269 | # So, we kill variables containing newlines. |
fe5b0fdd DH |
7270 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7271 | # and sets the high bit in the cache file unless we assign to the vars. | |
4d24561a JR |
7272 | ( |
7273 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7274 | eval ac_val=\$$ac_var | |
7275 | case $ac_val in #( | |
7276 | *${as_nl}*) | |
7277 | case $ac_var in #( | |
a24b9f23 MA |
7278 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
7279 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
4d24561a JR |
7280 | esac |
7281 | case $ac_var in #( | |
7282 | _ | IFS | as_nl) ;; #( | |
a24b9f23 MA |
7283 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7284 | *) { eval $ac_var=; unset $ac_var;} ;; | |
4d24561a JR |
7285 | esac ;; |
7286 | esac | |
7287 | done | |
7288 | ||
fe5b0fdd | 7289 | (set) 2>&1 | |
4d24561a JR |
7290 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7291 | *${as_nl}ac_space=\ *) | |
a24b9f23 MA |
7292 | # `set' does not quote correctly, so add quotes: double-quote |
7293 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
fe5b0fdd DH |
7294 | sed -n \ |
7295 | "s/'/'\\\\''/g; | |
7296 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4d24561a | 7297 | ;; #( |
fe5b0fdd DH |
7298 | *) |
7299 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4d24561a | 7300 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
fe5b0fdd | 7301 | ;; |
4d24561a JR |
7302 | esac | |
7303 | sort | |
7304 | ) | | |
fe5b0fdd | 7305 | sed ' |
4d24561a | 7306 | /^ac_cv_env_/b end |
fe5b0fdd | 7307 | t clear |
4d24561a | 7308 | :clear |
fe5b0fdd DH |
7309 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7310 | t end | |
4d24561a JR |
7311 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7312 | :end' >>confcache | |
7313 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7314 | if test -w "$cache_file"; then | |
a24b9f23 MA |
7315 | if test "x$cache_file" != "x/dev/null"; then |
7316 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7317 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
7318 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
7319 | cat confcache >"$cache_file" | |
7320 | else | |
7321 | case $cache_file in #( | |
7322 | */* | ?:*) | |
7323 | mv -f confcache "$cache_file"$$ && | |
7324 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
7325 | *) | |
7326 | mv -f confcache "$cache_file" ;; | |
7327 | esac | |
7328 | fi | |
7329 | fi | |
d758ad8c | 7330 | else |
a24b9f23 MA |
7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7332 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
d758ad8c | 7333 | fi |
48ceb859 | 7334 | fi |
fe5b0fdd DH |
7335 | rm -f confcache |
7336 | ||
7337 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7338 | # Let make expand exec_prefix. | |
7339 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7340 | ||
7341 | DEFS=-DHAVE_CONFIG_H | |
7342 | ||
7343 | ac_libobjs= | |
7344 | ac_ltlibobjs= | |
a24b9f23 | 7345 | U= |
fe5b0fdd DH |
7346 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7347 | # 1. Remove the extension, and $U if already installed. | |
4d24561a | 7348 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
a24b9f23 | 7349 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
4d24561a JR |
7350 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
7351 | # will be set to the directory where LIBOBJS objects are built. | |
a24b9f23 MA |
7352 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
7353 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
fe5b0fdd DH |
7354 | done |
7355 | LIBOBJS=$ac_libobjs | |
7356 | ||
7357 | LTLIBOBJS=$ac_ltlibobjs | |
7358 | ||
7359 | ||
a24b9f23 MA |
7360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
7361 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
7362 | if test -n "$am_sleep_pid"; then | |
7363 | # Hide warnings about reused PIDs. | |
7364 | wait $am_sleep_pid 2>/dev/null | |
7365 | fi | |
7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
7367 | $as_echo "done" >&6; } | |
7368 | if test -n "$EXEEXT"; then | |
7369 | am__EXEEXT_TRUE= | |
7370 | am__EXEEXT_FALSE='#' | |
7371 | else | |
7372 | am__EXEEXT_TRUE='#' | |
7373 | am__EXEEXT_FALSE= | |
7374 | fi | |
7375 | ||
9a452f17 | 7376 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
a24b9f23 MA |
7377 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
7378 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
9a452f17 | 7379 | fi |
fc3ebe53 | 7380 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
a24b9f23 MA |
7381 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
7382 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
fc3ebe53 DH |
7383 | fi |
7384 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
a24b9f23 MA |
7385 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
7386 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
4a70cb10 | 7387 | fi |
b4a10c76 FD |
7388 | if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then |
7389 | as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined. | |
7390 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7391 | fi | |
a24b9f23 | 7392 | |
6913a589 FD |
7393 | if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then |
7394 | as_fn_error $? "conditional \"BIND_ATF\" was never defined. | |
7395 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7396 | fi | |
4a70cb10 | 7397 | if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then |
a24b9f23 MA |
7398 | as_fn_error $? "conditional \"HAVE_ATF\" was never defined. |
7399 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
fc3ebe53 | 7400 | fi |
48ceb859 | 7401 | |
a24b9f23 MA |
7402 | : "${CONFIG_STATUS=./config.status}" |
7403 | ac_write_fail=0 | |
fe5b0fdd DH |
7404 | ac_clean_files_save=$ac_clean_files |
7405 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
a24b9f23 MA |
7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7407 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7408 | as_write_fail=0 | |
7409 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
fe5b0fdd DH |
7410 | #! $SHELL |
7411 | # Generated by $as_me. | |
7412 | # Run this file to recreate the current configuration. | |
7413 | # Compiler output produced by configure, useful for debugging | |
7414 | # configure, is in config.log if it exists. | |
343729b9 | 7415 | |
fe5b0fdd DH |
7416 | debug=false |
7417 | ac_cs_recheck=false | |
7418 | ac_cs_silent=false | |
529be52a | 7419 | |
a24b9f23 MA |
7420 | SHELL=\${CONFIG_SHELL-$SHELL} |
7421 | export SHELL | |
7422 | _ASEOF | |
7423 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7424 | ## -------------------- ## | |
7425 | ## M4sh Initialization. ## | |
7426 | ## -------------------- ## | |
fe5b0fdd | 7427 | |
4d24561a JR |
7428 | # Be more Bourne compatible |
7429 | DUALCASE=1; export DUALCASE # for MKS sh | |
a24b9f23 | 7430 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
fe5b0fdd DH |
7431 | emulate sh |
7432 | NULLCMD=: | |
a24b9f23 | 7433 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
fe5b0fdd DH |
7434 | # is contrary to our usage. Disable this feature. |
7435 | alias -g '${1+"$@"}'='"$@"' | |
4d24561a JR |
7436 | setopt NO_GLOB_SUBST |
7437 | else | |
a24b9f23 MA |
7438 | case `(set -o) 2>/dev/null` in #( |
7439 | *posix*) : | |
7440 | set -o posix ;; #( | |
7441 | *) : | |
7442 | ;; | |
4d24561a | 7443 | esac |
4d24561a JR |
7444 | fi |
7445 | ||
7446 | ||
a24b9f23 MA |
7447 | as_nl=' |
7448 | ' | |
7449 | export as_nl | |
7450 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7451 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7452 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7453 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7454 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7455 | # but without wasting forks for bash or zsh. | |
7456 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7457 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7458 | as_echo='print -r --' | |
7459 | as_echo_n='print -rn --' | |
7460 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7461 | as_echo='printf %s\n' | |
7462 | as_echo_n='printf %s' | |
7463 | else | |
7464 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7465 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7466 | as_echo_n='/usr/ucb/echo -n' | |
2d5fba9b | 7467 | else |
a24b9f23 MA |
7468 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
7469 | as_echo_n_body='eval | |
7470 | arg=$1; | |
7471 | case $arg in #( | |
7472 | *"$as_nl"*) | |
7473 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7474 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7475 | esac; | |
7476 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7477 | ' | |
7478 | export as_echo_n_body | |
7479 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
2d5fba9b | 7480 | fi |
a24b9f23 MA |
7481 | export as_echo_body |
7482 | as_echo='sh -c $as_echo_body as_echo' | |
6057415f | 7483 | fi |
fe5b0fdd | 7484 | |
a24b9f23 MA |
7485 | # The user is always right. |
7486 | if test "${PATH_SEPARATOR+set}" != set; then | |
7487 | PATH_SEPARATOR=: | |
7488 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7489 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7490 | PATH_SEPARATOR=';' | |
7491 | } | |
d758ad8c TL |
7492 | fi |
7493 | ||
fe5b0fdd | 7494 | |
4d24561a JR |
7495 | # IFS |
7496 | # We need space, tab and new line, in precisely that order. Quoting is | |
7497 | # there to prevent editors from complaining about space-tab. | |
7498 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7499 | # splitting by setting IFS to empty value.) | |
4d24561a JR |
7500 | IFS=" "" $as_nl" |
7501 | ||
7502 | # Find who we are. Look in the path if we contain no directory separator. | |
a24b9f23 MA |
7503 | as_myself= |
7504 | case $0 in #(( | |
4d24561a JR |
7505 | *[\\/]* ) as_myself=$0 ;; |
7506 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7507 | for as_dir in $PATH | |
7508 | do | |
7509 | IFS=$as_save_IFS | |
7510 | test -z "$as_dir" && as_dir=. | |
a24b9f23 MA |
7511 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
7512 | done | |
4d24561a JR |
7513 | IFS=$as_save_IFS |
7514 | ||
7515 | ;; | |
7516 | esac | |
7517 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7518 | # in which case we are not to be found in the path. | |
7519 | if test "x$as_myself" = x; then | |
7520 | as_myself=$0 | |
7521 | fi | |
7522 | if test ! -f "$as_myself"; then | |
a24b9f23 MA |
7523 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7524 | exit 1 | |
4d24561a JR |
7525 | fi |
7526 | ||
a24b9f23 MA |
7527 | # Unset variables that we do not need and which cause bugs (e.g. in |
7528 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7529 | # suppresses any "Segmentation fault" message there. '((' could | |
7530 | # trigger a bug in pdksh 5.2.14. | |
7531 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7532 | do eval test x\${$as_var+set} = xset \ | |
7533 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
4d24561a | 7534 | done |
fe5b0fdd DH |
7535 | PS1='$ ' |
7536 | PS2='> ' | |
7537 | PS4='+ ' | |
7538 | ||
a24b9f23 MA |
7539 | # NLS nuisances. |
7540 | LC_ALL=C | |
7541 | export LC_ALL | |
7542 | LANGUAGE=C | |
7543 | export LANGUAGE | |
7544 | ||
7545 | # CDPATH. | |
7546 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7547 | ||
7548 | ||
7549 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
7550 | # ---------------------------------------- | |
7551 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
7552 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
7553 | # script with STATUS, using 1 if that was 0. | |
7554 | as_fn_error () | |
7555 | { | |
7556 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
7557 | if test "$4"; then | |
7558 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7559 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
7560 | fi | |
7561 | $as_echo "$as_me: error: $2" >&2 | |
7562 | as_fn_exit $as_status | |
7563 | } # as_fn_error | |
7564 | ||
7565 | ||
7566 | # as_fn_set_status STATUS | |
7567 | # ----------------------- | |
7568 | # Set $? to STATUS, without forking. | |
7569 | as_fn_set_status () | |
7570 | { | |
7571 | return $1 | |
7572 | } # as_fn_set_status | |
7573 | ||
7574 | # as_fn_exit STATUS | |
7575 | # ----------------- | |
7576 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7577 | as_fn_exit () | |
7578 | { | |
7579 | set +e | |
7580 | as_fn_set_status $1 | |
7581 | exit $1 | |
7582 | } # as_fn_exit | |
7583 | ||
7584 | # as_fn_unset VAR | |
7585 | # --------------- | |
7586 | # Portably unset VAR. | |
7587 | as_fn_unset () | |
7588 | { | |
7589 | { eval $1=; unset $1;} | |
7590 | } | |
7591 | as_unset=as_fn_unset | |
7592 | # as_fn_append VAR VALUE | |
7593 | # ---------------------- | |
7594 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7595 | # advantage of any shell optimizations that allow amortized linear growth over | |
7596 | # repeated appends, instead of the typical quadratic growth present in naive | |
7597 | # implementations. | |
7598 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7599 | eval 'as_fn_append () | |
7600 | { | |
7601 | eval $1+=\$2 | |
7602 | }' | |
7603 | else | |
7604 | as_fn_append () | |
7605 | { | |
7606 | eval $1=\$$1\$2 | |
7607 | } | |
7608 | fi # as_fn_append | |
7609 | ||
7610 | # as_fn_arith ARG... | |
7611 | # ------------------ | |
7612 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7613 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7614 | # must be portable across $(()) and expr. | |
7615 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7616 | eval 'as_fn_arith () | |
7617 | { | |
7618 | as_val=$(( $* )) | |
7619 | }' | |
7620 | else | |
7621 | as_fn_arith () | |
7622 | { | |
7623 | as_val=`expr "$@" || test $? -eq 1` | |
7624 | } | |
7625 | fi # as_fn_arith | |
7626 | ||
8c816ebb | 7627 | |
4d24561a JR |
7628 | if expr a : '\(a\)' >/dev/null 2>&1 && |
7629 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fe5b0fdd DH |
7630 | as_expr=expr |
7631 | else | |
7632 | as_expr=false | |
7633 | fi | |
7634 | ||
4d24561a | 7635 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fe5b0fdd DH |
7636 | as_basename=basename |
7637 | else | |
7638 | as_basename=false | |
7639 | fi | |
7640 | ||
a24b9f23 MA |
7641 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7642 | as_dirname=dirname | |
7643 | else | |
7644 | as_dirname=false | |
7645 | fi | |
fe5b0fdd | 7646 | |
4d24561a | 7647 | as_me=`$as_basename -- "$0" || |
fe5b0fdd DH |
7648 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7649 | X"$0" : 'X\(//\)$' \| \ | |
4d24561a | 7650 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
a24b9f23 | 7651 | $as_echo X/"$0" | |
4d24561a JR |
7652 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
7653 | s//\1/ | |
7654 | q | |
7655 | } | |
7656 | /^X\/\(\/\/\)$/{ | |
7657 | s//\1/ | |
7658 | q | |
7659 | } | |
7660 | /^X\/\(\/\).*/{ | |
7661 | s//\1/ | |
7662 | q | |
7663 | } | |
7664 | s/.*/./; q'` | |
7665 | ||
a24b9f23 MA |
7666 | # Avoid depending upon Character Ranges. |
7667 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7668 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7669 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7670 | as_cr_digits='0123456789' | |
7671 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
4d24561a JR |
7672 | |
7673 | ECHO_C= ECHO_N= ECHO_T= | |
a24b9f23 | 7674 | case `echo -n x` in #((((( |
4d24561a | 7675 | -n*) |
a24b9f23 | 7676 | case `echo 'xy\c'` in |
4d24561a | 7677 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
a24b9f23 MA |
7678 | xy) ECHO_C='\c';; |
7679 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7680 | ECHO_T=' ';; | |
4d24561a JR |
7681 | esac;; |
7682 | *) | |
7683 | ECHO_N='-n';; | |
fe5b0fdd | 7684 | esac |
2d5fba9b | 7685 | |
fe5b0fdd | 7686 | rm -f conf$$ conf$$.exe conf$$.file |
4d24561a JR |
7687 | if test -d conf$$.dir; then |
7688 | rm -f conf$$.dir/conf$$.file | |
7689 | else | |
7690 | rm -f conf$$.dir | |
a24b9f23 MA |
7691 | mkdir conf$$.dir 2>/dev/null |
7692 | fi | |
7693 | if (echo >conf$$.file) 2>/dev/null; then | |
7694 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7695 | as_ln_s='ln -s' | |
7696 | # ... but there are two gotchas: | |
7697 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7698 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7699 | # In both cases, we have to default to `cp -pR'. | |
7700 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
7701 | as_ln_s='cp -pR' | |
7702 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7703 | as_ln_s=ln | |
7704 | else | |
7705 | as_ln_s='cp -pR' | |
7706 | fi | |
7707 | else | |
7708 | as_ln_s='cp -pR' | |
fe5b0fdd | 7709 | fi |
4d24561a JR |
7710 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7711 | rmdir conf$$.dir 2>/dev/null | |
fe5b0fdd | 7712 | |
a24b9f23 MA |
7713 | |
7714 | # as_fn_mkdir_p | |
7715 | # ------------- | |
7716 | # Create "$as_dir" as a directory, including parents if necessary. | |
7717 | as_fn_mkdir_p () | |
7718 | { | |
7719 | ||
7720 | case $as_dir in #( | |
7721 | -*) as_dir=./$as_dir;; | |
7722 | esac | |
7723 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7724 | as_dirs= | |
7725 | while :; do | |
7726 | case $as_dir in #( | |
7727 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7728 | *) as_qdir=$as_dir;; | |
7729 | esac | |
7730 | as_dirs="'$as_qdir' $as_dirs" | |
7731 | as_dir=`$as_dirname -- "$as_dir" || | |
7732 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7733 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7734 | X"$as_dir" : 'X\(//\)$' \| \ | |
7735 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7736 | $as_echo X"$as_dir" | | |
7737 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7738 | s//\1/ | |
7739 | q | |
7740 | } | |
7741 | /^X\(\/\/\)[^/].*/{ | |
7742 | s//\1/ | |
7743 | q | |
7744 | } | |
7745 | /^X\(\/\/\)$/{ | |
7746 | s//\1/ | |
7747 | q | |
7748 | } | |
7749 | /^X\(\/\).*/{ | |
7750 | s//\1/ | |
7751 | q | |
7752 | } | |
7753 | s/.*/./; q'` | |
7754 | test -d "$as_dir" && break | |
7755 | done | |
7756 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
7757 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
7758 | ||
7759 | ||
7760 | } # as_fn_mkdir_p | |
fe5b0fdd | 7761 | if mkdir -p . 2>/dev/null; then |
a24b9f23 | 7762 | as_mkdir_p='mkdir -p "$as_dir"' |
fe5b0fdd DH |
7763 | else |
7764 | test -d ./-p && rmdir ./-p | |
7765 | as_mkdir_p=false | |
d758ad8c | 7766 | fi |
2ac5bde5 | 7767 | |
a24b9f23 MA |
7768 | |
7769 | # as_fn_executable_p FILE | |
7770 | # ----------------------- | |
7771 | # Test if FILE is an executable regular file. | |
7772 | as_fn_executable_p () | |
7773 | { | |
7774 | test -f "$1" && test -x "$1" | |
7775 | } # as_fn_executable_p | |
7776 | as_test_x='test -x' | |
7777 | as_executable_p=as_fn_executable_p | |
fe5b0fdd DH |
7778 | |
7779 | # Sed expression to map a string onto a valid CPP name. | |
7780 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7781 | ||
7782 | # Sed expression to map a string onto a valid variable name. | |
7783 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7784 | ||
7785 | ||
7786 | exec 6>&1 | |
a24b9f23 MA |
7787 | ## ----------------------------------- ## |
7788 | ## Main body of $CONFIG_STATUS script. ## | |
7789 | ## ----------------------------------- ## | |
7790 | _ASEOF | |
7791 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
fe5b0fdd | 7792 | |
a24b9f23 MA |
7793 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7794 | # Save the log message, to keep $0 and so on meaningful, and to | |
fe5b0fdd | 7795 | # report actual input values of CONFIG_FILES etc. instead of their |
4d24561a JR |
7796 | # values after options handling. |
7797 | ac_log=" | |
573f1809 | 7798 | This file was extended by DHCP $as_me 4.3.4, which was |
a24b9f23 | 7799 | generated by GNU Autoconf 2.69. Invocation command line was |
fe5b0fdd DH |
7800 | |
7801 | CONFIG_FILES = $CONFIG_FILES | |
7802 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7803 | CONFIG_LINKS = $CONFIG_LINKS | |
7804 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7805 | $ $0 $@ | |
7806 | ||
4d24561a JR |
7807 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7808 | " | |
7809 | ||
fe5b0fdd DH |
7810 | _ACEOF |
7811 | ||
a24b9f23 MA |
7812 | case $ac_config_files in *" |
7813 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7814 | esac | |
7815 | ||
7816 | case $ac_config_headers in *" | |
7817 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7818 | esac | |
7819 | ||
7820 | ||
7821 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
fe5b0fdd | 7822 | # Files that config.status was made for. |
4d24561a JR |
7823 | config_files="$ac_config_files" |
7824 | config_headers="$ac_config_headers" | |
7825 | config_commands="$ac_config_commands" | |
7d714d6b | 7826 | |
4d24561a | 7827 | _ACEOF |
fe5b0fdd | 7828 | |
a24b9f23 | 7829 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
fe5b0fdd | 7830 | ac_cs_usage="\ |
a24b9f23 MA |
7831 | \`$as_me' instantiates files and other configuration actions |
7832 | from templates according to the current configuration. Unless the files | |
7833 | and actions are specified as TAGs, all are instantiated by default. | |
fe5b0fdd | 7834 | |
a24b9f23 | 7835 | Usage: $0 [OPTION]... [TAG]... |
fe5b0fdd DH |
7836 | |
7837 | -h, --help print this help, then exit | |
4d24561a | 7838 | -V, --version print version number and configuration settings, then exit |
a24b9f23 MA |
7839 | --config print configuration, then exit |
7840 | -q, --quiet, --silent | |
7841 | do not print progress messages | |
fe5b0fdd DH |
7842 | -d, --debug don't remove temporary files |
7843 | --recheck update $as_me by reconfiguring in the same conditions | |
a24b9f23 MA |
7844 | --file=FILE[:TEMPLATE] |
7845 | instantiate the configuration file FILE | |
7846 | --header=FILE[:TEMPLATE] | |
7847 | instantiate the configuration header FILE | |
fe5b0fdd DH |
7848 | |
7849 | Configuration files: | |
7850 | $config_files | |
7851 | ||
7852 | Configuration headers: | |
7853 | $config_headers | |
7854 | ||
fc3ebe53 DH |
7855 | Configuration commands: |
7856 | $config_commands | |
7857 | ||
a24b9f23 | 7858 | Report bugs to <dhcp-users@isc.org>." |
7d714d6b | 7859 | |
4d24561a | 7860 | _ACEOF |
a24b9f23 MA |
7861 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7862 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
fe5b0fdd | 7863 | ac_cs_version="\\ |
573f1809 | 7864 | DHCP config.status 4.3.4 |
a24b9f23 MA |
7865 | configured by $0, generated by GNU Autoconf 2.69, |
7866 | with options \\"\$ac_cs_config\\" | |
fe5b0fdd | 7867 | |
a24b9f23 | 7868 | Copyright (C) 2012 Free Software Foundation, Inc. |
fe5b0fdd DH |
7869 | This config.status script is free software; the Free Software Foundation |
7870 | gives unlimited permission to copy, distribute and modify it." | |
4d24561a JR |
7871 | |
7872 | ac_pwd='$ac_pwd' | |
7873 | srcdir='$srcdir' | |
7874 | INSTALL='$INSTALL' | |
2d5fba9b | 7875 | MKDIR_P='$MKDIR_P' |
a24b9f23 MA |
7876 | AWK='$AWK' |
7877 | test -n "\$AWK" || AWK=awk | |
fe5b0fdd DH |
7878 | _ACEOF |
7879 | ||
a24b9f23 MA |
7880 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7881 | # The default lists apply if the user does not specify any file. | |
fe5b0fdd DH |
7882 | ac_need_defaults=: |
7883 | while test $# != 0 | |
7884 | do | |
7885 | case $1 in | |
a24b9f23 | 7886 | --*=?*) |
4d24561a JR |
7887 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7888 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
fe5b0fdd DH |
7889 | ac_shift=: |
7890 | ;; | |
a24b9f23 MA |
7891 | --*=) |
7892 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
7893 | ac_optarg= | |
7894 | ac_shift=: | |
7895 | ;; | |
4d24561a | 7896 | *) |
fe5b0fdd DH |
7897 | ac_option=$1 |
7898 | ac_optarg=$2 | |
7899 | ac_shift=shift | |
7900 | ;; | |
7901 | esac | |
7902 | ||
7903 | case $ac_option in | |
7904 | # Handling of the options. | |
7905 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
7906 | ac_cs_recheck=: ;; | |
4d24561a | 7907 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
a24b9f23 MA |
7908 | $as_echo "$ac_cs_version"; exit ;; |
7909 | --config | --confi | --conf | --con | --co | --c ) | |
7910 | $as_echo "$ac_cs_config"; exit ;; | |
4d24561a | 7911 | --debug | --debu | --deb | --de | --d | -d ) |
fe5b0fdd DH |
7912 | debug=: ;; |
7913 | --file | --fil | --fi | --f ) | |
7914 | $ac_shift | |
a24b9f23 MA |
7915 | case $ac_optarg in |
7916 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7917 | '') as_fn_error $? "missing file argument" ;; | |
7918 | esac | |
7919 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
fe5b0fdd DH |
7920 | ac_need_defaults=false;; |
7921 | --header | --heade | --head | --hea ) | |
7922 | $ac_shift | |
a24b9f23 MA |
7923 | case $ac_optarg in |
7924 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7925 | esac | |
7926 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
fe5b0fdd | 7927 | ac_need_defaults=false;; |
4d24561a JR |
7928 | --he | --h) |
7929 | # Conflict between --help and --header | |
a24b9f23 MA |
7930 | as_fn_error $? "ambiguous option: \`$1' |
7931 | Try \`$0 --help' for more information.";; | |
4d24561a | 7932 | --help | --hel | -h ) |
a24b9f23 | 7933 | $as_echo "$ac_cs_usage"; exit ;; |
fe5b0fdd DH |
7934 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7935 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7936 | ac_cs_silent=: ;; | |
7937 | ||
7938 | # This is an error. | |
a24b9f23 MA |
7939 | -*) as_fn_error $? "unrecognized option: \`$1' |
7940 | Try \`$0 --help' for more information." ;; | |
fe5b0fdd | 7941 | |
a24b9f23 | 7942 | *) as_fn_append ac_config_targets " $1" |
4d24561a | 7943 | ac_need_defaults=false ;; |
fe5b0fdd DH |
7944 | |
7945 | esac | |
7946 | shift | |
7947 | done | |
7948 | ||
7949 | ac_configure_extra_args= | |
7950 | ||
7951 | if $ac_cs_silent; then | |
7952 | exec 6>/dev/null | |
7953 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7954 | fi | |
7955 | ||
7956 | _ACEOF | |
a24b9f23 | 7957 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
fe5b0fdd | 7958 | if \$ac_cs_recheck; then |
a24b9f23 MA |
7959 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7960 | shift | |
7961 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7962 | CONFIG_SHELL='$SHELL' | |
4d24561a | 7963 | export CONFIG_SHELL |
a24b9f23 | 7964 | exec "\$@" |
fe5b0fdd DH |
7965 | fi |
7966 | ||
7967 | _ACEOF | |
a24b9f23 | 7968 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4d24561a JR |
7969 | exec 5>>config.log |
7970 | { | |
7971 | echo | |
7972 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7973 | ## Running $as_me. ## | |
7974 | _ASBOX | |
a24b9f23 | 7975 | $as_echo "$ac_log" |
4d24561a | 7976 | } >&5 |
fe5b0fdd | 7977 | |
4d24561a | 7978 | _ACEOF |
a24b9f23 | 7979 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
fc3ebe53 | 7980 | # |
4d24561a | 7981 | # INIT-COMMANDS |
fc3ebe53 | 7982 | # |
fc3ebe53 | 7983 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
fe5b0fdd | 7984 | |
fc3ebe53 | 7985 | _ACEOF |
fe5b0fdd | 7986 | |
a24b9f23 | 7987 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4d24561a JR |
7988 | |
7989 | # Handling of arguments. | |
fe5b0fdd DH |
7990 | for ac_config_target in $ac_config_targets |
7991 | do | |
4d24561a JR |
7992 | case $ac_config_target in |
7993 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
7994 | "includes/config.h") CONFIG_HEADERS="$CONFIG_HEADERS includes/config.h" ;; | |
5a428b2e | 7995 | "$srcdir/bind/Makefile") CONFIG_FILES="$CONFIG_FILES $srcdir/bind/Makefile" ;; |
7a6146d8 | 7996 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
4d24561a | 7997 | "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;; |
79818c93 | 7998 | "client/tests/Makefile") CONFIG_FILES="$CONFIG_FILES client/tests/Makefile" ;; |
4d24561a JR |
7999 | "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; |
8000 | "common/tests/Makefile") CONFIG_FILES="$CONFIG_FILES common/tests/Makefile" ;; | |
8001 | "dhcpctl/Makefile") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile" ;; | |
4d24561a | 8002 | "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;; |
4d24561a JR |
8003 | "omapip/Makefile") CONFIG_FILES="$CONFIG_FILES omapip/Makefile" ;; |
8004 | "relay/Makefile") CONFIG_FILES="$CONFIG_FILES relay/Makefile" ;; | |
8005 | "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; | |
8006 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
9a111ee8 | 8007 | "tests/unittest.sh") CONFIG_FILES="$CONFIG_FILES tests/unittest.sh" ;; |
4a70cb10 TM |
8008 | "server/tests/Makefile") CONFIG_FILES="$CONFIG_FILES server/tests/Makefile" ;; |
8009 | "doc/devel/doxyfile") CONFIG_FILES="$CONFIG_FILES doc/devel/doxyfile" ;; | |
4d24561a | 8010 | |
a24b9f23 | 8011 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
fe5b0fdd DH |
8012 | esac |
8013 | done | |
8014 | ||
4d24561a | 8015 | |
fe5b0fdd DH |
8016 | # If the user did not use the arguments to specify the items to instantiate, |
8017 | # then the envvar interface is used. Set only those that are not. | |
8018 | # We use the long form for the default assignment because of an extremely | |
8019 | # bizarre bug on SunOS 4.1.3. | |
8020 | if $ac_need_defaults; then | |
8021 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8022 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
fc3ebe53 | 8023 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
fe5b0fdd DH |
8024 | fi |
8025 | ||
8026 | # Have a temporary directory for convenience. Make it in the build tree | |
4d24561a | 8027 | # simply because there is no reason against having it here, and in addition, |
fe5b0fdd | 8028 | # creating and moving files from /tmp can sometimes cause problems. |
4d24561a JR |
8029 | # Hook for its removal unless debugging. |
8030 | # Note that there is a small window in which the directory will not be cleaned: | |
8031 | # after its creation but before its name has been assigned to `$tmp'. | |
fe5b0fdd DH |
8032 | $debug || |
8033 | { | |
a24b9f23 | 8034 | tmp= ac_tmp= |
4d24561a | 8035 | trap 'exit_status=$? |
a24b9f23 MA |
8036 | : "${ac_tmp:=$tmp}" |
8037 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
4d24561a | 8038 | ' 0 |
a24b9f23 | 8039 | trap 'as_fn_exit 1' 1 2 13 15 |
fe5b0fdd DH |
8040 | } |
8041 | # Create a (secure) tmp directory for tmp files. | |
8042 | ||
8043 | { | |
4d24561a | 8044 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
a24b9f23 | 8045 | test -d "$tmp" |
fe5b0fdd DH |
8046 | } || |
8047 | { | |
4d24561a JR |
8048 | tmp=./conf$$-$RANDOM |
8049 | (umask 077 && mkdir "$tmp") | |
a24b9f23 MA |
8050 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
8051 | ac_tmp=$tmp | |
9228099e | 8052 | |
a24b9f23 MA |
8053 | # Set up the scripts for CONFIG_FILES section. |
8054 | # No need to generate them if there are no CONFIG_FILES. | |
8055 | # This happens for instance with `./config.status config.h'. | |
529be52a | 8056 | if test -n "$CONFIG_FILES"; then |
4a70cb10 | 8057 | |
4d24561a | 8058 | |
a24b9f23 MA |
8059 | ac_cr=`echo X | tr X '\015'` |
8060 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8061 | # But we know of no other shell where ac_cr would be empty at this | |
8062 | # point, so we can use a bashism as a fallback. | |
8063 | if test "x$ac_cr" = x; then | |
8064 | eval ac_cr=\$\'\\r\' | |
8065 | fi | |
8066 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8067 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
8068 | ac_cs_awk_cr='\\r' | |
8069 | else | |
8070 | ac_cs_awk_cr=$ac_cr | |
8071 | fi | |
8072 | ||
8073 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
8074 | _ACEOF | |
2d5fba9b | 8075 | |
529be52a | 8076 | |
a24b9f23 MA |
8077 | { |
8078 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8079 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8080 | echo "_ACEOF" | |
8081 | } >conf$$subs.sh || | |
8082 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8083 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
4d24561a JR |
8084 | ac_delim='%!_!# ' |
8085 | for ac_last_try in false false false false false :; do | |
a24b9f23 MA |
8086 | . ./conf$$subs.sh || |
8087 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
2d5fba9b | 8088 | |
a24b9f23 MA |
8089 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
8090 | if test $ac_delim_n = $ac_delim_num; then | |
4d24561a JR |
8091 | break |
8092 | elif $ac_last_try; then | |
a24b9f23 | 8093 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
4d24561a JR |
8094 | else |
8095 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
c9a1db5e | 8096 | fi |
4d24561a | 8097 | done |
a24b9f23 MA |
8098 | rm -f conf$$subs.sh |
8099 | ||
8100 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8101 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
8102 | _ACEOF | |
8103 | sed -n ' | |
8104 | h | |
8105 | s/^/S["/; s/!.*/"]=/ | |
8106 | p | |
8107 | g | |
8108 | s/^[^!]*!// | |
8109 | :repl | |
8110 | t repl | |
8111 | s/'"$ac_delim"'$// | |
8112 | t delim | |
8113 | :nl | |
8114 | h | |
8115 | s/\(.\{148\}\)..*/\1/ | |
8116 | t more1 | |
8117 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8118 | p | |
8119 | n | |
8120 | b repl | |
8121 | :more1 | |
8122 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8123 | p | |
8124 | g | |
8125 | s/.\{148\}// | |
8126 | t nl | |
8127 | :delim | |
8128 | h | |
8129 | s/\(.\{148\}\)..*/\1/ | |
8130 | t more2 | |
8131 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8132 | p | |
8133 | b | |
8134 | :more2 | |
8135 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8136 | p | |
8137 | g | |
8138 | s/.\{148\}// | |
8139 | t delim | |
8140 | ' <conf$$subs.awk | sed ' | |
8141 | /^[^""]/{ | |
8142 | N | |
8143 | s/\n// | |
8144 | } | |
8145 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8146 | rm -f conf$$subs.awk | |
8147 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8148 | _ACAWK | |
8149 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
8150 | for (key in S) S_is_set[key] = 1 | |
8151 | FS = "\a" | |
4d24561a | 8152 | |
a24b9f23 MA |
8153 | } |
8154 | { | |
8155 | line = $ 0 | |
8156 | nfields = split(line, field, "@") | |
8157 | substed = 0 | |
8158 | len = length(field[1]) | |
8159 | for (i = 2; i < nfields; i++) { | |
8160 | key = field[i] | |
8161 | keylen = length(key) | |
8162 | if (S_is_set[key]) { | |
8163 | value = S[key] | |
8164 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8165 | len += length(value) + length(field[++i]) | |
8166 | substed = 1 | |
8167 | } else | |
8168 | len += 1 + keylen | |
8169 | } | |
8170 | ||
8171 | print line | |
8172 | } | |
273bfdc3 | 8173 | |
a24b9f23 | 8174 | _ACAWK |
4d24561a | 8175 | _ACEOF |
a24b9f23 MA |
8176 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8177 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8178 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8179 | else | |
8180 | cat | |
8181 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
8182 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
c9a1db5e | 8183 | _ACEOF |
4d24561a | 8184 | |
a24b9f23 MA |
8185 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
8186 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
4d24561a JR |
8187 | # trailing colons and then remove the whole line if VPATH becomes empty |
8188 | # (actually we leave an empty line to preserve line numbers). | |
8189 | if test "x$srcdir" = x.; then | |
a24b9f23 MA |
8190 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
8191 | h | |
8192 | s/// | |
8193 | s/^/:/ | |
8194 | s/[ ]*$/:/ | |
8195 | s/:\$(srcdir):/:/g | |
8196 | s/:\${srcdir}:/:/g | |
8197 | s/:@srcdir@:/:/g | |
8198 | s/^:*// | |
4d24561a | 8199 | s/:*$// |
a24b9f23 MA |
8200 | x |
8201 | s/\(=[ ]*\).*/\1/ | |
8202 | G | |
8203 | s/\n// | |
4d24561a JR |
8204 | s/^[^=]*=[ ]*$// |
8205 | }' | |
8206 | fi | |
8207 | ||
a24b9f23 | 8208 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4d24561a JR |
8209 | fi # test -n "$CONFIG_FILES" |
8210 | ||
a24b9f23 MA |
8211 | # Set up the scripts for CONFIG_HEADERS section. |
8212 | # No need to generate them if there are no CONFIG_HEADERS. | |
8213 | # This happens for instance with `./config.status Makefile'. | |
8214 | if test -n "$CONFIG_HEADERS"; then | |
8215 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
8216 | BEGIN { | |
8217 | _ACEOF | |
8218 | ||
8219 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
8220 | # here-document in config.status, that substitutes the proper values into | |
8221 | # config.h.in to produce config.h. | |
8222 | ||
8223 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8224 | # handling of long lines. | |
8225 | ac_delim='%!_!# ' | |
8226 | for ac_last_try in false false :; do | |
8227 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
8228 | if test -z "$ac_tt"; then | |
8229 | break | |
8230 | elif $ac_last_try; then | |
8231 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
8232 | else | |
8233 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8234 | fi | |
8235 | done | |
8236 | ||
8237 | # For the awk script, D is an array of macro values keyed by name, | |
8238 | # likewise P contains macro parameters if any. Preserve backslash | |
8239 | # newline sequences. | |
8240 | ||
8241 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8242 | sed -n ' | |
8243 | s/.\{148\}/&'"$ac_delim"'/g | |
8244 | t rset | |
8245 | :rset | |
8246 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8247 | t def | |
8248 | d | |
8249 | :def | |
8250 | s/\\$// | |
8251 | t bsnl | |
8252 | s/["\\]/\\&/g | |
8253 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8254 | D["\1"]=" \3"/p | |
8255 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8256 | d | |
8257 | :bsnl | |
8258 | s/["\\]/\\&/g | |
8259 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8260 | D["\1"]=" \3\\\\\\n"\\/p | |
8261 | t cont | |
8262 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8263 | t cont | |
8264 | d | |
8265 | :cont | |
8266 | n | |
8267 | s/.\{148\}/&'"$ac_delim"'/g | |
8268 | t clear | |
8269 | :clear | |
8270 | s/\\$// | |
8271 | t bsnlc | |
8272 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8273 | d | |
8274 | :bsnlc | |
8275 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8276 | b cont | |
8277 | ' <confdefs.h | sed ' | |
8278 | s/'"$ac_delim"'/"\\\ | |
8279 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8280 | ||
8281 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8282 | for (key in D) D_is_set[key] = 1 | |
8283 | FS = "\a" | |
8284 | } | |
8285 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8286 | line = \$ 0 | |
8287 | split(line, arg, " ") | |
8288 | if (arg[1] == "#") { | |
8289 | defundef = arg[2] | |
8290 | mac1 = arg[3] | |
8291 | } else { | |
8292 | defundef = substr(arg[1], 2) | |
8293 | mac1 = arg[2] | |
8294 | } | |
8295 | split(mac1, mac2, "(") #) | |
8296 | macro = mac2[1] | |
8297 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8298 | if (D_is_set[macro]) { | |
8299 | # Preserve the white space surrounding the "#". | |
8300 | print prefix "define", macro P[macro] D[macro] | |
8301 | next | |
8302 | } else { | |
8303 | # Replace #undef with comments. This is necessary, for example, | |
8304 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8305 | # on some systems where configure will not decide to define it. | |
8306 | if (defundef == "undef") { | |
8307 | print "/*", prefix defundef, macro, "*/" | |
8308 | next | |
8309 | } | |
8310 | } | |
8311 | } | |
8312 | { print } | |
8313 | _ACAWK | |
8314 | _ACEOF | |
8315 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8316 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
8317 | fi # test -n "$CONFIG_HEADERS" | |
8318 | ||
9228099e | 8319 | |
a24b9f23 MA |
8320 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
8321 | shift | |
8322 | for ac_tag | |
4d24561a JR |
8323 | do |
8324 | case $ac_tag in | |
8325 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8326 | esac | |
8327 | case $ac_mode$ac_tag in | |
8328 | :[FHL]*:*);; | |
a24b9f23 | 8329 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
4d24561a JR |
8330 | :[FH]-) ac_tag=-:-;; |
8331 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8332 | esac | |
8333 | ac_save_IFS=$IFS | |
8334 | IFS=: | |
8335 | set x $ac_tag | |
8336 | IFS=$ac_save_IFS | |
8337 | shift | |
8338 | ac_file=$1 | |
8339 | shift | |
8340 | ||
8341 | case $ac_mode in | |
8342 | :L) ac_source=$1;; | |
8343 | :[FH]) | |
8344 | ac_file_inputs= | |
8345 | for ac_f | |
8346 | do | |
8347 | case $ac_f in | |
a24b9f23 | 8348 | -) ac_f="$ac_tmp/stdin";; |
4d24561a JR |
8349 | *) # Look for the file first in the build tree, then in the source tree |
8350 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8351 | # because $ac_f cannot contain `:'. | |
8352 | test -f "$ac_f" || | |
8353 | case $ac_f in | |
8354 | [\\/$]*) false;; | |
8355 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8356 | esac || | |
a24b9f23 | 8357 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
4d24561a | 8358 | esac |
a24b9f23 MA |
8359 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
8360 | as_fn_append ac_file_inputs " '$ac_f'" | |
4d24561a JR |
8361 | done |
8362 | ||
8363 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8364 | # use $as_me), people would be surprised to read: | |
8365 | # /* config.h. Generated by config.status. */ | |
a24b9f23 MA |
8366 | configure_input='Generated from '` |
8367 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8368 | `' by configure.' | |
4d24561a JR |
8369 | if test x"$ac_file" != x-; then |
8370 | configure_input="$ac_file. $configure_input" | |
a24b9f23 MA |
8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8372 | $as_echo "$as_me: creating $ac_file" >&6;} | |
4d24561a | 8373 | fi |
a24b9f23 MA |
8374 | # Neutralize special characters interpreted by sed in replacement strings. |
8375 | case $configure_input in #( | |
8376 | *\&* | *\|* | *\\* ) | |
8377 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8378 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8379 | *) ac_sed_conf_input=$configure_input;; | |
8380 | esac | |
4d24561a JR |
8381 | |
8382 | case $ac_tag in | |
a24b9f23 MA |
8383 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
8384 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
4d24561a JR |
8385 | esac |
8386 | ;; | |
fe5b0fdd DH |
8387 | esac |
8388 | ||
4d24561a | 8389 | ac_dir=`$as_dirname -- "$ac_file" || |
fe5b0fdd DH |
8390 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8391 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8392 | X"$ac_file" : 'X\(//\)$' \| \ | |
4d24561a | 8393 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
a24b9f23 | 8394 | $as_echo X"$ac_file" | |
4d24561a JR |
8395 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8396 | s//\1/ | |
8397 | q | |
8398 | } | |
8399 | /^X\(\/\/\)[^/].*/{ | |
8400 | s//\1/ | |
8401 | q | |
8402 | } | |
8403 | /^X\(\/\/\)$/{ | |
8404 | s//\1/ | |
8405 | q | |
8406 | } | |
8407 | /^X\(\/\).*/{ | |
8408 | s//\1/ | |
8409 | q | |
8410 | } | |
8411 | s/.*/./; q'` | |
a24b9f23 | 8412 | as_dir="$ac_dir"; as_fn_mkdir_p |
fe5b0fdd DH |
8413 | ac_builddir=. |
8414 | ||
4d24561a JR |
8415 | case "$ac_dir" in |
8416 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8417 | *) | |
a24b9f23 | 8418 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
4d24561a | 8419 | # A ".." for each directory in $ac_dir_suffix. |
a24b9f23 | 8420 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
4d24561a JR |
8421 | case $ac_top_builddir_sub in |
8422 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8423 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8424 | esac ;; | |
8425 | esac | |
8426 | ac_abs_top_builddir=$ac_pwd | |
8427 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8428 | # for backward compatibility: | |
8429 | ac_top_builddir=$ac_top_build_prefix | |
fe5b0fdd DH |
8430 | |
8431 | case $srcdir in | |
4d24561a | 8432 | .) # We are building in place. |
fe5b0fdd | 8433 | ac_srcdir=. |
4d24561a JR |
8434 | ac_top_srcdir=$ac_top_builddir_sub |
8435 | ac_abs_top_srcdir=$ac_pwd ;; | |
8436 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fe5b0fdd | 8437 | ac_srcdir=$srcdir$ac_dir_suffix; |
4d24561a JR |
8438 | ac_top_srcdir=$srcdir |
8439 | ac_abs_top_srcdir=$srcdir ;; | |
8440 | *) # Relative name. | |
8441 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8442 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8443 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fe5b0fdd | 8444 | esac |
4d24561a | 8445 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fe5b0fdd DH |
8446 | |
8447 | ||
4d24561a JR |
8448 | case $ac_mode in |
8449 | :F) | |
8450 | # | |
8451 | # CONFIG_FILE | |
8452 | # | |
fe5b0fdd DH |
8453 | |
8454 | case $INSTALL in | |
8455 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
4d24561a | 8456 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
fe5b0fdd | 8457 | esac |
2d5fba9b DH |
8458 | ac_MKDIR_P=$MKDIR_P |
8459 | case $MKDIR_P in | |
8460 | [\\/$]* | ?:[\\/]* ) ;; | |
8461 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
8462 | esac | |
4d24561a | 8463 | _ACEOF |
273bfdc3 | 8464 | |
4d24561a JR |
8465 | |
8466 | # Neutralize VPATH when `$srcdir' = `.'. | |
8467 | # Shell code in configure.ac might set extrasub. | |
8468 | # FIXME: do we really want to maintain this feature? | |
a24b9f23 MA |
8469 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8470 | ac_sed_extra="$ac_vpsub | |
fe5b0fdd DH |
8471 | $extrasub |
8472 | _ACEOF | |
a24b9f23 | 8473 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
fe5b0fdd DH |
8474 | :t |
8475 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
a24b9f23 | 8476 | s|@configure_input@|$ac_sed_conf_input|;t t |
4d24561a | 8477 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
a24b9f23 | 8478 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
4d24561a JR |
8479 | s&@srcdir@&$ac_srcdir&;t t |
8480 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8481 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8482 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8483 | s&@builddir@&$ac_builddir&;t t | |
8484 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8485 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8486 | s&@INSTALL@&$ac_INSTALL&;t t | |
2d5fba9b | 8487 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
a24b9f23 MA |
8488 | " |
8489 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
8490 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
4d24561a | 8491 | |
4d24561a | 8492 | |
a24b9f23 | 8493 | rm -f "$ac_tmp/stdin" |
fe5b0fdd | 8494 | case $ac_file in |
a24b9f23 MA |
8495 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
8496 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8497 | esac \ | |
8498 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
4d24561a JR |
8499 | ;; |
8500 | :H) | |
8501 | # | |
8502 | # CONFIG_HEADER | |
8503 | # | |
fe5b0fdd | 8504 | if test x"$ac_file" != x-; then |
a24b9f23 MA |
8505 | { |
8506 | $as_echo "/* $configure_input */" \ | |
8507 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
8508 | } >"$ac_tmp/config.h" \ | |
8509 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8510 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
8511 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8512 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
fe5b0fdd | 8513 | else |
a24b9f23 MA |
8514 | rm -f "$ac_file" |
8515 | mv "$ac_tmp/config.h" "$ac_file" \ | |
8516 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
fe5b0fdd DH |
8517 | fi |
8518 | else | |
a24b9f23 MA |
8519 | $as_echo "/* $configure_input */" \ |
8520 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
8521 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
fe5b0fdd | 8522 | fi |
a24b9f23 MA |
8523 | # Compute "$ac_file"'s index in $config_headers. |
8524 | _am_arg="$ac_file" | |
fc3ebe53 DH |
8525 | _am_stamp_count=1 |
8526 | for _am_header in $config_headers :; do | |
8527 | case $_am_header in | |
2d5fba9b | 8528 | $_am_arg | $_am_arg:* ) |
fc3ebe53 DH |
8529 | break ;; |
8530 | * ) | |
8531 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
8532 | esac | |
8533 | done | |
2d5fba9b DH |
8534 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
8535 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8536 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
8537 | X"$_am_arg" : 'X\(//\)$' \| \ | |
8538 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
a24b9f23 | 8539 | $as_echo X"$_am_arg" | |
4d24561a JR |
8540 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8541 | s//\1/ | |
8542 | q | |
8543 | } | |
8544 | /^X\(\/\/\)[^/].*/{ | |
8545 | s//\1/ | |
8546 | q | |
8547 | } | |
8548 | /^X\(\/\/\)$/{ | |
8549 | s//\1/ | |
8550 | q | |
8551 | } | |
8552 | /^X\(\/\).*/{ | |
8553 | s//\1/ | |
8554 | q | |
8555 | } | |
8556 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8557 | ;; | |
7d714d6b | 8558 | |
a24b9f23 MA |
8559 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8560 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
4d24561a JR |
8561 | ;; |
8562 | esac | |
fc3ebe53 DH |
8563 | |
8564 | ||
4d24561a | 8565 | case $ac_file$ac_mode in |
a24b9f23 | 8566 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
69e9da00 | 8567 | # Older Autoconf quotes --file arguments for eval, but not when files |
a24b9f23 MA |
8568 | # are listed without --file. Let's play safe and only enable the eval |
8569 | # if we detect the quoting. | |
8570 | case $CONFIG_FILES in | |
8571 | *\'*) eval set x "$CONFIG_FILES" ;; | |
8572 | *) set x $CONFIG_FILES ;; | |
8573 | esac | |
8574 | shift | |
8575 | for mf | |
8576 | do | |
8577 | # Strip MF so we end up with the name of the file. | |
8578 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
8579 | # Check whether this is an Automake generated Makefile or not. | |
8580 | # We used to match only the files named 'Makefile.in', but | |
8581 | # some people rename them; so instead we look at the file content. | |
8582 | # Grep'ing the first line is not enough: some people post-process | |
8583 | # each Makefile.in and add a new line on top of each file to say so. | |
8584 | # Grep'ing the whole file is not good either: AIX grep has a line | |
8585 | # limit of 2048, but all sed's we know have understand at least 4000. | |
8586 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
8587 | dirpart=`$as_dirname -- "$mf" || | |
fc3ebe53 DH |
8588 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8589 | X"$mf" : 'X\(//\)[^/]' \| \ | |
8590 | X"$mf" : 'X\(//\)$' \| \ | |
4d24561a | 8591 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
a24b9f23 | 8592 | $as_echo X"$mf" | |
4d24561a JR |
8593 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8594 | s//\1/ | |
8595 | q | |
8596 | } | |
8597 | /^X\(\/\/\)[^/].*/{ | |
8598 | s//\1/ | |
8599 | q | |
8600 | } | |
8601 | /^X\(\/\/\)$/{ | |
8602 | s//\1/ | |
8603 | q | |
8604 | } | |
8605 | /^X\(\/\).*/{ | |
8606 | s//\1/ | |
8607 | q | |
8608 | } | |
8609 | s/.*/./; q'` | |
a24b9f23 MA |
8610 | else |
8611 | continue | |
8612 | fi | |
8613 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8614 | # from the Makefile without running 'make'. | |
8615 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
8616 | test -z "$DEPDIR" && continue | |
8617 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
69e9da00 | 8618 | test -z "$am__include" && continue |
a24b9f23 MA |
8619 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8620 | # Find all dependency output files, they are included files with | |
8621 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
8622 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
8623 | # expansion. | |
8624 | for file in `sed -n " | |
8625 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8626 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
8627 | # Make sure the directory exists. | |
8628 | test -f "$dirpart/$file" && continue | |
8629 | fdir=`$as_dirname -- "$file" || | |
fc3ebe53 DH |
8630 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8631 | X"$file" : 'X\(//\)[^/]' \| \ | |
8632 | X"$file" : 'X\(//\)$' \| \ | |
4d24561a | 8633 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
a24b9f23 | 8634 | $as_echo X"$file" | |
4d24561a JR |
8635 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8636 | s//\1/ | |
8637 | q | |
8638 | } | |
8639 | /^X\(\/\/\)[^/].*/{ | |
8640 | s//\1/ | |
8641 | q | |
8642 | } | |
8643 | /^X\(\/\/\)$/{ | |
8644 | s//\1/ | |
8645 | q | |
8646 | } | |
8647 | /^X\(\/\).*/{ | |
8648 | s//\1/ | |
8649 | q | |
8650 | } | |
8651 | s/.*/./; q'` | |
a24b9f23 MA |
8652 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8653 | # echo "creating $dirpart/$file" | |
8654 | echo '# dummy' > "$dirpart/$file" | |
529be52a | 8655 | done |
fc3ebe53 | 8656 | done |
a24b9f23 | 8657 | } |
fc3ebe53 | 8658 | ;; |
4d24561a | 8659 | |
fc3ebe53 | 8660 | esac |
4d24561a | 8661 | done # for ac_tag |
fe5b0fdd DH |
8662 | |
8663 | ||
a24b9f23 | 8664 | as_fn_exit 0 |
fe5b0fdd | 8665 | _ACEOF |
fe5b0fdd DH |
8666 | ac_clean_files=$ac_clean_files_save |
8667 | ||
a24b9f23 MA |
8668 | test $ac_write_fail = 0 || |
8669 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
8670 | ||
fe5b0fdd DH |
8671 | |
8672 | # configure is writing to config.log, and then calls config.status. | |
8673 | # config.status does its own redirection, appending to config.log. | |
8674 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8675 | # by configure, so config.status won't be able to write to it; its | |
8676 | # output is simply discarded. So we exec the FD to /dev/null, | |
8677 | # effectively closing config.log, so it can be properly (re)opened and | |
8678 | # appended to by config.status. When coming back to configure, we | |
8679 | # need to make the FD available again. | |
8680 | if test "$no_create" != yes; then | |
8681 | ac_cs_success=: | |
8682 | ac_config_status_args= | |
8683 | test "$silent" = yes && | |
8684 | ac_config_status_args="$ac_config_status_args --quiet" | |
8685 | exec 5>/dev/null | |
8686 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8687 | exec 5>>config.log | |
8688 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8689 | # would make configure fail if this is the last instruction. | |
a24b9f23 MA |
8690 | $ac_cs_success || as_fn_exit 1 |
8691 | fi | |
8692 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8693 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8694 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
fe5b0fdd DH |
8695 | fi |
8696 | ||
8697 | ||
785c1a51 FD |
8698 | if test "$enable_dhcpv4o6" = "yes"; then |
8699 | DHCP_VERSIONS="DHCPv4, DHCPv6 and DHCPv4-over-DHCPv6" | |
8700 | elif test "$enable_dhcpv6" != "no"; then | |
8701 | DHCP_VERSIONS="DHCPv4 and DHCPv6" | |
8702 | else | |
8703 | DHCP_VERSIONS="DHCPv4" | |
8704 | fi | |
8705 | ||
4a70cb10 TM |
8706 | cat > config.report << END |
8707 | ||
8708 | ISC DHCP source configure results: | |
8709 | -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
8710 | ||
8711 | Package: | |
8712 | Name: $PACKAGE_NAME | |
8713 | Version: $PACKAGE_VERSION | |
8714 | ||
8715 | C Compiler: $CC | |
8716 | ||
8717 | Flags: | |
8718 | DEFS: $DEFS | |
8719 | CFLAGS: $CFLAGS | |
8720 | ||
785c1a51 FD |
8721 | DHCP versions: $DHCP_VERSIONS |
8722 | ||
4a70cb10 TM |
8723 | Features: |
8724 | debug: $enable_debug | |
8725 | failover: $enable_failover | |
8726 | execute: $enable_execute | |
3933e2aa | 8727 | binary-leases: $enable_binary_leases |
e82906fc TM |
8728 | dhcpv6: $enable_dhcpv6 |
8729 | delayed-ack: $enable_delayed_ack | |
4a70cb10 TM |
8730 | |
8731 | Developer: | |
8732 | ATF unittests : $atf_path | |
8733 | ||
8734 | END | |
8735 | # TODO: Add Perl system tests | |
8736 | ||
8737 | if test "$atf_path" != "no" | |
8738 | then | |
8739 | echo "ATF_CFLAGS : $ATF_CFLAGS" >> config.report | |
8740 | echo "ATF_LDFLAGS : $ATF_LDFLAGS" >> config.report | |
9a111ee8 | 8741 | echo "ATF_BIN : $ATF_BIN" >> config.report |
4a70cb10 TM |
8742 | echo |
8743 | fi | |
8744 | ||
8745 | cat config.report | |
8746 | ||
8747 | echo | |
8748 | echo Now you can type "make" to build ISC DHCP | |
8749 | echo |