]>
Commit | Line | Data |
---|---|---|
fe5b0fdd DH |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
41f81b5c | 3 | # Generated by GNU Autoconf 2.71 for DHCP 4.4.3-P1. |
fe5b0fdd DH |
4 | # |
5 | # Report bugs to <dhcp-users@isc.org>. | |
6 | # | |
a24b9f23 | 7 | # |
41f81b5c WW |
8 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
9 | # Inc. | |
a24b9f23 MA |
10 | # |
11 | # | |
fe5b0fdd DH |
12 | # This configure script is free software; the Free Software Foundation |
13 | # gives unlimited permission to copy, distribute and modify it. | |
a24b9f23 MA |
14 | ## -------------------- ## |
15 | ## M4sh Initialization. ## | |
16 | ## -------------------- ## | |
8c816ebb | 17 | |
4d24561a JR |
18 | # Be more Bourne compatible |
19 | DUALCASE=1; export DUALCASE # for MKS sh | |
41f81b5c WW |
20 | as_nop=: |
21 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
22 | then : | |
fe5b0fdd DH |
23 | emulate sh |
24 | NULLCMD=: | |
a24b9f23 | 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
fe5b0fdd DH |
26 | # is contrary to our usage. Disable this feature. |
27 | alias -g '${1+"$@"}'='"$@"' | |
4d24561a | 28 | setopt NO_GLOB_SUBST |
41f81b5c | 29 | else $as_nop |
a24b9f23 MA |
30 | case `(set -o) 2>/dev/null` in #( |
31 | *posix*) : | |
32 | set -o posix ;; #( | |
33 | *) : | |
34 | ;; | |
4d24561a | 35 | esac |
4d24561a JR |
36 | fi |
37 | ||
38 | ||
41f81b5c WW |
39 | |
40 | # Reset variables that may have inherited troublesome values from | |
41 | # the environment. | |
42 | ||
43 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
44 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
45 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
46 | # Quoting is to prevent editors from complaining about space-tab. | |
a24b9f23 MA |
47 | as_nl=' |
48 | ' | |
49 | export as_nl | |
41f81b5c WW |
50 | IFS=" "" $as_nl" |
51 | ||
52 | PS1='$ ' | |
53 | PS2='> ' | |
54 | PS4='+ ' | |
55 | ||
56 | # Ensure predictable behavior from utilities with locale-dependent output. | |
57 | LC_ALL=C | |
58 | export LC_ALL | |
59 | LANGUAGE=C | |
60 | export LANGUAGE | |
61 | ||
62 | # We cannot yet rely on "unset" to work, but we need these variables | |
63 | # to be unset--not just set to an empty or harmless value--now, to | |
64 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
65 | # also avoids known problems related to "unset" and subshell syntax | |
66 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
67 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
68 | do eval test \${$as_var+y} \ | |
69 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
70 | done | |
71 | ||
72 | # Ensure that fds 0, 1, and 2 are open. | |
73 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
74 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
75 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
fe5b0fdd | 76 | |
a24b9f23 | 77 | # The user is always right. |
41f81b5c | 78 | if ${PATH_SEPARATOR+false} :; then |
a24b9f23 MA |
79 | PATH_SEPARATOR=: |
80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
82 | PATH_SEPARATOR=';' | |
83 | } | |
fe5b0fdd DH |
84 | fi |
85 | ||
86 | ||
4d24561a | 87 | # Find who we are. Look in the path if we contain no directory separator. |
a24b9f23 MA |
88 | as_myself= |
89 | case $0 in #(( | |
4d24561a JR |
90 | *[\\/]* ) as_myself=$0 ;; |
91 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
92 | for as_dir in $PATH | |
93 | do | |
94 | IFS=$as_save_IFS | |
41f81b5c WW |
95 | case $as_dir in #((( |
96 | '') as_dir=./ ;; | |
97 | */) ;; | |
98 | *) as_dir=$as_dir/ ;; | |
99 | esac | |
100 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
a24b9f23 | 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 | |
41f81b5c | 112 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
a24b9f23 | 113 | exit 1 |
4d24561a JR |
114 | fi |
115 | ||
a24b9f23 MA |
116 | |
117 | # Use a proper internal environment variable to ensure we don't fall | |
118 | # into an infinite loop, continuously re-executing ourselves. | |
119 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
120 | _as_can_reexec=no; export _as_can_reexec; | |
121 | # We cannot yet assume a decent shell, so we have to provide a | |
122 | # neutralization value for shells without unset; and this also | |
123 | # works around shells that cannot unset nonexistent variables. | |
124 | # Preserve -v and -x to the replacement shell. | |
125 | BASH_ENV=/dev/null | |
126 | ENV=/dev/null | |
127 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
128 | case $- in # (((( | |
129 | *v*x* | *x*v* ) as_opts=-vx ;; | |
130 | *v* ) as_opts=-v ;; | |
131 | *x* ) as_opts=-x ;; | |
132 | * ) as_opts= ;; | |
133 | esac | |
134 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
135 | # Admittedly, this is quite paranoid, since all the known shells bail | |
136 | # out after a failed `exec'. | |
41f81b5c WW |
137 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
138 | exit 255 | |
a24b9f23 MA |
139 | fi |
140 | # We don't want this to propagate to other subprocesses. | |
141 | { _as_can_reexec=; unset _as_can_reexec;} | |
142 | if test "x$CONFIG_SHELL" = x; then | |
41f81b5c WW |
143 | as_bourne_compatible="as_nop=: |
144 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
145 | then : | |
a24b9f23 MA |
146 | emulate sh |
147 | NULLCMD=: | |
148 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
149 | # is contrary to our usage. Disable this feature. | |
150 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
151 | setopt NO_GLOB_SUBST | |
41f81b5c | 152 | else \$as_nop |
a24b9f23 MA |
153 | case \`(set -o) 2>/dev/null\` in #( |
154 | *posix*) : | |
155 | set -o posix ;; #( | |
156 | *) : | |
157 | ;; | |
158 | esac | |
159 | fi | |
160 | " | |
161 | as_required="as_fn_return () { (exit \$1); } | |
162 | as_fn_success () { as_fn_return 0; } | |
163 | as_fn_failure () { as_fn_return 1; } | |
164 | as_fn_ret_success () { return 0; } | |
165 | as_fn_ret_failure () { return 1; } | |
166 | ||
167 | exitcode=0 | |
168 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
169 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
170 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
171 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
41f81b5c WW |
172 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
173 | then : | |
a24b9f23 | 174 | |
41f81b5c | 175 | else \$as_nop |
a24b9f23 MA |
176 | exitcode=1; echo positional parameters were not saved. |
177 | fi | |
178 | test x\$exitcode = x0 || exit 1 | |
41f81b5c WW |
179 | blah=\$(echo \$(echo blah)) |
180 | test x\"\$blah\" = xblah || exit 1 | |
a24b9f23 MA |
181 | test -x / || exit 1" |
182 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
183 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
184 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
185 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
186 | test \$(( 1 + 1 )) = 2 || exit 1" | |
41f81b5c WW |
187 | if (eval "$as_required") 2>/dev/null |
188 | then : | |
a24b9f23 | 189 | as_have_required=yes |
41f81b5c | 190 | else $as_nop |
a24b9f23 MA |
191 | as_have_required=no |
192 | fi | |
41f81b5c WW |
193 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
194 | then : | |
a24b9f23 | 195 | |
41f81b5c | 196 | else $as_nop |
a24b9f23 MA |
197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
198 | as_found=false | |
199 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
2d5fba9b | 200 | do |
a24b9f23 | 201 | IFS=$as_save_IFS |
41f81b5c WW |
202 | case $as_dir in #((( |
203 | '') as_dir=./ ;; | |
204 | */) ;; | |
205 | *) as_dir=$as_dir/ ;; | |
206 | esac | |
a24b9f23 MA |
207 | as_found=: |
208 | case $as_dir in #( | |
209 | /*) | |
210 | for as_base in sh bash ksh sh5; do | |
211 | # Try only shells that exist, to save several forks. | |
41f81b5c | 212 | as_shell=$as_dir$as_base |
a24b9f23 | 213 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
41f81b5c WW |
214 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
215 | then : | |
a24b9f23 | 216 | CONFIG_SHELL=$as_shell as_have_required=yes |
41f81b5c WW |
217 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
218 | then : | |
a24b9f23 MA |
219 | break 2 |
220 | fi | |
221 | fi | |
222 | done;; | |
223 | esac | |
224 | as_found=false | |
225 | done | |
a24b9f23 | 226 | IFS=$as_save_IFS |
41f81b5c WW |
227 | if $as_found |
228 | then : | |
229 | ||
230 | else $as_nop | |
231 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
233 | then : | |
234 | CONFIG_SHELL=$SHELL as_have_required=yes | |
235 | fi | |
236 | fi | |
a24b9f23 MA |
237 | |
238 | ||
41f81b5c WW |
239 | if test "x$CONFIG_SHELL" != x |
240 | then : | |
a24b9f23 MA |
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'. | |
41f81b5c | 258 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
a24b9f23 MA |
259 | exit 255 |
260 | fi | |
261 | ||
41f81b5c WW |
262 | if test x$as_have_required = xno |
263 | then : | |
264 | printf "%s\n" "$0: This script requires a shell more modern than all" | |
265 | printf "%s\n" "$0: the shells that I found on your system." | |
266 | if test ${ZSH_VERSION+y} ; then | |
267 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
268 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." | |
2d5fba9b | 269 | else |
41f81b5c | 270 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and dhcp-users@isc.org |
a24b9f23 MA |
271 | $0: about your system, including any error possibly output |
272 | $0: before this message. Then install a modern shell, or | |
273 | $0: manually run the script under such a shell if you do | |
274 | $0: have one." | |
4a70cb10 | 275 | fi |
a24b9f23 MA |
276 | exit 1 |
277 | fi | |
278 | fi | |
279 | fi | |
280 | SHELL=${CONFIG_SHELL-/bin/sh} | |
281 | export SHELL | |
282 | # Unset more variables known to interfere with behavior of common tools. | |
283 | CLICOLOR_FORCE= GREP_OPTIONS= | |
284 | unset CLICOLOR_FORCE GREP_OPTIONS | |
285 | ||
286 | ## --------------------- ## | |
287 | ## M4sh Shell Functions. ## | |
288 | ## --------------------- ## | |
289 | # as_fn_unset VAR | |
290 | # --------------- | |
291 | # Portably unset VAR. | |
292 | as_fn_unset () | |
293 | { | |
294 | { eval $1=; unset $1;} | |
295 | } | |
296 | as_unset=as_fn_unset | |
297 | ||
41f81b5c | 298 | |
a24b9f23 MA |
299 | # as_fn_set_status STATUS |
300 | # ----------------------- | |
301 | # Set $? to STATUS, without forking. | |
302 | as_fn_set_status () | |
303 | { | |
304 | return $1 | |
305 | } # as_fn_set_status | |
306 | ||
307 | # as_fn_exit STATUS | |
308 | # ----------------- | |
309 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
310 | as_fn_exit () | |
311 | { | |
312 | set +e | |
313 | as_fn_set_status $1 | |
314 | exit $1 | |
315 | } # as_fn_exit | |
41f81b5c WW |
316 | # as_fn_nop |
317 | # --------- | |
318 | # Do nothing but, unlike ":", preserve the value of $?. | |
319 | as_fn_nop () | |
320 | { | |
321 | return $? | |
322 | } | |
323 | as_nop=as_fn_nop | |
a24b9f23 MA |
324 | |
325 | # as_fn_mkdir_p | |
326 | # ------------- | |
327 | # Create "$as_dir" as a directory, including parents if necessary. | |
328 | as_fn_mkdir_p () | |
329 | { | |
330 | ||
331 | case $as_dir in #( | |
332 | -*) as_dir=./$as_dir;; | |
333 | esac | |
334 | test -d "$as_dir" || eval $as_mkdir_p || { | |
335 | as_dirs= | |
336 | while :; do | |
337 | case $as_dir in #( | |
41f81b5c | 338 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
a24b9f23 MA |
339 | *) as_qdir=$as_dir;; |
340 | esac | |
341 | as_dirs="'$as_qdir' $as_dirs" | |
342 | as_dir=`$as_dirname -- "$as_dir" || | |
343 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
344 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
345 | X"$as_dir" : 'X\(//\)$' \| \ | |
346 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
41f81b5c | 347 | printf "%s\n" X"$as_dir" | |
a24b9f23 MA |
348 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
349 | s//\1/ | |
350 | q | |
351 | } | |
352 | /^X\(\/\/\)[^/].*/{ | |
353 | s//\1/ | |
354 | q | |
355 | } | |
356 | /^X\(\/\/\)$/{ | |
357 | s//\1/ | |
358 | q | |
359 | } | |
360 | /^X\(\/\).*/{ | |
361 | s//\1/ | |
362 | q | |
363 | } | |
364 | s/.*/./; q'` | |
365 | test -d "$as_dir" && break | |
366 | done | |
367 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
368 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
369 | ||
370 | ||
371 | } # as_fn_mkdir_p | |
372 | ||
373 | # as_fn_executable_p FILE | |
374 | # ----------------------- | |
375 | # Test if FILE is an executable regular file. | |
376 | as_fn_executable_p () | |
377 | { | |
378 | test -f "$1" && test -x "$1" | |
379 | } # as_fn_executable_p | |
380 | # as_fn_append VAR VALUE | |
381 | # ---------------------- | |
382 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
383 | # advantage of any shell optimizations that allow amortized linear growth over | |
384 | # repeated appends, instead of the typical quadratic growth present in naive | |
385 | # implementations. | |
41f81b5c WW |
386 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
387 | then : | |
a24b9f23 MA |
388 | eval 'as_fn_append () |
389 | { | |
390 | eval $1+=\$2 | |
391 | }' | |
41f81b5c | 392 | else $as_nop |
a24b9f23 MA |
393 | as_fn_append () |
394 | { | |
395 | eval $1=\$$1\$2 | |
396 | } | |
397 | fi # as_fn_append | |
398 | ||
399 | # as_fn_arith ARG... | |
400 | # ------------------ | |
401 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
402 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
403 | # must be portable across $(()) and expr. | |
41f81b5c WW |
404 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
405 | then : | |
a24b9f23 MA |
406 | eval 'as_fn_arith () |
407 | { | |
408 | as_val=$(( $* )) | |
409 | }' | |
41f81b5c | 410 | else $as_nop |
a24b9f23 MA |
411 | as_fn_arith () |
412 | { | |
413 | as_val=`expr "$@" || test $? -eq 1` | |
414 | } | |
415 | fi # as_fn_arith | |
416 | ||
41f81b5c WW |
417 | # as_fn_nop |
418 | # --------- | |
419 | # Do nothing but, unlike ":", preserve the value of $?. | |
420 | as_fn_nop () | |
421 | { | |
422 | return $? | |
423 | } | |
424 | as_nop=as_fn_nop | |
a24b9f23 MA |
425 | |
426 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
427 | # ---------------------------------------- | |
428 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
429 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
430 | # script with STATUS, using 1 if that was 0. | |
431 | as_fn_error () | |
432 | { | |
433 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
434 | if test "$4"; then | |
435 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
41f81b5c | 436 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
a24b9f23 | 437 | fi |
41f81b5c | 438 | printf "%s\n" "$as_me: error: $2" >&2 |
a24b9f23 MA |
439 | as_fn_exit $as_status |
440 | } # as_fn_error | |
fe5b0fdd | 441 | |
4d24561a JR |
442 | if expr a : '\(a\)' >/dev/null 2>&1 && |
443 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fe5b0fdd DH |
444 | as_expr=expr |
445 | else | |
446 | as_expr=false | |
447 | fi | |
448 | ||
4d24561a | 449 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fe5b0fdd DH |
450 | as_basename=basename |
451 | else | |
452 | as_basename=false | |
453 | fi | |
454 | ||
a24b9f23 MA |
455 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
456 | as_dirname=dirname | |
457 | else | |
458 | as_dirname=false | |
459 | fi | |
fe5b0fdd | 460 | |
4d24561a | 461 | as_me=`$as_basename -- "$0" || |
fe5b0fdd DH |
462 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
463 | X"$0" : 'X\(//\)$' \| \ | |
4d24561a | 464 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
41f81b5c | 465 | printf "%s\n" X/"$0" | |
4d24561a JR |
466 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
467 | s//\1/ | |
468 | q | |
469 | } | |
470 | /^X\/\(\/\/\)$/{ | |
471 | s//\1/ | |
472 | q | |
473 | } | |
474 | /^X\/\(\/\).*/{ | |
475 | s//\1/ | |
476 | q | |
477 | } | |
478 | s/.*/./; q'` | |
7f45c65c | 479 | |
a24b9f23 MA |
480 | # Avoid depending upon Character Ranges. |
481 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
482 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
483 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
484 | as_cr_digits='0123456789' | |
485 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7f45c65c | 486 | |
ded99fc7 | 487 | |
a24b9f23 MA |
488 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
489 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
490 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
491 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
492 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
493 | sed -n ' | |
494 | p | |
495 | /[$]LINENO/= | |
496 | ' <$as_myself | | |
497 | sed ' | |
498 | s/[$]LINENO.*/&-/ | |
499 | t lineno | |
500 | b | |
501 | :lineno | |
502 | N | |
503 | :loop | |
504 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
505 | t loop | |
506 | s/-\n.*// | |
507 | ' >$as_me.lineno && | |
508 | chmod +x "$as_me.lineno" || | |
41f81b5c | 509 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
ded99fc7 | 510 | |
a24b9f23 MA |
511 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
512 | # already done that, so ensure we don't try to do so again and fall | |
513 | # in an infinite loop. This has already happened in practice. | |
514 | _as_can_reexec=no; export _as_can_reexec | |
515 | # Don't try to exec as it changes $[0], causing all sort of problems | |
516 | # (the dirname of $[0] is not the place where we might find the | |
517 | # original and so on. Autoconf is especially sensitive to this). | |
518 | . "./$as_me.lineno" | |
519 | # Exit status is that of the last command. | |
520 | exit | |
4d24561a | 521 | } |
ded99fc7 | 522 | |
41f81b5c WW |
523 | |
524 | # Determine whether it's possible to make 'echo' print without a newline. | |
525 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
526 | # for compatibility with existing Makefiles. | |
a24b9f23 MA |
527 | ECHO_C= ECHO_N= ECHO_T= |
528 | case `echo -n x` in #((((( | |
529 | -n*) | |
530 | case `echo 'xy\c'` in | |
531 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
532 | xy) ECHO_C='\c';; | |
533 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
534 | ECHO_T=' ';; | |
535 | esac;; | |
536 | *) | |
537 | ECHO_N='-n';; | |
538 | esac | |
529be52a | 539 | |
41f81b5c WW |
540 | # For backward compatibility with old third-party macros, we provide |
541 | # the shell variables $as_echo and $as_echo_n. New code should use | |
542 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
543 | as_echo='printf %s\n' | |
544 | as_echo_n='printf %s' | |
545 | ||
546 | ||
a24b9f23 MA |
547 | rm -f conf$$ conf$$.exe conf$$.file |
548 | if test -d conf$$.dir; then | |
549 | rm -f conf$$.dir/conf$$.file | |
4a70cb10 | 550 | else |
a24b9f23 MA |
551 | rm -f conf$$.dir |
552 | mkdir conf$$.dir 2>/dev/null | |
553 | fi | |
554 | if (echo >conf$$.file) 2>/dev/null; then | |
555 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
556 | as_ln_s='ln -s' | |
557 | # ... but there are two gotchas: | |
558 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
559 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
560 | # In both cases, we have to default to `cp -pR'. | |
561 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
562 | as_ln_s='cp -pR' | |
563 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
564 | as_ln_s=ln | |
565 | else | |
566 | as_ln_s='cp -pR' | |
567 | fi | |
4d24561a | 568 | else |
a24b9f23 | 569 | as_ln_s='cp -pR' |
4d24561a | 570 | fi |
a24b9f23 MA |
571 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
572 | rmdir conf$$.dir 2>/dev/null | |
4d24561a | 573 | |
a24b9f23 MA |
574 | if mkdir -p . 2>/dev/null; then |
575 | as_mkdir_p='mkdir -p "$as_dir"' | |
529be52a | 576 | else |
a24b9f23 MA |
577 | test -d ./-p && rmdir ./-p |
578 | as_mkdir_p=false | |
529be52a | 579 | fi |
4d24561a | 580 | |
a24b9f23 MA |
581 | as_test_x='test -x' |
582 | as_executable_p=as_fn_executable_p | |
fe5b0fdd | 583 | |
a24b9f23 MA |
584 | # Sed expression to map a string onto a valid CPP name. |
585 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
529be52a | 586 | |
a24b9f23 MA |
587 | # Sed expression to map a string onto a valid variable name. |
588 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
529be52a | 589 | |
529be52a | 590 | |
a24b9f23 MA |
591 | test -n "$DJDIR" || exec 7<&0 </dev/null |
592 | exec 6>&1 | |
529be52a | 593 | |
a24b9f23 MA |
594 | # Name of the host. |
595 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
596 | # so uname gets run too. | |
597 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
529be52a SR |
598 | |
599 | # | |
600 | # Initializations. | |
601 | # | |
602 | ac_default_prefix=/usr/local | |
603 | ac_clean_files= | |
604 | ac_config_libobj_dir=. | |
605 | LIBOBJS= | |
606 | cross_compiling=no | |
607 | subdirs= | |
608 | MFLAGS= | |
609 | MAKEFLAGS= | |
529be52a SR |
610 | |
611 | # Identity of this package. | |
612 | PACKAGE_NAME='DHCP' | |
fe5b0fdd | 613 | PACKAGE_TARNAME='dhcp' |
41f81b5c WW |
614 | PACKAGE_VERSION='4.4.3-P1' |
615 | PACKAGE_STRING='DHCP 4.4.3-P1' | |
fe5b0fdd | 616 | PACKAGE_BUGREPORT='dhcp-users@isc.org' |
a24b9f23 | 617 | PACKAGE_URL='' |
fe5b0fdd DH |
618 | |
619 | # Factoring default headers for most tests. | |
620 | ac_includes_default="\ | |
41f81b5c WW |
621 | #include <stddef.h> |
622 | #ifdef HAVE_STDIO_H | |
623 | # include <stdio.h> | |
fe5b0fdd | 624 | #endif |
41f81b5c | 625 | #ifdef HAVE_STDLIB_H |
fe5b0fdd | 626 | # include <stdlib.h> |
fe5b0fdd | 627 | #endif |
4d24561a | 628 | #ifdef HAVE_STRING_H |
fe5b0fdd DH |
629 | # include <string.h> |
630 | #endif | |
4d24561a | 631 | #ifdef HAVE_INTTYPES_H |
fe5b0fdd | 632 | # include <inttypes.h> |
fe5b0fdd | 633 | #endif |
4d24561a JR |
634 | #ifdef HAVE_STDINT_H |
635 | # include <stdint.h> | |
636 | #endif | |
41f81b5c WW |
637 | #ifdef HAVE_STRINGS_H |
638 | # include <strings.h> | |
639 | #endif | |
640 | #ifdef HAVE_SYS_TYPES_H | |
641 | # include <sys/types.h> | |
642 | #endif | |
643 | #ifdef HAVE_SYS_STAT_H | |
644 | # include <sys/stat.h> | |
645 | #endif | |
4d24561a | 646 | #ifdef HAVE_UNISTD_H |
fe5b0fdd DH |
647 | # include <unistd.h> |
648 | #endif" | |
649 | ||
41f81b5c | 650 | ac_header_c_list= |
a24b9f23 MA |
651 | ac_subst_vars='am__EXEEXT_FALSE |
652 | am__EXEEXT_TRUE | |
653 | LTLIBOBJS | |
529be52a | 654 | LIBOBJS |
a24b9f23 | 655 | LDAP_CFLAGS |
743d6937 | 656 | LDAP_LIBS |
f9741514 FD |
657 | INSTALL_BIND_FALSE |
658 | INSTALL_BIND_TRUE | |
bf6f8fce FD |
659 | Q |
660 | DISTCHECK_LIBTOOL_CONFIGURE_FLAG | |
13e5cc6c FD |
661 | BINDLT |
662 | A | |
d113bc2c | 663 | DHLIBS |
68315782 FD |
664 | HAVE_BINDDIR_FALSE |
665 | HAVE_BINDDIR_TRUE | |
666 | DISTCHECK_LIBBIND_CONFIGURE_FLAG | |
e94e7f23 FD |
667 | BINDLIBISCDIR |
668 | BINDLIBISCCFGDIR | |
669 | BINDLIBDNSDIR | |
670 | BINDLIBIRSDIR | |
5a428b2e | 671 | BINDSRCDIR |
0fb9c8a1 | 672 | BINDDIR |
e94e7f23 | 673 | BINDSUBDIR |
c87db1b1 | 674 | BINDIOMUX |
a24b9f23 | 675 | ac_prefix_program |
f2d20b9e | 676 | DISTCHECK_ATF_CONFIGURE_FLAG |
a24b9f23 MA |
677 | HAVE_ATF_FALSE |
678 | HAVE_ATF_TRUE | |
6b87c7f2 | 679 | UNITTESTS |
9a111ee8 | 680 | ATF_BIN |
a24b9f23 MA |
681 | ATF_LDFLAGS |
682 | ATF_CFLAGS | |
4adcee93 | 683 | pkgcfg_found |
bfbe0fd6 TM |
684 | BIND_ATF_FALSE |
685 | BIND_ATF_TRUE | |
a24b9f23 | 686 | byte_order |
e619bd67 | 687 | AR |
a24b9f23 | 688 | RANLIB |
6913a589 | 689 | BINDCONFIG |
a24b9f23 MA |
690 | am__fastdepCC_FALSE |
691 | am__fastdepCC_TRUE | |
692 | CCDEPMODE | |
693 | am__nodep | |
694 | AMDEPBACKSLASH | |
695 | AMDEP_FALSE | |
696 | AMDEP_TRUE | |
a24b9f23 MA |
697 | am__include |
698 | DEPDIR | |
699 | OBJEXT | |
700 | EXEEXT | |
701 | ac_ct_CC | |
702 | CPPFLAGS | |
703 | LDFLAGS | |
704 | CFLAGS | |
705 | CC | |
706 | host_os | |
707 | host_vendor | |
708 | host_cpu | |
709 | host | |
710 | build_os | |
711 | build_vendor | |
712 | build_cpu | |
713 | build | |
714 | MAINT | |
715 | MAINTAINER_MODE_FALSE | |
716 | MAINTAINER_MODE_TRUE | |
69e9da00 TM |
717 | AM_BACKSLASH |
718 | AM_DEFAULT_VERBOSITY | |
719 | AM_DEFAULT_V | |
720 | AM_V | |
f4622ec1 WW |
721 | CSCOPE |
722 | ETAGS | |
723 | CTAGS | |
a24b9f23 MA |
724 | am__untar |
725 | am__tar | |
726 | AMTAR | |
727 | am__leading_dot | |
728 | SET_MAKE | |
729 | AWK | |
730 | mkdir_p | |
731 | MKDIR_P | |
732 | INSTALL_STRIP_PROGRAM | |
733 | STRIP | |
734 | install_sh | |
735 | MAKEINFO | |
736 | AUTOHEADER | |
737 | AUTOMAKE | |
738 | AUTOCONF | |
739 | ACLOCAL | |
740 | VERSION | |
741 | PACKAGE | |
742 | CYGPATH_W | |
743 | am__isrc | |
744 | INSTALL_DATA | |
745 | INSTALL_SCRIPT | |
746 | INSTALL_PROGRAM | |
747 | target_alias | |
748 | host_alias | |
749 | build_alias | |
750 | LIBS | |
751 | ECHO_T | |
752 | ECHO_N | |
753 | ECHO_C | |
754 | DEFS | |
755 | mandir | |
756 | localedir | |
757 | libdir | |
758 | psdir | |
759 | pdfdir | |
760 | dvidir | |
761 | htmldir | |
762 | infodir | |
763 | docdir | |
764 | oldincludedir | |
765 | includedir | |
c9aec7ef | 766 | runstatedir |
a24b9f23 MA |
767 | localstatedir |
768 | sharedstatedir | |
769 | sysconfdir | |
770 | datadir | |
771 | datarootdir | |
772 | libexecdir | |
773 | sbindir | |
774 | bindir | |
775 | program_transform_name | |
776 | prefix | |
777 | exec_prefix | |
778 | PACKAGE_URL | |
779 | PACKAGE_BUGREPORT | |
780 | PACKAGE_STRING | |
781 | PACKAGE_VERSION | |
782 | PACKAGE_TARNAME | |
783 | PACKAGE_NAME | |
784 | PATH_SEPARATOR | |
0cd94b5e TM |
785 | SHELL |
786 | am__quote' | |
a24b9f23 MA |
787 | ac_subst_files='' |
788 | ac_user_opts=' | |
789 | enable_option_checking | |
69e9da00 | 790 | enable_silent_rules |
a24b9f23 MA |
791 | enable_maintainer_mode |
792 | enable_dependency_tracking | |
793 | enable_debug | |
794 | enable_failover | |
795 | enable_execute | |
796 | enable_tracing | |
797 | enable_delayed_ack | |
798 | enable_dhcpv6 | |
785c1a51 | 799 | enable_dhcpv4o6 |
563f0b8a | 800 | enable_relay_port |
a24b9f23 MA |
801 | enable_paranoia |
802 | enable_early_chroot | |
803 | enable_ipv4_pktinfo | |
804 | enable_use_sockets | |
00e9af8e | 805 | enable_log_pid |
3933e2aa | 806 | enable_binary_leases |
a24b9f23 | 807 | with_atf |
c8f0b32a | 808 | with_srv_conf_file |
a24b9f23 MA |
809 | with_srv_lease_file |
810 | with_srv6_lease_file | |
811 | with_cli_lease_file | |
812 | with_cli6_lease_file | |
813 | with_srv_pid_file | |
814 | with_srv6_pid_file | |
815 | with_cli_pid_file | |
816 | with_cli6_pid_file | |
817 | with_relay_pid_file | |
818 | with_relay6_pid_file | |
a6ed1aa8 | 819 | with_randomdev |
c87db1b1 FD |
820 | enable_kqueue |
821 | enable_epoll | |
822 | enable_devpoll | |
823 | with_bind_extra_config | |
a24b9f23 | 824 | with_libbind |
13e5cc6c | 825 | enable_libtool |
f9741514 | 826 | enable_bind_install |
a24b9f23 MA |
827 | with_ldap |
828 | with_ldapcrypto | |
743d6937 TM |
829 | with_ldap_gssapi |
830 | with_ldapcasa | |
a24b9f23 MA |
831 | ' |
832 | ac_precious_vars='build_alias | |
833 | host_alias | |
834 | target_alias | |
835 | CC | |
836 | CFLAGS | |
837 | LDFLAGS | |
838 | LIBS | |
41f81b5c | 839 | CPPFLAGS' |
a24b9f23 MA |
840 | |
841 | ||
842 | # Initialize some variables set by options. | |
843 | ac_init_help= | |
844 | ac_init_version=false | |
845 | ac_unrecognized_opts= | |
846 | ac_unrecognized_sep= | |
847 | # The variables have the same names as the options, with | |
848 | # dashes changed to underlines. | |
849 | cache_file=/dev/null | |
850 | exec_prefix=NONE | |
851 | no_create= | |
852 | no_recursion= | |
853 | prefix=NONE | |
854 | program_prefix=NONE | |
855 | program_suffix=NONE | |
856 | program_transform_name=s,x,x, | |
857 | silent= | |
fe5b0fdd DH |
858 | site= |
859 | srcdir= | |
860 | verbose= | |
861 | x_includes=NONE | |
862 | x_libraries=NONE | |
863 | ||
864 | # Installation directory options. | |
865 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
866 | # and all the variables that are supposed to be based on exec_prefix | |
867 | # by default will actually change. | |
868 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
4d24561a | 869 | # (The list follows the same order as the GNU Coding Standards.) |
fe5b0fdd DH |
870 | bindir='${exec_prefix}/bin' |
871 | sbindir='${exec_prefix}/sbin' | |
872 | libexecdir='${exec_prefix}/libexec' | |
4d24561a JR |
873 | datarootdir='${prefix}/share' |
874 | datadir='${datarootdir}' | |
fe5b0fdd DH |
875 | sysconfdir='${prefix}/etc' |
876 | sharedstatedir='${prefix}/com' | |
877 | localstatedir='${prefix}/var' | |
c9aec7ef | 878 | runstatedir='${localstatedir}/run' |
fe5b0fdd DH |
879 | includedir='${prefix}/include' |
880 | oldincludedir='/usr/include' | |
4d24561a JR |
881 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
882 | infodir='${datarootdir}/info' | |
883 | htmldir='${docdir}' | |
884 | dvidir='${docdir}' | |
885 | pdfdir='${docdir}' | |
886 | psdir='${docdir}' | |
887 | libdir='${exec_prefix}/lib' | |
888 | localedir='${datarootdir}/locale' | |
889 | mandir='${datarootdir}/man' | |
fe5b0fdd DH |
890 | |
891 | ac_prev= | |
4d24561a | 892 | ac_dashdash= |
fe5b0fdd DH |
893 | for ac_option |
894 | do | |
895 | # If the previous option needs an argument, assign it. | |
896 | if test -n "$ac_prev"; then | |
4d24561a | 897 | eval $ac_prev=\$ac_option |
fe5b0fdd DH |
898 | ac_prev= |
899 | continue | |
900 | fi | |
901 | ||
4d24561a | 902 | case $ac_option in |
a24b9f23 MA |
903 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
904 | *=) ac_optarg= ;; | |
905 | *) ac_optarg=yes ;; | |
4d24561a | 906 | esac |
fe5b0fdd | 907 | |
4d24561a JR |
908 | case $ac_dashdash$ac_option in |
909 | --) | |
910 | ac_dashdash=yes ;; | |
fe5b0fdd DH |
911 | |
912 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
913 | ac_prev=bindir ;; | |
914 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
915 | bindir=$ac_optarg ;; | |
916 | ||
917 | -build | --build | --buil | --bui | --bu) | |
918 | ac_prev=build_alias ;; | |
919 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
920 | build_alias=$ac_optarg ;; | |
921 | ||
922 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
923 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
924 | ac_prev=cache_file ;; | |
925 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
926 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
927 | cache_file=$ac_optarg ;; | |
928 | ||
929 | --config-cache | -C) | |
930 | cache_file=config.cache ;; | |
931 | ||
4d24561a | 932 | -datadir | --datadir | --datadi | --datad) |
fe5b0fdd | 933 | ac_prev=datadir ;; |
4d24561a | 934 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
fe5b0fdd DH |
935 | datadir=$ac_optarg ;; |
936 | ||
4d24561a JR |
937 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
938 | | --dataroo | --dataro | --datar) | |
939 | ac_prev=datarootdir ;; | |
940 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
941 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
942 | datarootdir=$ac_optarg ;; | |
943 | ||
fe5b0fdd | 944 | -disable-* | --disable-*) |
a24b9f23 | 945 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
fe5b0fdd | 946 | # Reject names that are not valid shell variable names. |
a24b9f23 | 947 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
41f81b5c | 948 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
a24b9f23 | 949 | ac_useropt_orig=$ac_useropt |
41f81b5c | 950 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
a24b9f23 MA |
951 | case $ac_user_opts in |
952 | *" | |
953 | "enable_$ac_useropt" | |
954 | "*) ;; | |
955 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
956 | ac_unrecognized_sep=', ';; | |
957 | esac | |
958 | eval enable_$ac_useropt=no ;; | |
4d24561a JR |
959 | |
960 | -docdir | --docdir | --docdi | --doc | --do) | |
961 | ac_prev=docdir ;; | |
962 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
963 | docdir=$ac_optarg ;; | |
964 | ||
965 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
966 | ac_prev=dvidir ;; | |
967 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
968 | dvidir=$ac_optarg ;; | |
fe5b0fdd DH |
969 | |
970 | -enable-* | --enable-*) | |
a24b9f23 | 971 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
fe5b0fdd | 972 | # Reject names that are not valid shell variable names. |
a24b9f23 | 973 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
41f81b5c | 974 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
a24b9f23 | 975 | ac_useropt_orig=$ac_useropt |
41f81b5c | 976 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
a24b9f23 MA |
977 | case $ac_user_opts in |
978 | *" | |
979 | "enable_$ac_useropt" | |
980 | "*) ;; | |
981 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
982 | ac_unrecognized_sep=', ';; | |
983 | esac | |
984 | eval enable_$ac_useropt=\$ac_optarg ;; | |
fe5b0fdd DH |
985 | |
986 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
987 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
988 | | --exec | --exe | --ex) | |
989 | ac_prev=exec_prefix ;; | |
990 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
991 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
992 | | --exec=* | --exe=* | --ex=*) | |
993 | exec_prefix=$ac_optarg ;; | |
994 | ||
995 | -gas | --gas | --ga | --g) | |
996 | # Obsolete; use --with-gas. | |
997 | with_gas=yes ;; | |
998 | ||
999 | -help | --help | --hel | --he | -h) | |
1000 | ac_init_help=long ;; | |
1001 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1002 | ac_init_help=recursive ;; | |
1003 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1004 | ac_init_help=short ;; | |
1005 | ||
1006 | -host | --host | --hos | --ho) | |
1007 | ac_prev=host_alias ;; | |
1008 | -host=* | --host=* | --hos=* | --ho=*) | |
1009 | host_alias=$ac_optarg ;; | |
1010 | ||
4d24561a JR |
1011 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1012 | ac_prev=htmldir ;; | |
1013 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1014 | | --ht=*) | |
1015 | htmldir=$ac_optarg ;; | |
1016 | ||
fe5b0fdd DH |
1017 | -includedir | --includedir | --includedi | --included | --include \ |
1018 | | --includ | --inclu | --incl | --inc) | |
1019 | ac_prev=includedir ;; | |
1020 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1021 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1022 | includedir=$ac_optarg ;; | |
1023 | ||
1024 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1025 | ac_prev=infodir ;; | |
1026 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1027 | infodir=$ac_optarg ;; | |
1028 | ||
1029 | -libdir | --libdir | --libdi | --libd) | |
1030 | ac_prev=libdir ;; | |
1031 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1032 | libdir=$ac_optarg ;; | |
1033 | ||
1034 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1035 | | --libexe | --libex | --libe) | |
1036 | ac_prev=libexecdir ;; | |
1037 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1038 | | --libexe=* | --libex=* | --libe=*) | |
1039 | libexecdir=$ac_optarg ;; | |
1040 | ||
4d24561a JR |
1041 | -localedir | --localedir | --localedi | --localed | --locale) |
1042 | ac_prev=localedir ;; | |
1043 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1044 | localedir=$ac_optarg ;; | |
1045 | ||
fe5b0fdd | 1046 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
4d24561a | 1047 | | --localstate | --localstat | --localsta | --localst | --locals) |
fe5b0fdd DH |
1048 | ac_prev=localstatedir ;; |
1049 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
4d24561a | 1050 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
fe5b0fdd DH |
1051 | localstatedir=$ac_optarg ;; |
1052 | ||
1053 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1054 | ac_prev=mandir ;; | |
1055 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1056 | mandir=$ac_optarg ;; | |
1057 | ||
1058 | -nfp | --nfp | --nf) | |
1059 | # Obsolete; use --without-fp. | |
1060 | with_fp=no ;; | |
1061 | ||
1062 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1063 | | --no-cr | --no-c | -n) | |
1064 | no_create=yes ;; | |
1065 | ||
1066 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1067 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1068 | no_recursion=yes ;; | |
1069 | ||
1070 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1071 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1072 | | --oldin | --oldi | --old | --ol | --o) | |
1073 | ac_prev=oldincludedir ;; | |
1074 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1075 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1076 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1077 | oldincludedir=$ac_optarg ;; | |
1078 | ||
1079 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1080 | ac_prev=prefix ;; | |
1081 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1082 | prefix=$ac_optarg ;; | |
1083 | ||
1084 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1085 | | --program-pre | --program-pr | --program-p) | |
1086 | ac_prev=program_prefix ;; | |
1087 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1088 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1089 | program_prefix=$ac_optarg ;; | |
1090 | ||
1091 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1092 | | --program-suf | --program-su | --program-s) | |
1093 | ac_prev=program_suffix ;; | |
1094 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1095 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1096 | program_suffix=$ac_optarg ;; | |
1097 | ||
1098 | -program-transform-name | --program-transform-name \ | |
1099 | | --program-transform-nam | --program-transform-na \ | |
1100 | | --program-transform-n | --program-transform- \ | |
1101 | | --program-transform | --program-transfor \ | |
1102 | | --program-transfo | --program-transf \ | |
1103 | | --program-trans | --program-tran \ | |
1104 | | --progr-tra | --program-tr | --program-t) | |
1105 | ac_prev=program_transform_name ;; | |
1106 | -program-transform-name=* | --program-transform-name=* \ | |
1107 | | --program-transform-nam=* | --program-transform-na=* \ | |
1108 | | --program-transform-n=* | --program-transform-=* \ | |
1109 | | --program-transform=* | --program-transfor=* \ | |
1110 | | --program-transfo=* | --program-transf=* \ | |
1111 | | --program-trans=* | --program-tran=* \ | |
1112 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1113 | program_transform_name=$ac_optarg ;; | |
1114 | ||
4d24561a JR |
1115 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1116 | ac_prev=pdfdir ;; | |
1117 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1118 | pdfdir=$ac_optarg ;; | |
1119 | ||
1120 | -psdir | --psdir | --psdi | --psd | --ps) | |
1121 | ac_prev=psdir ;; | |
1122 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1123 | psdir=$ac_optarg ;; | |
1124 | ||
fe5b0fdd DH |
1125 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1126 | | -silent | --silent | --silen | --sile | --sil) | |
1127 | silent=yes ;; | |
1128 | ||
c9aec7ef TM |
1129 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1130 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1131 | | --run | --ru | --r) | |
1132 | ac_prev=runstatedir ;; | |
1133 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1134 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1135 | | --run=* | --ru=* | --r=*) | |
1136 | runstatedir=$ac_optarg ;; | |
1137 | ||
fe5b0fdd DH |
1138 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1139 | ac_prev=sbindir ;; | |
1140 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1141 | | --sbi=* | --sb=*) | |
1142 | sbindir=$ac_optarg ;; | |
1143 | ||
1144 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1145 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1146 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1147 | | --sha | --sh) | |
1148 | ac_prev=sharedstatedir ;; | |
1149 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1150 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1151 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1152 | | --sha=* | --sh=*) | |
1153 | sharedstatedir=$ac_optarg ;; | |
1154 | ||
1155 | -site | --site | --sit) | |
1156 | ac_prev=site ;; | |
1157 | -site=* | --site=* | --sit=*) | |
1158 | site=$ac_optarg ;; | |
1159 | ||
1160 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1161 | ac_prev=srcdir ;; | |
1162 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1163 | srcdir=$ac_optarg ;; | |
1164 | ||
1165 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1166 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1167 | ac_prev=sysconfdir ;; | |
1168 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1169 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1170 | sysconfdir=$ac_optarg ;; | |
1171 | ||
1172 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1173 | ac_prev=target_alias ;; | |
1174 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1175 | target_alias=$ac_optarg ;; | |
1176 | ||
1177 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1178 | verbose=yes ;; | |
1179 | ||
1180 | -version | --version | --versio | --versi | --vers | -V) | |
1181 | ac_init_version=: ;; | |
1182 | ||
1183 | -with-* | --with-*) | |
a24b9f23 | 1184 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
fe5b0fdd | 1185 | # Reject names that are not valid shell variable names. |
a24b9f23 | 1186 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
41f81b5c | 1187 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
a24b9f23 | 1188 | ac_useropt_orig=$ac_useropt |
41f81b5c | 1189 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
a24b9f23 MA |
1190 | case $ac_user_opts in |
1191 | *" | |
1192 | "with_$ac_useropt" | |
1193 | "*) ;; | |
1194 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1195 | ac_unrecognized_sep=', ';; | |
1196 | esac | |
1197 | eval with_$ac_useropt=\$ac_optarg ;; | |
fe5b0fdd DH |
1198 | |
1199 | -without-* | --without-*) | |
a24b9f23 | 1200 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
fe5b0fdd | 1201 | # Reject names that are not valid shell variable names. |
a24b9f23 | 1202 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
41f81b5c | 1203 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
a24b9f23 | 1204 | ac_useropt_orig=$ac_useropt |
41f81b5c | 1205 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
a24b9f23 MA |
1206 | case $ac_user_opts in |
1207 | *" | |
1208 | "with_$ac_useropt" | |
1209 | "*) ;; | |
1210 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1211 | ac_unrecognized_sep=', ';; | |
1212 | esac | |
1213 | eval with_$ac_useropt=no ;; | |
fe5b0fdd DH |
1214 | |
1215 | --x) | |
1216 | # Obsolete; use --with-x. | |
1217 | with_x=yes ;; | |
1218 | ||
1219 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1220 | | --x-incl | --x-inc | --x-in | --x-i) | |
1221 | ac_prev=x_includes ;; | |
1222 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1223 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1224 | x_includes=$ac_optarg ;; | |
1225 | ||
1226 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1227 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1228 | ac_prev=x_libraries ;; | |
1229 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1230 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1231 | x_libraries=$ac_optarg ;; | |
1232 | ||
a24b9f23 MA |
1233 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1234 | Try \`$0 --help' for more information" | |
fe5b0fdd DH |
1235 | ;; |
1236 | ||
1237 | *=*) | |
1238 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1239 | # Reject names that are not valid shell variable names. | |
a24b9f23 MA |
1240 | case $ac_envvar in #( |
1241 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1242 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1243 | esac | |
4d24561a | 1244 | eval $ac_envvar=\$ac_optarg |
fe5b0fdd DH |
1245 | export $ac_envvar ;; |
1246 | ||
1247 | *) | |
1248 | # FIXME: should be removed in autoconf 3.0. | |
41f81b5c | 1249 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
fe5b0fdd | 1250 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
41f81b5c | 1251 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
a24b9f23 | 1252 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
fe5b0fdd DH |
1253 | ;; |
1254 | ||
1255 | esac | |
1256 | done | |
1257 | ||
1258 | if test -n "$ac_prev"; then | |
1259 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
a24b9f23 | 1260 | as_fn_error $? "missing argument to $ac_option" |
fe5b0fdd DH |
1261 | fi |
1262 | ||
a24b9f23 MA |
1263 | if test -n "$ac_unrecognized_opts"; then |
1264 | case $enable_option_checking in | |
1265 | no) ;; | |
1266 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
41f81b5c | 1267 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
a24b9f23 MA |
1268 | esac |
1269 | fi | |
1270 | ||
1271 | # Check all directory arguments for consistency. | |
4d24561a JR |
1272 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1273 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1274 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
c9aec7ef | 1275 | libdir localedir mandir runstatedir |
7d714d6b | 1276 | do |
4d24561a | 1277 | eval ac_val=\$$ac_var |
a24b9f23 MA |
1278 | # Remove trailing slashes. |
1279 | case $ac_val in | |
1280 | */ ) | |
1281 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1282 | eval $ac_var=\$ac_val;; | |
1283 | esac | |
1284 | # Be sure to have absolute directory names. | |
7d714d6b | 1285 | case $ac_val in |
4d24561a JR |
1286 | [\\/$]* | ?:[\\/]* ) continue;; |
1287 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
fe5b0fdd | 1288 | esac |
a24b9f23 | 1289 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
fe5b0fdd DH |
1290 | done |
1291 | ||
1292 | # There might be people who depend on the old broken behavior: `$host' | |
1293 | # used to hold the argument of --host etc. | |
1294 | # FIXME: To remove some day. | |
1295 | build=$build_alias | |
1296 | host=$host_alias | |
1297 | target=$target_alias | |
1298 | ||
1299 | # FIXME: To remove some day. | |
1300 | if test "x$host_alias" != x; then | |
1301 | if test "x$build_alias" = x; then | |
1302 | cross_compiling=maybe | |
fe5b0fdd DH |
1303 | elif test "x$build_alias" != "x$host_alias"; then |
1304 | cross_compiling=yes | |
1305 | fi | |
1306 | fi | |
1307 | ||
1308 | ac_tool_prefix= | |
1309 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1310 | ||
1311 | test "$silent" = yes && exec 6>/dev/null | |
1312 | ||
1313 | ||
4d24561a JR |
1314 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1315 | ac_ls_di=`ls -di .` && | |
1316 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
a24b9f23 | 1317 | as_fn_error $? "working directory cannot be determined" |
4d24561a | 1318 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
a24b9f23 | 1319 | as_fn_error $? "pwd does not report name of working directory" |
4d24561a JR |
1320 | |
1321 | ||
fe5b0fdd DH |
1322 | # Find the source files, if location was not specified. |
1323 | if test -z "$srcdir"; then | |
1324 | ac_srcdir_defaulted=yes | |
4d24561a | 1325 | # Try the directory containing this script, then the parent directory. |
a24b9f23 MA |
1326 | ac_confdir=`$as_dirname -- "$as_myself" || |
1327 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1328 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1329 | X"$as_myself" : 'X\(//\)$' \| \ | |
1330 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
41f81b5c | 1331 | printf "%s\n" X"$as_myself" | |
4d24561a JR |
1332 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | /^X\(\/\/\)[^/].*/{ | |
1337 | s//\1/ | |
1338 | q | |
1339 | } | |
1340 | /^X\(\/\/\)$/{ | |
1341 | s//\1/ | |
1342 | q | |
1343 | } | |
1344 | /^X\(\/\).*/{ | |
1345 | s//\1/ | |
1346 | q | |
1347 | } | |
1348 | s/.*/./; q'` | |
fe5b0fdd | 1349 | srcdir=$ac_confdir |
4d24561a | 1350 | if test ! -r "$srcdir/$ac_unique_file"; then |
fe5b0fdd DH |
1351 | srcdir=.. |
1352 | fi | |
1353 | else | |
1354 | ac_srcdir_defaulted=no | |
1355 | fi | |
4d24561a JR |
1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
1357 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
a24b9f23 | 1358 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
8d7ba39e | 1359 | fi |
4d24561a JR |
1360 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1361 | ac_abs_confdir=`( | |
a24b9f23 | 1362 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
4d24561a JR |
1363 | pwd)` |
1364 | # When building in place, set srcdir=. | |
1365 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1366 | srcdir=. | |
1367 | fi | |
1368 | # Remove unnecessary trailing slashes from srcdir. | |
1369 | # Double slashes in file names in object file debugging info | |
1370 | # mess up M-x gdb in Emacs. | |
1371 | case $srcdir in | |
1372 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1373 | esac | |
1374 | for ac_var in $ac_precious_vars; do | |
1375 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1376 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1377 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1378 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1379 | done | |
fe5b0fdd DH |
1380 | |
1381 | # | |
1382 | # Report the --help message. | |
1383 | # | |
1384 | if test "$ac_init_help" = "long"; then | |
1385 | # Omit some internal or obsolete options to make the list less imposing. | |
1386 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1387 | cat <<_ACEOF | |
41f81b5c | 1388 | \`configure' configures DHCP 4.4.3-P1 to adapt to many kinds of systems. |
fe5b0fdd DH |
1389 | |
1390 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1391 | ||
1392 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1393 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1394 | ||
1395 | Defaults for the options are specified in brackets. | |
1396 | ||
1397 | Configuration: | |
1398 | -h, --help display this help and exit | |
1399 | --help=short display options specific to this package | |
1400 | --help=recursive display the short help of all the included packages | |
1401 | -V, --version display version information and exit | |
a24b9f23 | 1402 | -q, --quiet, --silent do not print \`checking ...' messages |
fe5b0fdd DH |
1403 | --cache-file=FILE cache test results in FILE [disabled] |
1404 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1405 | -n, --no-create do not create output files | |
1406 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1407 | ||
1408 | Installation directories: | |
1409 | --prefix=PREFIX install architecture-independent files in PREFIX | |
a24b9f23 | 1410 | [$ac_default_prefix] |
fe5b0fdd | 1411 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
a24b9f23 | 1412 | [PREFIX] |
fe5b0fdd DH |
1413 | |
1414 | By default, \`make install' will install all the files in | |
1415 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1416 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1417 | for instance \`--prefix=\$HOME'. | |
1418 | ||
1419 | For better control, use the options below. | |
1420 | ||
1421 | Fine tuning of the installation directories: | |
a24b9f23 MA |
1422 | --bindir=DIR user executables [EPREFIX/bin] |
1423 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1424 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1425 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1426 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1427 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
c9aec7ef | 1428 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
a24b9f23 MA |
1429 | --libdir=DIR object code libraries [EPREFIX/lib] |
1430 | --includedir=DIR C header files [PREFIX/include] | |
1431 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1432 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1433 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1434 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1435 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1436 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1437 | --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp] | |
1438 | --htmldir=DIR html documentation [DOCDIR] | |
1439 | --dvidir=DIR dvi documentation [DOCDIR] | |
1440 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1441 | --psdir=DIR ps documentation [DOCDIR] | |
fe5b0fdd DH |
1442 | _ACEOF |
1443 | ||
1444 | cat <<\_ACEOF | |
1445 | ||
1446 | Program names: | |
1447 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1448 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1449 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
a24b9f23 MA |
1450 | |
1451 | System types: | |
1452 | --build=BUILD configure for building on BUILD [guessed] | |
1453 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
fe5b0fdd DH |
1454 | _ACEOF |
1455 | fi | |
1456 | ||
1457 | if test -n "$ac_init_help"; then | |
1458 | case $ac_init_help in | |
41f81b5c | 1459 | short | recursive ) echo "Configuration of DHCP 4.4.3-P1:";; |
fe5b0fdd DH |
1460 | esac |
1461 | cat <<\_ACEOF | |
1462 | ||
1463 | Optional Features: | |
a24b9f23 | 1464 | --disable-option-checking ignore unrecognized --enable/--with options |
fe5b0fdd DH |
1465 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1466 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
69e9da00 TM |
1467 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1468 | --disable-silent-rules verbose build output (undo: "make V=0") | |
a24b9f23 MA |
1469 | --enable-maintainer-mode |
1470 | enable make rules and dependencies not useful (and | |
1471 | sometimes confusing) to the casual installer | |
1472 | --enable-dependency-tracking | |
1473 | do not reject slow dependency extractors | |
1474 | --disable-dependency-tracking | |
1475 | speeds up one-time build | |
0552f26e DH |
1476 | --enable-debug create a debug-only version of the software (default |
1477 | is no). | |
1478 | --enable-failover enable support for failover (default is yes) | |
1479 | --enable-execute enable support for execute() in config (default is | |
1480 | yes) | |
1481 | --enable-tracing enable support for server activity tracing (default | |
1482 | is yes) | |
4406f9b0 | 1483 | --enable-delayed-ack queues multiple DHCPACK replies (default is yes) |
cadea5ff | 1484 | --enable-dhcpv6 enable support for DHCPv6 (default is yes) |
785c1a51 FD |
1485 | --enable-dhcpv4o6 enable support for DHCPv4-over-DHCPv6 (default is |
1486 | no) | |
563f0b8a | 1487 | --enable-relay-port enable support for relay port (default is no) |
3004d0a3 | 1488 | --enable-paranoia enable support for chroot/setuid (default is no) |
26ef247f | 1489 | --enable-early-chroot enable chrooting prior to configuration (default is |
3004d0a3 | 1490 | no) |
f8cc78ba SR |
1491 | --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets (default is |
1492 | no) | |
1493 | --enable-use-sockets use the standard BSD socket API (default is no) | |
00e9af8e | 1494 | --enable-log-pid Include PIDs in syslog messages (default is no). |
3933e2aa SR |
1495 | --enable-binary-leases enable support for binary insertion of leases |
1496 | (default is no) | |
c87db1b1 FD |
1497 | --enable-kqueue use BSD kqueue (default is no) |
1498 | --enable-epoll use Linux epoll (default is no) | |
1499 | --enable-devpoll use /dev/poll (default is no) | |
13e5cc6c | 1500 | --enable-libtool use GNU libtool for dynamic shared libraries |
6d91a86b | 1501 | (default is no). |
f9741514 | 1502 | --enable-bind-install install bind includes and libraries (default is no). |
fe5b0fdd DH |
1503 | |
1504 | Optional Packages: | |
1505 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1506 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
4adcee93 | 1507 | --with-atf=PATH specify location where atf was installed |
c8f0b32a MS |
1508 | --with-srv-conf-file=PATH |
1509 | Default file containing dhcpd configuration (default | |
1510 | is typically /etc/dhcpd.conf) | |
fe5b0fdd DH |
1511 | --with-srv-lease-file=PATH |
1512 | File for dhcpd leases (default is | |
1513 | LOCALSTATEDIR/db/dhcpd.leases) | |
8dea7ba7 FD |
1514 | --with-srv6-lease-file=PATH |
1515 | File for dhcpd6 leases (default is | |
1516 | LOCALSTATEDIR/db/dhcpd6.leases) | |
fe5b0fdd DH |
1517 | --with-cli-lease-file=PATH |
1518 | File for dhclient leases (default is | |
1519 | LOCALSTATEDIR/db/dhclient.leases) | |
8dea7ba7 FD |
1520 | --with-cli6-lease-file=PATH |
1521 | File for dhclient6 leases (default is | |
1522 | LOCALSTATEDIR/db/dhclient6.leases) | |
fe5b0fdd DH |
1523 | --with-srv-pid-file=PATH |
1524 | File for dhcpd process information (default is | |
1525 | LOCALSTATEDIR/run/dhcpd.pid) | |
8dea7ba7 FD |
1526 | --with-srv6-pid-file=PATH |
1527 | File for dhcpd6 process information (default is | |
1528 | LOCALSTATEDIR/run/dhcpd6.pid) | |
fe5b0fdd DH |
1529 | --with-cli-pid-file=PATH |
1530 | File for dhclient process information (default is | |
1531 | LOCALSTATEDIR/run/dhclient.pid) | |
8dea7ba7 FD |
1532 | --with-cli6-pid-file=PATH |
1533 | File for dhclient6 process information (default is | |
1534 | LOCALSTATEDIR/run/dhclient6.pid) | |
fe5b0fdd DH |
1535 | --with-relay-pid-file=PATH |
1536 | File for dhcrelay process information (default is | |
1537 | LOCALSTATEDIR/run/dhcrelay.pid) | |
5ce8d6e7 SR |
1538 | --with-relay6-pid-file=PATH |
1539 | File for dhcrelay6 process information (default is | |
1540 | LOCALSTATEDIR/run/dhcrelay6.pid) | |
a6ed1aa8 | 1541 | --with-randomdev=PATH Path for random device (default is /dev/random) |
c87db1b1 FD |
1542 | --with-bind-extra-config |
1543 | configure bind librairies with some extra options | |
1544 | (default is none) | |
1545 | --with-libbind=PATH bind includes and libraries are in PATH | |
2d5fba9b DH |
1546 | --with-ldap enable OpenLDAP support in dhcpd (default is no) |
1547 | --with-ldapcrypto enable OpenLDAP crypto support in dhcpd (default is | |
1548 | no) | |
743d6937 TM |
1549 | --with-ldap-gssapi enable krb5/gssapi authentication for OpenLDAP in |
1550 | dhcpd (default is no) | |
1551 | --with-ldapcasa enable LDAP CASA auth support in dhcpd (default is | |
1552 | no) | |
fe5b0fdd DH |
1553 | |
1554 | Some influential environment variables: | |
1555 | CC C compiler command | |
1556 | CFLAGS C compiler flags | |
1557 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1558 | nonstandard directory <lib dir> | |
4d24561a | 1559 | LIBS libraries to pass to the linker, e.g. -l<library> |
a24b9f23 | 1560 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
4d24561a | 1561 | you have headers in a nonstandard directory <include dir> |
fe5b0fdd DH |
1562 | |
1563 | Use these variables to override the choices made by `configure' or to help | |
1564 | it to find libraries and programs with nonstandard names/locations. | |
1565 | ||
1566 | Report bugs to <dhcp-users@isc.org>. | |
1567 | _ACEOF | |
4d24561a | 1568 | ac_status=$? |
fe5b0fdd DH |
1569 | fi |
1570 | ||
1571 | if test "$ac_init_help" = "recursive"; then | |
1572 | # If there are subdirs, report their specific --help. | |
1573 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
a24b9f23 MA |
1574 | test -d "$ac_dir" || |
1575 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1576 | continue | |
fe5b0fdd DH |
1577 | ac_builddir=. |
1578 | ||
4d24561a JR |
1579 | case "$ac_dir" in |
1580 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1581 | *) | |
41f81b5c | 1582 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
4d24561a | 1583 | # A ".." for each directory in $ac_dir_suffix. |
41f81b5c | 1584 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
4d24561a JR |
1585 | case $ac_top_builddir_sub in |
1586 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1587 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1588 | esac ;; | |
1589 | esac | |
1590 | ac_abs_top_builddir=$ac_pwd | |
1591 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1592 | # for backward compatibility: | |
1593 | ac_top_builddir=$ac_top_build_prefix | |
fe5b0fdd DH |
1594 | |
1595 | case $srcdir in | |
4d24561a | 1596 | .) # We are building in place. |
fe5b0fdd | 1597 | ac_srcdir=. |
4d24561a JR |
1598 | ac_top_srcdir=$ac_top_builddir_sub |
1599 | ac_abs_top_srcdir=$ac_pwd ;; | |
1600 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fe5b0fdd | 1601 | ac_srcdir=$srcdir$ac_dir_suffix; |
4d24561a JR |
1602 | ac_top_srcdir=$srcdir |
1603 | ac_abs_top_srcdir=$srcdir ;; | |
1604 | *) # Relative name. | |
1605 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1606 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1607 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
7d714d6b | 1608 | esac |
4d24561a JR |
1609 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1610 | ||
1611 | cd "$ac_dir" || { ac_status=$?; continue; } | |
41f81b5c WW |
1612 | # Check for configure.gnu first; this name is used for a wrapper for |
1613 | # Metaconfig's "Configure" on case-insensitive file systems. | |
4d24561a JR |
1614 | if test -f "$ac_srcdir/configure.gnu"; then |
1615 | echo && | |
1616 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1617 | elif test -f "$ac_srcdir/configure"; then | |
1618 | echo && | |
1619 | $SHELL "$ac_srcdir/configure" --help=recursive | |
fe5b0fdd | 1620 | else |
41f81b5c | 1621 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
4d24561a JR |
1622 | fi || ac_status=$? |
1623 | cd "$ac_pwd" || { ac_status=$?; break; } | |
fe5b0fdd DH |
1624 | done |
1625 | fi | |
1626 | ||
4d24561a | 1627 | test -n "$ac_init_help" && exit $ac_status |
fe5b0fdd DH |
1628 | if $ac_init_version; then |
1629 | cat <<\_ACEOF | |
41f81b5c WW |
1630 | DHCP configure 4.4.3-P1 |
1631 | generated by GNU Autoconf 2.71 | |
fe5b0fdd | 1632 | |
41f81b5c | 1633 | Copyright (C) 2021 Free Software Foundation, Inc. |
fe5b0fdd DH |
1634 | This configure script is free software; the Free Software Foundation |
1635 | gives unlimited permission to copy, distribute and modify it. | |
1636 | _ACEOF | |
4d24561a | 1637 | exit |
fe5b0fdd | 1638 | fi |
fe5b0fdd | 1639 | |
a24b9f23 MA |
1640 | ## ------------------------ ## |
1641 | ## Autoconf initialization. ## | |
1642 | ## ------------------------ ## | |
4a70cb10 | 1643 | |
a24b9f23 MA |
1644 | # ac_fn_c_try_compile LINENO |
1645 | # -------------------------- | |
1646 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1647 | ac_fn_c_try_compile () | |
1648 | { | |
1649 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
41f81b5c | 1650 | rm -f conftest.$ac_objext conftest.beam |
a24b9f23 MA |
1651 | if { { ac_try="$ac_compile" |
1652 | case "(($ac_try" in | |
1653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1654 | *) ac_try_echo=$ac_try;; | |
1655 | esac | |
1656 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
41f81b5c | 1657 | printf "%s\n" "$ac_try_echo"; } >&5 |
a24b9f23 MA |
1658 | (eval "$ac_compile") 2>conftest.err |
1659 | ac_status=$? | |
1660 | if test -s conftest.err; then | |
1661 | grep -v '^ *+' conftest.err >conftest.er1 | |
1662 | cat conftest.er1 >&5 | |
1663 | mv -f conftest.er1 conftest.err | |
1664 | fi | |
41f81b5c | 1665 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
a24b9f23 MA |
1666 | test $ac_status = 0; } && { |
1667 | test -z "$ac_c_werror_flag" || | |
1668 | test ! -s conftest.err | |
41f81b5c WW |
1669 | } && test -s conftest.$ac_objext |
1670 | then : | |
a24b9f23 | 1671 | ac_retval=0 |
41f81b5c WW |
1672 | else $as_nop |
1673 | printf "%s\n" "$as_me: failed program was:" >&5 | |
a24b9f23 | 1674 | sed 's/^/| /' conftest.$ac_ext >&5 |
4a70cb10 | 1675 | |
a24b9f23 MA |
1676 | ac_retval=1 |
1677 | fi | |
1678 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1679 | as_fn_set_status $ac_retval | |
1680 | ||
1681 | } # ac_fn_c_try_compile | |
1682 | ||
41f81b5c | 1683 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
a24b9f23 | 1684 | # ------------------------------------------------------- |
41f81b5c WW |
1685 | # Tests whether HEADER exists and can be compiled using the include files in |
1686 | # INCLUDES, setting the cache variable VAR accordingly. | |
1687 | ac_fn_c_check_header_compile () | |
a24b9f23 MA |
1688 | { |
1689 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
41f81b5c WW |
1690 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1691 | printf %s "checking for $2... " >&6; } | |
1692 | if eval test \${$3+y} | |
1693 | then : | |
1694 | printf %s "(cached) " >&6 | |
1695 | else $as_nop | |
1696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a24b9f23 MA |
1697 | /* end confdefs.h. */ |
1698 | $4 | |
1699 | #include <$2> | |
1700 | _ACEOF | |
41f81b5c WW |
1701 | if ac_fn_c_try_compile "$LINENO" |
1702 | then : | |
1703 | eval "$3=yes" | |
1704 | else $as_nop | |
1705 | eval "$3=no" | |
a24b9f23 | 1706 | fi |
41f81b5c | 1707 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 MA |
1708 | fi |
1709 | eval ac_res=\$$3 | |
41f81b5c WW |
1710 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1711 | printf "%s\n" "$ac_res" >&6; } | |
a24b9f23 | 1712 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
fe5b0fdd | 1713 | |
41f81b5c | 1714 | } # ac_fn_c_check_header_compile |
fe5b0fdd | 1715 | |
a24b9f23 MA |
1716 | # ac_fn_c_try_run LINENO |
1717 | # ---------------------- | |
41f81b5c WW |
1718 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
1719 | # executables *can* be run. | |
a24b9f23 MA |
1720 | ac_fn_c_try_run () |
1721 | { | |
1722 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1723 | if { { ac_try="$ac_link" | |
1724 | case "(($ac_try" in | |
1725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1726 | *) ac_try_echo=$ac_try;; | |
1727 | esac | |
1728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
41f81b5c | 1729 | printf "%s\n" "$ac_try_echo"; } >&5 |
a24b9f23 MA |
1730 | (eval "$ac_link") 2>&5 |
1731 | ac_status=$? | |
41f81b5c | 1732 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
a24b9f23 MA |
1733 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1734 | { { case "(($ac_try" in | |
1735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1736 | *) ac_try_echo=$ac_try;; | |
1737 | esac | |
1738 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
41f81b5c | 1739 | printf "%s\n" "$ac_try_echo"; } >&5 |
a24b9f23 MA |
1740 | (eval "$ac_try") 2>&5 |
1741 | ac_status=$? | |
41f81b5c WW |
1742 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1743 | test $ac_status = 0; }; } | |
1744 | then : | |
a24b9f23 | 1745 | ac_retval=0 |
41f81b5c WW |
1746 | else $as_nop |
1747 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 | |
1748 | printf "%s\n" "$as_me: failed program was:" >&5 | |
a24b9f23 | 1749 | sed 's/^/| /' conftest.$ac_ext >&5 |
fe5b0fdd | 1750 | |
a24b9f23 MA |
1751 | ac_retval=$ac_status |
1752 | fi | |
1753 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1754 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1755 | as_fn_set_status $ac_retval | |
fe5b0fdd | 1756 | |
a24b9f23 | 1757 | } # ac_fn_c_try_run |
fe5b0fdd | 1758 | |
a24b9f23 MA |
1759 | # ac_fn_c_find_intX_t LINENO BITS VAR |
1760 | # ----------------------------------- | |
1761 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
1762 | # accordingly. | |
1763 | ac_fn_c_find_intX_t () | |
1764 | { | |
1765 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
41f81b5c WW |
1766 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
1767 | printf %s "checking for int$2_t... " >&6; } | |
1768 | if eval test \${$3+y} | |
1769 | then : | |
1770 | printf %s "(cached) " >&6 | |
1771 | else $as_nop | |
a24b9f23 MA |
1772 | eval "$3=no" |
1773 | # Order is important - never check a type that is potentially smaller | |
1774 | # than half of the expected target width. | |
1775 | for ac_type in int$2_t 'int' 'long int' \ | |
1776 | 'long long int' 'short int' 'signed char'; do | |
1777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1778 | /* end confdefs.h. */ | |
1779 | $ac_includes_default | |
1780 | enum { N = $2 / 2 - 1 }; | |
1781 | int | |
41f81b5c | 1782 | main (void) |
a24b9f23 MA |
1783 | { |
1784 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | |
1785 | test_array [0] = 0; | |
1786 | return test_array [0]; | |
fe5b0fdd | 1787 | |
a24b9f23 MA |
1788 | ; |
1789 | return 0; | |
1790 | } | |
4a70cb10 | 1791 | _ACEOF |
41f81b5c WW |
1792 | if ac_fn_c_try_compile "$LINENO" |
1793 | then : | |
a24b9f23 MA |
1794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1795 | /* end confdefs.h. */ | |
1796 | $ac_includes_default | |
1797 | enum { N = $2 / 2 - 1 }; | |
1798 | int | |
41f81b5c | 1799 | main (void) |
a24b9f23 MA |
1800 | { |
1801 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
1802 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
1803 | test_array [0] = 0; | |
1804 | return test_array [0]; | |
fe5b0fdd | 1805 | |
a24b9f23 MA |
1806 | ; |
1807 | return 0; | |
1808 | } | |
529be52a | 1809 | _ACEOF |
41f81b5c WW |
1810 | if ac_fn_c_try_compile "$LINENO" |
1811 | then : | |
fe5b0fdd | 1812 | |
41f81b5c | 1813 | else $as_nop |
a24b9f23 MA |
1814 | case $ac_type in #( |
1815 | int$2_t) : | |
1816 | eval "$3=yes" ;; #( | |
1817 | *) : | |
1818 | eval "$3=\$ac_type" ;; | |
1819 | esac | |
1820 | fi | |
41f81b5c | 1821 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 | 1822 | fi |
41f81b5c WW |
1823 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1824 | if eval test \"x\$"$3"\" = x"no" | |
1825 | then : | |
fe5b0fdd | 1826 | |
41f81b5c | 1827 | else $as_nop |
a24b9f23 MA |
1828 | break |
1829 | fi | |
1830 | done | |
1831 | fi | |
1832 | eval ac_res=\$$3 | |
41f81b5c WW |
1833 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1834 | printf "%s\n" "$ac_res" >&6; } | |
a24b9f23 | 1835 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
fe5b0fdd | 1836 | |
a24b9f23 | 1837 | } # ac_fn_c_find_intX_t |
fe5b0fdd | 1838 | |
a24b9f23 MA |
1839 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1840 | # ------------------------------------------- | |
1841 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1842 | # variable VAR accordingly. | |
1843 | ac_fn_c_check_type () | |
1844 | { | |
1845 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
41f81b5c WW |
1846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1847 | printf %s "checking for $2... " >&6; } | |
1848 | if eval test \${$3+y} | |
1849 | then : | |
1850 | printf %s "(cached) " >&6 | |
1851 | else $as_nop | |
a24b9f23 MA |
1852 | eval "$3=no" |
1853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1854 | /* end confdefs.h. */ | |
1855 | $4 | |
1856 | int | |
41f81b5c | 1857 | main (void) |
a24b9f23 MA |
1858 | { |
1859 | if (sizeof ($2)) | |
1860 | return 0; | |
1861 | ; | |
1862 | return 0; | |
1863 | } | |
4a70cb10 | 1864 | _ACEOF |
41f81b5c WW |
1865 | if ac_fn_c_try_compile "$LINENO" |
1866 | then : | |
a24b9f23 MA |
1867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1868 | /* end confdefs.h. */ | |
1869 | $4 | |
1870 | int | |
41f81b5c | 1871 | main (void) |
a24b9f23 MA |
1872 | { |
1873 | if (sizeof (($2))) | |
1874 | return 0; | |
1875 | ; | |
1876 | return 0; | |
1877 | } | |
4a70cb10 | 1878 | _ACEOF |
41f81b5c WW |
1879 | if ac_fn_c_try_compile "$LINENO" |
1880 | then : | |
529be52a | 1881 | |
41f81b5c | 1882 | else $as_nop |
a24b9f23 | 1883 | eval "$3=yes" |
4a70cb10 | 1884 | fi |
41f81b5c | 1885 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4a70cb10 | 1886 | fi |
41f81b5c | 1887 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4a70cb10 | 1888 | fi |
a24b9f23 | 1889 | eval ac_res=\$$3 |
41f81b5c WW |
1890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1891 | printf "%s\n" "$ac_res" >&6; } | |
a24b9f23 | 1892 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
fe5b0fdd | 1893 | |
a24b9f23 | 1894 | } # ac_fn_c_check_type |
fe5b0fdd | 1895 | |
a24b9f23 MA |
1896 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
1897 | # ------------------------------------ | |
1898 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
1899 | # accordingly. | |
1900 | ac_fn_c_find_uintX_t () | |
1901 | { | |
1902 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
41f81b5c WW |
1903 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
1904 | printf %s "checking for uint$2_t... " >&6; } | |
1905 | if eval test \${$3+y} | |
1906 | then : | |
1907 | printf %s "(cached) " >&6 | |
1908 | else $as_nop | |
a24b9f23 MA |
1909 | eval "$3=no" |
1910 | # Order is important - never check a type that is potentially smaller | |
1911 | # than half of the expected target width. | |
1912 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
1913 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
1914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1915 | /* end confdefs.h. */ | |
1916 | $ac_includes_default | |
1917 | int | |
41f81b5c | 1918 | main (void) |
a24b9f23 MA |
1919 | { |
1920 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | |
1921 | test_array [0] = 0; | |
1922 | return test_array [0]; | |
fe5b0fdd | 1923 | |
a24b9f23 MA |
1924 | ; |
1925 | return 0; | |
1926 | } | |
1927 | _ACEOF | |
41f81b5c WW |
1928 | if ac_fn_c_try_compile "$LINENO" |
1929 | then : | |
a24b9f23 MA |
1930 | case $ac_type in #( |
1931 | uint$2_t) : | |
1932 | eval "$3=yes" ;; #( | |
1933 | *) : | |
1934 | eval "$3=\$ac_type" ;; | |
1935 | esac | |
1936 | fi | |
41f81b5c WW |
1937 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1938 | if eval test \"x\$"$3"\" = x"no" | |
1939 | then : | |
fe5b0fdd | 1940 | |
41f81b5c | 1941 | else $as_nop |
a24b9f23 MA |
1942 | break |
1943 | fi | |
1944 | done | |
1945 | fi | |
1946 | eval ac_res=\$$3 | |
41f81b5c WW |
1947 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1948 | printf "%s\n" "$ac_res" >&6; } | |
a24b9f23 | 1949 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
fe5b0fdd | 1950 | |
a24b9f23 | 1951 | } # ac_fn_c_find_uintX_t |
fe5b0fdd | 1952 | |
a24b9f23 MA |
1953 | # ac_fn_c_try_link LINENO |
1954 | # ----------------------- | |
1955 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1956 | ac_fn_c_try_link () | |
1957 | { | |
1958 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
41f81b5c | 1959 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
a24b9f23 MA |
1960 | if { { ac_try="$ac_link" |
1961 | case "(($ac_try" in | |
1962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1963 | *) ac_try_echo=$ac_try;; | |
1964 | esac | |
1965 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
41f81b5c | 1966 | printf "%s\n" "$ac_try_echo"; } >&5 |
a24b9f23 MA |
1967 | (eval "$ac_link") 2>conftest.err |
1968 | ac_status=$? | |
1969 | if test -s conftest.err; then | |
1970 | grep -v '^ *+' conftest.err >conftest.er1 | |
1971 | cat conftest.er1 >&5 | |
1972 | mv -f conftest.er1 conftest.err | |
1973 | fi | |
41f81b5c | 1974 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
a24b9f23 MA |
1975 | test $ac_status = 0; } && { |
1976 | test -z "$ac_c_werror_flag" || | |
1977 | test ! -s conftest.err | |
1978 | } && test -s conftest$ac_exeext && { | |
1979 | test "$cross_compiling" = yes || | |
1980 | test -x conftest$ac_exeext | |
41f81b5c WW |
1981 | } |
1982 | then : | |
a24b9f23 | 1983 | ac_retval=0 |
41f81b5c WW |
1984 | else $as_nop |
1985 | printf "%s\n" "$as_me: failed program was:" >&5 | |
a24b9f23 | 1986 | sed 's/^/| /' conftest.$ac_ext >&5 |
fe5b0fdd | 1987 | |
a24b9f23 MA |
1988 | ac_retval=1 |
1989 | fi | |
1990 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1991 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1992 | # interfere with the next link command; also delete a directory that is | |
1993 | # left behind by Apple's compiler. We do this before executing the actions. | |
1994 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1995 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1996 | as_fn_set_status $ac_retval | |
fe5b0fdd | 1997 | |
a24b9f23 | 1998 | } # ac_fn_c_try_link |
fe5b0fdd | 1999 | |
dc9d7b08 MA |
2000 | # ac_fn_c_check_func LINENO FUNC VAR |
2001 | # ---------------------------------- | |
2002 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2003 | ac_fn_c_check_func () | |
2004 | { | |
2005 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
41f81b5c WW |
2006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2007 | printf %s "checking for $2... " >&6; } | |
2008 | if eval test \${$3+y} | |
2009 | then : | |
2010 | printf %s "(cached) " >&6 | |
2011 | else $as_nop | |
dc9d7b08 MA |
2012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2013 | /* end confdefs.h. */ | |
2014 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2015 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2016 | #define $2 innocuous_$2 | |
2017 | ||
2018 | /* System header to define __stub macros and hopefully few prototypes, | |
41f81b5c | 2019 | which can conflict with char $2 (); below. */ |
dc9d7b08 | 2020 | |
41f81b5c | 2021 | #include <limits.h> |
dc9d7b08 MA |
2022 | #undef $2 |
2023 | ||
2024 | /* Override any GCC internal prototype to avoid an error. | |
2025 | Use char because int might match the return type of a GCC | |
2026 | builtin and then its argument prototype would still apply. */ | |
2027 | #ifdef __cplusplus | |
2028 | extern "C" | |
2029 | #endif | |
2030 | char $2 (); | |
2031 | /* The GNU C library defines this for functions which it implements | |
2032 | to always fail with ENOSYS. Some functions are actually named | |
2033 | something starting with __ and the normal name is an alias. */ | |
2034 | #if defined __stub_$2 || defined __stub___$2 | |
2035 | choke me | |
2036 | #endif | |
2037 | ||
2038 | int | |
41f81b5c | 2039 | main (void) |
dc9d7b08 MA |
2040 | { |
2041 | return $2 (); | |
2042 | ; | |
2043 | return 0; | |
2044 | } | |
2045 | _ACEOF | |
41f81b5c WW |
2046 | if ac_fn_c_try_link "$LINENO" |
2047 | then : | |
dc9d7b08 | 2048 | eval "$3=yes" |
41f81b5c | 2049 | else $as_nop |
dc9d7b08 MA |
2050 | eval "$3=no" |
2051 | fi | |
41f81b5c | 2052 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
dc9d7b08 MA |
2053 | conftest$ac_exeext conftest.$ac_ext |
2054 | fi | |
2055 | eval ac_res=\$$3 | |
41f81b5c WW |
2056 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2057 | printf "%s\n" "$ac_res" >&6; } | |
dc9d7b08 MA |
2058 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2059 | ||
2060 | } # ac_fn_c_check_func | |
2061 | ||
a24b9f23 MA |
2062 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2063 | # ---------------------------------------------------- | |
2064 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2065 | # INCLUDES, setting cache variable VAR accordingly. | |
2066 | ac_fn_c_check_member () | |
2067 | { | |
2068 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
41f81b5c WW |
2069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
2070 | printf %s "checking for $2.$3... " >&6; } | |
2071 | if eval test \${$4+y} | |
2072 | then : | |
2073 | printf %s "(cached) " >&6 | |
2074 | else $as_nop | |
a24b9f23 MA |
2075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2076 | /* end confdefs.h. */ | |
2077 | $5 | |
2078 | int | |
41f81b5c | 2079 | main (void) |
a24b9f23 MA |
2080 | { |
2081 | static $2 ac_aggr; | |
2082 | if (ac_aggr.$3) | |
2083 | return 0; | |
2084 | ; | |
2085 | return 0; | |
2086 | } | |
2087 | _ACEOF | |
41f81b5c WW |
2088 | if ac_fn_c_try_compile "$LINENO" |
2089 | then : | |
a24b9f23 | 2090 | eval "$4=yes" |
41f81b5c | 2091 | else $as_nop |
a24b9f23 MA |
2092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2093 | /* end confdefs.h. */ | |
2094 | $5 | |
2095 | int | |
41f81b5c | 2096 | main (void) |
a24b9f23 MA |
2097 | { |
2098 | static $2 ac_aggr; | |
2099 | if (sizeof ac_aggr.$3) | |
2100 | return 0; | |
2101 | ; | |
2102 | return 0; | |
2103 | } | |
2104 | _ACEOF | |
41f81b5c WW |
2105 | if ac_fn_c_try_compile "$LINENO" |
2106 | then : | |
a24b9f23 | 2107 | eval "$4=yes" |
41f81b5c | 2108 | else $as_nop |
a24b9f23 MA |
2109 | eval "$4=no" |
2110 | fi | |
41f81b5c | 2111 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 | 2112 | fi |
41f81b5c | 2113 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 MA |
2114 | fi |
2115 | eval ac_res=\$$4 | |
41f81b5c WW |
2116 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2117 | printf "%s\n" "$ac_res" >&6; } | |
a24b9f23 | 2118 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
fe5b0fdd | 2119 | |
a24b9f23 | 2120 | } # ac_fn_c_check_member |
fe5b0fdd | 2121 | |
a24b9f23 MA |
2122 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2123 | # -------------------------------------------- | |
2124 | # Tries to find the compile-time value of EXPR in a program that includes | |
2125 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2126 | # computed | |
2127 | ac_fn_c_compute_int () | |
2128 | { | |
2129 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2130 | if test "$cross_compiling" = yes; then | |
2131 | # Depending upon the size, compute the lo and hi bounds. | |
2132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2133 | /* end confdefs.h. */ | |
2134 | $4 | |
2135 | int | |
41f81b5c | 2136 | main (void) |
a24b9f23 MA |
2137 | { |
2138 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2139 | test_array [0] = 0; | |
2140 | return test_array [0]; | |
4d24561a | 2141 | |
a24b9f23 MA |
2142 | ; |
2143 | return 0; | |
2144 | } | |
2145 | _ACEOF | |
41f81b5c WW |
2146 | if ac_fn_c_try_compile "$LINENO" |
2147 | then : | |
a24b9f23 MA |
2148 | ac_lo=0 ac_mid=0 |
2149 | while :; do | |
2150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2151 | /* end confdefs.h. */ | |
2152 | $4 | |
2153 | int | |
41f81b5c | 2154 | main (void) |
a24b9f23 MA |
2155 | { |
2156 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2157 | test_array [0] = 0; | |
2158 | return test_array [0]; | |
fe5b0fdd | 2159 | |
a24b9f23 MA |
2160 | ; |
2161 | return 0; | |
2162 | } | |
2163 | _ACEOF | |
41f81b5c WW |
2164 | if ac_fn_c_try_compile "$LINENO" |
2165 | then : | |
a24b9f23 | 2166 | ac_hi=$ac_mid; break |
41f81b5c | 2167 | else $as_nop |
a24b9f23 MA |
2168 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2169 | if test $ac_lo -le $ac_mid; then | |
2170 | ac_lo= ac_hi= | |
2171 | break | |
2172 | fi | |
2173 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2174 | fi | |
41f81b5c | 2175 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 | 2176 | done |
41f81b5c | 2177 | else $as_nop |
a24b9f23 MA |
2178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2179 | /* end confdefs.h. */ | |
2180 | $4 | |
2181 | int | |
41f81b5c | 2182 | main (void) |
a24b9f23 MA |
2183 | { |
2184 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2185 | test_array [0] = 0; | |
2186 | return test_array [0]; | |
fe5b0fdd | 2187 | |
a24b9f23 MA |
2188 | ; |
2189 | return 0; | |
2190 | } | |
2191 | _ACEOF | |
41f81b5c WW |
2192 | if ac_fn_c_try_compile "$LINENO" |
2193 | then : | |
a24b9f23 MA |
2194 | ac_hi=-1 ac_mid=-1 |
2195 | while :; do | |
2196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2197 | /* end confdefs.h. */ | |
2198 | $4 | |
2199 | int | |
41f81b5c | 2200 | main (void) |
a24b9f23 MA |
2201 | { |
2202 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2203 | test_array [0] = 0; | |
2204 | return test_array [0]; | |
fe5b0fdd | 2205 | |
a24b9f23 MA |
2206 | ; |
2207 | return 0; | |
2208 | } | |
2209 | _ACEOF | |
41f81b5c WW |
2210 | if ac_fn_c_try_compile "$LINENO" |
2211 | then : | |
a24b9f23 | 2212 | ac_lo=$ac_mid; break |
41f81b5c | 2213 | else $as_nop |
a24b9f23 MA |
2214 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
2215 | if test $ac_mid -le $ac_hi; then | |
2216 | ac_lo= ac_hi= | |
2217 | break | |
2218 | fi | |
2219 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2220 | fi | |
41f81b5c | 2221 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 | 2222 | done |
41f81b5c | 2223 | else $as_nop |
a24b9f23 MA |
2224 | ac_lo= ac_hi= |
2225 | fi | |
41f81b5c | 2226 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 | 2227 | fi |
41f81b5c | 2228 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 MA |
2229 | # Binary search between lo and hi bounds. |
2230 | while test "x$ac_lo" != "x$ac_hi"; do | |
2231 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2233 | /* end confdefs.h. */ | |
2234 | $4 | |
2235 | int | |
41f81b5c | 2236 | main (void) |
a24b9f23 MA |
2237 | { |
2238 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2239 | test_array [0] = 0; | |
2240 | return test_array [0]; | |
fe5b0fdd | 2241 | |
a24b9f23 MA |
2242 | ; |
2243 | return 0; | |
2244 | } | |
2245 | _ACEOF | |
41f81b5c WW |
2246 | if ac_fn_c_try_compile "$LINENO" |
2247 | then : | |
a24b9f23 | 2248 | ac_hi=$ac_mid |
41f81b5c | 2249 | else $as_nop |
a24b9f23 MA |
2250 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
2251 | fi | |
41f81b5c | 2252 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 MA |
2253 | done |
2254 | case $ac_lo in #(( | |
2255 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2256 | '') ac_retval=1 ;; | |
2257 | esac | |
2258 | else | |
2259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2260 | /* end confdefs.h. */ | |
2261 | $4 | |
41f81b5c WW |
2262 | static long int longval (void) { return $2; } |
2263 | static unsigned long int ulongval (void) { return $2; } | |
a24b9f23 MA |
2264 | #include <stdio.h> |
2265 | #include <stdlib.h> | |
2266 | int | |
41f81b5c | 2267 | main (void) |
a24b9f23 | 2268 | { |
4d24561a | 2269 | |
a24b9f23 MA |
2270 | FILE *f = fopen ("conftest.val", "w"); |
2271 | if (! f) | |
2272 | return 1; | |
2273 | if (($2) < 0) | |
2274 | { | |
2275 | long int i = longval (); | |
2276 | if (i != ($2)) | |
2277 | return 1; | |
2278 | fprintf (f, "%ld", i); | |
2279 | } | |
2280 | else | |
2281 | { | |
2282 | unsigned long int i = ulongval (); | |
2283 | if (i != ($2)) | |
2284 | return 1; | |
2285 | fprintf (f, "%lu", i); | |
2286 | } | |
2287 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2288 | on some platforms. */ | |
2289 | return ferror (f) || fclose (f) != 0; | |
4d24561a | 2290 | |
a24b9f23 MA |
2291 | ; |
2292 | return 0; | |
2293 | } | |
2294 | _ACEOF | |
41f81b5c WW |
2295 | if ac_fn_c_try_run "$LINENO" |
2296 | then : | |
a24b9f23 | 2297 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
41f81b5c | 2298 | else $as_nop |
a24b9f23 MA |
2299 | ac_retval=1 |
2300 | fi | |
2301 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2302 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2303 | rm -f conftest.val | |
8d7ba39e | 2304 | |
a24b9f23 MA |
2305 | fi |
2306 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2307 | as_fn_set_status $ac_retval | |
8d7ba39e | 2308 | |
a24b9f23 | 2309 | } # ac_fn_c_compute_int |
41f81b5c WW |
2310 | ac_configure_args_raw= |
2311 | for ac_arg | |
2312 | do | |
2313 | case $ac_arg in | |
2314 | *\'*) | |
2315 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2316 | esac | |
2317 | as_fn_append ac_configure_args_raw " '$ac_arg'" | |
2318 | done | |
2319 | ||
2320 | case $ac_configure_args_raw in | |
2321 | *$as_nl*) | |
2322 | ac_safe_unquote= ;; | |
2323 | *) | |
2324 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. | |
2325 | ac_unsafe_a="$ac_unsafe_z#~" | |
2326 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" | |
2327 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; | |
2328 | esac | |
2329 | ||
a24b9f23 MA |
2330 | cat >config.log <<_ACEOF |
2331 | This file contains any messages produced by compilers while | |
2332 | running configure, to aid debugging if configure makes a mistake. | |
2d5fba9b | 2333 | |
41f81b5c WW |
2334 | It was created by DHCP $as_me 4.4.3-P1, which was |
2335 | generated by GNU Autoconf 2.71. Invocation command line was | |
6e999c3c | 2336 | |
41f81b5c | 2337 | $ $0$ac_configure_args_raw |
6e999c3c | 2338 | |
a24b9f23 MA |
2339 | _ACEOF |
2340 | exec 5>>config.log | |
2341 | { | |
2342 | cat <<_ASUNAME | |
2343 | ## --------- ## | |
2344 | ## Platform. ## | |
2345 | ## --------- ## | |
6e999c3c | 2346 | |
a24b9f23 MA |
2347 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2348 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2349 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2350 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2351 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
7f45c65c | 2352 | |
a24b9f23 MA |
2353 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2354 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
7f45c65c | 2355 | |
a24b9f23 MA |
2356 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2357 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2358 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2359 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2360 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2361 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2362 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
237bfdc9 | 2363 | |
a24b9f23 | 2364 | _ASUNAME |
4a70cb10 | 2365 | |
a24b9f23 | 2366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4a70cb10 TM |
2367 | for as_dir in $PATH |
2368 | do | |
2369 | IFS=$as_save_IFS | |
41f81b5c WW |
2370 | case $as_dir in #((( |
2371 | '') as_dir=./ ;; | |
2372 | */) ;; | |
2373 | *) as_dir=$as_dir/ ;; | |
2374 | esac | |
2375 | printf "%s\n" "PATH: $as_dir" | |
a24b9f23 | 2376 | done |
4a70cb10 | 2377 | IFS=$as_save_IFS |
ded99fc7 | 2378 | |
a24b9f23 | 2379 | } >&5 |
ded99fc7 | 2380 | |
a24b9f23 | 2381 | cat >&5 <<_ACEOF |
7d714d6b | 2382 | |
7d714d6b | 2383 | |
a24b9f23 MA |
2384 | ## ----------- ## |
2385 | ## Core tests. ## | |
2386 | ## ----------- ## | |
5ce8d6e7 | 2387 | |
a24b9f23 | 2388 | _ACEOF |
5ce8d6e7 SR |
2389 | |
2390 | ||
a24b9f23 MA |
2391 | # Keep a trace of the command line. |
2392 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2393 | # Strip out --silent because we don't want to record it for future runs. | |
2394 | # Also quote any args containing shell meta-characters. | |
2395 | # Make two passes to allow for proper duplicate-argument suppression. | |
2396 | ac_configure_args= | |
2397 | ac_configure_args0= | |
2398 | ac_configure_args1= | |
2399 | ac_must_keep_next=false | |
2400 | for ac_pass in 1 2 | |
2401 | do | |
2402 | for ac_arg | |
2403 | do | |
2404 | case $ac_arg in | |
2405 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2406 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2407 | | -silent | --silent | --silen | --sile | --sil) | |
2408 | continue ;; | |
2409 | *\'*) | |
41f81b5c | 2410 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
a24b9f23 MA |
2411 | esac |
2412 | case $ac_pass in | |
2413 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2414 | 2) | |
2415 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2416 | if test $ac_must_keep_next = true; then | |
2417 | ac_must_keep_next=false # Got value, back to normal. | |
4a70cb10 | 2418 | else |
a24b9f23 MA |
2419 | case $ac_arg in |
2420 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2421 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2422 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2423 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2424 | case "$ac_configure_args0 " in | |
2425 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2426 | esac | |
2427 | ;; | |
2428 | -* ) ac_must_keep_next=true ;; | |
2429 | esac | |
4a70cb10 | 2430 | fi |
a24b9f23 | 2431 | as_fn_append ac_configure_args " '$ac_arg'" |
4a70cb10 | 2432 | ;; |
4a70cb10 | 2433 | esac |
4a70cb10 | 2434 | done |
a24b9f23 MA |
2435 | done |
2436 | { ac_configure_args0=; unset ac_configure_args0;} | |
2437 | { ac_configure_args1=; unset ac_configure_args1;} | |
d5e0cd6f | 2438 | |
a24b9f23 MA |
2439 | # When interrupted or exit'd, cleanup temporary files, and complete |
2440 | # config.log. We remove comments because anyway the quotes in there | |
2441 | # would cause problems or look ugly. | |
2442 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2443 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2444 | trap 'exit_status=$? | |
41f81b5c WW |
2445 | # Sanitize IFS. |
2446 | IFS=" "" $as_nl" | |
a24b9f23 MA |
2447 | # Save into config.log some information that might help in debugging. |
2448 | { | |
2449 | echo | |
529be52a | 2450 | |
41f81b5c | 2451 | printf "%s\n" "## ---------------- ## |
a24b9f23 MA |
2452 | ## Cache variables. ## |
2453 | ## ---------------- ##" | |
2454 | echo | |
2455 | # The following way of writing the cache mishandles newlines in values, | |
2456 | ( | |
2457 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2458 | eval ac_val=\$$ac_var | |
2459 | case $ac_val in #( | |
2460 | *${as_nl}*) | |
2461 | case $ac_var in #( | |
41f81b5c WW |
2462 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2463 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
a24b9f23 MA |
2464 | esac |
2465 | case $ac_var in #( | |
2466 | _ | IFS | as_nl) ;; #( | |
2467 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2468 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2469 | esac ;; | |
2470 | esac | |
2471 | done | |
2472 | (set) 2>&1 | | |
2473 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2474 | *${as_nl}ac_space=\ *) | |
2475 | sed -n \ | |
2476 | "s/'\''/'\''\\\\'\'''\''/g; | |
2477 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2478 | ;; #( | |
2479 | *) | |
2480 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2481 | ;; | |
2482 | esac | | |
2483 | sort | |
2484 | ) | |
2485 | echo | |
529be52a | 2486 | |
41f81b5c | 2487 | printf "%s\n" "## ----------------- ## |
a24b9f23 MA |
2488 | ## Output variables. ## |
2489 | ## ----------------- ##" | |
2490 | echo | |
2491 | for ac_var in $ac_subst_vars | |
2492 | do | |
2493 | eval ac_val=\$$ac_var | |
2494 | case $ac_val in | |
41f81b5c | 2495 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
a24b9f23 | 2496 | esac |
41f81b5c | 2497 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
a24b9f23 MA |
2498 | done | sort |
2499 | echo | |
529be52a | 2500 | |
a24b9f23 | 2501 | if test -n "$ac_subst_files"; then |
41f81b5c | 2502 | printf "%s\n" "## ------------------- ## |
a24b9f23 MA |
2503 | ## File substitutions. ## |
2504 | ## ------------------- ##" | |
2505 | echo | |
2506 | for ac_var in $ac_subst_files | |
2507 | do | |
2508 | eval ac_val=\$$ac_var | |
2509 | case $ac_val in | |
41f81b5c | 2510 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
a24b9f23 | 2511 | esac |
41f81b5c | 2512 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
a24b9f23 MA |
2513 | done | sort |
2514 | echo | |
2515 | fi | |
529be52a | 2516 | |
a24b9f23 | 2517 | if test -s confdefs.h; then |
41f81b5c | 2518 | printf "%s\n" "## ----------- ## |
a24b9f23 MA |
2519 | ## confdefs.h. ## |
2520 | ## ----------- ##" | |
2521 | echo | |
2522 | cat confdefs.h | |
2523 | echo | |
2524 | fi | |
2525 | test "$ac_signal" != 0 && | |
41f81b5c WW |
2526 | printf "%s\n" "$as_me: caught signal $ac_signal" |
2527 | printf "%s\n" "$as_me: exit $exit_status" | |
a24b9f23 MA |
2528 | } >&5 |
2529 | rm -f core *.core core.conftest.* && | |
2530 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2531 | exit $exit_status | |
2532 | ' 0 | |
2533 | for ac_signal in 1 2 13 15; do | |
2534 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
529be52a | 2535 | done |
a24b9f23 | 2536 | ac_signal=0 |
529be52a | 2537 | |
a24b9f23 MA |
2538 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2539 | rm -f -r conftest* confdefs.h | |
529be52a | 2540 | |
41f81b5c | 2541 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
a24b9f23 MA |
2542 | |
2543 | # Predefined preprocessor variables. | |
2544 | ||
41f81b5c | 2545 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
a24b9f23 | 2546 | |
41f81b5c | 2547 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
529be52a | 2548 | |
41f81b5c | 2549 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
529be52a | 2550 | |
41f81b5c | 2551 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
529be52a | 2552 | |
41f81b5c | 2553 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
a24b9f23 | 2554 | |
41f81b5c | 2555 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
529be52a | 2556 | |
a24b9f23 MA |
2557 | |
2558 | # Let the site file select an alternate cache file if it wants to. | |
2559 | # Prefer an explicitly selected file to automatically selected ones. | |
a24b9f23 | 2560 | if test -n "$CONFIG_SITE"; then |
41f81b5c | 2561 | ac_site_files="$CONFIG_SITE" |
a24b9f23 | 2562 | elif test "x$prefix" != xNONE; then |
41f81b5c | 2563 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
a24b9f23 | 2564 | else |
41f81b5c | 2565 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
529be52a | 2566 | fi |
41f81b5c WW |
2567 | |
2568 | for ac_site_file in $ac_site_files | |
a24b9f23 | 2569 | do |
41f81b5c WW |
2570 | case $ac_site_file in #( |
2571 | */*) : | |
2572 | ;; #( | |
2573 | *) : | |
2574 | ac_site_file=./$ac_site_file ;; | |
2575 | esac | |
2576 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then | |
2577 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2578 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} | |
a24b9f23 MA |
2579 | sed 's/^/| /' "$ac_site_file" >&5 |
2580 | . "$ac_site_file" \ | |
41f81b5c WW |
2581 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2582 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
a24b9f23 MA |
2583 | as_fn_error $? "failed to load site script $ac_site_file |
2584 | See \`config.log' for more details" "$LINENO" 5; } | |
2585 | fi | |
2586 | done | |
529be52a | 2587 | |
a24b9f23 MA |
2588 | if test -r "$cache_file"; then |
2589 | # Some versions of bash will fail to source /dev/null (special files | |
2590 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2591 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
41f81b5c WW |
2592 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2593 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} | |
a24b9f23 MA |
2594 | case $cache_file in |
2595 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2596 | *) . "./$cache_file";; | |
2597 | esac | |
2598 | fi | |
2599 | else | |
41f81b5c WW |
2600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2601 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} | |
a24b9f23 MA |
2602 | >$cache_file |
2603 | fi | |
529be52a | 2604 | |
41f81b5c WW |
2605 | # Test code for whether the C compiler supports C89 (global declarations) |
2606 | ac_c_conftest_c89_globals=' | |
2607 | /* Does the compiler advertise C89 conformance? | |
2608 | Do not test the value of __STDC__, because some compilers set it to 0 | |
2609 | while being otherwise adequately conformant. */ | |
2610 | #if !defined __STDC__ | |
2611 | # error "Compiler does not advertise C89 conformance" | |
2612 | #endif | |
2613 | ||
2614 | #include <stddef.h> | |
2615 | #include <stdarg.h> | |
2616 | struct stat; | |
2617 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | |
2618 | struct buf { int x; }; | |
2619 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | |
2620 | static char *e (p, i) | |
2621 | char **p; | |
2622 | int i; | |
2623 | { | |
2624 | return p[i]; | |
2625 | } | |
2626 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2627 | { | |
2628 | char *s; | |
2629 | va_list v; | |
2630 | va_start (v,p); | |
2631 | s = g (p, va_arg (v,int)); | |
2632 | va_end (v); | |
2633 | return s; | |
2634 | } | |
2635 | ||
2636 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2637 | function prototypes and stuff, but not \xHH hex character constants. | |
2638 | These do not provoke an error unfortunately, instead are silently treated | |
2639 | as an "x". The following induces an error, until -std is added to get | |
2640 | proper ANSI mode. Curiously \x00 != x always comes out true, for an | |
2641 | array size at least. It is necessary to write \x00 == 0 to get something | |
2642 | that is true only with -std. */ | |
2643 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; | |
2644 | ||
2645 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2646 | inside strings and character constants. */ | |
2647 | #define FOO(x) '\''x'\'' | |
2648 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; | |
2649 | ||
2650 | int test (int i, double x); | |
2651 | struct s1 {int (*f) (int a);}; | |
2652 | struct s2 {int (*f) (double a);}; | |
2653 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | |
2654 | int, int);' | |
2655 | ||
2656 | # Test code for whether the C compiler supports C89 (body of main). | |
2657 | ac_c_conftest_c89_main=' | |
2658 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | |
2659 | ' | |
2660 | ||
2661 | # Test code for whether the C compiler supports C99 (global declarations) | |
2662 | ac_c_conftest_c99_globals=' | |
2663 | // Does the compiler advertise C99 conformance? | |
2664 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | |
2665 | # error "Compiler does not advertise C99 conformance" | |
2666 | #endif | |
2667 | ||
2668 | #include <stdbool.h> | |
2669 | extern int puts (const char *); | |
2670 | extern int printf (const char *, ...); | |
2671 | extern int dprintf (int, const char *, ...); | |
2672 | extern void *malloc (size_t); | |
2673 | ||
2674 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
2675 | // dprintf is used instead of fprintf to avoid needing to declare | |
2676 | // FILE and stderr. | |
2677 | #define debug(...) dprintf (2, __VA_ARGS__) | |
2678 | #define showlist(...) puts (#__VA_ARGS__) | |
2679 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
2680 | static void | |
2681 | test_varargs_macros (void) | |
2682 | { | |
2683 | int x = 1234; | |
2684 | int y = 5678; | |
2685 | debug ("Flag"); | |
2686 | debug ("X = %d\n", x); | |
2687 | showlist (The first, second, and third items.); | |
2688 | report (x>y, "x is %d but y is %d", x, y); | |
2689 | } | |
2690 | ||
2691 | // Check long long types. | |
2692 | #define BIG64 18446744073709551615ull | |
2693 | #define BIG32 4294967295ul | |
2694 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
2695 | #if !BIG_OK | |
2696 | #error "your preprocessor is broken" | |
2697 | #endif | |
2698 | #if BIG_OK | |
2699 | #else | |
2700 | #error "your preprocessor is broken" | |
2701 | #endif | |
2702 | static long long int bignum = -9223372036854775807LL; | |
2703 | static unsigned long long int ubignum = BIG64; | |
2704 | ||
2705 | struct incomplete_array | |
2706 | { | |
2707 | int datasize; | |
2708 | double data[]; | |
2709 | }; | |
2710 | ||
2711 | struct named_init { | |
2712 | int number; | |
2713 | const wchar_t *name; | |
2714 | double average; | |
2715 | }; | |
2716 | ||
2717 | typedef const char *ccp; | |
2718 | ||
2719 | static inline int | |
2720 | test_restrict (ccp restrict text) | |
2721 | { | |
2722 | // See if C++-style comments work. | |
2723 | // Iterate through items via the restricted pointer. | |
2724 | // Also check for declarations in for loops. | |
2725 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) | |
2726 | continue; | |
2727 | return 0; | |
2728 | } | |
2729 | ||
2730 | // Check varargs and va_copy. | |
2731 | static bool | |
2732 | test_varargs (const char *format, ...) | |
2733 | { | |
2734 | va_list args; | |
2735 | va_start (args, format); | |
2736 | va_list args_copy; | |
2737 | va_copy (args_copy, args); | |
2738 | ||
2739 | const char *str = ""; | |
2740 | int number = 0; | |
2741 | float fnumber = 0; | |
2742 | ||
2743 | while (*format) | |
2744 | { | |
2745 | switch (*format++) | |
2746 | { | |
2747 | case '\''s'\'': // string | |
2748 | str = va_arg (args_copy, const char *); | |
2749 | break; | |
2750 | case '\''d'\'': // int | |
2751 | number = va_arg (args_copy, int); | |
2752 | break; | |
2753 | case '\''f'\'': // float | |
2754 | fnumber = va_arg (args_copy, double); | |
2755 | break; | |
2756 | default: | |
2757 | break; | |
2758 | } | |
2759 | } | |
2760 | va_end (args_copy); | |
2761 | va_end (args); | |
2762 | ||
2763 | return *str && number && fnumber; | |
2764 | } | |
2765 | ' | |
2766 | ||
2767 | # Test code for whether the C compiler supports C99 (body of main). | |
2768 | ac_c_conftest_c99_main=' | |
2769 | // Check bool. | |
2770 | _Bool success = false; | |
2771 | success |= (argc != 0); | |
2772 | ||
2773 | // Check restrict. | |
2774 | if (test_restrict ("String literal") == 0) | |
2775 | success = true; | |
2776 | char *restrict newvar = "Another string"; | |
2777 | ||
2778 | // Check varargs. | |
2779 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); | |
2780 | test_varargs_macros (); | |
2781 | ||
2782 | // Check flexible array members. | |
2783 | struct incomplete_array *ia = | |
2784 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
2785 | ia->datasize = 10; | |
2786 | for (int i = 0; i < ia->datasize; ++i) | |
2787 | ia->data[i] = i * 1.234; | |
2788 | ||
2789 | // Check named initializers. | |
2790 | struct named_init ni = { | |
2791 | .number = 34, | |
2792 | .name = L"Test wide string", | |
2793 | .average = 543.34343, | |
2794 | }; | |
2795 | ||
2796 | ni.number = 58; | |
2797 | ||
2798 | int dynamic_array[ni.number]; | |
2799 | dynamic_array[0] = argv[0][0]; | |
2800 | dynamic_array[ni.number - 1] = 543; | |
2801 | ||
2802 | // work around unused variable warnings | |
2803 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' | |
2804 | || dynamic_array[ni.number - 1] != 543); | |
2805 | ' | |
2806 | ||
2807 | # Test code for whether the C compiler supports C11 (global declarations) | |
2808 | ac_c_conftest_c11_globals=' | |
2809 | // Does the compiler advertise C11 conformance? | |
2810 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
2811 | # error "Compiler does not advertise C11 conformance" | |
2812 | #endif | |
2813 | ||
2814 | // Check _Alignas. | |
2815 | char _Alignas (double) aligned_as_double; | |
2816 | char _Alignas (0) no_special_alignment; | |
2817 | extern char aligned_as_int; | |
2818 | char _Alignas (0) _Alignas (int) aligned_as_int; | |
2819 | ||
2820 | // Check _Alignof. | |
2821 | enum | |
2822 | { | |
2823 | int_alignment = _Alignof (int), | |
2824 | int_array_alignment = _Alignof (int[100]), | |
2825 | char_alignment = _Alignof (char) | |
2826 | }; | |
2827 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | |
2828 | ||
2829 | // Check _Noreturn. | |
2830 | int _Noreturn does_not_return (void) { for (;;) continue; } | |
2831 | ||
2832 | // Check _Static_assert. | |
2833 | struct test_static_assert | |
2834 | { | |
2835 | int x; | |
2836 | _Static_assert (sizeof (int) <= sizeof (long int), | |
2837 | "_Static_assert does not work in struct"); | |
2838 | long int y; | |
2839 | }; | |
2840 | ||
2841 | // Check UTF-8 literals. | |
2842 | #define u8 syntax error! | |
2843 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; | |
2844 | ||
2845 | // Check duplicate typedefs. | |
2846 | typedef long *long_ptr; | |
2847 | typedef long int *long_ptr; | |
2848 | typedef long_ptr long_ptr; | |
2849 | ||
2850 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | |
2851 | struct anonymous | |
2852 | { | |
2853 | union { | |
2854 | struct { int i; int j; }; | |
2855 | struct { int k; long int l; } w; | |
2856 | }; | |
2857 | int m; | |
2858 | } v1; | |
2859 | ' | |
2860 | ||
2861 | # Test code for whether the C compiler supports C11 (body of main). | |
2862 | ac_c_conftest_c11_main=' | |
2863 | _Static_assert ((offsetof (struct anonymous, i) | |
2864 | == offsetof (struct anonymous, w.k)), | |
2865 | "Anonymous union alignment botch"); | |
2866 | v1.i = 2; | |
2867 | v1.w.k = 5; | |
2868 | ok |= v1.i != 5; | |
2869 | ' | |
2870 | ||
2871 | # Test code for whether the C compiler supports C11 (complete). | |
2872 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} | |
2873 | ${ac_c_conftest_c99_globals} | |
2874 | ${ac_c_conftest_c11_globals} | |
2875 | ||
2876 | int | |
2877 | main (int argc, char **argv) | |
2878 | { | |
2879 | int ok = 0; | |
2880 | ${ac_c_conftest_c89_main} | |
2881 | ${ac_c_conftest_c99_main} | |
2882 | ${ac_c_conftest_c11_main} | |
2883 | return ok; | |
2884 | } | |
2885 | " | |
2886 | ||
2887 | # Test code for whether the C compiler supports C99 (complete). | |
2888 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} | |
2889 | ${ac_c_conftest_c99_globals} | |
2890 | ||
2891 | int | |
2892 | main (int argc, char **argv) | |
2893 | { | |
2894 | int ok = 0; | |
2895 | ${ac_c_conftest_c89_main} | |
2896 | ${ac_c_conftest_c99_main} | |
2897 | return ok; | |
2898 | } | |
2899 | " | |
2900 | ||
2901 | # Test code for whether the C compiler supports C89 (complete). | |
2902 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} | |
2903 | ||
2904 | int | |
2905 | main (int argc, char **argv) | |
2906 | { | |
2907 | int ok = 0; | |
2908 | ${ac_c_conftest_c89_main} | |
2909 | return ok; | |
2910 | } | |
2911 | " | |
2912 | ||
2913 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" | |
2914 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" | |
2915 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" | |
2916 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" | |
2917 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" | |
2918 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" | |
2919 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" | |
2920 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" | |
2921 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" | |
2922 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" | |
2923 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" | |
2924 | ||
2925 | # Auxiliary files required by this configure script. | |
2926 | ac_aux_files="compile config.guess config.sub missing install-sh" | |
2927 | ||
2928 | # Locations in which to look for auxiliary files. | |
2929 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." | |
2930 | ||
2931 | # Search for a directory containing all of the required auxiliary files, | |
2932 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. | |
2933 | # If we don't find one directory that contains all the files we need, | |
2934 | # we report the set of missing files from the *first* directory in | |
2935 | # $ac_aux_dir_candidates and give up. | |
2936 | ac_missing_aux_files="" | |
2937 | ac_first_candidate=: | |
2938 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 | |
2939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2940 | as_found=false | |
2941 | for as_dir in $ac_aux_dir_candidates | |
2942 | do | |
2943 | IFS=$as_save_IFS | |
2944 | case $as_dir in #((( | |
2945 | '') as_dir=./ ;; | |
2946 | */) ;; | |
2947 | *) as_dir=$as_dir/ ;; | |
2948 | esac | |
2949 | as_found=: | |
2950 | ||
2951 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 | |
2952 | ac_aux_dir_found=yes | |
2953 | ac_install_sh= | |
2954 | for ac_aux in $ac_aux_files | |
2955 | do | |
2956 | # As a special case, if "install-sh" is required, that requirement | |
2957 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", | |
2958 | # and $ac_install_sh is set appropriately for whichever one is found. | |
2959 | if test x"$ac_aux" = x"install-sh" | |
2960 | then | |
2961 | if test -f "${as_dir}install-sh"; then | |
2962 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 | |
2963 | ac_install_sh="${as_dir}install-sh -c" | |
2964 | elif test -f "${as_dir}install.sh"; then | |
2965 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 | |
2966 | ac_install_sh="${as_dir}install.sh -c" | |
2967 | elif test -f "${as_dir}shtool"; then | |
2968 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 | |
2969 | ac_install_sh="${as_dir}shtool install -c" | |
2970 | else | |
2971 | ac_aux_dir_found=no | |
2972 | if $ac_first_candidate; then | |
2973 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" | |
2974 | else | |
2975 | break | |
2976 | fi | |
2977 | fi | |
2978 | else | |
2979 | if test -f "${as_dir}${ac_aux}"; then | |
2980 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 | |
2981 | else | |
2982 | ac_aux_dir_found=no | |
2983 | if $ac_first_candidate; then | |
2984 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" | |
2985 | else | |
2986 | break | |
2987 | fi | |
2988 | fi | |
2989 | fi | |
2990 | done | |
2991 | if test "$ac_aux_dir_found" = yes; then | |
2992 | ac_aux_dir="$as_dir" | |
2993 | break | |
2994 | fi | |
2995 | ac_first_candidate=false | |
2996 | ||
2997 | as_found=false | |
2998 | done | |
2999 | IFS=$as_save_IFS | |
3000 | if $as_found | |
3001 | then : | |
3002 | ||
3003 | else $as_nop | |
3004 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 | |
3005 | fi | |
529be52a | 3006 | |
529be52a | 3007 | |
a24b9f23 MA |
3008 | # These three variables are undocumented and unsupported, |
3009 | # and are intended to be withdrawn in a future Autoconf release. | |
3010 | # They can cause serious problems if a builder's source tree is in a directory | |
3011 | # whose full name contains unusual characters. | |
41f81b5c WW |
3012 | if test -f "${ac_aux_dir}config.guess"; then |
3013 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" | |
3014 | fi | |
3015 | if test -f "${ac_aux_dir}config.sub"; then | |
3016 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" | |
3017 | fi | |
3018 | if test -f "$ac_aux_dir/configure"; then | |
3019 | ac_configure="$SHELL ${ac_aux_dir}configure" | |
3020 | fi | |
529be52a | 3021 | |
41f81b5c WW |
3022 | # Check that the precious variables saved in the cache have kept the same |
3023 | # value. | |
3024 | ac_cache_corrupted=false | |
3025 | for ac_var in $ac_precious_vars; do | |
3026 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
3027 | eval ac_new_set=\$ac_env_${ac_var}_set | |
3028 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
3029 | eval ac_new_val=\$ac_env_${ac_var}_value | |
3030 | case $ac_old_set,$ac_new_set in | |
3031 | set,) | |
3032 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
3033 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
3034 | ac_cache_corrupted=: ;; | |
3035 | ,set) | |
3036 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
3037 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
3038 | ac_cache_corrupted=: ;; | |
3039 | ,);; | |
3040 | *) | |
3041 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
3042 | # differences in whitespace do not lead to failure. | |
3043 | ac_old_val_w=`echo x $ac_old_val` | |
3044 | ac_new_val_w=`echo x $ac_new_val` | |
3045 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
3046 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
3047 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
3048 | ac_cache_corrupted=: | |
3049 | else | |
3050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
3051 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
3052 | eval $ac_var=\$ac_old_val | |
3053 | fi | |
3054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
3055 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} | |
3056 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
3057 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} | |
3058 | fi;; | |
3059 | esac | |
3060 | # Pass precious variables to config.status. | |
3061 | if test "$ac_new_set" = set; then | |
3062 | case $ac_new_val in | |
3063 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3064 | *) ac_arg=$ac_var=$ac_new_val ;; | |
3065 | esac | |
3066 | case " $ac_configure_args " in | |
3067 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
3068 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
3069 | esac | |
3070 | fi | |
3071 | done | |
3072 | if $ac_cache_corrupted; then | |
3073 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3074 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3075 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
3076 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} | |
3077 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' | |
3078 | and start over" "$LINENO" 5 | |
3079 | fi | |
3080 | ## -------------------- ## | |
3081 | ## Main body of script. ## | |
3082 | ## -------------------- ## | |
529be52a | 3083 | |
41f81b5c WW |
3084 | ac_ext=c |
3085 | ac_cpp='$CPP $CPPFLAGS' | |
3086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3089 | ||
3090 | ||
3091 | ||
3092 | ||
3093 | # we specify "foreign" to avoid having to have the GNU mandated files, | |
3094 | # like AUTHORS, COPYING, and such | |
3095 | am__api_version='1.16' | |
3096 | ||
3097 | ||
3098 | ||
3099 | # Find a good install program. We prefer a C program (faster), | |
a24b9f23 MA |
3100 | # so one script is as good as another. But avoid the broken or |
3101 | # incompatible versions: | |
3102 | # SysV /etc/install, /usr/sbin/install | |
3103 | # SunOS /usr/etc/install | |
3104 | # IRIX /sbin/install | |
3105 | # AIX /bin/install | |
3106 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3107 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3108 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3109 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3110 | # OS/2's system install, which has a completely different semantic | |
3111 | # ./install, which can be erroneously created by make from ./install.sh. | |
3112 | # Reject install programs that cannot install multiple files. | |
41f81b5c WW |
3113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3114 | printf %s "checking for a BSD-compatible install... " >&6; } | |
a24b9f23 | 3115 | if test -z "$INSTALL"; then |
41f81b5c WW |
3116 | if test ${ac_cv_path_install+y} |
3117 | then : | |
3118 | printf %s "(cached) " >&6 | |
3119 | else $as_nop | |
a24b9f23 MA |
3120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3121 | for as_dir in $PATH | |
529be52a SR |
3122 | do |
3123 | IFS=$as_save_IFS | |
41f81b5c WW |
3124 | case $as_dir in #((( |
3125 | '') as_dir=./ ;; | |
3126 | */) ;; | |
3127 | *) as_dir=$as_dir/ ;; | |
3128 | esac | |
3129 | # Account for fact that we put trailing slashes in our PATH walk. | |
3130 | case $as_dir in #(( | |
3131 | ./ | /[cC]/* | \ | |
a24b9f23 MA |
3132 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3133 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3134 | /usr/ucb/* ) ;; | |
3135 | *) | |
3136 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3137 | # Don't use installbsd from OSF since it installs stuff as root | |
3138 | # by default. | |
3139 | for ac_prog in ginstall scoinst install; do | |
3140 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41f81b5c | 3141 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
a24b9f23 | 3142 | if test $ac_prog = install && |
41f81b5c | 3143 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
a24b9f23 MA |
3144 | # AIX install. It has an incompatible calling convention. |
3145 | : | |
3146 | elif test $ac_prog = install && | |
41f81b5c | 3147 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
a24b9f23 MA |
3148 | # program-specific install script used by HP pwplus--don't use. |
3149 | : | |
3150 | else | |
3151 | rm -rf conftest.one conftest.two conftest.dir | |
3152 | echo one > conftest.one | |
3153 | echo two > conftest.two | |
3154 | mkdir conftest.dir | |
41f81b5c | 3155 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
a24b9f23 MA |
3156 | test -s conftest.one && test -s conftest.two && |
3157 | test -s conftest.dir/conftest.one && | |
3158 | test -s conftest.dir/conftest.two | |
3159 | then | |
41f81b5c | 3160 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
a24b9f23 MA |
3161 | break 3 |
3162 | fi | |
3163 | fi | |
3164 | fi | |
3165 | done | |
3166 | done | |
3167 | ;; | |
529be52a SR |
3168 | esac |
3169 | ||
529be52a | 3170 | done |
529be52a SR |
3171 | IFS=$as_save_IFS |
3172 | ||
a24b9f23 | 3173 | rm -rf conftest.one conftest.two conftest.dir |
529be52a SR |
3174 | |
3175 | fi | |
41f81b5c | 3176 | if test ${ac_cv_path_install+y}; then |
a24b9f23 MA |
3177 | INSTALL=$ac_cv_path_install |
3178 | else | |
3179 | # As a last resort, use the slow shell script. Don't cache a | |
3180 | # value for INSTALL within a source directory, because that will | |
3181 | # break other packages using the cache if that directory is | |
3182 | # removed, or if the value is a relative name. | |
3183 | INSTALL=$ac_install_sh | |
3184 | fi | |
529be52a | 3185 | fi |
41f81b5c WW |
3186 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3187 | printf "%s\n" "$INSTALL" >&6; } | |
529be52a | 3188 | |
a24b9f23 MA |
3189 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3190 | # It thinks the first close brace ends the variable substitution. | |
3191 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
529be52a | 3192 | |
a24b9f23 | 3193 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
529be52a | 3194 | |
a24b9f23 | 3195 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
529be52a | 3196 | |
41f81b5c WW |
3197 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3198 | printf %s "checking whether build environment is sane... " >&6; } | |
a24b9f23 MA |
3199 | # Reject unsafe characters in $srcdir or the absolute working directory |
3200 | # name. Accept space and tab only in the latter. | |
3201 | am_lf=' | |
3202 | ' | |
3203 | case `pwd` in | |
3204 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3205 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
3206 | esac | |
3207 | case $srcdir in | |
3208 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3209 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
3210 | esac | |
529be52a | 3211 | |
a24b9f23 MA |
3212 | # Do 'set' in a subshell so we don't clobber the current shell's |
3213 | # arguments. Must try -L first in case configure is actually a | |
3214 | # symlink; some systems play weird games with the mod time of symlinks | |
3215 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3216 | # directory). | |
3217 | if ( | |
3218 | am_has_slept=no | |
3219 | for am_try in 1 2; do | |
3220 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
3221 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3222 | if test "$*" = "X"; then | |
3223 | # -L didn't work. | |
3224 | set X `ls -t "$srcdir/configure" conftest.file` | |
3225 | fi | |
3226 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3227 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3228 | ||
3229 | # If neither matched, then we have a broken ls. This can happen | |
3230 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3231 | # broken ls alias from the environment. This has actually | |
3232 | # happened. Such a system could not be considered "sane". | |
3233 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3234 | alias in your environment" "$LINENO" 5 | |
3235 | fi | |
3236 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3237 | break | |
3238 | fi | |
3239 | # Just in case. | |
3240 | sleep 1 | |
3241 | am_has_slept=yes | |
3242 | done | |
3243 | test "$2" = conftest.file | |
3244 | ) | |
3245 | then | |
3246 | # Ok. | |
3247 | : | |
529be52a | 3248 | else |
a24b9f23 MA |
3249 | as_fn_error $? "newly created file is older than distributed files! |
3250 | Check your system clock" "$LINENO" 5 | |
529be52a | 3251 | fi |
41f81b5c WW |
3252 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3253 | printf "%s\n" "yes" >&6; } | |
a24b9f23 MA |
3254 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3255 | # generated files are strictly newer. | |
3256 | am_sleep_pid= | |
3257 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3258 | ( sleep 1 ) & | |
3259 | am_sleep_pid=$! | |
529be52a SR |
3260 | fi |
3261 | ||
a24b9f23 | 3262 | rm -f conftest.file |
529be52a | 3263 | |
a24b9f23 MA |
3264 | test "$program_prefix" != NONE && |
3265 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3266 | # Use a double $ so make ignores it. | |
3267 | test "$program_suffix" != NONE && | |
3268 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3269 | # Double any \ or $. | |
3270 | # By default was `s,x,x', remove it if useless. | |
3271 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
41f81b5c WW |
3272 | program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` |
3273 | ||
529be52a | 3274 | |
db1a8f68 SR |
3275 | # Expand $ac_aux_dir to an absolute path. |
3276 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
529be52a | 3277 | |
41f81b5c WW |
3278 | |
3279 | if test x"${MISSING+set}" != xset; then | |
f4622ec1 | 3280 | MISSING="\${SHELL} '$am_aux_dir/missing'" |
529be52a | 3281 | fi |
a24b9f23 | 3282 | # Use eval to expand $SHELL |
69e9da00 TM |
3283 | if eval "$MISSING --is-lightweight"; then |
3284 | am_missing_run="$MISSING " | |
529be52a | 3285 | else |
a24b9f23 | 3286 | am_missing_run= |
41f81b5c WW |
3287 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3288 | printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
529be52a | 3289 | fi |
529be52a | 3290 | |
db1a8f68 | 3291 | if test x"${install_sh+set}" != xset; then |
a24b9f23 MA |
3292 | case $am_aux_dir in |
3293 | *\ * | *\ *) | |
3294 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3295 | *) | |
3296 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3297 | esac | |
529be52a SR |
3298 | fi |
3299 | ||
a24b9f23 MA |
3300 | # Installed binaries are usually stripped using 'strip' when the user |
3301 | # run "make install-strip". However 'strip' might not be the right | |
3302 | # tool to use in cross-compilation environments, therefore Automake | |
3303 | # will honor the 'STRIP' environment variable to overrule this program. | |
3304 | if test "$cross_compiling" != no; then | |
3305 | if test -n "$ac_tool_prefix"; then | |
3306 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3307 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
41f81b5c WW |
3308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3309 | printf %s "checking for $ac_word... " >&6; } | |
3310 | if test ${ac_cv_prog_STRIP+y} | |
3311 | then : | |
3312 | printf %s "(cached) " >&6 | |
3313 | else $as_nop | |
a24b9f23 MA |
3314 | if test -n "$STRIP"; then |
3315 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
529be52a | 3316 | else |
a24b9f23 MA |
3317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3318 | for as_dir in $PATH | |
3319 | do | |
3320 | IFS=$as_save_IFS | |
41f81b5c WW |
3321 | case $as_dir in #((( |
3322 | '') as_dir=./ ;; | |
3323 | */) ;; | |
3324 | *) as_dir=$as_dir/ ;; | |
3325 | esac | |
a24b9f23 | 3326 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c | 3327 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a24b9f23 | 3328 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
41f81b5c | 3329 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a24b9f23 MA |
3330 | break 2 |
3331 | fi | |
3332 | done | |
3333 | done | |
3334 | IFS=$as_save_IFS | |
529be52a | 3335 | |
529be52a | 3336 | fi |
a24b9f23 MA |
3337 | fi |
3338 | STRIP=$ac_cv_prog_STRIP | |
3339 | if test -n "$STRIP"; then | |
41f81b5c WW |
3340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
3341 | printf "%s\n" "$STRIP" >&6; } | |
a24b9f23 | 3342 | else |
41f81b5c WW |
3343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3344 | printf "%s\n" "no" >&6; } | |
529be52a SR |
3345 | fi |
3346 | ||
3347 | ||
a24b9f23 MA |
3348 | fi |
3349 | if test -z "$ac_cv_prog_STRIP"; then | |
3350 | ac_ct_STRIP=$STRIP | |
3351 | # Extract the first word of "strip", so it can be a program name with args. | |
3352 | set dummy strip; ac_word=$2 | |
41f81b5c WW |
3353 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3354 | printf %s "checking for $ac_word... " >&6; } | |
3355 | if test ${ac_cv_prog_ac_ct_STRIP+y} | |
3356 | then : | |
3357 | printf %s "(cached) " >&6 | |
3358 | else $as_nop | |
a24b9f23 MA |
3359 | if test -n "$ac_ct_STRIP"; then |
3360 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3361 | else | |
3362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3363 | for as_dir in $PATH | |
3364 | do | |
3365 | IFS=$as_save_IFS | |
41f81b5c WW |
3366 | case $as_dir in #((( |
3367 | '') as_dir=./ ;; | |
3368 | */) ;; | |
3369 | *) as_dir=$as_dir/ ;; | |
3370 | esac | |
a24b9f23 | 3371 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c | 3372 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a24b9f23 | 3373 | ac_cv_prog_ac_ct_STRIP="strip" |
41f81b5c | 3374 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a24b9f23 MA |
3375 | break 2 |
3376 | fi | |
3377 | done | |
3378 | done | |
3379 | IFS=$as_save_IFS | |
3380 | ||
529be52a SR |
3381 | fi |
3382 | fi | |
a24b9f23 MA |
3383 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3384 | if test -n "$ac_ct_STRIP"; then | |
41f81b5c WW |
3385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
3386 | printf "%s\n" "$ac_ct_STRIP" >&6; } | |
a24b9f23 | 3387 | else |
41f81b5c WW |
3388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3389 | printf "%s\n" "no" >&6; } | |
529be52a SR |
3390 | fi |
3391 | ||
a24b9f23 MA |
3392 | if test "x$ac_ct_STRIP" = x; then |
3393 | STRIP=":" | |
3394 | else | |
3395 | case $cross_compiling:$ac_tool_warned in | |
3396 | yes:) | |
41f81b5c WW |
3397 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3398 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a24b9f23 MA |
3399 | ac_tool_warned=yes ;; |
3400 | esac | |
3401 | STRIP=$ac_ct_STRIP | |
3402 | fi | |
3403 | else | |
3404 | STRIP="$ac_cv_prog_STRIP" | |
3405 | fi | |
529be52a | 3406 | |
a24b9f23 MA |
3407 | fi |
3408 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
529be52a | 3409 | |
41f81b5c WW |
3410 | |
3411 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 | |
3412 | printf %s "checking for a race-free mkdir -p... " >&6; } | |
a24b9f23 | 3413 | if test -z "$MKDIR_P"; then |
41f81b5c WW |
3414 | if test ${ac_cv_path_mkdir+y} |
3415 | then : | |
3416 | printf %s "(cached) " >&6 | |
3417 | else $as_nop | |
a24b9f23 MA |
3418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3419 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3420 | do | |
3421 | IFS=$as_save_IFS | |
41f81b5c WW |
3422 | case $as_dir in #((( |
3423 | '') as_dir=./ ;; | |
3424 | */) ;; | |
3425 | *) as_dir=$as_dir/ ;; | |
3426 | esac | |
a24b9f23 MA |
3427 | for ac_prog in mkdir gmkdir; do |
3428 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41f81b5c WW |
3429 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
3430 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3431 | 'mkdir ('*'coreutils) '* | \ | |
3432 | 'BusyBox '* | \ | |
a24b9f23 | 3433 | 'mkdir (fileutils) '4.1*) |
41f81b5c | 3434 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
a24b9f23 MA |
3435 | break 3;; |
3436 | esac | |
3437 | done | |
3438 | done | |
3439 | done | |
3440 | IFS=$as_save_IFS | |
529be52a | 3441 | |
a24b9f23 | 3442 | fi |
529be52a | 3443 | |
a24b9f23 | 3444 | test -d ./--version && rmdir ./--version |
41f81b5c | 3445 | if test ${ac_cv_path_mkdir+y}; then |
a24b9f23 MA |
3446 | MKDIR_P="$ac_cv_path_mkdir -p" |
3447 | else | |
3448 | # As a last resort, use the slow shell script. Don't cache a | |
3449 | # value for MKDIR_P within a source directory, because that will | |
3450 | # break other packages using the cache if that directory is | |
3451 | # removed, or if the value is a relative name. | |
3452 | MKDIR_P="$ac_install_sh -d" | |
3453 | fi | |
3454 | fi | |
41f81b5c WW |
3455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3456 | printf "%s\n" "$MKDIR_P" >&6; } | |
529be52a | 3457 | |
a24b9f23 | 3458 | for ac_prog in gawk mawk nawk awk |
529be52a | 3459 | do |
a24b9f23 MA |
3460 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3461 | set dummy $ac_prog; ac_word=$2 | |
41f81b5c WW |
3462 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3463 | printf %s "checking for $ac_word... " >&6; } | |
3464 | if test ${ac_cv_prog_AWK+y} | |
3465 | then : | |
3466 | printf %s "(cached) " >&6 | |
3467 | else $as_nop | |
a24b9f23 MA |
3468 | if test -n "$AWK"; then |
3469 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3470 | else | |
3471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3472 | for as_dir in $PATH | |
3473 | do | |
3474 | IFS=$as_save_IFS | |
41f81b5c WW |
3475 | case $as_dir in #((( |
3476 | '') as_dir=./ ;; | |
3477 | */) ;; | |
3478 | *) as_dir=$as_dir/ ;; | |
3479 | esac | |
a24b9f23 | 3480 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c | 3481 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a24b9f23 | 3482 | ac_cv_prog_AWK="$ac_prog" |
41f81b5c | 3483 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a24b9f23 MA |
3484 | break 2 |
3485 | fi | |
3486 | done | |
3487 | done | |
3488 | IFS=$as_save_IFS | |
529be52a | 3489 | |
529be52a | 3490 | fi |
529be52a | 3491 | fi |
a24b9f23 MA |
3492 | AWK=$ac_cv_prog_AWK |
3493 | if test -n "$AWK"; then | |
41f81b5c WW |
3494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3495 | printf "%s\n" "$AWK" >&6; } | |
a24b9f23 | 3496 | else |
41f81b5c WW |
3497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3498 | printf "%s\n" "no" >&6; } | |
529be52a SR |
3499 | fi |
3500 | ||
529be52a | 3501 | |
a24b9f23 MA |
3502 | test -n "$AWK" && break |
3503 | done | |
529be52a | 3504 | |
41f81b5c WW |
3505 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3506 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
a24b9f23 | 3507 | set x ${MAKE-make} |
41f81b5c WW |
3508 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
3509 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} | |
3510 | then : | |
3511 | printf %s "(cached) " >&6 | |
3512 | else $as_nop | |
a24b9f23 MA |
3513 | cat >conftest.make <<\_ACEOF |
3514 | SHELL = /bin/sh | |
3515 | all: | |
3516 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
529be52a | 3517 | _ACEOF |
a24b9f23 MA |
3518 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
3519 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3520 | *@@@%%%=?*=@@@%%%*) | |
3521 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3522 | *) | |
3523 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
529be52a | 3524 | esac |
a24b9f23 MA |
3525 | rm -f conftest.make |
3526 | fi | |
3527 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
41f81b5c WW |
3528 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3529 | printf "%s\n" "yes" >&6; } | |
a24b9f23 | 3530 | SET_MAKE= |
529be52a | 3531 | else |
41f81b5c WW |
3532 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3533 | printf "%s\n" "no" >&6; } | |
a24b9f23 | 3534 | SET_MAKE="MAKE=${MAKE-make}" |
529be52a SR |
3535 | fi |
3536 | ||
a24b9f23 MA |
3537 | rm -rf .tst 2>/dev/null |
3538 | mkdir .tst 2>/dev/null | |
3539 | if test -d .tst; then | |
3540 | am__leading_dot=. | |
529be52a | 3541 | else |
a24b9f23 | 3542 | am__leading_dot=_ |
529be52a | 3543 | fi |
a24b9f23 | 3544 | rmdir .tst 2>/dev/null |
529be52a | 3545 | |
69e9da00 | 3546 | # Check whether --enable-silent-rules was given. |
41f81b5c WW |
3547 | if test ${enable_silent_rules+y} |
3548 | then : | |
69e9da00 TM |
3549 | enableval=$enable_silent_rules; |
3550 | fi | |
3551 | ||
3552 | case $enable_silent_rules in # ((( | |
3553 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3554 | no) AM_DEFAULT_VERBOSITY=1;; | |
3555 | *) AM_DEFAULT_VERBOSITY=1;; | |
3556 | esac | |
3557 | am_make=${MAKE-make} | |
41f81b5c WW |
3558 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
3559 | printf %s "checking whether $am_make supports nested variables... " >&6; } | |
3560 | if test ${am_cv_make_support_nested_variables+y} | |
3561 | then : | |
3562 | printf %s "(cached) " >&6 | |
3563 | else $as_nop | |
3564 | if printf "%s\n" 'TRUE=$(BAR$(V)) | |
69e9da00 TM |
3565 | BAR0=false |
3566 | BAR1=true | |
3567 | V=1 | |
3568 | am__doit: | |
3569 | @$(TRUE) | |
3570 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3571 | am_cv_make_support_nested_variables=yes | |
3572 | else | |
3573 | am_cv_make_support_nested_variables=no | |
3574 | fi | |
3575 | fi | |
41f81b5c WW |
3576 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
3577 | printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } | |
69e9da00 TM |
3578 | if test $am_cv_make_support_nested_variables = yes; then |
3579 | AM_V='$(V)' | |
3580 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3581 | else | |
3582 | AM_V=$AM_DEFAULT_VERBOSITY | |
3583 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3584 | fi | |
3585 | AM_BACKSLASH='\' | |
3586 | ||
a24b9f23 MA |
3587 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3588 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3589 | # is not polluted with repeated "-I." | |
3590 | am__isrc=' -I$(srcdir)' | |
3591 | # test to see if srcdir already configured | |
3592 | if test -f $srcdir/config.status; then | |
3593 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3594 | fi | |
529be52a SR |
3595 | fi |
3596 | ||
a24b9f23 MA |
3597 | # test whether we have cygpath |
3598 | if test -z "$CYGPATH_W"; then | |
3599 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3600 | CYGPATH_W='cygpath -w' | |
3601 | else | |
3602 | CYGPATH_W=echo | |
3603 | fi | |
3604 | fi | |
529be52a | 3605 | |
529be52a | 3606 | |
a24b9f23 MA |
3607 | # Define the identity of the package. |
3608 | PACKAGE='dhcp' | |
41f81b5c | 3609 | VERSION='4.4.3-P1' |
529be52a SR |
3610 | |
3611 | ||
41f81b5c | 3612 | printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h |
529be52a SR |
3613 | |
3614 | ||
41f81b5c | 3615 | printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h |
529be52a | 3616 | |
a24b9f23 MA |
3617 | # Some tools Automake needs. |
3618 | ||
3619 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3620 | ||
3621 | ||
3622 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3623 | ||
3624 | ||
3625 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
529be52a SR |
3626 | |
3627 | ||
a24b9f23 MA |
3628 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
3629 | ||
3630 | ||
3631 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
529be52a | 3632 | |
a24b9f23 MA |
3633 | # For better backward compatibility. To be removed once Automake 1.9.x |
3634 | # dies out for good. For more background, see: | |
0cd94b5e TM |
3635 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
3636 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
a24b9f23 | 3637 | mkdir_p='$(MKDIR_P)' |
529be52a | 3638 | |
db1a8f68 SR |
3639 | # We need awk for the "check" target (and possibly the TAP driver). The |
3640 | # system "awk" is bad on some platforms. | |
a24b9f23 MA |
3641 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3642 | # in the wild :-( We should find a proper way to deprecate it ... | |
3643 | AMTAR='$${TAR-tar}' | |
529be52a | 3644 | |
69e9da00 TM |
3645 | |
3646 | # We'll loop over all known methods to create a tar archive until one works. | |
3647 | _am_tools='gnutar pax cpio none' | |
3648 | ||
a24b9f23 | 3649 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
529be52a SR |
3650 | |
3651 | ||
3652 | ||
3653 | ||
3654 | ||
f4622ec1 WW |
3655 | # Variables for tags utilities; see am/tags.am |
3656 | if test -z "$CTAGS"; then | |
3657 | CTAGS=ctags | |
3658 | fi | |
3659 | ||
3660 | if test -z "$ETAGS"; then | |
3661 | ETAGS=etags | |
3662 | fi | |
3663 | ||
3664 | if test -z "$CSCOPE"; then | |
3665 | CSCOPE=cscope | |
3666 | fi | |
3667 | ||
3668 | ||
529be52a | 3669 | |
69e9da00 TM |
3670 | # POSIX will say in a future version that running "rm -f" with no argument |
3671 | # is OK; and we want to be able to make that assumption in our Makefile | |
3672 | # recipes. So use an aggressive probe to check that the usage we want is | |
3673 | # actually supported "in the wild" to an acceptable degree. | |
3674 | # See automake bug#10828. | |
3675 | # To make any issue more visible, cause the running configure to be aborted | |
3676 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3677 | # user can still override this though. | |
3678 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3679 | cat >&2 <<'END' | |
3680 | Oops! | |
3681 | ||
3682 | Your 'rm' program seems unable to run without file operands specified | |
3683 | on the command line, even when the '-f' option is present. This is contrary | |
3684 | to the behaviour of most rm programs out there, and not conforming with | |
3685 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3686 | ||
3687 | Please tell bug-automake@gnu.org about your system, including the value | |
3688 | of your $PATH and any error possibly output before this message. This | |
3689 | can help us improve future automake versions. | |
3690 | ||
3691 | END | |
3692 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3693 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3694 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3695 | echo >&2 | |
3696 | else | |
3697 | cat >&2 <<'END' | |
3698 | Aborting the configuration process, to ensure you take notice of the issue. | |
3699 | ||
3700 | You can download and install GNU coreutils to get an 'rm' implementation | |
0cd94b5e | 3701 | that behaves properly: <https://www.gnu.org/software/coreutils/>. |
69e9da00 TM |
3702 | |
3703 | If you want to complete the configuration process using your problematic | |
3704 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3705 | to "yes", and re-run configure. | |
3706 | ||
3707 | END | |
3708 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3709 | fi | |
3710 | fi | |
3711 | ||
db1a8f68 | 3712 | |
a24b9f23 MA |
3713 | # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding |
3714 | # the configure and makefiles. Without it users doing things that | |
3715 | # change the timestamps on the code, like checking it into a cvs | |
3716 | # tree, could trigger a rebuild of the infrastructure files which | |
3717 | # might fail if they don't have the correct tools. | |
3718 | ||
41f81b5c WW |
3719 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3720 | printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
a24b9f23 | 3721 | # Check whether --enable-maintainer-mode was given. |
41f81b5c WW |
3722 | if test ${enable_maintainer_mode+y} |
3723 | then : | |
a24b9f23 | 3724 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
41f81b5c | 3725 | else $as_nop |
a24b9f23 MA |
3726 | USE_MAINTAINER_MODE=no |
3727 | fi | |
529be52a | 3728 | |
41f81b5c WW |
3729 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3730 | printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } | |
a24b9f23 MA |
3731 | if test $USE_MAINTAINER_MODE = yes; then |
3732 | MAINTAINER_MODE_TRUE= | |
3733 | MAINTAINER_MODE_FALSE='#' | |
3734 | else | |
3735 | MAINTAINER_MODE_TRUE='#' | |
3736 | MAINTAINER_MODE_FALSE= | |
3737 | fi | |
529be52a | 3738 | |
a24b9f23 MA |
3739 | MAINT=$MAINTAINER_MODE_TRUE |
3740 | ||
3741 | ||
3742 | ||
a24b9f23 | 3743 | |
41f81b5c WW |
3744 | |
3745 | # Make sure we can run config.sub. | |
3746 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || | |
3747 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 | |
3748 | ||
3749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3750 | printf %s "checking build system type... " >&6; } | |
3751 | if test ${ac_cv_build+y} | |
3752 | then : | |
3753 | printf %s "(cached) " >&6 | |
3754 | else $as_nop | |
a24b9f23 MA |
3755 | ac_build_alias=$build_alias |
3756 | test "x$ac_build_alias" = x && | |
41f81b5c | 3757 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
a24b9f23 MA |
3758 | test "x$ac_build_alias" = x && |
3759 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
41f81b5c WW |
3760 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
3761 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 | |
529be52a | 3762 | |
529be52a | 3763 | fi |
41f81b5c WW |
3764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3765 | printf "%s\n" "$ac_cv_build" >&6; } | |
a24b9f23 MA |
3766 | case $ac_cv_build in |
3767 | *-*-*) ;; | |
3768 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
3769 | esac | |
3770 | build=$ac_cv_build | |
3771 | ac_save_IFS=$IFS; IFS='-' | |
3772 | set x $ac_cv_build | |
3773 | shift | |
3774 | build_cpu=$1 | |
3775 | build_vendor=$2 | |
3776 | shift; shift | |
3777 | # Remember, the first character of IFS is used to create $*, | |
3778 | # except with old shells: | |
3779 | build_os=$* | |
3780 | IFS=$ac_save_IFS | |
3781 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
529be52a | 3782 | |
a24b9f23 | 3783 | |
41f81b5c WW |
3784 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
3785 | printf %s "checking host system type... " >&6; } | |
3786 | if test ${ac_cv_host+y} | |
3787 | then : | |
3788 | printf %s "(cached) " >&6 | |
3789 | else $as_nop | |
a24b9f23 MA |
3790 | if test "x$host_alias" = x; then |
3791 | ac_cv_host=$ac_cv_build | |
3792 | else | |
41f81b5c WW |
3793 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
3794 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 | |
529be52a | 3795 | fi |
529be52a | 3796 | |
a24b9f23 | 3797 | fi |
41f81b5c WW |
3798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3799 | printf "%s\n" "$ac_cv_host" >&6; } | |
a24b9f23 MA |
3800 | case $ac_cv_host in |
3801 | *-*-*) ;; | |
3802 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3803 | esac | |
3804 | host=$ac_cv_host | |
3805 | ac_save_IFS=$IFS; IFS='-' | |
3806 | set x $ac_cv_host | |
3807 | shift | |
3808 | host_cpu=$1 | |
3809 | host_vendor=$2 | |
3810 | shift; shift | |
3811 | # Remember, the first character of IFS is used to create $*, | |
3812 | # except with old shells: | |
3813 | host_os=$* | |
3814 | IFS=$ac_save_IFS | |
3815 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
529be52a | 3816 | |
529be52a SR |
3817 | |
3818 | ||
a24b9f23 MA |
3819 | # We want to turn on warnings if we are using gcc and the user did |
3820 | # not specify CFLAGS. The autoconf check for the C compiler sets the | |
3821 | # CFLAGS if gcc is used, so we will save it before we run that check. | |
3822 | SAVE_CFLAGS="$CFLAGS" | |
529be52a | 3823 | |
a24b9f23 | 3824 | # Now find our C compiler. |
41f81b5c WW |
3825 | |
3826 | ||
3827 | ||
3828 | ||
3829 | ||
3830 | ||
3831 | ||
3832 | ||
3833 | ||
a24b9f23 MA |
3834 | ac_ext=c |
3835 | ac_cpp='$CPP $CPPFLAGS' | |
3836 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3837 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3838 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
529be52a | 3839 | if test -n "$ac_tool_prefix"; then |
a24b9f23 MA |
3840 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3841 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
41f81b5c WW |
3842 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3843 | printf %s "checking for $ac_word... " >&6; } | |
3844 | if test ${ac_cv_prog_CC+y} | |
3845 | then : | |
3846 | printf %s "(cached) " >&6 | |
3847 | else $as_nop | |
a24b9f23 MA |
3848 | if test -n "$CC"; then |
3849 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
529be52a SR |
3850 | else |
3851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3852 | for as_dir in $PATH | |
3853 | do | |
3854 | IFS=$as_save_IFS | |
41f81b5c WW |
3855 | case $as_dir in #((( |
3856 | '') as_dir=./ ;; | |
3857 | */) ;; | |
3858 | *) as_dir=$as_dir/ ;; | |
3859 | esac | |
a24b9f23 | 3860 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c | 3861 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a24b9f23 | 3862 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
41f81b5c | 3863 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
529be52a SR |
3864 | break 2 |
3865 | fi | |
3866 | done | |
a24b9f23 | 3867 | done |
529be52a SR |
3868 | IFS=$as_save_IFS |
3869 | ||
3870 | fi | |
3871 | fi | |
a24b9f23 MA |
3872 | CC=$ac_cv_prog_CC |
3873 | if test -n "$CC"; then | |
41f81b5c WW |
3874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3875 | printf "%s\n" "$CC" >&6; } | |
529be52a | 3876 | else |
41f81b5c WW |
3877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3878 | printf "%s\n" "no" >&6; } | |
529be52a SR |
3879 | fi |
3880 | ||
3881 | ||
3882 | fi | |
a24b9f23 MA |
3883 | if test -z "$ac_cv_prog_CC"; then |
3884 | ac_ct_CC=$CC | |
3885 | # Extract the first word of "gcc", so it can be a program name with args. | |
3886 | set dummy gcc; ac_word=$2 | |
41f81b5c WW |
3887 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3888 | printf %s "checking for $ac_word... " >&6; } | |
3889 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3890 | then : | |
3891 | printf %s "(cached) " >&6 | |
3892 | else $as_nop | |
a24b9f23 MA |
3893 | if test -n "$ac_ct_CC"; then |
3894 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
529be52a SR |
3895 | else |
3896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3897 | for as_dir in $PATH | |
3898 | do | |
3899 | IFS=$as_save_IFS | |
41f81b5c WW |
3900 | case $as_dir in #((( |
3901 | '') as_dir=./ ;; | |
3902 | */) ;; | |
3903 | *) as_dir=$as_dir/ ;; | |
3904 | esac | |
a24b9f23 | 3905 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c | 3906 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a24b9f23 | 3907 | ac_cv_prog_ac_ct_CC="gcc" |
41f81b5c | 3908 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
529be52a SR |
3909 | break 2 |
3910 | fi | |
3911 | done | |
a24b9f23 | 3912 | done |
529be52a SR |
3913 | IFS=$as_save_IFS |
3914 | ||
3915 | fi | |
3916 | fi | |
a24b9f23 MA |
3917 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3918 | if test -n "$ac_ct_CC"; then | |
41f81b5c WW |
3919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3920 | printf "%s\n" "$ac_ct_CC" >&6; } | |
529be52a | 3921 | else |
41f81b5c WW |
3922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3923 | printf "%s\n" "no" >&6; } | |
529be52a SR |
3924 | fi |
3925 | ||
a24b9f23 MA |
3926 | if test "x$ac_ct_CC" = x; then |
3927 | CC="" | |
529be52a SR |
3928 | else |
3929 | case $cross_compiling:$ac_tool_warned in | |
3930 | yes:) | |
41f81b5c WW |
3931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3932 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
529be52a SR |
3933 | ac_tool_warned=yes ;; |
3934 | esac | |
a24b9f23 | 3935 | CC=$ac_ct_CC |
529be52a SR |
3936 | fi |
3937 | else | |
a24b9f23 | 3938 | CC="$ac_cv_prog_CC" |
529be52a SR |
3939 | fi |
3940 | ||
a24b9f23 MA |
3941 | if test -z "$CC"; then |
3942 | if test -n "$ac_tool_prefix"; then | |
3943 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3944 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
41f81b5c WW |
3945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3946 | printf %s "checking for $ac_word... " >&6; } | |
3947 | if test ${ac_cv_prog_CC+y} | |
3948 | then : | |
3949 | printf %s "(cached) " >&6 | |
3950 | else $as_nop | |
a24b9f23 MA |
3951 | if test -n "$CC"; then |
3952 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
529be52a | 3953 | else |
a24b9f23 MA |
3954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3955 | for as_dir in $PATH | |
3956 | do | |
3957 | IFS=$as_save_IFS | |
41f81b5c WW |
3958 | case $as_dir in #((( |
3959 | '') as_dir=./ ;; | |
3960 | */) ;; | |
3961 | *) as_dir=$as_dir/ ;; | |
3962 | esac | |
a24b9f23 | 3963 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c | 3964 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a24b9f23 | 3965 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
41f81b5c | 3966 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a24b9f23 | 3967 | break 2 |
529be52a | 3968 | fi |
a24b9f23 MA |
3969 | done |
3970 | done | |
3971 | IFS=$as_save_IFS | |
529be52a SR |
3972 | |
3973 | fi | |
a24b9f23 MA |
3974 | fi |
3975 | CC=$ac_cv_prog_CC | |
3976 | if test -n "$CC"; then | |
41f81b5c WW |
3977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3978 | printf "%s\n" "$CC" >&6; } | |
a24b9f23 | 3979 | else |
41f81b5c WW |
3980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3981 | printf "%s\n" "no" >&6; } | |
529be52a SR |
3982 | fi |
3983 | ||
529be52a | 3984 | |
a24b9f23 | 3985 | fi |
529be52a | 3986 | fi |
a24b9f23 MA |
3987 | if test -z "$CC"; then |
3988 | # Extract the first word of "cc", so it can be a program name with args. | |
3989 | set dummy cc; ac_word=$2 | |
41f81b5c WW |
3990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3991 | printf %s "checking for $ac_word... " >&6; } | |
3992 | if test ${ac_cv_prog_CC+y} | |
3993 | then : | |
3994 | printf %s "(cached) " >&6 | |
3995 | else $as_nop | |
a24b9f23 MA |
3996 | if test -n "$CC"; then |
3997 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3998 | else | |
3999 | ac_prog_rejected=no | |
4000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4001 | for as_dir in $PATH | |
4002 | do | |
4003 | IFS=$as_save_IFS | |
41f81b5c WW |
4004 | case $as_dir in #((( |
4005 | '') as_dir=./ ;; | |
4006 | */) ;; | |
4007 | *) as_dir=$as_dir/ ;; | |
4008 | esac | |
a24b9f23 | 4009 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c WW |
4010 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4011 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
a24b9f23 MA |
4012 | ac_prog_rejected=yes |
4013 | continue | |
4014 | fi | |
4015 | ac_cv_prog_CC="cc" | |
41f81b5c | 4016 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a24b9f23 MA |
4017 | break 2 |
4018 | fi | |
4019 | done | |
4020 | done | |
4021 | IFS=$as_save_IFS | |
529be52a | 4022 | |
a24b9f23 MA |
4023 | if test $ac_prog_rejected = yes; then |
4024 | # We found a bogon in the path, so make sure we never use it. | |
4025 | set dummy $ac_cv_prog_CC | |
4026 | shift | |
4027 | if test $# != 0; then | |
4028 | # We chose a different compiler from the bogus one. | |
4029 | # However, it has the same basename, so the bogon will be chosen | |
4030 | # first if we set CC to just the basename; use the full file name. | |
4031 | shift | |
41f81b5c | 4032 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
a24b9f23 | 4033 | fi |
529be52a | 4034 | fi |
529be52a | 4035 | fi |
529be52a | 4036 | fi |
a24b9f23 MA |
4037 | CC=$ac_cv_prog_CC |
4038 | if test -n "$CC"; then | |
41f81b5c WW |
4039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4040 | printf "%s\n" "$CC" >&6; } | |
a24b9f23 | 4041 | else |
41f81b5c WW |
4042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4043 | printf "%s\n" "no" >&6; } | |
529be52a SR |
4044 | fi |
4045 | ||
529be52a | 4046 | |
529be52a | 4047 | fi |
a24b9f23 MA |
4048 | if test -z "$CC"; then |
4049 | if test -n "$ac_tool_prefix"; then | |
4050 | for ac_prog in cl.exe | |
4051 | do | |
4052 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4053 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
41f81b5c WW |
4054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4055 | printf %s "checking for $ac_word... " >&6; } | |
4056 | if test ${ac_cv_prog_CC+y} | |
4057 | then : | |
4058 | printf %s "(cached) " >&6 | |
4059 | else $as_nop | |
a24b9f23 MA |
4060 | if test -n "$CC"; then |
4061 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4062 | else | |
4063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4064 | for as_dir in $PATH | |
4065 | do | |
4066 | IFS=$as_save_IFS | |
41f81b5c WW |
4067 | case $as_dir in #((( |
4068 | '') as_dir=./ ;; | |
4069 | */) ;; | |
4070 | *) as_dir=$as_dir/ ;; | |
4071 | esac | |
a24b9f23 | 4072 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c | 4073 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a24b9f23 | 4074 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
41f81b5c | 4075 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a24b9f23 MA |
4076 | break 2 |
4077 | fi | |
4078 | done | |
4079 | done | |
4080 | IFS=$as_save_IFS | |
529be52a | 4081 | |
529be52a | 4082 | fi |
529be52a | 4083 | fi |
a24b9f23 MA |
4084 | CC=$ac_cv_prog_CC |
4085 | if test -n "$CC"; then | |
41f81b5c WW |
4086 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4087 | printf "%s\n" "$CC" >&6; } | |
a24b9f23 | 4088 | else |
41f81b5c WW |
4089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4090 | printf "%s\n" "no" >&6; } | |
a24b9f23 | 4091 | fi |
529be52a | 4092 | |
529be52a | 4093 | |
a24b9f23 MA |
4094 | test -n "$CC" && break |
4095 | done | |
529be52a | 4096 | fi |
a24b9f23 MA |
4097 | if test -z "$CC"; then |
4098 | ac_ct_CC=$CC | |
4099 | for ac_prog in cl.exe | |
4100 | do | |
4101 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4102 | set dummy $ac_prog; ac_word=$2 | |
41f81b5c WW |
4103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4104 | printf %s "checking for $ac_word... " >&6; } | |
4105 | if test ${ac_cv_prog_ac_ct_CC+y} | |
4106 | then : | |
4107 | printf %s "(cached) " >&6 | |
4108 | else $as_nop | |
a24b9f23 MA |
4109 | if test -n "$ac_ct_CC"; then |
4110 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4111 | else | |
4112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4113 | for as_dir in $PATH | |
4114 | do | |
4115 | IFS=$as_save_IFS | |
41f81b5c WW |
4116 | case $as_dir in #((( |
4117 | '') as_dir=./ ;; | |
4118 | */) ;; | |
4119 | *) as_dir=$as_dir/ ;; | |
4120 | esac | |
a24b9f23 | 4121 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c | 4122 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a24b9f23 | 4123 | ac_cv_prog_ac_ct_CC="$ac_prog" |
41f81b5c | 4124 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a24b9f23 MA |
4125 | break 2 |
4126 | fi | |
4127 | done | |
4128 | done | |
4129 | IFS=$as_save_IFS | |
529be52a | 4130 | |
529be52a | 4131 | fi |
529be52a | 4132 | fi |
a24b9f23 MA |
4133 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4134 | if test -n "$ac_ct_CC"; then | |
41f81b5c WW |
4135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4136 | printf "%s\n" "$ac_ct_CC" >&6; } | |
a24b9f23 | 4137 | else |
41f81b5c WW |
4138 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4139 | printf "%s\n" "no" >&6; } | |
529be52a SR |
4140 | fi |
4141 | ||
4142 | ||
a24b9f23 MA |
4143 | test -n "$ac_ct_CC" && break |
4144 | done | |
529be52a | 4145 | |
a24b9f23 MA |
4146 | if test "x$ac_ct_CC" = x; then |
4147 | CC="" | |
4148 | else | |
4149 | case $cross_compiling:$ac_tool_warned in | |
4150 | yes:) | |
41f81b5c WW |
4151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4152 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4153 | ac_tool_warned=yes ;; | |
4154 | esac | |
4155 | CC=$ac_ct_CC | |
4156 | fi | |
4157 | fi | |
4158 | ||
4159 | fi | |
4160 | if test -z "$CC"; then | |
4161 | if test -n "$ac_tool_prefix"; then | |
4162 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
4163 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
4164 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4165 | printf %s "checking for $ac_word... " >&6; } | |
4166 | if test ${ac_cv_prog_CC+y} | |
4167 | then : | |
4168 | printf %s "(cached) " >&6 | |
4169 | else $as_nop | |
4170 | if test -n "$CC"; then | |
4171 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4172 | else | |
4173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4174 | for as_dir in $PATH | |
4175 | do | |
4176 | IFS=$as_save_IFS | |
4177 | case $as_dir in #((( | |
4178 | '') as_dir=./ ;; | |
4179 | */) ;; | |
4180 | *) as_dir=$as_dir/ ;; | |
4181 | esac | |
4182 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4183 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4184 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
4185 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4186 | break 2 | |
4187 | fi | |
4188 | done | |
4189 | done | |
4190 | IFS=$as_save_IFS | |
4191 | ||
4192 | fi | |
4193 | fi | |
4194 | CC=$ac_cv_prog_CC | |
4195 | if test -n "$CC"; then | |
4196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4197 | printf "%s\n" "$CC" >&6; } | |
4198 | else | |
4199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4200 | printf "%s\n" "no" >&6; } | |
4201 | fi | |
4202 | ||
4203 | ||
4204 | fi | |
4205 | if test -z "$ac_cv_prog_CC"; then | |
4206 | ac_ct_CC=$CC | |
4207 | # Extract the first word of "clang", so it can be a program name with args. | |
4208 | set dummy clang; ac_word=$2 | |
4209 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4210 | printf %s "checking for $ac_word... " >&6; } | |
4211 | if test ${ac_cv_prog_ac_ct_CC+y} | |
4212 | then : | |
4213 | printf %s "(cached) " >&6 | |
4214 | else $as_nop | |
4215 | if test -n "$ac_ct_CC"; then | |
4216 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4217 | else | |
4218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4219 | for as_dir in $PATH | |
4220 | do | |
4221 | IFS=$as_save_IFS | |
4222 | case $as_dir in #((( | |
4223 | '') as_dir=./ ;; | |
4224 | */) ;; | |
4225 | *) as_dir=$as_dir/ ;; | |
4226 | esac | |
4227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4228 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4229 | ac_cv_prog_ac_ct_CC="clang" | |
4230 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4231 | break 2 | |
4232 | fi | |
4233 | done | |
4234 | done | |
4235 | IFS=$as_save_IFS | |
4236 | ||
4237 | fi | |
4238 | fi | |
4239 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4240 | if test -n "$ac_ct_CC"; then | |
4241 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4242 | printf "%s\n" "$ac_ct_CC" >&6; } | |
4243 | else | |
4244 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4245 | printf "%s\n" "no" >&6; } | |
4246 | fi | |
4247 | ||
4248 | if test "x$ac_ct_CC" = x; then | |
4249 | CC="" | |
4250 | else | |
4251 | case $cross_compiling:$ac_tool_warned in | |
4252 | yes:) | |
4253 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4254 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a24b9f23 MA |
4255 | ac_tool_warned=yes ;; |
4256 | esac | |
4257 | CC=$ac_ct_CC | |
4258 | fi | |
41f81b5c WW |
4259 | else |
4260 | CC="$ac_cv_prog_CC" | |
529be52a SR |
4261 | fi |
4262 | ||
881442e2 SR |
4263 | fi |
4264 | ||
4265 | ||
41f81b5c WW |
4266 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4267 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
a24b9f23 MA |
4268 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4269 | See \`config.log' for more details" "$LINENO" 5; } | |
881442e2 | 4270 | |
a24b9f23 | 4271 | # Provide some information about the compiler. |
41f81b5c | 4272 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
a24b9f23 MA |
4273 | set X $ac_compile |
4274 | ac_compiler=$2 | |
41f81b5c | 4275 | for ac_option in --version -v -V -qversion -version; do |
a24b9f23 MA |
4276 | { { ac_try="$ac_compiler $ac_option >&5" |
4277 | case "(($ac_try" in | |
4278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4279 | *) ac_try_echo=$ac_try;; | |
4280 | esac | |
4281 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
41f81b5c | 4282 | printf "%s\n" "$ac_try_echo"; } >&5 |
a24b9f23 MA |
4283 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
4284 | ac_status=$? | |
4285 | if test -s conftest.err; then | |
4286 | sed '10a\ | |
4287 | ... rest of stderr output deleted ... | |
4288 | 10q' conftest.err >conftest.er1 | |
4289 | cat conftest.er1 >&5 | |
4290 | fi | |
4291 | rm -f conftest.er1 conftest.err | |
41f81b5c | 4292 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
a24b9f23 MA |
4293 | test $ac_status = 0; } |
4294 | done | |
881442e2 | 4295 | |
a24b9f23 MA |
4296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4297 | /* end confdefs.h. */ | |
529be52a | 4298 | |
a24b9f23 | 4299 | int |
41f81b5c | 4300 | main (void) |
a24b9f23 | 4301 | { |
529be52a | 4302 | |
a24b9f23 MA |
4303 | ; |
4304 | return 0; | |
4305 | } | |
4306 | _ACEOF | |
4307 | ac_clean_files_save=$ac_clean_files | |
4308 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
4309 | # Try to create an executable without -o first, disregard a.out. | |
4310 | # It will help us diagnose broken compilers, and finding out an intuition | |
4311 | # of exeext. | |
41f81b5c WW |
4312 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4313 | printf %s "checking whether the C compiler works... " >&6; } | |
4314 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
529be52a | 4315 | |
a24b9f23 MA |
4316 | # The possible output files: |
4317 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
529be52a | 4318 | |
a24b9f23 MA |
4319 | ac_rmfiles= |
4320 | for ac_file in $ac_files | |
4321 | do | |
4322 | case $ac_file in | |
4323 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4324 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4325 | esac | |
4326 | done | |
4327 | rm -f $ac_rmfiles | |
529be52a | 4328 | |
a24b9f23 MA |
4329 | if { { ac_try="$ac_link_default" |
4330 | case "(($ac_try" in | |
4331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4332 | *) ac_try_echo=$ac_try;; | |
4333 | esac | |
4334 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
41f81b5c | 4335 | printf "%s\n" "$ac_try_echo"; } >&5 |
a24b9f23 MA |
4336 | (eval "$ac_link_default") 2>&5 |
4337 | ac_status=$? | |
41f81b5c WW |
4338 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4339 | test $ac_status = 0; } | |
4340 | then : | |
a24b9f23 MA |
4341 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
4342 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4343 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4344 | # so that the user can short-circuit this test for compilers unknown to | |
4345 | # Autoconf. | |
4346 | for ac_file in $ac_files '' | |
4347 | do | |
4348 | test -f "$ac_file" || continue | |
4349 | case $ac_file in | |
4350 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4351 | ;; | |
4352 | [ab].out ) | |
4353 | # We found the default executable, but exeext='' is most | |
4354 | # certainly right. | |
4355 | break;; | |
4356 | *.* ) | |
41f81b5c | 4357 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
a24b9f23 MA |
4358 | then :; else |
4359 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4360 | fi | |
4361 | # We set ac_cv_exeext here because the later test for it is not | |
4362 | # safe: cross compilers may not add the suffix if given an `-o' | |
4363 | # argument, so we may need to know it at that point already. | |
4364 | # Even if this section looks crufty: it has the advantage of | |
4365 | # actually working. | |
4366 | break;; | |
4367 | * ) | |
4368 | break;; | |
4369 | esac | |
4370 | done | |
4371 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
529be52a | 4372 | |
41f81b5c | 4373 | else $as_nop |
a24b9f23 | 4374 | ac_file='' |
529be52a | 4375 | fi |
41f81b5c WW |
4376 | if test -z "$ac_file" |
4377 | then : | |
4378 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4379 | printf "%s\n" "no" >&6; } | |
4380 | printf "%s\n" "$as_me: failed program was:" >&5 | |
a24b9f23 | 4381 | sed 's/^/| /' conftest.$ac_ext >&5 |
529be52a | 4382 | |
41f81b5c WW |
4383 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4384 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
a24b9f23 MA |
4385 | as_fn_error 77 "C compiler cannot create executables |
4386 | See \`config.log' for more details" "$LINENO" 5; } | |
41f81b5c WW |
4387 | else $as_nop |
4388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4389 | printf "%s\n" "yes" >&6; } | |
4390 | fi | |
4391 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
4392 | printf %s "checking for C compiler default output file name... " >&6; } | |
4393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4394 | printf "%s\n" "$ac_file" >&6; } | |
a24b9f23 | 4395 | ac_exeext=$ac_cv_exeext |
529be52a | 4396 | |
a24b9f23 MA |
4397 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
4398 | ac_clean_files=$ac_clean_files_save | |
41f81b5c WW |
4399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4400 | printf %s "checking for suffix of executables... " >&6; } | |
a24b9f23 MA |
4401 | if { { ac_try="$ac_link" |
4402 | case "(($ac_try" in | |
4403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4404 | *) ac_try_echo=$ac_try;; | |
529be52a | 4405 | esac |
a24b9f23 | 4406 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
41f81b5c | 4407 | printf "%s\n" "$ac_try_echo"; } >&5 |
a24b9f23 MA |
4408 | (eval "$ac_link") 2>&5 |
4409 | ac_status=$? | |
41f81b5c WW |
4410 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4411 | test $ac_status = 0; } | |
4412 | then : | |
a24b9f23 MA |
4413 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4414 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4415 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4416 | # `rm'. | |
4417 | for ac_file in conftest.exe conftest conftest.*; do | |
4418 | test -f "$ac_file" || continue | |
4419 | case $ac_file in | |
4420 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4421 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4422 | break;; | |
4423 | * ) break;; | |
4424 | esac | |
4425 | done | |
41f81b5c WW |
4426 | else $as_nop |
4427 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4428 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
a24b9f23 MA |
4429 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4430 | See \`config.log' for more details" "$LINENO" 5; } | |
529be52a | 4431 | fi |
a24b9f23 | 4432 | rm -f conftest conftest$ac_cv_exeext |
41f81b5c WW |
4433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4434 | printf "%s\n" "$ac_cv_exeext" >&6; } | |
529be52a | 4435 | |
a24b9f23 MA |
4436 | rm -f conftest.$ac_ext |
4437 | EXEEXT=$ac_cv_exeext | |
4438 | ac_exeext=$EXEEXT | |
4439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4440 | /* end confdefs.h. */ | |
4441 | #include <stdio.h> | |
4442 | int | |
41f81b5c | 4443 | main (void) |
a24b9f23 MA |
4444 | { |
4445 | FILE *f = fopen ("conftest.out", "w"); | |
4446 | return ferror (f) || fclose (f) != 0; | |
529be52a | 4447 | |
a24b9f23 MA |
4448 | ; |
4449 | return 0; | |
4450 | } | |
4451 | _ACEOF | |
4452 | ac_clean_files="$ac_clean_files conftest.out" | |
4453 | # Check that the compiler produces executables we can run. If not, either | |
4454 | # the compiler is broken, or we cross compile. | |
41f81b5c WW |
4455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4456 | printf %s "checking whether we are cross compiling... " >&6; } | |
a24b9f23 MA |
4457 | if test "$cross_compiling" != yes; then |
4458 | { { ac_try="$ac_link" | |
4459 | case "(($ac_try" in | |
4460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4461 | *) ac_try_echo=$ac_try;; | |
4462 | esac | |
4463 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
41f81b5c | 4464 | printf "%s\n" "$ac_try_echo"; } >&5 |
a24b9f23 MA |
4465 | (eval "$ac_link") 2>&5 |
4466 | ac_status=$? | |
41f81b5c | 4467 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
a24b9f23 MA |
4468 | test $ac_status = 0; } |
4469 | if { ac_try='./conftest$ac_cv_exeext' | |
4470 | { { case "(($ac_try" in | |
4471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4472 | *) ac_try_echo=$ac_try;; | |
4473 | esac | |
4474 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
41f81b5c | 4475 | printf "%s\n" "$ac_try_echo"; } >&5 |
a24b9f23 MA |
4476 | (eval "$ac_try") 2>&5 |
4477 | ac_status=$? | |
41f81b5c | 4478 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
a24b9f23 MA |
4479 | test $ac_status = 0; }; }; then |
4480 | cross_compiling=no | |
4481 | else | |
4482 | if test "$cross_compiling" = maybe; then | |
4483 | cross_compiling=yes | |
4484 | else | |
41f81b5c WW |
4485 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4486 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
4487 | as_fn_error 77 "cannot run C compiled programs. | |
a24b9f23 MA |
4488 | If you meant to cross compile, use \`--host'. |
4489 | See \`config.log' for more details" "$LINENO" 5; } | |
4490 | fi | |
529be52a SR |
4491 | fi |
4492 | fi | |
41f81b5c WW |
4493 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
4494 | printf "%s\n" "$cross_compiling" >&6; } | |
529be52a | 4495 | |
a24b9f23 MA |
4496 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
4497 | ac_clean_files=$ac_clean_files_save | |
41f81b5c WW |
4498 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4499 | printf %s "checking for suffix of object files... " >&6; } | |
4500 | if test ${ac_cv_objext+y} | |
4501 | then : | |
4502 | printf %s "(cached) " >&6 | |
4503 | else $as_nop | |
a24b9f23 MA |
4504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4505 | /* end confdefs.h. */ | |
529be52a | 4506 | |
a24b9f23 | 4507 | int |
41f81b5c | 4508 | main (void) |
a24b9f23 MA |
4509 | { |
4510 | ||
4511 | ; | |
4512 | return 0; | |
4513 | } | |
4514 | _ACEOF | |
4515 | rm -f conftest.o conftest.obj | |
4516 | if { { ac_try="$ac_compile" | |
4517 | case "(($ac_try" in | |
4518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4519 | *) ac_try_echo=$ac_try;; | |
529be52a | 4520 | esac |
a24b9f23 | 4521 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
41f81b5c | 4522 | printf "%s\n" "$ac_try_echo"; } >&5 |
a24b9f23 MA |
4523 | (eval "$ac_compile") 2>&5 |
4524 | ac_status=$? | |
41f81b5c WW |
4525 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4526 | test $ac_status = 0; } | |
4527 | then : | |
a24b9f23 MA |
4528 | for ac_file in conftest.o conftest.obj conftest.*; do |
4529 | test -f "$ac_file" || continue; | |
4530 | case $ac_file in | |
4531 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4532 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4533 | break;; | |
4534 | esac | |
4535 | done | |
41f81b5c WW |
4536 | else $as_nop |
4537 | printf "%s\n" "$as_me: failed program was:" >&5 | |
a24b9f23 | 4538 | sed 's/^/| /' conftest.$ac_ext >&5 |
529be52a | 4539 | |
41f81b5c WW |
4540 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4541 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
a24b9f23 MA |
4542 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4543 | See \`config.log' for more details" "$LINENO" 5; } | |
4544 | fi | |
4545 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4546 | fi | |
41f81b5c WW |
4547 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4548 | printf "%s\n" "$ac_cv_objext" >&6; } | |
a24b9f23 MA |
4549 | OBJEXT=$ac_cv_objext |
4550 | ac_objext=$OBJEXT | |
41f81b5c WW |
4551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
4552 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
4553 | if test ${ac_cv_c_compiler_gnu+y} | |
4554 | then : | |
4555 | printf %s "(cached) " >&6 | |
4556 | else $as_nop | |
a24b9f23 MA |
4557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4558 | /* end confdefs.h. */ | |
529be52a | 4559 | |
a24b9f23 | 4560 | int |
41f81b5c | 4561 | main (void) |
a24b9f23 MA |
4562 | { |
4563 | #ifndef __GNUC__ | |
4564 | choke me | |
4565 | #endif | |
4566 | ||
4567 | ; | |
4568 | return 0; | |
4569 | } | |
529be52a | 4570 | _ACEOF |
41f81b5c WW |
4571 | if ac_fn_c_try_compile "$LINENO" |
4572 | then : | |
a24b9f23 | 4573 | ac_compiler_gnu=yes |
41f81b5c | 4574 | else $as_nop |
a24b9f23 MA |
4575 | ac_compiler_gnu=no |
4576 | fi | |
41f81b5c | 4577 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 | 4578 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
529be52a SR |
4579 | |
4580 | fi | |
41f81b5c WW |
4581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4582 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
4583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4584 | ||
a24b9f23 MA |
4585 | if test $ac_compiler_gnu = yes; then |
4586 | GCC=yes | |
4587 | else | |
4588 | GCC= | |
4589 | fi | |
41f81b5c | 4590 | ac_test_CFLAGS=${CFLAGS+y} |
a24b9f23 | 4591 | ac_save_CFLAGS=$CFLAGS |
41f81b5c WW |
4592 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4593 | printf %s "checking whether $CC accepts -g... " >&6; } | |
4594 | if test ${ac_cv_prog_cc_g+y} | |
4595 | then : | |
4596 | printf %s "(cached) " >&6 | |
4597 | else $as_nop | |
a24b9f23 MA |
4598 | ac_save_c_werror_flag=$ac_c_werror_flag |
4599 | ac_c_werror_flag=yes | |
4600 | ac_cv_prog_cc_g=no | |
4601 | CFLAGS="-g" | |
4602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4603 | /* end confdefs.h. */ | |
d5e0cd6f | 4604 | |
a24b9f23 | 4605 | int |
41f81b5c | 4606 | main (void) |
a24b9f23 | 4607 | { |
529be52a | 4608 | |
a24b9f23 MA |
4609 | ; |
4610 | return 0; | |
4611 | } | |
4612 | _ACEOF | |
41f81b5c WW |
4613 | if ac_fn_c_try_compile "$LINENO" |
4614 | then : | |
a24b9f23 | 4615 | ac_cv_prog_cc_g=yes |
41f81b5c | 4616 | else $as_nop |
a24b9f23 MA |
4617 | CFLAGS="" |
4618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4619 | /* end confdefs.h. */ | |
d5e0cd6f | 4620 | |
a24b9f23 | 4621 | int |
41f81b5c | 4622 | main (void) |
a24b9f23 | 4623 | { |
d5e0cd6f | 4624 | |
a24b9f23 MA |
4625 | ; |
4626 | return 0; | |
4627 | } | |
529be52a | 4628 | _ACEOF |
41f81b5c WW |
4629 | if ac_fn_c_try_compile "$LINENO" |
4630 | then : | |
d5e0cd6f | 4631 | |
41f81b5c | 4632 | else $as_nop |
a24b9f23 MA |
4633 | ac_c_werror_flag=$ac_save_c_werror_flag |
4634 | CFLAGS="-g" | |
4635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4636 | /* end confdefs.h. */ | |
d5e0cd6f | 4637 | |
a24b9f23 | 4638 | int |
41f81b5c | 4639 | main (void) |
a24b9f23 | 4640 | { |
d5e0cd6f | 4641 | |
a24b9f23 MA |
4642 | ; |
4643 | return 0; | |
4644 | } | |
4645 | _ACEOF | |
41f81b5c WW |
4646 | if ac_fn_c_try_compile "$LINENO" |
4647 | then : | |
a24b9f23 | 4648 | ac_cv_prog_cc_g=yes |
4a70cb10 | 4649 | fi |
41f81b5c | 4650 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 | 4651 | fi |
41f81b5c | 4652 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 | 4653 | fi |
41f81b5c | 4654 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 MA |
4655 | ac_c_werror_flag=$ac_save_c_werror_flag |
4656 | fi | |
41f81b5c WW |
4657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4658 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
4659 | if test $ac_test_CFLAGS; then | |
a24b9f23 MA |
4660 | CFLAGS=$ac_save_CFLAGS |
4661 | elif test $ac_cv_prog_cc_g = yes; then | |
4662 | if test "$GCC" = yes; then | |
4663 | CFLAGS="-g -O2" | |
4664 | else | |
4665 | CFLAGS="-g" | |
4666 | fi | |
4667 | else | |
4668 | if test "$GCC" = yes; then | |
4669 | CFLAGS="-O2" | |
4670 | else | |
4671 | CFLAGS= | |
4672 | fi | |
4673 | fi | |
41f81b5c WW |
4674 | ac_prog_cc_stdc=no |
4675 | if test x$ac_prog_cc_stdc = xno | |
4676 | then : | |
4677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
4678 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
4679 | if test ${ac_cv_prog_cc_c11+y} | |
4680 | then : | |
4681 | printf %s "(cached) " >&6 | |
4682 | else $as_nop | |
4683 | ac_cv_prog_cc_c11=no | |
a24b9f23 MA |
4684 | ac_save_CC=$CC |
4685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4686 | /* end confdefs.h. */ | |
41f81b5c WW |
4687 | $ac_c_conftest_c11_program |
4688 | _ACEOF | |
4689 | for ac_arg in '' -std=gnu11 | |
4690 | do | |
4691 | CC="$ac_save_CC $ac_arg" | |
4692 | if ac_fn_c_try_compile "$LINENO" | |
4693 | then : | |
4694 | ac_cv_prog_cc_c11=$ac_arg | |
4695 | fi | |
4696 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4697 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
4698 | done | |
4699 | rm -f conftest.$ac_ext | |
4700 | CC=$ac_save_CC | |
4701 | fi | |
d5e0cd6f | 4702 | |
41f81b5c WW |
4703 | if test "x$ac_cv_prog_cc_c11" = xno |
4704 | then : | |
4705 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4706 | printf "%s\n" "unsupported" >&6; } | |
4707 | else $as_nop | |
4708 | if test "x$ac_cv_prog_cc_c11" = x | |
4709 | then : | |
4710 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4711 | printf "%s\n" "none needed" >&6; } | |
4712 | else $as_nop | |
4713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
4714 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
4715 | CC="$CC $ac_cv_prog_cc_c11" | |
4716 | fi | |
4717 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
4718 | ac_prog_cc_stdc=c11 | |
4719 | fi | |
4720 | fi | |
4721 | if test x$ac_prog_cc_stdc = xno | |
4722 | then : | |
4723 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
4724 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
4725 | if test ${ac_cv_prog_cc_c99+y} | |
4726 | then : | |
4727 | printf %s "(cached) " >&6 | |
4728 | else $as_nop | |
4729 | ac_cv_prog_cc_c99=no | |
4730 | ac_save_CC=$CC | |
4731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4732 | /* end confdefs.h. */ | |
4733 | $ac_c_conftest_c99_program | |
4734 | _ACEOF | |
4735 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
4736 | do | |
4737 | CC="$ac_save_CC $ac_arg" | |
4738 | if ac_fn_c_try_compile "$LINENO" | |
4739 | then : | |
4740 | ac_cv_prog_cc_c99=$ac_arg | |
4741 | fi | |
4742 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4743 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4744 | done | |
4745 | rm -f conftest.$ac_ext | |
4746 | CC=$ac_save_CC | |
4747 | fi | |
d5e0cd6f | 4748 | |
41f81b5c WW |
4749 | if test "x$ac_cv_prog_cc_c99" = xno |
4750 | then : | |
4751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4752 | printf "%s\n" "unsupported" >&6; } | |
4753 | else $as_nop | |
4754 | if test "x$ac_cv_prog_cc_c99" = x | |
4755 | then : | |
4756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4757 | printf "%s\n" "none needed" >&6; } | |
4758 | else $as_nop | |
4759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
4760 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
4761 | CC="$CC $ac_cv_prog_cc_c99" | |
4762 | fi | |
4763 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
4764 | ac_prog_cc_stdc=c99 | |
4765 | fi | |
4766 | fi | |
4767 | if test x$ac_prog_cc_stdc = xno | |
4768 | then : | |
4769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
4770 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
4771 | if test ${ac_cv_prog_cc_c89+y} | |
4772 | then : | |
4773 | printf %s "(cached) " >&6 | |
4774 | else $as_nop | |
4775 | ac_cv_prog_cc_c89=no | |
4776 | ac_save_CC=$CC | |
4777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4778 | /* end confdefs.h. */ | |
4779 | $ac_c_conftest_c89_program | |
d5e0cd6f | 4780 | _ACEOF |
41f81b5c | 4781 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
a24b9f23 MA |
4782 | do |
4783 | CC="$ac_save_CC $ac_arg" | |
41f81b5c WW |
4784 | if ac_fn_c_try_compile "$LINENO" |
4785 | then : | |
a24b9f23 | 4786 | ac_cv_prog_cc_c89=$ac_arg |
d5e0cd6f | 4787 | fi |
41f81b5c | 4788 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
a24b9f23 MA |
4789 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
4790 | done | |
4791 | rm -f conftest.$ac_ext | |
4792 | CC=$ac_save_CC | |
a24b9f23 | 4793 | fi |
d5e0cd6f | 4794 | |
41f81b5c WW |
4795 | if test "x$ac_cv_prog_cc_c89" = xno |
4796 | then : | |
4797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4798 | printf "%s\n" "unsupported" >&6; } | |
4799 | else $as_nop | |
4800 | if test "x$ac_cv_prog_cc_c89" = x | |
4801 | then : | |
4802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4803 | printf "%s\n" "none needed" >&6; } | |
4804 | else $as_nop | |
4805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4806 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
4807 | CC="$CC $ac_cv_prog_cc_c89" | |
4808 | fi | |
4809 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
4810 | ac_prog_cc_stdc=c89 | |
4811 | fi | |
d5e0cd6f | 4812 | fi |
d5e0cd6f | 4813 | |
a24b9f23 MA |
4814 | ac_ext=c |
4815 | ac_cpp='$CPP $CPPFLAGS' | |
4816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
69e9da00 | 4819 | |
41f81b5c WW |
4820 | |
4821 | ac_ext=c | |
69e9da00 TM |
4822 | ac_cpp='$CPP $CPPFLAGS' |
4823 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4824 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4825 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41f81b5c WW |
4826 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
4827 | printf %s "checking whether $CC understands -c and -o together... " >&6; } | |
4828 | if test ${am_cv_prog_cc_c_o+y} | |
4829 | then : | |
4830 | printf %s "(cached) " >&6 | |
4831 | else $as_nop | |
69e9da00 TM |
4832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4833 | /* end confdefs.h. */ | |
4834 | ||
4835 | int | |
41f81b5c | 4836 | main (void) |
69e9da00 TM |
4837 | { |
4838 | ||
4839 | ; | |
4840 | return 0; | |
4841 | } | |
4842 | _ACEOF | |
4843 | # Make sure it works both with $CC and with simple cc. | |
4844 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4845 | # compilers refuse to overwrite an existing .o file with -o, | |
4846 | # though they will create one. | |
4847 | am_cv_prog_cc_c_o=yes | |
4848 | for am_i in 1 2; do | |
4849 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4850 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4851 | ac_status=$? | |
4852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4853 | (exit $ac_status); } \ | |
4854 | && test -f conftest2.$ac_objext; then | |
4855 | : OK | |
4856 | else | |
4857 | am_cv_prog_cc_c_o=no | |
4858 | break | |
4859 | fi | |
4860 | done | |
4861 | rm -f core conftest* | |
4862 | unset am_i | |
4863 | fi | |
41f81b5c WW |
4864 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
4865 | printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } | |
69e9da00 TM |
4866 | if test "$am_cv_prog_cc_c_o" != yes; then |
4867 | # Losing compiler, so override with the script. | |
4868 | # FIXME: It is wrong to rewrite CC. | |
4869 | # But if we don't then we get into trouble of one sort or another. | |
4870 | # A longer-term fix would be to have automake use am__CC in this case, | |
4871 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4872 | CC="$am_aux_dir/compile $CC" | |
4873 | fi | |
4874 | ac_ext=c | |
4875 | ac_cpp='$CPP $CPPFLAGS' | |
4876 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4877 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4878 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4879 | ||
a24b9f23 MA |
4880 | DEPDIR="${am__leading_dot}deps" |
4881 | ||
4882 | ac_config_commands="$ac_config_commands depfiles" | |
d5e0cd6f | 4883 | |
41f81b5c WW |
4884 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
4885 | printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } | |
0cd94b5e | 4886 | cat > confinc.mk << 'END' |
a24b9f23 | 4887 | am__doit: |
0cd94b5e | 4888 | @echo this is the am__doit target >confinc.out |
a24b9f23 MA |
4889 | .PHONY: am__doit |
4890 | END | |
a24b9f23 MA |
4891 | am__include="#" |
4892 | am__quote= | |
0cd94b5e TM |
4893 | # BSD make does it like this. |
4894 | echo '.include "confinc.mk" # ignored' > confmf.BSD | |
4895 | # Other make implementations (GNU, Solaris 10, AIX) do it like this. | |
4896 | echo 'include confinc.mk # ignored' > confmf.GNU | |
4897 | _am_result=no | |
4898 | for s in GNU BSD; do | |
4899 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 | |
4900 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 | |
4901 | ac_status=$? | |
4902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4903 | (exit $ac_status); } | |
4904 | case $?:`cat confinc.out 2>/dev/null` in #( | |
4905 | '0:this is the am__doit target') : | |
4906 | case $s in #( | |
4907 | BSD) : | |
4908 | am__include='.include' am__quote='"' ;; #( | |
4909 | *) : | |
4910 | am__include='include' am__quote='' ;; | |
4911 | esac ;; #( | |
4912 | *) : | |
a24b9f23 | 4913 | ;; |
0cd94b5e TM |
4914 | esac |
4915 | if test "$am__include" != "#"; then | |
4916 | _am_result="yes ($s style)" | |
4917 | break | |
4918 | fi | |
4919 | done | |
4920 | rm -f confinc.* confmf.* | |
41f81b5c WW |
4921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
4922 | printf "%s\n" "${_am_result}" >&6; } | |
a24b9f23 MA |
4923 | |
4924 | # Check whether --enable-dependency-tracking was given. | |
41f81b5c WW |
4925 | if test ${enable_dependency_tracking+y} |
4926 | then : | |
a24b9f23 | 4927 | enableval=$enable_dependency_tracking; |
4a70cb10 | 4928 | fi |
d5e0cd6f | 4929 | |
a24b9f23 MA |
4930 | if test "x$enable_dependency_tracking" != xno; then |
4931 | am_depcomp="$ac_aux_dir/depcomp" | |
4932 | AMDEPBACKSLASH='\' | |
4933 | am__nodep='_no' | |
4934 | fi | |
4935 | if test "x$enable_dependency_tracking" != xno; then | |
4936 | AMDEP_TRUE= | |
4937 | AMDEP_FALSE='#' | |
4938 | else | |
4939 | AMDEP_TRUE='#' | |
4940 | AMDEP_FALSE= | |
4941 | fi | |
d5e0cd6f | 4942 | |
d5e0cd6f | 4943 | |
d5e0cd6f | 4944 | |
a24b9f23 | 4945 | depcc="$CC" am_compiler_list= |
d5e0cd6f | 4946 | |
41f81b5c WW |
4947 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4948 | printf %s "checking dependency style of $depcc... " >&6; } | |
4949 | if test ${am_cv_CC_dependencies_compiler_type+y} | |
4950 | then : | |
4951 | printf %s "(cached) " >&6 | |
4952 | else $as_nop | |
a24b9f23 MA |
4953 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4954 | # We make a subdir and do the tests there. Otherwise we can end up | |
4955 | # making bogus files that we don't know about and never remove. For | |
4956 | # instance it was reported that on HP-UX the gcc test will end up | |
4957 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4958 | # in D". | |
4959 | rm -rf conftest.dir | |
4960 | mkdir conftest.dir | |
4961 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4962 | # using a relative directory. | |
4963 | cp "$am_depcomp" conftest.dir | |
4964 | cd conftest.dir | |
4965 | # We will build objects and dependencies in a subdirectory because | |
4966 | # it helps to detect inapplicable dependency modes. For instance | |
4967 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4968 | # side effect of compilation, but ICC will put the dependencies in | |
4969 | # the current directory while Tru64 will put them in the object | |
4970 | # directory. | |
4971 | mkdir sub | |
4a70cb10 | 4972 | |
a24b9f23 MA |
4973 | am_cv_CC_dependencies_compiler_type=none |
4974 | if test "$am_compiler_list" = ""; then | |
4975 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4976 | fi | |
4977 | am__universal=false | |
4978 | case " $depcc " in #( | |
4979 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4980 | esac | |
d5e0cd6f | 4981 | |
a24b9f23 MA |
4982 | for depmode in $am_compiler_list; do |
4983 | # Setup a source with many dependencies, because some compilers | |
4984 | # like to wrap large dependency lists on column 80 (with \), and | |
4985 | # we should not choose a depcomp mode which is confused by this. | |
4986 | # | |
4987 | # We need to recreate these files for each test, as the compiler may | |
4988 | # overwrite some of them when testing with obscure command lines. | |
4989 | # This happens at least with the AIX C compiler. | |
4990 | : > sub/conftest.c | |
4991 | for i in 1 2 3 4 5 6; do | |
4992 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4993 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4994 | # Solaris 10 /bin/sh. | |
4995 | echo '/* dummy */' > sub/conftst$i.h | |
4996 | done | |
4997 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
529be52a | 4998 | |
a24b9f23 MA |
4999 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
5000 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5001 | # handle '-M -o', and we need to detect this. Also, some Intel | |
5002 | # versions had trouble with output in subdirs. | |
5003 | am__obj=sub/conftest.${OBJEXT-o} | |
5004 | am__minus_obj="-o $am__obj" | |
5005 | case $depmode in | |
5006 | gcc) | |
5007 | # This depmode causes a compiler race in universal mode. | |
5008 | test "$am__universal" = false || continue | |
5009 | ;; | |
5010 | nosideeffect) | |
5011 | # After this tag, mechanisms are not by side-effect, so they'll | |
5012 | # only be used when explicitly requested. | |
5013 | if test "x$enable_dependency_tracking" = xyes; then | |
5014 | continue | |
5015 | else | |
5016 | break | |
5017 | fi | |
5018 | ;; | |
5019 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
5020 | # This compiler won't grok '-c -o', but also, the minuso test has | |
5021 | # not run yet. These depmodes are late enough in the game, and | |
5022 | # so weak that their functioning should not be impacted. | |
5023 | am__obj=conftest.${OBJEXT-o} | |
5024 | am__minus_obj= | |
5025 | ;; | |
5026 | none) break ;; | |
5027 | esac | |
5028 | if depmode=$depmode \ | |
5029 | source=sub/conftest.c object=$am__obj \ | |
5030 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5031 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5032 | >/dev/null 2>conftest.err && | |
5033 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5034 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5035 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5036 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5037 | # icc doesn't choke on unknown options, it will just issue warnings | |
5038 | # or remarks (even with -Werror). So we grep stderr for any message | |
5039 | # that says an option was ignored or not supported. | |
5040 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5041 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5042 | # The diagnosis changed in icc 8.0: | |
5043 | # icc: Command line remark: option '-MP' not supported | |
5044 | if (grep 'ignoring option' conftest.err || | |
5045 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5046 | am_cv_CC_dependencies_compiler_type=$depmode | |
5047 | break | |
5048 | fi | |
5049 | fi | |
5050 | done | |
529be52a | 5051 | |
a24b9f23 MA |
5052 | cd .. |
5053 | rm -rf conftest.dir | |
5054 | else | |
5055 | am_cv_CC_dependencies_compiler_type=none | |
d5e0cd6f | 5056 | fi |
d5e0cd6f | 5057 | |
4a70cb10 | 5058 | fi |
41f81b5c WW |
5059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
5060 | printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } | |
a24b9f23 | 5061 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
9d6af565 | 5062 | |
a24b9f23 MA |
5063 | if |
5064 | test "x$enable_dependency_tracking" != xno \ | |
5065 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5066 | am__fastdepCC_TRUE= | |
5067 | am__fastdepCC_FALSE='#' | |
5068 | else | |
5069 | am__fastdepCC_TRUE='#' | |
5070 | am__fastdepCC_FALSE= | |
5071 | fi | |
529be52a | 5072 | |
529be52a | 5073 | |
529be52a | 5074 | |
a24b9f23 | 5075 | # Suppress warnings about --datarootdir |
529be52a | 5076 | |
529be52a | 5077 | |
a24b9f23 MA |
5078 | # If we have gcc, and AC_PROG_CC changed the flags, then we know the |
5079 | # user did not specify any flags. Add warnings in this case. | |
5080 | if test "$GCC" = "yes"; then | |
5081 | if test "$CFLAGS" != "$SAVE_CFLAGS"; then | |
5082 | STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing" | |
5083 | fi | |
4a70cb10 | 5084 | fi |
4a70cb10 | 5085 | |
6913a589 FD |
5086 | # We can have some flags to pass to bind configure |
5087 | BINDCONFIG= | |
b4a10c76 FD |
5088 | if test "$cross_compiling" = "yes"; then |
5089 | BINDCONFIG="--host=$host" | |
5090 | fi | |
c87db1b1 FD |
5091 | # Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..." |
5092 | # and as there can be a space inside an argument some magic is required. | |
5093 | # This sets $1 ... $N to my_configure_args, arg1 ... argN | |
5094 | eval "set my_configure_args $ac_configure_args" | |
5095 | # remove my_configure_args, i.e., the guard against empty $ac_configure_args | |
5096 | shift | |
5097 | # iterate on arguments and copying 'arg' when it begins by an upper case | |
5098 | for a | |
5099 | do | |
5100 | case $a in | |
5101 | [A-Z]*) BINDCONFIG="$BINDCONFIG '$a'" ;; | |
5102 | esac | |
5103 | done | |
b4a10c76 | 5104 | |
6913a589 | 5105 | |
a24b9f23 MA |
5106 | # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides |
5107 | # parts of the IPv6 Advanced Socket API as a result. This is stupid | |
5108 | # as it breaks how the two halves (Basic and Advanced) of the IPv6 | |
5109 | # Socket API were designed to be used but we have to live with it. | |
5110 | # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. | |
4a70cb10 | 5111 | |
41f81b5c WW |
5112 | ac_header= ac_cache= |
5113 | for ac_item in $ac_header_c_list | |
a24b9f23 | 5114 | do |
41f81b5c WW |
5115 | if test $ac_cache; then |
5116 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" | |
5117 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then | |
5118 | printf "%s\n" "#define $ac_item 1" >> confdefs.h | |
5119 | fi | |
5120 | ac_header= ac_cache= | |
5121 | elif test $ac_header; then | |
5122 | ac_cache=$ac_item | |
5123 | else | |
5124 | ac_header=$ac_item | |
5125 | fi | |
a24b9f23 | 5126 | done |
529be52a SR |
5127 | |
5128 | ||
529be52a | 5129 | |
529be52a | 5130 | |
4a70cb10 | 5131 | |
a24b9f23 | 5132 | |
529be52a | 5133 | |
529be52a | 5134 | |
41f81b5c WW |
5135 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
5136 | then : | |
529be52a | 5137 | |
41f81b5c | 5138 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
4a70cb10 | 5139 | |
d5e0cd6f | 5140 | fi |
4a70cb10 | 5141 | |
d5e0cd6f DH |
5142 | |
5143 | ||
4a70cb10 | 5144 | |
4a70cb10 TM |
5145 | |
5146 | ||
41f81b5c WW |
5147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
5148 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5149 | if test ${ac_cv_safe_to_define___extensions__+y} | |
5150 | then : | |
5151 | printf %s "(cached) " >&6 | |
5152 | else $as_nop | |
a24b9f23 | 5153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d5e0cd6f | 5154 | /* end confdefs.h. */ |
a24b9f23 | 5155 | |
41f81b5c WW |
5156 | # define __EXTENSIONS__ 1 |
5157 | $ac_includes_default | |
529be52a | 5158 | int |
41f81b5c | 5159 | main (void) |
529be52a | 5160 | { |
4a70cb10 | 5161 | |
529be52a SR |
5162 | ; |
5163 | return 0; | |
5164 | } | |
5165 | _ACEOF | |
41f81b5c WW |
5166 | if ac_fn_c_try_compile "$LINENO" |
5167 | then : | |
5168 | ac_cv_safe_to_define___extensions__=yes | |
5169 | else $as_nop | |
5170 | ac_cv_safe_to_define___extensions__=no | |
a24b9f23 | 5171 | fi |
41f81b5c | 5172 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4a70cb10 | 5173 | fi |
41f81b5c WW |
5174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
5175 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } | |
d5e0cd6f | 5176 | |
41f81b5c WW |
5177 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
5178 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } | |
5179 | if test ${ac_cv_should_define__xopen_source+y} | |
5180 | then : | |
5181 | printf %s "(cached) " >&6 | |
5182 | else $as_nop | |
5183 | ac_cv_should_define__xopen_source=no | |
5184 | if test $ac_cv_header_wchar_h = yes | |
5185 | then : | |
a24b9f23 MA |
5186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5187 | /* end confdefs.h. */ | |
4a70cb10 | 5188 | |
41f81b5c WW |
5189 | #include <wchar.h> |
5190 | mbstate_t x; | |
5191 | int | |
5192 | main (void) | |
5193 | { | |
d5e0cd6f | 5194 | |
41f81b5c WW |
5195 | ; |
5196 | return 0; | |
5197 | } | |
5198 | _ACEOF | |
5199 | if ac_fn_c_try_compile "$LINENO" | |
5200 | then : | |
d5e0cd6f | 5201 | |
41f81b5c | 5202 | else $as_nop |
a24b9f23 MA |
5203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5204 | /* end confdefs.h. */ | |
d5e0cd6f | 5205 | |
41f81b5c WW |
5206 | #define _XOPEN_SOURCE 500 |
5207 | #include <wchar.h> | |
5208 | mbstate_t x; | |
4a70cb10 | 5209 | int |
41f81b5c | 5210 | main (void) |
4a70cb10 | 5211 | { |
41f81b5c WW |
5212 | |
5213 | ; | |
4a70cb10 TM |
5214 | return 0; |
5215 | } | |
d5e0cd6f | 5216 | _ACEOF |
41f81b5c WW |
5217 | if ac_fn_c_try_compile "$LINENO" |
5218 | then : | |
5219 | ac_cv_should_define__xopen_source=yes | |
a24b9f23 | 5220 | fi |
41f81b5c | 5221 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 | 5222 | fi |
41f81b5c | 5223 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
529be52a | 5224 | fi |
a24b9f23 | 5225 | fi |
41f81b5c WW |
5226 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
5227 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } | |
d5e0cd6f | 5228 | |
41f81b5c | 5229 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
a24b9f23 | 5230 | |
41f81b5c | 5231 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
a24b9f23 | 5232 | |
41f81b5c | 5233 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
a24b9f23 | 5234 | |
41f81b5c | 5235 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
a24b9f23 | 5236 | |
41f81b5c | 5237 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
a24b9f23 | 5238 | |
41f81b5c | 5239 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
a24b9f23 | 5240 | |
41f81b5c | 5241 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
a24b9f23 | 5242 | |
41f81b5c | 5243 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
a24b9f23 | 5244 | |
41f81b5c | 5245 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
a24b9f23 | 5246 | |
41f81b5c | 5247 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
a24b9f23 | 5248 | |
41f81b5c | 5249 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
a24b9f23 | 5250 | |
41f81b5c | 5251 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
a24b9f23 | 5252 | |
41f81b5c | 5253 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
529be52a | 5254 | |
41f81b5c | 5255 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
529be52a | 5256 | |
41f81b5c | 5257 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
a24b9f23 | 5258 | |
41f81b5c WW |
5259 | if test $ac_cv_header_minix_config_h = yes |
5260 | then : | |
5261 | MINIX=yes | |
5262 | printf "%s\n" "#define _MINIX 1" >>confdefs.h | |
a24b9f23 | 5263 | |
41f81b5c | 5264 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
a24b9f23 | 5265 | |
41f81b5c | 5266 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d5e0cd6f | 5267 | |
41f81b5c WW |
5268 | else $as_nop |
5269 | MINIX= | |
d5e0cd6f | 5270 | fi |
41f81b5c WW |
5271 | if test $ac_cv_safe_to_define___extensions__ = yes |
5272 | then : | |
5273 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h | |
529be52a | 5274 | |
41f81b5c WW |
5275 | fi |
5276 | if test $ac_cv_should_define__xopen_source = yes | |
5277 | then : | |
5278 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h | |
4a70cb10 | 5279 | |
41f81b5c | 5280 | fi |
529be52a SR |
5281 | |
5282 | ||
a24b9f23 MA |
5283 | if test -n "$ac_tool_prefix"; then |
5284 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5285 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
41f81b5c WW |
5286 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5287 | printf %s "checking for $ac_word... " >&6; } | |
5288 | if test ${ac_cv_prog_RANLIB+y} | |
5289 | then : | |
5290 | printf %s "(cached) " >&6 | |
5291 | else $as_nop | |
a24b9f23 MA |
5292 | if test -n "$RANLIB"; then |
5293 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5294 | else | |
5295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5296 | for as_dir in $PATH | |
5297 | do | |
5298 | IFS=$as_save_IFS | |
41f81b5c WW |
5299 | case $as_dir in #((( |
5300 | '') as_dir=./ ;; | |
5301 | */) ;; | |
5302 | *) as_dir=$as_dir/ ;; | |
5303 | esac | |
a24b9f23 | 5304 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c | 5305 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a24b9f23 | 5306 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
41f81b5c | 5307 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a24b9f23 MA |
5308 | break 2 |
5309 | fi | |
5310 | done | |
5311 | done | |
5312 | IFS=$as_save_IFS | |
5313 | ||
5314 | fi | |
5315 | fi | |
5316 | RANLIB=$ac_cv_prog_RANLIB | |
5317 | if test -n "$RANLIB"; then | |
41f81b5c WW |
5318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5319 | printf "%s\n" "$RANLIB" >&6; } | |
a24b9f23 | 5320 | else |
41f81b5c WW |
5321 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5322 | printf "%s\n" "no" >&6; } | |
529be52a SR |
5323 | fi |
5324 | ||
a24b9f23 MA |
5325 | |
5326 | fi | |
5327 | if test -z "$ac_cv_prog_RANLIB"; then | |
5328 | ac_ct_RANLIB=$RANLIB | |
5329 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5330 | set dummy ranlib; ac_word=$2 | |
41f81b5c WW |
5331 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5332 | printf %s "checking for $ac_word... " >&6; } | |
5333 | if test ${ac_cv_prog_ac_ct_RANLIB+y} | |
5334 | then : | |
5335 | printf %s "(cached) " >&6 | |
5336 | else $as_nop | |
a24b9f23 MA |
5337 | if test -n "$ac_ct_RANLIB"; then |
5338 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
d5e0cd6f | 5339 | else |
a24b9f23 MA |
5340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5341 | for as_dir in $PATH | |
5342 | do | |
5343 | IFS=$as_save_IFS | |
41f81b5c WW |
5344 | case $as_dir in #((( |
5345 | '') as_dir=./ ;; | |
5346 | */) ;; | |
5347 | *) as_dir=$as_dir/ ;; | |
5348 | esac | |
a24b9f23 | 5349 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c | 5350 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a24b9f23 | 5351 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
41f81b5c | 5352 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a24b9f23 MA |
5353 | break 2 |
5354 | fi | |
5355 | done | |
5356 | done | |
5357 | IFS=$as_save_IFS | |
529be52a | 5358 | |
d5e0cd6f | 5359 | fi |
d5e0cd6f | 5360 | fi |
a24b9f23 MA |
5361 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5362 | if test -n "$ac_ct_RANLIB"; then | |
41f81b5c WW |
5363 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
5364 | printf "%s\n" "$ac_ct_RANLIB" >&6; } | |
a24b9f23 | 5365 | else |
41f81b5c WW |
5366 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5367 | printf "%s\n" "no" >&6; } | |
a24b9f23 MA |
5368 | fi |
5369 | ||
5370 | if test "x$ac_ct_RANLIB" = x; then | |
5371 | RANLIB=":" | |
5372 | else | |
5373 | case $cross_compiling:$ac_tool_warned in | |
5374 | yes:) | |
41f81b5c WW |
5375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5376 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a24b9f23 MA |
5377 | ac_tool_warned=yes ;; |
5378 | esac | |
5379 | RANLIB=$ac_ct_RANLIB | |
5380 | fi | |
529be52a | 5381 | else |
a24b9f23 MA |
5382 | RANLIB="$ac_cv_prog_RANLIB" |
5383 | fi | |
5384 | ||
e619bd67 FD |
5385 | |
5386 | # Extract the first word of "ar", so it can be a program name with args. | |
5387 | set dummy ar; ac_word=$2 | |
41f81b5c WW |
5388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5389 | printf %s "checking for $ac_word... " >&6; } | |
5390 | if test ${ac_cv_path_AR+y} | |
5391 | then : | |
5392 | printf %s "(cached) " >&6 | |
5393 | else $as_nop | |
e619bd67 FD |
5394 | case $AR in |
5395 | [\\/]* | ?:[\\/]*) | |
5396 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
5397 | ;; | |
5398 | *) | |
5399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5400 | for as_dir in $PATH | |
5401 | do | |
5402 | IFS=$as_save_IFS | |
41f81b5c WW |
5403 | case $as_dir in #((( |
5404 | '') as_dir=./ ;; | |
5405 | */) ;; | |
5406 | *) as_dir=$as_dir/ ;; | |
5407 | esac | |
e619bd67 | 5408 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c WW |
5409 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
5410 | ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext" | |
5411 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
e619bd67 FD |
5412 | break 2 |
5413 | fi | |
5414 | done | |
5415 | done | |
5416 | IFS=$as_save_IFS | |
5417 | ||
5418 | ;; | |
5419 | esac | |
5420 | fi | |
5421 | AR=$ac_cv_path_AR | |
5422 | if test -n "$AR"; then | |
41f81b5c WW |
5423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5424 | printf "%s\n" "$AR" >&6; } | |
e619bd67 | 5425 | else |
41f81b5c WW |
5426 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5427 | printf "%s\n" "no" >&6; } | |
e619bd67 FD |
5428 | fi |
5429 | ||
5430 | ||
5431 | ||
5432 | ||
cab61f43 FD |
5433 | if test "X$AR" = "X"; then |
5434 | as_fn_error $? " | |
5435 | ar program not found. Please fix your PATH to include the directory in | |
5436 | which ar resides, or set AR in the environment with the full path to ar." "$LINENO" 5 | |
5437 | fi | |
5438 | ||
a24b9f23 | 5439 | ac_config_headers="$ac_config_headers includes/config.h" |
d5e0cd6f | 5440 | |
529be52a | 5441 | |
a24b9f23 | 5442 | # we sometimes need to know byte order for building packets |
41f81b5c WW |
5443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5444 | printf %s "checking whether byte ordering is bigendian... " >&6; } | |
5445 | if test ${ac_cv_c_bigendian+y} | |
5446 | then : | |
5447 | printf %s "(cached) " >&6 | |
5448 | else $as_nop | |
a24b9f23 MA |
5449 | ac_cv_c_bigendian=unknown |
5450 | # See if we're dealing with a universal compiler. | |
5451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d5e0cd6f | 5452 | /* end confdefs.h. */ |
a24b9f23 MA |
5453 | #ifndef __APPLE_CC__ |
5454 | not a universal capable compiler | |
5455 | #endif | |
5456 | typedef int dummy; | |
5457 | ||
5458 | _ACEOF | |
41f81b5c WW |
5459 | if ac_fn_c_try_compile "$LINENO" |
5460 | then : | |
a24b9f23 MA |
5461 | |
5462 | # Check for potential -arch flags. It is not universal unless | |
5463 | # there are at least two -arch flags with different values. | |
5464 | ac_arch= | |
5465 | ac_prev= | |
5466 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5467 | if test -n "$ac_prev"; then | |
5468 | case $ac_word in | |
5469 | i?86 | x86_64 | ppc | ppc64) | |
5470 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5471 | ac_arch=$ac_word | |
5472 | else | |
5473 | ac_cv_c_bigendian=universal | |
5474 | break | |
5475 | fi | |
5476 | ;; | |
5477 | esac | |
5478 | ac_prev= | |
5479 | elif test "x$ac_word" = "x-arch"; then | |
5480 | ac_prev=arch | |
5481 | fi | |
5482 | done | |
5483 | fi | |
41f81b5c | 5484 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 MA |
5485 | if test $ac_cv_c_bigendian = unknown; then |
5486 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5488 | /* end confdefs.h. */ | |
5489 | #include <sys/types.h> | |
5490 | #include <sys/param.h> | |
5491 | ||
d5e0cd6f | 5492 | int |
41f81b5c | 5493 | main (void) |
d5e0cd6f | 5494 | { |
a24b9f23 MA |
5495 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
5496 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5497 | && LITTLE_ENDIAN) | |
5498 | bogus endian macros | |
5499 | #endif | |
d5e0cd6f DH |
5500 | |
5501 | ; | |
5502 | return 0; | |
5503 | } | |
5504 | _ACEOF | |
41f81b5c WW |
5505 | if ac_fn_c_try_compile "$LINENO" |
5506 | then : | |
a24b9f23 MA |
5507 | # It does; now see whether it defined to BIG_ENDIAN or not. |
5508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5509 | /* end confdefs.h. */ | |
5510 | #include <sys/types.h> | |
5511 | #include <sys/param.h> | |
d5e0cd6f | 5512 | |
a24b9f23 | 5513 | int |
41f81b5c | 5514 | main (void) |
a24b9f23 MA |
5515 | { |
5516 | #if BYTE_ORDER != BIG_ENDIAN | |
5517 | not big endian | |
5518 | #endif | |
d5e0cd6f | 5519 | |
a24b9f23 MA |
5520 | ; |
5521 | return 0; | |
5522 | } | |
5523 | _ACEOF | |
41f81b5c WW |
5524 | if ac_fn_c_try_compile "$LINENO" |
5525 | then : | |
a24b9f23 | 5526 | ac_cv_c_bigendian=yes |
41f81b5c | 5527 | else $as_nop |
a24b9f23 | 5528 | ac_cv_c_bigendian=no |
529be52a | 5529 | fi |
41f81b5c | 5530 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
529be52a | 5531 | fi |
41f81b5c | 5532 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 MA |
5533 | fi |
5534 | if test $ac_cv_c_bigendian = unknown; then | |
5535 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5537 | /* end confdefs.h. */ | |
5538 | #include <limits.h> | |
d5e0cd6f | 5539 | |
a24b9f23 | 5540 | int |
41f81b5c | 5541 | main (void) |
a24b9f23 MA |
5542 | { |
5543 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5544 | bogus endian macros | |
5545 | #endif | |
d5e0cd6f | 5546 | |
a24b9f23 MA |
5547 | ; |
5548 | return 0; | |
5549 | } | |
529be52a | 5550 | _ACEOF |
41f81b5c WW |
5551 | if ac_fn_c_try_compile "$LINENO" |
5552 | then : | |
a24b9f23 MA |
5553 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
5554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
529be52a | 5555 | /* end confdefs.h. */ |
a24b9f23 MA |
5556 | #include <limits.h> |
5557 | ||
529be52a | 5558 | int |
41f81b5c | 5559 | main (void) |
529be52a | 5560 | { |
a24b9f23 MA |
5561 | #ifndef _BIG_ENDIAN |
5562 | not big endian | |
5563 | #endif | |
5564 | ||
529be52a SR |
5565 | ; |
5566 | return 0; | |
5567 | } | |
5568 | _ACEOF | |
41f81b5c WW |
5569 | if ac_fn_c_try_compile "$LINENO" |
5570 | then : | |
a24b9f23 | 5571 | ac_cv_c_bigendian=yes |
41f81b5c | 5572 | else $as_nop |
a24b9f23 MA |
5573 | ac_cv_c_bigendian=no |
5574 | fi | |
41f81b5c | 5575 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 | 5576 | fi |
41f81b5c | 5577 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a24b9f23 MA |
5578 | fi |
5579 | if test $ac_cv_c_bigendian = unknown; then | |
5580 | # Compile a test program. | |
41f81b5c WW |
5581 | if test "$cross_compiling" = yes |
5582 | then : | |
a24b9f23 MA |
5583 | # Try to guess by grepping values from an object file. |
5584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5585 | /* end confdefs.h. */ | |
41f81b5c | 5586 | unsigned short int ascii_mm[] = |
a24b9f23 | 5587 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
41f81b5c | 5588 | unsigned short int ascii_ii[] = |
a24b9f23 MA |
5589 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
5590 | int use_ascii (int i) { | |
5591 | return ascii_mm[i] + ascii_ii[i]; | |
5592 | } | |
41f81b5c | 5593 | unsigned short int ebcdic_ii[] = |
a24b9f23 | 5594 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
41f81b5c | 5595 | unsigned short int ebcdic_mm[] = |
a24b9f23 MA |
5596 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
5597 | int use_ebcdic (int i) { | |
5598 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5599 | } | |
5600 | extern int foo; | |
d5e0cd6f | 5601 | |
a24b9f23 | 5602 | int |
41f81b5c | 5603 | main (void) |
a24b9f23 MA |
5604 | { |
5605 | return use_ascii (foo) == use_ebcdic (foo); | |
5606 | ; | |
5607 | return 0; | |
5608 | } | |
5609 | _ACEOF | |
41f81b5c WW |
5610 | if ac_fn_c_try_compile "$LINENO" |
5611 | then : | |
a24b9f23 MA |
5612 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
5613 | ac_cv_c_bigendian=yes | |
5614 | fi | |
5615 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5616 | if test "$ac_cv_c_bigendian" = unknown; then | |
5617 | ac_cv_c_bigendian=no | |
5618 | else | |
5619 | # finding both strings is unlikely to happen, but who knows? | |
5620 | ac_cv_c_bigendian=unknown | |
5621 | fi | |
5622 | fi | |
4a70cb10 | 5623 | fi |
41f81b5c WW |
5624 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5625 | else $as_nop | |
a24b9f23 | 5626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
529be52a SR |
5627 | /* end confdefs.h. */ |
5628 | $ac_includes_default | |
5629 | int | |
41f81b5c | 5630 | main (void) |
529be52a | 5631 | { |
a24b9f23 MA |
5632 | |
5633 | /* Are we little or big endian? From Harbison&Steele. */ | |
5634 | union | |
5635 | { | |
5636 | long int l; | |
5637 | char c[sizeof (long int)]; | |
5638 | } u; | |
5639 | u.l = 1; | |
5640 | return u.c[sizeof (long int) - 1] == 1; | |
d5e0cd6f | 5641 | |
529be52a SR |
5642 | ; |
5643 | return 0; | |
5644 | } | |
5645 | _ACEOF | |
41f81b5c WW |
5646 | if ac_fn_c_try_run "$LINENO" |
5647 | then : | |
a24b9f23 | 5648 | ac_cv_c_bigendian=no |
41f81b5c | 5649 | else $as_nop |
a24b9f23 MA |
5650 | ac_cv_c_bigendian=yes |
5651 | fi | |
5652 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5653 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4a70cb10 | 5654 | fi |
d5e0cd6f | 5655 | |
a24b9f23 | 5656 | fi |
4a70cb10 | 5657 | fi |
41f81b5c WW |
5658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
5659 | printf "%s\n" "$ac_cv_c_bigendian" >&6; } | |
a24b9f23 MA |
5660 | case $ac_cv_c_bigendian in #( |
5661 | yes) | |
5662 | byte_order=BIG_ENDIAN | |
5663 | ;; #( | |
5664 | no) | |
5665 | byte_order=LITTLE_ENDIAN | |
5666 | ;; #( | |
5667 | universal) | |
d5e0cd6f | 5668 | |
41f81b5c | 5669 | printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
a24b9f23 MA |
5670 | |
5671 | ;; #( | |
5672 | *) | |
5673 | as_fn_error $? "unknown endianness | |
5674 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
5675 | esac | |
d5e0cd6f | 5676 | |
9d6af565 | 5677 | |
41f81b5c | 5678 | printf "%s\n" "#define DHCP_BYTE_ORDER $byte_order" >>confdefs.h |
4a70cb10 | 5679 | |
4a70cb10 | 5680 | |
a24b9f23 MA |
5681 | # Optional compile-time DEBUGging. |
5682 | # Check whether --enable-debug was given. | |
41f81b5c WW |
5683 | if test ${enable_debug+y} |
5684 | then : | |
45adf35c TM |
5685 | enableval=$enable_debug; case "${enableval}" in |
5686 | yes) enable_debug=yes | |
5687 | ||
41f81b5c | 5688 | printf "%s\n" "#define DEBUG 1" >>confdefs.h |
45adf35c | 5689 | |
9a111ee8 | 5690 | # Just override CFLAGS totally to remove optimization. |
45adf35c TM |
5691 | CFLAGS="-g";; |
5692 | no) enable_debug=no ;; | |
5693 | *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; | |
5694 | esac | |
41f81b5c | 5695 | else $as_nop |
a24b9f23 MA |
5696 | enable_debug=no |
5697 | fi | |
5698 | ||
9d6af565 | 5699 | |
a24b9f23 MA |
5700 | # XXX: there are actually quite a lot more DEBUG_ features we could enable, |
5701 | # but I don't want to pollute the --help space. | |
5702 | # | |
5703 | #/* #define DEBUG_TOKENS */ | |
5704 | #/* #define DEBUG_PACKET */ | |
5705 | #/* #define DEBUG_EXPRESSIONS */ | |
5706 | #/* #define DEBUG_FIND_LEASE */ | |
5707 | #/* #define DEBUG_EXPRESSION_PARSE */ | |
5708 | #/* #define DEBUG_CLASS_MATCHING */ | |
5709 | #/* #define DEBUG_MEMORY_LEAKAGE */ | |
5710 | #/* #define DEBUG_MALLOC_POOL */ | |
5711 | #/* #define DEBUG_LEASE_STATE_TRANSITIONS */ | |
5712 | #/* #define DEBUG_RC_HISTORY */ | |
5713 | #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */ | |
5714 | #/* #define RC_HISTORY_MAX 10240 */ | |
5715 | #/* #define POINTER_DEBUG */ | |
5716 | #/* #define DEBUG_FAILOVER_MESSAGES */ | |
5717 | #/* #define DEBUG_FAILOVER_TIMING */ | |
5718 | #/* #define DEBUG_DUMP_ALL_LEASES */ | |
9d6af565 | 5719 | |
a24b9f23 MA |
5720 | # Failover optional compile-time feature. |
5721 | # Check whether --enable-failover was given. | |
41f81b5c WW |
5722 | if test ${enable_failover+y} |
5723 | then : | |
a24b9f23 | 5724 | enableval=$enable_failover; |
9d6af565 | 5725 | fi |
9d6af565 | 5726 | |
a24b9f23 MA |
5727 | # Failover is on by default, so define if it is not explicitly disabled. |
5728 | if test "$enable_failover" != "no"; then | |
e82906fc | 5729 | enable_failover="yes" |
a24b9f23 | 5730 | |
41f81b5c | 5731 | printf "%s\n" "#define FAILOVER_PROTOCOL 1" >>confdefs.h |
9d6af565 | 5732 | |
4a70cb10 | 5733 | fi |
9d6af565 | 5734 | |
a24b9f23 MA |
5735 | # execute() support. |
5736 | # Check whether --enable-execute was given. | |
41f81b5c WW |
5737 | if test ${enable_execute+y} |
5738 | then : | |
a24b9f23 | 5739 | enableval=$enable_execute; |
4a70cb10 | 5740 | fi |
9d6af565 | 5741 | |
a24b9f23 MA |
5742 | # execute() is on by default, so define if it is not explicitly disabled. |
5743 | if test "$enable_execute" != "no" ; then | |
e82906fc | 5744 | enable_execute="yes" |
9d6af565 | 5745 | |
41f81b5c | 5746 | printf "%s\n" "#define ENABLE_EXECUTE 1" >>confdefs.h |
9d6af565 | 5747 | |
a24b9f23 | 5748 | fi |
9d6af565 | 5749 | |
a24b9f23 MA |
5750 | # Server tracing support. |
5751 | # Check whether --enable-tracing was given. | |
41f81b5c WW |
5752 | if test ${enable_tracing+y} |
5753 | then : | |
a24b9f23 MA |
5754 | enableval=$enable_tracing; |
5755 | fi | |
5756 | ||
5757 | # tracing is on by default, so define if it is not explicitly disabled. | |
5758 | if test "$enable_tracing" != "no" ; then | |
9d6af565 | 5759 | |
41f81b5c | 5760 | printf "%s\n" "#define TRACING 1" >>confdefs.h |
9d6af565 | 5761 | |
4a70cb10 | 5762 | fi |
9d6af565 | 5763 | |
4406f9b0 | 5764 | # Delayed-ack feature support. |
a24b9f23 | 5765 | # Check whether --enable-delayed_ack was given. |
41f81b5c WW |
5766 | if test ${enable_delayed_ack+y} |
5767 | then : | |
a24b9f23 | 5768 | enableval=$enable_delayed_ack; |
4a70cb10 TM |
5769 | fi |
5770 | ||
4406f9b0 TM |
5771 | if test "$enable_delayed_ack" != "no"; then |
5772 | enable_delayed_ack="yes" | |
4a70cb10 | 5773 | |
41f81b5c | 5774 | printf "%s\n" "#define DELAYED_ACK 1" >>confdefs.h |
9d6af565 | 5775 | |
a24b9f23 | 5776 | fi |
9d6af565 | 5777 | |
a24b9f23 MA |
5778 | # DHCPv6 optional compile-time feature. |
5779 | # Check whether --enable-dhcpv6 was given. | |
41f81b5c WW |
5780 | if test ${enable_dhcpv6+y} |
5781 | then : | |
a24b9f23 MA |
5782 | enableval=$enable_dhcpv6; |
5783 | fi | |
8cc64a89 | 5784 | |
a24b9f23 MA |
5785 | # DHCPv6 is on by default, so define if it is not explicitly disabled. |
5786 | if test "$enable_dhcpv6" != "no"; then | |
e82906fc | 5787 | enable_dhcpv6="yes" |
d5e0cd6f | 5788 | |
41f81b5c | 5789 | printf "%s\n" "#define DHCPv6 1" >>confdefs.h |
6e999c3c | 5790 | |
a37c9dd1 | 5791 | fi |
a37c9dd1 | 5792 | |
785c1a51 FD |
5793 | # DHCPv4o6 optional compile-time feature. |
5794 | # Check whether --enable-dhcpv4o6 was given. | |
41f81b5c WW |
5795 | if test ${enable_dhcpv4o6+y} |
5796 | then : | |
785c1a51 FD |
5797 | enableval=$enable_dhcpv4o6; |
5798 | fi | |
5799 | ||
5800 | # DHCPv4o6 is off by default, so define if it is explicitly enabled. | |
5801 | if test "$enable_dhcpv4o6" = "yes"; then | |
5802 | # DHCPv4o6 requires DHCPv6 | |
5803 | if test "$enable_dhcpv6" = "no"; then | |
5804 | as_fn_error $? "dhcpv4o6 requires dhcpv6" "$LINENO" 5 | |
5805 | fi | |
785c1a51 | 5806 | |
41f81b5c | 5807 | printf "%s\n" "#define DHCP4o6 1" >>confdefs.h |
785c1a51 | 5808 | |
4406f9b0 TM |
5809 | else |
5810 | # so we can report below | |
5811 | enable_dhcpv4o6="no" | |
785c1a51 FD |
5812 | fi |
5813 | ||
563f0b8a FD |
5814 | # Relay port (draft-ietf-dhc-relay-port-10.txt) optional compile-time feature. |
5815 | # Check whether --enable-relay-port was given. | |
41f81b5c WW |
5816 | if test ${enable_relay_port+y} |
5817 | then : | |
563f0b8a FD |
5818 | enableval=$enable_relay_port; |
5819 | fi | |
5820 | ||
5821 | # Relay port is off by default (for now) | |
5822 | if test "$enable_relay_port" = "yes"; then | |
5823 | ||
41f81b5c | 5824 | printf "%s\n" "#define RELAY_PORT 1" >>confdefs.h |
563f0b8a | 5825 | |
2f1fd274 | 5826 | else |
66248390 | 5827 | # so we can report below |
e985472a | 5828 | enable_relay_port="no" |
563f0b8a FD |
5829 | fi |
5830 | ||
a24b9f23 MA |
5831 | # PARANOIA is off by default (until we can test it with all features) |
5832 | # Check whether --enable-paranoia was given. | |
41f81b5c WW |
5833 | if test ${enable_paranoia+y} |
5834 | then : | |
a24b9f23 MA |
5835 | enableval=$enable_paranoia; |
5836 | fi | |
4d24561a | 5837 | |
a24b9f23 | 5838 | # Check whether --enable-early_chroot was given. |
41f81b5c WW |
5839 | if test ${enable_early_chroot+y} |
5840 | then : | |
a24b9f23 | 5841 | enableval=$enable_early_chroot; |
4a70cb10 | 5842 | fi |
529be52a | 5843 | |
a24b9f23 MA |
5844 | # If someone enables early chroot, but does not enable paranoia, do so for |
5845 | # them. | |
5846 | if test "$enable_paranoia" != "yes" && \ | |
5847 | test "$enable_early_chroot" = "yes" ; then | |
5848 | enable_paranoia="yes" | |
a37c9dd1 | 5849 | fi |
4d24561a | 5850 | |
a24b9f23 | 5851 | if test "$enable_paranoia" = "yes" ; then |
a37c9dd1 | 5852 | |
41f81b5c | 5853 | printf "%s\n" "#define PARANOIA 1" >>confdefs.h |
4a70cb10 | 5854 | |
4a70cb10 | 5855 | fi |
a24b9f23 | 5856 | if test "$enable_early_chroot" = "yes" ; then |
529be52a | 5857 | |
41f81b5c | 5858 | printf "%s\n" "#define EARLY_CHROOT 1" >>confdefs.h |
529be52a | 5859 | |
a37c9dd1 | 5860 | fi |
a24b9f23 MA |
5861 | |
5862 | # Check whether --enable-ipv4_pktinfo was given. | |
41f81b5c WW |
5863 | if test ${enable_ipv4_pktinfo+y} |
5864 | then : | |
a24b9f23 MA |
5865 | enableval=$enable_ipv4_pktinfo; |
5866 | fi | |
5867 | ||
5868 | ||
5869 | if test "$enable_ipv4_pktinfo" = "yes"; then | |
5870 | ||
41f81b5c | 5871 | printf "%s\n" "#define USE_V4_PKTINFO 1" >>confdefs.h |
a37c9dd1 | 5872 | |
529be52a | 5873 | fi |
a37c9dd1 | 5874 | |
a24b9f23 | 5875 | # Check whether --enable-use_sockets was given. |
41f81b5c WW |
5876 | if test ${enable_use_sockets+y} |
5877 | then : | |
a24b9f23 | 5878 | enableval=$enable_use_sockets; |
a37c9dd1 MA |
5879 | fi |
5880 | ||
a37c9dd1 | 5881 | |
a24b9f23 | 5882 | if test "$enable_use_sockets" = "yes"; then |
a37c9dd1 | 5883 | |
41f81b5c | 5884 | printf "%s\n" "#define USE_SOCKETS 1" >>confdefs.h |
a37c9dd1 | 5885 | |
a24b9f23 | 5886 | fi |
6e999c3c | 5887 | |
66e40c5d SR |
5888 | # Include the PID in the log messages. This is useful when there may |
5889 | # be multiple instances of a program. | |
00e9af8e SR |
5890 | # This is off by default |
5891 | # Check whether --enable-log_pid was given. | |
41f81b5c WW |
5892 | if test ${enable_log_pid+y} |
5893 | then : | |
00e9af8e SR |
5894 | enableval=$enable_log_pid; |
5895 | fi | |
5896 | ||
5897 | if test "$enable_log_pid" = "yes" ; then | |
5898 | ||
41f81b5c | 5899 | printf "%s\n" "#define USE_LOG_PID 1" >>confdefs.h |
00e9af8e SR |
5900 | |
5901 | fi | |
5902 | ||
3933e2aa SR |
5903 | # Allow for binary search when inserting v4 leases into queues |
5904 | # Check whether --enable-binary_leases was given. | |
41f81b5c WW |
5905 | if test ${enable_binary_leases+y} |
5906 | then : | |
3933e2aa SR |
5907 | enableval=$enable_binary_leases; |
5908 | fi | |
5909 | ||
5910 | # binary_leases is off by default. | |
5911 | if test "$enable_binary_leases" = "yes"; then | |
5912 | ||
41f81b5c | 5913 | printf "%s\n" "#define BINARY_LEASES 1" >>confdefs.h |
3933e2aa | 5914 | |
e82906fc TM |
5915 | else |
5916 | enable_binary_leases="no" | |
3933e2aa SR |
5917 | fi |
5918 | ||
a24b9f23 | 5919 | # Testing section |
529be52a | 5920 | |
bfbe0fd6 | 5921 | # Bind Makefile needs to know ATF is not included. |
9a2f9db5 | 5922 | if test "foo" = "barr"; then |
bfbe0fd6 TM |
5923 | BIND_ATF_TRUE= |
5924 | BIND_ATF_FALSE='#' | |
5925 | else | |
5926 | BIND_ATF_TRUE='#' | |
5927 | BIND_ATF_FALSE= | |
5928 | fi | |
5929 | ||
5930 | ||
f2d20b9e | 5931 | DISTCHECK_ATF_CONFIGURE_FLAG= |
a24b9f23 MA |
5932 | atf_path="no" |
5933 | ||
5934 | # Check whether --with-atf was given. | |
41f81b5c WW |
5935 | if test ${with_atf+y} |
5936 | then : | |
a24b9f23 | 5937 | withval=$with_atf; atf_path="$withval" |
529be52a | 5938 | fi |
4a70cb10 | 5939 | |
4adcee93 | 5940 | if test "$atf_path" != "no" ; then |
f2d20b9e | 5941 | DISTCHECK_ATF_CONFIGURE_FLAG="--with-atf=$atf_path" |
a24b9f23 MA |
5942 | # Config path for pkg-config |
5943 | atf_pcp="" | |
5944 | if test "$atf_path" != "yes" ; then | |
5945 | if test -f $atf_path/lib/pkgconfig/atf-c.pc ; then | |
5946 | atf_pcp=$atf_path/lib/pkgconfig | |
5947 | elif test -f $atf_path/lib64/pkgconfig/atf-c.pc ; then | |
5948 | atf_pcp=$atf_path/lib64/pkgconfig | |
5949 | fi | |
5950 | else | |
5951 | # Not specified, try some common paths | |
5952 | atf_dirs="/usr /usr/local /usr/pkg /opt /opt/local" | |
5953 | for d in $atf_dirs | |
5954 | do | |
5955 | if test -f $d/lib/pkgconfig/atf-c.pc ; then | |
5956 | atf_pcp=$d/lib/pkgconfig | |
9a111ee8 | 5957 | atf_path=$d |
a24b9f23 MA |
5958 | elif test -f $d/lib64/pkgconfig/atf-c.pc ; then |
5959 | atf_pcp=$d/lib64/pkgconfig | |
9a111ee8 | 5960 | atf_path=$d |
a24b9f23 MA |
5961 | fi |
5962 | done | |
5963 | fi | |
9a111ee8 | 5964 | |
a24b9f23 MA |
5965 | if test "$atf_pcp" = "" ; then |
5966 | as_fn_error $? "Unable to find atf files in location specified" "$LINENO" 5 | |
5967 | else | |
cacce092 TM |
5968 | # Extract the first word of "pkg-config", so it can be a program name with args. |
5969 | set dummy pkg-config; ac_word=$2 | |
41f81b5c WW |
5970 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5971 | printf %s "checking for $ac_word... " >&6; } | |
5972 | if test ${ac_cv_prog_pkgcfg_found+y} | |
5973 | then : | |
5974 | printf %s "(cached) " >&6 | |
5975 | else $as_nop | |
cacce092 TM |
5976 | if test -n "$pkgcfg_found"; then |
5977 | ac_cv_prog_pkgcfg_found="$pkgcfg_found" # Let the user override the test. | |
5978 | else | |
5979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5980 | for as_dir in $PATH | |
5981 | do | |
5982 | IFS=$as_save_IFS | |
41f81b5c WW |
5983 | case $as_dir in #((( |
5984 | '') as_dir=./ ;; | |
5985 | */) ;; | |
5986 | *) as_dir=$as_dir/ ;; | |
5987 | esac | |
cacce092 | 5988 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c | 5989 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
cacce092 | 5990 | ac_cv_prog_pkgcfg_found="pkg-config" |
41f81b5c | 5991 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
cacce092 TM |
5992 | break 2 |
5993 | fi | |
5994 | done | |
5995 | done | |
5996 | IFS=$as_save_IFS | |
5997 | ||
5998 | fi | |
5999 | fi | |
6000 | pkgcfg_found=$ac_cv_prog_pkgcfg_found | |
6001 | if test -n "$pkgcfg_found"; then | |
41f81b5c WW |
6002 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkgcfg_found" >&5 |
6003 | printf "%s\n" "$pkgcfg_found" >&6; } | |
cacce092 | 6004 | else |
41f81b5c WW |
6005 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6006 | printf "%s\n" "no" >&6; } | |
cacce092 TM |
6007 | fi |
6008 | ||
6009 | ||
6010 | if test "$pkgcfg_found" = ""; then | |
6011 | as_fn_error $? "Could not locate ATF, pkg-config not installed" "$LINENO" 5 | |
6012 | fi | |
a24b9f23 MA |
6013 | ATF_CFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST" |
6014 | ATF_LDFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`" | |
9a111ee8 TM |
6015 | if test -f $atf_pcp/atf-sh.pc ; then |
6016 | ATF_BIN="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin" | |
6017 | else | |
6018 | # older versions don't have atf-sh, try usual place | |
6019 | ATF_BIN=$atf_path/bin | |
6020 | fi | |
6021 | ||
6b87c7f2 FD |
6022 | UNITTESTS=tests |
6023 | ||
9a111ee8 TM |
6024 | |
6025 | ||
a24b9f23 MA |
6026 | |
6027 | ||
6028 | fi | |
529be52a | 6029 | fi |
6e999c3c | 6030 | |
a24b9f23 MA |
6031 | if test "$atf_pcp" != ""; then |
6032 | HAVE_ATF_TRUE= | |
6033 | HAVE_ATF_FALSE='#' | |
6034 | else | |
6035 | HAVE_ATF_TRUE='#' | |
6036 | HAVE_ATF_FALSE= | |
6e999c3c | 6037 | fi |
4d24561a | 6038 | |
9a111ee8 TM |
6039 | if test -z "$HAVE_ATF_TRUE"; then : |
6040 | ||
41f81b5c | 6041 | printf "%s\n" "#define HAVE_ATF 1" >>confdefs.h |
9a111ee8 TM |
6042 | |
6043 | fi | |
a24b9f23 | 6044 | |
f2d20b9e | 6045 | |
a24b9f23 MA |
6046 | ### |
6047 | ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we | |
6048 | ### need to look there and potentially overwrite by default (but not if | |
6049 | ### the user configures an alternate value). LOCALSTATEDIR is totally | |
6050 | ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and | |
6051 | ### they would be insane for suggesting it. We need to look in /var/for | |
6052 | ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by | |
6053 | ### default. | |
6054 | ### | |
6055 | if test "x$prefix" = xNONE; then | |
41f81b5c | 6056 | printf %s "checking for prefix by " >&6 |
a24b9f23 MA |
6057 | # Extract the first word of "dhcpd", so it can be a program name with args. |
6058 | set dummy dhcpd; ac_word=$2 | |
41f81b5c WW |
6059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6060 | printf %s "checking for $ac_word... " >&6; } | |
6061 | if test ${ac_cv_path_ac_prefix_program+y} | |
6062 | then : | |
6063 | printf %s "(cached) " >&6 | |
6064 | else $as_nop | |
a24b9f23 MA |
6065 | case $ac_prefix_program in |
6066 | [\\/]* | ?:[\\/]*) | |
6067 | ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path. | |
6068 | ;; | |
6069 | *) | |
6070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6071 | for as_dir in $PATH | |
6072 | do | |
6073 | IFS=$as_save_IFS | |
41f81b5c WW |
6074 | case $as_dir in #((( |
6075 | '') as_dir=./ ;; | |
6076 | */) ;; | |
6077 | *) as_dir=$as_dir/ ;; | |
6078 | esac | |
a24b9f23 | 6079 | for ac_exec_ext in '' $ac_executable_extensions; do |
41f81b5c WW |
6080 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6081 | ac_cv_path_ac_prefix_program="$as_dir$ac_word$ac_exec_ext" | |
6082 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
a24b9f23 MA |
6083 | break 2 |
6084 | fi | |
529be52a | 6085 | done |
a24b9f23 MA |
6086 | done |
6087 | IFS=$as_save_IFS | |
6e999c3c | 6088 | |
a24b9f23 MA |
6089 | ;; |
6090 | esac | |
6091 | fi | |
6092 | ac_prefix_program=$ac_cv_path_ac_prefix_program | |
6093 | if test -n "$ac_prefix_program"; then | |
41f81b5c WW |
6094 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5 |
6095 | printf "%s\n" "$ac_prefix_program" >&6; } | |
529be52a | 6096 | else |
41f81b5c WW |
6097 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6098 | printf "%s\n" "no" >&6; } | |
a24b9f23 | 6099 | fi |
6e999c3c | 6100 | |
a24b9f23 MA |
6101 | |
6102 | if test -n "$ac_prefix_program"; then | |
6103 | prefix=`$as_dirname -- "$ac_prefix_program" || | |
6104 | $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6105 | X"$ac_prefix_program" : 'X\(//\)[^/]' \| \ | |
6106 | X"$ac_prefix_program" : 'X\(//\)$' \| \ | |
6107 | X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null || | |
41f81b5c | 6108 | printf "%s\n" X"$ac_prefix_program" | |
a24b9f23 MA |
6109 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
6110 | s//\1/ | |
6111 | q | |
6112 | } | |
6113 | /^X\(\/\/\)[^/].*/{ | |
6114 | s//\1/ | |
6115 | q | |
6116 | } | |
6117 | /^X\(\/\/\)$/{ | |
6118 | s//\1/ | |
6119 | q | |
6120 | } | |
6121 | /^X\(\/\).*/{ | |
6122 | s//\1/ | |
6123 | q | |
6124 | } | |
6125 | s/.*/./; q'` | |
6126 | prefix=`$as_dirname -- "$prefix" || | |
6127 | $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6128 | X"$prefix" : 'X\(//\)[^/]' \| \ | |
6129 | X"$prefix" : 'X\(//\)$' \| \ | |
6130 | X"$prefix" : 'X\(/\)' \| . 2>/dev/null || | |
41f81b5c | 6131 | printf "%s\n" X"$prefix" | |
a24b9f23 MA |
6132 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
6133 | s//\1/ | |
6134 | q | |
6135 | } | |
6136 | /^X\(\/\/\)[^/].*/{ | |
6137 | s//\1/ | |
6138 | q | |
6139 | } | |
6140 | /^X\(\/\/\)$/{ | |
6141 | s//\1/ | |
6142 | q | |
6143 | } | |
6144 | /^X\(\/\).*/{ | |
6145 | s//\1/ | |
6146 | q | |
6147 | } | |
6148 | s/.*/./; q'` | |
6149 | fi | |
6150 | fi | |
4a70cb10 | 6151 | |
529be52a | 6152 | |
a24b9f23 MA |
6153 | # XXX - isn't there SOME WAY to default autoconf to /var instead of |
6154 | # /usr/local/var/no/one/has/this/please/stop/trying? | |
6155 | case "$localstatedir" in | |
6156 | '${prefix}/var') | |
6157 | localstatedir=/var | |
6158 | ;; | |
529be52a | 6159 | esac |
6e999c3c | 6160 | |
c8f0b32a MS |
6161 | # Default server configuration file. |
6162 | ||
6163 | # Check whether --with-srv-conf-file was given. | |
41f81b5c WW |
6164 | if test ${with_srv_conf_file+y} |
6165 | then : | |
c8f0b32a | 6166 | withval=$with_srv_conf_file; |
41f81b5c | 6167 | printf "%s\n" "#define _PATH_DHCPD_CONF \"$withval\"" >>confdefs.h |
c8f0b32a MS |
6168 | |
6169 | fi | |
6170 | ||
6171 | ||
a24b9f23 MA |
6172 | # Allow specification of alternate state files |
6173 | ||
6174 | # Check whether --with-srv-lease-file was given. | |
41f81b5c WW |
6175 | if test ${with_srv_lease_file+y} |
6176 | then : | |
a24b9f23 | 6177 | withval=$with_srv_lease_file; |
41f81b5c | 6178 | printf "%s\n" "#define _PATH_DHCPD_DB \"$withval\"" >>confdefs.h |
6e999c3c | 6179 | |
4a70cb10 | 6180 | fi |
6e999c3c SK |
6181 | |
6182 | ||
41f81b5c WW |
6183 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dhcpd.leases location" >&5 |
6184 | printf %s "checking for dhcpd.leases location... " >&6; } | |
a24b9f23 MA |
6185 | if [ "x$with_srv_lease_file" = "x" ] ; then |
6186 | if [ -d "${localstatedir}/db" ] ; then | |
6187 | with_srv_lease_file="${localstatedir}/db/dhcpd.leases" | |
6188 | elif [ -d "${localstatedir}/state" ] ; then | |
6189 | if [ -d "${localstatedir}/state/dhcp" ] ; then | |
6190 | with_srv_lease_file="${localstatedir}/state/dhcp/dhcpd.leases" | |
6191 | else | |
6192 | with_srv_lease_file="${localstatedir}/state/dhcpd.leases" | |
6193 | fi | |
6194 | elif [ -d "${localstatedir}/lib" ] ; then | |
6195 | if [ -d "${localstatedir}/lib/dhcp" ] ; then | |
6196 | with_srv_lease_file="${localstatedir}/lib/dhcp/dhcpd.leases" | |
6197 | else | |
6198 | with_srv_lease_file="${localstatedir}/lib/dhcpd.leases" | |
6199 | fi | |
6200 | elif [ -d "${localstatedir}/etc" ] ; then | |
6201 | with_srv_lease_file="${localstatedir}/etc/dhcpd.leases" | |
6202 | else | |
6203 | with_srv_lease_file="/etc/dhcpd.leases" | |
6204 | fi | |
6205 | fi | |
41f81b5c WW |
6206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_srv_lease_file" >&5 |
6207 | printf "%s\n" "$with_srv_lease_file" >&6; } | |
529be52a | 6208 | |
a24b9f23 MA |
6209 | |
6210 | # Check whether --with-srv6-lease-file was given. | |
41f81b5c WW |
6211 | if test ${with_srv6_lease_file+y} |
6212 | then : | |
a24b9f23 | 6213 | withval=$with_srv6_lease_file; |
41f81b5c | 6214 | printf "%s\n" "#define _PATH_DHCPD6_DB \"$withval\"" >>confdefs.h |
4d24561a | 6215 | |
6e999c3c SK |
6216 | fi |
6217 | ||
a24b9f23 | 6218 | |
41f81b5c WW |
6219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dhcpd6.leases location" >&5 |
6220 | printf %s "checking for dhcpd6.leases location... " >&6; } | |
a24b9f23 MA |
6221 | if [ "x$with_srv6_lease_file" = "x" ] ; then |
6222 | if [ -d "${localstatedir}/db" ] ; then | |
6223 | with_srv6_lease_file="${localstatedir}/db/dhcpd6.leases" | |
6224 | elif [ -d "${localstatedir}/state" ] ; then | |
6225 | if [ -d "${localstatedir}/state/dhcp" ] ; then | |
6226 | with_srv6_lease_file="${localstatedir}/state/dhcp/dhcpd6.leases" | |
6227 | else | |
6228 | with_srv6_lease_file="${localstatedir}/state/dhcpd6.leases" | |
6229 | fi | |
6230 | elif [ -d "${localstatedir}/lib" ] ; then | |
6231 | if [ -d "${localstatedir}/lib/dhcp" ] ; then | |
6232 | with_srv6_lease_file="${localstatedir}/lib/dhcp/dhcpd6.leases" | |
6233 | else | |
6234 | with_srv6_lease_file="${localstatedir}/lib/dhcpd6.leases" | |
6235 | fi | |
6236 | elif [ -d "${localstatedir}/etc" ] ; then | |
6237 | with_srv6_lease_file="${localstatedir}/etc/dhcpd6.leases" | |
6238 | else | |
6239 | with_srv6_lease_file="/etc/dhcpd6.leases" | |
6240 | fi | |
4a70cb10 | 6241 | fi |
41f81b5c WW |
6242 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_srv6_lease_file" >&5 |
6243 | printf "%s\n" "$with_srv6_lease_file" >&6; } | |
6e999c3c | 6244 | |
6e999c3c | 6245 | |
a24b9f23 | 6246 | # Check whether --with-cli-lease-file was given. |
41f81b5c WW |
6247 | if test ${with_cli_lease_file+y} |
6248 | then : | |
a24b9f23 | 6249 | withval=$with_cli_lease_file; |
41f81b5c | 6250 | printf "%s\n" "#define _PATH_DHCLIENT_DB \"$withval\"" >>confdefs.h |
fe5b0fdd | 6251 | |
fe5b0fdd | 6252 | fi |
4d24561a | 6253 | |
fe5b0fdd | 6254 | |
41f81b5c WW |
6255 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dhclient.leases location" >&5 |
6256 | printf %s "checking for dhclient.leases location... " >&6; } | |
a24b9f23 MA |
6257 | if [ "x$with_cli_lease_file" = "x" ] ; then |
6258 | if [ -d "${localstatedir}/db" ] ; then | |
6259 | with_cli_lease_file="${localstatedir}/db/dhclient.leases" | |
6260 | elif [ -d "${localstatedir}/state" ] ; then | |
6261 | if [ -d "${localstatedir}/state/dhcp" ] ; then | |
6262 | with_cli_lease_file="${localstatedir}/state/dhcp/dhclient.leases" | |
6263 | else | |
6264 | with_cli_lease_file="${localstatedir}/state/dhclient.leases" | |
6265 | fi | |
6266 | elif [ -d "${localstatedir}/lib" ] ; then | |
6267 | if [ -d "${localstatedir}/lib/dhcp" ] ; then | |
6268 | with_cli_lease_file="${localstatedir}/lib/dhcp/dhclient.leases" | |
6269 | else | |
6270 | with_cli_lease_file="${localstatedir}/lib/dhclient.leases" | |
6271 | fi | |
6272 | elif [ -d "${localstatedir}/etc" ] ; then | |
6273 | with_cli_lease_file="${localstatedir}/etc/dhclient.leases" | |
6274 | else | |
6275 | with_cli_lease_file="/etc/dhclient.leases" | |
6276 | fi | |
529be52a | 6277 | fi |
41f81b5c WW |
6278 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_cli_lease_file" >&5 |
6279 | printf "%s\n" "$with_cli_lease_file" >&6; } | |
fe5b0fdd | 6280 | |
4d24561a | 6281 | |
a24b9f23 | 6282 | # Check whether --with-cli6-lease-file was given. |
41f81b5c WW |
6283 | if test ${with_cli6_lease_file+y} |
6284 | then : | |
a24b9f23 | 6285 | withval=$with_cli6_lease_file; |
41f81b5c | 6286 | printf "%s\n" "#define _PATH_DHCLIENT6_DB \"$withval\"" >>confdefs.h |
fe5b0fdd | 6287 | |
a24b9f23 | 6288 | fi |
529be52a | 6289 | |
fe5b0fdd | 6290 | |
41f81b5c WW |
6291 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dhclient6.leases location" >&5 |
6292 | printf %s "checking for dhclient6.leases location... " >&6; } | |
a24b9f23 MA |
6293 | if [ "x$with_cli6_lease_file" = "x" ] ; then |
6294 | if [ -d "${localstatedir}/db" ] ; then | |
6295 | with_cli6_lease_file="${localstatedir}/db/dhclient6.leases" | |
6296 | elif [ -d "${localstatedir}/state" ] ; then | |
6297 | if [ -d "${localstatedir}/state/dhcp" ] ; then | |
6298 | with_cli6_lease_file="${localstatedir}/state/dhcp/dhclient6.leases" | |
6299 | else | |
6300 | with_cli6_lease_file="${localstatedir}/state/dhclient6.leases" | |
6301 | fi | |
6302 | elif [ -d "${localstatedir}/lib" ] ; then | |
6303 | if [ -d "${localstatedir}/lib/dhcp" ] ; then | |
6304 | with_cli6_lease_file="${localstatedir}/lib/dhcp/dhclient6.leases" | |
6305 | else | |
6306 | with_cli6_lease_file="${localstatedir}/lib/dhclient6.leases" | |
6307 | fi | |
6308 | elif [ -d "${localstatedir}/etc" ] ; then | |
6309 | with_cli6_lease_file="${localstatedir}/etc/dhclient6.leases" | |
529be52a | 6310 | else |
a24b9f23 MA |
6311 | with_cli6_lease_file="/etc/dhclient6.leases" |
6312 | fi | |
f125dc8b | 6313 | fi |
41f81b5c WW |
6314 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_cli6_lease_file" >&5 |
6315 | printf "%s\n" "$with_cli6_lease_file" >&6; } | |
a24b9f23 MA |
6316 | |
6317 | ||
6318 | # Check whether --with-srv-pid-file was given. | |
41f81b5c WW |
6319 | if test ${with_srv_pid_file+y} |
6320 | then : | |
a24b9f23 | 6321 | withval=$with_srv_pid_file; |
41f81b5c | 6322 | printf "%s\n" "#define _PATH_DHCPD_PID \"$withval\"" >>confdefs.h |
fe5b0fdd | 6323 | |
fe5b0fdd | 6324 | fi |
4a70cb10 TM |
6325 | |
6326 | ||
a24b9f23 | 6327 | # Check whether --with-srv6-pid-file was given. |
41f81b5c WW |
6328 | if test ${with_srv6_pid_file+y} |
6329 | then : | |
a24b9f23 | 6330 | withval=$with_srv6_pid_file; |
41f81b5c | 6331 | printf "%s\n" "#define _PATH_DHCPD6_PID \"$withval\"" >>confdefs.h |
fe5b0fdd | 6332 | |
fe5b0fdd | 6333 | fi |
4d24561a | 6334 | |
fe5b0fdd | 6335 | |
a24b9f23 | 6336 | # Check whether --with-cli-pid-file was given. |
41f81b5c WW |
6337 | if test ${with_cli_pid_file+y} |
6338 | then : | |
a24b9f23 | 6339 | withval=$with_cli_pid_file; |
41f81b5c | 6340 | printf "%s\n" "#define _PATH_DHCLIENT_PID \"$withval\"" >>confdefs.h |
4d24561a | 6341 | |
529be52a | 6342 | fi |
f125dc8b | 6343 | |
e62b1eb3 | 6344 | |
a24b9f23 | 6345 | # Check whether --with-cli6-pid-file was given. |
41f81b5c WW |
6346 | if test ${with_cli6_pid_file+y} |
6347 | then : | |
a24b9f23 | 6348 | withval=$with_cli6_pid_file; |
41f81b5c | 6349 | printf "%s\n" "#define _PATH_DHCLIENT6_PID \"$withval\"" >>confdefs.h |
e62b1eb3 | 6350 | |
529be52a | 6351 | fi |
e62b1eb3 | 6352 | |
a24b9f23 MA |
6353 | |
6354 | # Check whether --with-relay-pid-file was given. | |
41f81b5c WW |
6355 | if test ${with_relay_pid_file+y} |
6356 | then : | |
a24b9f23 | 6357 | withval=$with_relay_pid_file; |
41f81b5c | 6358 | printf "%s\n" "#define _PATH_DHCRELAY_PID \"$withval\"" >>confdefs.h |
c62c07ef | 6359 | |
a24b9f23 | 6360 | fi |
c62c07ef | 6361 | |
c62c07ef | 6362 | |
a24b9f23 | 6363 | # Check whether --with-relay6-pid-file was given. |
41f81b5c WW |
6364 | if test ${with_relay6_pid_file+y} |
6365 | then : | |
a24b9f23 | 6366 | withval=$with_relay6_pid_file; |
41f81b5c | 6367 | printf "%s\n" "#define _PATH_DHCRELAY6_PID \"$withval\"" >>confdefs.h |
c62c07ef | 6368 | |
529be52a | 6369 | fi |
c62c07ef | 6370 | |
4a70cb10 | 6371 | |
a24b9f23 MA |
6372 | # Check basic types. |
6373 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" | |
6374 | case $ac_cv_c_int8_t in #( | |
6375 | no|yes) ;; #( | |
6376 | *) | |
c62c07ef | 6377 | |
41f81b5c | 6378 | printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h |
a24b9f23 | 6379 | ;; |
529be52a | 6380 | esac |
c62c07ef | 6381 | |
a24b9f23 MA |
6382 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
6383 | case $ac_cv_c_int16_t in #( | |
6384 | no|yes) ;; #( | |
6385 | *) | |
c62c07ef | 6386 | |
41f81b5c | 6387 | printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h |
a24b9f23 MA |
6388 | ;; |
6389 | esac | |
c62c07ef | 6390 | |
a24b9f23 MA |
6391 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
6392 | case $ac_cv_c_int32_t in #( | |
6393 | no|yes) ;; #( | |
6394 | *) | |
c62c07ef | 6395 | |
41f81b5c | 6396 | printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h |
a24b9f23 | 6397 | ;; |
529be52a | 6398 | esac |
4d24561a | 6399 | |
a24b9f23 MA |
6400 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
6401 | case $ac_cv_c_int64_t in #( | |
6402 | no|yes) ;; #( | |
6403 | *) | |
6404 | ||
41f81b5c | 6405 | printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h |
a24b9f23 MA |
6406 | ;; |
6407 | esac | |
c62c07ef | 6408 | |
9a266235 | 6409 | |
a24b9f23 MA |
6410 | # Some systems need the u_intX_t types defined across. |
6411 | ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default" | |
41f81b5c WW |
6412 | if test "x$ac_cv_type_u_int8_t" = xyes |
6413 | then : | |
4a70cb10 | 6414 | |
41f81b5c | 6415 | else $as_nop |
9a266235 | 6416 | |
a24b9f23 MA |
6417 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
6418 | case $ac_cv_c_uint8_t in #( | |
6419 | no|yes) ;; #( | |
6420 | *) | |
4a70cb10 | 6421 | |
41f81b5c | 6422 | printf "%s\n" "#define _UINT8_T 1" >>confdefs.h |
9a266235 | 6423 | |
a24b9f23 | 6424 | |
41f81b5c | 6425 | printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h |
a24b9f23 MA |
6426 | ;; |
6427 | esac | |
529be52a | 6428 | |
9a266235 | 6429 | |
41f81b5c | 6430 | printf "%s\n" "#define u_int8_t uint8_t" >>confdefs.h |
9a266235 | 6431 | |
9a266235 SR |
6432 | |
6433 | fi | |
6434 | ||
a24b9f23 | 6435 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" |
41f81b5c WW |
6436 | if test "x$ac_cv_type_u_int16_t" = xyes |
6437 | then : | |
c59de8f4 | 6438 | |
41f81b5c | 6439 | else $as_nop |
c59de8f4 | 6440 | |
a24b9f23 MA |
6441 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
6442 | case $ac_cv_c_uint16_t in #( | |
6443 | no|yes) ;; #( | |
6444 | *) | |
c62c07ef | 6445 | |
a37c9dd1 | 6446 | |
41f81b5c | 6447 | printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h |
a24b9f23 MA |
6448 | ;; |
6449 | esac | |
c9a1db5e | 6450 | |
4d24561a | 6451 | |
41f81b5c | 6452 | printf "%s\n" "#define u_int16_t uint16_t" >>confdefs.h |
dd3276e3 | 6453 | |
c62c07ef DH |
6454 | |
6455 | fi | |
4d24561a | 6456 | |
a24b9f23 | 6457 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
41f81b5c WW |
6458 | if test "x$ac_cv_type_u_int32_t" = xyes |
6459 | then : | |
dd3276e3 | 6460 | |
41f81b5c | 6461 | else $as_nop |
237bfdc9 | 6462 | |
a24b9f23 MA |
6463 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
6464 | case $ac_cv_c_uint32_t in #( | |
6465 | no|yes) ;; #( | |
6466 | *) | |
7d714d6b | 6467 | |
41f81b5c | 6468 | printf "%s\n" "#define _UINT32_T 1" >>confdefs.h |
4d24561a | 6469 | |
4d24561a | 6470 | |
41f81b5c | 6471 | printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h |
a24b9f23 MA |
6472 | ;; |
6473 | esac | |
4a70cb10 | 6474 | |
4a70cb10 | 6475 | |
41f81b5c | 6476 | printf "%s\n" "#define u_int32_t uint32_t" >>confdefs.h |
4a70cb10 | 6477 | |
035ed382 | 6478 | |
529be52a | 6479 | fi |
4a70cb10 | 6480 | |
a24b9f23 | 6481 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default" |
41f81b5c WW |
6482 | if test "x$ac_cv_type_u_int64_t" = xyes |
6483 | then : | |
035ed382 | 6484 | |
41f81b5c | 6485 | else $as_nop |
a36687f0 | 6486 | |
a24b9f23 MA |
6487 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
6488 | case $ac_cv_c_uint64_t in #( | |
6489 | no|yes) ;; #( | |
6490 | *) | |
6491 | ||
41f81b5c | 6492 | printf "%s\n" "#define _UINT64_T 1" >>confdefs.h |
a24b9f23 MA |
6493 | |
6494 | ||
41f81b5c | 6495 | printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h |
a24b9f23 MA |
6496 | ;; |
6497 | esac | |
529be52a | 6498 | |
a36687f0 | 6499 | |
41f81b5c | 6500 | printf "%s\n" "#define u_int64_t uint64_t" >>confdefs.h |
4d24561a | 6501 | |
4d24561a | 6502 | |
529be52a SR |
6503 | fi |
6504 | ||
6505 | ||
a24b9f23 | 6506 | # see if ifaddrs.h is available |
41f81b5c WW |
6507 | ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" |
6508 | if test "x$ac_cv_header_ifaddrs_h" = xyes | |
6509 | then : | |
6510 | printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h | |
a36687f0 | 6511 | |
a24b9f23 MA |
6512 | fi |
6513 | ||
4d24561a | 6514 | |
a24b9f23 | 6515 | # figure out what IPv4 interface code to use |
41f81b5c WW |
6516 | ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default" |
6517 | if test "x$ac_cv_header_linux_types_h" = xyes | |
6518 | then : | |
6519 | printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h | |
7d714d6b | 6520 | |
529be52a | 6521 | fi |
a24b9f23 MA |
6522 | # needed for linux/filter.h on old systems |
6523 | ||
563f0b8a | 6524 | relay_port_supported="no" |
a24b9f23 MA |
6525 | ac_fn_c_check_header_compile "$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" " |
6526 | #ifdef HAVE_LINUX_TYPES_H | |
6527 | #include <linux/types.h> | |
6528 | #endif | |
6529 | ||
6530 | " | |
41f81b5c WW |
6531 | if test "x$ac_cv_header_linux_filter_h" = xyes |
6532 | then : | |
a24b9f23 | 6533 | DO_LPF=1 |
529be52a | 6534 | fi |
a24b9f23 | 6535 | |
a24b9f23 MA |
6536 | if test -n "$DO_LPF" |
6537 | then | |
6538 | ||
41f81b5c | 6539 | printf "%s\n" "#define HAVE_LPF 1" >>confdefs.h |
7d714d6b | 6540 | |
563f0b8a | 6541 | relay_port_supported="yes" |
529be52a | 6542 | else |
41f81b5c WW |
6543 | ac_fn_c_check_header_compile "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default" |
6544 | if test "x$ac_cv_header_sys_dlpi_h" = xyes | |
6545 | then : | |
a24b9f23 MA |
6546 | DO_DLPI=1 |
6547 | fi | |
a36687f0 | 6548 | |
a24b9f23 MA |
6549 | if test -n "$DO_DLPI" |
6550 | then | |
6551 | ||
41f81b5c | 6552 | printf "%s\n" "#define HAVE_DLPI 1" >>confdefs.h |
a24b9f23 MA |
6553 | |
6554 | else | |
41f81b5c WW |
6555 | ac_fn_c_check_header_compile "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default" |
6556 | if test "x$ac_cv_header_net_bpf_h" = xyes | |
6557 | then : | |
a24b9f23 | 6558 | DO_BPF=1 |
4a70cb10 | 6559 | fi |
4a70cb10 | 6560 | |
a24b9f23 MA |
6561 | if test -n "$DO_BPF" |
6562 | then | |
6563 | ||
41f81b5c | 6564 | printf "%s\n" "#define HAVE_BPF 1" >>confdefs.h |
a24b9f23 | 6565 | |
563f0b8a | 6566 | relay_port_supported="yes" |
a24b9f23 MA |
6567 | fi |
6568 | fi | |
6569 | fi | |
6570 | ||
563f0b8a FD |
6571 | if test "$enable_relay_port" = "yes"; then |
6572 | if test "$relay_port_supported" != "yes"; then | |
6573 | as_fn_error $? "--enable-relay-port requires BPF or LPF" "$LINENO" 5 | |
6574 | fi | |
6575 | fi | |
6576 | ||
a24b9f23 MA |
6577 | # SIOCGLIFCONF uses some transport structures. Trick is not all platforms |
6578 | # use the same structures. We like to use 'struct lifconf' and 'struct | |
6579 | # lifreq', but we'll use these other structures if they're present. HPUX | |
6580 | # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an | |
6581 | # int value. | |
6582 | # | |
41f81b5c WW |
6583 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5 |
6584 | printf %s "checking for struct lifnum... " >&6; } | |
a24b9f23 | 6585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d7bdffc | 6586 | /* end confdefs.h. */ |
a24b9f23 MA |
6587 | #include <sys/types.h> |
6588 | #include <sys/socket.h> | |
6589 | #include <net/if.h> | |
6d7bdffc | 6590 | |
7d714d6b | 6591 | int |
41f81b5c | 6592 | main (void) |
7d714d6b | 6593 | { |
a24b9f23 MA |
6594 | struct lifnum a; |
6595 | ||
7d714d6b DH |
6596 | ; |
6597 | return 0; | |
6598 | } | |
6599 | _ACEOF | |
41f81b5c WW |
6600 | if ac_fn_c_try_compile "$LINENO" |
6601 | then : | |
6602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6603 | printf "%s\n" "yes" >&6; } | |
7d714d6b | 6604 | |
41f81b5c | 6605 | printf "%s\n" "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h |
6e999c3c | 6606 | |
41f81b5c WW |
6607 | else $as_nop |
6608 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6609 | printf "%s\n" "no" >&6; } | |
529be52a | 6610 | fi |
41f81b5c | 6611 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
529be52a | 6612 | |
41f81b5c WW |
6613 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 |
6614 | printf %s "checking for struct if_laddrconf... " >&6; } | |
a24b9f23 | 6615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c62c07ef | 6616 | /* end confdefs.h. */ |
a24b9f23 MA |
6617 | #include <sys/types.h> |
6618 | #include <net/if6.h> | |
c9a1db5e | 6619 | |
c62c07ef | 6620 | int |
41f81b5c | 6621 | main (void) |
c62c07ef | 6622 | { |
a24b9f23 MA |
6623 | struct if_laddrconf a; |
6624 | ||
c62c07ef DH |
6625 | ; |
6626 | return 0; | |
6627 | } | |
6628 | _ACEOF | |
41f81b5c WW |
6629 | if ac_fn_c_try_compile "$LINENO" |
6630 | then : | |
6631 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6632 | printf "%s\n" "yes" >&6; } | |
6e999c3c | 6633 | |
41f81b5c | 6634 | printf "%s\n" "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h |
529be52a | 6635 | |
41f81b5c WW |
6636 | else $as_nop |
6637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6638 | printf "%s\n" "no" >&6; } | |
529be52a | 6639 | fi |
41f81b5c | 6640 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
529be52a | 6641 | |
41f81b5c WW |
6642 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 |
6643 | printf %s "checking for struct if_laddrreq... " >&6; } | |
a24b9f23 | 6644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
035ed382 | 6645 | /* end confdefs.h. */ |
a24b9f23 MA |
6646 | #include <sys/types.h> |
6647 | #include <net/if6.h> | |
529be52a SR |
6648 | |
6649 | int | |
41f81b5c | 6650 | main (void) |
529be52a | 6651 | { |
a24b9f23 MA |
6652 | struct if_laddrreq a; |
6653 | ||
529be52a SR |
6654 | ; |
6655 | return 0; | |
6656 | } | |
6657 | _ACEOF | |
41f81b5c WW |
6658 | if ac_fn_c_try_link "$LINENO" |
6659 | then : | |
6660 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6661 | printf "%s\n" "yes" >&6; } | |
a24b9f23 | 6662 | |
41f81b5c | 6663 | printf "%s\n" "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h |
a24b9f23 | 6664 | |
41f81b5c WW |
6665 | else $as_nop |
6666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6667 | printf "%s\n" "no" >&6; } | |
a24b9f23 | 6668 | fi |
41f81b5c | 6669 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
a24b9f23 | 6670 | conftest$ac_exeext conftest.$ac_ext |
529be52a | 6671 | |
a24b9f23 MA |
6672 | # |
6673 | # check for GCC noreturn attribute | |
6674 | # | |
41f81b5c WW |
6675 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5 |
6676 | printf %s "checking for GCC noreturn attribute... " >&6; } | |
a24b9f23 | 6677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
529be52a | 6678 | /* end confdefs.h. */ |
dd3276e3 | 6679 | |
035ed382 | 6680 | int |
41f81b5c | 6681 | main (void) |
035ed382 | 6682 | { |
a24b9f23 | 6683 | void foo() __attribute__((noreturn)); |
035ed382 DH |
6684 | ; |
6685 | return 0; | |
6686 | } | |
6687 | _ACEOF | |
41f81b5c WW |
6688 | if ac_fn_c_try_compile "$LINENO" |
6689 | then : | |
6690 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6691 | printf "%s\n" "yes" >&6; } | |
a24b9f23 | 6692 | |
41f81b5c | 6693 | printf "%s\n" "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h |
a24b9f23 | 6694 | |
41f81b5c WW |
6695 | else $as_nop |
6696 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6697 | printf "%s\n" "no" >&6; } | |
529be52a | 6698 | |
41f81b5c | 6699 | printf "%s\n" "#define ISC_DHCP_NORETURN /**/" >>confdefs.h |
4d24561a | 6700 | |
6e999c3c | 6701 | fi |
41f81b5c | 6702 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
529be52a | 6703 | |
a24b9f23 | 6704 | # Look for optional headers. |
41f81b5c WW |
6705 | ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
6706 | if test "x$ac_cv_header_sys_socket_h" = xyes | |
6707 | then : | |
6708 | printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h | |
c9a1db5e MA |
6709 | |
6710 | fi | |
41f81b5c WW |
6711 | ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default" |
6712 | if test "x$ac_cv_header_net_if_dl_h" = xyes | |
6713 | then : | |
6714 | printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h | |
035ed382 | 6715 | |
41f81b5c WW |
6716 | fi |
6717 | ac_fn_c_check_header_compile "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default" | |
6718 | if test "x$ac_cv_header_net_if6_h" = xyes | |
6719 | then : | |
6720 | printf "%s\n" "#define HAVE_NET_IF6_H 1" >>confdefs.h | |
6721 | ||
6722 | fi | |
6723 | ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default" | |
6724 | if test "x$ac_cv_header_regex_h" = xyes | |
6725 | then : | |
6726 | printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h | |
6727 | ||
6728 | fi | |
a24b9f23 | 6729 | |
035ed382 | 6730 | |
a24b9f23 | 6731 | # Solaris needs some libraries for functions |
41f81b5c WW |
6732 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
6733 | printf %s "checking for library containing socket... " >&6; } | |
6734 | if test ${ac_cv_search_socket+y} | |
6735 | then : | |
6736 | printf %s "(cached) " >&6 | |
6737 | else $as_nop | |
a24b9f23 MA |
6738 | ac_func_search_save_LIBS=$LIBS |
6739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2d5fba9b DH |
6740 | /* end confdefs.h. */ |
6741 | ||
a24b9f23 MA |
6742 | /* Override any GCC internal prototype to avoid an error. |
6743 | Use char because int might match the return type of a GCC | |
6744 | builtin and then its argument prototype would still apply. */ | |
a24b9f23 | 6745 | char socket (); |
2d5fba9b | 6746 | int |
41f81b5c | 6747 | main (void) |
2d5fba9b | 6748 | { |
a24b9f23 | 6749 | return socket (); |
2d5fba9b DH |
6750 | ; |
6751 | return 0; | |
6752 | } | |
6753 | _ACEOF | |
41f81b5c WW |
6754 | for ac_lib in '' socket |
6755 | do | |
a24b9f23 MA |
6756 | if test -z "$ac_lib"; then |
6757 | ac_res="none required" | |
6758 | else | |
6759 | ac_res=-l$ac_lib | |
6760 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6761 | fi | |
41f81b5c WW |
6762 | if ac_fn_c_try_link "$LINENO" |
6763 | then : | |
a24b9f23 MA |
6764 | ac_cv_search_socket=$ac_res |
6765 | fi | |
41f81b5c | 6766 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
a24b9f23 | 6767 | conftest$ac_exeext |
41f81b5c WW |
6768 | if test ${ac_cv_search_socket+y} |
6769 | then : | |
a24b9f23 MA |
6770 | break |
6771 | fi | |
6772 | done | |
41f81b5c WW |
6773 | if test ${ac_cv_search_socket+y} |
6774 | then : | |
529be52a | 6775 | |
41f81b5c | 6776 | else $as_nop |
a24b9f23 MA |
6777 | ac_cv_search_socket=no |
6778 | fi | |
6779 | rm conftest.$ac_ext | |
6780 | LIBS=$ac_func_search_save_LIBS | |
4a70cb10 | 6781 | fi |
41f81b5c WW |
6782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
6783 | printf "%s\n" "$ac_cv_search_socket" >&6; } | |
a24b9f23 | 6784 | ac_res=$ac_cv_search_socket |
41f81b5c WW |
6785 | if test "$ac_res" != no |
6786 | then : | |
a24b9f23 | 6787 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
529be52a | 6788 | |
2d5fba9b | 6789 | fi |
2d5fba9b | 6790 | |
41f81b5c WW |
6791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 |
6792 | printf %s "checking for library containing inet_ntoa... " >&6; } | |
6793 | if test ${ac_cv_search_inet_ntoa+y} | |
6794 | then : | |
6795 | printf %s "(cached) " >&6 | |
6796 | else $as_nop | |
a24b9f23 MA |
6797 | ac_func_search_save_LIBS=$LIBS |
6798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
529be52a | 6799 | /* end confdefs.h. */ |
c59de8f4 | 6800 | |
a24b9f23 MA |
6801 | /* Override any GCC internal prototype to avoid an error. |
6802 | Use char because int might match the return type of a GCC | |
6803 | builtin and then its argument prototype would still apply. */ | |
a24b9f23 | 6804 | char inet_ntoa (); |
529be52a | 6805 | int |
41f81b5c | 6806 | main (void) |
529be52a | 6807 | { |
a24b9f23 | 6808 | return inet_ntoa (); |
529be52a SR |
6809 | ; |
6810 | return 0; | |
6811 | } | |
6812 | _ACEOF | |
41f81b5c WW |
6813 | for ac_lib in '' nsl |
6814 | do | |
a24b9f23 MA |
6815 | if test -z "$ac_lib"; then |
6816 | ac_res="none required" | |
6817 | else | |
6818 | ac_res=-l$ac_lib | |
6819 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6820 | fi | |
41f81b5c WW |
6821 | if ac_fn_c_try_link "$LINENO" |
6822 | then : | |
a24b9f23 MA |
6823 | ac_cv_search_inet_ntoa=$ac_res |
6824 | fi | |
41f81b5c | 6825 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
a24b9f23 | 6826 | conftest$ac_exeext |
41f81b5c WW |
6827 | if test ${ac_cv_search_inet_ntoa+y} |
6828 | then : | |
a24b9f23 MA |
6829 | break |
6830 | fi | |
6831 | done | |
41f81b5c WW |
6832 | if test ${ac_cv_search_inet_ntoa+y} |
6833 | then : | |
6e999c3c | 6834 | |
41f81b5c | 6835 | else $as_nop |
a24b9f23 MA |
6836 | ac_cv_search_inet_ntoa=no |
6837 | fi | |
6838 | rm conftest.$ac_ext | |
6839 | LIBS=$ac_func_search_save_LIBS | |
6840 | fi | |
41f81b5c WW |
6841 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 |
6842 | printf "%s\n" "$ac_cv_search_inet_ntoa" >&6; } | |
a24b9f23 | 6843 | ac_res=$ac_cv_search_inet_ntoa |
41f81b5c WW |
6844 | if test "$ac_res" != no |
6845 | then : | |
a24b9f23 MA |
6846 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
6847 | ||
6848 | fi | |
529be52a SR |
6849 | |
6850 | ||
41f81b5c WW |
6851 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 |
6852 | printf %s "checking for library containing inet_aton... " >&6; } | |
6853 | if test ${ac_cv_search_inet_aton+y} | |
6854 | then : | |
6855 | printf %s "(cached) " >&6 | |
6856 | else $as_nop | |
a24b9f23 MA |
6857 | ac_func_search_save_LIBS=$LIBS |
6858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6859 | /* end confdefs.h. */ | |
6860 | ||
6861 | /* Override any GCC internal prototype to avoid an error. | |
6862 | Use char because int might match the return type of a GCC | |
6863 | builtin and then its argument prototype would still apply. */ | |
a24b9f23 | 6864 | char inet_aton (); |
6e999c3c | 6865 | int |
41f81b5c | 6866 | main (void) |
6e999c3c | 6867 | { |
a24b9f23 | 6868 | return inet_aton (); |
6e999c3c SK |
6869 | ; |
6870 | return 0; | |
6871 | } | |
6872 | _ACEOF | |
41f81b5c WW |
6873 | for ac_lib in '' socket nsl |
6874 | do | |
a24b9f23 MA |
6875 | if test -z "$ac_lib"; then |
6876 | ac_res="none required" | |
6877 | else | |
6878 | ac_res=-l$ac_lib | |
6879 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6880 | fi | |
41f81b5c WW |
6881 | if ac_fn_c_try_link "$LINENO" |
6882 | then : | |
a24b9f23 | 6883 | ac_cv_search_inet_aton=$ac_res |
c59de8f4 | 6884 | fi |
41f81b5c | 6885 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
a24b9f23 | 6886 | conftest$ac_exeext |
41f81b5c WW |
6887 | if test ${ac_cv_search_inet_aton+y} |
6888 | then : | |
a24b9f23 MA |
6889 | break |
6890 | fi | |
6891 | done | |
41f81b5c WW |
6892 | if test ${ac_cv_search_inet_aton+y} |
6893 | then : | |
4d24561a | 6894 | |
41f81b5c | 6895 | else $as_nop |
a24b9f23 MA |
6896 | ac_cv_search_inet_aton=no |
6897 | fi | |
6898 | rm conftest.$ac_ext | |
6899 | LIBS=$ac_func_search_save_LIBS | |
6900 | fi | |
41f81b5c WW |
6901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 |
6902 | printf "%s\n" "$ac_cv_search_inet_aton" >&6; } | |
a24b9f23 | 6903 | ac_res=$ac_cv_search_inet_aton |
41f81b5c WW |
6904 | if test "$ac_res" != no |
6905 | then : | |
a24b9f23 | 6906 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
6e999c3c | 6907 | |
41f81b5c | 6908 | else $as_nop |
6e999c3c | 6909 | |
41f81b5c | 6910 | printf "%s\n" "#define NEED_INET_ATON 1" >>confdefs.h |
6e999c3c | 6911 | |
a24b9f23 | 6912 | fi |
529be52a | 6913 | |
529be52a | 6914 | |
a24b9f23 | 6915 | # Check for a standalone regex library. |
41f81b5c WW |
6916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5 |
6917 | printf %s "checking for library containing regcomp... " >&6; } | |
6918 | if test ${ac_cv_search_regcomp+y} | |
6919 | then : | |
6920 | printf %s "(cached) " >&6 | |
6921 | else $as_nop | |
a24b9f23 MA |
6922 | ac_func_search_save_LIBS=$LIBS |
6923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8f77e286 DH |
6924 | /* end confdefs.h. */ |
6925 | ||
a24b9f23 MA |
6926 | /* Override any GCC internal prototype to avoid an error. |
6927 | Use char because int might match the return type of a GCC | |
6928 | builtin and then its argument prototype would still apply. */ | |
a24b9f23 | 6929 | char regcomp (); |
8f77e286 | 6930 | int |
41f81b5c | 6931 | main (void) |
8f77e286 | 6932 | { |
a24b9f23 | 6933 | return regcomp (); |
8f77e286 DH |
6934 | ; |
6935 | return 0; | |
6936 | } | |
6937 | _ACEOF | |
41f81b5c WW |
6938 | for ac_lib in '' regex |
6939 | do | |
a24b9f23 MA |
6940 | if test -z "$ac_lib"; then |
6941 | ac_res="none required" | |
6942 | else | |
6943 | ac_res=-l$ac_lib | |
6944 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6945 | fi | |
41f81b5c WW |
6946 | if ac_fn_c_try_link "$LINENO" |
6947 | then : | |
a24b9f23 MA |
6948 | ac_cv_search_regcomp=$ac_res |
6949 | fi | |
41f81b5c | 6950 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
a24b9f23 | 6951 | conftest$ac_exeext |
41f81b5c WW |
6952 | if test ${ac_cv_search_regcomp+y} |
6953 | then : | |
a24b9f23 | 6954 | break |
8f77e286 | 6955 | fi |
a24b9f23 | 6956 | done |
41f81b5c WW |
6957 | if test ${ac_cv_search_regcomp+y} |
6958 | then : | |
4d24561a | 6959 | |
41f81b5c | 6960 | else $as_nop |
a24b9f23 | 6961 | ac_cv_search_regcomp=no |
76c944da | 6962 | fi |
a24b9f23 MA |
6963 | rm conftest.$ac_ext |
6964 | LIBS=$ac_func_search_save_LIBS | |
6e999c3c | 6965 | fi |
41f81b5c WW |
6966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5 |
6967 | printf "%s\n" "$ac_cv_search_regcomp" >&6; } | |
a24b9f23 | 6968 | ac_res=$ac_cv_search_regcomp |
41f81b5c WW |
6969 | if test "$ac_res" != no |
6970 | then : | |
a24b9f23 | 6971 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4d24561a | 6972 | |
a24b9f23 | 6973 | fi |
529be52a | 6974 | |
c9a1db5e | 6975 | |
41f81b5c WW |
6976 | ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" |
6977 | if test "x$ac_cv_func_strlcat" = xyes | |
6978 | then : | |
6979 | printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h | |
dc9d7b08 MA |
6980 | |
6981 | fi | |
dc9d7b08 MA |
6982 | |
6983 | ||
a24b9f23 | 6984 | # For HP/UX we need -lipv6 for if_nametoindex, perhaps others. |
41f81b5c WW |
6985 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5 |
6986 | printf %s "checking for library containing if_nametoindex... " >&6; } | |
6987 | if test ${ac_cv_search_if_nametoindex+y} | |
6988 | then : | |
6989 | printf %s "(cached) " >&6 | |
6990 | else $as_nop | |
a24b9f23 MA |
6991 | ac_func_search_save_LIBS=$LIBS |
6992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6993 | /* end confdefs.h. */ | |
6e999c3c | 6994 | |
a24b9f23 MA |
6995 | /* Override any GCC internal prototype to avoid an error. |
6996 | Use char because int might match the return type of a GCC | |
6997 | builtin and then its argument prototype would still apply. */ | |
a24b9f23 | 6998 | char if_nametoindex (); |
529be52a | 6999 | int |
41f81b5c | 7000 | main (void) |
529be52a | 7001 | { |
a24b9f23 | 7002 | return if_nametoindex (); |
529be52a SR |
7003 | ; |
7004 | return 0; | |
7005 | } | |
7006 | _ACEOF | |
41f81b5c WW |
7007 | for ac_lib in '' ipv6 |
7008 | do | |
a24b9f23 MA |
7009 | if test -z "$ac_lib"; then |
7010 | ac_res="none required" | |
7011 | else | |
7012 | ac_res=-l$ac_lib | |
7013 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7014 | fi | |
41f81b5c WW |
7015 | if ac_fn_c_try_link "$LINENO" |
7016 | then : | |
a24b9f23 MA |
7017 | ac_cv_search_if_nametoindex=$ac_res |
7018 | fi | |
41f81b5c | 7019 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
a24b9f23 | 7020 | conftest$ac_exeext |
41f81b5c WW |
7021 | if test ${ac_cv_search_if_nametoindex+y} |
7022 | then : | |
a24b9f23 MA |
7023 | break |
7024 | fi | |
7025 | done | |
41f81b5c WW |
7026 | if test ${ac_cv_search_if_nametoindex+y} |
7027 | then : | |
a24b9f23 | 7028 | |
41f81b5c | 7029 | else $as_nop |
a24b9f23 MA |
7030 | ac_cv_search_if_nametoindex=no |
7031 | fi | |
7032 | rm conftest.$ac_ext | |
7033 | LIBS=$ac_func_search_save_LIBS | |
7034 | fi | |
41f81b5c WW |
7035 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5 |
7036 | printf "%s\n" "$ac_cv_search_if_nametoindex" >&6; } | |
a24b9f23 | 7037 | ac_res=$ac_cv_search_if_nametoindex |
41f81b5c WW |
7038 | if test "$ac_res" != no |
7039 | then : | |
a24b9f23 | 7040 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
6e999c3c | 7041 | |
4a70cb10 | 7042 | fi |
6e999c3c | 7043 | |
a24b9f23 | 7044 | |
f6d4c27f FD |
7045 | # For some Solaris nanosleep is found by BIND in librt |
7046 | have_nanosleep="no" | |
7047 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" | |
41f81b5c WW |
7048 | if test "x$ac_cv_func_nanosleep" = xyes |
7049 | then : | |
f6d4c27f FD |
7050 | have_nanosleep="yes" |
7051 | fi | |
7052 | ||
7053 | if test "$have_nanosleep" = "no"; then | |
41f81b5c WW |
7054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
7055 | printf %s "checking for nanosleep in -lrt... " >&6; } | |
7056 | if test ${ac_cv_lib_rt_nanosleep+y} | |
7057 | then : | |
7058 | printf %s "(cached) " >&6 | |
7059 | else $as_nop | |
f6d4c27f FD |
7060 | ac_check_lib_save_LIBS=$LIBS |
7061 | LIBS="-lrt $LIBS" | |
7062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7063 | /* end confdefs.h. */ | |
7064 | ||
7065 | /* Override any GCC internal prototype to avoid an error. | |
7066 | Use char because int might match the return type of a GCC | |
7067 | builtin and then its argument prototype would still apply. */ | |
f6d4c27f FD |
7068 | char nanosleep (); |
7069 | int | |
41f81b5c | 7070 | main (void) |
f6d4c27f FD |
7071 | { |
7072 | return nanosleep (); | |
7073 | ; | |
7074 | return 0; | |
7075 | } | |
7076 | _ACEOF | |
41f81b5c WW |
7077 | if ac_fn_c_try_link "$LINENO" |
7078 | then : | |
f6d4c27f | 7079 | ac_cv_lib_rt_nanosleep=yes |
41f81b5c | 7080 | else $as_nop |
f6d4c27f FD |
7081 | ac_cv_lib_rt_nanosleep=no |
7082 | fi | |
41f81b5c | 7083 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f6d4c27f FD |
7084 | conftest$ac_exeext conftest.$ac_ext |
7085 | LIBS=$ac_check_lib_save_LIBS | |
7086 | fi | |
41f81b5c WW |
7087 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
7088 | printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } | |
7089 | if test "x$ac_cv_lib_rt_nanosleep" = xyes | |
7090 | then : | |
f6d4c27f FD |
7091 | have_nanosleep="rt" |
7092 | fi | |
7093 | ||
7094 | fi | |
7095 | if test "$have_nanosleep" = "rt"; then | |
7096 | LIBS="-lrt $LIBS" | |
7097 | fi | |
7098 | ||
54f832a8 | 7099 | # check for /dev/random (declares ISC_PATH_RANDOMDEV) |
41f81b5c WW |
7100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for random device" >&5 |
7101 | printf %s "checking for random device... " >&6; } | |
a6ed1aa8 FD |
7102 | |
7103 | # Check whether --with-randomdev was given. | |
41f81b5c WW |
7104 | if test ${with_randomdev+y} |
7105 | then : | |
a6ed1aa8 | 7106 | withval=$with_randomdev; use_randomdev="$withval" |
41f81b5c | 7107 | else $as_nop |
a6ed1aa8 FD |
7108 | use_randomdev="unspec" |
7109 | fi | |
7110 | ||
7111 | if test "$use_randomdev" = "unspec"; then | |
7112 | if test "$cross_compiling" = "yes"; then | |
41f81b5c WW |
7113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5 |
7114 | printf "%s\n" "unspecified" >&6; } | |
a6ed1aa8 FD |
7115 | as_fn_error $? " need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5 |
7116 | fi | |
7117 | use_randomdev="/dev/random" | |
7118 | elif test "$use_randomdev" = "yes"; then | |
7119 | use_randomdev="/dev/random" | |
7120 | fi | |
7121 | if test "$use_randomdev" = "no"; then | |
41f81b5c WW |
7122 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
7123 | printf "%s\n" "disabled" >&6; } | |
a6ed1aa8 FD |
7124 | BINDCONFIG="$BINDCONFIG --with-randomdev=no" |
7125 | else | |
7126 | if test "$cross_compiling" = "yes"; then | |
41f81b5c WW |
7127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_randomdev (unchecked)" >&5 |
7128 | printf "%s\n" "$use_randomdev (unchecked)" >&6; } | |
a6ed1aa8 | 7129 | else |
41f81b5c WW |
7130 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_randomdev" >&5 |
7131 | printf "%s\n" "$use_randomdev" >&6; } | |
7132 | as_ac_File=`printf "%s\n" "ac_cv_file_$use_randomdev" | $as_tr_sh` | |
7133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $use_randomdev" >&5 | |
7134 | printf %s "checking for $use_randomdev... " >&6; } | |
7135 | if eval test \${$as_ac_File+y} | |
7136 | then : | |
7137 | printf %s "(cached) " >&6 | |
7138 | else $as_nop | |
a24b9f23 MA |
7139 | test "$cross_compiling" = yes && |
7140 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | |
a6ed1aa8 FD |
7141 | if test -r "$use_randomdev"; then |
7142 | eval "$as_ac_File=yes" | |
a24b9f23 | 7143 | else |
a6ed1aa8 | 7144 | eval "$as_ac_File=no" |
a24b9f23 MA |
7145 | fi |
7146 | fi | |
a6ed1aa8 | 7147 | eval ac_res=\$$as_ac_File |
41f81b5c WW |
7148 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
7149 | printf "%s\n" "$ac_res" >&6; } | |
7150 | if eval test \"x\$"$as_ac_File"\" = x"yes" | |
7151 | then : | |
c9a1db5e | 7152 | |
41f81b5c | 7153 | printf "%s\n" "#define ISC_PATH_RANDOMDEV \"$use_randomdev\"" >>confdefs.h |
6e999c3c | 7154 | |
41f81b5c | 7155 | else $as_nop |
a6ed1aa8 | 7156 | as_fn_error $? "cannot find $use_randomdev" "$LINENO" 5 |
a24b9f23 | 7157 | fi |
6e999c3c | 7158 | |
a6ed1aa8 FD |
7159 | fi |
7160 | BINDCONFIG="$BINDCONFIG --with-randomdev=$use_randomdev" | |
7161 | fi | |
6e999c3c | 7162 | |
c87db1b1 FD |
7163 | BINDIOMUX="--disable-kqueue --disable-epoll --disable-devpoll" |
7164 | # check kqueue/epoll/devpoll alternative to select | |
7165 | # Check whether --enable-kqueue was given. | |
41f81b5c WW |
7166 | if test ${enable_kqueue+y} |
7167 | then : | |
c87db1b1 | 7168 | enableval=$enable_kqueue; want_kqueue="$enableval" |
41f81b5c | 7169 | else $as_nop |
c87db1b1 FD |
7170 | want_kqueue="no" |
7171 | fi | |
7172 | ||
7173 | if test "$want_kqueue" = "yes"; then | |
7174 | BINDIOMUX="--enable-kqueue" | |
41f81b5c WW |
7175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&5 |
7176 | printf "%s\n" "$as_me: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&2;} | |
c87db1b1 FD |
7177 | fi |
7178 | # Check whether --enable-epoll was given. | |
41f81b5c WW |
7179 | if test ${enable_epoll+y} |
7180 | then : | |
c87db1b1 | 7181 | enableval=$enable_epoll; want_epoll="$enableval" |
41f81b5c | 7182 | else $as_nop |
c87db1b1 FD |
7183 | want_epoll="no" |
7184 | fi | |
7185 | ||
7186 | if test "$want_epoll" = "yes"; then | |
7187 | BINDIOMUX="--enable-epoll" | |
41f81b5c WW |
7188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&5 |
7189 | printf "%s\n" "$as_me: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&2;} | |
c87db1b1 FD |
7190 | fi |
7191 | # Check whether --enable-devpoll was given. | |
41f81b5c WW |
7192 | if test ${enable_devpoll+y} |
7193 | then : | |
c87db1b1 | 7194 | enableval=$enable_devpoll; want_devpoll="$enableval" |
41f81b5c | 7195 | else $as_nop |
c87db1b1 FD |
7196 | want_devpoll="no" |
7197 | fi | |
7198 | ||
7199 | if test "$want_devpoll" = "yes"; then | |
7200 | BINDIOMUX="--enable-devpoll" | |
41f81b5c WW |
7201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&5 |
7202 | printf "%s\n" "$as_me: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&2;} | |
c87db1b1 FD |
7203 | fi |
7204 | ||
7205 | ||
7206 | # general extra bind configure arguments | |
7207 | ||
7208 | # Check whether --with-bind-extra-config was given. | |
41f81b5c WW |
7209 | if test ${with_bind_extra_config+y} |
7210 | then : | |
c87db1b1 | 7211 | withval=$with_bind_extra_config; use_xbindconfig="$withval" |
41f81b5c | 7212 | else $as_nop |
c87db1b1 FD |
7213 | use_xbindconfig="" |
7214 | fi | |
7215 | ||
7216 | case "$use_xbindconfig" in | |
7217 | yes|no|'') | |
7218 | ;; | |
7219 | *) | |
7220 | BINDCONFIG="$BINDCONFIG $use_xbindconfig" | |
41f81b5c WW |
7221 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&5 |
7222 | printf "%s\n" "$as_me: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&2;} | |
c87db1b1 FD |
7223 | ;; |
7224 | esac | |
7225 | ||
a24b9f23 MA |
7226 | # see if there is a "sa_len" field in our interface information structure |
7227 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> | |
7228 | " | |
41f81b5c WW |
7229 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes |
7230 | then : | |
a24b9f23 | 7231 | |
41f81b5c | 7232 | printf "%s\n" "#define HAVE_SA_LEN /**/" >>confdefs.h |
a24b9f23 MA |
7233 | |
7234 | fi | |
7235 | ||
6e999c3c | 7236 | |
a24b9f23 | 7237 | # figure out pointer size |
f2d20b9e FD |
7238 | SAVE_CFLAGS="$CFLAGS" |
7239 | CFLAGS="$CFLAGS -I$srcdir" | |
a24b9f23 MA |
7240 | # The cast to long int works around a bug in the HP C Compiler |
7241 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7242 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7243 | # This bug is HP SR number 8606223364. | |
41f81b5c WW |
7244 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5 |
7245 | printf %s "checking size of struct iaddr *... " >&6; } | |
7246 | if test ${ac_cv_sizeof_struct_iaddr_p+y} | |
7247 | then : | |
7248 | printf %s "(cached) " >&6 | |
7249 | else $as_nop | |
a24b9f23 MA |
7250 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" " |
7251 | #include \"includes/inet.h\" | |
7252 | #include <stdio.h> | |
529be52a | 7253 | |
41f81b5c WW |
7254 | " |
7255 | then : | |
a24b9f23 | 7256 | |
41f81b5c | 7257 | else $as_nop |
a24b9f23 | 7258 | if test "$ac_cv_type_struct_iaddr_p" = yes; then |
41f81b5c WW |
7259 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7260 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
a24b9f23 MA |
7261 | as_fn_error 77 "cannot compute sizeof (struct iaddr *) |
7262 | See \`config.log' for more details" "$LINENO" 5; } | |
4d24561a JR |
7263 | else |
7264 | ac_cv_sizeof_struct_iaddr_p=0 | |
7265 | fi | |
273bfdc3 | 7266 | fi |
a24b9f23 | 7267 | |
7d714d6b | 7268 | fi |
41f81b5c WW |
7269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5 |
7270 | printf "%s\n" "$ac_cv_sizeof_struct_iaddr_p" >&6; } | |
4d24561a JR |
7271 | |
7272 | ||
7273 | ||
41f81b5c | 7274 | printf "%s\n" "#define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p" >>confdefs.h |
fe5b0fdd | 7275 | |
fe5b0fdd | 7276 | |
f2d20b9e | 7277 | CFLAGS="$SAVE_CFLAGS" |
76c944da | 7278 | |
9a266235 | 7279 | # Solaris does not have the msg_control or msg_controlen members |
6e999c3c SK |
7280 | # in the msghdr structure unless you define: |
7281 | # | |
7282 | # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__ | |
7283 | # | |
7284 | # See the "standards" man page for details. | |
7285 | # | |
7286 | # We check for the msg_control member, and if it is not found, we check | |
7287 | # again with the appropriate defines added to the CFLAGS. (In order to | |
7288 | # do this we have to remove the check from the cache, which is what the | |
7289 | # "unset" is for.) | |
a24b9f23 | 7290 | ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " |
529be52a SR |
7291 | #include <sys/types.h> |
7292 | #include <sys/socket.h> | |
7293 | ||
a24b9f23 | 7294 | " |
41f81b5c WW |
7295 | if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes |
7296 | then : | |
529be52a | 7297 | |
41f81b5c | 7298 | else $as_nop |
6e999c3c SK |
7299 | CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" |
7300 | CFLAGS="$CFLAGS -D__EXTENSIONS__" | |
7301 | unset ac_cv_member_struct_msghdr_msg_control | |
a24b9f23 | 7302 | ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " |
529be52a SR |
7303 | #include <sys/types.h> |
7304 | #include <sys/socket.h> | |
7305 | ||
a24b9f23 | 7306 | " |
41f81b5c WW |
7307 | if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes |
7308 | then : | |
529be52a | 7309 | |
41f81b5c | 7310 | else $as_nop |
a24b9f23 MA |
7311 | as_fn_error $? "Missing msg_control member in |
7312 | msg_control structure." "$LINENO" 5 | |
a36687f0 | 7313 | fi |
dd3276e3 | 7314 | |
06eb8bab | 7315 | |
c62c07ef | 7316 | fi |
8c816ebb | 7317 | |
fe5b0fdd | 7318 | |
75d02fcf TM |
7319 | 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> |
7320 | " | |
41f81b5c WW |
7321 | if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes |
7322 | then : | |
75d02fcf | 7323 | |
41f81b5c | 7324 | printf "%s\n" "#define VLAN_TCI_PRESENT 1" >>confdefs.h |
75d02fcf TM |
7325 | |
7326 | ||
7327 | fi | |
7328 | ||
7329 | ||
e94e7f23 FD |
7330 | # bind/Makefile.in is not from automake so we need 2 variables for bind dir |
7331 | BINDSUBDIR= | |
0fb9c8a1 | 7332 | BINDDIR= |
5a428b2e | 7333 | BINDSRCDIR= |
e94e7f23 FD |
7334 | BINDLIBIRSDIR= |
7335 | BINDLIBDNSDIR= | |
7336 | BINDLIBISCCFGDIR= | |
7337 | BINDLIBISCDIR= | |
68315782 | 7338 | DISTCHECK_LIBBIND_CONFIGURE_FLAG= |
a81f3ae6 SR |
7339 | |
7340 | # Check whether --with-libbind was given. | |
41f81b5c WW |
7341 | if test ${with_libbind+y} |
7342 | then : | |
a81f3ae6 | 7343 | withval=$with_libbind; use_libbind="$withval" |
41f81b5c | 7344 | else $as_nop |
a81f3ae6 SR |
7345 | use_libbind="no" |
7346 | fi | |
7347 | ||
7348 | case "$use_libbind" in | |
7349 | yes) | |
c87db1b1 | 7350 | as_fn_error $? "PATH is required in --with-libbind=PATH" "$LINENO" 5 |
a81f3ae6 SR |
7351 | ;; |
7352 | no) | |
e94e7f23 | 7353 | BINDSUBDIR="\${top_srcdir}/bind" |
c87db1b1 | 7354 | my_abs_srcdir=`cd $srcdir && pwd` |
e94e7f23 | 7355 | BINDDIR="${my_abs_srcdir}/bind" |
c87db1b1 FD |
7356 | if test ! -d "$srcdir/bind"; then |
7357 | as_fn_error $? "Where to find or build bind includes and libraries must be specified" "$LINENO" 5 | |
7358 | fi | |
7359 | if test -d "$srcdir/bind/bind9"; then | |
e94e7f23 | 7360 | BINDSRCDIR="${my_abs_srcdir}/bind/bind9" |
c87db1b1 FD |
7361 | else |
7362 | if test ! -f "$srcdir/bind/version.tmp"; then | |
7363 | as_fn_error $? "Cannot find $srcdir/bind/version.tmp" "$LINENO" 5 | |
7364 | fi | |
7365 | . "$srcdir/bind/version.tmp" | |
7366 | bindversion=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER} | |
e94e7f23 | 7367 | BINDSRCDIR="${my_abs_srcdir}/bind/bind-$bindversion" |
c87db1b1 FD |
7368 | fi |
7369 | ac_config_files="$ac_config_files $srcdir/bind/Makefile" | |
7370 | ||
e94e7f23 | 7371 | |
ae91e4db FD |
7372 | BINDLIBIRSDIR="$BINDSRCDIR/lib/irs" |
7373 | BINDLIBDNSDIR="$BINDSRCDIR/lib/dns" | |
7374 | BINDLIBISCCFGDIR="$BINDSRCDIR/lib/isccfg" | |
7375 | BINDLIBISCDIR="$BINDSRCDIR/lib/isc" | |
a81f3ae6 SR |
7376 | ;; |
7377 | *) | |
c87db1b1 FD |
7378 | if test ! -d "$use_libbind"; then |
7379 | as_fn_error $? "Cannot find bind directory at $use_libbind" "$LINENO" 5 | |
7380 | fi | |
6d91a86b FD |
7381 | if test ! -d "$use_libbind/include" -o \ |
7382 | ! -f "$use_libbind/include/isc/buffer.h" | |
7383 | then | |
c87db1b1 FD |
7384 | as_fn_error $? "Cannot find bind includes at $use_libbind/include" "$LINENO" 5 |
7385 | fi | |
6d91a86b FD |
7386 | if test ! -d "$use_libbind/lib" -o \ |
7387 | \( ! -f "$use_libbind/lib/libisc.a" -a \ | |
7388 | ! -f "$use_libbind/lib/libisc.la" \) | |
7389 | then | |
c87db1b1 | 7390 | as_fn_error $? "Cannot find bind libraries at $use_libbind/lib" "$LINENO" 5 |
6913a589 | 7391 | fi |
c87db1b1 | 7392 | BINDDIR="$use_libbind" |
e94e7f23 FD |
7393 | BINDLIBIRSDIR="$BINDDIR/lib" |
7394 | BINDLIBDNSDIR="$BINDDIR/lib" | |
7395 | BINDLIBISCCFGDIR="$BINDDIR/lib" | |
7396 | BINDLIBISCDIR="$BINDDIR/lib" | |
68315782 | 7397 | DISTCHECK_LIBBIND_CONFIGURE_FLAG="--with-libbind=$use_libbind" |
a81f3ae6 SR |
7398 | ;; |
7399 | esac | |
7400 | ||
0fb9c8a1 | 7401 | |
5a428b2e | 7402 | |
c87db1b1 FD |
7403 | |
7404 | ||
e94e7f23 FD |
7405 | |
7406 | ||
7407 | ||
68315782 FD |
7408 | if test "$use_libbind" = "no"; then |
7409 | HAVE_BINDDIR_TRUE= | |
7410 | HAVE_BINDDIR_FALSE='#' | |
7411 | else | |
7412 | HAVE_BINDDIR_TRUE='#' | |
7413 | HAVE_BINDDIR_FALSE= | |
7414 | fi | |
7415 | ||
7416 | ||
13e5cc6c FD |
7417 | # |
7418 | # GNU libtool support | |
7419 | # | |
7420 | case "$build_os" in | |
7421 | sunos*) | |
7422 | # Just set the maximum command line length for sunos | |
7423 | # as it otherwise takes a exceptionally long time to | |
7424 | # work it out. Required for libtool. | |
7425 | ||
7426 | lt_cv_sys_max_cmd_len=4096 | |
7427 | ;; | |
7428 | esac | |
7429 | ||
7430 | want_libtool="no" | |
7431 | ||
7432 | BINDLT= | |
bf6f8fce | 7433 | DISTCHECK_LIBTOOL_CONFIGURE_FLAG= |
13e5cc6c | 7434 | # Check whether --enable-libtool was given. |
41f81b5c WW |
7435 | if test ${enable_libtool+y} |
7436 | then : | |
13e5cc6c FD |
7437 | enableval=$enable_libtool; want_libtool="$enableval" |
7438 | fi | |
7439 | ||
d113bc2c | 7440 | |
6d91a86b FD |
7441 | if test "$use_libbind" != "no"; then |
7442 | if test "$want_libtool" = "yes" -a \ | |
7443 | ! -f "$use_libbind/lib/libisc.la" | |
7444 | then | |
7445 | as_fn_error $? "Cannot find dynamic libraries at $use_libbind/lib" "$LINENO" 5 | |
7446 | fi | |
7447 | if test "$want_libtool" = "no" -a \ | |
7448 | ! -f "$use_libbind/lib/libisc.a" | |
7449 | then | |
7450 | as_fn_error $? "Cannot find static libraries at $use_libbind/lib" "$LINENO" 5 | |
7451 | fi | |
7452 | fi | |
7453 | ||
d113bc2c | 7454 | |
13e5cc6c | 7455 | if test "$want_libtool" = "yes"; then |
41f81b5c WW |
7456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&5 |
7457 | printf "%s\n" "$as_me: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&2;} | |
6d91a86b | 7458 | # expand $ac_configure_args |
d113bc2c FD |
7459 | eval "set my_configure_args $ac_configure_args" |
7460 | shift | |
6d91a86b | 7461 | cd $srcdir; exec ./config+lt "$@" |
13e5cc6c FD |
7462 | as_fn_error $? "Recovering failed" "$LINENO" 5 |
7463 | fi | |
d113bc2c FD |
7464 | |
7465 | DHLIBS=LIBRARIES | |
13e5cc6c FD |
7466 | A=a |
7467 | ||
7468 | ||
7469 | ||
d113bc2c FD |
7470 | |
7471 | ||
bf6f8fce FD |
7472 | |
7473 | # quoting in Makefile.am.in | |
7474 | Q=@ | |
7475 | ||
7476 | ||
7477 | # install bind includes and libraries | |
7478 | ||
7479 | want_install_bind="no" | |
7480 | if test "$want_libtool" = "yes"; then | |
7481 | want_install_bind="yes" | |
7482 | fi | |
7483 | if test "$use_libbind" != "no"; then | |
7484 | want_install_bind="no" | |
7485 | fi | |
f9741514 | 7486 | # Check whether --enable-bind_install was given. |
41f81b5c WW |
7487 | if test ${enable_bind_install+y} |
7488 | then : | |
bf6f8fce | 7489 | enableval=$enable_bind_install; want_install_bind="$enableval" |
f9741514 FD |
7490 | fi |
7491 | ||
bf6f8fce FD |
7492 | if test "$want_install_bind" = "yes"; then |
7493 | if test "$use_libbind" != "no"; then | |
41f81b5c WW |
7494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&5 |
7495 | printf "%s\n" "$as_me: WARNING: --enable-bind-install does nothing when --with-libbind is set" >&2;} | |
bf6f8fce FD |
7496 | fi |
7497 | elif test "$want_libtool" = "yes" -a "$use_libbind" = "no"; then | |
41f81b5c WW |
7498 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: embedded dynamic bind libraries must be installed" >&5 |
7499 | printf "%s\n" "$as_me: WARNING: embedded dynamic bind libraries must be installed" >&2;} | |
f9741514 | 7500 | fi |
bf6f8fce | 7501 | if test "$want_install_bind" = "yes"; then |
f9741514 FD |
7502 | INSTALL_BIND_TRUE= |
7503 | INSTALL_BIND_FALSE='#' | |
7504 | else | |
7505 | INSTALL_BIND_TRUE='#' | |
7506 | INSTALL_BIND_FALSE= | |
7507 | fi | |
7508 | ||
7509 | ||
2d5fba9b DH |
7510 | # OpenLDAP support. |
7511 | ||
7512 | # Check whether --with-ldap was given. | |
41f81b5c WW |
7513 | if test ${with_ldap+y} |
7514 | then : | |
2d5fba9b | 7515 | withval=$with_ldap; ldap=$withval |
41f81b5c | 7516 | else $as_nop |
2d5fba9b DH |
7517 | ldap=no |
7518 | fi | |
7519 | ||
7520 | ||
7521 | # OpenLDAP with SSL support. | |
7522 | ||
7523 | # Check whether --with-ldapcrypto was given. | |
41f81b5c WW |
7524 | if test ${with_ldapcrypto+y} |
7525 | then : | |
2d5fba9b | 7526 | withval=$with_ldapcrypto; ldapcrypto=$withval |
41f81b5c | 7527 | else $as_nop |
2d5fba9b DH |
7528 | ldapcrypto=no |
7529 | fi | |
7530 | ||
7531 | ||
743d6937 TM |
7532 | # Gssapi to allow LDAP to authenticate with a keytab |
7533 | ||
7534 | # Check whether --with-ldap-gssapi was given. | |
41f81b5c WW |
7535 | if test ${with_ldap_gssapi+y} |
7536 | then : | |
743d6937 | 7537 | withval=$with_ldap_gssapi; ldap_gssapi=$withval |
41f81b5c | 7538 | else $as_nop |
743d6937 TM |
7539 | ldap_gssapi=no |
7540 | fi | |
7541 | ||
7542 | ||
7543 | ||
7544 | # LDAP CASA auth support. | |
7545 | ||
7546 | # Check whether --with-ldapcasa was given. | |
41f81b5c WW |
7547 | if test ${with_ldapcasa+y} |
7548 | then : | |
743d6937 | 7549 | withval=$with_ldapcasa; ldapcasa=$withval |
41f81b5c | 7550 | else $as_nop |
743d6937 TM |
7551 | ldapcasa=no |
7552 | fi | |
7553 | ||
7554 | ||
2d5fba9b DH |
7555 | # OpenLDAP support is disabled by default, if enabled then SSL support is an |
7556 | # extra optional that is also disabled by default. Enabling LDAP SSL support | |
743d6937 TM |
7557 | # implies enabling LDAP support. Similarly, KRB5 support implies LDAP support, |
7558 | # but doesn't include SSL. The two are not dependant. | |
7559 | if test x$ldap = xyes || test x$ldapcrypto = xyes || test x$ldap_gssapi = xyes; then | |
7560 | saved_LIBS="$LIBS" | |
7561 | LIBS="" | |
41f81b5c WW |
7562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5 |
7563 | printf %s "checking for library containing ldap_initialize... " >&6; } | |
7564 | if test ${ac_cv_search_ldap_initialize+y} | |
7565 | then : | |
7566 | printf %s "(cached) " >&6 | |
7567 | else $as_nop | |
2d5fba9b | 7568 | ac_func_search_save_LIBS=$LIBS |
a24b9f23 | 7569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2d5fba9b DH |
7570 | /* end confdefs.h. */ |
7571 | ||
7572 | /* Override any GCC internal prototype to avoid an error. | |
7573 | Use char because int might match the return type of a GCC | |
7574 | builtin and then its argument prototype would still apply. */ | |
2d5fba9b DH |
7575 | char ldap_initialize (); |
7576 | int | |
41f81b5c | 7577 | main (void) |
2d5fba9b DH |
7578 | { |
7579 | return ldap_initialize (); | |
7580 | ; | |
7581 | return 0; | |
7582 | } | |
7583 | _ACEOF | |
41f81b5c WW |
7584 | for ac_lib in '' ldap |
7585 | do | |
2d5fba9b DH |
7586 | if test -z "$ac_lib"; then |
7587 | ac_res="none required" | |
7588 | else | |
7589 | ac_res=-l$ac_lib | |
7590 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7591 | fi | |
41f81b5c WW |
7592 | if ac_fn_c_try_link "$LINENO" |
7593 | then : | |
2d5fba9b | 7594 | ac_cv_search_ldap_initialize=$ac_res |
2d5fba9b | 7595 | fi |
41f81b5c | 7596 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
a24b9f23 | 7597 | conftest$ac_exeext |
41f81b5c WW |
7598 | if test ${ac_cv_search_ldap_initialize+y} |
7599 | then : | |
2d5fba9b DH |
7600 | break |
7601 | fi | |
7602 | done | |
41f81b5c WW |
7603 | if test ${ac_cv_search_ldap_initialize+y} |
7604 | then : | |
a24b9f23 | 7605 | |
41f81b5c | 7606 | else $as_nop |
2d5fba9b DH |
7607 | ac_cv_search_ldap_initialize=no |
7608 | fi | |
7609 | rm conftest.$ac_ext | |
7610 | LIBS=$ac_func_search_save_LIBS | |
7611 | fi | |
41f81b5c WW |
7612 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5 |
7613 | printf "%s\n" "$ac_cv_search_ldap_initialize" >&6; } | |
2d5fba9b | 7614 | ac_res=$ac_cv_search_ldap_initialize |
41f81b5c WW |
7615 | if test "$ac_res" != no |
7616 | then : | |
2d5fba9b DH |
7617 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
7618 | ||
41f81b5c WW |
7619 | else $as_nop |
7620 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7621 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
a24b9f23 MA |
7622 | as_fn_error $? "*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package? |
7623 | See \`config.log' for more details" "$LINENO" 5; } | |
2d5fba9b DH |
7624 | fi |
7625 | ||
41f81b5c WW |
7626 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5 |
7627 | printf %s "checking for library containing ber_pvt_opt_on... " >&6; } | |
7628 | if test ${ac_cv_search_ber_pvt_opt_on+y} | |
7629 | then : | |
7630 | printf %s "(cached) " >&6 | |
7631 | else $as_nop | |
8f95db41 | 7632 | ac_func_search_save_LIBS=$LIBS |
a24b9f23 | 7633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f95db41 SR |
7634 | /* end confdefs.h. */ |
7635 | ||
7636 | /* Override any GCC internal prototype to avoid an error. | |
7637 | Use char because int might match the return type of a GCC | |
7638 | builtin and then its argument prototype would still apply. */ | |
8f95db41 SR |
7639 | char ber_pvt_opt_on (); |
7640 | int | |
41f81b5c | 7641 | main (void) |
8f95db41 SR |
7642 | { |
7643 | return ber_pvt_opt_on (); | |
7644 | ; | |
7645 | return 0; | |
7646 | } | |
7647 | _ACEOF | |
41f81b5c WW |
7648 | for ac_lib in '' lber |
7649 | do | |
8f95db41 SR |
7650 | if test -z "$ac_lib"; then |
7651 | ac_res="none required" | |
7652 | else | |
7653 | ac_res=-l$ac_lib | |
7654 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7655 | fi | |
41f81b5c WW |
7656 | if ac_fn_c_try_link "$LINENO" |
7657 | then : | |
8f95db41 | 7658 | ac_cv_search_ber_pvt_opt_on=$ac_res |
8f95db41 | 7659 | fi |
41f81b5c | 7660 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
a24b9f23 | 7661 | conftest$ac_exeext |
41f81b5c WW |
7662 | if test ${ac_cv_search_ber_pvt_opt_on+y} |
7663 | then : | |
8f95db41 SR |
7664 | break |
7665 | fi | |
7666 | done | |
41f81b5c WW |
7667 | if test ${ac_cv_search_ber_pvt_opt_on+y} |
7668 | then : | |
a24b9f23 | 7669 | |
41f81b5c | 7670 | else $as_nop |
8f95db41 SR |
7671 | ac_cv_search_ber_pvt_opt_on=no |
7672 | fi | |
7673 | rm conftest.$ac_ext | |
7674 | LIBS=$ac_func_search_save_LIBS | |
7675 | fi | |
41f81b5c WW |
7676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5 |
7677 | printf "%s\n" "$ac_cv_search_ber_pvt_opt_on" >&6; } | |
8f95db41 | 7678 | ac_res=$ac_cv_search_ber_pvt_opt_on |
41f81b5c WW |
7679 | if test "$ac_res" != no |
7680 | then : | |
8f95db41 SR |
7681 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
7682 | ||
41f81b5c WW |
7683 | else $as_nop |
7684 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7685 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
a24b9f23 MA |
7686 | as_fn_error $? "*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package? |
7687 | See \`config.log' for more details" "$LINENO" 5; } | |
8f95db41 SR |
7688 | fi |
7689 | ||
743d6937 | 7690 | if test x$ldap_gssapi = xyes ; then |
41f81b5c WW |
7691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5 |
7692 | printf %s "checking for library containing krb5_init_context... " >&6; } | |
7693 | if test ${ac_cv_search_krb5_init_context+y} | |
7694 | then : | |
7695 | printf %s "(cached) " >&6 | |
7696 | else $as_nop | |
743d6937 TM |
7697 | ac_func_search_save_LIBS=$LIBS |
7698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7699 | /* end confdefs.h. */ | |
7700 | ||
7701 | /* Override any GCC internal prototype to avoid an error. | |
7702 | Use char because int might match the return type of a GCC | |
7703 | builtin and then its argument prototype would still apply. */ | |
743d6937 TM |
7704 | char krb5_init_context (); |
7705 | int | |
41f81b5c | 7706 | main (void) |
743d6937 TM |
7707 | { |
7708 | return krb5_init_context (); | |
7709 | ; | |
7710 | return 0; | |
7711 | } | |
7712 | _ACEOF | |
41f81b5c WW |
7713 | for ac_lib in '' krb5 |
7714 | do | |
743d6937 TM |
7715 | if test -z "$ac_lib"; then |
7716 | ac_res="none required" | |
7717 | else | |
7718 | ac_res=-l$ac_lib | |
7719 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7720 | fi | |
41f81b5c WW |
7721 | if ac_fn_c_try_link "$LINENO" |
7722 | then : | |
743d6937 TM |
7723 | ac_cv_search_krb5_init_context=$ac_res |
7724 | fi | |
41f81b5c | 7725 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
743d6937 | 7726 | conftest$ac_exeext |
41f81b5c WW |
7727 | if test ${ac_cv_search_krb5_init_context+y} |
7728 | then : | |
743d6937 TM |
7729 | break |
7730 | fi | |
7731 | done | |
41f81b5c WW |
7732 | if test ${ac_cv_search_krb5_init_context+y} |
7733 | then : | |
743d6937 | 7734 | |
41f81b5c | 7735 | else $as_nop |
743d6937 TM |
7736 | ac_cv_search_krb5_init_context=no |
7737 | fi | |
7738 | rm conftest.$ac_ext | |
7739 | LIBS=$ac_func_search_save_LIBS | |
7740 | fi | |
41f81b5c WW |
7741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_init_context" >&5 |
7742 | printf "%s\n" "$ac_cv_search_krb5_init_context" >&6; } | |
743d6937 | 7743 | ac_res=$ac_cv_search_krb5_init_context |
41f81b5c WW |
7744 | if test "$ac_res" != no |
7745 | then : | |
743d6937 TM |
7746 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
7747 | ||
41f81b5c WW |
7748 | else $as_nop |
7749 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7750 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
743d6937 TM |
7751 | as_fn_error $? "*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package? |
7752 | See \`config.log' for more details" "$LINENO" 5; } | |
7753 | fi | |
7754 | ||
7755 | fi | |
7756 | ||
7757 | # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS | |
7758 | LDAP_LIBS=$LIBS | |
7759 | ||
7760 | LIBS="$saved_LIBS" | |
7761 | ||
7762 | ||
41f81b5c WW |
7763 | ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default" |
7764 | if test "x$ac_cv_header_ldap_h" = xyes | |
7765 | then : | |
7766 | printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h | |
743d6937 TM |
7767 | |
7768 | fi | |
7769 | ||
41f81b5c WW |
7770 | ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" |
7771 | if test "x$ac_cv_func_inet_pton" = xyes | |
7772 | then : | |
7773 | printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h | |
743d6937 | 7774 | |
41f81b5c WW |
7775 | fi |
7776 | ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" | |
7777 | if test "x$ac_cv_func_inet_ntop" = xyes | |
7778 | then : | |
7779 | printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h | |
743d6937 TM |
7780 | |
7781 | fi | |
2d5fba9b | 7782 | |
2d5fba9b | 7783 | |
2d5fba9b | 7784 | |
743d6937 TM |
7785 | LDAP_CFLAGS="-DLDAP_CONFIGURATION" |
7786 | ||
7787 | if test x$ldapcasa = xyes ; then | |
41f81b5c | 7788 | for ac_header in micasa_mgmd.h |
743d6937 | 7789 | do : |
41f81b5c WW |
7790 | ac_fn_c_check_header_compile "$LINENO" "micasa_mgmd.h" "ac_cv_header_micasa_mgmd_h" "$ac_includes_default" |
7791 | if test "x$ac_cv_header_micasa_mgmd_h" = xyes | |
7792 | then : | |
7793 | printf "%s\n" "#define HAVE_MICASA_MGMD_H 1" >>confdefs.h | |
743d6937 TM |
7794 | |
7795 | LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_CASA_AUTH" | |
7796 | ||
41f81b5c WW |
7797 | else $as_nop |
7798 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7799 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
743d6937 TM |
7800 | as_fn_error $? "*** Cannot find micasa_mgmd.h for ldap casa auth support |
7801 | See \`config.log' for more details" "$LINENO" 5; } | |
7802 | fi | |
7803 | ||
7804 | done | |
743d6937 TM |
7805 | fi |
7806 | ||
7807 | if test x$ldapcrypto = xyes ; then | |
7808 | LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_SSL" | |
7809 | fi | |
7810 | ||
7811 | if test x$ldap_gssapi = xyes; then | |
7812 | LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_GSSAPI" | |
2d5fba9b | 7813 | fi |
743d6937 TM |
7814 | |
7815 | LDAP_CFLAGS=$LDAP_CFLAGS | |
7816 | ||
2d5fba9b DH |
7817 | fi |
7818 | ||
c5b1ad9f | 7819 | # Append selected warning levels to CFLAGS before substitution (but after |
d7d9c0c7 | 7820 | # AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc). |
c5b1ad9f DH |
7821 | CFLAGS="$CFLAGS $STD_CWARNINGS" |
7822 | ||
5a428b2e FD |
7823 | # Try to add the bind and dhcp include directories |
7824 | CFLAGS="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include" | |
a81f3ae6 | 7825 | |
a24b9f23 MA |
7826 | case "$host" in |
7827 | *-darwin*) | |
0f1a34e9 TM |
7828 | CFLAGS="$CFLAGS -D__APPLE_USE_RFC_3542";; |
7829 | *-solaris*) | |
7830 | # As of Solaris 11, ethernet dev files are in /dev/net | |
41f81b5c WW |
7831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/net" >&5 |
7832 | printf %s "checking for /dev/net... " >&6; } | |
7833 | if test ${ac_cv_file__dev_net+y} | |
7834 | then : | |
7835 | printf %s "(cached) " >&6 | |
7836 | else $as_nop | |
0f1a34e9 TM |
7837 | test "$cross_compiling" = yes && |
7838 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | |
7839 | if test -r "/dev/net"; then | |
7840 | ac_cv_file__dev_net=yes | |
7841 | else | |
7842 | ac_cv_file__dev_net=no | |
7843 | fi | |
7844 | fi | |
41f81b5c WW |
7845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_net" >&5 |
7846 | printf "%s\n" "$ac_cv_file__dev_net" >&6; } | |
7847 | if test "x$ac_cv_file__dev_net" = xyes | |
7848 | then : | |
0f1a34e9 | 7849 | |
41f81b5c | 7850 | printf "%s\n" "#define USE_DEV_NET 1" >>confdefs.h |
0f1a34e9 TM |
7851 | |
7852 | fi | |
7853 | ||
7854 | ;; | |
a24b9f23 MA |
7855 | esac |
7856 | ||
e715a7b1 | 7857 | |
41f81b5c WW |
7858 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5 |
7859 | printf %s "checking for flexible array members... " >&6; } | |
7860 | if test ${ac_cv_c_flexmember+y} | |
7861 | then : | |
7862 | printf %s "(cached) " >&6 | |
7863 | else $as_nop | |
a24b9f23 | 7864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e715a7b1 SR |
7865 | /* end confdefs.h. */ |
7866 | #include <stdlib.h> | |
7867 | #include <stdio.h> | |
7868 | #include <stddef.h> | |
7869 | struct s { int n; double d[]; }; | |
7870 | int | |
41f81b5c | 7871 | main (void) |
e715a7b1 SR |
7872 | { |
7873 | int m = getchar (); | |
41f81b5c WW |
7874 | struct s *p = (struct s *) malloc (offsetof (struct s, d) |
7875 | + m * sizeof (double)); | |
e715a7b1 SR |
7876 | p->d[0] = 0.0; |
7877 | return p->d != (double *) NULL; | |
7878 | ; | |
7879 | return 0; | |
7880 | } | |
7881 | _ACEOF | |
41f81b5c WW |
7882 | if ac_fn_c_try_compile "$LINENO" |
7883 | then : | |
e715a7b1 | 7884 | ac_cv_c_flexmember=yes |
41f81b5c | 7885 | else $as_nop |
a24b9f23 | 7886 | ac_cv_c_flexmember=no |
e715a7b1 | 7887 | fi |
41f81b5c | 7888 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
e715a7b1 | 7889 | fi |
41f81b5c WW |
7890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 |
7891 | printf "%s\n" "$ac_cv_c_flexmember" >&6; } | |
e715a7b1 SR |
7892 | if test $ac_cv_c_flexmember = yes; then |
7893 | ||
41f81b5c | 7894 | printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h |
e715a7b1 SR |
7895 | |
7896 | else | |
41f81b5c | 7897 | printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h |
e715a7b1 SR |
7898 | |
7899 | fi | |
7900 | ||
7901 | ||
0a2f9a62 | 7902 | ac_config_files="$ac_config_files Makefile client/Makefile client/tests/Makefile common/Makefile.am common/Makefile common/tests/Makefile dhcpctl/Makefile.am dhcpctl/Makefile includes/Makefile keama/Makefile omapip/Makefile.am omapip/Makefile relay/Makefile relay/tests/Makefile server/Makefile tests/Makefile.am tests/Makefile tests/unittest.sh server/tests/Makefile doc/devel/doxyfile" |
4d24561a | 7903 | |
fe5b0fdd DH |
7904 | cat >confcache <<\_ACEOF |
7905 | # This file is a shell script that caches the results of configure | |
7906 | # tests run on this system so they can be shared between configure | |
7907 | # scripts and configure runs, see configure's option --config-cache. | |
7908 | # It is not useful on other systems. If it contains results you don't | |
7909 | # want to keep, you may remove or edit it. | |
7910 | # | |
7911 | # config.status only pays attention to the cache file if you give it | |
7912 | # the --recheck option to rerun configure. | |
7913 | # | |
7914 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7915 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7916 | # following values. | |
7917 | ||
7918 | _ACEOF | |
7919 | ||
7920 | # The following way of writing the cache mishandles newlines in values, | |
7921 | # but we know of no workaround that is simple, portable, and efficient. | |
4d24561a | 7922 | # So, we kill variables containing newlines. |
fe5b0fdd DH |
7923 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7924 | # and sets the high bit in the cache file unless we assign to the vars. | |
4d24561a JR |
7925 | ( |
7926 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7927 | eval ac_val=\$$ac_var | |
7928 | case $ac_val in #( | |
7929 | *${as_nl}*) | |
7930 | case $ac_var in #( | |
41f81b5c WW |
7931 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
7932 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
4d24561a JR |
7933 | esac |
7934 | case $ac_var in #( | |
7935 | _ | IFS | as_nl) ;; #( | |
a24b9f23 MA |
7936 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7937 | *) { eval $ac_var=; unset $ac_var;} ;; | |
4d24561a JR |
7938 | esac ;; |
7939 | esac | |
7940 | done | |
7941 | ||
fe5b0fdd | 7942 | (set) 2>&1 | |
4d24561a JR |
7943 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7944 | *${as_nl}ac_space=\ *) | |
a24b9f23 MA |
7945 | # `set' does not quote correctly, so add quotes: double-quote |
7946 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
fe5b0fdd DH |
7947 | sed -n \ |
7948 | "s/'/'\\\\''/g; | |
7949 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4d24561a | 7950 | ;; #( |
fe5b0fdd DH |
7951 | *) |
7952 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4d24561a | 7953 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
fe5b0fdd | 7954 | ;; |
4d24561a JR |
7955 | esac | |
7956 | sort | |
7957 | ) | | |
fe5b0fdd | 7958 | sed ' |
4d24561a | 7959 | /^ac_cv_env_/b end |
fe5b0fdd | 7960 | t clear |
4d24561a | 7961 | :clear |
41f81b5c | 7962 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
fe5b0fdd | 7963 | t end |
4d24561a JR |
7964 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7965 | :end' >>confcache | |
7966 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7967 | if test -w "$cache_file"; then | |
a24b9f23 | 7968 | if test "x$cache_file" != "x/dev/null"; then |
41f81b5c WW |
7969 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
7970 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} | |
a24b9f23 MA |
7971 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
7972 | cat confcache >"$cache_file" | |
7973 | else | |
7974 | case $cache_file in #( | |
7975 | */* | ?:*) | |
7976 | mv -f confcache "$cache_file"$$ && | |
7977 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
7978 | *) | |
7979 | mv -f confcache "$cache_file" ;; | |
7980 | esac | |
7981 | fi | |
7982 | fi | |
d758ad8c | 7983 | else |
41f81b5c WW |
7984 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7985 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} | |
d758ad8c | 7986 | fi |
48ceb859 | 7987 | fi |
fe5b0fdd DH |
7988 | rm -f confcache |
7989 | ||
7990 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7991 | # Let make expand exec_prefix. | |
7992 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7993 | ||
7994 | DEFS=-DHAVE_CONFIG_H | |
7995 | ||
7996 | ac_libobjs= | |
7997 | ac_ltlibobjs= | |
a24b9f23 | 7998 | U= |
fe5b0fdd DH |
7999 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
8000 | # 1. Remove the extension, and $U if already installed. | |
4d24561a | 8001 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
41f81b5c | 8002 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
4d24561a JR |
8003 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
8004 | # will be set to the directory where LIBOBJS objects are built. | |
a24b9f23 MA |
8005 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
8006 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
fe5b0fdd DH |
8007 | done |
8008 | LIBOBJS=$ac_libobjs | |
8009 | ||
8010 | LTLIBOBJS=$ac_ltlibobjs | |
8011 | ||
8012 | ||
41f81b5c WW |
8013 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
8014 | printf %s "checking that generated files are newer than configure... " >&6; } | |
a24b9f23 MA |
8015 | if test -n "$am_sleep_pid"; then |
8016 | # Hide warnings about reused PIDs. | |
8017 | wait $am_sleep_pid 2>/dev/null | |
8018 | fi | |
41f81b5c WW |
8019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
8020 | printf "%s\n" "done" >&6; } | |
a24b9f23 MA |
8021 | if test -n "$EXEEXT"; then |
8022 | am__EXEEXT_TRUE= | |
8023 | am__EXEEXT_FALSE='#' | |
8024 | else | |
8025 | am__EXEEXT_TRUE='#' | |
8026 | am__EXEEXT_FALSE= | |
8027 | fi | |
8028 | ||
9a452f17 | 8029 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
a24b9f23 MA |
8030 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
8031 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
9a452f17 | 8032 | fi |
fc3ebe53 | 8033 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
a24b9f23 MA |
8034 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
8035 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
fc3ebe53 DH |
8036 | fi |
8037 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
a24b9f23 MA |
8038 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
8039 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
4a70cb10 | 8040 | fi |
a24b9f23 | 8041 | |
bfbe0fd6 TM |
8042 | if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then |
8043 | as_fn_error $? "conditional \"BIND_ATF\" was never defined. | |
8044 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8045 | fi | |
4a70cb10 | 8046 | if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then |
a24b9f23 MA |
8047 | as_fn_error $? "conditional \"HAVE_ATF\" was never defined. |
8048 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
fc3ebe53 | 8049 | fi |
68315782 FD |
8050 | if test -z "${HAVE_BINDDIR_TRUE}" && test -z "${HAVE_BINDDIR_FALSE}"; then |
8051 | as_fn_error $? "conditional \"HAVE_BINDDIR\" was never defined. | |
8052 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8053 | fi | |
f9741514 FD |
8054 | if test -z "${INSTALL_BIND_TRUE}" && test -z "${INSTALL_BIND_FALSE}"; then |
8055 | as_fn_error $? "conditional \"INSTALL_BIND\" was never defined. | |
8056 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8057 | fi | |
48ceb859 | 8058 | |
a24b9f23 MA |
8059 | : "${CONFIG_STATUS=./config.status}" |
8060 | ac_write_fail=0 | |
fe5b0fdd DH |
8061 | ac_clean_files_save=$ac_clean_files |
8062 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
41f81b5c WW |
8063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8064 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | |
a24b9f23 MA |
8065 | as_write_fail=0 |
8066 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
fe5b0fdd DH |
8067 | #! $SHELL |
8068 | # Generated by $as_me. | |
8069 | # Run this file to recreate the current configuration. | |
8070 | # Compiler output produced by configure, useful for debugging | |
8071 | # configure, is in config.log if it exists. | |
343729b9 | 8072 | |
fe5b0fdd DH |
8073 | debug=false |
8074 | ac_cs_recheck=false | |
8075 | ac_cs_silent=false | |
529be52a | 8076 | |
a24b9f23 MA |
8077 | SHELL=\${CONFIG_SHELL-$SHELL} |
8078 | export SHELL | |
8079 | _ASEOF | |
8080 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
8081 | ## -------------------- ## | |
8082 | ## M4sh Initialization. ## | |
8083 | ## -------------------- ## | |
fe5b0fdd | 8084 | |
4d24561a JR |
8085 | # Be more Bourne compatible |
8086 | DUALCASE=1; export DUALCASE # for MKS sh | |
41f81b5c WW |
8087 | as_nop=: |
8088 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
8089 | then : | |
fe5b0fdd DH |
8090 | emulate sh |
8091 | NULLCMD=: | |
a24b9f23 | 8092 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
fe5b0fdd DH |
8093 | # is contrary to our usage. Disable this feature. |
8094 | alias -g '${1+"$@"}'='"$@"' | |
4d24561a | 8095 | setopt NO_GLOB_SUBST |
41f81b5c | 8096 | else $as_nop |
a24b9f23 MA |
8097 | case `(set -o) 2>/dev/null` in #( |
8098 | *posix*) : | |
8099 | set -o posix ;; #( | |
8100 | *) : | |
8101 | ;; | |
4d24561a | 8102 | esac |
4d24561a JR |
8103 | fi |
8104 | ||
8105 | ||
41f81b5c WW |
8106 | |
8107 | # Reset variables that may have inherited troublesome values from | |
8108 | # the environment. | |
8109 | ||
8110 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
8111 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
8112 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
8113 | # Quoting is to prevent editors from complaining about space-tab. | |
a24b9f23 MA |
8114 | as_nl=' |
8115 | ' | |
8116 | export as_nl | |
41f81b5c WW |
8117 | IFS=" "" $as_nl" |
8118 | ||
8119 | PS1='$ ' | |
8120 | PS2='> ' | |
8121 | PS4='+ ' | |
8122 | ||
8123 | # Ensure predictable behavior from utilities with locale-dependent output. | |
8124 | LC_ALL=C | |
8125 | export LC_ALL | |
8126 | LANGUAGE=C | |
8127 | export LANGUAGE | |
8128 | ||
8129 | # We cannot yet rely on "unset" to work, but we need these variables | |
8130 | # to be unset--not just set to an empty or harmless value--now, to | |
8131 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
8132 | # also avoids known problems related to "unset" and subshell syntax | |
8133 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
8134 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
8135 | do eval test \${$as_var+y} \ | |
8136 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8137 | done | |
8138 | ||
8139 | # Ensure that fds 0, 1, and 2 are open. | |
8140 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
8141 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
8142 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
fe5b0fdd | 8143 | |
a24b9f23 | 8144 | # The user is always right. |
41f81b5c | 8145 | if ${PATH_SEPARATOR+false} :; then |
a24b9f23 MA |
8146 | PATH_SEPARATOR=: |
8147 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
8148 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
8149 | PATH_SEPARATOR=';' | |
8150 | } | |
d758ad8c TL |
8151 | fi |
8152 | ||
fe5b0fdd | 8153 | |
4d24561a | 8154 | # Find who we are. Look in the path if we contain no directory separator. |
a24b9f23 MA |
8155 | as_myself= |
8156 | case $0 in #(( | |
4d24561a JR |
8157 | *[\\/]* ) as_myself=$0 ;; |
8158 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8159 | for as_dir in $PATH | |
8160 | do | |
8161 | IFS=$as_save_IFS | |
41f81b5c WW |
8162 | case $as_dir in #((( |
8163 | '') as_dir=./ ;; | |
8164 | */) ;; | |
8165 | *) as_dir=$as_dir/ ;; | |
8166 | esac | |
8167 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
a24b9f23 | 8168 | done |
4d24561a JR |
8169 | IFS=$as_save_IFS |
8170 | ||
8171 | ;; | |
8172 | esac | |
8173 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8174 | # in which case we are not to be found in the path. | |
8175 | if test "x$as_myself" = x; then | |
8176 | as_myself=$0 | |
8177 | fi | |
8178 | if test ! -f "$as_myself"; then | |
41f81b5c | 8179 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
a24b9f23 | 8180 | exit 1 |
4d24561a JR |
8181 | fi |
8182 | ||
a24b9f23 MA |
8183 | |
8184 | ||
8185 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
8186 | # ---------------------------------------- | |
8187 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
8188 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
8189 | # script with STATUS, using 1 if that was 0. | |
8190 | as_fn_error () | |
8191 | { | |
8192 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
8193 | if test "$4"; then | |
8194 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
41f81b5c | 8195 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
a24b9f23 | 8196 | fi |
41f81b5c | 8197 | printf "%s\n" "$as_me: error: $2" >&2 |
a24b9f23 MA |
8198 | as_fn_exit $as_status |
8199 | } # as_fn_error | |
8200 | ||
8201 | ||
41f81b5c | 8202 | |
a24b9f23 MA |
8203 | # as_fn_set_status STATUS |
8204 | # ----------------------- | |
8205 | # Set $? to STATUS, without forking. | |
8206 | as_fn_set_status () | |
8207 | { | |
8208 | return $1 | |
8209 | } # as_fn_set_status | |
8210 | ||
8211 | # as_fn_exit STATUS | |
8212 | # ----------------- | |
8213 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
8214 | as_fn_exit () | |
8215 | { | |
8216 | set +e | |
8217 | as_fn_set_status $1 | |
8218 | exit $1 | |
8219 | } # as_fn_exit | |
8220 | ||
8221 | # as_fn_unset VAR | |
8222 | # --------------- | |
8223 | # Portably unset VAR. | |
8224 | as_fn_unset () | |
8225 | { | |
8226 | { eval $1=; unset $1;} | |
8227 | } | |
8228 | as_unset=as_fn_unset | |
41f81b5c | 8229 | |
a24b9f23 MA |
8230 | # as_fn_append VAR VALUE |
8231 | # ---------------------- | |
8232 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
8233 | # advantage of any shell optimizations that allow amortized linear growth over | |
8234 | # repeated appends, instead of the typical quadratic growth present in naive | |
8235 | # implementations. | |
41f81b5c WW |
8236 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
8237 | then : | |
a24b9f23 MA |
8238 | eval 'as_fn_append () |
8239 | { | |
8240 | eval $1+=\$2 | |
8241 | }' | |
41f81b5c | 8242 | else $as_nop |
a24b9f23 MA |
8243 | as_fn_append () |
8244 | { | |
8245 | eval $1=\$$1\$2 | |
8246 | } | |
8247 | fi # as_fn_append | |
8248 | ||
8249 | # as_fn_arith ARG... | |
8250 | # ------------------ | |
8251 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
8252 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
8253 | # must be portable across $(()) and expr. | |
41f81b5c WW |
8254 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
8255 | then : | |
a24b9f23 MA |
8256 | eval 'as_fn_arith () |
8257 | { | |
8258 | as_val=$(( $* )) | |
8259 | }' | |
41f81b5c | 8260 | else $as_nop |
a24b9f23 MA |
8261 | as_fn_arith () |
8262 | { | |
8263 | as_val=`expr "$@" || test $? -eq 1` | |
8264 | } | |
8265 | fi # as_fn_arith | |
8266 | ||
8c816ebb | 8267 | |
4d24561a JR |
8268 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8269 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fe5b0fdd DH |
8270 | as_expr=expr |
8271 | else | |
8272 | as_expr=false | |
8273 | fi | |
8274 | ||
4d24561a | 8275 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fe5b0fdd DH |
8276 | as_basename=basename |
8277 | else | |
8278 | as_basename=false | |
8279 | fi | |
8280 | ||
a24b9f23 MA |
8281 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8282 | as_dirname=dirname | |
8283 | else | |
8284 | as_dirname=false | |
8285 | fi | |
fe5b0fdd | 8286 | |
4d24561a | 8287 | as_me=`$as_basename -- "$0" || |
fe5b0fdd DH |
8288 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8289 | X"$0" : 'X\(//\)$' \| \ | |
4d24561a | 8290 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
41f81b5c | 8291 | printf "%s\n" X/"$0" | |
4d24561a JR |
8292 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
8293 | s//\1/ | |
8294 | q | |
8295 | } | |
8296 | /^X\/\(\/\/\)$/{ | |
8297 | s//\1/ | |
8298 | q | |
8299 | } | |
8300 | /^X\/\(\/\).*/{ | |
8301 | s//\1/ | |
8302 | q | |
8303 | } | |
8304 | s/.*/./; q'` | |
8305 | ||
a24b9f23 MA |
8306 | # Avoid depending upon Character Ranges. |
8307 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8308 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8309 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8310 | as_cr_digits='0123456789' | |
8311 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
4d24561a | 8312 | |
41f81b5c WW |
8313 | |
8314 | # Determine whether it's possible to make 'echo' print without a newline. | |
8315 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
8316 | # for compatibility with existing Makefiles. | |
4d24561a | 8317 | ECHO_C= ECHO_N= ECHO_T= |
a24b9f23 | 8318 | case `echo -n x` in #((((( |
4d24561a | 8319 | -n*) |
a24b9f23 | 8320 | case `echo 'xy\c'` in |
4d24561a | 8321 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
a24b9f23 MA |
8322 | xy) ECHO_C='\c';; |
8323 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
8324 | ECHO_T=' ';; | |
4d24561a JR |
8325 | esac;; |
8326 | *) | |
8327 | ECHO_N='-n';; | |
fe5b0fdd | 8328 | esac |
2d5fba9b | 8329 | |
41f81b5c WW |
8330 | # For backward compatibility with old third-party macros, we provide |
8331 | # the shell variables $as_echo and $as_echo_n. New code should use | |
8332 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
8333 | as_echo='printf %s\n' | |
8334 | as_echo_n='printf %s' | |
8335 | ||
fe5b0fdd | 8336 | rm -f conf$$ conf$$.exe conf$$.file |
4d24561a JR |
8337 | if test -d conf$$.dir; then |
8338 | rm -f conf$$.dir/conf$$.file | |
8339 | else | |
8340 | rm -f conf$$.dir | |
a24b9f23 MA |
8341 | mkdir conf$$.dir 2>/dev/null |
8342 | fi | |
8343 | if (echo >conf$$.file) 2>/dev/null; then | |
8344 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8345 | as_ln_s='ln -s' | |
8346 | # ... but there are two gotchas: | |
8347 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8348 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8349 | # In both cases, we have to default to `cp -pR'. | |
8350 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
8351 | as_ln_s='cp -pR' | |
8352 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8353 | as_ln_s=ln | |
8354 | else | |
8355 | as_ln_s='cp -pR' | |
8356 | fi | |
8357 | else | |
8358 | as_ln_s='cp -pR' | |
fe5b0fdd | 8359 | fi |
4d24561a JR |
8360 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8361 | rmdir conf$$.dir 2>/dev/null | |
fe5b0fdd | 8362 | |
a24b9f23 MA |
8363 | |
8364 | # as_fn_mkdir_p | |
8365 | # ------------- | |
8366 | # Create "$as_dir" as a directory, including parents if necessary. | |
8367 | as_fn_mkdir_p () | |
8368 | { | |
8369 | ||
8370 | case $as_dir in #( | |
8371 | -*) as_dir=./$as_dir;; | |
8372 | esac | |
8373 | test -d "$as_dir" || eval $as_mkdir_p || { | |
8374 | as_dirs= | |
8375 | while :; do | |
8376 | case $as_dir in #( | |
41f81b5c | 8377 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
a24b9f23 MA |
8378 | *) as_qdir=$as_dir;; |
8379 | esac | |
8380 | as_dirs="'$as_qdir' $as_dirs" | |
8381 | as_dir=`$as_dirname -- "$as_dir" || | |
8382 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8383 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8384 | X"$as_dir" : 'X\(//\)$' \| \ | |
8385 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
41f81b5c | 8386 | printf "%s\n" X"$as_dir" | |
a24b9f23 MA |
8387 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8388 | s//\1/ | |
8389 | q | |
8390 | } | |
8391 | /^X\(\/\/\)[^/].*/{ | |
8392 | s//\1/ | |
8393 | q | |
8394 | } | |
8395 | /^X\(\/\/\)$/{ | |
8396 | s//\1/ | |
8397 | q | |
8398 | } | |
8399 | /^X\(\/\).*/{ | |
8400 | s//\1/ | |
8401 | q | |
8402 | } | |
8403 | s/.*/./; q'` | |
8404 | test -d "$as_dir" && break | |
8405 | done | |
8406 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
8407 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
8408 | ||
8409 | ||
8410 | } # as_fn_mkdir_p | |
fe5b0fdd | 8411 | if mkdir -p . 2>/dev/null; then |
a24b9f23 | 8412 | as_mkdir_p='mkdir -p "$as_dir"' |
fe5b0fdd DH |
8413 | else |
8414 | test -d ./-p && rmdir ./-p | |
8415 | as_mkdir_p=false | |
d758ad8c | 8416 | fi |
2ac5bde5 | 8417 | |
a24b9f23 MA |
8418 | |
8419 | # as_fn_executable_p FILE | |
8420 | # ----------------------- | |
8421 | # Test if FILE is an executable regular file. | |
8422 | as_fn_executable_p () | |
8423 | { | |
8424 | test -f "$1" && test -x "$1" | |
8425 | } # as_fn_executable_p | |
8426 | as_test_x='test -x' | |
8427 | as_executable_p=as_fn_executable_p | |
fe5b0fdd DH |
8428 | |
8429 | # Sed expression to map a string onto a valid CPP name. | |
8430 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8431 | ||
8432 | # Sed expression to map a string onto a valid variable name. | |
8433 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8434 | ||
8435 | ||
8436 | exec 6>&1 | |
a24b9f23 MA |
8437 | ## ----------------------------------- ## |
8438 | ## Main body of $CONFIG_STATUS script. ## | |
8439 | ## ----------------------------------- ## | |
8440 | _ASEOF | |
8441 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
fe5b0fdd | 8442 | |
a24b9f23 MA |
8443 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8444 | # Save the log message, to keep $0 and so on meaningful, and to | |
fe5b0fdd | 8445 | # report actual input values of CONFIG_FILES etc. instead of their |
4d24561a JR |
8446 | # values after options handling. |
8447 | ac_log=" | |
41f81b5c WW |
8448 | This file was extended by DHCP $as_me 4.4.3-P1, which was |
8449 | generated by GNU Autoconf 2.71. Invocation command line was | |
fe5b0fdd DH |
8450 | |
8451 | CONFIG_FILES = $CONFIG_FILES | |
8452 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8453 | CONFIG_LINKS = $CONFIG_LINKS | |
8454 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8455 | $ $0 $@ | |
8456 | ||
4d24561a JR |
8457 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8458 | " | |
8459 | ||
fe5b0fdd DH |
8460 | _ACEOF |
8461 | ||
a24b9f23 MA |
8462 | case $ac_config_files in *" |
8463 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8464 | esac | |
8465 | ||
8466 | case $ac_config_headers in *" | |
8467 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8468 | esac | |
8469 | ||
8470 | ||
8471 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
fe5b0fdd | 8472 | # Files that config.status was made for. |
4d24561a JR |
8473 | config_files="$ac_config_files" |
8474 | config_headers="$ac_config_headers" | |
8475 | config_commands="$ac_config_commands" | |
7d714d6b | 8476 | |
4d24561a | 8477 | _ACEOF |
fe5b0fdd | 8478 | |
a24b9f23 | 8479 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
fe5b0fdd | 8480 | ac_cs_usage="\ |
a24b9f23 MA |
8481 | \`$as_me' instantiates files and other configuration actions |
8482 | from templates according to the current configuration. Unless the files | |
8483 | and actions are specified as TAGs, all are instantiated by default. | |
fe5b0fdd | 8484 | |
a24b9f23 | 8485 | Usage: $0 [OPTION]... [TAG]... |
fe5b0fdd DH |
8486 | |
8487 | -h, --help print this help, then exit | |
4d24561a | 8488 | -V, --version print version number and configuration settings, then exit |
a24b9f23 MA |
8489 | --config print configuration, then exit |
8490 | -q, --quiet, --silent | |
8491 | do not print progress messages | |
fe5b0fdd DH |
8492 | -d, --debug don't remove temporary files |
8493 | --recheck update $as_me by reconfiguring in the same conditions | |
a24b9f23 MA |
8494 | --file=FILE[:TEMPLATE] |
8495 | instantiate the configuration file FILE | |
8496 | --header=FILE[:TEMPLATE] | |
8497 | instantiate the configuration header FILE | |
fe5b0fdd DH |
8498 | |
8499 | Configuration files: | |
8500 | $config_files | |
8501 | ||
8502 | Configuration headers: | |
8503 | $config_headers | |
8504 | ||
fc3ebe53 DH |
8505 | Configuration commands: |
8506 | $config_commands | |
8507 | ||
a24b9f23 | 8508 | Report bugs to <dhcp-users@isc.org>." |
7d714d6b | 8509 | |
4d24561a | 8510 | _ACEOF |
41f81b5c WW |
8511 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
8512 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` | |
a24b9f23 | 8513 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
41f81b5c | 8514 | ac_cs_config='$ac_cs_config_escaped' |
fe5b0fdd | 8515 | ac_cs_version="\\ |
41f81b5c WW |
8516 | DHCP config.status 4.4.3-P1 |
8517 | configured by $0, generated by GNU Autoconf 2.71, | |
a24b9f23 | 8518 | with options \\"\$ac_cs_config\\" |
fe5b0fdd | 8519 | |
41f81b5c | 8520 | Copyright (C) 2021 Free Software Foundation, Inc. |
fe5b0fdd DH |
8521 | This config.status script is free software; the Free Software Foundation |
8522 | gives unlimited permission to copy, distribute and modify it." | |
4d24561a JR |
8523 | |
8524 | ac_pwd='$ac_pwd' | |
8525 | srcdir='$srcdir' | |
8526 | INSTALL='$INSTALL' | |
2d5fba9b | 8527 | MKDIR_P='$MKDIR_P' |
a24b9f23 MA |
8528 | AWK='$AWK' |
8529 | test -n "\$AWK" || AWK=awk | |
fe5b0fdd DH |
8530 | _ACEOF |
8531 | ||
a24b9f23 MA |
8532 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8533 | # The default lists apply if the user does not specify any file. | |
fe5b0fdd DH |
8534 | ac_need_defaults=: |
8535 | while test $# != 0 | |
8536 | do | |
8537 | case $1 in | |
a24b9f23 | 8538 | --*=?*) |
4d24561a JR |
8539 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8540 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
fe5b0fdd DH |
8541 | ac_shift=: |
8542 | ;; | |
a24b9f23 MA |
8543 | --*=) |
8544 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
8545 | ac_optarg= | |
8546 | ac_shift=: | |
8547 | ;; | |
4d24561a | 8548 | *) |
fe5b0fdd DH |
8549 | ac_option=$1 |
8550 | ac_optarg=$2 | |
8551 | ac_shift=shift | |
8552 | ;; | |
8553 | esac | |
8554 | ||
8555 | case $ac_option in | |
8556 | # Handling of the options. | |
8557 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8558 | ac_cs_recheck=: ;; | |
4d24561a | 8559 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
41f81b5c | 8560 | printf "%s\n" "$ac_cs_version"; exit ;; |
a24b9f23 | 8561 | --config | --confi | --conf | --con | --co | --c ) |
41f81b5c | 8562 | printf "%s\n" "$ac_cs_config"; exit ;; |
4d24561a | 8563 | --debug | --debu | --deb | --de | --d | -d ) |
fe5b0fdd DH |
8564 | debug=: ;; |
8565 | --file | --fil | --fi | --f ) | |
8566 | $ac_shift | |
a24b9f23 | 8567 | case $ac_optarg in |
41f81b5c | 8568 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
a24b9f23 MA |
8569 | '') as_fn_error $? "missing file argument" ;; |
8570 | esac | |
8571 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
fe5b0fdd DH |
8572 | ac_need_defaults=false;; |
8573 | --header | --heade | --head | --hea ) | |
8574 | $ac_shift | |
a24b9f23 | 8575 | case $ac_optarg in |
41f81b5c | 8576 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
a24b9f23 MA |
8577 | esac |
8578 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
fe5b0fdd | 8579 | ac_need_defaults=false;; |
4d24561a JR |
8580 | --he | --h) |
8581 | # Conflict between --help and --header | |
a24b9f23 MA |
8582 | as_fn_error $? "ambiguous option: \`$1' |
8583 | Try \`$0 --help' for more information.";; | |
4d24561a | 8584 | --help | --hel | -h ) |
41f81b5c | 8585 | printf "%s\n" "$ac_cs_usage"; exit ;; |
fe5b0fdd DH |
8586 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8587 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8588 | ac_cs_silent=: ;; | |
8589 | ||
8590 | # This is an error. | |
a24b9f23 MA |
8591 | -*) as_fn_error $? "unrecognized option: \`$1' |
8592 | Try \`$0 --help' for more information." ;; | |
fe5b0fdd | 8593 | |
a24b9f23 | 8594 | *) as_fn_append ac_config_targets " $1" |
4d24561a | 8595 | ac_need_defaults=false ;; |
fe5b0fdd DH |
8596 | |
8597 | esac | |
8598 | shift | |
8599 | done | |
8600 | ||
8601 | ac_configure_extra_args= | |
8602 | ||
8603 | if $ac_cs_silent; then | |
8604 | exec 6>/dev/null | |
8605 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8606 | fi | |
8607 | ||
8608 | _ACEOF | |
a24b9f23 | 8609 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
fe5b0fdd | 8610 | if \$ac_cs_recheck; then |
a24b9f23 MA |
8611 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8612 | shift | |
41f81b5c | 8613 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
a24b9f23 | 8614 | CONFIG_SHELL='$SHELL' |
4d24561a | 8615 | export CONFIG_SHELL |
a24b9f23 | 8616 | exec "\$@" |
fe5b0fdd DH |
8617 | fi |
8618 | ||
8619 | _ACEOF | |
a24b9f23 | 8620 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4d24561a JR |
8621 | exec 5>>config.log |
8622 | { | |
8623 | echo | |
8624 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8625 | ## Running $as_me. ## | |
8626 | _ASBOX | |
41f81b5c | 8627 | printf "%s\n" "$ac_log" |
4d24561a | 8628 | } >&5 |
fe5b0fdd | 8629 | |
4d24561a | 8630 | _ACEOF |
a24b9f23 | 8631 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
fc3ebe53 | 8632 | # |
4d24561a | 8633 | # INIT-COMMANDS |
fc3ebe53 | 8634 | # |
0cd94b5e | 8635 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
fe5b0fdd | 8636 | |
fc3ebe53 | 8637 | _ACEOF |
fe5b0fdd | 8638 | |
a24b9f23 | 8639 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4d24561a JR |
8640 | |
8641 | # Handling of arguments. | |
fe5b0fdd DH |
8642 | for ac_config_target in $ac_config_targets |
8643 | do | |
4d24561a JR |
8644 | case $ac_config_target in |
8645 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8646 | "includes/config.h") CONFIG_HEADERS="$CONFIG_HEADERS includes/config.h" ;; | |
5a428b2e | 8647 | "$srcdir/bind/Makefile") CONFIG_FILES="$CONFIG_FILES $srcdir/bind/Makefile" ;; |
c87db1b1 | 8648 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
4d24561a | 8649 | "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;; |
79818c93 | 8650 | "client/tests/Makefile") CONFIG_FILES="$CONFIG_FILES client/tests/Makefile" ;; |
13e5cc6c | 8651 | "common/Makefile.am") CONFIG_FILES="$CONFIG_FILES common/Makefile.am" ;; |
4d24561a JR |
8652 | "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; |
8653 | "common/tests/Makefile") CONFIG_FILES="$CONFIG_FILES common/tests/Makefile" ;; | |
13e5cc6c | 8654 | "dhcpctl/Makefile.am") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile.am" ;; |
4d24561a | 8655 | "dhcpctl/Makefile") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile" ;; |
4d24561a | 8656 | "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;; |
0cd94b5e | 8657 | "keama/Makefile") CONFIG_FILES="$CONFIG_FILES keama/Makefile" ;; |
13e5cc6c | 8658 | "omapip/Makefile.am") CONFIG_FILES="$CONFIG_FILES omapip/Makefile.am" ;; |
4d24561a JR |
8659 | "omapip/Makefile") CONFIG_FILES="$CONFIG_FILES omapip/Makefile" ;; |
8660 | "relay/Makefile") CONFIG_FILES="$CONFIG_FILES relay/Makefile" ;; | |
0a2f9a62 | 8661 | "relay/tests/Makefile") CONFIG_FILES="$CONFIG_FILES relay/tests/Makefile" ;; |
4d24561a | 8662 | "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
13e5cc6c | 8663 | "tests/Makefile.am") CONFIG_FILES="$CONFIG_FILES tests/Makefile.am" ;; |
4d24561a | 8664 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
9a111ee8 | 8665 | "tests/unittest.sh") CONFIG_FILES="$CONFIG_FILES tests/unittest.sh" ;; |
4a70cb10 TM |
8666 | "server/tests/Makefile") CONFIG_FILES="$CONFIG_FILES server/tests/Makefile" ;; |
8667 | "doc/devel/doxyfile") CONFIG_FILES="$CONFIG_FILES doc/devel/doxyfile" ;; | |
4d24561a | 8668 | |
a24b9f23 | 8669 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
fe5b0fdd DH |
8670 | esac |
8671 | done | |
8672 | ||
4d24561a | 8673 | |
fe5b0fdd DH |
8674 | # If the user did not use the arguments to specify the items to instantiate, |
8675 | # then the envvar interface is used. Set only those that are not. | |
8676 | # We use the long form for the default assignment because of an extremely | |
8677 | # bizarre bug on SunOS 4.1.3. | |
8678 | if $ac_need_defaults; then | |
41f81b5c WW |
8679 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
8680 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers | |
8681 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands | |
fe5b0fdd DH |
8682 | fi |
8683 | ||
8684 | # Have a temporary directory for convenience. Make it in the build tree | |
4d24561a | 8685 | # simply because there is no reason against having it here, and in addition, |
fe5b0fdd | 8686 | # creating and moving files from /tmp can sometimes cause problems. |
4d24561a JR |
8687 | # Hook for its removal unless debugging. |
8688 | # Note that there is a small window in which the directory will not be cleaned: | |
8689 | # after its creation but before its name has been assigned to `$tmp'. | |
fe5b0fdd DH |
8690 | $debug || |
8691 | { | |
a24b9f23 | 8692 | tmp= ac_tmp= |
4d24561a | 8693 | trap 'exit_status=$? |
a24b9f23 MA |
8694 | : "${ac_tmp:=$tmp}" |
8695 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
4d24561a | 8696 | ' 0 |
a24b9f23 | 8697 | trap 'as_fn_exit 1' 1 2 13 15 |
fe5b0fdd DH |
8698 | } |
8699 | # Create a (secure) tmp directory for tmp files. | |
8700 | ||
8701 | { | |
4d24561a | 8702 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
a24b9f23 | 8703 | test -d "$tmp" |
fe5b0fdd DH |
8704 | } || |
8705 | { | |
4d24561a JR |
8706 | tmp=./conf$$-$RANDOM |
8707 | (umask 077 && mkdir "$tmp") | |
a24b9f23 MA |
8708 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
8709 | ac_tmp=$tmp | |
9228099e | 8710 | |
a24b9f23 MA |
8711 | # Set up the scripts for CONFIG_FILES section. |
8712 | # No need to generate them if there are no CONFIG_FILES. | |
8713 | # This happens for instance with `./config.status config.h'. | |
529be52a | 8714 | if test -n "$CONFIG_FILES"; then |
4a70cb10 | 8715 | |
4d24561a | 8716 | |
a24b9f23 MA |
8717 | ac_cr=`echo X | tr X '\015'` |
8718 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8719 | # But we know of no other shell where ac_cr would be empty at this | |
8720 | # point, so we can use a bashism as a fallback. | |
8721 | if test "x$ac_cr" = x; then | |
8722 | eval ac_cr=\$\'\\r\' | |
8723 | fi | |
8724 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8725 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
8726 | ac_cs_awk_cr='\\r' | |
8727 | else | |
8728 | ac_cs_awk_cr=$ac_cr | |
8729 | fi | |
8730 | ||
8731 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
8732 | _ACEOF | |
2d5fba9b | 8733 | |
529be52a | 8734 | |
a24b9f23 MA |
8735 | { |
8736 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8737 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8738 | echo "_ACEOF" | |
8739 | } >conf$$subs.sh || | |
8740 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8741 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
4d24561a JR |
8742 | ac_delim='%!_!# ' |
8743 | for ac_last_try in false false false false false :; do | |
a24b9f23 MA |
8744 | . ./conf$$subs.sh || |
8745 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
2d5fba9b | 8746 | |
a24b9f23 MA |
8747 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
8748 | if test $ac_delim_n = $ac_delim_num; then | |
4d24561a JR |
8749 | break |
8750 | elif $ac_last_try; then | |
a24b9f23 | 8751 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
4d24561a JR |
8752 | else |
8753 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
c9a1db5e | 8754 | fi |
4d24561a | 8755 | done |
a24b9f23 MA |
8756 | rm -f conf$$subs.sh |
8757 | ||
8758 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8759 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
8760 | _ACEOF | |
8761 | sed -n ' | |
8762 | h | |
8763 | s/^/S["/; s/!.*/"]=/ | |
8764 | p | |
8765 | g | |
8766 | s/^[^!]*!// | |
8767 | :repl | |
8768 | t repl | |
8769 | s/'"$ac_delim"'$// | |
8770 | t delim | |
8771 | :nl | |
8772 | h | |
8773 | s/\(.\{148\}\)..*/\1/ | |
8774 | t more1 | |
8775 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8776 | p | |
8777 | n | |
8778 | b repl | |
8779 | :more1 | |
8780 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8781 | p | |
8782 | g | |
8783 | s/.\{148\}// | |
8784 | t nl | |
8785 | :delim | |
8786 | h | |
8787 | s/\(.\{148\}\)..*/\1/ | |
8788 | t more2 | |
8789 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8790 | p | |
8791 | b | |
8792 | :more2 | |
8793 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8794 | p | |
8795 | g | |
8796 | s/.\{148\}// | |
8797 | t delim | |
8798 | ' <conf$$subs.awk | sed ' | |
8799 | /^[^""]/{ | |
8800 | N | |
8801 | s/\n// | |
8802 | } | |
8803 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8804 | rm -f conf$$subs.awk | |
8805 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8806 | _ACAWK | |
8807 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
8808 | for (key in S) S_is_set[key] = 1 | |
8809 | FS = "\a" | |
4d24561a | 8810 | |
a24b9f23 MA |
8811 | } |
8812 | { | |
8813 | line = $ 0 | |
8814 | nfields = split(line, field, "@") | |
8815 | substed = 0 | |
8816 | len = length(field[1]) | |
8817 | for (i = 2; i < nfields; i++) { | |
8818 | key = field[i] | |
8819 | keylen = length(key) | |
8820 | if (S_is_set[key]) { | |
8821 | value = S[key] | |
8822 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8823 | len += length(value) + length(field[++i]) | |
8824 | substed = 1 | |
8825 | } else | |
8826 | len += 1 + keylen | |
8827 | } | |
8828 | ||
8829 | print line | |
8830 | } | |
273bfdc3 | 8831 | |
a24b9f23 | 8832 | _ACAWK |
4d24561a | 8833 | _ACEOF |
a24b9f23 MA |
8834 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8835 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8836 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8837 | else | |
8838 | cat | |
8839 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
8840 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
c9a1db5e | 8841 | _ACEOF |
4d24561a | 8842 | |
a24b9f23 MA |
8843 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
8844 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
4d24561a JR |
8845 | # trailing colons and then remove the whole line if VPATH becomes empty |
8846 | # (actually we leave an empty line to preserve line numbers). | |
8847 | if test "x$srcdir" = x.; then | |
a24b9f23 MA |
8848 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
8849 | h | |
8850 | s/// | |
8851 | s/^/:/ | |
8852 | s/[ ]*$/:/ | |
8853 | s/:\$(srcdir):/:/g | |
8854 | s/:\${srcdir}:/:/g | |
8855 | s/:@srcdir@:/:/g | |
8856 | s/^:*// | |
4d24561a | 8857 | s/:*$// |
a24b9f23 MA |
8858 | x |
8859 | s/\(=[ ]*\).*/\1/ | |
8860 | G | |
8861 | s/\n// | |
4d24561a JR |
8862 | s/^[^=]*=[ ]*$// |
8863 | }' | |
8864 | fi | |
8865 | ||
a24b9f23 | 8866 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4d24561a JR |
8867 | fi # test -n "$CONFIG_FILES" |
8868 | ||
a24b9f23 MA |
8869 | # Set up the scripts for CONFIG_HEADERS section. |
8870 | # No need to generate them if there are no CONFIG_HEADERS. | |
8871 | # This happens for instance with `./config.status Makefile'. | |
8872 | if test -n "$CONFIG_HEADERS"; then | |
8873 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
8874 | BEGIN { | |
8875 | _ACEOF | |
8876 | ||
8877 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
8878 | # here-document in config.status, that substitutes the proper values into | |
8879 | # config.h.in to produce config.h. | |
8880 | ||
8881 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8882 | # handling of long lines. | |
8883 | ac_delim='%!_!# ' | |
8884 | for ac_last_try in false false :; do | |
8885 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
8886 | if test -z "$ac_tt"; then | |
8887 | break | |
8888 | elif $ac_last_try; then | |
8889 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
8890 | else | |
8891 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8892 | fi | |
8893 | done | |
8894 | ||
8895 | # For the awk script, D is an array of macro values keyed by name, | |
8896 | # likewise P contains macro parameters if any. Preserve backslash | |
8897 | # newline sequences. | |
8898 | ||
8899 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8900 | sed -n ' | |
8901 | s/.\{148\}/&'"$ac_delim"'/g | |
8902 | t rset | |
8903 | :rset | |
8904 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8905 | t def | |
8906 | d | |
8907 | :def | |
8908 | s/\\$// | |
8909 | t bsnl | |
8910 | s/["\\]/\\&/g | |
8911 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8912 | D["\1"]=" \3"/p | |
8913 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8914 | d | |
8915 | :bsnl | |
8916 | s/["\\]/\\&/g | |
8917 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8918 | D["\1"]=" \3\\\\\\n"\\/p | |
8919 | t cont | |
8920 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8921 | t cont | |
8922 | d | |
8923 | :cont | |
8924 | n | |
8925 | s/.\{148\}/&'"$ac_delim"'/g | |
8926 | t clear | |
8927 | :clear | |
8928 | s/\\$// | |
8929 | t bsnlc | |
8930 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8931 | d | |
8932 | :bsnlc | |
8933 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8934 | b cont | |
8935 | ' <confdefs.h | sed ' | |
8936 | s/'"$ac_delim"'/"\\\ | |
8937 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8938 | ||
8939 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8940 | for (key in D) D_is_set[key] = 1 | |
8941 | FS = "\a" | |
8942 | } | |
8943 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8944 | line = \$ 0 | |
8945 | split(line, arg, " ") | |
8946 | if (arg[1] == "#") { | |
8947 | defundef = arg[2] | |
8948 | mac1 = arg[3] | |
8949 | } else { | |
8950 | defundef = substr(arg[1], 2) | |
8951 | mac1 = arg[2] | |
8952 | } | |
8953 | split(mac1, mac2, "(") #) | |
8954 | macro = mac2[1] | |
8955 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8956 | if (D_is_set[macro]) { | |
8957 | # Preserve the white space surrounding the "#". | |
8958 | print prefix "define", macro P[macro] D[macro] | |
8959 | next | |
8960 | } else { | |
8961 | # Replace #undef with comments. This is necessary, for example, | |
8962 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8963 | # on some systems where configure will not decide to define it. | |
8964 | if (defundef == "undef") { | |
8965 | print "/*", prefix defundef, macro, "*/" | |
8966 | next | |
8967 | } | |
8968 | } | |
8969 | } | |
8970 | { print } | |
8971 | _ACAWK | |
8972 | _ACEOF | |
8973 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8974 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
8975 | fi # test -n "$CONFIG_HEADERS" | |
8976 | ||
9228099e | 8977 | |
a24b9f23 MA |
8978 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
8979 | shift | |
8980 | for ac_tag | |
4d24561a JR |
8981 | do |
8982 | case $ac_tag in | |
8983 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8984 | esac | |
8985 | case $ac_mode$ac_tag in | |
8986 | :[FHL]*:*);; | |
a24b9f23 | 8987 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
4d24561a JR |
8988 | :[FH]-) ac_tag=-:-;; |
8989 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8990 | esac | |
8991 | ac_save_IFS=$IFS | |
8992 | IFS=: | |
8993 | set x $ac_tag | |
8994 | IFS=$ac_save_IFS | |
8995 | shift | |
8996 | ac_file=$1 | |
8997 | shift | |
8998 | ||
8999 | case $ac_mode in | |
9000 | :L) ac_source=$1;; | |
9001 | :[FH]) | |
9002 | ac_file_inputs= | |
9003 | for ac_f | |
9004 | do | |
9005 | case $ac_f in | |
a24b9f23 | 9006 | -) ac_f="$ac_tmp/stdin";; |
4d24561a JR |
9007 | *) # Look for the file first in the build tree, then in the source tree |
9008 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
9009 | # because $ac_f cannot contain `:'. | |
9010 | test -f "$ac_f" || | |
9011 | case $ac_f in | |
9012 | [\\/$]*) false;; | |
9013 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
9014 | esac || | |
a24b9f23 | 9015 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
4d24561a | 9016 | esac |
41f81b5c | 9017 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
a24b9f23 | 9018 | as_fn_append ac_file_inputs " '$ac_f'" |
4d24561a JR |
9019 | done |
9020 | ||
9021 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9022 | # use $as_me), people would be surprised to read: | |
9023 | # /* config.h. Generated by config.status. */ | |
a24b9f23 | 9024 | configure_input='Generated from '` |
41f81b5c | 9025 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
a24b9f23 | 9026 | `' by configure.' |
4d24561a JR |
9027 | if test x"$ac_file" != x-; then |
9028 | configure_input="$ac_file. $configure_input" | |
41f81b5c WW |
9029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
9030 | printf "%s\n" "$as_me: creating $ac_file" >&6;} | |
4d24561a | 9031 | fi |
a24b9f23 MA |
9032 | # Neutralize special characters interpreted by sed in replacement strings. |
9033 | case $configure_input in #( | |
9034 | *\&* | *\|* | *\\* ) | |
41f81b5c | 9035 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
a24b9f23 MA |
9036 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
9037 | *) ac_sed_conf_input=$configure_input;; | |
9038 | esac | |
4d24561a JR |
9039 | |
9040 | case $ac_tag in | |
a24b9f23 MA |
9041 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
9042 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
4d24561a JR |
9043 | esac |
9044 | ;; | |
fe5b0fdd DH |
9045 | esac |
9046 | ||
4d24561a | 9047 | ac_dir=`$as_dirname -- "$ac_file" || |
fe5b0fdd DH |
9048 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9049 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9050 | X"$ac_file" : 'X\(//\)$' \| \ | |
4d24561a | 9051 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
41f81b5c | 9052 | printf "%s\n" X"$ac_file" | |
4d24561a JR |
9053 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9054 | s//\1/ | |
9055 | q | |
9056 | } | |
9057 | /^X\(\/\/\)[^/].*/{ | |
9058 | s//\1/ | |
9059 | q | |
9060 | } | |
9061 | /^X\(\/\/\)$/{ | |
9062 | s//\1/ | |
9063 | q | |
9064 | } | |
9065 | /^X\(\/\).*/{ | |
9066 | s//\1/ | |
9067 | q | |
9068 | } | |
9069 | s/.*/./; q'` | |
a24b9f23 | 9070 | as_dir="$ac_dir"; as_fn_mkdir_p |
fe5b0fdd DH |
9071 | ac_builddir=. |
9072 | ||
4d24561a JR |
9073 | case "$ac_dir" in |
9074 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9075 | *) | |
41f81b5c | 9076 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
4d24561a | 9077 | # A ".." for each directory in $ac_dir_suffix. |
41f81b5c | 9078 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
4d24561a JR |
9079 | case $ac_top_builddir_sub in |
9080 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9081 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9082 | esac ;; | |
9083 | esac | |
9084 | ac_abs_top_builddir=$ac_pwd | |
9085 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9086 | # for backward compatibility: | |
9087 | ac_top_builddir=$ac_top_build_prefix | |
fe5b0fdd DH |
9088 | |
9089 | case $srcdir in | |
4d24561a | 9090 | .) # We are building in place. |
fe5b0fdd | 9091 | ac_srcdir=. |
4d24561a JR |
9092 | ac_top_srcdir=$ac_top_builddir_sub |
9093 | ac_abs_top_srcdir=$ac_pwd ;; | |
9094 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fe5b0fdd | 9095 | ac_srcdir=$srcdir$ac_dir_suffix; |
4d24561a JR |
9096 | ac_top_srcdir=$srcdir |
9097 | ac_abs_top_srcdir=$srcdir ;; | |
9098 | *) # Relative name. | |
9099 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9100 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9101 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fe5b0fdd | 9102 | esac |
4d24561a | 9103 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fe5b0fdd DH |
9104 | |
9105 | ||
4d24561a JR |
9106 | case $ac_mode in |
9107 | :F) | |
9108 | # | |
9109 | # CONFIG_FILE | |
9110 | # | |
fe5b0fdd DH |
9111 | |
9112 | case $INSTALL in | |
9113 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
4d24561a | 9114 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
fe5b0fdd | 9115 | esac |
2d5fba9b DH |
9116 | ac_MKDIR_P=$MKDIR_P |
9117 | case $MKDIR_P in | |
9118 | [\\/$]* | ?:[\\/]* ) ;; | |
9119 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
9120 | esac | |
4d24561a | 9121 | _ACEOF |
273bfdc3 | 9122 | |
4d24561a JR |
9123 | |
9124 | # Neutralize VPATH when `$srcdir' = `.'. | |
9125 | # Shell code in configure.ac might set extrasub. | |
9126 | # FIXME: do we really want to maintain this feature? | |
a24b9f23 MA |
9127 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9128 | ac_sed_extra="$ac_vpsub | |
fe5b0fdd DH |
9129 | $extrasub |
9130 | _ACEOF | |
a24b9f23 | 9131 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
fe5b0fdd DH |
9132 | :t |
9133 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
a24b9f23 | 9134 | s|@configure_input@|$ac_sed_conf_input|;t t |
4d24561a | 9135 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
a24b9f23 | 9136 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
4d24561a JR |
9137 | s&@srcdir@&$ac_srcdir&;t t |
9138 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
9139 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
9140 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
9141 | s&@builddir@&$ac_builddir&;t t | |
9142 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
9143 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
9144 | s&@INSTALL@&$ac_INSTALL&;t t | |
2d5fba9b | 9145 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
a24b9f23 MA |
9146 | " |
9147 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
9148 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
4d24561a | 9149 | |
4d24561a | 9150 | |
a24b9f23 | 9151 | rm -f "$ac_tmp/stdin" |
fe5b0fdd | 9152 | case $ac_file in |
a24b9f23 MA |
9153 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
9154 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
9155 | esac \ | |
9156 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
4d24561a JR |
9157 | ;; |
9158 | :H) | |
9159 | # | |
9160 | # CONFIG_HEADER | |
9161 | # | |
fe5b0fdd | 9162 | if test x"$ac_file" != x-; then |
a24b9f23 | 9163 | { |
41f81b5c | 9164 | printf "%s\n" "/* $configure_input */" >&1 \ |
a24b9f23 MA |
9165 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
9166 | } >"$ac_tmp/config.h" \ | |
9167 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9168 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
41f81b5c WW |
9169 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
9170 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} | |
fe5b0fdd | 9171 | else |
a24b9f23 MA |
9172 | rm -f "$ac_file" |
9173 | mv "$ac_tmp/config.h" "$ac_file" \ | |
9174 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
fe5b0fdd DH |
9175 | fi |
9176 | else | |
41f81b5c | 9177 | printf "%s\n" "/* $configure_input */" >&1 \ |
a24b9f23 MA |
9178 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
9179 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
fe5b0fdd | 9180 | fi |
a24b9f23 MA |
9181 | # Compute "$ac_file"'s index in $config_headers. |
9182 | _am_arg="$ac_file" | |
fc3ebe53 DH |
9183 | _am_stamp_count=1 |
9184 | for _am_header in $config_headers :; do | |
9185 | case $_am_header in | |
2d5fba9b | 9186 | $_am_arg | $_am_arg:* ) |
fc3ebe53 DH |
9187 | break ;; |
9188 | * ) | |
9189 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
9190 | esac | |
9191 | done | |
2d5fba9b DH |
9192 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
9193 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9194 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
9195 | X"$_am_arg" : 'X\(//\)$' \| \ | |
9196 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
41f81b5c | 9197 | printf "%s\n" X"$_am_arg" | |
4d24561a JR |
9198 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9199 | s//\1/ | |
9200 | q | |
9201 | } | |
9202 | /^X\(\/\/\)[^/].*/{ | |
9203 | s//\1/ | |
9204 | q | |
9205 | } | |
9206 | /^X\(\/\/\)$/{ | |
9207 | s//\1/ | |
9208 | q | |
9209 | } | |
9210 | /^X\(\/\).*/{ | |
9211 | s//\1/ | |
9212 | q | |
9213 | } | |
9214 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
9215 | ;; | |
7d714d6b | 9216 | |
41f81b5c WW |
9217 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
9218 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} | |
4d24561a JR |
9219 | ;; |
9220 | esac | |
fc3ebe53 DH |
9221 | |
9222 | ||
4d24561a | 9223 | case $ac_file$ac_mode in |
a24b9f23 | 9224 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
69e9da00 | 9225 | # Older Autoconf quotes --file arguments for eval, but not when files |
a24b9f23 MA |
9226 | # are listed without --file. Let's play safe and only enable the eval |
9227 | # if we detect the quoting. | |
0cd94b5e TM |
9228 | # TODO: see whether this extra hack can be removed once we start |
9229 | # requiring Autoconf 2.70 or later. | |
9230 | case $CONFIG_FILES in #( | |
9231 | *\'*) : | |
9232 | eval set x "$CONFIG_FILES" ;; #( | |
9233 | *) : | |
9234 | set x $CONFIG_FILES ;; #( | |
9235 | *) : | |
9236 | ;; | |
9237 | esac | |
a24b9f23 | 9238 | shift |
0cd94b5e TM |
9239 | # Used to flag and report bootstrapping failures. |
9240 | am_rc=0 | |
9241 | for am_mf | |
a24b9f23 MA |
9242 | do |
9243 | # Strip MF so we end up with the name of the file. | |
41f81b5c | 9244 | am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` |
0cd94b5e TM |
9245 | # Check whether this is an Automake generated Makefile which includes |
9246 | # dependency-tracking related rules and includes. | |
9247 | # Grep'ing the whole file directly is not great: AIX grep has a line | |
a24b9f23 | 9248 | # limit of 2048, but all sed's we know have understand at least 4000. |
0cd94b5e TM |
9249 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
9250 | || continue | |
9251 | am_dirpart=`$as_dirname -- "$am_mf" || | |
9252 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9253 | X"$am_mf" : 'X\(//\)[^/]' \| \ | |
9254 | X"$am_mf" : 'X\(//\)$' \| \ | |
9255 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || | |
41f81b5c | 9256 | printf "%s\n" X"$am_mf" | |
4d24561a JR |
9257 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9258 | s//\1/ | |
9259 | q | |
9260 | } | |
9261 | /^X\(\/\/\)[^/].*/{ | |
9262 | s//\1/ | |
9263 | q | |
9264 | } | |
9265 | /^X\(\/\/\)$/{ | |
9266 | s//\1/ | |
9267 | q | |
9268 | } | |
9269 | /^X\(\/\).*/{ | |
9270 | s//\1/ | |
9271 | q | |
9272 | } | |
9273 | s/.*/./; q'` | |
0cd94b5e TM |
9274 | am_filepart=`$as_basename -- "$am_mf" || |
9275 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ | |
9276 | X"$am_mf" : 'X\(//\)$' \| \ | |
9277 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || | |
41f81b5c | 9278 | printf "%s\n" X/"$am_mf" | |
0cd94b5e | 9279 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
4d24561a JR |
9280 | s//\1/ |
9281 | q | |
9282 | } | |
0cd94b5e | 9283 | /^X\/\(\/\/\)$/{ |
4d24561a JR |
9284 | s//\1/ |
9285 | q | |
9286 | } | |
0cd94b5e | 9287 | /^X\/\(\/\).*/{ |
4d24561a JR |
9288 | s//\1/ |
9289 | q | |
9290 | } | |
9291 | s/.*/./; q'` | |
0cd94b5e TM |
9292 | { echo "$as_me:$LINENO: cd "$am_dirpart" \ |
9293 | && sed -e '/# am--include-marker/d' "$am_filepart" \ | |
9294 | | $MAKE -f - am--depfiles" >&5 | |
9295 | (cd "$am_dirpart" \ | |
9296 | && sed -e '/# am--include-marker/d' "$am_filepart" \ | |
9297 | | $MAKE -f - am--depfiles) >&5 2>&5 | |
9298 | ac_status=$? | |
9299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9300 | (exit $ac_status); } || am_rc=$? | |
fc3ebe53 | 9301 | done |
0cd94b5e | 9302 | if test $am_rc -ne 0; then |
41f81b5c WW |
9303 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9304 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
0cd94b5e | 9305 | as_fn_error $? "Something went wrong bootstrapping makefile fragments |
f4622ec1 WW |
9306 | for automatic dependency tracking. If GNU make was not used, consider |
9307 | re-running the configure script with MAKE=\"gmake\" (or whatever is | |
9308 | necessary). You can also try re-running configure with the | |
0cd94b5e TM |
9309 | '--disable-dependency-tracking' option to at least be able to build |
9310 | the package (albeit without support for automatic dependency tracking). | |
9311 | See \`config.log' for more details" "$LINENO" 5; } | |
9312 | fi | |
9313 | { am_dirpart=; unset am_dirpart;} | |
9314 | { am_filepart=; unset am_filepart;} | |
9315 | { am_mf=; unset am_mf;} | |
9316 | { am_rc=; unset am_rc;} | |
9317 | rm -f conftest-deps.mk | |
a24b9f23 | 9318 | } |
fc3ebe53 | 9319 | ;; |
4d24561a | 9320 | |
fc3ebe53 | 9321 | esac |
4d24561a | 9322 | done # for ac_tag |
fe5b0fdd DH |
9323 | |
9324 | ||
a24b9f23 | 9325 | as_fn_exit 0 |
fe5b0fdd | 9326 | _ACEOF |
fe5b0fdd DH |
9327 | ac_clean_files=$ac_clean_files_save |
9328 | ||
a24b9f23 MA |
9329 | test $ac_write_fail = 0 || |
9330 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
9331 | ||
fe5b0fdd DH |
9332 | |
9333 | # configure is writing to config.log, and then calls config.status. | |
9334 | # config.status does its own redirection, appending to config.log. | |
9335 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9336 | # by configure, so config.status won't be able to write to it; its | |
9337 | # output is simply discarded. So we exec the FD to /dev/null, | |
9338 | # effectively closing config.log, so it can be properly (re)opened and | |
9339 | # appended to by config.status. When coming back to configure, we | |
9340 | # need to make the FD available again. | |
9341 | if test "$no_create" != yes; then | |
9342 | ac_cs_success=: | |
9343 | ac_config_status_args= | |
9344 | test "$silent" = yes && | |
9345 | ac_config_status_args="$ac_config_status_args --quiet" | |
9346 | exec 5>/dev/null | |
9347 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9348 | exec 5>>config.log | |
9349 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9350 | # would make configure fail if this is the last instruction. | |
a24b9f23 MA |
9351 | $ac_cs_success || as_fn_exit 1 |
9352 | fi | |
9353 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
41f81b5c WW |
9354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
9355 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
fe5b0fdd DH |
9356 | fi |
9357 | ||
9358 | ||
13e5cc6c | 9359 | |
785c1a51 FD |
9360 | if test "$enable_dhcpv4o6" = "yes"; then |
9361 | DHCP_VERSIONS="DHCPv4, DHCPv6 and DHCPv4-over-DHCPv6" | |
9362 | elif test "$enable_dhcpv6" != "no"; then | |
9363 | DHCP_VERSIONS="DHCPv4 and DHCPv6" | |
9364 | else | |
9365 | DHCP_VERSIONS="DHCPv4" | |
9366 | fi | |
9367 | ||
4a70cb10 TM |
9368 | cat > config.report << END |
9369 | ||
9370 | ISC DHCP source configure results: | |
9371 | -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
9372 | ||
9373 | Package: | |
9374 | Name: $PACKAGE_NAME | |
9375 | Version: $PACKAGE_VERSION | |
9376 | ||
9377 | C Compiler: $CC | |
9378 | ||
9379 | Flags: | |
9380 | DEFS: $DEFS | |
9381 | CFLAGS: $CFLAGS | |
9382 | ||
785c1a51 FD |
9383 | DHCP versions: $DHCP_VERSIONS |
9384 | ||
4a70cb10 TM |
9385 | Features: |
9386 | debug: $enable_debug | |
9387 | failover: $enable_failover | |
9388 | execute: $enable_execute | |
3933e2aa | 9389 | binary-leases: $enable_binary_leases |
e82906fc TM |
9390 | dhcpv6: $enable_dhcpv6 |
9391 | delayed-ack: $enable_delayed_ack | |
4406f9b0 | 9392 | dhcpv4o6: $enable_dhcpv4o6 |
563f0b8a | 9393 | relay-port: $enable_relay_port |
4a70cb10 TM |
9394 | |
9395 | Developer: | |
9396 | ATF unittests : $atf_path | |
9397 | ||
9398 | END | |
9399 | # TODO: Add Perl system tests | |
9400 | ||
9401 | if test "$atf_path" != "no" | |
9402 | then | |
9403 | echo "ATF_CFLAGS : $ATF_CFLAGS" >> config.report | |
9404 | echo "ATF_LDFLAGS : $ATF_LDFLAGS" >> config.report | |
9a111ee8 | 9405 | echo "ATF_BIN : $ATF_BIN" >> config.report |
4a70cb10 TM |
9406 | echo |
9407 | fi | |
9408 | ||
9409 | cat config.report | |
9410 | ||
9411 | echo | |
9412 | echo Now you can type "make" to build ISC DHCP | |
9413 | echo | |
41f81b5c | 9414 |