configure revision 1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for BIND 9.14.
4 #
5 # Report bugs to <info (at] isc.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and info (at] isc.org about
278 $0: your system, including any error possibly output before
279 $0: this message. Then install a modern shell, or manually
280 $0: run the script under such a shell if you do have one."
281 fi
282 exit 1
283 fi
284 fi
285 fi
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
291
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
299 {
300 { eval $1=; unset $1;}
301 }
302 as_unset=as_fn_unset
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
402 {
403 as_val=$(( $* ))
404 }'
405 else
406 as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 }
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
487 b
488 :lineno
489 N
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
508 }
509
510 ECHO_C= ECHO_N= ECHO_T=
511 case `echo -n x` in #(((((
512 -n*)
513 case `echo 'xy\c'` in
514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
518 esac;;
519 *)
520 ECHO_N='-n';;
521 esac
522
523 rm -f conf$$ conf$$.exe conf$$.file
524 if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526 else
527 rm -f conf$$.dir
528 mkdir conf$$.dir 2>/dev/null
529 fi
530 if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536 # In both cases, we have to default to `cp -pR'.
537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538 as_ln_s='cp -pR'
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
542 as_ln_s='cp -pR'
543 fi
544 else
545 as_ln_s='cp -pR'
546 fi
547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548 rmdir conf$$.dir 2>/dev/null
549
550 if mkdir -p . 2>/dev/null; then
551 as_mkdir_p='mkdir -p "$as_dir"'
552 else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
555 fi
556
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
559
560 # Sed expression to map a string onto a valid CPP name.
561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563 # Sed expression to map a string onto a valid variable name.
564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
566 SHELL=${CONFIG_SHELL-/bin/sh}
567
568
569 test -n "$DJDIR" || exec 7<&0 </dev/null
570 exec 6>&1
571
572 # Name of the host.
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574 # so uname gets run too.
575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577 #
578 # Initializations.
579 #
580 ac_default_prefix=/usr/local
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
588
589 # Identity of this package.
590 PACKAGE_NAME='BIND'
591 PACKAGE_TARNAME='bind'
592 PACKAGE_VERSION='9.14'
593 PACKAGE_STRING='BIND 9.14'
594 PACKAGE_BUGREPORT='info (at] isc.org'
595 PACKAGE_URL='https://www.isc.org/downloads/BIND/'
596
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 # include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 # include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 ac_subst_vars='LTLIBOBJS
634 LIBOBJS
635 BUILD_LIBS
636 BUILD_LDFLAGS
637 BUILD_CPPFLAGS
638 BUILD_CFLAGS
639 BUILD_CC
640 DLZ_DRIVER_MYSQL_LIBS
641 DLZ_DRIVER_MYSQL_INCLUDES
642 DLZ_SYSTEM_TEST
643 DLZ_DRIVER_OBJS
644 DLZ_DRIVER_SRCS
645 DLZ_DRIVER_LIBS
646 DLZ_DRIVER_INCLUDES
647 CONTRIB_DLZ
648 MYSQL_CONFIG
649 PG_CONFIG
650 SO_TARGETS
651 SO_STRIP
652 SO_LD
653 SO_LDFLAGS
654 SO_CFLAGS
655 SO
656 BIND9_CONFIGARGS
657 BIND9_SRCID
658 BIND9_VERSIONSHORT
659 BIND9_VERSIONSTRING
660 BIND9_MAJOR
661 BIND9_VERSION
662 BIND9_DESCRIPTION
663 BIND9_PRODUCT
664 BIND9_IRS_BUILDINCLUDE
665 BIND9_BIND9_BUILDINCLUDE
666 BIND9_NS_BUILDINCLUDE
667 BIND9_DNS_BUILDINCLUDE
668 BIND9_ISCCFG_BUILDINCLUDE
669 BIND9_ISCCC_BUILDINCLUDE
670 BIND9_ISC_BUILDINCLUDE
671 BIND9_TOP_BUILDDIR
672 LD_WRAP_TESTS
673 KYUA
674 UNITTESTS
675 CMOCKA_LIBS
676 CMOCKA_CFLAGS
677 LIBIDN2_LDFLAGS
678 LIBIDN2_LIBS
679 LIBIDN2_CFLAGS
680 XSLT_DBLATEX_FASTBOOK
681 XSLT_DBLATEX_STYLE
682 XSLT_DOCBOOK_MAKETOC_XHTML
683 XSLT_DOCBOOK_MAKETOC_HTML
684 XSLT_DOCBOOK_CHUNKTOC_XHTML
685 XSLT_DOCBOOK_CHUNKTOC_HTML
686 XSLT_DOCBOOK_CHUNK_XHTML
687 XSLT_DOCBOOK_CHUNK_HTML
688 XSLT_DOCBOOK_STYLE_MAN
689 XSLT_DOCBOOK_STYLE_XHTML
690 XSLT_DOCBOOK_STYLE_HTML
691 CURL
692 DOXYGEN
693 XMLLINT
694 XSLTPROC
695 PANDOC
696 W3M
697 DBLATEX
698 PDFLATEX
699 LATEX
700 DNSTAPTARGETS
701 DNSTAPOBJS
702 DNSTAPSRCS
703 DNSTAP
704 FSTRM_CAPTURE
705 PROTOC_C
706 ISC_PLATFORM_HAVESYSUNH
707 LIBCAP_LIBS
708 DST_EXTRA_SRCS
709 DST_EXTRA_OBJS
710 USE_ISC_SPNEGO
711 READLINE_LIB
712 BIND9_CO_RULE
713 LIBTOOL_MODE_UNINSTALL
714 LIBTOOL_MODE_LINK
715 LIBTOOL_MODE_INSTALL
716 LIBTOOL_MODE_COMPILE
717 LIBTOOL_MKDEP_SED
718 SA
719 A
720 O
721 ALWAYS_MAKE_SYMTABLE
722 MKSYMTBL_PROGRAM
723 PURIFY
724 purify_path
725 MKDEPPROG
726 MKDEPCFLAGS
727 MKDEPCC
728 ZLIB
729 JSONSTATS
730 XMLSTATS
731 NZDTARGETS
732 NZDSRCS
733 NZD_TOOLS
734 DNS_CRYPTO_LIBS
735 DNS_GSSAPI_LIBS
736 DST_GSSAPI_INC
737 USE_GSSAPI
738 ISC_PLATFORM_KRB5HEADER
739 ISC_PLATFORM_GSSAPI_KRB5_HEADER
740 ISC_PLATFORM_GSSAPIHEADER
741 ISC_PLATFORM_HAVEGSSAPI
742 KRB5_CONFIG
743 PKCS11_TOOLS
744 PKCS11_TEST
745 OPENSSL_LDFLAGS
746 OPENSSL_INCLUDES
747 OPENSSL_LIBS
748 OPENSSL_CFLAGS
749 INSTALL_LIBRARY
750 ALWAYS_DEFINES
751 PTHREAD_CFLAGS
752 PTHREAD_LIBS
753 PTHREAD_CC
754 ax_pthread_config
755 GEOIPLINKOBJS
756 GEOIPLINKSRCS
757 GEOIP2LINKOBJS
758 GEOIP2LINKSRCS
759 MAXMINDDB_PREFIX
760 MAXMINDDB_LIBS
761 MAXMINDDB_CFLAGS
762 ISC_PLATFORM_NORETURN_POST
763 ISC_PLATFORM_NORETURN_PRE
764 expanded_sysconfdir
765 PYTHON_INSTALL_LIB
766 PYTHON_INSTALL_DIR
767 PYTHON_TOOLS
768 KEYMGR
769 COVERAGE
770 CHECKDS
771 PYTHON
772 PERL
773 ETAGS
774 LN
775 ARFLAGS
776 XTARGETS
777 PKG_CONFIG_LIBDIR
778 PKG_CONFIG_PATH
779 PKG_CONFIG
780 BACKTRACECFLAGS
781 CCNOOPT
782 CCOPT
783 STD_CWARNINGS
784 STD_CDEFINES
785 STD_CINCLUDES
786 INSTALL_DATA
787 INSTALL_SCRIPT
788 INSTALL_PROGRAM
789 LT_SYS_LIBRARY_PATH
790 OTOOL64
791 OTOOL
792 LIPO
793 NMEDIT
794 DSYMUTIL
795 MANIFEST_TOOL
796 AWK
797 RANLIB
798 STRIP
799 ac_ct_AR
800 AR
801 DLLTOOL
802 OBJDUMP
803 LN_S
804 NM
805 ac_ct_DUMPBIN
806 DUMPBIN
807 LD
808 FGREP
809 SED
810 LIBTOOL
811 SET_MAKE
812 LFS_LIBS
813 LFS_LDFLAGS
814 LFS_CFLAGS
815 EGREP
816 GREP
817 CPP
818 OBJEXT
819 EXEEXT
820 ac_ct_CC
821 CPPFLAGS
822 LDFLAGS
823 CFLAGS
824 CC
825 host_os
826 host_vendor
827 host_cpu
828 host
829 build_os
830 build_vendor
831 build_cpu
832 build
833 target_alias
834 host_alias
835 build_alias
836 LIBS
837 ECHO_T
838 ECHO_N
839 ECHO_C
840 DEFS
841 mandir
842 localedir
843 libdir
844 psdir
845 pdfdir
846 dvidir
847 htmldir
848 infodir
849 docdir
850 oldincludedir
851 includedir
852 localstatedir
853 sharedstatedir
854 sysconfdir
855 datadir
856 datarootdir
857 libexecdir
858 sbindir
859 bindir
860 program_transform_name
861 prefix
862 exec_prefix
863 PACKAGE_URL
864 PACKAGE_BUGREPORT
865 PACKAGE_STRING
866 PACKAGE_VERSION
867 PACKAGE_TARNAME
868 PACKAGE_NAME
869 PATH_SEPARATOR
870 SHELL'
871 ac_subst_files='BIND9_MAKE_INCLUDES
872 BIND9_MAKE_RULES
873 LIBISC_API
874 LIBISCCC_API
875 LIBISCCFG_API
876 LIBDNS_API
877 LIBDNS_MAPAPI
878 LIBBIND9_API
879 LIBIRS_API
880 LIBNS_API
881 DLZ_DRIVER_RULES'
882 ac_user_opts='
883 enable_option_checking
884 enable_shared
885 enable_static
886 with_pic
887 enable_fast_install
888 with_aix_soname
889 with_gnu_ld
890 with_sysroot
891 enable_libtool_lock
892 enable_libbind
893 enable_buffer_useinline
894 enable_warn_shadow
895 enable_warn_error
896 enable_developer
897 enable_fuzzing
898 with_python
899 with_python_install_dir
900 enable_kqueue
901 enable_epoll
902 enable_devpoll
903 with_geoip
904 with_geoip2
905 with_locktype
906 with_libtool
907 with_openssl
908 enable_fips_mode
909 with_cc_alg
910 enable_native_pkcs11
911 with_pkcs11
912 with_gssapi
913 with_lmdb
914 with_libxml2
915 with_libjson
916 with_zlib
917 enable_largefile
918 with_purify
919 with_gperftools_profiler
920 enable_backtrace
921 enable_symtable
922 enable_tcp_fastopen
923 with_readline
924 enable_isc_spnego
925 enable_chroot
926 enable_linux_caps
927 enable_fixed_rrset
928 enable_dnstap
929 with_protobuf_c
930 with_libfstrm
931 with_docbook_xsl
932 with_libidn2
933 with_cmocka
934 with_tuning
935 enable_querytrace
936 enable_auto_validation
937 with_dlopen
938 enable_dnsrps_dl
939 with_dnsrps_libname
940 with_dnsrps_dir
941 enable_dnsrps
942 with_dlz_postgres
943 with_dlz_mysql
944 with_dlz_bdb
945 with_dlz_filesystem
946 with_dlz_ldap
947 with_dlz_odbc
948 with_dlz_stub
949 with_make_clean
950 enable_full_report
951 '
952 ac_precious_vars='build_alias
953 host_alias
954 target_alias
955 CC
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
960 CPP
961 LT_SYS_LIBRARY_PATH
962 PKG_CONFIG
963 PKG_CONFIG_PATH
964 PKG_CONFIG_LIBDIR
965 MAXMINDDB_CFLAGS
966 MAXMINDDB_LIBS
967 MAXMINDDB_PREFIX
968 OPENSSL_CFLAGS
969 OPENSSL_LIBS
970 LIBIDN2_CFLAGS
971 LIBIDN2_LIBS
972 CMOCKA_CFLAGS
973 CMOCKA_LIBS
974 KYUA'
975
976
977 # Initialize some variables set by options.
978 ac_init_help=
979 ac_init_version=false
980 ac_unrecognized_opts=
981 ac_unrecognized_sep=
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
984 cache_file=/dev/null
985 exec_prefix=NONE
986 no_create=
987 no_recursion=
988 prefix=NONE
989 program_prefix=NONE
990 program_suffix=NONE
991 program_transform_name=s,x,x,
992 silent=
993 site=
994 srcdir=
995 verbose=
996 x_includes=NONE
997 x_libraries=NONE
998
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir='${datarootdir}/info'
1017 htmldir='${docdir}'
1018 dvidir='${docdir}'
1019 pdfdir='${docdir}'
1020 psdir='${docdir}'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1024
1025 ac_prev=
1026 ac_dashdash=
1027 for ac_option
1028 do
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\$ac_option
1032 ac_prev=
1033 continue
1034 fi
1035
1036 case $ac_option in
1037 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 *=) ac_optarg= ;;
1039 *) ac_optarg=yes ;;
1040 esac
1041
1042 # Accept the important Cygnus configure options, so we can diagnose typos.
1043
1044 case $ac_dashdash$ac_option in
1045 --)
1046 ac_dashdash=yes ;;
1047
1048 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 ac_prev=bindir ;;
1050 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1051 bindir=$ac_optarg ;;
1052
1053 -build | --build | --buil | --bui | --bu)
1054 ac_prev=build_alias ;;
1055 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1056 build_alias=$ac_optarg ;;
1057
1058 -cache-file | --cache-file | --cache-fil | --cache-fi \
1059 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1060 ac_prev=cache_file ;;
1061 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1062 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1063 cache_file=$ac_optarg ;;
1064
1065 --config-cache | -C)
1066 cache_file=config.cache ;;
1067
1068 -datadir | --datadir | --datadi | --datad)
1069 ac_prev=datadir ;;
1070 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1071 datadir=$ac_optarg ;;
1072
1073 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1074 | --dataroo | --dataro | --datar)
1075 ac_prev=datarootdir ;;
1076 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1077 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1078 datarootdir=$ac_optarg ;;
1079
1080 -disable-* | --disable-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error $? "invalid feature name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1088 *"
1089 "enable_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval enable_$ac_useropt=no ;;
1095
1096 -docdir | --docdir | --docdi | --doc | --do)
1097 ac_prev=docdir ;;
1098 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1099 docdir=$ac_optarg ;;
1100
1101 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1102 ac_prev=dvidir ;;
1103 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1104 dvidir=$ac_optarg ;;
1105
1106 -enable-* | --enable-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid feature name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115 "enable_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval enable_$ac_useropt=\$ac_optarg ;;
1121
1122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1124 | --exec | --exe | --ex)
1125 ac_prev=exec_prefix ;;
1126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1128 | --exec=* | --exe=* | --ex=*)
1129 exec_prefix=$ac_optarg ;;
1130
1131 -gas | --gas | --ga | --g)
1132 # Obsolete; use --with-gas.
1133 with_gas=yes ;;
1134
1135 -help | --help | --hel | --he | -h)
1136 ac_init_help=long ;;
1137 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1138 ac_init_help=recursive ;;
1139 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1140 ac_init_help=short ;;
1141
1142 -host | --host | --hos | --ho)
1143 ac_prev=host_alias ;;
1144 -host=* | --host=* | --hos=* | --ho=*)
1145 host_alias=$ac_optarg ;;
1146
1147 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1148 ac_prev=htmldir ;;
1149 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1150 | --ht=*)
1151 htmldir=$ac_optarg ;;
1152
1153 -includedir | --includedir | --includedi | --included | --include \
1154 | --includ | --inclu | --incl | --inc)
1155 ac_prev=includedir ;;
1156 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1157 | --includ=* | --inclu=* | --incl=* | --inc=*)
1158 includedir=$ac_optarg ;;
1159
1160 -infodir | --infodir | --infodi | --infod | --info | --inf)
1161 ac_prev=infodir ;;
1162 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1163 infodir=$ac_optarg ;;
1164
1165 -libdir | --libdir | --libdi | --libd)
1166 ac_prev=libdir ;;
1167 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1168 libdir=$ac_optarg ;;
1169
1170 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1171 | --libexe | --libex | --libe)
1172 ac_prev=libexecdir ;;
1173 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1174 | --libexe=* | --libex=* | --libe=*)
1175 libexecdir=$ac_optarg ;;
1176
1177 -localedir | --localedir | --localedi | --localed | --locale)
1178 ac_prev=localedir ;;
1179 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1180 localedir=$ac_optarg ;;
1181
1182 -localstatedir | --localstatedir | --localstatedi | --localstated \
1183 | --localstate | --localstat | --localsta | --localst | --locals)
1184 ac_prev=localstatedir ;;
1185 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1186 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1187 localstatedir=$ac_optarg ;;
1188
1189 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1190 ac_prev=mandir ;;
1191 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1192 mandir=$ac_optarg ;;
1193
1194 -nfp | --nfp | --nf)
1195 # Obsolete; use --without-fp.
1196 with_fp=no ;;
1197
1198 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1199 | --no-cr | --no-c | -n)
1200 no_create=yes ;;
1201
1202 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1203 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1204 no_recursion=yes ;;
1205
1206 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1207 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1208 | --oldin | --oldi | --old | --ol | --o)
1209 ac_prev=oldincludedir ;;
1210 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1211 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1212 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1213 oldincludedir=$ac_optarg ;;
1214
1215 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1216 ac_prev=prefix ;;
1217 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1218 prefix=$ac_optarg ;;
1219
1220 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1221 | --program-pre | --program-pr | --program-p)
1222 ac_prev=program_prefix ;;
1223 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1224 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1225 program_prefix=$ac_optarg ;;
1226
1227 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1228 | --program-suf | --program-su | --program-s)
1229 ac_prev=program_suffix ;;
1230 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1231 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1232 program_suffix=$ac_optarg ;;
1233
1234 -program-transform-name | --program-transform-name \
1235 | --program-transform-nam | --program-transform-na \
1236 | --program-transform-n | --program-transform- \
1237 | --program-transform | --program-transfor \
1238 | --program-transfo | --program-transf \
1239 | --program-trans | --program-tran \
1240 | --progr-tra | --program-tr | --program-t)
1241 ac_prev=program_transform_name ;;
1242 -program-transform-name=* | --program-transform-name=* \
1243 | --program-transform-nam=* | --program-transform-na=* \
1244 | --program-transform-n=* | --program-transform-=* \
1245 | --program-transform=* | --program-transfor=* \
1246 | --program-transfo=* | --program-transf=* \
1247 | --program-trans=* | --program-tran=* \
1248 | --progr-tra=* | --program-tr=* | --program-t=*)
1249 program_transform_name=$ac_optarg ;;
1250
1251 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1252 ac_prev=pdfdir ;;
1253 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1254 pdfdir=$ac_optarg ;;
1255
1256 -psdir | --psdir | --psdi | --psd | --ps)
1257 ac_prev=psdir ;;
1258 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1259 psdir=$ac_optarg ;;
1260
1261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262 | -silent | --silent | --silen | --sile | --sil)
1263 silent=yes ;;
1264
1265 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1266 ac_prev=sbindir ;;
1267 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1268 | --sbi=* | --sb=*)
1269 sbindir=$ac_optarg ;;
1270
1271 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1272 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1273 | --sharedst | --shareds | --shared | --share | --shar \
1274 | --sha | --sh)
1275 ac_prev=sharedstatedir ;;
1276 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1277 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1278 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1279 | --sha=* | --sh=*)
1280 sharedstatedir=$ac_optarg ;;
1281
1282 -site | --site | --sit)
1283 ac_prev=site ;;
1284 -site=* | --site=* | --sit=*)
1285 site=$ac_optarg ;;
1286
1287 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1288 ac_prev=srcdir ;;
1289 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1290 srcdir=$ac_optarg ;;
1291
1292 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1293 | --syscon | --sysco | --sysc | --sys | --sy)
1294 ac_prev=sysconfdir ;;
1295 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1296 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1297 sysconfdir=$ac_optarg ;;
1298
1299 -target | --target | --targe | --targ | --tar | --ta | --t)
1300 ac_prev=target_alias ;;
1301 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1302 target_alias=$ac_optarg ;;
1303
1304 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1305 verbose=yes ;;
1306
1307 -version | --version | --versio | --versi | --vers | -V)
1308 ac_init_version=: ;;
1309
1310 -with-* | --with-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error $? "invalid package name: $ac_useropt"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1318 *"
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=\$ac_optarg ;;
1325
1326 -without-* | --without-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330 as_fn_error $? "invalid package name: $ac_useropt"
1331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1334 *"
1335 "with_$ac_useropt"
1336 "*) ;;
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1339 esac
1340 eval with_$ac_useropt=no ;;
1341
1342 --x)
1343 # Obsolete; use --with-x.
1344 with_x=yes ;;
1345
1346 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1347 | --x-incl | --x-inc | --x-in | --x-i)
1348 ac_prev=x_includes ;;
1349 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1350 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1351 x_includes=$ac_optarg ;;
1352
1353 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1354 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1355 ac_prev=x_libraries ;;
1356 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1357 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358 x_libraries=$ac_optarg ;;
1359
1360 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1361 Try \`$0 --help' for more information"
1362 ;;
1363
1364 *=*)
1365 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1366 # Reject names that are not valid shell variable names.
1367 case $ac_envvar in #(
1368 '' | [0-9]* | *[!_$as_cr_alnum]* )
1369 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1370 esac
1371 eval $ac_envvar=\$ac_optarg
1372 export $ac_envvar ;;
1373
1374 *)
1375 # FIXME: should be removed in autoconf 3.0.
1376 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1377 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1378 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1379 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1380 ;;
1381
1382 esac
1383 done
1384
1385 if test -n "$ac_prev"; then
1386 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1387 as_fn_error $? "missing argument to $ac_option"
1388 fi
1389
1390 if test -n "$ac_unrecognized_opts"; then
1391 case $enable_option_checking in
1392 no) ;;
1393 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1394 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1395 esac
1396 fi
1397
1398 # Check all directory arguments for consistency.
1399 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1400 datadir sysconfdir sharedstatedir localstatedir includedir \
1401 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1402 libdir localedir mandir
1403 do
1404 eval ac_val=\$$ac_var
1405 # Remove trailing slashes.
1406 case $ac_val in
1407 */ )
1408 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1409 eval $ac_var=\$ac_val;;
1410 esac
1411 # Be sure to have absolute directory names.
1412 case $ac_val in
1413 [\\/$]* | ?:[\\/]* ) continue;;
1414 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1415 esac
1416 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1417 done
1418
1419 # There might be people who depend on the old broken behavior: `$host'
1420 # used to hold the argument of --host etc.
1421 # FIXME: To remove some day.
1422 build=$build_alias
1423 host=$host_alias
1424 target=$target_alias
1425
1426 # FIXME: To remove some day.
1427 if test "x$host_alias" != x; then
1428 if test "x$build_alias" = x; then
1429 cross_compiling=maybe
1430 elif test "x$build_alias" != "x$host_alias"; then
1431 cross_compiling=yes
1432 fi
1433 fi
1434
1435 ac_tool_prefix=
1436 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1437
1438 test "$silent" = yes && exec 6>/dev/null
1439
1440
1441 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1442 ac_ls_di=`ls -di .` &&
1443 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1444 as_fn_error $? "working directory cannot be determined"
1445 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1446 as_fn_error $? "pwd does not report name of working directory"
1447
1448
1449 # Find the source files, if location was not specified.
1450 if test -z "$srcdir"; then
1451 ac_srcdir_defaulted=yes
1452 # Try the directory containing this script, then the parent directory.
1453 ac_confdir=`$as_dirname -- "$as_myself" ||
1454 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1455 X"$as_myself" : 'X\(//\)[^/]' \| \
1456 X"$as_myself" : 'X\(//\)$' \| \
1457 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1458 $as_echo X"$as_myself" |
1459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1460 s//\1/
1461 q
1462 }
1463 /^X\(\/\/\)[^/].*/{
1464 s//\1/
1465 q
1466 }
1467 /^X\(\/\/\)$/{
1468 s//\1/
1469 q
1470 }
1471 /^X\(\/\).*/{
1472 s//\1/
1473 q
1474 }
1475 s/.*/./; q'`
1476 srcdir=$ac_confdir
1477 if test ! -r "$srcdir/$ac_unique_file"; then
1478 srcdir=..
1479 fi
1480 else
1481 ac_srcdir_defaulted=no
1482 fi
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1484 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1485 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1486 fi
1487 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1488 ac_abs_confdir=`(
1489 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1490 pwd)`
1491 # When building in place, set srcdir=.
1492 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493 srcdir=.
1494 fi
1495 # Remove unnecessary trailing slashes from srcdir.
1496 # Double slashes in file names in object file debugging info
1497 # mess up M-x gdb in Emacs.
1498 case $srcdir in
1499 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 esac
1501 for ac_var in $ac_precious_vars; do
1502 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_env_${ac_var}_value=\$${ac_var}
1504 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1505 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506 done
1507
1508 #
1509 # Report the --help message.
1510 #
1511 if test "$ac_init_help" = "long"; then
1512 # Omit some internal or obsolete options to make the list less imposing.
1513 # This message is too long to be a string in the A/UX 3.1 sh.
1514 cat <<_ACEOF
1515 \`configure' configures BIND 9.14 to adapt to many kinds of systems.
1516
1517 Usage: $0 [OPTION]... [VAR=VALUE]...
1518
1519 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520 VAR=VALUE. See below for descriptions of some of the useful variables.
1521
1522 Defaults for the options are specified in brackets.
1523
1524 Configuration:
1525 -h, --help display this help and exit
1526 --help=short display options specific to this package
1527 --help=recursive display the short help of all the included packages
1528 -V, --version display version information and exit
1529 -q, --quiet, --silent do not print \`checking ...' messages
1530 --cache-file=FILE cache test results in FILE [disabled]
1531 -C, --config-cache alias for \`--cache-file=config.cache'
1532 -n, --no-create do not create output files
1533 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1534
1535 Installation directories:
1536 --prefix=PREFIX install architecture-independent files in PREFIX
1537 [$ac_default_prefix]
1538 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1539 [PREFIX]
1540
1541 By default, \`make install' will install all the files in
1542 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1543 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1544 for instance \`--prefix=\$HOME'.
1545
1546 For better control, use the options below.
1547
1548 Fine tuning of the installation directories:
1549 --bindir=DIR user executables [EPREFIX/bin]
1550 --sbindir=DIR system admin executables [EPREFIX/sbin]
1551 --libexecdir=DIR program executables [EPREFIX/libexec]
1552 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1553 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1554 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1555 --libdir=DIR object code libraries [EPREFIX/lib]
1556 --includedir=DIR C header files [PREFIX/include]
1557 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1560 --infodir=DIR info documentation [DATAROOTDIR/info]
1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1562 --mandir=DIR man documentation [DATAROOTDIR/man]
1563 --docdir=DIR documentation root [DATAROOTDIR/doc/bind]
1564 --htmldir=DIR html documentation [DOCDIR]
1565 --dvidir=DIR dvi documentation [DOCDIR]
1566 --pdfdir=DIR pdf documentation [DOCDIR]
1567 --psdir=DIR ps documentation [DOCDIR]
1568 _ACEOF
1569
1570 cat <<\_ACEOF
1571
1572 System types:
1573 --build=BUILD configure for building on BUILD [guessed]
1574 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1575 _ACEOF
1576 fi
1577
1578 if test -n "$ac_init_help"; then
1579 case $ac_init_help in
1580 short | recursive ) echo "Configuration of BIND 9.14:";;
1581 esac
1582 cat <<\_ACEOF
1583
1584 Optional Features:
1585 --disable-option-checking ignore unrecognized --enable/--with options
1586 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1587 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1588 --enable-shared[=PKGS] build shared libraries [default=yes]
1589 --enable-static[=PKGS] build static libraries [default=yes]
1590 --enable-fast-install[=PKGS]
1591 optimize for fast installation [default=yes]
1592 --disable-libtool-lock avoid locking (might break parallel builds)
1593 --enable-libbind deprecated
1594 --enable-buffer-useinline
1595 define ISC_BUFFER_USEINLINE when compiling
1596 [default=yes]
1597 --enable-warn-shadow turn on -Wshadow when compiling
1598 --enable-warn-error turn on -Werror when compiling
1599 --enable-developer enable developer build settings
1600 --enable-fuzzing=<afl|libfuzzer>
1601 Enable fuzzing using American Fuzzy Lop or libFuzzer
1602 (default=no)
1603 --enable-kqueue use BSD kqueue when available [default=yes]
1604 --enable-epoll use Linux epoll when available [default=auto]
1605 --enable-devpoll use /dev/poll when available [default=yes]
1606 --enable-fips-mode enable FIPS mode in OpenSSL library [default=no]
1607 --enable-native-pkcs11 use native PKCS11 for public-key crypto [default=no]
1608 --enable-largefile 64-bit file support
1609 --enable-backtrace log stack backtrace on abort [default=yes]
1610 --enable-symtable use internal symbol table for backtrace
1611 [all|minimal(default)|none]
1612 --disable-tcp-fastopen disable TCP Fast Open support [default=yes]
1613 --disable-isc-spnego use SPNEGO from GSSAPI library
1614 --disable-chroot disable chroot
1615 --disable-linux-caps disable Linux capabilities
1616 --enable-fixed-rrset enable fixed rrset ordering [default=no]
1617 --enable-dnstap enable dnstap support (requires fstrm, protobuf-c)
1618 --enable-querytrace enable very verbose query trace logging [default=no]
1619 --enable-auto-validation
1620 turn on DNSSEC validation by default, using the IANA
1621 root key [default=yes]
1622 --enable-dnsrps-dl DNS Response Policy Service delayed link
1623 [default=$librpz_dl]
1624 --enable-dnsrps enable DNS Response Policy Service API
1625 --enable-full-report report values of all configure options
1626
1627 Optional Packages:
1628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1630 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1631 both]
1632 --with-aix-soname=aix|svr4|both
1633 shared library versioning (aka "SONAME") variant to
1634 provide on AIX, [default=aix].
1635 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1636 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1637 compiler's sysroot if not specified).
1638 --with-python=PATH specify path to Python interpreter
1639 --with-python-install-dir=PATH
1640 installation directory for Python modules
1641 --with-geoip=PATH Build with legacy GeoIP support (yes|no|path)
1642 --with-geoip2=PATH Build with MaxMind GeoIP2 support (auto|yes|no|path)
1643 [default=no]
1644 --with-locktype=ARG Specify mutex lock type (adaptive or standard)
1645 --with-libtool use GNU libtool
1646 --with-openssl=DIR root of the OpenSSL directory
1647 --with-cc-alg=ALG deprecated
1648 --with-pkcs11=PATH Build with PKCS11 support [no|path] (PATH is for the
1649 PKCS11 provider)
1650 --with-gssapi=PATH|/path/krb5-config
1651 Specify path for system-supplied GSSAPI
1652 [default=auto]
1653 --with-lmdb=PATH build with LMDB library [yes|no|path]
1654 --with-libxml2=PATH build with libxml2 library [yes|no|path]
1655 --with-libjson=PATH build with libjson0 library [yes|no|path]
1656 --with-zlib=PATH build with zlib for HTTP compression [default=yes]
1657 --with-purify=PATH use Rational purify
1658 --with-gperftools-profiler
1659 use gperftools CPU profiler
1660 --with-readline=LIBSPEC specify readline library [default auto]
1661 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1662 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1663 --with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets
1664 --with-libidn2=PATH enable IDN support using GNU libidn2
1665 [yes|no(default)|path]
1666 --with-cmocka=detect enable CMocka based tests (default is detect)
1667 --with-tuning=ARG Specify server tuning (large or default)
1668 --with-dlopen=ARG support dynamically loadable DLZ and DYNDB drivers
1669 --with-dnsrps-libname DNSRPS provider library name (librpz.so)
1670 --with-dnsrps-dir path to DNSRPS provider library
1671 --with-dlz-postgres=PATH
1672 Build with Postgres DLZ driver [yes|no|path].
1673 (Required to use Postgres with DLZ)
1674 --with-dlz-mysql=PATH Build with MySQL DLZ driver [yes|no|path]. (Required
1675 to use MySQL with DLZ)
1676 --with-dlz-bdb=PATH Build with Berkeley DB DLZ driver [yes|no|path].
1677 (Required to use Berkeley DB with DLZ)
1678 --with-dlz-filesystem=ARG
1679 Build with filesystem DLZ driver [yes|no]. (Required
1680 to use file system driver with DLZ)
1681 --with-dlz-ldap=PATH Build with LDAP DLZ driver [yes|no|path]. (Required
1682 to use LDAP with DLZ)
1683 --with-dlz-odbc=PATH Build with ODBC DLZ driver [yes|no|path]. (Required
1684 to use ODBC with DLZ)
1685 --with-dlz-stub=ARG Build with stub DLZ driver [yes|no]. (Required to
1686 use stub driver with DLZ)
1687 --with-make-clean run "make clean" at end of configure [yes|no]
1688
1689 Some influential environment variables:
1690 CC C compiler command
1691 CFLAGS C compiler flags
1692 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1693 nonstandard directory <lib dir>
1694 LIBS libraries to pass to the linker, e.g. -l<library>
1695 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1696 you have headers in a nonstandard directory <include dir>
1697 CPP C preprocessor
1698 LT_SYS_LIBRARY_PATH
1699 User-defined run-time library search path.
1700 PKG_CONFIG path to pkg-config utility
1701 PKG_CONFIG_PATH
1702 directories to add to pkg-config's search path
1703 PKG_CONFIG_LIBDIR
1704 path overriding pkg-config's built-in search path
1705 MAXMINDDB_CFLAGS
1706 C compiler flags for MAXMINDDB, overriding pkg-config
1707 MAXMINDDB_LIBS
1708 linker flags for MAXMINDDB, overriding pkg-config
1709 MAXMINDDB_PREFIX
1710 value of prefix for libmaxminddb, overriding pkg-config
1711 OPENSSL_CFLAGS
1712 C compiler flags for OPENSSL, overriding pkg-config
1713 OPENSSL_LIBS
1714 linker flags for OPENSSL, overriding pkg-config
1715 LIBIDN2_CFLAGS
1716 C compiler flags for LIBIDN2, overriding pkg-config
1717 LIBIDN2_LIBS
1718 linker flags for LIBIDN2, overriding pkg-config
1719 CMOCKA_CFLAGS
1720 C compiler flags for CMOCKA, overriding pkg-config
1721 CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
1722 KYUA path to kyua execution engine
1723
1724 Use these variables to override the choices made by `configure' or to help
1725 it to find libraries and programs with nonstandard names/locations.
1726
1727 Report bugs to <info (at] isc.org>.
1728 BIND home page: <https://www.isc.org/downloads/BIND/>.
1729 _ACEOF
1730 ac_status=$?
1731 fi
1732
1733 if test "$ac_init_help" = "recursive"; then
1734 # If there are subdirs, report their specific --help.
1735 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1736 test -d "$ac_dir" ||
1737 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1738 continue
1739 ac_builddir=.
1740
1741 case "$ac_dir" in
1742 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1743 *)
1744 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1745 # A ".." for each directory in $ac_dir_suffix.
1746 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1747 case $ac_top_builddir_sub in
1748 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1749 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1750 esac ;;
1751 esac
1752 ac_abs_top_builddir=$ac_pwd
1753 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1754 # for backward compatibility:
1755 ac_top_builddir=$ac_top_build_prefix
1756
1757 case $srcdir in
1758 .) # We are building in place.
1759 ac_srcdir=.
1760 ac_top_srcdir=$ac_top_builddir_sub
1761 ac_abs_top_srcdir=$ac_pwd ;;
1762 [\\/]* | ?:[\\/]* ) # Absolute name.
1763 ac_srcdir=$srcdir$ac_dir_suffix;
1764 ac_top_srcdir=$srcdir
1765 ac_abs_top_srcdir=$srcdir ;;
1766 *) # Relative name.
1767 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1768 ac_top_srcdir=$ac_top_build_prefix$srcdir
1769 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1770 esac
1771 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1772
1773 cd "$ac_dir" || { ac_status=$?; continue; }
1774 # Check for guested configure.
1775 if test -f "$ac_srcdir/configure.gnu"; then
1776 echo &&
1777 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1778 elif test -f "$ac_srcdir/configure"; then
1779 echo &&
1780 $SHELL "$ac_srcdir/configure" --help=recursive
1781 else
1782 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1783 fi || ac_status=$?
1784 cd "$ac_pwd" || { ac_status=$?; break; }
1785 done
1786 fi
1787
1788 test -n "$ac_init_help" && exit $ac_status
1789 if $ac_init_version; then
1790 cat <<\_ACEOF
1791 BIND configure 9.14
1792 generated by GNU Autoconf 2.69
1793
1794 Copyright (C) 2012 Free Software Foundation, Inc.
1795 This configure script is free software; the Free Software Foundation
1796 gives unlimited permission to copy, distribute and modify it.
1797 _ACEOF
1798 exit
1799 fi
1800
1801 ## ------------------------ ##
1802 ## Autoconf initialization. ##
1803 ## ------------------------ ##
1804
1805 # ac_fn_c_try_compile LINENO
1806 # --------------------------
1807 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_c_try_compile ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext
1812 if { { ac_try="$ac_compile"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_compile") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest.$ac_objext; then :
1831 ac_retval=0
1832 else
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=1
1837 fi
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_compile
1842
1843 # ac_fn_c_try_cpp LINENO
1844 # ----------------------
1845 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_c_try_cpp ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 if { { ac_try="$ac_cpp conftest.$ac_ext"
1850 case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1862 fi
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } > conftest.i && {
1865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 }; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1872
1873 ac_retval=1
1874 fi
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1877
1878 } # ac_fn_c_try_cpp
1879
1880 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1881 # -------------------------------------------------------
1882 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1883 # the include files in INCLUDES and setting the cache variable VAR
1884 # accordingly.
1885 ac_fn_c_check_header_mongrel ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if eval \${$3+:} false; then :
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1893 fi
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 else
1898 # Is the header compilable?
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1900 $as_echo_n "checking $2 usability... " >&6; }
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 $4
1904 #include <$2>
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 ac_header_compiler=yes
1908 else
1909 ac_header_compiler=no
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1913 $as_echo "$ac_header_compiler" >&6; }
1914
1915 # Is the header present?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1917 $as_echo_n "checking $2 presence... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_cpp "$LINENO"; then :
1923 ac_header_preproc=yes
1924 else
1925 ac_header_preproc=no
1926 fi
1927 rm -f conftest.err conftest.i conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1929 $as_echo "$ac_header_preproc" >&6; }
1930
1931 # So? What about this header?
1932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933 yes:no: )
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1935 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938 ;;
1939 no:yes:* )
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1941 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1943 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1945 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1947 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 ( $as_echo "## --------------------------- ##
1951 ## Report this to info (at] isc.org ##
1952 ## --------------------------- ##"
1953 ) | sed "s/^/$as_me: WARNING: /" >&2
1954 ;;
1955 esac
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1960 else
1961 eval "$3=\$ac_header_compiler"
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 fi
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969 } # ac_fn_c_check_header_mongrel
1970
1971 # ac_fn_c_try_run LINENO
1972 # ----------------------
1973 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1974 # that executables *can* be run.
1975 ac_fn_c_try_run ()
1976 {
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if { { ac_try="$ac_link"
1979 case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982 esac
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_link") 2>&5
1986 ac_status=$?
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1989 { { case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_try") 2>&5
1996 ac_status=$?
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; }; }; then :
1999 ac_retval=0
2000 else
2001 $as_echo "$as_me: program exited with status $ac_status" >&5
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2004
2005 ac_retval=$ac_status
2006 fi
2007 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 as_fn_set_status $ac_retval
2010
2011 } # ac_fn_c_try_run
2012
2013 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2014 # -------------------------------------------------------
2015 # Tests whether HEADER exists and can be compiled using the include files in
2016 # INCLUDES, setting the cache variable VAR accordingly.
2017 ac_fn_c_check_header_compile ()
2018 {
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2024 else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 $4
2028 #include <$2>
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$3=yes"
2032 else
2033 eval "$3=no"
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 fi
2037 eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042 } # ac_fn_c_check_header_compile
2043
2044 # ac_fn_c_try_link LINENO
2045 # -----------------------
2046 # Try to link conftest.$ac_ext, and return whether this succeeded.
2047 ac_fn_c_try_link ()
2048 {
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 rm -f conftest.$ac_objext conftest$ac_exeext
2051 if { { ac_try="$ac_link"
2052 case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_link") 2>conftest.err
2059 ac_status=$?
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2064 fi
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_c_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest$ac_exeext && {
2070 test "$cross_compiling" = yes ||
2071 test -x conftest$ac_exeext
2072 }; then :
2073 ac_retval=0
2074 else
2075 $as_echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2077
2078 ac_retval=1
2079 fi
2080 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2081 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2082 # interfere with the next link command; also delete a directory that is
2083 # left behind by Apple's compiler. We do this before executing the actions.
2084 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 as_fn_set_status $ac_retval
2087
2088 } # ac_fn_c_try_link
2089
2090 # ac_fn_c_check_func LINENO FUNC VAR
2091 # ----------------------------------
2092 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2093 ac_fn_c_check_func ()
2094 {
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2105 #define $2 innocuous_$2
2106
2107 /* System header to define __stub macros and hopefully few prototypes,
2108 which can conflict with char $2 (); below.
2109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2110 <limits.h> exists even on freestanding compilers. */
2111
2112 #ifdef __STDC__
2113 # include <limits.h>
2114 #else
2115 # include <assert.h>
2116 #endif
2117
2118 #undef $2
2119
2120 /* Override any GCC internal prototype to avoid an error.
2121 Use char because int might match the return type of a GCC
2122 builtin and then its argument prototype would still apply. */
2123 #ifdef __cplusplus
2124 extern "C"
2125 #endif
2126 char $2 ();
2127 /* The GNU C library defines this for functions which it implements
2128 to always fail with ENOSYS. Some functions are actually named
2129 something starting with __ and the normal name is an alias. */
2130 #if defined __stub_$2 || defined __stub___$2
2131 choke me
2132 #endif
2133
2134 int
2135 main ()
2136 {
2137 return $2 ();
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_link "$LINENO"; then :
2143 eval "$3=yes"
2144 else
2145 eval "$3=no"
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext \
2148 conftest$ac_exeext conftest.$ac_ext
2149 fi
2150 eval ac_res=\$$3
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154
2155 } # ac_fn_c_check_func
2156
2157 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2158 # -------------------------------------------
2159 # Tests whether TYPE exists after having included INCLUDES, setting cache
2160 # variable VAR accordingly.
2161 ac_fn_c_check_type ()
2162 {
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2165 $as_echo_n "checking for $2... " >&6; }
2166 if eval \${$3+:} false; then :
2167 $as_echo_n "(cached) " >&6
2168 else
2169 eval "$3=no"
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2172 $4
2173 int
2174 main ()
2175 {
2176 if (sizeof ($2))
2177 return 0;
2178 ;
2179 return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2185 $4
2186 int
2187 main ()
2188 {
2189 if (sizeof (($2)))
2190 return 0;
2191 ;
2192 return 0;
2193 }
2194 _ACEOF
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196
2197 else
2198 eval "$3=yes"
2199 fi
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 fi
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 fi
2204 eval ac_res=\$$3
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2206 $as_echo "$ac_res" >&6; }
2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208
2209 } # ac_fn_c_check_type
2210 cat >config.log <<_ACEOF
2211 This file contains any messages produced by compilers while
2212 running configure, to aid debugging if configure makes a mistake.
2213
2214 It was created by BIND $as_me 9.14, which was
2215 generated by GNU Autoconf 2.69. Invocation command line was
2216
2217 $ $0 $@
2218
2219 _ACEOF
2220 exec 5>>config.log
2221 {
2222 cat <<_ASUNAME
2223 ## --------- ##
2224 ## Platform. ##
2225 ## --------- ##
2226
2227 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2228 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2229 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2230 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2231 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2232
2233 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2234 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2235
2236 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2237 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2238 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2239 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2240 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2241 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2242 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2243
2244 _ASUNAME
2245
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2248 do
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 $as_echo "PATH: $as_dir"
2252 done
2253 IFS=$as_save_IFS
2254
2255 } >&5
2256
2257 cat >&5 <<_ACEOF
2258
2259
2260 ## ----------- ##
2261 ## Core tests. ##
2262 ## ----------- ##
2263
2264 _ACEOF
2265
2266
2267 # Keep a trace of the command line.
2268 # Strip out --no-create and --no-recursion so they do not pile up.
2269 # Strip out --silent because we don't want to record it for future runs.
2270 # Also quote any args containing shell meta-characters.
2271 # Make two passes to allow for proper duplicate-argument suppression.
2272 ac_configure_args=
2273 ac_configure_args0=
2274 ac_configure_args1=
2275 ac_must_keep_next=false
2276 for ac_pass in 1 2
2277 do
2278 for ac_arg
2279 do
2280 case $ac_arg in
2281 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2283 | -silent | --silent | --silen | --sile | --sil)
2284 continue ;;
2285 *\'*)
2286 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2287 esac
2288 case $ac_pass in
2289 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2290 2)
2291 as_fn_append ac_configure_args1 " '$ac_arg'"
2292 if test $ac_must_keep_next = true; then
2293 ac_must_keep_next=false # Got value, back to normal.
2294 else
2295 case $ac_arg in
2296 *=* | --config-cache | -C | -disable-* | --disable-* \
2297 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2298 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2299 | -with-* | --with-* | -without-* | --without-* | --x)
2300 case "$ac_configure_args0 " in
2301 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2302 esac
2303 ;;
2304 -* ) ac_must_keep_next=true ;;
2305 esac
2306 fi
2307 as_fn_append ac_configure_args " '$ac_arg'"
2308 ;;
2309 esac
2310 done
2311 done
2312 { ac_configure_args0=; unset ac_configure_args0;}
2313 { ac_configure_args1=; unset ac_configure_args1;}
2314
2315 # When interrupted or exit'd, cleanup temporary files, and complete
2316 # config.log. We remove comments because anyway the quotes in there
2317 # would cause problems or look ugly.
2318 # WARNING: Use '\'' to represent an apostrophe within the trap.
2319 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2320 trap 'exit_status=$?
2321 # Save into config.log some information that might help in debugging.
2322 {
2323 echo
2324
2325 $as_echo "## ---------------- ##
2326 ## Cache variables. ##
2327 ## ---------------- ##"
2328 echo
2329 # The following way of writing the cache mishandles newlines in values,
2330 (
2331 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2332 eval ac_val=\$$ac_var
2333 case $ac_val in #(
2334 *${as_nl}*)
2335 case $ac_var in #(
2336 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2337 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2338 esac
2339 case $ac_var in #(
2340 _ | IFS | as_nl) ;; #(
2341 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2342 *) { eval $ac_var=; unset $ac_var;} ;;
2343 esac ;;
2344 esac
2345 done
2346 (set) 2>&1 |
2347 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2348 *${as_nl}ac_space=\ *)
2349 sed -n \
2350 "s/'\''/'\''\\\\'\'''\''/g;
2351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2352 ;; #(
2353 *)
2354 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2355 ;;
2356 esac |
2357 sort
2358 )
2359 echo
2360
2361 $as_echo "## ----------------- ##
2362 ## Output variables. ##
2363 ## ----------------- ##"
2364 echo
2365 for ac_var in $ac_subst_vars
2366 do
2367 eval ac_val=\$$ac_var
2368 case $ac_val in
2369 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 esac
2371 $as_echo "$ac_var='\''$ac_val'\''"
2372 done | sort
2373 echo
2374
2375 if test -n "$ac_subst_files"; then
2376 $as_echo "## ------------------- ##
2377 ## File substitutions. ##
2378 ## ------------------- ##"
2379 echo
2380 for ac_var in $ac_subst_files
2381 do
2382 eval ac_val=\$$ac_var
2383 case $ac_val in
2384 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2385 esac
2386 $as_echo "$ac_var='\''$ac_val'\''"
2387 done | sort
2388 echo
2389 fi
2390
2391 if test -s confdefs.h; then
2392 $as_echo "## ----------- ##
2393 ## confdefs.h. ##
2394 ## ----------- ##"
2395 echo
2396 cat confdefs.h
2397 echo
2398 fi
2399 test "$ac_signal" != 0 &&
2400 $as_echo "$as_me: caught signal $ac_signal"
2401 $as_echo "$as_me: exit $exit_status"
2402 } >&5
2403 rm -f core *.core core.conftest.* &&
2404 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2405 exit $exit_status
2406 ' 0
2407 for ac_signal in 1 2 13 15; do
2408 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2409 done
2410 ac_signal=0
2411
2412 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2413 rm -f -r conftest* confdefs.h
2414
2415 $as_echo "/* confdefs.h */" > confdefs.h
2416
2417 # Predefined preprocessor variables.
2418
2419 cat >>confdefs.h <<_ACEOF
2420 #define PACKAGE_NAME "$PACKAGE_NAME"
2421 _ACEOF
2422
2423 cat >>confdefs.h <<_ACEOF
2424 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2425 _ACEOF
2426
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2429 _ACEOF
2430
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_STRING "$PACKAGE_STRING"
2433 _ACEOF
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2437 _ACEOF
2438
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE_URL "$PACKAGE_URL"
2441 _ACEOF
2442
2443
2444 # Let the site file select an alternate cache file if it wants to.
2445 # Prefer an explicitly selected file to automatically selected ones.
2446 ac_site_file1=NONE
2447 ac_site_file2=NONE
2448 if test -n "$CONFIG_SITE"; then
2449 # We do not want a PATH search for config.site.
2450 case $CONFIG_SITE in #((
2451 -*) ac_site_file1=./$CONFIG_SITE;;
2452 */*) ac_site_file1=$CONFIG_SITE;;
2453 *) ac_site_file1=./$CONFIG_SITE;;
2454 esac
2455 elif test "x$prefix" != xNONE; then
2456 ac_site_file1=$prefix/share/config.site
2457 ac_site_file2=$prefix/etc/config.site
2458 else
2459 ac_site_file1=$ac_default_prefix/share/config.site
2460 ac_site_file2=$ac_default_prefix/etc/config.site
2461 fi
2462 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2463 do
2464 test "x$ac_site_file" = xNONE && continue
2465 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2467 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2468 sed 's/^/| /' "$ac_site_file" >&5
2469 . "$ac_site_file" \
2470 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472 as_fn_error $? "failed to load site script $ac_site_file
2473 See \`config.log' for more details" "$LINENO" 5; }
2474 fi
2475 done
2476
2477 if test -r "$cache_file"; then
2478 # Some versions of bash will fail to source /dev/null (special files
2479 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2480 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2482 $as_echo "$as_me: loading cache $cache_file" >&6;}
2483 case $cache_file in
2484 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2485 *) . "./$cache_file";;
2486 esac
2487 fi
2488 else
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2490 $as_echo "$as_me: creating cache $cache_file" >&6;}
2491 >$cache_file
2492 fi
2493
2494 # Check that the precious variables saved in the cache have kept the same
2495 # value.
2496 ac_cache_corrupted=false
2497 for ac_var in $ac_precious_vars; do
2498 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2499 eval ac_new_set=\$ac_env_${ac_var}_set
2500 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2501 eval ac_new_val=\$ac_env_${ac_var}_value
2502 case $ac_old_set,$ac_new_set in
2503 set,)
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2505 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2506 ac_cache_corrupted=: ;;
2507 ,set)
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2509 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2510 ac_cache_corrupted=: ;;
2511 ,);;
2512 *)
2513 if test "x$ac_old_val" != "x$ac_new_val"; then
2514 # differences in whitespace do not lead to failure.
2515 ac_old_val_w=`echo x $ac_old_val`
2516 ac_new_val_w=`echo x $ac_new_val`
2517 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2519 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2520 ac_cache_corrupted=:
2521 else
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2523 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2524 eval $ac_var=\$ac_old_val
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2527 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2529 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2530 fi;;
2531 esac
2532 # Pass precious variables to config.status.
2533 if test "$ac_new_set" = set; then
2534 case $ac_new_val in
2535 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2536 *) ac_arg=$ac_var=$ac_new_val ;;
2537 esac
2538 case " $ac_configure_args " in
2539 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2540 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2541 esac
2542 fi
2543 done
2544 if $ac_cache_corrupted; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2548 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2549 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2550 fi
2551 ## -------------------- ##
2552 ## Main body of script. ##
2553 ## -------------------- ##
2554
2555 ac_ext=c
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560
2561
2562
2563
2564 ac_config_headers="$ac_config_headers config.h"
2565
2566
2567
2568 ac_aux_dir=
2569 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2570 if test -f "$ac_dir/install-sh"; then
2571 ac_aux_dir=$ac_dir
2572 ac_install_sh="$ac_aux_dir/install-sh -c"
2573 break
2574 elif test -f "$ac_dir/install.sh"; then
2575 ac_aux_dir=$ac_dir
2576 ac_install_sh="$ac_aux_dir/install.sh -c"
2577 break
2578 elif test -f "$ac_dir/shtool"; then
2579 ac_aux_dir=$ac_dir
2580 ac_install_sh="$ac_aux_dir/shtool install -c"
2581 break
2582 fi
2583 done
2584 if test -z "$ac_aux_dir"; then
2585 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2586 fi
2587
2588 # These three variables are undocumented and unsupported,
2589 # and are intended to be withdrawn in a future Autoconf release.
2590 # They can cause serious problems if a builder's source tree is in a directory
2591 # whose full name contains unusual characters.
2592 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2593 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2594 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2595
2596
2597 # Make sure we can run config.sub.
2598 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2599 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2600
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2602 $as_echo_n "checking build system type... " >&6; }
2603 if ${ac_cv_build+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 ac_build_alias=$build_alias
2607 test "x$ac_build_alias" = x &&
2608 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2609 test "x$ac_build_alias" = x &&
2610 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2611 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2612 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2613
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2616 $as_echo "$ac_cv_build" >&6; }
2617 case $ac_cv_build in
2618 *-*-*) ;;
2619 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2620 esac
2621 build=$ac_cv_build
2622 ac_save_IFS=$IFS; IFS='-'
2623 set x $ac_cv_build
2624 shift
2625 build_cpu=$1
2626 build_vendor=$2
2627 shift; shift
2628 # Remember, the first character of IFS is used to create $*,
2629 # except with old shells:
2630 build_os=$*
2631 IFS=$ac_save_IFS
2632 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2633
2634
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2636 $as_echo_n "checking host system type... " >&6; }
2637 if ${ac_cv_host+:} false; then :
2638 $as_echo_n "(cached) " >&6
2639 else
2640 if test "x$host_alias" = x; then
2641 ac_cv_host=$ac_cv_build
2642 else
2643 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2644 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2645 fi
2646
2647 fi
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2649 $as_echo "$ac_cv_host" >&6; }
2650 case $ac_cv_host in
2651 *-*-*) ;;
2652 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2653 esac
2654 host=$ac_cv_host
2655 ac_save_IFS=$IFS; IFS='-'
2656 set x $ac_cv_host
2657 shift
2658 host_cpu=$1
2659 host_vendor=$2
2660 shift; shift
2661 # Remember, the first character of IFS is used to create $*,
2662 # except with old shells:
2663 host_os=$*
2664 IFS=$ac_save_IFS
2665 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2666
2667
2668 ac_ext=c
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673 if test -n "$ac_tool_prefix"; then
2674 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2675 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_CC+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 CC=$ac_cv_prog_CC
2702 if test -n "$CC"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704 $as_echo "$CC" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710
2711 fi
2712 if test -z "$ac_cv_prog_CC"; then
2713 ac_ct_CC=$CC
2714 # Extract the first word of "gcc", so it can be a program name with args.
2715 set dummy gcc; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 if test -n "$ac_ct_CC"; then
2722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2726 do
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2731 ac_cv_prog_ac_ct_CC="gcc"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2734 fi
2735 done
2736 done
2737 IFS=$as_save_IFS
2738
2739 fi
2740 fi
2741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742 if test -n "$ac_ct_CC"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2744 $as_echo "$ac_ct_CC" >&6; }
2745 else
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2748 fi
2749
2750 if test "x$ac_ct_CC" = x; then
2751 CC=""
2752 else
2753 case $cross_compiling:$ac_tool_warned in
2754 yes:)
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2757 ac_tool_warned=yes ;;
2758 esac
2759 CC=$ac_ct_CC
2760 fi
2761 else
2762 CC="$ac_cv_prog_CC"
2763 fi
2764
2765 if test -z "$CC"; then
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}cc; ac_word=$2
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if ${ac_cv_prog_CC+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 if test -n "$CC"; then
2775 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_CC="${ac_tool_prefix}cc"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 CC=$ac_cv_prog_CC
2795 if test -n "$CC"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2797 $as_echo "$CC" >&6; }
2798 else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2801 fi
2802
2803
2804 fi
2805 fi
2806 if test -z "$CC"; then
2807 # Extract the first word of "cc", so it can be a program name with args.
2808 set dummy cc; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_CC+:} false; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$CC"; then
2815 ac_cv_prog_CC="$CC" # Let the user override the test.
2816 else
2817 ac_prog_rejected=no
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2826 ac_prog_rejected=yes
2827 continue
2828 fi
2829 ac_cv_prog_CC="cc"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833 done
2834 done
2835 IFS=$as_save_IFS
2836
2837 if test $ac_prog_rejected = yes; then
2838 # We found a bogon in the path, so make sure we never use it.
2839 set dummy $ac_cv_prog_CC
2840 shift
2841 if test $# != 0; then
2842 # We chose a different compiler from the bogus one.
2843 # However, it has the same basename, so the bogon will be chosen
2844 # first if we set CC to just the basename; use the full file name.
2845 shift
2846 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2847 fi
2848 fi
2849 fi
2850 fi
2851 CC=$ac_cv_prog_CC
2852 if test -n "$CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 $as_echo "$CC" >&6; }
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860
2861 fi
2862 if test -z "$CC"; then
2863 if test -n "$ac_tool_prefix"; then
2864 for ac_prog in cl.exe
2865 do
2866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if ${ac_cv_prog_CC+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 if test -n "$CC"; then
2874 ac_cv_prog_CC="$CC" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2886 fi
2887 done
2888 done
2889 IFS=$as_save_IFS
2890
2891 fi
2892 fi
2893 CC=$ac_cv_prog_CC
2894 if test -n "$CC"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896 $as_echo "$CC" >&6; }
2897 else
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 $as_echo "no" >&6; }
2900 fi
2901
2902
2903 test -n "$CC" && break
2904 done
2905 fi
2906 if test -z "$CC"; then
2907 ac_ct_CC=$CC
2908 for ac_prog in cl.exe
2909 do
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911 set dummy $ac_prog; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$ac_ct_CC"; then
2918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_CC="$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2938 if test -n "$ac_ct_CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2940 $as_echo "$ac_ct_CC" >&6; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 fi
2945
2946
2947 test -n "$ac_ct_CC" && break
2948 done
2949
2950 if test "x$ac_ct_CC" = x; then
2951 CC=""
2952 else
2953 case $cross_compiling:$ac_tool_warned in
2954 yes:)
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957 ac_tool_warned=yes ;;
2958 esac
2959 CC=$ac_ct_CC
2960 fi
2961 fi
2962
2963 fi
2964
2965
2966 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968 as_fn_error $? "no acceptable C compiler found in \$PATH
2969 See \`config.log' for more details" "$LINENO" 5; }
2970
2971 # Provide some information about the compiler.
2972 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2973 set X $ac_compile
2974 ac_compiler=$2
2975 for ac_option in --version -v -V -qversion; do
2976 { { ac_try="$ac_compiler $ac_option >&5"
2977 case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982 $as_echo "$ac_try_echo"; } >&5
2983 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2984 ac_status=$?
2985 if test -s conftest.err; then
2986 sed '10a\
2987 ... rest of stderr output deleted ...
2988 10q' conftest.err >conftest.er1
2989 cat conftest.er1 >&5
2990 fi
2991 rm -f conftest.er1 conftest.err
2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2993 test $ac_status = 0; }
2994 done
2995
2996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2997 /* end confdefs.h. */
2998
2999 int
3000 main ()
3001 {
3002
3003 ;
3004 return 0;
3005 }
3006 _ACEOF
3007 ac_clean_files_save=$ac_clean_files
3008 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3009 # Try to create an executable without -o first, disregard a.out.
3010 # It will help us diagnose broken compilers, and finding out an intuition
3011 # of exeext.
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3013 $as_echo_n "checking whether the C compiler works... " >&6; }
3014 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3015
3016 # The possible output files:
3017 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3018
3019 ac_rmfiles=
3020 for ac_file in $ac_files
3021 do
3022 case $ac_file in
3023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3024 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3025 esac
3026 done
3027 rm -f $ac_rmfiles
3028
3029 if { { ac_try="$ac_link_default"
3030 case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035 $as_echo "$ac_try_echo"; } >&5
3036 (eval "$ac_link_default") 2>&5
3037 ac_status=$?
3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039 test $ac_status = 0; }; then :
3040 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3041 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3042 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3043 # so that the user can short-circuit this test for compilers unknown to
3044 # Autoconf.
3045 for ac_file in $ac_files ''
3046 do
3047 test -f "$ac_file" || continue
3048 case $ac_file in
3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3050 ;;
3051 [ab].out )
3052 # We found the default executable, but exeext='' is most
3053 # certainly right.
3054 break;;
3055 *.* )
3056 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3057 then :; else
3058 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059 fi
3060 # We set ac_cv_exeext here because the later test for it is not
3061 # safe: cross compilers may not add the suffix if given an `-o'
3062 # argument, so we may need to know it at that point already.
3063 # Even if this section looks crufty: it has the advantage of
3064 # actually working.
3065 break;;
3066 * )
3067 break;;
3068 esac
3069 done
3070 test "$ac_cv_exeext" = no && ac_cv_exeext=
3071
3072 else
3073 ac_file=''
3074 fi
3075 if test -z "$ac_file"; then :
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 $as_echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error 77 "C compiler cannot create executables
3084 See \`config.log' for more details" "$LINENO" 5; }
3085 else
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3087 $as_echo "yes" >&6; }
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3090 $as_echo_n "checking for C compiler default output file name... " >&6; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3092 $as_echo "$ac_file" >&6; }
3093 ac_exeext=$ac_cv_exeext
3094
3095 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3096 ac_clean_files=$ac_clean_files_save
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3098 $as_echo_n "checking for suffix of executables... " >&6; }
3099 if { { ac_try="$ac_link"
3100 case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105 $as_echo "$ac_try_echo"; } >&5
3106 (eval "$ac_link") 2>&5
3107 ac_status=$?
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }; then :
3110 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3111 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3112 # work properly (i.e., refer to `conftest.exe'), while it won't with
3113 # `rm'.
3114 for ac_file in conftest.exe conftest conftest.*; do
3115 test -f "$ac_file" || continue
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3118 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119 break;;
3120 * ) break;;
3121 esac
3122 done
3123 else
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3127 See \`config.log' for more details" "$LINENO" 5; }
3128 fi
3129 rm -f conftest conftest$ac_cv_exeext
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3131 $as_echo "$ac_cv_exeext" >&6; }
3132
3133 rm -f conftest.$ac_ext
3134 EXEEXT=$ac_cv_exeext
3135 ac_exeext=$EXEEXT
3136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137 /* end confdefs.h. */
3138 #include <stdio.h>
3139 int
3140 main ()
3141 {
3142 FILE *f = fopen ("conftest.out", "w");
3143 return ferror (f) || fclose (f) != 0;
3144
3145 ;
3146 return 0;
3147 }
3148 _ACEOF
3149 ac_clean_files="$ac_clean_files conftest.out"
3150 # Check that the compiler produces executables we can run. If not, either
3151 # the compiler is broken, or we cross compile.
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3153 $as_echo_n "checking whether we are cross compiling... " >&6; }
3154 if test "$cross_compiling" != yes; then
3155 { { ac_try="$ac_link"
3156 case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161 $as_echo "$ac_try_echo"; } >&5
3162 (eval "$ac_link") 2>&5
3163 ac_status=$?
3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165 test $ac_status = 0; }
3166 if { ac_try='./conftest$ac_cv_exeext'
3167 { { case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_try") 2>&5
3174 ac_status=$?
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }; }; then
3177 cross_compiling=no
3178 else
3179 if test "$cross_compiling" = maybe; then
3180 cross_compiling=yes
3181 else
3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "cannot run C compiled programs.
3185 If you meant to cross compile, use \`--host'.
3186 See \`config.log' for more details" "$LINENO" 5; }
3187 fi
3188 fi
3189 fi
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3191 $as_echo "$cross_compiling" >&6; }
3192
3193 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3194 ac_clean_files=$ac_clean_files_save
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3196 $as_echo_n "checking for suffix of object files... " >&6; }
3197 if ${ac_cv_objext+:} false; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3202
3203 int
3204 main ()
3205 {
3206
3207 ;
3208 return 0;
3209 }
3210 _ACEOF
3211 rm -f conftest.o conftest.obj
3212 if { { ac_try="$ac_compile"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_compile") 2>&5
3220 ac_status=$?
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 for ac_file in conftest.o conftest.obj conftest.*; do
3224 test -f "$ac_file" || continue;
3225 case $ac_file in
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3227 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3228 break;;
3229 esac
3230 done
3231 else
3232 $as_echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3234
3235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 as_fn_error $? "cannot compute suffix of object files: cannot compile
3238 See \`config.log' for more details" "$LINENO" 5; }
3239 fi
3240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3241 fi
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3243 $as_echo "$ac_cv_objext" >&6; }
3244 OBJEXT=$ac_cv_objext
3245 ac_objext=$OBJEXT
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3247 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3248 if ${ac_cv_c_compiler_gnu+:} false; then :
3249 $as_echo_n "(cached) " >&6
3250 else
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3253
3254 int
3255 main ()
3256 {
3257 #ifndef __GNUC__
3258 choke me
3259 #endif
3260
3261 ;
3262 return 0;
3263 }
3264 _ACEOF
3265 if ac_fn_c_try_compile "$LINENO"; then :
3266 ac_compiler_gnu=yes
3267 else
3268 ac_compiler_gnu=no
3269 fi
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3272
3273 fi
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3275 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3276 if test $ac_compiler_gnu = yes; then
3277 GCC=yes
3278 else
3279 GCC=
3280 fi
3281 ac_test_CFLAGS=${CFLAGS+set}
3282 ac_save_CFLAGS=$CFLAGS
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3284 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3285 if ${ac_cv_prog_cc_g+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 ac_save_c_werror_flag=$ac_c_werror_flag
3289 ac_c_werror_flag=yes
3290 ac_cv_prog_cc_g=no
3291 CFLAGS="-g"
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294
3295 int
3296 main ()
3297 {
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 if ac_fn_c_try_compile "$LINENO"; then :
3304 ac_cv_prog_cc_g=yes
3305 else
3306 CFLAGS=""
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3309
3310 int
3311 main ()
3312 {
3313
3314 ;
3315 return 0;
3316 }
3317 _ACEOF
3318 if ac_fn_c_try_compile "$LINENO"; then :
3319
3320 else
3321 ac_c_werror_flag=$ac_save_c_werror_flag
3322 CFLAGS="-g"
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3325
3326 int
3327 main ()
3328 {
3329
3330 ;
3331 return 0;
3332 }
3333 _ACEOF
3334 if ac_fn_c_try_compile "$LINENO"; then :
3335 ac_cv_prog_cc_g=yes
3336 fi
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 fi
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 fi
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 ac_c_werror_flag=$ac_save_c_werror_flag
3343 fi
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3345 $as_echo "$ac_cv_prog_cc_g" >&6; }
3346 if test "$ac_test_CFLAGS" = set; then
3347 CFLAGS=$ac_save_CFLAGS
3348 elif test $ac_cv_prog_cc_g = yes; then
3349 if test "$GCC" = yes; then
3350 CFLAGS="-g -O2"
3351 else
3352 CFLAGS="-g"
3353 fi
3354 else
3355 if test "$GCC" = yes; then
3356 CFLAGS="-O2"
3357 else
3358 CFLAGS=
3359 fi
3360 fi
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3362 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3363 if ${ac_cv_prog_cc_c89+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 ac_cv_prog_cc_c89=no
3367 ac_save_CC=$CC
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3370 #include <stdarg.h>
3371 #include <stdio.h>
3372 struct stat;
3373 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3374 struct buf { int x; };
3375 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376 static char *e (p, i)
3377 char **p;
3378 int i;
3379 {
3380 return p[i];
3381 }
3382 static char *f (char * (*g) (char **, int), char **p, ...)
3383 {
3384 char *s;
3385 va_list v;
3386 va_start (v,p);
3387 s = g (p, va_arg (v,int));
3388 va_end (v);
3389 return s;
3390 }
3391
3392 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3393 function prototypes and stuff, but not '\xHH' hex character constants.
3394 These don't provoke an error unfortunately, instead are silently treated
3395 as 'x'. The following induces an error, until -std is added to get
3396 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3397 array size at least. It's necessary to write '\x00'==0 to get something
3398 that's true only with -std. */
3399 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400
3401 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402 inside strings and character constants. */
3403 #define FOO(x) 'x'
3404 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3405
3406 int test (int i, double x);
3407 struct s1 {int (*f) (int a);};
3408 struct s2 {int (*f) (double a);};
3409 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3410 int argc;
3411 char **argv;
3412 int
3413 main ()
3414 {
3415 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 do
3423 CC="$ac_save_CC $ac_arg"
3424 if ac_fn_c_try_compile "$LINENO"; then :
3425 ac_cv_prog_cc_c89=$ac_arg
3426 fi
3427 rm -f core conftest.err conftest.$ac_objext
3428 test "x$ac_cv_prog_cc_c89" != "xno" && break
3429 done
3430 rm -f conftest.$ac_ext
3431 CC=$ac_save_CC
3432
3433 fi
3434 # AC_CACHE_VAL
3435 case "x$ac_cv_prog_cc_c89" in
3436 x)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3438 $as_echo "none needed" >&6; } ;;
3439 xno)
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3441 $as_echo "unsupported" >&6; } ;;
3442 *)
3443 CC="$CC $ac_cv_prog_cc_c89"
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3445 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3446 esac
3447 if test "x$ac_cv_prog_cc_c89" != xno; then :
3448
3449 fi
3450
3451 ac_ext=c
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3464 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3465 # On Suns, sometimes $CPP names a directory.
3466 if test -n "$CPP" && test -d "$CPP"; then
3467 CPP=
3468 fi
3469 if test -z "$CPP"; then
3470 if ${ac_cv_prog_CPP+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 # Double quotes because CPP needs to be expanded
3474 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3475 do
3476 ac_preproc_ok=false
3477 for ac_c_preproc_warn_flag in '' yes
3478 do
3479 # Use a header file that comes with gcc, so configuring glibc
3480 # with a fresh cross-compiler works.
3481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3482 # <limits.h> exists even on freestanding compilers.
3483 # On the NeXT, cc -E runs the code through the compiler's parser,
3484 # not just through cpp. "Syntax error" is here to catch this case.
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487 #ifdef __STDC__
3488 # include <limits.h>
3489 #else
3490 # include <assert.h>
3491 #endif
3492 Syntax error
3493 _ACEOF
3494 if ac_fn_c_try_cpp "$LINENO"; then :
3495
3496 else
3497 # Broken: fails on valid input.
3498 continue
3499 fi
3500 rm -f conftest.err conftest.i conftest.$ac_ext
3501
3502 # OK, works on sane cases. Now check whether nonexistent headers
3503 # can be detected and how.
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506 #include <ac_nonexistent.h>
3507 _ACEOF
3508 if ac_fn_c_try_cpp "$LINENO"; then :
3509 # Broken: success on invalid input.
3510 continue
3511 else
3512 # Passes both tests.
3513 ac_preproc_ok=:
3514 break
3515 fi
3516 rm -f conftest.err conftest.i conftest.$ac_ext
3517
3518 done
3519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3520 rm -f conftest.i conftest.err conftest.$ac_ext
3521 if $ac_preproc_ok; then :
3522 break
3523 fi
3524
3525 done
3526 ac_cv_prog_CPP=$CPP
3527
3528 fi
3529 CPP=$ac_cv_prog_CPP
3530 else
3531 ac_cv_prog_CPP=$CPP
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3534 $as_echo "$CPP" >&6; }
3535 ac_preproc_ok=false
3536 for ac_c_preproc_warn_flag in '' yes
3537 do
3538 # Use a header file that comes with gcc, so configuring glibc
3539 # with a fresh cross-compiler works.
3540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3541 # <limits.h> exists even on freestanding compilers.
3542 # On the NeXT, cc -E runs the code through the compiler's parser,
3543 # not just through cpp. "Syntax error" is here to catch this case.
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546 #ifdef __STDC__
3547 # include <limits.h>
3548 #else
3549 # include <assert.h>
3550 #endif
3551 Syntax error
3552 _ACEOF
3553 if ac_fn_c_try_cpp "$LINENO"; then :
3554
3555 else
3556 # Broken: fails on valid input.
3557 continue
3558 fi
3559 rm -f conftest.err conftest.i conftest.$ac_ext
3560
3561 # OK, works on sane cases. Now check whether nonexistent headers
3562 # can be detected and how.
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565 #include <ac_nonexistent.h>
3566 _ACEOF
3567 if ac_fn_c_try_cpp "$LINENO"; then :
3568 # Broken: success on invalid input.
3569 continue
3570 else
3571 # Passes both tests.
3572 ac_preproc_ok=:
3573 break
3574 fi
3575 rm -f conftest.err conftest.i conftest.$ac_ext
3576
3577 done
3578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3579 rm -f conftest.i conftest.err conftest.$ac_ext
3580 if $ac_preproc_ok; then :
3581
3582 else
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3586 See \`config.log' for more details" "$LINENO" 5; }
3587 fi
3588
3589 ac_ext=c
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594
3595
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3597 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3598 if ${ac_cv_path_GREP+:} false; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 if test -z "$GREP"; then
3602 ac_path_GREP_found=false
3603 # Loop through the user's path and test for each of PROGNAME-LIST
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3606 do
3607 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=.
3609 for ac_prog in grep ggrep; do
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3612 as_fn_executable_p "$ac_path_GREP" || continue
3613 # Check for GNU ac_path_GREP and select it if it is found.
3614 # Check for GNU $ac_path_GREP
3615 case `"$ac_path_GREP" --version 2>&1` in
3616 *GNU*)
3617 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3618 *)
3619 ac_count=0
3620 $as_echo_n 0123456789 >"conftest.in"
3621 while :
3622 do
3623 cat "conftest.in" "conftest.in" >"conftest.tmp"
3624 mv "conftest.tmp" "conftest.in"
3625 cp "conftest.in" "conftest.nl"
3626 $as_echo 'GREP' >> "conftest.nl"
3627 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3629 as_fn_arith $ac_count + 1 && ac_count=$as_val
3630 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3631 # Best one so far, save it but keep looking for a better one
3632 ac_cv_path_GREP="$ac_path_GREP"
3633 ac_path_GREP_max=$ac_count
3634 fi
3635 # 10*(2^10) chars as input seems more than enough
3636 test $ac_count -gt 10 && break
3637 done
3638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3639 esac
3640
3641 $ac_path_GREP_found && break 3
3642 done
3643 done
3644 done
3645 IFS=$as_save_IFS
3646 if test -z "$ac_cv_path_GREP"; then
3647 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3648 fi
3649 else
3650 ac_cv_path_GREP=$GREP
3651 fi
3652
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3655 $as_echo "$ac_cv_path_GREP" >&6; }
3656 GREP="$ac_cv_path_GREP"
3657
3658
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3660 $as_echo_n "checking for egrep... " >&6; }
3661 if ${ac_cv_path_EGREP+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3665 then ac_cv_path_EGREP="$GREP -E"
3666 else
3667 if test -z "$EGREP"; then
3668 ac_path_EGREP_found=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3672 do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_prog in egrep; do
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3678 as_fn_executable_p "$ac_path_EGREP" || continue
3679 # Check for GNU ac_path_EGREP and select it if it is found.
3680 # Check for GNU $ac_path_EGREP
3681 case `"$ac_path_EGREP" --version 2>&1` in
3682 *GNU*)
3683 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3684 *)
3685 ac_count=0
3686 $as_echo_n 0123456789 >"conftest.in"
3687 while :
3688 do
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 $as_echo 'EGREP' >> "conftest.nl"
3693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3695 as_fn_arith $ac_count + 1 && ac_count=$as_val
3696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_EGREP="$ac_path_EGREP"
3699 ac_path_EGREP_max=$ac_count
3700 fi
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3703 done
3704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3705 esac
3706
3707 $ac_path_EGREP_found && break 3
3708 done
3709 done
3710 done
3711 IFS=$as_save_IFS
3712 if test -z "$ac_cv_path_EGREP"; then
3713 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3714 fi
3715 else
3716 ac_cv_path_EGREP=$EGREP
3717 fi
3718
3719 fi
3720 fi
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3722 $as_echo "$ac_cv_path_EGREP" >&6; }
3723 EGREP="$ac_cv_path_EGREP"
3724
3725
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3727 $as_echo_n "checking for ANSI C header files... " >&6; }
3728 if ${ac_cv_header_stdc+:} false; then :
3729 $as_echo_n "(cached) " >&6
3730 else
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733 #include <stdlib.h>
3734 #include <stdarg.h>
3735 #include <string.h>
3736 #include <float.h>
3737
3738 int
3739 main ()
3740 {
3741
3742 ;
3743 return 0;
3744 }
3745 _ACEOF
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_cv_header_stdc=yes
3748 else
3749 ac_cv_header_stdc=no
3750 fi
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752
3753 if test $ac_cv_header_stdc = yes; then
3754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #include <string.h>
3758
3759 _ACEOF
3760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3761 $EGREP "memchr" >/dev/null 2>&1; then :
3762
3763 else
3764 ac_cv_header_stdc=no
3765 fi
3766 rm -f conftest*
3767
3768 fi
3769
3770 if test $ac_cv_header_stdc = yes; then
3771 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774 #include <stdlib.h>
3775
3776 _ACEOF
3777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3778 $EGREP "free" >/dev/null 2>&1; then :
3779
3780 else
3781 ac_cv_header_stdc=no
3782 fi
3783 rm -f conftest*
3784
3785 fi
3786
3787 if test $ac_cv_header_stdc = yes; then
3788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3789 if test "$cross_compiling" = yes; then :
3790 :
3791 else
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794 #include <ctype.h>
3795 #include <stdlib.h>
3796 #if ((' ' & 0x0FF) == 0x020)
3797 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3798 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3799 #else
3800 # define ISLOWER(c) \
3801 (('a' <= (c) && (c) <= 'i') \
3802 || ('j' <= (c) && (c) <= 'r') \
3803 || ('s' <= (c) && (c) <= 'z'))
3804 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3805 #endif
3806
3807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3808 int
3809 main ()
3810 {
3811 int i;
3812 for (i = 0; i < 256; i++)
3813 if (XOR (islower (i), ISLOWER (i))
3814 || toupper (i) != TOUPPER (i))
3815 return 2;
3816 return 0;
3817 }
3818 _ACEOF
3819 if ac_fn_c_try_run "$LINENO"; then :
3820
3821 else
3822 ac_cv_header_stdc=no
3823 fi
3824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3825 conftest.$ac_objext conftest.beam conftest.$ac_ext
3826 fi
3827
3828 fi
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3831 $as_echo "$ac_cv_header_stdc" >&6; }
3832 if test $ac_cv_header_stdc = yes; then
3833
3834 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3835
3836 fi
3837
3838 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3839 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3840 inttypes.h stdint.h unistd.h
3841 do :
3842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3843 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3844 "
3845 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3846 cat >>confdefs.h <<_ACEOF
3847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3848 _ACEOF
3849
3850 fi
3851
3852 done
3853
3854
3855
3856 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3857 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3858 MINIX=yes
3859 else
3860 MINIX=
3861 fi
3862
3863
3864 if test "$MINIX" = yes; then
3865
3866 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3867
3868
3869 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3870
3871
3872 $as_echo "#define _MINIX 1" >>confdefs.h
3873
3874 fi
3875
3876
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3878 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3879 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3880 $as_echo_n "(cached) " >&6
3881 else
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884
3885 # define __EXTENSIONS__ 1
3886 $ac_includes_default
3887 int
3888 main ()
3889 {
3890
3891 ;
3892 return 0;
3893 }
3894 _ACEOF
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896 ac_cv_safe_to_define___extensions__=yes
3897 else
3898 ac_cv_safe_to_define___extensions__=no
3899 fi
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3903 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3904 test $ac_cv_safe_to_define___extensions__ = yes &&
3905 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3906
3907 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3908
3909 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3910
3911 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3912
3913 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3914
3915
3916
3917 LFS_CFLAGS=`getconf LFS_CFLAGS 2>/dev/null`
3918 LFS_LDFLAGS=`getconf LFS_LDFLAGS 2>/dev/null`
3919 LFS_LIBS=`getconf LFS_LIBS 2>/dev/null`
3920
3921
3922
3923
3924
3925 # Enable RFC 3542 APIs on macOS
3926
3927 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
3928
3929
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3931 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3932 set x ${MAKE-make}
3933 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3934 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 cat >conftest.make <<\_ACEOF
3938 SHELL = /bin/sh
3939 all:
3940 @echo '@@@%%%=$(MAKE)=@@@%%%'
3941 _ACEOF
3942 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3943 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3944 *@@@%%%=?*=@@@%%%*)
3945 eval ac_cv_prog_make_${ac_make}_set=yes;;
3946 *)
3947 eval ac_cv_prog_make_${ac_make}_set=no;;
3948 esac
3949 rm -f conftest.make
3950 fi
3951 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3953 $as_echo "yes" >&6; }
3954 SET_MAKE=
3955 else
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957 $as_echo "no" >&6; }
3958 SET_MAKE="MAKE=${MAKE-make}"
3959 fi
3960
3961
3962 case `pwd` in
3963 *\ * | *\ *)
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3965 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3966 esac
3967
3968
3969
3970 macro_version='2.4.6'
3971 macro_revision='2.4.6'
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985 ltmain=$ac_aux_dir/ltmain.sh
3986
3987 # Backslashify metacharacters that are still active within
3988 # double-quoted strings.
3989 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3990
3991 # Same as above, but do not quote variable references.
3992 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3993
3994 # Sed substitution to delay expansion of an escaped shell variable in a
3995 # double_quote_subst'ed string.
3996 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3997
3998 # Sed substitution to delay expansion of an escaped single quote.
3999 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4000
4001 # Sed substitution to avoid accidental globbing in evaled expressions
4002 no_glob_subst='s/\*/\\\*/g'
4003
4004 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4005 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4006 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4007
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4009 $as_echo_n "checking how to print strings... " >&6; }
4010 # Test print first, because it will be a builtin if present.
4011 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4012 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4013 ECHO='print -r --'
4014 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4015 ECHO='printf %s\n'
4016 else
4017 # Use this function as a fallback that always works.
4018 func_fallback_echo ()
4019 {
4020 eval 'cat <<_LTECHO_EOF
4021 $1
4022 _LTECHO_EOF'
4023 }
4024 ECHO='func_fallback_echo'
4025 fi
4026
4027 # func_echo_all arg...
4028 # Invoke $ECHO with all args, space-separated.
4029 func_echo_all ()
4030 {
4031 $ECHO ""
4032 }
4033
4034 case $ECHO in
4035 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4036 $as_echo "printf" >&6; } ;;
4037 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4038 $as_echo "print -r" >&6; } ;;
4039 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4040 $as_echo "cat" >&6; } ;;
4041 esac
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4057 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4058 if ${ac_cv_path_SED+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4062 for ac_i in 1 2 3 4 5 6 7; do
4063 ac_script="$ac_script$as_nl$ac_script"
4064 done
4065 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4066 { ac_script=; unset ac_script;}
4067 if test -z "$SED"; then
4068 ac_path_SED_found=false
4069 # Loop through the user's path and test for each of PROGNAME-LIST
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4072 do
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_prog in sed gsed; do
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4078 as_fn_executable_p "$ac_path_SED" || continue
4079 # Check for GNU ac_path_SED and select it if it is found.
4080 # Check for GNU $ac_path_SED
4081 case `"$ac_path_SED" --version 2>&1` in
4082 *GNU*)
4083 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4084 *)
4085 ac_count=0
4086 $as_echo_n 0123456789 >"conftest.in"
4087 while :
4088 do
4089 cat "conftest.in" "conftest.in" >"conftest.tmp"
4090 mv "conftest.tmp" "conftest.in"
4091 cp "conftest.in" "conftest.nl"
4092 $as_echo '' >> "conftest.nl"
4093 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4094 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4095 as_fn_arith $ac_count + 1 && ac_count=$as_val
4096 if test $ac_count -gt ${ac_path_SED_max-0}; then
4097 # Best one so far, save it but keep looking for a better one
4098 ac_cv_path_SED="$ac_path_SED"
4099 ac_path_SED_max=$ac_count
4100 fi
4101 # 10*(2^10) chars as input seems more than enough
4102 test $ac_count -gt 10 && break
4103 done
4104 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4105 esac
4106
4107 $ac_path_SED_found && break 3
4108 done
4109 done
4110 done
4111 IFS=$as_save_IFS
4112 if test -z "$ac_cv_path_SED"; then
4113 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4114 fi
4115 else
4116 ac_cv_path_SED=$SED
4117 fi
4118
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4121 $as_echo "$ac_cv_path_SED" >&6; }
4122 SED="$ac_cv_path_SED"
4123 rm -f conftest.sed
4124
4125 test -z "$SED" && SED=sed
4126 Xsed="$SED -e 1s/^X//"
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4139 $as_echo_n "checking for fgrep... " >&6; }
4140 if ${ac_cv_path_FGREP+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4144 then ac_cv_path_FGREP="$GREP -F"
4145 else
4146 if test -z "$FGREP"; then
4147 ac_path_FGREP_found=false
4148 # Loop through the user's path and test for each of PROGNAME-LIST
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4151 do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_prog in fgrep; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4157 as_fn_executable_p "$ac_path_FGREP" || continue
4158 # Check for GNU ac_path_FGREP and select it if it is found.
4159 # Check for GNU $ac_path_FGREP
4160 case `"$ac_path_FGREP" --version 2>&1` in
4161 *GNU*)
4162 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4163 *)
4164 ac_count=0
4165 $as_echo_n 0123456789 >"conftest.in"
4166 while :
4167 do
4168 cat "conftest.in" "conftest.in" >"conftest.tmp"
4169 mv "conftest.tmp" "conftest.in"
4170 cp "conftest.in" "conftest.nl"
4171 $as_echo 'FGREP' >> "conftest.nl"
4172 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174 as_fn_arith $ac_count + 1 && ac_count=$as_val
4175 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4176 # Best one so far, save it but keep looking for a better one
4177 ac_cv_path_FGREP="$ac_path_FGREP"
4178 ac_path_FGREP_max=$ac_count
4179 fi
4180 # 10*(2^10) chars as input seems more than enough
4181 test $ac_count -gt 10 && break
4182 done
4183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184 esac
4185
4186 $ac_path_FGREP_found && break 3
4187 done
4188 done
4189 done
4190 IFS=$as_save_IFS
4191 if test -z "$ac_cv_path_FGREP"; then
4192 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4193 fi
4194 else
4195 ac_cv_path_FGREP=$FGREP
4196 fi
4197
4198 fi
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4201 $as_echo "$ac_cv_path_FGREP" >&6; }
4202 FGREP="$ac_cv_path_FGREP"
4203
4204
4205 test -z "$GREP" && GREP=grep
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225 # Check whether --with-gnu-ld was given.
4226 if test "${with_gnu_ld+set}" = set; then :
4227 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4228 else
4229 with_gnu_ld=no
4230 fi
4231
4232 ac_prog=ld
4233 if test yes = "$GCC"; then
4234 # Check if gcc -print-prog-name=ld gives a path.
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4236 $as_echo_n "checking for ld used by $CC... " >&6; }
4237 case $host in
4238 *-*-mingw*)
4239 # gcc leaves a trailing carriage return, which upsets mingw
4240 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4241 *)
4242 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4243 esac
4244 case $ac_prog in
4245 # Accept absolute paths.
4246 [\\/]* | ?:[\\/]*)
4247 re_direlt='/[^/][^/]*/\.\./'
4248 # Canonicalize the pathname of ld
4249 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4250 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4251 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4252 done
4253 test -z "$LD" && LD=$ac_prog
4254 ;;
4255 "")
4256 # If it fails, then pretend we aren't using GCC.
4257 ac_prog=ld
4258 ;;
4259 *)
4260 # If it is relative, then search for the first ld in PATH.
4261 with_gnu_ld=unknown
4262 ;;
4263 esac
4264 elif test yes = "$with_gnu_ld"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4266 $as_echo_n "checking for GNU ld... " >&6; }
4267 else
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4269 $as_echo_n "checking for non-GNU ld... " >&6; }
4270 fi
4271 if ${lt_cv_path_LD+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if test -z "$LD"; then
4275 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4276 for ac_dir in $PATH; do
4277 IFS=$lt_save_ifs
4278 test -z "$ac_dir" && ac_dir=.
4279 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4280 lt_cv_path_LD=$ac_dir/$ac_prog
4281 # Check to see if the program is GNU ld. I'd rather use --version,
4282 # but apparently some variants of GNU ld only accept -v.
4283 # Break only if it was the GNU/non-GNU ld that we prefer.
4284 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4285 *GNU* | *'with BFD'*)
4286 test no != "$with_gnu_ld" && break
4287 ;;
4288 *)
4289 test yes != "$with_gnu_ld" && break
4290 ;;
4291 esac
4292 fi
4293 done
4294 IFS=$lt_save_ifs
4295 else
4296 lt_cv_path_LD=$LD # Let the user override the test with a path.
4297 fi
4298 fi
4299
4300 LD=$lt_cv_path_LD
4301 if test -n "$LD"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4303 $as_echo "$LD" >&6; }
4304 else
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 fi
4308 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4310 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4311 if ${lt_cv_prog_gnu_ld+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4315 case `$LD -v 2>&1 </dev/null` in
4316 *GNU* | *'with BFD'*)
4317 lt_cv_prog_gnu_ld=yes
4318 ;;
4319 *)
4320 lt_cv_prog_gnu_ld=no
4321 ;;
4322 esac
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4325 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4326 with_gnu_ld=$lt_cv_prog_gnu_ld
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4337 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4338 if ${lt_cv_path_NM+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -n "$NM"; then
4342 # Let the user override the test.
4343 lt_cv_path_NM=$NM
4344 else
4345 lt_nm_to_check=${ac_tool_prefix}nm
4346 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4347 lt_nm_to_check="$lt_nm_to_check nm"
4348 fi
4349 for lt_tmp_nm in $lt_nm_to_check; do
4350 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4351 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4352 IFS=$lt_save_ifs
4353 test -z "$ac_dir" && ac_dir=.
4354 tmp_nm=$ac_dir/$lt_tmp_nm
4355 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4356 # Check to see if the nm accepts a BSD-compat flag.
4357 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4358 # nm: unknown option "B" ignored
4359 # Tru64's nm complains that /dev/null is an invalid object file
4360 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4361 case $build_os in
4362 mingw*) lt_bad_file=conftest.nm/nofile ;;
4363 *) lt_bad_file=/dev/null ;;
4364 esac
4365 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4366 *$lt_bad_file* | *'Invalid file or object type'*)
4367 lt_cv_path_NM="$tmp_nm -B"
4368 break 2
4369 ;;
4370 *)
4371 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4372 */dev/null*)
4373 lt_cv_path_NM="$tmp_nm -p"
4374 break 2
4375 ;;
4376 *)
4377 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4378 continue # so that we can try to find one that supports BSD flags
4379 ;;
4380 esac
4381 ;;
4382 esac
4383 fi
4384 done
4385 IFS=$lt_save_ifs
4386 done
4387 : ${lt_cv_path_NM=no}
4388 fi
4389 fi
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4391 $as_echo "$lt_cv_path_NM" >&6; }
4392 if test no != "$lt_cv_path_NM"; then
4393 NM=$lt_cv_path_NM
4394 else
4395 # Didn't find any BSD compatible name lister, look for dumpbin.
4396 if test -n "$DUMPBIN"; then :
4397 # Let the user override the test.
4398 else
4399 if test -n "$ac_tool_prefix"; then
4400 for ac_prog in dumpbin "link -dump"
4401 do
4402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_prog_DUMPBIN+:} false; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if test -n "$DUMPBIN"; then
4410 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4422 fi
4423 done
4424 done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 DUMPBIN=$ac_cv_prog_DUMPBIN
4430 if test -n "$DUMPBIN"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4432 $as_echo "$DUMPBIN" >&6; }
4433 else
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438
4439 test -n "$DUMPBIN" && break
4440 done
4441 fi
4442 if test -z "$DUMPBIN"; then
4443 ac_ct_DUMPBIN=$DUMPBIN
4444 for ac_prog in dumpbin "link -dump"
4445 do
4446 # Extract the first word of "$ac_prog", so it can be a program name with args.
4447 set dummy $ac_prog; ac_word=$2
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449 $as_echo_n "checking for $ac_word... " >&6; }
4450 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 if test -n "$ac_ct_DUMPBIN"; then
4454 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4466 fi
4467 done
4468 done
4469 IFS=$as_save_IFS
4470
4471 fi
4472 fi
4473 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4474 if test -n "$ac_ct_DUMPBIN"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4476 $as_echo "$ac_ct_DUMPBIN" >&6; }
4477 else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4480 fi
4481
4482
4483 test -n "$ac_ct_DUMPBIN" && break
4484 done
4485
4486 if test "x$ac_ct_DUMPBIN" = x; then
4487 DUMPBIN=":"
4488 else
4489 case $cross_compiling:$ac_tool_warned in
4490 yes:)
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4493 ac_tool_warned=yes ;;
4494 esac
4495 DUMPBIN=$ac_ct_DUMPBIN
4496 fi
4497 fi
4498
4499 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4500 *COFF*)
4501 DUMPBIN="$DUMPBIN -symbols -headers"
4502 ;;
4503 *)
4504 DUMPBIN=:
4505 ;;
4506 esac
4507 fi
4508
4509 if test : != "$DUMPBIN"; then
4510 NM=$DUMPBIN
4511 fi
4512 fi
4513 test -z "$NM" && NM=nm
4514
4515
4516
4517
4518
4519
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4521 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4522 if ${lt_cv_nm_interface+:} false; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 lt_cv_nm_interface="BSD nm"
4526 echo "int some_variable = 0;" > conftest.$ac_ext
4527 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4528 (eval "$ac_compile" 2>conftest.err)
4529 cat conftest.err >&5
4530 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4531 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4532 cat conftest.err >&5
4533 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4534 cat conftest.out >&5
4535 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4536 lt_cv_nm_interface="MS dumpbin"
4537 fi
4538 rm -f conftest*
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4541 $as_echo "$lt_cv_nm_interface" >&6; }
4542
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4544 $as_echo_n "checking whether ln -s works... " >&6; }
4545 LN_S=$as_ln_s
4546 if test "$LN_S" = "ln -s"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4548 $as_echo "yes" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4551 $as_echo "no, using $LN_S" >&6; }
4552 fi
4553
4554 # find the maximum length of command line arguments
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4556 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4557 if ${lt_cv_sys_max_cmd_len+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 i=0
4561 teststring=ABCD
4562
4563 case $build_os in
4564 msdosdjgpp*)
4565 # On DJGPP, this test can blow up pretty badly due to problems in libc
4566 # (any single argument exceeding 2000 bytes causes a buffer overrun
4567 # during glob expansion). Even if it were fixed, the result of this
4568 # check would be larger than it should be.
4569 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4570 ;;
4571
4572 gnu*)
4573 # Under GNU Hurd, this test is not required because there is
4574 # no limit to the length of command line arguments.
4575 # Libtool will interpret -1 as no limit whatsoever
4576 lt_cv_sys_max_cmd_len=-1;
4577 ;;
4578
4579 cygwin* | mingw* | cegcc*)
4580 # On Win9x/ME, this test blows up -- it succeeds, but takes
4581 # about 5 minutes as the teststring grows exponentially.
4582 # Worse, since 9x/ME are not pre-emptively multitasking,
4583 # you end up with a "frozen" computer, even though with patience
4584 # the test eventually succeeds (with a max line length of 256k).
4585 # Instead, let's just punt: use the minimum linelength reported by
4586 # all of the supported platforms: 8192 (on NT/2K/XP).
4587 lt_cv_sys_max_cmd_len=8192;
4588 ;;
4589
4590 mint*)
4591 # On MiNT this can take a long time and run out of memory.
4592 lt_cv_sys_max_cmd_len=8192;
4593 ;;
4594
4595 amigaos*)
4596 # On AmigaOS with pdksh, this test takes hours, literally.
4597 # So we just punt and use a minimum line length of 8192.
4598 lt_cv_sys_max_cmd_len=8192;
4599 ;;
4600
4601 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4602 # This has been around since 386BSD, at least. Likely further.
4603 if test -x /sbin/sysctl; then
4604 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4605 elif test -x /usr/sbin/sysctl; then
4606 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4607 else
4608 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4609 fi
4610 # And add a safety zone
4611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4613 ;;
4614
4615 interix*)
4616 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4617 lt_cv_sys_max_cmd_len=196608
4618 ;;
4619
4620 os2*)
4621 # The test takes a long time on OS/2.
4622 lt_cv_sys_max_cmd_len=8192
4623 ;;
4624
4625 osf*)
4626 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4627 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4628 # nice to cause kernel panics so lets avoid the loop below.
4629 # First set a reasonable default.
4630 lt_cv_sys_max_cmd_len=16384
4631 #
4632 if test -x /sbin/sysconfig; then
4633 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4634 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4635 esac
4636 fi
4637 ;;
4638 sco3.2v5*)
4639 lt_cv_sys_max_cmd_len=102400
4640 ;;
4641 sysv5* | sco5v6* | sysv4.2uw2*)
4642 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4643 if test -n "$kargmax"; then
4644 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4645 else
4646 lt_cv_sys_max_cmd_len=32768
4647 fi
4648 ;;
4649 *)
4650 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4651 if test -n "$lt_cv_sys_max_cmd_len" && \
4652 test undefined != "$lt_cv_sys_max_cmd_len"; then
4653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4655 else
4656 # Make teststring a little bigger before we do anything with it.
4657 # a 1K string should be a reasonable start.
4658 for i in 1 2 3 4 5 6 7 8; do
4659 teststring=$teststring$teststring
4660 done
4661 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4662 # If test is not a shell built-in, we'll probably end up computing a
4663 # maximum length that is only half of the actual maximum length, but
4664 # we can't tell.
4665 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4666 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4667 test 17 != "$i" # 1/2 MB should be enough
4668 do
4669 i=`expr $i + 1`
4670 teststring=$teststring$teststring
4671 done
4672 # Only check the string length outside the loop.
4673 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4674 teststring=
4675 # Add a significant safety factor because C++ compilers can tack on
4676 # massive amounts of additional arguments before passing them to the
4677 # linker. It appears as though 1/2 is a usable value.
4678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4679 fi
4680 ;;
4681 esac
4682
4683 fi
4684
4685 if test -n "$lt_cv_sys_max_cmd_len"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4687 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4688 else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4690 $as_echo "none" >&6; }
4691 fi
4692 max_cmd_len=$lt_cv_sys_max_cmd_len
4693
4694
4695
4696
4697
4698
4699 : ${CP="cp -f"}
4700 : ${MV="mv -f"}
4701 : ${RM="rm -f"}
4702
4703 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4704 lt_unset=unset
4705 else
4706 lt_unset=false
4707 fi
4708
4709
4710
4711
4712
4713 # test EBCDIC or ASCII
4714 case `echo X|tr X '\101'` in
4715 A) # ASCII based system
4716 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4717 lt_SP2NL='tr \040 \012'
4718 lt_NL2SP='tr \015\012 \040\040'
4719 ;;
4720 *) # EBCDIC based system
4721 lt_SP2NL='tr \100 \n'
4722 lt_NL2SP='tr \r\n \100\100'
4723 ;;
4724 esac
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4735 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4736 if ${lt_cv_to_host_file_cmd+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 case $host in
4740 *-*-mingw* )
4741 case $build in
4742 *-*-mingw* ) # actually msys
4743 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4744 ;;
4745 *-*-cygwin* )
4746 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4747 ;;
4748 * ) # otherwise, assume *nix
4749 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4750 ;;
4751 esac
4752 ;;
4753 *-*-cygwin* )
4754 case $build in
4755 *-*-mingw* ) # actually msys
4756 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4757 ;;
4758 *-*-cygwin* )
4759 lt_cv_to_host_file_cmd=func_convert_file_noop
4760 ;;
4761 * ) # otherwise, assume *nix
4762 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4763 ;;
4764 esac
4765 ;;
4766 * ) # unhandled hosts (and "normal" native builds)
4767 lt_cv_to_host_file_cmd=func_convert_file_noop
4768 ;;
4769 esac
4770
4771 fi
4772
4773 to_host_file_cmd=$lt_cv_to_host_file_cmd
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4775 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4776
4777
4778
4779
4780
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4782 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4783 if ${lt_cv_to_tool_file_cmd+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 #assume ordinary cross tools, or native build.
4787 lt_cv_to_tool_file_cmd=func_convert_file_noop
4788 case $host in
4789 *-*-mingw* )
4790 case $build in
4791 *-*-mingw* ) # actually msys
4792 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4793 ;;
4794 esac
4795 ;;
4796 esac
4797
4798 fi
4799
4800 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4802 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4803
4804
4805
4806
4807
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4809 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4810 if ${lt_cv_ld_reload_flag+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 lt_cv_ld_reload_flag='-r'
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4816 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4817 reload_flag=$lt_cv_ld_reload_flag
4818 case $reload_flag in
4819 "" | " "*) ;;
4820 *) reload_flag=" $reload_flag" ;;
4821 esac
4822 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4823 case $host_os in
4824 cygwin* | mingw* | pw32* | cegcc*)
4825 if test yes != "$GCC"; then
4826 reload_cmds=false
4827 fi
4828 ;;
4829 darwin*)
4830 if test yes = "$GCC"; then
4831 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4832 else
4833 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4834 fi
4835 ;;
4836 esac
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846 if test -n "$ac_tool_prefix"; then
4847 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4848 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 $as_echo_n "checking for $ac_word... " >&6; }
4851 if ${ac_cv_prog_OBJDUMP+:} false; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 if test -n "$OBJDUMP"; then
4855 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4867 fi
4868 done
4869 done
4870 IFS=$as_save_IFS
4871
4872 fi
4873 fi
4874 OBJDUMP=$ac_cv_prog_OBJDUMP
4875 if test -n "$OBJDUMP"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4877 $as_echo "$OBJDUMP" >&6; }
4878 else
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4881 fi
4882
4883
4884 fi
4885 if test -z "$ac_cv_prog_OBJDUMP"; then
4886 ac_ct_OBJDUMP=$OBJDUMP
4887 # Extract the first word of "objdump", so it can be a program name with args.
4888 set dummy objdump; ac_word=$2
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890 $as_echo_n "checking for $ac_word... " >&6; }
4891 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 if test -n "$ac_ct_OBJDUMP"; then
4895 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4899 do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4904 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 break 2
4907 fi
4908 done
4909 done
4910 IFS=$as_save_IFS
4911
4912 fi
4913 fi
4914 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4915 if test -n "$ac_ct_OBJDUMP"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4917 $as_echo "$ac_ct_OBJDUMP" >&6; }
4918 else
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 $as_echo "no" >&6; }
4921 fi
4922
4923 if test "x$ac_ct_OBJDUMP" = x; then
4924 OBJDUMP="false"
4925 else
4926 case $cross_compiling:$ac_tool_warned in
4927 yes:)
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4930 ac_tool_warned=yes ;;
4931 esac
4932 OBJDUMP=$ac_ct_OBJDUMP
4933 fi
4934 else
4935 OBJDUMP="$ac_cv_prog_OBJDUMP"
4936 fi
4937
4938 test -z "$OBJDUMP" && OBJDUMP=objdump
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4949 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4950 if ${lt_cv_deplibs_check_method+:} false; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 lt_cv_file_magic_cmd='$MAGIC_CMD'
4954 lt_cv_file_magic_test_file=
4955 lt_cv_deplibs_check_method='unknown'
4956 # Need to set the preceding variable on all platforms that support
4957 # interlibrary dependencies.
4958 # 'none' -- dependencies not supported.
4959 # 'unknown' -- same as none, but documents that we really don't know.
4960 # 'pass_all' -- all dependencies passed with no checks.
4961 # 'test_compile' -- check by making test program.
4962 # 'file_magic [[regex]]' -- check by looking for files in library path
4963 # that responds to the $file_magic_cmd with a given extended regex.
4964 # If you have 'file' or equivalent on your system and you're not sure
4965 # whether 'pass_all' will *always* work, you probably want this one.
4966
4967 case $host_os in
4968 aix[4-9]*)
4969 lt_cv_deplibs_check_method=pass_all
4970 ;;
4971
4972 beos*)
4973 lt_cv_deplibs_check_method=pass_all
4974 ;;
4975
4976 bsdi[45]*)
4977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4978 lt_cv_file_magic_cmd='/usr/bin/file -L'
4979 lt_cv_file_magic_test_file=/shlib/libc.so
4980 ;;
4981
4982 cygwin*)
4983 # func_win32_libid is a shell function defined in ltmain.sh
4984 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4985 lt_cv_file_magic_cmd='func_win32_libid'
4986 ;;
4987
4988 mingw* | pw32*)
4989 # Base MSYS/MinGW do not provide the 'file' command needed by
4990 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4991 # unless we find 'file', for example because we are cross-compiling.
4992 if ( file / ) >/dev/null 2>&1; then
4993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4994 lt_cv_file_magic_cmd='func_win32_libid'
4995 else
4996 # Keep this pattern in sync with the one in func_win32_libid.
4997 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4998 lt_cv_file_magic_cmd='$OBJDUMP -f'
4999 fi
5000 ;;
5001
5002 cegcc*)
5003 # use the weaker test based on 'objdump'. See mingw*.
5004 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5005 lt_cv_file_magic_cmd='$OBJDUMP -f'
5006 ;;
5007
5008 darwin* | rhapsody*)
5009 lt_cv_deplibs_check_method=pass_all
5010 ;;
5011
5012 freebsd* | dragonfly*)
5013 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5014 case $host_cpu in
5015 i*86 )
5016 # Not sure whether the presence of OpenBSD here was a mistake.
5017 # Let's accept both of them until this is cleared up.
5018 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5019 lt_cv_file_magic_cmd=/usr/bin/file
5020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5021 ;;
5022 esac
5023 else
5024 lt_cv_deplibs_check_method=pass_all
5025 fi
5026 ;;
5027
5028 haiku*)
5029 lt_cv_deplibs_check_method=pass_all
5030 ;;
5031
5032 hpux10.20* | hpux11*)
5033 lt_cv_file_magic_cmd=/usr/bin/file
5034 case $host_cpu in
5035 ia64*)
5036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5037 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5038 ;;
5039 hppa*64*)
5040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5041 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5042 ;;
5043 *)
5044 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5045 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5046 ;;
5047 esac
5048 ;;
5049
5050 interix[3-9]*)
5051 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5053 ;;
5054
5055 irix5* | irix6* | nonstopux*)
5056 case $LD in
5057 *-32|*"-32 ") libmagic=32-bit;;
5058 *-n32|*"-n32 ") libmagic=N32;;
5059 *-64|*"-64 ") libmagic=64-bit;;
5060 *) libmagic=never-match;;
5061 esac
5062 lt_cv_deplibs_check_method=pass_all
5063 ;;
5064
5065 # This must be glibc/ELF.
5066 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
5069
5070 netbsd*)
5071 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5073 else
5074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5075 fi
5076 ;;
5077
5078 newos6*)
5079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5080 lt_cv_file_magic_cmd=/usr/bin/file
5081 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5082 ;;
5083
5084 *nto* | *qnx*)
5085 lt_cv_deplibs_check_method=pass_all
5086 ;;
5087
5088 openbsd* | bitrig*)
5089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5091 else
5092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5093 fi
5094 ;;
5095
5096 osf3* | osf4* | osf5*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099
5100 rdos*)
5101 lt_cv_deplibs_check_method=pass_all
5102 ;;
5103
5104 solaris*)
5105 lt_cv_deplibs_check_method=pass_all
5106 ;;
5107
5108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5109 lt_cv_deplibs_check_method=pass_all
5110 ;;
5111
5112 sysv4 | sysv4.3*)
5113 case $host_vendor in
5114 motorola)
5115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5116 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5117 ;;
5118 ncr)
5119 lt_cv_deplibs_check_method=pass_all
5120 ;;
5121 sequent)
5122 lt_cv_file_magic_cmd='/bin/file'
5123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5124 ;;
5125 sni)
5126 lt_cv_file_magic_cmd='/bin/file'
5127 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5128 lt_cv_file_magic_test_file=/lib/libc.so
5129 ;;
5130 siemens)
5131 lt_cv_deplibs_check_method=pass_all
5132 ;;
5133 pc)
5134 lt_cv_deplibs_check_method=pass_all
5135 ;;
5136 esac
5137 ;;
5138
5139 tpf*)
5140 lt_cv_deplibs_check_method=pass_all
5141 ;;
5142 os2*)
5143 lt_cv_deplibs_check_method=pass_all
5144 ;;
5145 esac
5146
5147 fi
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5149 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5150
5151 file_magic_glob=
5152 want_nocaseglob=no
5153 if test "$build" = "$host"; then
5154 case $host_os in
5155 mingw* | pw32*)
5156 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5157 want_nocaseglob=yes
5158 else
5159 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5160 fi
5161 ;;
5162 esac
5163 fi
5164
5165 file_magic_cmd=$lt_cv_file_magic_cmd
5166 deplibs_check_method=$lt_cv_deplibs_check_method
5167 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190 if test -n "$ac_tool_prefix"; then
5191 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5192 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_prog_DLLTOOL+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test -n "$DLLTOOL"; then
5199 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212 done
5213 done
5214 IFS=$as_save_IFS
5215
5216 fi
5217 fi
5218 DLLTOOL=$ac_cv_prog_DLLTOOL
5219 if test -n "$DLLTOOL"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5221 $as_echo "$DLLTOOL" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5227
5228 fi
5229 if test -z "$ac_cv_prog_DLLTOOL"; then
5230 ac_ct_DLLTOOL=$DLLTOOL
5231 # Extract the first word of "dlltool", so it can be a program name with args.
5232 set dummy dlltool; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 if test -n "$ac_ct_DLLTOOL"; then
5239 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5240 else
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5243 do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5251 fi
5252 done
5253 done
5254 IFS=$as_save_IFS
5255
5256 fi
5257 fi
5258 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5259 if test -n "$ac_ct_DLLTOOL"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5261 $as_echo "$ac_ct_DLLTOOL" >&6; }
5262 else
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264 $as_echo "no" >&6; }
5265 fi
5266
5267 if test "x$ac_ct_DLLTOOL" = x; then
5268 DLLTOOL="false"
5269 else
5270 case $cross_compiling:$ac_tool_warned in
5271 yes:)
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5274 ac_tool_warned=yes ;;
5275 esac
5276 DLLTOOL=$ac_ct_DLLTOOL
5277 fi
5278 else
5279 DLLTOOL="$ac_cv_prog_DLLTOOL"
5280 fi
5281
5282 test -z "$DLLTOOL" && DLLTOOL=dlltool
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5294 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5295 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 lt_cv_sharedlib_from_linklib_cmd='unknown'
5299
5300 case $host_os in
5301 cygwin* | mingw* | pw32* | cegcc*)
5302 # two different shell functions defined in ltmain.sh;
5303 # decide which one to use based on capabilities of $DLLTOOL
5304 case `$DLLTOOL --help 2>&1` in
5305 *--identify-strict*)
5306 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5307 ;;
5308 *)
5309 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5310 ;;
5311 esac
5312 ;;
5313 *)
5314 # fallback: assume linklib IS sharedlib
5315 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5316 ;;
5317 esac
5318
5319 fi
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5321 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5322 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5323 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5324
5325
5326
5327
5328
5329
5330
5331 if test -n "$ac_tool_prefix"; then
5332 for ac_prog in ar
5333 do
5334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_AR+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 if test -n "$AR"; then
5342 ac_cv_prog_AR="$AR" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355 done
5356 done
5357 IFS=$as_save_IFS
5358
5359 fi
5360 fi
5361 AR=$ac_cv_prog_AR
5362 if test -n "$AR"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5364 $as_echo "$AR" >&6; }
5365 else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369
5370
5371 test -n "$AR" && break
5372 done
5373 fi
5374 if test -z "$AR"; then
5375 ac_ct_AR=$AR
5376 for ac_prog in ar
5377 do
5378 # Extract the first word of "$ac_prog", so it can be a program name with args.
5379 set dummy $ac_prog; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 if test -n "$ac_ct_AR"; then
5386 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_prog_ac_ct_AR="$ac_prog"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5398 fi
5399 done
5400 done
5401 IFS=$as_save_IFS
5402
5403 fi
5404 fi
5405 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5406 if test -n "$ac_ct_AR"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5408 $as_echo "$ac_ct_AR" >&6; }
5409 else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5412 fi
5413
5414
5415 test -n "$ac_ct_AR" && break
5416 done
5417
5418 if test "x$ac_ct_AR" = x; then
5419 AR="false"
5420 else
5421 case $cross_compiling:$ac_tool_warned in
5422 yes:)
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425 ac_tool_warned=yes ;;
5426 esac
5427 AR=$ac_ct_AR
5428 fi
5429 fi
5430
5431 : ${AR=ar}
5432 : ${AR_FLAGS=cru}
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5445 $as_echo_n "checking for archiver @FILE support... " >&6; }
5446 if ${lt_cv_ar_at_file+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 lt_cv_ar_at_file=no
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452
5453 int
5454 main ()
5455 {
5456
5457 ;
5458 return 0;
5459 }
5460 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"; then :
5462 echo conftest.$ac_objext > conftest.lst
5463 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5465 (eval $lt_ar_try) 2>&5
5466 ac_status=$?
5467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5468 test $ac_status = 0; }
5469 if test 0 -eq "$ac_status"; then
5470 # Ensure the archiver fails upon bogus file names.
5471 rm -f conftest.$ac_objext libconftest.a
5472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5473 (eval $lt_ar_try) 2>&5
5474 ac_status=$?
5475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5476 test $ac_status = 0; }
5477 if test 0 -ne "$ac_status"; then
5478 lt_cv_ar_at_file=@
5479 fi
5480 fi
5481 rm -f conftest.* libconftest.a
5482
5483 fi
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485
5486 fi
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5488 $as_echo "$lt_cv_ar_at_file" >&6; }
5489
5490 if test no = "$lt_cv_ar_at_file"; then
5491 archiver_list_spec=
5492 else
5493 archiver_list_spec=$lt_cv_ar_at_file
5494 fi
5495
5496
5497
5498
5499
5500
5501
5502 if test -n "$ac_tool_prefix"; then
5503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5504 set dummy ${ac_tool_prefix}strip; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_prog_STRIP+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 if test -n "$STRIP"; then
5511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524 done
5525 done
5526 IFS=$as_save_IFS
5527
5528 fi
5529 fi
5530 STRIP=$ac_cv_prog_STRIP
5531 if test -n "$STRIP"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5533 $as_echo "$STRIP" >&6; }
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538
5539
5540 fi
5541 if test -z "$ac_cv_prog_STRIP"; then
5542 ac_ct_STRIP=$STRIP
5543 # Extract the first word of "strip", so it can be a program name with args.
5544 set dummy strip; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 if test -n "$ac_ct_STRIP"; then
5551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5555 do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5560 ac_cv_prog_ac_ct_STRIP="strip"
5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5563 fi
5564 done
5565 done
5566 IFS=$as_save_IFS
5567
5568 fi
5569 fi
5570 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5571 if test -n "$ac_ct_STRIP"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5573 $as_echo "$ac_ct_STRIP" >&6; }
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5577 fi
5578
5579 if test "x$ac_ct_STRIP" = x; then
5580 STRIP=":"
5581 else
5582 case $cross_compiling:$ac_tool_warned in
5583 yes:)
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5586 ac_tool_warned=yes ;;
5587 esac
5588 STRIP=$ac_ct_STRIP
5589 fi
5590 else
5591 STRIP="$ac_cv_prog_STRIP"
5592 fi
5593
5594 test -z "$STRIP" && STRIP=:
5595
5596
5597
5598
5599
5600
5601 if test -n "$ac_tool_prefix"; then
5602 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5603 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_RANLIB+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 if test -n "$RANLIB"; then
5610 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623 done
5624 done
5625 IFS=$as_save_IFS
5626
5627 fi
5628 fi
5629 RANLIB=$ac_cv_prog_RANLIB
5630 if test -n "$RANLIB"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5632 $as_echo "$RANLIB" >&6; }
5633 else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5636 fi
5637
5638
5639 fi
5640 if test -z "$ac_cv_prog_RANLIB"; then
5641 ac_ct_RANLIB=$RANLIB
5642 # Extract the first word of "ranlib", so it can be a program name with args.
5643 set dummy ranlib; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 if test -n "$ac_ct_RANLIB"; then
5650 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_ac_ct_RANLIB="ranlib"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663 done
5664 done
5665 IFS=$as_save_IFS
5666
5667 fi
5668 fi
5669 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5670 if test -n "$ac_ct_RANLIB"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5672 $as_echo "$ac_ct_RANLIB" >&6; }
5673 else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5676 fi
5677
5678 if test "x$ac_ct_RANLIB" = x; then
5679 RANLIB=":"
5680 else
5681 case $cross_compiling:$ac_tool_warned in
5682 yes:)
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5685 ac_tool_warned=yes ;;
5686 esac
5687 RANLIB=$ac_ct_RANLIB
5688 fi
5689 else
5690 RANLIB="$ac_cv_prog_RANLIB"
5691 fi
5692
5693 test -z "$RANLIB" && RANLIB=:
5694
5695
5696
5697
5698
5699
5700 # Determine commands to create old-style static archives.
5701 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5702 old_postinstall_cmds='chmod 644 $oldlib'
5703 old_postuninstall_cmds=
5704
5705 if test -n "$RANLIB"; then
5706 case $host_os in
5707 bitrig* | openbsd*)
5708 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5709 ;;
5710 *)
5711 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5712 ;;
5713 esac
5714 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5715 fi
5716
5717 case $host_os in
5718 darwin*)
5719 lock_old_archive_extraction=yes ;;
5720 *)
5721 lock_old_archive_extraction=no ;;
5722 esac
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744 for ac_prog in gawk mawk nawk awk
5745 do
5746 # Extract the first word of "$ac_prog", so it can be a program name with args.
5747 set dummy $ac_prog; ac_word=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if ${ac_cv_prog_AWK+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 if test -n "$AWK"; then
5754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_AWK="$ac_prog"
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5766 fi
5767 done
5768 done
5769 IFS=$as_save_IFS
5770
5771 fi
5772 fi
5773 AWK=$ac_cv_prog_AWK
5774 if test -n "$AWK"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5776 $as_echo "$AWK" >&6; }
5777 else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5780 fi
5781
5782
5783 test -n "$AWK" && break
5784 done
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804 # If no C compiler was specified, use CC.
5805 LTCC=${LTCC-"$CC"}
5806
5807 # If no C compiler flags were specified, use CFLAGS.
5808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5809
5810 # Allow CC to be a program name with arguments.
5811 compiler=$CC
5812
5813
5814 # Check for command to grab the raw symbol name followed by C symbol from nm.
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5816 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5817 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820
5821 # These are sane defaults that work on at least a few old systems.
5822 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5823
5824 # Character class describing NM global symbol codes.
5825 symcode='[BCDEGRST]'
5826
5827 # Regexp to match symbols that can be accessed directly from C.
5828 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5829
5830 # Define system-specific variables.
5831 case $host_os in
5832 aix*)
5833 symcode='[BCDT]'
5834 ;;
5835 cygwin* | mingw* | pw32* | cegcc*)
5836 symcode='[ABCDGISTW]'
5837 ;;
5838 hpux*)
5839 if test ia64 = "$host_cpu"; then
5840 symcode='[ABCDEGRST]'
5841 fi
5842 ;;
5843 irix* | nonstopux*)
5844 symcode='[BCDEGRST]'
5845 ;;
5846 osf*)
5847 symcode='[BCDEGQRST]'
5848 ;;
5849 solaris*)
5850 symcode='[BDRT]'
5851 ;;
5852 sco3.2v5*)
5853 symcode='[DT]'
5854 ;;
5855 sysv4.2uw2*)
5856 symcode='[DT]'
5857 ;;
5858 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5859 symcode='[ABDT]'
5860 ;;
5861 sysv4)
5862 symcode='[DFNSTU]'
5863 ;;
5864 esac
5865
5866 # If we're using GNU nm, then use its standard symbol codes.
5867 case `$NM -V 2>&1` in
5868 *GNU* | *'with BFD'*)
5869 symcode='[ABCDGIRSTW]' ;;
5870 esac
5871
5872 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5873 # Gets list of data symbols to import.
5874 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5875 # Adjust the below global symbol transforms to fixup imported variables.
5876 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5877 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5878 lt_c_name_lib_hook="\
5879 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5880 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5881 else
5882 # Disable hooks by default.
5883 lt_cv_sys_global_symbol_to_import=
5884 lt_cdecl_hook=
5885 lt_c_name_hook=
5886 lt_c_name_lib_hook=
5887 fi
5888
5889 # Transform an extracted symbol line into a proper C declaration.
5890 # Some systems (esp. on ia64) link data and code symbols differently,
5891 # so use this general approach.
5892 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5893 $lt_cdecl_hook\
5894 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5895 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5896
5897 # Transform an extracted symbol line into symbol name and symbol address
5898 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5899 $lt_c_name_hook\
5900 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5901 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5902
5903 # Transform an extracted symbol line into symbol name with lib prefix and
5904 # symbol address.
5905 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5906 $lt_c_name_lib_hook\
5907 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5908 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5909 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5910
5911 # Handle CRLF in mingw tool chain
5912 opt_cr=
5913 case $build_os in
5914 mingw*)
5915 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5916 ;;
5917 esac
5918
5919 # Try without a prefix underscore, then with it.
5920 for ac_symprfx in "" "_"; do
5921
5922 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5923 symxfrm="\\1 $ac_symprfx\\2 \\2"
5924
5925 # Write the raw and C identifiers.
5926 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5927 # Fake it for dumpbin and say T for any non-static function,
5928 # D for any global variable and I for any imported variable.
5929 # Also find C++ and __fastcall symbols from MSVC++,
5930 # which start with @ or ?.
5931 lt_cv_sys_global_symbol_pipe="$AWK '"\
5932 " {last_section=section; section=\$ 3};"\
5933 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5934 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5935 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5936 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5937 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5938 " \$ 0!~/External *\|/{next};"\
5939 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5940 " {if(hide[section]) next};"\
5941 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5942 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5943 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5944 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5945 " ' prfx=^$ac_symprfx"
5946 else
5947 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5948 fi
5949 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5950
5951 # Check to see that the pipe works correctly.
5952 pipe_works=no
5953
5954 rm -f conftest*
5955 cat > conftest.$ac_ext <<_LT_EOF
5956 #ifdef __cplusplus
5957 extern "C" {
5958 #endif
5959 char nm_test_var;
5960 void nm_test_func(void);
5961 void nm_test_func(void){}
5962 #ifdef __cplusplus
5963 }
5964 #endif
5965 int main(){nm_test_var='a';nm_test_func();return(0);}
5966 _LT_EOF
5967
5968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5969 (eval $ac_compile) 2>&5
5970 ac_status=$?
5971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972 test $ac_status = 0; }; then
5973 # Now try to grab the symbols.
5974 nlist=conftest.nm
5975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5976 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5977 ac_status=$?
5978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5979 test $ac_status = 0; } && test -s "$nlist"; then
5980 # Try sorting and uniquifying the output.
5981 if sort "$nlist" | uniq > "$nlist"T; then
5982 mv -f "$nlist"T "$nlist"
5983 else
5984 rm -f "$nlist"T
5985 fi
5986
5987 # Make sure that we snagged all the symbols we need.
5988 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5989 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5990 cat <<_LT_EOF > conftest.$ac_ext
5991 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5992 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5993 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5994 relocations are performed -- see ld's documentation on pseudo-relocs. */
5995 # define LT_DLSYM_CONST
5996 #elif defined __osf__
5997 /* This system does not cope well with relocations in const data. */
5998 # define LT_DLSYM_CONST
5999 #else
6000 # define LT_DLSYM_CONST const
6001 #endif
6002
6003 #ifdef __cplusplus
6004 extern "C" {
6005 #endif
6006
6007 _LT_EOF
6008 # Now generate the symbol file.
6009 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6010
6011 cat <<_LT_EOF >> conftest.$ac_ext
6012
6013 /* The mapping between symbol names and symbols. */
6014 LT_DLSYM_CONST struct {
6015 const char *name;
6016 void *address;
6017 }
6018 lt__PROGRAM__LTX_preloaded_symbols[] =
6019 {
6020 { "@PROGRAM@", (void *) 0 },
6021 _LT_EOF
6022 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6023 cat <<\_LT_EOF >> conftest.$ac_ext
6024 {0, (void *) 0}
6025 };
6026
6027 /* This works around a problem in FreeBSD linker */
6028 #ifdef FREEBSD_WORKAROUND
6029 static const void *lt_preloaded_setup() {
6030 return lt__PROGRAM__LTX_preloaded_symbols;
6031 }
6032 #endif
6033
6034 #ifdef __cplusplus
6035 }
6036 #endif
6037 _LT_EOF
6038 # Now try linking the two files.
6039 mv conftest.$ac_objext conftstm.$ac_objext
6040 lt_globsym_save_LIBS=$LIBS
6041 lt_globsym_save_CFLAGS=$CFLAGS
6042 LIBS=conftstm.$ac_objext
6043 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6045 (eval $ac_link) 2>&5
6046 ac_status=$?
6047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6048 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6049 pipe_works=yes
6050 fi
6051 LIBS=$lt_globsym_save_LIBS
6052 CFLAGS=$lt_globsym_save_CFLAGS
6053 else
6054 echo "cannot find nm_test_func in $nlist" >&5
6055 fi
6056 else
6057 echo "cannot find nm_test_var in $nlist" >&5
6058 fi
6059 else
6060 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6061 fi
6062 else
6063 echo "$progname: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 fi
6066 rm -rf conftest* conftst*
6067
6068 # Do not use the global_symbol_pipe unless it works.
6069 if test yes = "$pipe_works"; then
6070 break
6071 else
6072 lt_cv_sys_global_symbol_pipe=
6073 fi
6074 done
6075
6076 fi
6077
6078 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6079 lt_cv_sys_global_symbol_to_cdecl=
6080 fi
6081 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6083 $as_echo "failed" >&6; }
6084 else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6086 $as_echo "ok" >&6; }
6087 fi
6088
6089 # Response file support.
6090 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6091 nm_file_list_spec='@'
6092 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6093 nm_file_list_spec='@'
6094 fi
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6133 $as_echo_n "checking for sysroot... " >&6; }
6134
6135 # Check whether --with-sysroot was given.
6136 if test "${with_sysroot+set}" = set; then :
6137 withval=$with_sysroot;
6138 else
6139 with_sysroot=no
6140 fi
6141
6142
6143 lt_sysroot=
6144 case $with_sysroot in #(
6145 yes)
6146 if test yes = "$GCC"; then
6147 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6148 fi
6149 ;; #(
6150 /*)
6151 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6152 ;; #(
6153 no|'')
6154 ;; #(
6155 *)
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6157 $as_echo "$with_sysroot" >&6; }
6158 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6159 ;;
6160 esac
6161
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6163 $as_echo "${lt_sysroot:-no}" >&6; }
6164
6165
6166
6167
6168
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6170 $as_echo_n "checking for a working dd... " >&6; }
6171 if ${ac_cv_path_lt_DD+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 printf 0123456789abcdef0123456789abcdef >conftest.i
6175 cat conftest.i conftest.i >conftest2.i
6176 : ${lt_DD:=$DD}
6177 if test -z "$lt_DD"; then
6178 ac_path_lt_DD_found=false
6179 # Loop through the user's path and test for each of PROGNAME-LIST
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_prog in dd; do
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6188 as_fn_executable_p "$ac_path_lt_DD" || continue
6189 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6190 cmp -s conftest.i conftest.out \
6191 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6192 fi
6193 $ac_path_lt_DD_found && break 3
6194 done
6195 done
6196 done
6197 IFS=$as_save_IFS
6198 if test -z "$ac_cv_path_lt_DD"; then
6199 :
6200 fi
6201 else
6202 ac_cv_path_lt_DD=$lt_DD
6203 fi
6204
6205 rm -f conftest.i conftest2.i conftest.out
6206 fi
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6208 $as_echo "$ac_cv_path_lt_DD" >&6; }
6209
6210
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6212 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6213 if ${lt_cv_truncate_bin+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 printf 0123456789abcdef0123456789abcdef >conftest.i
6217 cat conftest.i conftest.i >conftest2.i
6218 lt_cv_truncate_bin=
6219 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6220 cmp -s conftest.i conftest.out \
6221 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6222 fi
6223 rm -f conftest.i conftest2.i conftest.out
6224 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6225 fi
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6227 $as_echo "$lt_cv_truncate_bin" >&6; }
6228
6229
6230
6231
6232
6233
6234
6235 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6236 func_cc_basename ()
6237 {
6238 for cc_temp in $*""; do
6239 case $cc_temp in
6240 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6241 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6242 \-*) ;;
6243 *) break;;
6244 esac
6245 done
6246 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6247 }
6248
6249 # Check whether --enable-libtool-lock was given.
6250 if test "${enable_libtool_lock+set}" = set; then :
6251 enableval=$enable_libtool_lock;
6252 fi
6253
6254 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6255
6256 # Some flags need to be propagated to the compiler or linker for good
6257 # libtool support.
6258 case $host in
6259 ia64-*-hpux*)
6260 # Find out what ABI is being produced by ac_compile, and set mode
6261 # options accordingly.
6262 echo 'int i;' > conftest.$ac_ext
6263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6264 (eval $ac_compile) 2>&5
6265 ac_status=$?
6266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267 test $ac_status = 0; }; then
6268 case `/usr/bin/file conftest.$ac_objext` in
6269 *ELF-32*)
6270 HPUX_IA64_MODE=32
6271 ;;
6272 *ELF-64*)
6273 HPUX_IA64_MODE=64
6274 ;;
6275 esac
6276 fi
6277 rm -rf conftest*
6278 ;;
6279 *-*-irix6*)
6280 # Find out what ABI is being produced by ac_compile, and set linker
6281 # options accordingly.
6282 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6284 (eval $ac_compile) 2>&5
6285 ac_status=$?
6286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6287 test $ac_status = 0; }; then
6288 if test yes = "$lt_cv_prog_gnu_ld"; then
6289 case `/usr/bin/file conftest.$ac_objext` in
6290 *32-bit*)
6291 LD="${LD-ld} -melf32bsmip"
6292 ;;
6293 *N32*)
6294 LD="${LD-ld} -melf32bmipn32"
6295 ;;
6296 *64-bit*)
6297 LD="${LD-ld} -melf64bmip"
6298 ;;
6299 esac
6300 else
6301 case `/usr/bin/file conftest.$ac_objext` in
6302 *32-bit*)
6303 LD="${LD-ld} -32"
6304 ;;
6305 *N32*)
6306 LD="${LD-ld} -n32"
6307 ;;
6308 *64-bit*)
6309 LD="${LD-ld} -64"
6310 ;;
6311 esac
6312 fi
6313 fi
6314 rm -rf conftest*
6315 ;;
6316
6317 mips64*-*linux*)
6318 # Find out what ABI is being produced by ac_compile, and set linker
6319 # options accordingly.
6320 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6322 (eval $ac_compile) 2>&5
6323 ac_status=$?
6324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6325 test $ac_status = 0; }; then
6326 emul=elf
6327 case `/usr/bin/file conftest.$ac_objext` in
6328 *32-bit*)
6329 emul="${emul}32"
6330 ;;
6331 *64-bit*)
6332 emul="${emul}64"
6333 ;;
6334 esac
6335 case `/usr/bin/file conftest.$ac_objext` in
6336 *MSB*)
6337 emul="${emul}btsmip"
6338 ;;
6339 *LSB*)
6340 emul="${emul}ltsmip"
6341 ;;
6342 esac
6343 case `/usr/bin/file conftest.$ac_objext` in
6344 *N32*)
6345 emul="${emul}n32"
6346 ;;
6347 esac
6348 LD="${LD-ld} -m $emul"
6349 fi
6350 rm -rf conftest*
6351 ;;
6352
6353 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6354 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6355 # Find out what ABI is being produced by ac_compile, and set linker
6356 # options accordingly. Note that the listed cases only cover the
6357 # situations where additional linker options are needed (such as when
6358 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6359 # vice versa); the common cases where no linker options are needed do
6360 # not appear in the list.
6361 echo 'int i;' > conftest.$ac_ext
6362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6363 (eval $ac_compile) 2>&5
6364 ac_status=$?
6365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6366 test $ac_status = 0; }; then
6367 case `/usr/bin/file conftest.o` in
6368 *32-bit*)
6369 case $host in
6370 x86_64-*kfreebsd*-gnu)
6371 LD="${LD-ld} -m elf_i386_fbsd"
6372 ;;
6373 x86_64-*linux*)
6374 case `/usr/bin/file conftest.o` in
6375 *x86-64*)
6376 LD="${LD-ld} -m elf32_x86_64"
6377 ;;
6378 *)
6379 LD="${LD-ld} -m elf_i386"
6380 ;;
6381 esac
6382 ;;
6383 powerpc64le-*linux*)
6384 LD="${LD-ld} -m elf32lppclinux"
6385 ;;
6386 powerpc64-*linux*)
6387 LD="${LD-ld} -m elf32ppclinux"
6388 ;;
6389 s390x-*linux*)
6390 LD="${LD-ld} -m elf_s390"
6391 ;;
6392 sparc64-*linux*)
6393 LD="${LD-ld} -m elf32_sparc"
6394 ;;
6395 esac
6396 ;;
6397 *64-bit*)
6398 case $host in
6399 x86_64-*kfreebsd*-gnu)
6400 LD="${LD-ld} -m elf_x86_64_fbsd"
6401 ;;
6402 x86_64-*linux*)
6403 LD="${LD-ld} -m elf_x86_64"
6404 ;;
6405 powerpcle-*linux*)
6406 LD="${LD-ld} -m elf64lppc"
6407 ;;
6408 powerpc-*linux*)
6409 LD="${LD-ld} -m elf64ppc"
6410 ;;
6411 s390*-*linux*|s390*-*tpf*)
6412 LD="${LD-ld} -m elf64_s390"
6413 ;;
6414 sparc*-*linux*)
6415 LD="${LD-ld} -m elf64_sparc"
6416 ;;
6417 esac
6418 ;;
6419 esac
6420 fi
6421 rm -rf conftest*
6422 ;;
6423
6424 *-*-sco3.2v5*)
6425 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6426 SAVE_CFLAGS=$CFLAGS
6427 CFLAGS="$CFLAGS -belf"
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6429 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6430 if ${lt_cv_cc_needs_belf+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 ac_ext=c
6434 ac_cpp='$CPP $CPPFLAGS'
6435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441
6442 int
6443 main ()
6444 {
6445
6446 ;
6447 return 0;
6448 }
6449 _ACEOF
6450 if ac_fn_c_try_link "$LINENO"; then :
6451 lt_cv_cc_needs_belf=yes
6452 else
6453 lt_cv_cc_needs_belf=no
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext \
6456 conftest$ac_exeext conftest.$ac_ext
6457 ac_ext=c
6458 ac_cpp='$CPP $CPPFLAGS'
6459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6462
6463 fi
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6465 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6466 if test yes != "$lt_cv_cc_needs_belf"; then
6467 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6468 CFLAGS=$SAVE_CFLAGS
6469 fi
6470 ;;
6471 *-*solaris*)
6472 # Find out what ABI is being produced by ac_compile, and set linker
6473 # options accordingly.
6474 echo 'int i;' > conftest.$ac_ext
6475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6476 (eval $ac_compile) 2>&5
6477 ac_status=$?
6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479 test $ac_status = 0; }; then
6480 case `/usr/bin/file conftest.o` in
6481 *64-bit*)
6482 case $lt_cv_prog_gnu_ld in
6483 yes*)
6484 case $host in
6485 i?86-*-solaris*|x86_64-*-solaris*)
6486 LD="${LD-ld} -m elf_x86_64"
6487 ;;
6488 sparc*-*-solaris*)
6489 LD="${LD-ld} -m elf64_sparc"
6490 ;;
6491 esac
6492 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6493 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6494 LD=${LD-ld}_sol2
6495 fi
6496 ;;
6497 *)
6498 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6499 LD="${LD-ld} -64"
6500 fi
6501 ;;
6502 esac
6503 ;;
6504 esac
6505 fi
6506 rm -rf conftest*
6507 ;;
6508 esac
6509
6510 need_locks=$enable_libtool_lock
6511
6512 if test -n "$ac_tool_prefix"; then
6513 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6514 set dummy ${ac_tool_prefix}mt; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 if test -n "$MANIFEST_TOOL"; then
6521 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6522 else
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 for as_dir in $PATH
6525 do
6526 IFS=$as_save_IFS
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 break 2
6533 fi
6534 done
6535 done
6536 IFS=$as_save_IFS
6537
6538 fi
6539 fi
6540 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6541 if test -n "$MANIFEST_TOOL"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6543 $as_echo "$MANIFEST_TOOL" >&6; }
6544 else
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6547 fi
6548
6549
6550 fi
6551 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6552 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6553 # Extract the first word of "mt", so it can be a program name with args.
6554 set dummy mt; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 if test -n "$ac_ct_MANIFEST_TOOL"; then
6561 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6573 fi
6574 done
6575 done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6581 if test -n "$ac_ct_MANIFEST_TOOL"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6583 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6584 else
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6590 MANIFEST_TOOL=":"
6591 else
6592 case $cross_compiling:$ac_tool_warned in
6593 yes:)
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596 ac_tool_warned=yes ;;
6597 esac
6598 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6599 fi
6600 else
6601 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6602 fi
6603
6604 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6606 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6607 if ${lt_cv_path_mainfest_tool+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 lt_cv_path_mainfest_tool=no
6611 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6612 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6613 cat conftest.err >&5
6614 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6615 lt_cv_path_mainfest_tool=yes
6616 fi
6617 rm -f conftest*
6618 fi
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6620 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6621 if test yes != "$lt_cv_path_mainfest_tool"; then
6622 MANIFEST_TOOL=:
6623 fi
6624
6625
6626
6627
6628
6629
6630 case $host_os in
6631 rhapsody* | darwin*)
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test -n "$DSYMUTIL"; then
6641 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6661 if test -n "$DSYMUTIL"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6663 $as_echo "$DSYMUTIL" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669
6670 fi
6671 if test -z "$ac_cv_prog_DSYMUTIL"; then
6672 ac_ct_DSYMUTIL=$DSYMUTIL
6673 # Extract the first word of "dsymutil", so it can be a program name with args.
6674 set dummy dsymutil; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$ac_ct_DSYMUTIL"; then
6681 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6701 if test -n "$ac_ct_DSYMUTIL"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6703 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709 if test "x$ac_ct_DSYMUTIL" = x; then
6710 DSYMUTIL=":"
6711 else
6712 case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6717 esac
6718 DSYMUTIL=$ac_ct_DSYMUTIL
6719 fi
6720 else
6721 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6722 fi
6723
6724 if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_NMEDIT+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 if test -n "$NMEDIT"; then
6733 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 NMEDIT=$ac_cv_prog_NMEDIT
6753 if test -n "$NMEDIT"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6755 $as_echo "$NMEDIT" >&6; }
6756 else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761
6762 fi
6763 if test -z "$ac_cv_prog_NMEDIT"; then
6764 ac_ct_NMEDIT=$NMEDIT
6765 # Extract the first word of "nmedit", so it can be a program name with args.
6766 set dummy nmedit; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 if test -n "$ac_ct_NMEDIT"; then
6773 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786 done
6787 done
6788 IFS=$as_save_IFS
6789
6790 fi
6791 fi
6792 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6793 if test -n "$ac_ct_NMEDIT"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6795 $as_echo "$ac_ct_NMEDIT" >&6; }
6796 else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801 if test "x$ac_ct_NMEDIT" = x; then
6802 NMEDIT=":"
6803 else
6804 case $cross_compiling:$ac_tool_warned in
6805 yes:)
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6809 esac
6810 NMEDIT=$ac_ct_NMEDIT
6811 fi
6812 else
6813 NMEDIT="$ac_cv_prog_NMEDIT"
6814 fi
6815
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if ${ac_cv_prog_LIPO+:} false; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 if test -n "$LIPO"; then
6825 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 LIPO=$ac_cv_prog_LIPO
6845 if test -n "$LIPO"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6847 $as_echo "$LIPO" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853
6854 fi
6855 if test -z "$ac_cv_prog_LIPO"; then
6856 ac_ct_LIPO=$LIPO
6857 # Extract the first word of "lipo", so it can be a program name with args.
6858 set dummy lipo; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 if test -n "$ac_ct_LIPO"; then
6865 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874 ac_cv_prog_ac_ct_LIPO="lipo"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6885 if test -n "$ac_ct_LIPO"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6887 $as_echo "$ac_ct_LIPO" >&6; }
6888 else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6891 fi
6892
6893 if test "x$ac_ct_LIPO" = x; then
6894 LIPO=":"
6895 else
6896 case $cross_compiling:$ac_tool_warned in
6897 yes:)
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900 ac_tool_warned=yes ;;
6901 esac
6902 LIPO=$ac_ct_LIPO
6903 fi
6904 else
6905 LIPO="$ac_cv_prog_LIPO"
6906 fi
6907
6908 if test -n "$ac_tool_prefix"; then
6909 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6910 set dummy ${ac_tool_prefix}otool; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_OTOOL+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 if test -n "$OTOOL"; then
6917 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930 done
6931 done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 OTOOL=$ac_cv_prog_OTOOL
6937 if test -n "$OTOOL"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6939 $as_echo "$OTOOL" >&6; }
6940 else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945
6946 fi
6947 if test -z "$ac_cv_prog_OTOOL"; then
6948 ac_ct_OTOOL=$OTOOL
6949 # Extract the first word of "otool", so it can be a program name with args.
6950 set dummy otool; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$ac_ct_OTOOL"; then
6957 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966 ac_cv_prog_ac_ct_OTOOL="otool"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6977 if test -n "$ac_ct_OTOOL"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6979 $as_echo "$ac_ct_OTOOL" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985 if test "x$ac_ct_OTOOL" = x; then
6986 OTOOL=":"
6987 else
6988 case $cross_compiling:$ac_tool_warned in
6989 yes:)
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992 ac_tool_warned=yes ;;
6993 esac
6994 OTOOL=$ac_ct_OTOOL
6995 fi
6996 else
6997 OTOOL="$ac_cv_prog_OTOOL"
6998 fi
6999
7000 if test -n "$ac_tool_prefix"; then
7001 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7002 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_OTOOL64+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 if test -n "$OTOOL64"; then
7009 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022 done
7023 done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 OTOOL64=$ac_cv_prog_OTOOL64
7029 if test -n "$OTOOL64"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7031 $as_echo "$OTOOL64" >&6; }
7032 else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036
7037
7038 fi
7039 if test -z "$ac_cv_prog_OTOOL64"; then
7040 ac_ct_OTOOL64=$OTOOL64
7041 # Extract the first word of "otool64", so it can be a program name with args.
7042 set dummy otool64; ac_word=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 if test -n "$ac_ct_OTOOL64"; then
7049 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7058 ac_cv_prog_ac_ct_OTOOL64="otool64"
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7069 if test -n "$ac_ct_OTOOL64"; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7071 $as_echo "$ac_ct_OTOOL64" >&6; }
7072 else
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 $as_echo "no" >&6; }
7075 fi
7076
7077 if test "x$ac_ct_OTOOL64" = x; then
7078 OTOOL64=":"
7079 else
7080 case $cross_compiling:$ac_tool_warned in
7081 yes:)
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7084 ac_tool_warned=yes ;;
7085 esac
7086 OTOOL64=$ac_ct_OTOOL64
7087 fi
7088 else
7089 OTOOL64="$ac_cv_prog_OTOOL64"
7090 fi
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7119 $as_echo_n "checking for -single_module linker flag... " >&6; }
7120 if ${lt_cv_apple_cc_single_mod+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 lt_cv_apple_cc_single_mod=no
7124 if test -z "$LT_MULTI_MODULE"; then
7125 # By default we will add the -single_module flag. You can override
7126 # by either setting the environment variable LT_MULTI_MODULE
7127 # non-empty at configure time, or by adding -multi_module to the
7128 # link flags.
7129 rm -rf libconftest.dylib*
7130 echo "int foo(void){return 1;}" > conftest.c
7131 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7132 -dynamiclib -Wl,-single_module conftest.c" >&5
7133 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7134 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7135 _lt_result=$?
7136 # If there is a non-empty error log, and "single_module"
7137 # appears in it, assume the flag caused a linker warning
7138 if test -s conftest.err && $GREP single_module conftest.err; then
7139 cat conftest.err >&5
7140 # Otherwise, if the output was created with a 0 exit code from
7141 # the compiler, it worked.
7142 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7143 lt_cv_apple_cc_single_mod=yes
7144 else
7145 cat conftest.err >&5
7146 fi
7147 rm -rf libconftest.dylib*
7148 rm -f conftest.*
7149 fi
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7152 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7153
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7155 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7156 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 lt_cv_ld_exported_symbols_list=no
7160 save_LDFLAGS=$LDFLAGS
7161 echo "_main" > conftest.sym
7162 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165
7166 int
7167 main ()
7168 {
7169
7170 ;
7171 return 0;
7172 }
7173 _ACEOF
7174 if ac_fn_c_try_link "$LINENO"; then :
7175 lt_cv_ld_exported_symbols_list=yes
7176 else
7177 lt_cv_ld_exported_symbols_list=no
7178 fi
7179 rm -f core conftest.err conftest.$ac_objext \
7180 conftest$ac_exeext conftest.$ac_ext
7181 LDFLAGS=$save_LDFLAGS
7182
7183 fi
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7185 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7186
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7188 $as_echo_n "checking for -force_load linker flag... " >&6; }
7189 if ${lt_cv_ld_force_load+:} false; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 lt_cv_ld_force_load=no
7193 cat > conftest.c << _LT_EOF
7194 int forced_loaded() { return 2;}
7195 _LT_EOF
7196 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7197 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7198 echo "$AR cru libconftest.a conftest.o" >&5
7199 $AR cru libconftest.a conftest.o 2>&5
7200 echo "$RANLIB libconftest.a" >&5
7201 $RANLIB libconftest.a 2>&5
7202 cat > conftest.c << _LT_EOF
7203 int main() { return 0;}
7204 _LT_EOF
7205 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7206 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7207 _lt_result=$?
7208 if test -s conftest.err && $GREP force_load conftest.err; then
7209 cat conftest.err >&5
7210 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7211 lt_cv_ld_force_load=yes
7212 else
7213 cat conftest.err >&5
7214 fi
7215 rm -f conftest.err libconftest.a conftest conftest.c
7216 rm -rf conftest.dSYM
7217
7218 fi
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7220 $as_echo "$lt_cv_ld_force_load" >&6; }
7221 case $host_os in
7222 rhapsody* | darwin1.[012])
7223 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7224 darwin1.*)
7225 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7226 darwin*) # darwin 5.x on
7227 # if running on 10.5 or later, the deployment target defaults
7228 # to the OS version, if on x86, and 10.4, the deployment
7229 # target defaults to 10.4. Don't you love it?
7230 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7231 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7232 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7233 10.[012][,.]*)
7234 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7235 10.*)
7236 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7237 esac
7238 ;;
7239 esac
7240 if test yes = "$lt_cv_apple_cc_single_mod"; then
7241 _lt_dar_single_mod='$single_module'
7242 fi
7243 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7244 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7245 else
7246 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7247 fi
7248 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7249 _lt_dsymutil='~$DSYMUTIL $lib || :'
7250 else
7251 _lt_dsymutil=
7252 fi
7253 ;;
7254 esac
7255
7256 # func_munge_path_list VARIABLE PATH
7257 # -----------------------------------
7258 # VARIABLE is name of variable containing _space_ separated list of
7259 # directories to be munged by the contents of PATH, which is string
7260 # having a format:
7261 # "DIR[:DIR]:"
7262 # string "DIR[ DIR]" will be prepended to VARIABLE
7263 # ":DIR[:DIR]"
7264 # string "DIR[ DIR]" will be appended to VARIABLE
7265 # "DIRP[:DIRP]::[DIRA:]DIRA"
7266 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7267 # "DIRA[ DIRA]" will be appended to VARIABLE
7268 # "DIR[:DIR]"
7269 # VARIABLE will be replaced by "DIR[ DIR]"
7270 func_munge_path_list ()
7271 {
7272 case x$2 in
7273 x)
7274 ;;
7275 *:)
7276 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7277 ;;
7278 x:*)
7279 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7280 ;;
7281 *::*)
7282 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7283 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7284 ;;
7285 *)
7286 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7287 ;;
7288 esac
7289 }
7290
7291 for ac_header in dlfcn.h
7292 do :
7293 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7294 "
7295 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7296 cat >>confdefs.h <<_ACEOF
7297 #define HAVE_DLFCN_H 1
7298 _ACEOF
7299
7300 fi
7301
7302 done
7303
7304
7305
7306
7307
7308 # Set options
7309
7310
7311
7312 enable_dlopen=no
7313
7314
7315 enable_win32_dll=no
7316
7317
7318 # Check whether --enable-shared was given.
7319 if test "${enable_shared+set}" = set; then :
7320 enableval=$enable_shared; p=${PACKAGE-default}
7321 case $enableval in
7322 yes) enable_shared=yes ;;
7323 no) enable_shared=no ;;
7324 *)
7325 enable_shared=no
7326 # Look at the argument we got. We use all the common list separators.
7327 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7328 for pkg in $enableval; do
7329 IFS=$lt_save_ifs
7330 if test "X$pkg" = "X$p"; then
7331 enable_shared=yes
7332 fi
7333 done
7334 IFS=$lt_save_ifs
7335 ;;
7336 esac
7337 else
7338 enable_shared=yes
7339 fi
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349 # Check whether --enable-static was given.
7350 if test "${enable_static+set}" = set; then :
7351 enableval=$enable_static; p=${PACKAGE-default}
7352 case $enableval in
7353 yes) enable_static=yes ;;
7354 no) enable_static=no ;;
7355 *)
7356 enable_static=no
7357 # Look at the argument we got. We use all the common list separators.
7358 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7359 for pkg in $enableval; do
7360 IFS=$lt_save_ifs
7361 if test "X$pkg" = "X$p"; then
7362 enable_static=yes
7363 fi
7364 done
7365 IFS=$lt_save_ifs
7366 ;;
7367 esac
7368 else
7369 enable_static=yes
7370 fi
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381 # Check whether --with-pic was given.
7382 if test "${with_pic+set}" = set; then :
7383 withval=$with_pic; lt_p=${PACKAGE-default}
7384 case $withval in
7385 yes|no) pic_mode=$withval ;;
7386 *)
7387 pic_mode=default
7388 # Look at the argument we got. We use all the common list separators.
7389 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7390 for lt_pkg in $withval; do
7391 IFS=$lt_save_ifs
7392 if test "X$lt_pkg" = "X$lt_p"; then
7393 pic_mode=yes
7394 fi
7395 done
7396 IFS=$lt_save_ifs
7397 ;;
7398 esac
7399 else
7400 pic_mode=default
7401 fi
7402
7403
7404
7405
7406
7407
7408
7409
7410 # Check whether --enable-fast-install was given.
7411 if test "${enable_fast_install+set}" = set; then :
7412 enableval=$enable_fast_install; p=${PACKAGE-default}
7413 case $enableval in
7414 yes) enable_fast_install=yes ;;
7415 no) enable_fast_install=no ;;
7416 *)
7417 enable_fast_install=no
7418 # Look at the argument we got. We use all the common list separators.
7419 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7420 for pkg in $enableval; do
7421 IFS=$lt_save_ifs
7422 if test "X$pkg" = "X$p"; then
7423 enable_fast_install=yes
7424 fi
7425 done
7426 IFS=$lt_save_ifs
7427 ;;
7428 esac
7429 else
7430 enable_fast_install=yes
7431 fi
7432
7433
7434
7435
7436
7437
7438
7439
7440 shared_archive_member_spec=
7441 case $host,$enable_shared in
7442 power*-*-aix[5-9]*,yes)
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7444 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7445
7446 # Check whether --with-aix-soname was given.
7447 if test "${with_aix_soname+set}" = set; then :
7448 withval=$with_aix_soname; case $withval in
7449 aix|svr4|both)
7450 ;;
7451 *)
7452 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7453 ;;
7454 esac
7455 lt_cv_with_aix_soname=$with_aix_soname
7456 else
7457 if ${lt_cv_with_aix_soname+:} false; then :
7458 $as_echo_n "(cached) " >&6
7459 else
7460 lt_cv_with_aix_soname=aix
7461 fi
7462
7463 with_aix_soname=$lt_cv_with_aix_soname
7464 fi
7465
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7467 $as_echo "$with_aix_soname" >&6; }
7468 if test aix != "$with_aix_soname"; then
7469 # For the AIX way of multilib, we name the shared archive member
7470 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7471 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7472 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7473 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7474 if test 64 = "${OBJECT_MODE-32}"; then
7475 shared_archive_member_spec=shr_64
7476 else
7477 shared_archive_member_spec=shr
7478 fi
7479 fi
7480 ;;
7481 *)
7482 with_aix_soname=aix
7483 ;;
7484 esac
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495 # This can be used to rebuild libtool when needed
7496 LIBTOOL_DEPS=$ltmain
7497
7498 # Always use our own libtool.
7499 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530 test -z "$LN_S" && LN_S="ln -s"
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545 if test -n "${ZSH_VERSION+set}"; then
7546 setopt NO_GLOB_SUBST
7547 fi
7548
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7550 $as_echo_n "checking for objdir... " >&6; }
7551 if ${lt_cv_objdir+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 rm -f .libs 2>/dev/null
7555 mkdir .libs 2>/dev/null
7556 if test -d .libs; then
7557 lt_cv_objdir=.libs
7558 else
7559 # MS-DOS does not allow filenames that begin with a dot.
7560 lt_cv_objdir=_libs
7561 fi
7562 rmdir .libs 2>/dev/null
7563 fi
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7565 $as_echo "$lt_cv_objdir" >&6; }
7566 objdir=$lt_cv_objdir
7567
7568
7569
7570
7571
7572 cat >>confdefs.h <<_ACEOF
7573 #define LT_OBJDIR "$lt_cv_objdir/"
7574 _ACEOF
7575
7576
7577
7578
7579 case $host_os in
7580 aix3*)
7581 # AIX sometimes has problems with the GCC collect2 program. For some
7582 # reason, if we set the COLLECT_NAMES environment variable, the problems
7583 # vanish in a puff of smoke.
7584 if test set != "${COLLECT_NAMES+set}"; then
7585 COLLECT_NAMES=
7586 export COLLECT_NAMES
7587 fi
7588 ;;
7589 esac
7590
7591 # Global variables:
7592 ofile=libtool
7593 can_build_shared=yes
7594
7595 # All known linkers require a '.a' archive for static linking (except MSVC,
7596 # which needs '.lib').
7597 libext=a
7598
7599 with_gnu_ld=$lt_cv_prog_gnu_ld
7600
7601 old_CC=$CC
7602 old_CFLAGS=$CFLAGS
7603
7604 # Set sane defaults for various variables
7605 test -z "$CC" && CC=cc
7606 test -z "$LTCC" && LTCC=$CC
7607 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7608 test -z "$LD" && LD=ld
7609 test -z "$ac_objext" && ac_objext=o
7610
7611 func_cc_basename $compiler
7612 cc_basename=$func_cc_basename_result
7613
7614
7615 # Only perform the check for file, if the check method requires it
7616 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7617 case $deplibs_check_method in
7618 file_magic*)
7619 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7621 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7622 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 case $MAGIC_CMD in
7626 [\\/*] | ?:[\\/]*)
7627 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7628 ;;
7629 *)
7630 lt_save_MAGIC_CMD=$MAGIC_CMD
7631 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7632 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7633 for ac_dir in $ac_dummy; do
7634 IFS=$lt_save_ifs
7635 test -z "$ac_dir" && ac_dir=.
7636 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7637 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7638 if test -n "$file_magic_test_file"; then
7639 case $deplibs_check_method in
7640 "file_magic "*)
7641 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7642 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7643 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7644 $EGREP "$file_magic_regex" > /dev/null; then
7645 :
7646 else
7647 cat <<_LT_EOF 1>&2
7648
7649 *** Warning: the command libtool uses to detect shared libraries,
7650 *** $file_magic_cmd, produces output that libtool cannot recognize.
7651 *** The result is that libtool may fail to recognize shared libraries
7652 *** as such. This will affect the creation of libtool libraries that
7653 *** depend on shared libraries, but programs linked with such libtool
7654 *** libraries will work regardless of this problem. Nevertheless, you
7655 *** may want to report the problem to your system manager and/or to
7656 *** bug-libtool (at] gnu.org
7657
7658 _LT_EOF
7659 fi ;;
7660 esac
7661 fi
7662 break
7663 fi
7664 done
7665 IFS=$lt_save_ifs
7666 MAGIC_CMD=$lt_save_MAGIC_CMD
7667 ;;
7668 esac
7669 fi
7670
7671 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7672 if test -n "$MAGIC_CMD"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7674 $as_echo "$MAGIC_CMD" >&6; }
7675 else
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7678 fi
7679
7680
7681
7682
7683
7684 if test -z "$lt_cv_path_MAGIC_CMD"; then
7685 if test -n "$ac_tool_prefix"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7687 $as_echo_n "checking for file... " >&6; }
7688 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691 case $MAGIC_CMD in
7692 [\\/*] | ?:[\\/]*)
7693 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7694 ;;
7695 *)
7696 lt_save_MAGIC_CMD=$MAGIC_CMD
7697 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7698 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7699 for ac_dir in $ac_dummy; do
7700 IFS=$lt_save_ifs
7701 test -z "$ac_dir" && ac_dir=.
7702 if test -f "$ac_dir/file"; then
7703 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7704 if test -n "$file_magic_test_file"; then
7705 case $deplibs_check_method in
7706 "file_magic "*)
7707 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7708 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7709 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7710 $EGREP "$file_magic_regex" > /dev/null; then
7711 :
7712 else
7713 cat <<_LT_EOF 1>&2
7714
7715 *** Warning: the command libtool uses to detect shared libraries,
7716 *** $file_magic_cmd, produces output that libtool cannot recognize.
7717 *** The result is that libtool may fail to recognize shared libraries
7718 *** as such. This will affect the creation of libtool libraries that
7719 *** depend on shared libraries, but programs linked with such libtool
7720 *** libraries will work regardless of this problem. Nevertheless, you
7721 *** may want to report the problem to your system manager and/or to
7722 *** bug-libtool (at] gnu.org
7723
7724 _LT_EOF
7725 fi ;;
7726 esac
7727 fi
7728 break
7729 fi
7730 done
7731 IFS=$lt_save_ifs
7732 MAGIC_CMD=$lt_save_MAGIC_CMD
7733 ;;
7734 esac
7735 fi
7736
7737 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7738 if test -n "$MAGIC_CMD"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7740 $as_echo "$MAGIC_CMD" >&6; }
7741 else
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745
7746
7747 else
7748 MAGIC_CMD=:
7749 fi
7750 fi
7751
7752 fi
7753 ;;
7754 esac
7755
7756 # Use C for the default configuration in the libtool script
7757
7758 lt_save_CC=$CC
7759 ac_ext=c
7760 ac_cpp='$CPP $CPPFLAGS'
7761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7764
7765
7766 # Source file extension for C test sources.
7767 ac_ext=c
7768
7769 # Object file extension for compiled C test sources.
7770 objext=o
7771 objext=$objext
7772
7773 # Code to be used in simple compile tests
7774 lt_simple_compile_test_code="int some_variable = 0;"
7775
7776 # Code to be used in simple link tests
7777 lt_simple_link_test_code='int main(){return(0);}'
7778
7779
7780
7781
7782
7783
7784
7785 # If no C compiler was specified, use CC.
7786 LTCC=${LTCC-"$CC"}
7787
7788 # If no C compiler flags were specified, use CFLAGS.
7789 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7790
7791 # Allow CC to be a program name with arguments.
7792 compiler=$CC
7793
7794 # Save the default compiler, since it gets overwritten when the other
7795 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7796 compiler_DEFAULT=$CC
7797
7798 # save warnings/boilerplate of simple test code
7799 ac_outfile=conftest.$ac_objext
7800 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7801 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7802 _lt_compiler_boilerplate=`cat conftest.err`
7803 $RM conftest*
7804
7805 ac_outfile=conftest.$ac_objext
7806 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7807 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7808 _lt_linker_boilerplate=`cat conftest.err`
7809 $RM -r conftest*
7810
7811
7812 ## CAVEAT EMPTOR:
7813 ## There is no encapsulation within the following macros, do not change
7814 ## the running order or otherwise move them around unless you know exactly
7815 ## what you are doing...
7816 if test -n "$compiler"; then
7817
7818 lt_prog_compiler_no_builtin_flag=
7819
7820 if test yes = "$GCC"; then
7821 case $cc_basename in
7822 nvcc*)
7823 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7824 *)
7825 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7826 esac
7827
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7829 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7830 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 lt_cv_prog_compiler_rtti_exceptions=no
7834 ac_outfile=conftest.$ac_objext
7835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7836 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7837 # Insert the option either (1) after the last *FLAGS variable, or
7838 # (2) before a word containing "conftest.", or (3) at the end.
7839 # Note that $ac_compile itself does not contain backslashes and begins
7840 # with a dollar sign (not a hyphen), so the echo should work correctly.
7841 # The option is referenced via a variable to avoid confusing sed.
7842 lt_compile=`echo "$ac_compile" | $SED \
7843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7845 -e 's:$: $lt_compiler_flag:'`
7846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7847 (eval "$lt_compile" 2>conftest.err)
7848 ac_status=$?
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 if (exit $ac_status) && test -s "$ac_outfile"; then
7852 # The compiler can only warn and ignore the option if not recognized
7853 # So say no if there are warnings other than the usual output.
7854 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7856 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7857 lt_cv_prog_compiler_rtti_exceptions=yes
7858 fi
7859 fi
7860 $RM conftest*
7861
7862 fi
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7864 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7865
7866 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7867 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7868 else
7869 :
7870 fi
7871
7872 fi
7873
7874
7875
7876
7877
7878
7879 lt_prog_compiler_wl=
7880 lt_prog_compiler_pic=
7881 lt_prog_compiler_static=
7882
7883
7884 if test yes = "$GCC"; then
7885 lt_prog_compiler_wl='-Wl,'
7886 lt_prog_compiler_static='-static'
7887
7888 case $host_os in
7889 aix*)
7890 # All AIX code is PIC.
7891 if test ia64 = "$host_cpu"; then
7892 # AIX 5 now supports IA64 processor
7893 lt_prog_compiler_static='-Bstatic'
7894 fi
7895 lt_prog_compiler_pic='-fPIC'
7896 ;;
7897
7898 amigaos*)
7899 case $host_cpu in
7900 powerpc)
7901 # see comment about AmigaOS4 .so support
7902 lt_prog_compiler_pic='-fPIC'
7903 ;;
7904 m68k)
7905 # FIXME: we need at least 68020 code to build shared libraries, but
7906 # adding the '-m68020' flag to GCC prevents building anything better,
7907 # like '-m68040'.
7908 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7909 ;;
7910 esac
7911 ;;
7912
7913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7914 # PIC is the default for these OSes.
7915 ;;
7916
7917 mingw* | cygwin* | pw32* | os2* | cegcc*)
7918 # This hack is so that the source file can tell whether it is being
7919 # built for inclusion in a dll (and should export symbols for example).
7920 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7921 # (--disable-auto-import) libraries
7922 lt_prog_compiler_pic='-DDLL_EXPORT'
7923 case $host_os in
7924 os2*)
7925 lt_prog_compiler_static='$wl-static'
7926 ;;
7927 esac
7928 ;;
7929
7930 darwin* | rhapsody*)
7931 # PIC is the default on this platform
7932 # Common symbols not allowed in MH_DYLIB files
7933 lt_prog_compiler_pic='-fno-common'
7934 ;;
7935
7936 haiku*)
7937 # PIC is the default for Haiku.
7938 # The "-static" flag exists, but is broken.
7939 lt_prog_compiler_static=
7940 ;;
7941
7942 hpux*)
7943 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7944 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7945 # sets the default TLS model and affects inlining.
7946 case $host_cpu in
7947 hppa*64*)
7948 # +Z the default
7949 ;;
7950 *)
7951 lt_prog_compiler_pic='-fPIC'
7952 ;;
7953 esac
7954 ;;
7955
7956 interix[3-9]*)
7957 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7958 # Instead, we relocate shared libraries at runtime.
7959 ;;
7960
7961 msdosdjgpp*)
7962 # Just because we use GCC doesn't mean we suddenly get shared libraries
7963 # on systems that don't support them.
7964 lt_prog_compiler_can_build_shared=no
7965 enable_shared=no
7966 ;;
7967
7968 *nto* | *qnx*)
7969 # QNX uses GNU C++, but need to define -shared option too, otherwise
7970 # it will coredump.
7971 lt_prog_compiler_pic='-fPIC -shared'
7972 ;;
7973
7974 sysv4*MP*)
7975 if test -d /usr/nec; then
7976 lt_prog_compiler_pic=-Kconform_pic
7977 fi
7978 ;;
7979
7980 *)
7981 lt_prog_compiler_pic='-fPIC'
7982 ;;
7983 esac
7984
7985 case $cc_basename in
7986 nvcc*) # Cuda Compiler Driver 2.2
7987 lt_prog_compiler_wl='-Xlinker '
7988 if test -n "$lt_prog_compiler_pic"; then
7989 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7990 fi
7991 ;;
7992 esac
7993 else
7994 # PORTME Check for flag to pass linker flags through the system compiler.
7995 case $host_os in
7996 aix*)
7997 lt_prog_compiler_wl='-Wl,'
7998 if test ia64 = "$host_cpu"; then
7999 # AIX 5 now supports IA64 processor
8000 lt_prog_compiler_static='-Bstatic'
8001 else
8002 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8003 fi
8004 ;;
8005
8006 darwin* | rhapsody*)
8007 # PIC is the default on this platform
8008 # Common symbols not allowed in MH_DYLIB files
8009 lt_prog_compiler_pic='-fno-common'
8010 case $cc_basename in
8011 nagfor*)
8012 # NAG Fortran compiler
8013 lt_prog_compiler_wl='-Wl,-Wl,,'
8014 lt_prog_compiler_pic='-PIC'
8015 lt_prog_compiler_static='-Bstatic'
8016 ;;
8017 esac
8018 ;;
8019
8020 mingw* | cygwin* | pw32* | os2* | cegcc*)
8021 # This hack is so that the source file can tell whether it is being
8022 # built for inclusion in a dll (and should export symbols for example).
8023 lt_prog_compiler_pic='-DDLL_EXPORT'
8024 case $host_os in
8025 os2*)
8026 lt_prog_compiler_static='$wl-static'
8027 ;;
8028 esac
8029 ;;
8030
8031 hpux9* | hpux10* | hpux11*)
8032 lt_prog_compiler_wl='-Wl,'
8033 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8034 # not for PA HP-UX.
8035 case $host_cpu in
8036 hppa*64*|ia64*)
8037 # +Z the default
8038 ;;
8039 *)
8040 lt_prog_compiler_pic='+Z'
8041 ;;
8042 esac
8043 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8044 lt_prog_compiler_static='$wl-a ${wl}archive'
8045 ;;
8046
8047 irix5* | irix6* | nonstopux*)
8048 lt_prog_compiler_wl='-Wl,'
8049 # PIC (with -KPIC) is the default.
8050 lt_prog_compiler_static='-non_shared'
8051 ;;
8052
8053 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8054 case $cc_basename in
8055 # old Intel for x86_64, which still supported -KPIC.
8056 ecc*)
8057 lt_prog_compiler_wl='-Wl,'
8058 lt_prog_compiler_pic='-KPIC'
8059 lt_prog_compiler_static='-static'
8060 ;;
8061 # icc used to be incompatible with GCC.
8062 # ICC 10 doesn't accept -KPIC any more.
8063 icc* | ifort*)
8064 lt_prog_compiler_wl='-Wl,'
8065 lt_prog_compiler_pic='-fPIC'
8066 lt_prog_compiler_static='-static'
8067 ;;
8068 # Lahey Fortran 8.1.
8069 lf95*)
8070 lt_prog_compiler_wl='-Wl,'
8071 lt_prog_compiler_pic='--shared'
8072 lt_prog_compiler_static='--static'
8073 ;;
8074 nagfor*)
8075 # NAG Fortran compiler
8076 lt_prog_compiler_wl='-Wl,-Wl,,'
8077 lt_prog_compiler_pic='-PIC'
8078 lt_prog_compiler_static='-Bstatic'
8079 ;;
8080 tcc*)
8081 # Fabrice Bellard et al's Tiny C Compiler
8082 lt_prog_compiler_wl='-Wl,'
8083 lt_prog_compiler_pic='-fPIC'
8084 lt_prog_compiler_static='-static'
8085 ;;
8086 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8087 # Portland Group compilers (*not* the Pentium gcc compiler,
8088 # which looks to be a dead project)
8089 lt_prog_compiler_wl='-Wl,'
8090 lt_prog_compiler_pic='-fpic'
8091 lt_prog_compiler_static='-Bstatic'
8092 ;;
8093 ccc*)
8094 lt_prog_compiler_wl='-Wl,'
8095 # All Alpha code is PIC.
8096 lt_prog_compiler_static='-non_shared'
8097 ;;
8098 xl* | bgxl* | bgf* | mpixl*)
8099 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8100 lt_prog_compiler_wl='-Wl,'
8101 lt_prog_compiler_pic='-qpic'
8102 lt_prog_compiler_static='-qstaticlink'
8103 ;;
8104 *)
8105 case `$CC -V 2>&1 | sed 5q` in
8106 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8107 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8108 lt_prog_compiler_pic='-KPIC'
8109 lt_prog_compiler_static='-Bstatic'
8110 lt_prog_compiler_wl=''
8111 ;;
8112 *Sun\ F* | *Sun*Fortran*)
8113 lt_prog_compiler_pic='-KPIC'
8114 lt_prog_compiler_static='-Bstatic'
8115 lt_prog_compiler_wl='-Qoption ld '
8116 ;;
8117 *Sun\ C*)
8118 # Sun C 5.9
8119 lt_prog_compiler_pic='-KPIC'
8120 lt_prog_compiler_static='-Bstatic'
8121 lt_prog_compiler_wl='-Wl,'
8122 ;;
8123 *Intel*\ [CF]*Compiler*)
8124 lt_prog_compiler_wl='-Wl,'
8125 lt_prog_compiler_pic='-fPIC'
8126 lt_prog_compiler_static='-static'
8127 ;;
8128 *Portland\ Group*)
8129 lt_prog_compiler_wl='-Wl,'
8130 lt_prog_compiler_pic='-fpic'
8131 lt_prog_compiler_static='-Bstatic'
8132 ;;
8133 esac
8134 ;;
8135 esac
8136 ;;
8137
8138 newsos6)
8139 lt_prog_compiler_pic='-KPIC'
8140 lt_prog_compiler_static='-Bstatic'
8141 ;;
8142
8143 *nto* | *qnx*)
8144 # QNX uses GNU C++, but need to define -shared option too, otherwise
8145 # it will coredump.
8146 lt_prog_compiler_pic='-fPIC -shared'
8147 ;;
8148
8149 osf3* | osf4* | osf5*)
8150 lt_prog_compiler_wl='-Wl,'
8151 # All OSF/1 code is PIC.
8152 lt_prog_compiler_static='-non_shared'
8153 ;;
8154
8155 rdos*)
8156 lt_prog_compiler_static='-non_shared'
8157 ;;
8158
8159 solaris*)
8160 lt_prog_compiler_pic='-KPIC'
8161 lt_prog_compiler_static='-Bstatic'
8162 case $cc_basename in
8163 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8164 lt_prog_compiler_wl='-Qoption ld ';;
8165 *)
8166 lt_prog_compiler_wl='-Wl,';;
8167 esac
8168 ;;
8169
8170 sunos4*)
8171 lt_prog_compiler_wl='-Qoption ld '
8172 lt_prog_compiler_pic='-PIC'
8173 lt_prog_compiler_static='-Bstatic'
8174 ;;
8175
8176 sysv4 | sysv4.2uw2* | sysv4.3*)
8177 lt_prog_compiler_wl='-Wl,'
8178 lt_prog_compiler_pic='-KPIC'
8179 lt_prog_compiler_static='-Bstatic'
8180 ;;
8181
8182 sysv4*MP*)
8183 if test -d /usr/nec; then
8184 lt_prog_compiler_pic='-Kconform_pic'
8185 lt_prog_compiler_static='-Bstatic'
8186 fi
8187 ;;
8188
8189 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8190 lt_prog_compiler_wl='-Wl,'
8191 lt_prog_compiler_pic='-KPIC'
8192 lt_prog_compiler_static='-Bstatic'
8193 ;;
8194
8195 unicos*)
8196 lt_prog_compiler_wl='-Wl,'
8197 lt_prog_compiler_can_build_shared=no
8198 ;;
8199
8200 uts4*)
8201 lt_prog_compiler_pic='-pic'
8202 lt_prog_compiler_static='-Bstatic'
8203 ;;
8204
8205 *)
8206 lt_prog_compiler_can_build_shared=no
8207 ;;
8208 esac
8209 fi
8210
8211 case $host_os in
8212 # For platforms that do not support PIC, -DPIC is meaningless:
8213 *djgpp*)
8214 lt_prog_compiler_pic=
8215 ;;
8216 *)
8217 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8218 ;;
8219 esac
8220
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8222 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8223 if ${lt_cv_prog_compiler_pic+:} false; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8227 fi
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8229 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8230 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8231
8232 #
8233 # Check to make sure the PIC flag actually works.
8234 #
8235 if test -n "$lt_prog_compiler_pic"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8237 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8238 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240 else
8241 lt_cv_prog_compiler_pic_works=no
8242 ac_outfile=conftest.$ac_objext
8243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8244 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8245 # Insert the option either (1) after the last *FLAGS variable, or
8246 # (2) before a word containing "conftest.", or (3) at the end.
8247 # Note that $ac_compile itself does not contain backslashes and begins
8248 # with a dollar sign (not a hyphen), so the echo should work correctly.
8249 # The option is referenced via a variable to avoid confusing sed.
8250 lt_compile=`echo "$ac_compile" | $SED \
8251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8253 -e 's:$: $lt_compiler_flag:'`
8254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8255 (eval "$lt_compile" 2>conftest.err)
8256 ac_status=$?
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 if (exit $ac_status) && test -s "$ac_outfile"; then
8260 # The compiler can only warn and ignore the option if not recognized
8261 # So say no if there are warnings other than the usual output.
8262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8265 lt_cv_prog_compiler_pic_works=yes
8266 fi
8267 fi
8268 $RM conftest*
8269
8270 fi
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8272 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8273
8274 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8275 case $lt_prog_compiler_pic in
8276 "" | " "*) ;;
8277 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8278 esac
8279 else
8280 lt_prog_compiler_pic=
8281 lt_prog_compiler_can_build_shared=no
8282 fi
8283
8284 fi
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296 #
8297 # Check to make sure the static flag actually works.
8298 #
8299 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8301 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8302 if ${lt_cv_prog_compiler_static_works+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 lt_cv_prog_compiler_static_works=no
8306 save_LDFLAGS=$LDFLAGS
8307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8308 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8310 # The linker can only warn and ignore the option if not recognized
8311 # So say no if there are warnings
8312 if test -s conftest.err; then
8313 # Append any errors to the config.log.
8314 cat conftest.err 1>&5
8315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8317 if diff conftest.exp conftest.er2 >/dev/null; then
8318 lt_cv_prog_compiler_static_works=yes
8319 fi
8320 else
8321 lt_cv_prog_compiler_static_works=yes
8322 fi
8323 fi
8324 $RM -r conftest*
8325 LDFLAGS=$save_LDFLAGS
8326
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8329 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8330
8331 if test yes = "$lt_cv_prog_compiler_static_works"; then
8332 :
8333 else
8334 lt_prog_compiler_static=
8335 fi
8336
8337
8338
8339
8340
8341
8342
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8344 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8345 if ${lt_cv_prog_compiler_c_o+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 lt_cv_prog_compiler_c_o=no
8349 $RM -r conftest 2>/dev/null
8350 mkdir conftest
8351 cd conftest
8352 mkdir out
8353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8354
8355 lt_compiler_flag="-o out/conftest2.$ac_objext"
8356 # Insert the option either (1) after the last *FLAGS variable, or
8357 # (2) before a word containing "conftest.", or (3) at the end.
8358 # Note that $ac_compile itself does not contain backslashes and begins
8359 # with a dollar sign (not a hyphen), so the echo should work correctly.
8360 lt_compile=`echo "$ac_compile" | $SED \
8361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8363 -e 's:$: $lt_compiler_flag:'`
8364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8365 (eval "$lt_compile" 2>out/conftest.err)
8366 ac_status=$?
8367 cat out/conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8370 then
8371 # The compiler can only warn and ignore the option if not recognized
8372 # So say no if there are warnings
8373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8376 lt_cv_prog_compiler_c_o=yes
8377 fi
8378 fi
8379 chmod u+w . 2>&5
8380 $RM conftest*
8381 # SGI C++ compiler will create directory out/ii_files/ for
8382 # template instantiation
8383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8384 $RM out/* && rmdir out
8385 cd ..
8386 $RM -r conftest
8387 $RM conftest*
8388
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8391 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8392
8393
8394
8395
8396
8397
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8399 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8400 if ${lt_cv_prog_compiler_c_o+:} false; then :
8401 $as_echo_n "(cached) " >&6
8402 else
8403 lt_cv_prog_compiler_c_o=no
8404 $RM -r conftest 2>/dev/null
8405 mkdir conftest
8406 cd conftest
8407 mkdir out
8408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8409
8410 lt_compiler_flag="-o out/conftest2.$ac_objext"
8411 # Insert the option either (1) after the last *FLAGS variable, or
8412 # (2) before a word containing "conftest.", or (3) at the end.
8413 # Note that $ac_compile itself does not contain backslashes and begins
8414 # with a dollar sign (not a hyphen), so the echo should work correctly.
8415 lt_compile=`echo "$ac_compile" | $SED \
8416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8418 -e 's:$: $lt_compiler_flag:'`
8419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8420 (eval "$lt_compile" 2>out/conftest.err)
8421 ac_status=$?
8422 cat out/conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8425 then
8426 # The compiler can only warn and ignore the option if not recognized
8427 # So say no if there are warnings
8428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8431 lt_cv_prog_compiler_c_o=yes
8432 fi
8433 fi
8434 chmod u+w . 2>&5
8435 $RM conftest*
8436 # SGI C++ compiler will create directory out/ii_files/ for
8437 # template instantiation
8438 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8439 $RM out/* && rmdir out
8440 cd ..
8441 $RM -r conftest
8442 $RM conftest*
8443
8444 fi
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8446 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8447
8448
8449
8450
8451 hard_links=nottested
8452 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8453 # do not overwrite the value of need_locks provided by the user
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8455 $as_echo_n "checking if we can lock with hard links... " >&6; }
8456 hard_links=yes
8457 $RM conftest*
8458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8459 touch conftest.a
8460 ln conftest.a conftest.b 2>&5 || hard_links=no
8461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8463 $as_echo "$hard_links" >&6; }
8464 if test no = "$hard_links"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8466 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8467 need_locks=warn
8468 fi
8469 else
8470 need_locks=no
8471 fi
8472
8473
8474
8475
8476
8477
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8479 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8480
8481 runpath_var=
8482 allow_undefined_flag=
8483 always_export_symbols=no
8484 archive_cmds=
8485 archive_expsym_cmds=
8486 compiler_needs_object=no
8487 enable_shared_with_static_runtimes=no
8488 export_dynamic_flag_spec=
8489 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8490 hardcode_automatic=no
8491 hardcode_direct=no
8492 hardcode_direct_absolute=no
8493 hardcode_libdir_flag_spec=
8494 hardcode_libdir_separator=
8495 hardcode_minus_L=no
8496 hardcode_shlibpath_var=unsupported
8497 inherit_rpath=no
8498 link_all_deplibs=unknown
8499 module_cmds=
8500 module_expsym_cmds=
8501 old_archive_from_new_cmds=
8502 old_archive_from_expsyms_cmds=
8503 thread_safe_flag_spec=
8504 whole_archive_flag_spec=
8505 # include_expsyms should be a list of space-separated symbols to be *always*
8506 # included in the symbol list
8507 include_expsyms=
8508 # exclude_expsyms can be an extended regexp of symbols to exclude
8509 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8510 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8511 # as well as any symbol that contains 'd'.
8512 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8513 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8514 # platforms (ab)use it in PIC code, but their linkers get confused if
8515 # the symbol is explicitly referenced. Since portable code cannot
8516 # rely on this symbol name, it's probably fine to never include it in
8517 # preloaded symbol tables.
8518 # Exclude shared library initialization/finalization symbols.
8519 extract_expsyms_cmds=
8520
8521 case $host_os in
8522 cygwin* | mingw* | pw32* | cegcc*)
8523 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8524 # When not using gcc, we currently assume that we are using
8525 # Microsoft Visual C++.
8526 if test yes != "$GCC"; then
8527 with_gnu_ld=no
8528 fi
8529 ;;
8530 interix*)
8531 # we just hope/assume this is gcc and not c89 (= MSVC++)
8532 with_gnu_ld=yes
8533 ;;
8534 openbsd* | bitrig*)
8535 with_gnu_ld=no
8536 ;;
8537 esac
8538
8539 ld_shlibs=yes
8540
8541 # On some targets, GNU ld is compatible enough with the native linker
8542 # that we're better off using the native interface for both.
8543 lt_use_gnu_ld_interface=no
8544 if test yes = "$with_gnu_ld"; then
8545 case $host_os in
8546 aix*)
8547 # The AIX port of GNU ld has always aspired to compatibility
8548 # with the native linker. However, as the warning in the GNU ld
8549 # block says, versions before 2.19.5* couldn't really create working
8550 # shared libraries, regardless of the interface used.
8551 case `$LD -v 2>&1` in
8552 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8553 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8554 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8555 *)
8556 lt_use_gnu_ld_interface=yes
8557 ;;
8558 esac
8559 ;;
8560 *)
8561 lt_use_gnu_ld_interface=yes
8562 ;;
8563 esac
8564 fi
8565
8566 if test yes = "$lt_use_gnu_ld_interface"; then
8567 # If archive_cmds runs LD, not CC, wlarc should be empty
8568 wlarc='$wl'
8569
8570 # Set some defaults for GNU ld with shared library support. These
8571 # are reset later if shared libraries are not supported. Putting them
8572 # here allows them to be overridden if necessary.
8573 runpath_var=LD_RUN_PATH
8574 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8575 export_dynamic_flag_spec='$wl--export-dynamic'
8576 # ancient GNU ld didn't support --whole-archive et. al.
8577 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8578 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8579 else
8580 whole_archive_flag_spec=
8581 fi
8582 supports_anon_versioning=no
8583 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8584 *GNU\ gold*) supports_anon_versioning=yes ;;
8585 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8586 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8587 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8588 *\ 2.11.*) ;; # other 2.11 versions
8589 *) supports_anon_versioning=yes ;;
8590 esac
8591
8592 # See if GNU ld supports shared libraries.
8593 case $host_os in
8594 aix[3-9]*)
8595 # On AIX/PPC, the GNU linker is very broken
8596 if test ia64 != "$host_cpu"; then
8597 ld_shlibs=no
8598 cat <<_LT_EOF 1>&2
8599
8600 *** Warning: the GNU linker, at least up to release 2.19, is reported
8601 *** to be unable to reliably create shared libraries on AIX.
8602 *** Therefore, libtool is disabling shared libraries support. If you
8603 *** really care for shared libraries, you may want to install binutils
8604 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8605 *** You will then need to restart the configuration process.
8606
8607 _LT_EOF
8608 fi
8609 ;;
8610
8611 amigaos*)
8612 case $host_cpu in
8613 powerpc)
8614 # see comment about AmigaOS4 .so support
8615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8616 archive_expsym_cmds=''
8617 ;;
8618 m68k)
8619 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8620 hardcode_libdir_flag_spec='-L$libdir'
8621 hardcode_minus_L=yes
8622 ;;
8623 esac
8624 ;;
8625
8626 beos*)
8627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8628 allow_undefined_flag=unsupported
8629 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8630 # support --undefined. This deserves some investigation. FIXME
8631 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8632 else
8633 ld_shlibs=no
8634 fi
8635 ;;
8636
8637 cygwin* | mingw* | pw32* | cegcc*)
8638 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8639 # as there is no search path for DLLs.
8640 hardcode_libdir_flag_spec='-L$libdir'
8641 export_dynamic_flag_spec='$wl--export-all-symbols'
8642 allow_undefined_flag=unsupported
8643 always_export_symbols=no
8644 enable_shared_with_static_runtimes=yes
8645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8646 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8647
8648 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8650 # If the export-symbols file already is a .def file, use it as
8651 # is; otherwise, prepend EXPORTS...
8652 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8653 cp $export_symbols $output_objdir/$soname.def;
8654 else
8655 echo EXPORTS > $output_objdir/$soname.def;
8656 cat $export_symbols >> $output_objdir/$soname.def;
8657 fi~
8658 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8659 else
8660 ld_shlibs=no
8661 fi
8662 ;;
8663
8664 haiku*)
8665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8666 link_all_deplibs=yes
8667 ;;
8668
8669 os2*)
8670 hardcode_libdir_flag_spec='-L$libdir'
8671 hardcode_minus_L=yes
8672 allow_undefined_flag=unsupported
8673 shrext_cmds=.dll
8674 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8675 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8676 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8677 $ECHO EXPORTS >> $output_objdir/$libname.def~
8678 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8679 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8680 emximp -o $lib $output_objdir/$libname.def'
8681 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8682 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8683 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8684 $ECHO EXPORTS >> $output_objdir/$libname.def~
8685 prefix_cmds="$SED"~
8686 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8687 prefix_cmds="$prefix_cmds -e 1d";
8688 fi~
8689 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8690 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8691 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8692 emximp -o $lib $output_objdir/$libname.def'
8693 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8694 enable_shared_with_static_runtimes=yes
8695 ;;
8696
8697 interix[3-9]*)
8698 hardcode_direct=no
8699 hardcode_shlibpath_var=no
8700 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8701 export_dynamic_flag_spec='$wl-E'
8702 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8703 # Instead, shared libraries are loaded at an image base (0x10000000 by
8704 # default) and relocated if they conflict, which is a slow very memory
8705 # consuming and fragmenting process. To avoid this, we pick a random,
8706 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8707 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8708 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8709 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8710 ;;
8711
8712 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8713 tmp_diet=no
8714 if test linux-dietlibc = "$host_os"; then
8715 case $cc_basename in
8716 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8717 esac
8718 fi
8719 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8720 && test no = "$tmp_diet"
8721 then
8722 tmp_addflag=' $pic_flag'
8723 tmp_sharedflag='-shared'
8724 case $cc_basename,$host_cpu in
8725 pgcc*) # Portland Group C compiler
8726 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8727 tmp_addflag=' $pic_flag'
8728 ;;
8729 pgf77* | pgf90* | pgf95* | pgfortran*)
8730 # Portland Group f77 and f90 compilers
8731 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8732 tmp_addflag=' $pic_flag -Mnomain' ;;
8733 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8734 tmp_addflag=' -i_dynamic' ;;
8735 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8736 tmp_addflag=' -i_dynamic -nofor_main' ;;
8737 ifc* | ifort*) # Intel Fortran compiler
8738 tmp_addflag=' -nofor_main' ;;
8739 lf95*) # Lahey Fortran 8.1
8740 whole_archive_flag_spec=
8741 tmp_sharedflag='--shared' ;;
8742 nagfor*) # NAGFOR 5.3
8743 tmp_sharedflag='-Wl,-shared' ;;
8744 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8745 tmp_sharedflag='-qmkshrobj'
8746 tmp_addflag= ;;
8747 nvcc*) # Cuda Compiler Driver 2.2
8748 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8749 compiler_needs_object=yes
8750 ;;
8751 esac
8752 case `$CC -V 2>&1 | sed 5q` in
8753 *Sun\ C*) # Sun C 5.9
8754 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8755 compiler_needs_object=yes
8756 tmp_sharedflag='-G' ;;
8757 *Sun\ F*) # Sun Fortran 8.3
8758 tmp_sharedflag='-G' ;;
8759 esac
8760 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8761
8762 if test yes = "$supports_anon_versioning"; then
8763 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8764 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8765 echo "local: *; };" >> $output_objdir/$libname.ver~
8766 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8767 fi
8768
8769 case $cc_basename in
8770 tcc*)
8771 export_dynamic_flag_spec='-rdynamic'
8772 ;;
8773 xlf* | bgf* | bgxlf* | mpixlf*)
8774 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8775 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8776 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8777 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8778 if test yes = "$supports_anon_versioning"; then
8779 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8781 echo "local: *; };" >> $output_objdir/$libname.ver~
8782 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8783 fi
8784 ;;
8785 esac
8786 else
8787 ld_shlibs=no
8788 fi
8789 ;;
8790
8791 netbsd*)
8792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8793 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8794 wlarc=
8795 else
8796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8797 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8798 fi
8799 ;;
8800
8801 solaris*)
8802 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8803 ld_shlibs=no
8804 cat <<_LT_EOF 1>&2
8805
8806 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8807 *** create shared libraries on Solaris systems. Therefore, libtool
8808 *** is disabling shared libraries support. We urge you to upgrade GNU
8809 *** binutils to release 2.9.1 or newer. Another option is to modify
8810 *** your PATH or compiler configuration so that the native linker is
8811 *** used, and then restart.
8812
8813 _LT_EOF
8814 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8815 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8816 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8817 else
8818 ld_shlibs=no
8819 fi
8820 ;;
8821
8822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8823 case `$LD -v 2>&1` in
8824 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8825 ld_shlibs=no
8826 cat <<_LT_EOF 1>&2
8827
8828 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8829 *** reliably create shared libraries on SCO systems. Therefore, libtool
8830 *** is disabling shared libraries support. We urge you to upgrade GNU
8831 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8832 *** your PATH or compiler configuration so that the native linker is
8833 *** used, and then restart.
8834
8835 _LT_EOF
8836 ;;
8837 *)
8838 # For security reasons, it is highly recommended that you always
8839 # use absolute paths for naming shared libraries, and exclude the
8840 # DT_RUNPATH tag from executables and libraries. But doing so
8841 # requires that you compile everything twice, which is a pain.
8842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8846 else
8847 ld_shlibs=no
8848 fi
8849 ;;
8850 esac
8851 ;;
8852
8853 sunos4*)
8854 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8855 wlarc=
8856 hardcode_direct=yes
8857 hardcode_shlibpath_var=no
8858 ;;
8859
8860 *)
8861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8862 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8863 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8864 else
8865 ld_shlibs=no
8866 fi
8867 ;;
8868 esac
8869
8870 if test no = "$ld_shlibs"; then
8871 runpath_var=
8872 hardcode_libdir_flag_spec=
8873 export_dynamic_flag_spec=
8874 whole_archive_flag_spec=
8875 fi
8876 else
8877 # PORTME fill in a description of your system's linker (not GNU ld)
8878 case $host_os in
8879 aix3*)
8880 allow_undefined_flag=unsupported
8881 always_export_symbols=yes
8882 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8883 # Note: this linker hardcodes the directories in LIBPATH if there
8884 # are no directories specified by -L.
8885 hardcode_minus_L=yes
8886 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8887 # Neither direct hardcoding nor static linking is supported with a
8888 # broken collect2.
8889 hardcode_direct=unsupported
8890 fi
8891 ;;
8892
8893 aix[4-9]*)
8894 if test ia64 = "$host_cpu"; then
8895 # On IA64, the linker does run time linking by default, so we don't
8896 # have to do anything special.
8897 aix_use_runtimelinking=no
8898 exp_sym_flag='-Bexport'
8899 no_entry_flag=
8900 else
8901 # If we're using GNU nm, then we don't want the "-C" option.
8902 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8903 # Without the "-l" option, or with the "-B" option, AIX nm treats
8904 # weak defined symbols like other global defined symbols, whereas
8905 # GNU nm marks them as "W".
8906 # While the 'weak' keyword is ignored in the Export File, we need
8907 # it in the Import File for the 'aix-soname' feature, so we have
8908 # to replace the "-B" option with "-P" for AIX nm.
8909 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8910 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8911 else
8912 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8913 fi
8914 aix_use_runtimelinking=no
8915
8916 # Test if we are trying to use run time linking or normal
8917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8918 # have runtime linking enabled, and use it for executables.
8919 # For shared libraries, we enable/disable runtime linking
8920 # depending on the kind of the shared library created -
8921 # when "with_aix_soname,aix_use_runtimelinking" is:
8922 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8923 # "aix,yes" lib.so shared, rtl:yes, for executables
8924 # lib.a static archive
8925 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8926 # lib.a(lib.so.V) shared, rtl:no, for executables
8927 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8928 # lib.a(lib.so.V) shared, rtl:no
8929 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8930 # lib.a static archive
8931 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8932 for ld_flag in $LDFLAGS; do
8933 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8934 aix_use_runtimelinking=yes
8935 break
8936 fi
8937 done
8938 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8939 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8940 # so we don't have lib.a shared libs to link our executables.
8941 # We have to force runtime linking in this case.
8942 aix_use_runtimelinking=yes
8943 LDFLAGS="$LDFLAGS -Wl,-brtl"
8944 fi
8945 ;;
8946 esac
8947
8948 exp_sym_flag='-bexport'
8949 no_entry_flag='-bnoentry'
8950 fi
8951
8952 # When large executables or shared objects are built, AIX ld can
8953 # have problems creating the table of contents. If linking a library
8954 # or program results in "error TOC overflow" add -mminimal-toc to
8955 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8956 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8957
8958 archive_cmds=''
8959 hardcode_direct=yes
8960 hardcode_direct_absolute=yes
8961 hardcode_libdir_separator=':'
8962 link_all_deplibs=yes
8963 file_list_spec='$wl-f,'
8964 case $with_aix_soname,$aix_use_runtimelinking in
8965 aix,*) ;; # traditional, no import file
8966 svr4,* | *,yes) # use import file
8967 # The Import File defines what to hardcode.
8968 hardcode_direct=no
8969 hardcode_direct_absolute=no
8970 ;;
8971 esac
8972
8973 if test yes = "$GCC"; then
8974 case $host_os in aix4.[012]|aix4.[012].*)
8975 # We only want to do this on AIX 4.2 and lower, the check
8976 # below for broken collect2 doesn't work under 4.3+
8977 collect2name=`$CC -print-prog-name=collect2`
8978 if test -f "$collect2name" &&
8979 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8980 then
8981 # We have reworked collect2
8982 :
8983 else
8984 # We have old collect2
8985 hardcode_direct=unsupported
8986 # It fails to find uninstalled libraries when the uninstalled
8987 # path is not listed in the libpath. Setting hardcode_minus_L
8988 # to unsupported forces relinking
8989 hardcode_minus_L=yes
8990 hardcode_libdir_flag_spec='-L$libdir'
8991 hardcode_libdir_separator=
8992 fi
8993 ;;
8994 esac
8995 shared_flag='-shared'
8996 if test yes = "$aix_use_runtimelinking"; then
8997 shared_flag="$shared_flag "'$wl-G'
8998 fi
8999 # Need to ensure runtime linking is disabled for the traditional
9000 # shared library, or the linker may eventually find shared libraries
9001 # /with/ Import File - we do not want to mix them.
9002 shared_flag_aix='-shared'
9003 shared_flag_svr4='-shared $wl-G'
9004 else
9005 # not using gcc
9006 if test ia64 = "$host_cpu"; then
9007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9008 # chokes on -Wl,-G. The following line is correct:
9009 shared_flag='-G'
9010 else
9011 if test yes = "$aix_use_runtimelinking"; then
9012 shared_flag='$wl-G'
9013 else
9014 shared_flag='$wl-bM:SRE'
9015 fi
9016 shared_flag_aix='$wl-bM:SRE'
9017 shared_flag_svr4='$wl-G'
9018 fi
9019 fi
9020
9021 export_dynamic_flag_spec='$wl-bexpall'
9022 # It seems that -bexpall does not export symbols beginning with
9023 # underscore (_), so it is better to generate a list of symbols to export.
9024 always_export_symbols=yes
9025 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9026 # Warning - without using the other runtime loading flags (-brtl),
9027 # -berok will link without error, but may produce a broken library.
9028 allow_undefined_flag='-berok'
9029 # Determine the default libpath from the value encoded in an
9030 # empty executable.
9031 if test set = "${lt_cv_aix_libpath+set}"; then
9032 aix_libpath=$lt_cv_aix_libpath
9033 else
9034 if ${lt_cv_aix_libpath_+:} false; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9039
9040 int
9041 main ()
9042 {
9043
9044 ;
9045 return 0;
9046 }
9047 _ACEOF
9048 if ac_fn_c_try_link "$LINENO"; then :
9049
9050 lt_aix_libpath_sed='
9051 /Import File Strings/,/^$/ {
9052 /^0/ {
9053 s/^0 *\([^ ]*\) *$/\1/
9054 p
9055 }
9056 }'
9057 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9058 # Check for a 64-bit object if we didn't find anything.
9059 if test -z "$lt_cv_aix_libpath_"; then
9060 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9061 fi
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9065 if test -z "$lt_cv_aix_libpath_"; then
9066 lt_cv_aix_libpath_=/usr/lib:/lib
9067 fi
9068
9069 fi
9070
9071 aix_libpath=$lt_cv_aix_libpath_
9072 fi
9073
9074 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9075 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9076 else
9077 if test ia64 = "$host_cpu"; then
9078 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9079 allow_undefined_flag="-z nodefs"
9080 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
9081 else
9082 # Determine the default libpath from the value encoded in an
9083 # empty executable.
9084 if test set = "${lt_cv_aix_libpath+set}"; then
9085 aix_libpath=$lt_cv_aix_libpath
9086 else
9087 if ${lt_cv_aix_libpath_+:} false; then :
9088 $as_echo_n "(cached) " >&6
9089 else
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9092
9093 int
9094 main ()
9095 {
9096
9097 ;
9098 return 0;
9099 }
9100 _ACEOF
9101 if ac_fn_c_try_link "$LINENO"; then :
9102
9103 lt_aix_libpath_sed='
9104 /Import File Strings/,/^$/ {
9105 /^0/ {
9106 s/^0 *\([^ ]*\) *$/\1/
9107 p
9108 }
9109 }'
9110 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9111 # Check for a 64-bit object if we didn't find anything.
9112 if test -z "$lt_cv_aix_libpath_"; then
9113 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9114 fi
9115 fi
9116 rm -f core conftest.err conftest.$ac_objext \
9117 conftest$ac_exeext conftest.$ac_ext
9118 if test -z "$lt_cv_aix_libpath_"; then
9119 lt_cv_aix_libpath_=/usr/lib:/lib
9120 fi
9121
9122 fi
9123
9124 aix_libpath=$lt_cv_aix_libpath_
9125 fi
9126
9127 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9128 # Warning - without using the other run time loading flags,
9129 # -berok will link without error, but may produce a broken library.
9130 no_undefined_flag=' $wl-bernotok'
9131 allow_undefined_flag=' $wl-berok'
9132 if test yes = "$with_gnu_ld"; then
9133 # We only use this code for GNU lds that support --whole-archive.
9134 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9135 else
9136 # Exported symbols can be pulled into shared objects from archives
9137 whole_archive_flag_spec='$convenience'
9138 fi
9139 archive_cmds_need_lc=yes
9140 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9141 # -brtl affects multiple linker settings, -berok does not and is overridden later
9142 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9143 if test svr4 != "$with_aix_soname"; then
9144 # This is similar to how AIX traditionally builds its shared libraries.
9145 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9146 fi
9147 if test aix != "$with_aix_soname"; then
9148 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9149 else
9150 # used by -dlpreopen to get the symbols
9151 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9152 fi
9153 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9154 fi
9155 fi
9156 ;;
9157
9158 amigaos*)
9159 case $host_cpu in
9160 powerpc)
9161 # see comment about AmigaOS4 .so support
9162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9163 archive_expsym_cmds=''
9164 ;;
9165 m68k)
9166 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9167 hardcode_libdir_flag_spec='-L$libdir'
9168 hardcode_minus_L=yes
9169 ;;
9170 esac
9171 ;;
9172
9173 bsdi[45]*)
9174 export_dynamic_flag_spec=-rdynamic
9175 ;;
9176
9177 cygwin* | mingw* | pw32* | cegcc*)
9178 # When not using gcc, we currently assume that we are using
9179 # Microsoft Visual C++.
9180 # hardcode_libdir_flag_spec is actually meaningless, as there is
9181 # no search path for DLLs.
9182 case $cc_basename in
9183 cl*)
9184 # Native MSVC
9185 hardcode_libdir_flag_spec=' '
9186 allow_undefined_flag=unsupported
9187 always_export_symbols=yes
9188 file_list_spec='@'
9189 # Tell ltmain to make .lib files, not .a files.
9190 libext=lib
9191 # Tell ltmain to make .dll files, not .so files.
9192 shrext_cmds=.dll
9193 # FIXME: Setting linknames here is a bad hack.
9194 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9195 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9196 cp "$export_symbols" "$output_objdir/$soname.def";
9197 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9198 else
9199 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9200 fi~
9201 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9202 linknames='
9203 # The linker will not automatically build a static lib if we build a DLL.
9204 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9205 enable_shared_with_static_runtimes=yes
9206 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9208 # Don't use ranlib
9209 old_postinstall_cmds='chmod 644 $oldlib'
9210 postlink_cmds='lt_outputfile="@OUTPUT@"~
9211 lt_tool_outputfile="@TOOL_OUTPUT@"~
9212 case $lt_outputfile in
9213 *.exe|*.EXE) ;;
9214 *)
9215 lt_outputfile=$lt_outputfile.exe
9216 lt_tool_outputfile=$lt_tool_outputfile.exe
9217 ;;
9218 esac~
9219 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9220 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9221 $RM "$lt_outputfile.manifest";
9222 fi'
9223 ;;
9224 *)
9225 # Assume MSVC wrapper
9226 hardcode_libdir_flag_spec=' '
9227 allow_undefined_flag=unsupported
9228 # Tell ltmain to make .lib files, not .a files.
9229 libext=lib
9230 # Tell ltmain to make .dll files, not .so files.
9231 shrext_cmds=.dll
9232 # FIXME: Setting linknames here is a bad hack.
9233 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9234 # The linker will automatically build a .lib file if we build a DLL.
9235 old_archive_from_new_cmds='true'
9236 # FIXME: Should let the user specify the lib program.
9237 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9238 enable_shared_with_static_runtimes=yes
9239 ;;
9240 esac
9241 ;;
9242
9243 darwin* | rhapsody*)
9244
9245
9246 archive_cmds_need_lc=no
9247 hardcode_direct=no
9248 hardcode_automatic=yes
9249 hardcode_shlibpath_var=unsupported
9250 if test yes = "$lt_cv_ld_force_load"; then
9251 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9252
9253 else
9254 whole_archive_flag_spec=''
9255 fi
9256 link_all_deplibs=yes
9257 allow_undefined_flag=$_lt_dar_allow_undefined
9258 case $cc_basename in
9259 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9260 *) _lt_dar_can_shared=$GCC ;;
9261 esac
9262 if test yes = "$_lt_dar_can_shared"; then
9263 output_verbose_link_cmd=func_echo_all
9264 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9265 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9266 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
9267 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
9268
9269 else
9270 ld_shlibs=no
9271 fi
9272
9273 ;;
9274
9275 dgux*)
9276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9277 hardcode_libdir_flag_spec='-L$libdir'
9278 hardcode_shlibpath_var=no
9279 ;;
9280
9281 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9282 # support. Future versions do this automatically, but an explicit c++rt0.o
9283 # does not break anything, and helps significantly (at the cost of a little
9284 # extra space).
9285 freebsd2.2*)
9286 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9287 hardcode_libdir_flag_spec='-R$libdir'
9288 hardcode_direct=yes
9289 hardcode_shlibpath_var=no
9290 ;;
9291
9292 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9293 freebsd2.*)
9294 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9295 hardcode_direct=yes
9296 hardcode_minus_L=yes
9297 hardcode_shlibpath_var=no
9298 ;;
9299
9300 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9301 freebsd* | dragonfly*)
9302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9303 hardcode_libdir_flag_spec='-R$libdir'
9304 hardcode_direct=yes
9305 hardcode_shlibpath_var=no
9306 ;;
9307
9308 hpux9*)
9309 if test yes = "$GCC"; then
9310 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9311 else
9312 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9313 fi
9314 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9315 hardcode_libdir_separator=:
9316 hardcode_direct=yes
9317
9318 # hardcode_minus_L: Not really in the search PATH,
9319 # but as the default location of the library.
9320 hardcode_minus_L=yes
9321 export_dynamic_flag_spec='$wl-E'
9322 ;;
9323
9324 hpux10*)
9325 if test yes,no = "$GCC,$with_gnu_ld"; then
9326 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9327 else
9328 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9329 fi
9330 if test no = "$with_gnu_ld"; then
9331 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9332 hardcode_libdir_separator=:
9333 hardcode_direct=yes
9334 hardcode_direct_absolute=yes
9335 export_dynamic_flag_spec='$wl-E'
9336 # hardcode_minus_L: Not really in the search PATH,
9337 # but as the default location of the library.
9338 hardcode_minus_L=yes
9339 fi
9340 ;;
9341
9342 hpux11*)
9343 if test yes,no = "$GCC,$with_gnu_ld"; then
9344 case $host_cpu in
9345 hppa*64*)
9346 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9347 ;;
9348 ia64*)
9349 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9350 ;;
9351 *)
9352 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9353 ;;
9354 esac
9355 else
9356 case $host_cpu in
9357 hppa*64*)
9358 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9359 ;;
9360 ia64*)
9361 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9362 ;;
9363 *)
9364
9365 # Older versions of the 11.00 compiler do not understand -b yet
9366 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9368 $as_echo_n "checking if $CC understands -b... " >&6; }
9369 if ${lt_cv_prog_compiler__b+:} false; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 lt_cv_prog_compiler__b=no
9373 save_LDFLAGS=$LDFLAGS
9374 LDFLAGS="$LDFLAGS -b"
9375 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9377 # The linker can only warn and ignore the option if not recognized
9378 # So say no if there are warnings
9379 if test -s conftest.err; then
9380 # Append any errors to the config.log.
9381 cat conftest.err 1>&5
9382 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9384 if diff conftest.exp conftest.er2 >/dev/null; then
9385 lt_cv_prog_compiler__b=yes
9386 fi
9387 else
9388 lt_cv_prog_compiler__b=yes
9389 fi
9390 fi
9391 $RM -r conftest*
9392 LDFLAGS=$save_LDFLAGS
9393
9394 fi
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9396 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9397
9398 if test yes = "$lt_cv_prog_compiler__b"; then
9399 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9400 else
9401 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9402 fi
9403
9404 ;;
9405 esac
9406 fi
9407 if test no = "$with_gnu_ld"; then
9408 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9409 hardcode_libdir_separator=:
9410
9411 case $host_cpu in
9412 hppa*64*|ia64*)
9413 hardcode_direct=no
9414 hardcode_shlibpath_var=no
9415 ;;
9416 *)
9417 hardcode_direct=yes
9418 hardcode_direct_absolute=yes
9419 export_dynamic_flag_spec='$wl-E'
9420
9421 # hardcode_minus_L: Not really in the search PATH,
9422 # but as the default location of the library.
9423 hardcode_minus_L=yes
9424 ;;
9425 esac
9426 fi
9427 ;;
9428
9429 irix5* | irix6* | nonstopux*)
9430 if test yes = "$GCC"; then
9431 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9432 # Try to use the -exported_symbol ld option, if it does not
9433 # work, assume that -exports_file does not work either and
9434 # implicitly export all symbols.
9435 # This should be the same for all languages, so no per-tag cache variable.
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9437 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9438 if ${lt_cv_irix_exported_symbol+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 save_LDFLAGS=$LDFLAGS
9442 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9445 int foo (void) { return 0; }
9446 _ACEOF
9447 if ac_fn_c_try_link "$LINENO"; then :
9448 lt_cv_irix_exported_symbol=yes
9449 else
9450 lt_cv_irix_exported_symbol=no
9451 fi
9452 rm -f core conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9454 LDFLAGS=$save_LDFLAGS
9455 fi
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9457 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9458 if test yes = "$lt_cv_irix_exported_symbol"; then
9459 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9460 fi
9461 else
9462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9463 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
9464 fi
9465 archive_cmds_need_lc='no'
9466 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9467 hardcode_libdir_separator=:
9468 inherit_rpath=yes
9469 link_all_deplibs=yes
9470 ;;
9471
9472 linux*)
9473 case $cc_basename in
9474 tcc*)
9475 # Fabrice Bellard et al's Tiny C Compiler
9476 ld_shlibs=yes
9477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9478 ;;
9479 esac
9480 ;;
9481
9482 netbsd*)
9483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9485 else
9486 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9487 fi
9488 hardcode_libdir_flag_spec='-R$libdir'
9489 hardcode_direct=yes
9490 hardcode_shlibpath_var=no
9491 ;;
9492
9493 newsos6)
9494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_direct=yes
9496 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9497 hardcode_libdir_separator=:
9498 hardcode_shlibpath_var=no
9499 ;;
9500
9501 *nto* | *qnx*)
9502 ;;
9503
9504 openbsd* | bitrig*)
9505 if test -f /usr/libexec/ld.so; then
9506 hardcode_direct=yes
9507 hardcode_shlibpath_var=no
9508 hardcode_direct_absolute=yes
9509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9510 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9512 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9513 export_dynamic_flag_spec='$wl-E'
9514 else
9515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9516 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9517 fi
9518 else
9519 ld_shlibs=no
9520 fi
9521 ;;
9522
9523 os2*)
9524 hardcode_libdir_flag_spec='-L$libdir'
9525 hardcode_minus_L=yes
9526 allow_undefined_flag=unsupported
9527 shrext_cmds=.dll
9528 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9529 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9530 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9531 $ECHO EXPORTS >> $output_objdir/$libname.def~
9532 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9533 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9534 emximp -o $lib $output_objdir/$libname.def'
9535 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9538 $ECHO EXPORTS >> $output_objdir/$libname.def~
9539 prefix_cmds="$SED"~
9540 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9541 prefix_cmds="$prefix_cmds -e 1d";
9542 fi~
9543 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9544 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9545 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9546 emximp -o $lib $output_objdir/$libname.def'
9547 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9548 enable_shared_with_static_runtimes=yes
9549 ;;
9550
9551 osf3*)
9552 if test yes = "$GCC"; then
9553 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9554 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9555 else
9556 allow_undefined_flag=' -expect_unresolved \*'
9557 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9558 fi
9559 archive_cmds_need_lc='no'
9560 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9561 hardcode_libdir_separator=:
9562 ;;
9563
9564 osf4* | osf5*) # as osf3* with the addition of -msym flag
9565 if test yes = "$GCC"; then
9566 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9567 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9568 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9569 else
9570 allow_undefined_flag=' -expect_unresolved \*'
9571 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9572 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9573 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
9574
9575 # Both c and cxx compiler support -rpath directly
9576 hardcode_libdir_flag_spec='-rpath $libdir'
9577 fi
9578 archive_cmds_need_lc='no'
9579 hardcode_libdir_separator=:
9580 ;;
9581
9582 solaris*)
9583 no_undefined_flag=' -z defs'
9584 if test yes = "$GCC"; then
9585 wlarc='$wl'
9586 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9587 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9588 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9589 else
9590 case `$CC -V 2>&1` in
9591 *"Compilers 5.0"*)
9592 wlarc=''
9593 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9594 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9595 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9596 ;;
9597 *)
9598 wlarc='$wl'
9599 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9600 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9601 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9602 ;;
9603 esac
9604 fi
9605 hardcode_libdir_flag_spec='-R$libdir'
9606 hardcode_shlibpath_var=no
9607 case $host_os in
9608 solaris2.[0-5] | solaris2.[0-5].*) ;;
9609 *)
9610 # The compiler driver will combine and reorder linker options,
9611 # but understands '-z linker_flag'. GCC discards it without '$wl',
9612 # but is careful enough not to reorder.
9613 # Supported since Solaris 2.6 (maybe 2.5.1?)
9614 if test yes = "$GCC"; then
9615 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9616 else
9617 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9618 fi
9619 ;;
9620 esac
9621 link_all_deplibs=yes
9622 ;;
9623
9624 sunos4*)
9625 if test sequent = "$host_vendor"; then
9626 # Use $CC to link under sequent, because it throws in some extra .o
9627 # files that make .init and .fini sections work.
9628 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9629 else
9630 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9631 fi
9632 hardcode_libdir_flag_spec='-L$libdir'
9633 hardcode_direct=yes
9634 hardcode_minus_L=yes
9635 hardcode_shlibpath_var=no
9636 ;;
9637
9638 sysv4)
9639 case $host_vendor in
9640 sni)
9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_direct=yes # is this really true???
9643 ;;
9644 siemens)
9645 ## LD is ld it makes a PLAMLIB
9646 ## CC just makes a GrossModule.
9647 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9648 reload_cmds='$CC -r -o $output$reload_objs'
9649 hardcode_direct=no
9650 ;;
9651 motorola)
9652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9654 ;;
9655 esac
9656 runpath_var='LD_RUN_PATH'
9657 hardcode_shlibpath_var=no
9658 ;;
9659
9660 sysv4.3*)
9661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9662 hardcode_shlibpath_var=no
9663 export_dynamic_flag_spec='-Bexport'
9664 ;;
9665
9666 sysv4*MP*)
9667 if test -d /usr/nec; then
9668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_shlibpath_var=no
9670 runpath_var=LD_RUN_PATH
9671 hardcode_runpath_var=yes
9672 ld_shlibs=yes
9673 fi
9674 ;;
9675
9676 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9677 no_undefined_flag='$wl-z,text'
9678 archive_cmds_need_lc=no
9679 hardcode_shlibpath_var=no
9680 runpath_var='LD_RUN_PATH'
9681
9682 if test yes = "$GCC"; then
9683 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9684 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9685 else
9686 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9687 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9688 fi
9689 ;;
9690
9691 sysv5* | sco3.2v5* | sco5v6*)
9692 # Note: We CANNOT use -z defs as we might desire, because we do not
9693 # link with -lc, and that would cause any symbols used from libc to
9694 # always be unresolved, which means just about no library would
9695 # ever link correctly. If we're not using GNU ld we use -z text
9696 # though, which does catch some bad symbols but isn't as heavy-handed
9697 # as -z defs.
9698 no_undefined_flag='$wl-z,text'
9699 allow_undefined_flag='$wl-z,nodefs'
9700 archive_cmds_need_lc=no
9701 hardcode_shlibpath_var=no
9702 hardcode_libdir_flag_spec='$wl-R,$libdir'
9703 hardcode_libdir_separator=':'
9704 link_all_deplibs=yes
9705 export_dynamic_flag_spec='$wl-Bexport'
9706 runpath_var='LD_RUN_PATH'
9707
9708 if test yes = "$GCC"; then
9709 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9710 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9711 else
9712 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714 fi
9715 ;;
9716
9717 uts4*)
9718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_libdir_flag_spec='-L$libdir'
9720 hardcode_shlibpath_var=no
9721 ;;
9722
9723 *)
9724 ld_shlibs=no
9725 ;;
9726 esac
9727
9728 if test sni = "$host_vendor"; then
9729 case $host in
9730 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9731 export_dynamic_flag_spec='$wl-Blargedynsym'
9732 ;;
9733 esac
9734 fi
9735 fi
9736
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9738 $as_echo "$ld_shlibs" >&6; }
9739 test no = "$ld_shlibs" && can_build_shared=no
9740
9741 with_gnu_ld=$with_gnu_ld
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757 #
9758 # Do we need to explicitly link libc?
9759 #
9760 case "x$archive_cmds_need_lc" in
9761 x|xyes)
9762 # Assume -lc should be added
9763 archive_cmds_need_lc=yes
9764
9765 if test yes,yes = "$GCC,$enable_shared"; then
9766 case $archive_cmds in
9767 *'~'*)
9768 # FIXME: we may have to deal with multi-command sequences.
9769 ;;
9770 '$CC '*)
9771 # Test whether the compiler implicitly links with -lc since on some
9772 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9773 # to ld, don't add -lc before -lgcc.
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9775 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9776 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9777 $as_echo_n "(cached) " >&6
9778 else
9779 $RM conftest*
9780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9781
9782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9783 (eval $ac_compile) 2>&5
9784 ac_status=$?
9785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9786 test $ac_status = 0; } 2>conftest.err; then
9787 soname=conftest
9788 lib=conftest
9789 libobjs=conftest.$ac_objext
9790 deplibs=
9791 wl=$lt_prog_compiler_wl
9792 pic_flag=$lt_prog_compiler_pic
9793 compiler_flags=-v
9794 linker_flags=-v
9795 verstring=
9796 output_objdir=.
9797 libname=conftest
9798 lt_save_allow_undefined_flag=$allow_undefined_flag
9799 allow_undefined_flag=
9800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9801 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9802 ac_status=$?
9803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9804 test $ac_status = 0; }
9805 then
9806 lt_cv_archive_cmds_need_lc=no
9807 else
9808 lt_cv_archive_cmds_need_lc=yes
9809 fi
9810 allow_undefined_flag=$lt_save_allow_undefined_flag
9811 else
9812 cat conftest.err 1>&5
9813 fi
9814 $RM conftest*
9815
9816 fi
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9818 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9819 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9820 ;;
9821 esac
9822 fi
9823 ;;
9824 esac
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9978 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9979
9980 if test yes = "$GCC"; then
9981 case $host_os in
9982 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9983 *) lt_awk_arg='/^libraries:/' ;;
9984 esac
9985 case $host_os in
9986 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9987 *) lt_sed_strip_eq='s|=/|/|g' ;;
9988 esac
9989 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9990 case $lt_search_path_spec in
9991 *\;*)
9992 # if the path contains ";" then we assume it to be the separator
9993 # otherwise default to the standard path separator (i.e. ":") - it is
9994 # assumed that no part of a normal pathname contains ";" but that should
9995 # okay in the real world where ";" in dirpaths is itself problematic.
9996 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9997 ;;
9998 *)
9999 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10000 ;;
10001 esac
10002 # Ok, now we have the path, separated by spaces, we can step through it
10003 # and add multilib dir if necessary...
10004 lt_tmp_lt_search_path_spec=
10005 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10006 # ...but if some path component already ends with the multilib dir we assume
10007 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10008 case "$lt_multi_os_dir; $lt_search_path_spec " in
10009 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10010 lt_multi_os_dir=
10011 ;;
10012 esac
10013 for lt_sys_path in $lt_search_path_spec; do
10014 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10015 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10016 elif test -n "$lt_multi_os_dir"; then
10017 test -d "$lt_sys_path" && \
10018 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10019 fi
10020 done
10021 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10022 BEGIN {RS = " "; FS = "/|\n";} {
10023 lt_foo = "";
10024 lt_count = 0;
10025 for (lt_i = NF; lt_i > 0; lt_i--) {
10026 if ($lt_i != "" && $lt_i != ".") {
10027 if ($lt_i == "..") {
10028 lt_count++;
10029 } else {
10030 if (lt_count == 0) {
10031 lt_foo = "/" $lt_i lt_foo;
10032 } else {
10033 lt_count--;
10034 }
10035 }
10036 }
10037 }
10038 if (lt_foo != "") { lt_freq[lt_foo]++; }
10039 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10040 }'`
10041 # AWK program above erroneously prepends '/' to C:/dos/paths
10042 # for these hosts.
10043 case $host_os in
10044 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10045 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10046 esac
10047 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10048 else
10049 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10050 fi
10051 library_names_spec=
10052 libname_spec='lib$name'
10053 soname_spec=
10054 shrext_cmds=.so
10055 postinstall_cmds=
10056 postuninstall_cmds=
10057 finish_cmds=
10058 finish_eval=
10059 shlibpath_var=
10060 shlibpath_overrides_runpath=unknown
10061 version_type=none
10062 dynamic_linker="$host_os ld.so"
10063 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10064 need_lib_prefix=unknown
10065 hardcode_into_libs=no
10066
10067 # when you set need_version to no, make sure it does not cause -set_version
10068 # flags to be left without arguments
10069 need_version=unknown
10070
10071
10072
10073 case $host_os in
10074 aix3*)
10075 version_type=linux # correct to gnu/linux during the next big refactor
10076 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10077 shlibpath_var=LIBPATH
10078
10079 # AIX 3 has no versioning support, so we append a major version to the name.
10080 soname_spec='$libname$release$shared_ext$major'
10081 ;;
10082
10083 aix[4-9]*)
10084 version_type=linux # correct to gnu/linux during the next big refactor
10085 need_lib_prefix=no
10086 need_version=no
10087 hardcode_into_libs=yes
10088 if test ia64 = "$host_cpu"; then
10089 # AIX 5 supports IA64
10090 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10091 shlibpath_var=LD_LIBRARY_PATH
10092 else
10093 # With GCC up to 2.95.x, collect2 would create an import file
10094 # for dependence libraries. The import file would start with
10095 # the line '#! .'. This would cause the generated library to
10096 # depend on '.', always an invalid library. This was fixed in
10097 # development snapshots of GCC prior to 3.0.
10098 case $host_os in
10099 aix4 | aix4.[01] | aix4.[01].*)
10100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10101 echo ' yes '
10102 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10103 :
10104 else
10105 can_build_shared=no
10106 fi
10107 ;;
10108 esac
10109 # Using Import Files as archive members, it is possible to support
10110 # filename-based versioning of shared library archives on AIX. While
10111 # this would work for both with and without runtime linking, it will
10112 # prevent static linking of such archives. So we do filename-based
10113 # shared library versioning with .so extension only, which is used
10114 # when both runtime linking and shared linking is enabled.
10115 # Unfortunately, runtime linking may impact performance, so we do
10116 # not want this to be the default eventually. Also, we use the
10117 # versioned .so libs for executables only if there is the -brtl
10118 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10119 # To allow for filename-based versioning support, we need to create
10120 # libNAME.so.V as an archive file, containing:
10121 # *) an Import File, referring to the versioned filename of the
10122 # archive as well as the shared archive member, telling the
10123 # bitwidth (32 or 64) of that shared object, and providing the
10124 # list of exported symbols of that shared object, eventually
10125 # decorated with the 'weak' keyword
10126 # *) the shared object with the F_LOADONLY flag set, to really avoid
10127 # it being seen by the linker.
10128 # At run time we better use the real file rather than another symlink,
10129 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10130
10131 case $with_aix_soname,$aix_use_runtimelinking in
10132 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10133 # soname into executable. Probably we can add versioning support to
10134 # collect2, so additional links can be useful in future.
10135 aix,yes) # traditional libtool
10136 dynamic_linker='AIX unversionable lib.so'
10137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10138 # instead of lib<name>.a to let people know that these are not
10139 # typical AIX shared libraries.
10140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10141 ;;
10142 aix,no) # traditional AIX only
10143 dynamic_linker='AIX lib.a(lib.so.V)'
10144 # We preserve .a as extension for shared libraries through AIX4.2
10145 # and later when we are not doing run time linking.
10146 library_names_spec='$libname$release.a $libname.a'
10147 soname_spec='$libname$release$shared_ext$major'
10148 ;;
10149 svr4,*) # full svr4 only
10150 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10151 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10152 # We do not specify a path in Import Files, so LIBPATH fires.
10153 shlibpath_overrides_runpath=yes
10154 ;;
10155 *,yes) # both, prefer svr4
10156 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10157 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10158 # unpreferred sharedlib libNAME.a needs extra handling
10159 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10160 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10161 # We do not specify a path in Import Files, so LIBPATH fires.
10162 shlibpath_overrides_runpath=yes
10163 ;;
10164 *,no) # both, prefer aix
10165 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10166 library_names_spec='$libname$release.a $libname.a'
10167 soname_spec='$libname$release$shared_ext$major'
10168 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10169 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10170 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10171 ;;
10172 esac
10173 shlibpath_var=LIBPATH
10174 fi
10175 ;;
10176
10177 amigaos*)
10178 case $host_cpu in
10179 powerpc)
10180 # Since July 2007 AmigaOS4 officially supports .so libraries.
10181 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10183 ;;
10184 m68k)
10185 library_names_spec='$libname.ixlibrary $libname.a'
10186 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10187 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10188 ;;
10189 esac
10190 ;;
10191
10192 beos*)
10193 library_names_spec='$libname$shared_ext'
10194 dynamic_linker="$host_os ld.so"
10195 shlibpath_var=LIBRARY_PATH
10196 ;;
10197
10198 bsdi[45]*)
10199 version_type=linux # correct to gnu/linux during the next big refactor
10200 need_version=no
10201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10202 soname_spec='$libname$release$shared_ext$major'
10203 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10206 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10207 # the default ld.so.conf also contains /usr/contrib/lib and
10208 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10209 # libtool to hard-code these into programs
10210 ;;
10211
10212 cygwin* | mingw* | pw32* | cegcc*)
10213 version_type=windows
10214 shrext_cmds=.dll
10215 need_version=no
10216 need_lib_prefix=no
10217
10218 case $GCC,$cc_basename in
10219 yes,*)
10220 # gcc
10221 library_names_spec='$libname.dll.a'
10222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10223 postinstall_cmds='base_file=`basename \$file`~
10224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10225 dldir=$destdir/`dirname \$dlpath`~
10226 test -d \$dldir || mkdir -p \$dldir~
10227 $install_prog $dir/$dlname \$dldir/$dlname~
10228 chmod a+x \$dldir/$dlname~
10229 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10230 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10231 fi'
10232 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10233 dlpath=$dir/\$dldll~
10234 $RM \$dlpath'
10235 shlibpath_overrides_runpath=yes
10236
10237 case $host_os in
10238 cygwin*)
10239 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10240 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10241
10242 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10243 ;;
10244 mingw* | cegcc*)
10245 # MinGW DLLs use traditional 'lib' prefix
10246 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10247 ;;
10248 pw32*)
10249 # pw32 DLLs use 'pw' prefix rather than 'lib'
10250 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10251 ;;
10252 esac
10253 dynamic_linker='Win32 ld.exe'
10254 ;;
10255
10256 *,cl*)
10257 # Native MSVC
10258 libname_spec='$name'
10259 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10260 library_names_spec='$libname.dll.lib'
10261
10262 case $build_os in
10263 mingw*)
10264 sys_lib_search_path_spec=
10265 lt_save_ifs=$IFS
10266 IFS=';'
10267 for lt_path in $LIB
10268 do
10269 IFS=$lt_save_ifs
10270 # Let DOS variable expansion print the short 8.3 style file name.
10271 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10272 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10273 done
10274 IFS=$lt_save_ifs
10275 # Convert to MSYS style.
10276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10277 ;;
10278 cygwin*)
10279 # Convert to unix form, then to dos form, then back to unix form
10280 # but this time dos style (no spaces!) so that the unix form looks
10281 # like /cygdrive/c/PROGRA~1:/cygdr...
10282 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10283 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10284 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10285 ;;
10286 *)
10287 sys_lib_search_path_spec=$LIB
10288 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10289 # It is most probably a Windows format PATH.
10290 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10291 else
10292 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10293 fi
10294 # FIXME: find the short name or the path components, as spaces are
10295 # common. (e.g. "Program Files" -> "PROGRA~1")
10296 ;;
10297 esac
10298
10299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10300 postinstall_cmds='base_file=`basename \$file`~
10301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10302 dldir=$destdir/`dirname \$dlpath`~
10303 test -d \$dldir || mkdir -p \$dldir~
10304 $install_prog $dir/$dlname \$dldir/$dlname'
10305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10306 dlpath=$dir/\$dldll~
10307 $RM \$dlpath'
10308 shlibpath_overrides_runpath=yes
10309 dynamic_linker='Win32 link.exe'
10310 ;;
10311
10312 *)
10313 # Assume MSVC wrapper
10314 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10315 dynamic_linker='Win32 ld.exe'
10316 ;;
10317 esac
10318 # FIXME: first we should search . and the directory the executable is in
10319 shlibpath_var=PATH
10320 ;;
10321
10322 darwin* | rhapsody*)
10323 dynamic_linker="$host_os dyld"
10324 version_type=darwin
10325 need_lib_prefix=no
10326 need_version=no
10327 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10328 soname_spec='$libname$release$major$shared_ext'
10329 shlibpath_overrides_runpath=yes
10330 shlibpath_var=DYLD_LIBRARY_PATH
10331 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10332
10333 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10334 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10335 ;;
10336
10337 dgux*)
10338 version_type=linux # correct to gnu/linux during the next big refactor
10339 need_lib_prefix=no
10340 need_version=no
10341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10342 soname_spec='$libname$release$shared_ext$major'
10343 shlibpath_var=LD_LIBRARY_PATH
10344 ;;
10345
10346 freebsd* | dragonfly*)
10347 # DragonFly does not have aout. When/if they implement a new
10348 # versioning mechanism, adjust this.
10349 if test -x /usr/bin/objformat; then
10350 objformat=`/usr/bin/objformat`
10351 else
10352 case $host_os in
10353 freebsd[23].*) objformat=aout ;;
10354 *) objformat=elf ;;
10355 esac
10356 fi
10357 version_type=freebsd-$objformat
10358 case $version_type in
10359 freebsd-elf*)
10360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10361 soname_spec='$libname$release$shared_ext$major'
10362 need_version=no
10363 need_lib_prefix=no
10364 ;;
10365 freebsd-*)
10366 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10367 need_version=yes
10368 ;;
10369 esac
10370 shlibpath_var=LD_LIBRARY_PATH
10371 case $host_os in
10372 freebsd2.*)
10373 shlibpath_overrides_runpath=yes
10374 ;;
10375 freebsd3.[01]* | freebsdelf3.[01]*)
10376 shlibpath_overrides_runpath=yes
10377 hardcode_into_libs=yes
10378 ;;
10379 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10380 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10381 shlibpath_overrides_runpath=no
10382 hardcode_into_libs=yes
10383 ;;
10384 *) # from 4.6 on, and DragonFly
10385 shlibpath_overrides_runpath=yes
10386 hardcode_into_libs=yes
10387 ;;
10388 esac
10389 ;;
10390
10391 haiku*)
10392 version_type=linux # correct to gnu/linux during the next big refactor
10393 need_lib_prefix=no
10394 need_version=no
10395 dynamic_linker="$host_os runtime_loader"
10396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10397 soname_spec='$libname$release$shared_ext$major'
10398 shlibpath_var=LIBRARY_PATH
10399 shlibpath_overrides_runpath=no
10400 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10401 hardcode_into_libs=yes
10402 ;;
10403
10404 hpux9* | hpux10* | hpux11*)
10405 # Give a soname corresponding to the major version so that dld.sl refuses to
10406 # link against other versions.
10407 version_type=sunos
10408 need_lib_prefix=no
10409 need_version=no
10410 case $host_cpu in
10411 ia64*)
10412 shrext_cmds='.so'
10413 hardcode_into_libs=yes
10414 dynamic_linker="$host_os dld.so"
10415 shlibpath_var=LD_LIBRARY_PATH
10416 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10418 soname_spec='$libname$release$shared_ext$major'
10419 if test 32 = "$HPUX_IA64_MODE"; then
10420 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10421 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10422 else
10423 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10424 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10425 fi
10426 ;;
10427 hppa*64*)
10428 shrext_cmds='.sl'
10429 hardcode_into_libs=yes
10430 dynamic_linker="$host_os dld.sl"
10431 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10434 soname_spec='$libname$release$shared_ext$major'
10435 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10437 ;;
10438 *)
10439 shrext_cmds='.sl'
10440 dynamic_linker="$host_os dld.sl"
10441 shlibpath_var=SHLIB_PATH
10442 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10444 soname_spec='$libname$release$shared_ext$major'
10445 ;;
10446 esac
10447 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10448 postinstall_cmds='chmod 555 $lib'
10449 # or fails outright, so override atomically:
10450 install_override_mode=555
10451 ;;
10452
10453 interix[3-9]*)
10454 version_type=linux # correct to gnu/linux during the next big refactor
10455 need_lib_prefix=no
10456 need_version=no
10457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10458 soname_spec='$libname$release$shared_ext$major'
10459 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=no
10462 hardcode_into_libs=yes
10463 ;;
10464
10465 irix5* | irix6* | nonstopux*)
10466 case $host_os in
10467 nonstopux*) version_type=nonstopux ;;
10468 *)
10469 if test yes = "$lt_cv_prog_gnu_ld"; then
10470 version_type=linux # correct to gnu/linux during the next big refactor
10471 else
10472 version_type=irix
10473 fi ;;
10474 esac
10475 need_lib_prefix=no
10476 need_version=no
10477 soname_spec='$libname$release$shared_ext$major'
10478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10479 case $host_os in
10480 irix5* | nonstopux*)
10481 libsuff= shlibsuff=
10482 ;;
10483 *)
10484 case $LD in # libtool.m4 will add one of these switches to LD
10485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10486 libsuff= shlibsuff= libmagic=32-bit;;
10487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10488 libsuff=32 shlibsuff=N32 libmagic=N32;;
10489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10490 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10491 *) libsuff= shlibsuff= libmagic=never-match;;
10492 esac
10493 ;;
10494 esac
10495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10496 shlibpath_overrides_runpath=no
10497 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10498 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10499 hardcode_into_libs=yes
10500 ;;
10501
10502 # No shared lib support for Linux oldld, aout, or coff.
10503 linux*oldld* | linux*aout* | linux*coff*)
10504 dynamic_linker=no
10505 ;;
10506
10507 linux*android*)
10508 version_type=none # Android doesn't support versioned libraries.
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='$libname$release$shared_ext'
10512 soname_spec='$libname$release$shared_ext'
10513 finish_cmds=
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=yes
10516
10517 # This implies no fast_install, which is unacceptable.
10518 # Some rework will be needed to allow for fast_install
10519 # before this can be enabled.
10520 hardcode_into_libs=yes
10521
10522 dynamic_linker='Android linker'
10523 # Don't embed -rpath directories since the linker doesn't support them.
10524 hardcode_libdir_flag_spec='-L$libdir'
10525 ;;
10526
10527 # This must be glibc/ELF.
10528 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10529 version_type=linux # correct to gnu/linux during the next big refactor
10530 need_lib_prefix=no
10531 need_version=no
10532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10533 soname_spec='$libname$release$shared_ext$major'
10534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=no
10537
10538 # Some binutils ld are patched to set DT_RUNPATH
10539 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 lt_cv_shlibpath_overrides_runpath=no
10543 save_LDFLAGS=$LDFLAGS
10544 save_libdir=$libdir
10545 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10546 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549
10550 int
10551 main ()
10552 {
10553
10554 ;
10555 return 0;
10556 }
10557 _ACEOF
10558 if ac_fn_c_try_link "$LINENO"; then :
10559 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10560 lt_cv_shlibpath_overrides_runpath=yes
10561 fi
10562 fi
10563 rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10565 LDFLAGS=$save_LDFLAGS
10566 libdir=$save_libdir
10567
10568 fi
10569
10570 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10571
10572 # This implies no fast_install, which is unacceptable.
10573 # Some rework will be needed to allow for fast_install
10574 # before this can be enabled.
10575 hardcode_into_libs=yes
10576
10577 # Ideally, we could use ldconfig to report *all* directores which are
10578 # searched for libraries, however this is still not possible. Aside from not
10579 # being certain /sbin/ldconfig is available, command
10580 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10581 # even though it is searched at run-time. Try to do the best guess by
10582 # appending ld.so.conf contents (and includes) to the search path.
10583 if test -f /etc/ld.so.conf; then
10584 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10585 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10586 fi
10587
10588 # We used to test for /lib/ld.so.1 and disable shared libraries on
10589 # powerpc, because MkLinux only supported shared libraries with the
10590 # GNU dynamic linker. Since this was broken with cross compilers,
10591 # most powerpc-linux boxes support dynamic linking these days and
10592 # people can always --disable-shared, the test was removed, and we
10593 # assume the GNU/Linux dynamic linker is in use.
10594 dynamic_linker='GNU/Linux ld.so'
10595 ;;
10596
10597 netbsd*)
10598 version_type=sunos
10599 need_lib_prefix=no
10600 need_version=no
10601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10602 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10604 dynamic_linker='NetBSD (a.out) ld.so'
10605 else
10606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10607 soname_spec='$libname$release$shared_ext$major'
10608 dynamic_linker='NetBSD ld.elf_so'
10609 fi
10610 shlibpath_var=LD_LIBRARY_PATH
10611 shlibpath_overrides_runpath=yes
10612 hardcode_into_libs=yes
10613 ;;
10614
10615 newsos6)
10616 version_type=linux # correct to gnu/linux during the next big refactor
10617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=yes
10620 ;;
10621
10622 *nto* | *qnx*)
10623 version_type=qnx
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10627 soname_spec='$libname$release$shared_ext$major'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=no
10630 hardcode_into_libs=yes
10631 dynamic_linker='ldqnx.so'
10632 ;;
10633
10634 openbsd* | bitrig*)
10635 version_type=sunos
10636 sys_lib_dlsearch_path_spec=/usr/lib
10637 need_lib_prefix=no
10638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10639 need_version=no
10640 else
10641 need_version=yes
10642 fi
10643 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 shlibpath_overrides_runpath=yes
10647 ;;
10648
10649 os2*)
10650 libname_spec='$name'
10651 version_type=windows
10652 shrext_cmds=.dll
10653 need_version=no
10654 need_lib_prefix=no
10655 # OS/2 can only load a DLL with a base name of 8 characters or less.
10656 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10657 v=$($ECHO $release$versuffix | tr -d .-);
10658 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10659 $ECHO $n$v`$shared_ext'
10660 library_names_spec='${libname}_dll.$libext'
10661 dynamic_linker='OS/2 ld.exe'
10662 shlibpath_var=BEGINLIBPATH
10663 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10665 postinstall_cmds='base_file=`basename \$file`~
10666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10667 dldir=$destdir/`dirname \$dlpath`~
10668 test -d \$dldir || mkdir -p \$dldir~
10669 $install_prog $dir/$dlname \$dldir/$dlname~
10670 chmod a+x \$dldir/$dlname~
10671 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10672 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10673 fi'
10674 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10675 dlpath=$dir/\$dldll~
10676 $RM \$dlpath'
10677 ;;
10678
10679 osf3* | osf4* | osf5*)
10680 version_type=osf
10681 need_lib_prefix=no
10682 need_version=no
10683 soname_spec='$libname$release$shared_ext$major'
10684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10688 ;;
10689
10690 rdos*)
10691 dynamic_linker=no
10692 ;;
10693
10694 solaris*)
10695 version_type=linux # correct to gnu/linux during the next big refactor
10696 need_lib_prefix=no
10697 need_version=no
10698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10699 soname_spec='$libname$release$shared_ext$major'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 shlibpath_overrides_runpath=yes
10702 hardcode_into_libs=yes
10703 # ldd complains unless libraries are executable
10704 postinstall_cmds='chmod +x $lib'
10705 ;;
10706
10707 sunos4*)
10708 version_type=sunos
10709 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10710 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10711 shlibpath_var=LD_LIBRARY_PATH
10712 shlibpath_overrides_runpath=yes
10713 if test yes = "$with_gnu_ld"; then
10714 need_lib_prefix=no
10715 fi
10716 need_version=yes
10717 ;;
10718
10719 sysv4 | sysv4.3*)
10720 version_type=linux # correct to gnu/linux during the next big refactor
10721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10722 soname_spec='$libname$release$shared_ext$major'
10723 shlibpath_var=LD_LIBRARY_PATH
10724 case $host_vendor in
10725 sni)
10726 shlibpath_overrides_runpath=no
10727 need_lib_prefix=no
10728 runpath_var=LD_RUN_PATH
10729 ;;
10730 siemens)
10731 need_lib_prefix=no
10732 ;;
10733 motorola)
10734 need_lib_prefix=no
10735 need_version=no
10736 shlibpath_overrides_runpath=no
10737 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10738 ;;
10739 esac
10740 ;;
10741
10742 sysv4*MP*)
10743 if test -d /usr/nec; then
10744 version_type=linux # correct to gnu/linux during the next big refactor
10745 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10746 soname_spec='$libname$shared_ext.$major'
10747 shlibpath_var=LD_LIBRARY_PATH
10748 fi
10749 ;;
10750
10751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10752 version_type=sco
10753 need_lib_prefix=no
10754 need_version=no
10755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10756 soname_spec='$libname$release$shared_ext$major'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 shlibpath_overrides_runpath=yes
10759 hardcode_into_libs=yes
10760 if test yes = "$with_gnu_ld"; then
10761 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10762 else
10763 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10764 case $host_os in
10765 sco3.2v5*)
10766 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10767 ;;
10768 esac
10769 fi
10770 sys_lib_dlsearch_path_spec='/usr/lib'
10771 ;;
10772
10773 tpf*)
10774 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10775 version_type=linux # correct to gnu/linux during the next big refactor
10776 need_lib_prefix=no
10777 need_version=no
10778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10779 shlibpath_var=LD_LIBRARY_PATH
10780 shlibpath_overrides_runpath=no
10781 hardcode_into_libs=yes
10782 ;;
10783
10784 uts4*)
10785 version_type=linux # correct to gnu/linux during the next big refactor
10786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10787 soname_spec='$libname$release$shared_ext$major'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 ;;
10790
10791 *)
10792 dynamic_linker=no
10793 ;;
10794 esac
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10796 $as_echo "$dynamic_linker" >&6; }
10797 test no = "$dynamic_linker" && can_build_shared=no
10798
10799 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10800 if test yes = "$GCC"; then
10801 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10802 fi
10803
10804 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10805 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10806 fi
10807
10808 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10809 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10810 fi
10811
10812 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10813 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10814
10815 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10816 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10817
10818 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10819 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10918 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10919 hardcode_action=
10920 if test -n "$hardcode_libdir_flag_spec" ||
10921 test -n "$runpath_var" ||
10922 test yes = "$hardcode_automatic"; then
10923
10924 # We can hardcode non-existent directories.
10925 if test no != "$hardcode_direct" &&
10926 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10927 # have to relink, otherwise we might link with an installed library
10928 # when we should be linking with a yet-to-be-installed one
10929 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10930 test no != "$hardcode_minus_L"; then
10931 # Linking always hardcodes the temporary library directory.
10932 hardcode_action=relink
10933 else
10934 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10935 hardcode_action=immediate
10936 fi
10937 else
10938 # We cannot hardcode anything, or else we can only hardcode existing
10939 # directories.
10940 hardcode_action=unsupported
10941 fi
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10943 $as_echo "$hardcode_action" >&6; }
10944
10945 if test relink = "$hardcode_action" ||
10946 test yes = "$inherit_rpath"; then
10947 # Fast installation is not supported
10948 enable_fast_install=no
10949 elif test yes = "$shlibpath_overrides_runpath" ||
10950 test no = "$enable_shared"; then
10951 # Fast installation is not necessary
10952 enable_fast_install=needless
10953 fi
10954
10955
10956
10957
10958
10959
10960 if test yes != "$enable_dlopen"; then
10961 enable_dlopen=unknown
10962 enable_dlopen_self=unknown
10963 enable_dlopen_self_static=unknown
10964 else
10965 lt_cv_dlopen=no
10966 lt_cv_dlopen_libs=
10967
10968 case $host_os in
10969 beos*)
10970 lt_cv_dlopen=load_add_on
10971 lt_cv_dlopen_libs=
10972 lt_cv_dlopen_self=yes
10973 ;;
10974
10975 mingw* | pw32* | cegcc*)
10976 lt_cv_dlopen=LoadLibrary
10977 lt_cv_dlopen_libs=
10978 ;;
10979
10980 cygwin*)
10981 lt_cv_dlopen=dlopen
10982 lt_cv_dlopen_libs=
10983 ;;
10984
10985 darwin*)
10986 # if libdl is installed we need to link against it
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10988 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10989 if ${ac_cv_lib_dl_dlopen+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-ldl $LIBS"
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10996
10997 /* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
11000 #ifdef __cplusplus
11001 extern "C"
11002 #endif
11003 char dlopen ();
11004 int
11005 main ()
11006 {
11007 return dlopen ();
11008 ;
11009 return 0;
11010 }
11011 _ACEOF
11012 if ac_fn_c_try_link "$LINENO"; then :
11013 ac_cv_lib_dl_dlopen=yes
11014 else
11015 ac_cv_lib_dl_dlopen=no
11016 fi
11017 rm -f core conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11020 fi
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11022 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11023 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11024 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11025 else
11026
11027 lt_cv_dlopen=dyld
11028 lt_cv_dlopen_libs=
11029 lt_cv_dlopen_self=yes
11030
11031 fi
11032
11033 ;;
11034
11035 tpf*)
11036 # Don't try to run any link tests for TPF. We know it's impossible
11037 # because TPF is a cross-compiler, and we know how we open DSOs.
11038 lt_cv_dlopen=dlopen
11039 lt_cv_dlopen_libs=
11040 lt_cv_dlopen_self=no
11041 ;;
11042
11043 *)
11044 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11045 if test "x$ac_cv_func_shl_load" = xyes; then :
11046 lt_cv_dlopen=shl_load
11047 else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11049 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11050 if ${ac_cv_lib_dld_shl_load+:} false; then :
11051 $as_echo_n "(cached) " >&6
11052 else
11053 ac_check_lib_save_LIBS=$LIBS
11054 LIBS="-ldld $LIBS"
11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h. */
11057
11058 /* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11061 #ifdef __cplusplus
11062 extern "C"
11063 #endif
11064 char shl_load ();
11065 int
11066 main ()
11067 {
11068 return shl_load ();
11069 ;
11070 return 0;
11071 }
11072 _ACEOF
11073 if ac_fn_c_try_link "$LINENO"; then :
11074 ac_cv_lib_dld_shl_load=yes
11075 else
11076 ac_cv_lib_dld_shl_load=no
11077 fi
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080 LIBS=$ac_check_lib_save_LIBS
11081 fi
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11083 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11084 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11085 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11086 else
11087 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11088 if test "x$ac_cv_func_dlopen" = xyes; then :
11089 lt_cv_dlopen=dlopen
11090 else
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11092 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11093 if ${ac_cv_lib_dl_dlopen+:} false; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 ac_check_lib_save_LIBS=$LIBS
11097 LIBS="-ldl $LIBS"
11098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11100
11101 /* Override any GCC internal prototype to avoid an error.
11102 Use char because int might match the return type of a GCC
11103 builtin and then its argument prototype would still apply. */
11104 #ifdef __cplusplus
11105 extern "C"
11106 #endif
11107 char dlopen ();
11108 int
11109 main ()
11110 {
11111 return dlopen ();
11112 ;
11113 return 0;
11114 }
11115 _ACEOF
11116 if ac_fn_c_try_link "$LINENO"; then :
11117 ac_cv_lib_dl_dlopen=yes
11118 else
11119 ac_cv_lib_dl_dlopen=no
11120 fi
11121 rm -f core conftest.err conftest.$ac_objext \
11122 conftest$ac_exeext conftest.$ac_ext
11123 LIBS=$ac_check_lib_save_LIBS
11124 fi
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11126 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11127 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11128 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11129 else
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11131 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11132 if ${ac_cv_lib_svld_dlopen+:} false; then :
11133 $as_echo_n "(cached) " >&6
11134 else
11135 ac_check_lib_save_LIBS=$LIBS
11136 LIBS="-lsvld $LIBS"
11137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11138 /* end confdefs.h. */
11139
11140 /* Override any GCC internal prototype to avoid an error.
11141 Use char because int might match the return type of a GCC
11142 builtin and then its argument prototype would still apply. */
11143 #ifdef __cplusplus
11144 extern "C"
11145 #endif
11146 char dlopen ();
11147 int
11148 main ()
11149 {
11150 return dlopen ();
11151 ;
11152 return 0;
11153 }
11154 _ACEOF
11155 if ac_fn_c_try_link "$LINENO"; then :
11156 ac_cv_lib_svld_dlopen=yes
11157 else
11158 ac_cv_lib_svld_dlopen=no
11159 fi
11160 rm -f core conftest.err conftest.$ac_objext \
11161 conftest$ac_exeext conftest.$ac_ext
11162 LIBS=$ac_check_lib_save_LIBS
11163 fi
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11165 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11166 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11167 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11168 else
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11170 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11171 if ${ac_cv_lib_dld_dld_link+:} false; then :
11172 $as_echo_n "(cached) " >&6
11173 else
11174 ac_check_lib_save_LIBS=$LIBS
11175 LIBS="-ldld $LIBS"
11176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11178
11179 /* Override any GCC internal prototype to avoid an error.
11180 Use char because int might match the return type of a GCC
11181 builtin and then its argument prototype would still apply. */
11182 #ifdef __cplusplus
11183 extern "C"
11184 #endif
11185 char dld_link ();
11186 int
11187 main ()
11188 {
11189 return dld_link ();
11190 ;
11191 return 0;
11192 }
11193 _ACEOF
11194 if ac_fn_c_try_link "$LINENO"; then :
11195 ac_cv_lib_dld_dld_link=yes
11196 else
11197 ac_cv_lib_dld_dld_link=no
11198 fi
11199 rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 LIBS=$ac_check_lib_save_LIBS
11202 fi
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11204 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11205 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11206 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11207 fi
11208
11209
11210 fi
11211
11212
11213 fi
11214
11215
11216 fi
11217
11218
11219 fi
11220
11221
11222 fi
11223
11224 ;;
11225 esac
11226
11227 if test no = "$lt_cv_dlopen"; then
11228 enable_dlopen=no
11229 else
11230 enable_dlopen=yes
11231 fi
11232
11233 case $lt_cv_dlopen in
11234 dlopen)
11235 save_CPPFLAGS=$CPPFLAGS
11236 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11237
11238 save_LDFLAGS=$LDFLAGS
11239 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11240
11241 save_LIBS=$LIBS
11242 LIBS="$lt_cv_dlopen_libs $LIBS"
11243
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11245 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11246 if ${lt_cv_dlopen_self+:} false; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 if test yes = "$cross_compiling"; then :
11250 lt_cv_dlopen_self=cross
11251 else
11252 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11253 lt_status=$lt_dlunknown
11254 cat > conftest.$ac_ext <<_LT_EOF
11255 #line $LINENO "configure"
11256 #include "confdefs.h"
11257
11258 #if HAVE_DLFCN_H
11259 #include <dlfcn.h>
11260 #endif
11261
11262 #include <stdio.h>
11263
11264 #ifdef RTLD_GLOBAL
11265 # define LT_DLGLOBAL RTLD_GLOBAL
11266 #else
11267 # ifdef DL_GLOBAL
11268 # define LT_DLGLOBAL DL_GLOBAL
11269 # else
11270 # define LT_DLGLOBAL 0
11271 # endif
11272 #endif
11273
11274 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11275 find out it does not work in some platform. */
11276 #ifndef LT_DLLAZY_OR_NOW
11277 # ifdef RTLD_LAZY
11278 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11279 # else
11280 # ifdef DL_LAZY
11281 # define LT_DLLAZY_OR_NOW DL_LAZY
11282 # else
11283 # ifdef RTLD_NOW
11284 # define LT_DLLAZY_OR_NOW RTLD_NOW
11285 # else
11286 # ifdef DL_NOW
11287 # define LT_DLLAZY_OR_NOW DL_NOW
11288 # else
11289 # define LT_DLLAZY_OR_NOW 0
11290 # endif
11291 # endif
11292 # endif
11293 # endif
11294 #endif
11295
11296 /* When -fvisibility=hidden is used, assume the code has been annotated
11297 correspondingly for the symbols needed. */
11298 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11299 int fnord () __attribute__((visibility("default")));
11300 #endif
11301
11302 int fnord () { return 42; }
11303 int main ()
11304 {
11305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11306 int status = $lt_dlunknown;
11307
11308 if (self)
11309 {
11310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11311 else
11312 {
11313 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11314 else puts (dlerror ());
11315 }
11316 /* dlclose (self); */
11317 }
11318 else
11319 puts (dlerror ());
11320
11321 return status;
11322 }
11323 _LT_EOF
11324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11325 (eval $ac_link) 2>&5
11326 ac_status=$?
11327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11328 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11329 (./conftest; exit; ) >&5 2>/dev/null
11330 lt_status=$?
11331 case x$lt_status in
11332 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11333 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11334 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11335 esac
11336 else :
11337 # compilation failed
11338 lt_cv_dlopen_self=no
11339 fi
11340 fi
11341 rm -fr conftest*
11342
11343
11344 fi
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11346 $as_echo "$lt_cv_dlopen_self" >&6; }
11347
11348 if test yes = "$lt_cv_dlopen_self"; then
11349 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11351 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11352 if ${lt_cv_dlopen_self_static+:} false; then :
11353 $as_echo_n "(cached) " >&6
11354 else
11355 if test yes = "$cross_compiling"; then :
11356 lt_cv_dlopen_self_static=cross
11357 else
11358 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11359 lt_status=$lt_dlunknown
11360 cat > conftest.$ac_ext <<_LT_EOF
11361 #line $LINENO "configure"
11362 #include "confdefs.h"
11363
11364 #if HAVE_DLFCN_H
11365 #include <dlfcn.h>
11366 #endif
11367
11368 #include <stdio.h>
11369
11370 #ifdef RTLD_GLOBAL
11371 # define LT_DLGLOBAL RTLD_GLOBAL
11372 #else
11373 # ifdef DL_GLOBAL
11374 # define LT_DLGLOBAL DL_GLOBAL
11375 # else
11376 # define LT_DLGLOBAL 0
11377 # endif
11378 #endif
11379
11380 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11381 find out it does not work in some platform. */
11382 #ifndef LT_DLLAZY_OR_NOW
11383 # ifdef RTLD_LAZY
11384 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11385 # else
11386 # ifdef DL_LAZY
11387 # define LT_DLLAZY_OR_NOW DL_LAZY
11388 # else
11389 # ifdef RTLD_NOW
11390 # define LT_DLLAZY_OR_NOW RTLD_NOW
11391 # else
11392 # ifdef DL_NOW
11393 # define LT_DLLAZY_OR_NOW DL_NOW
11394 # else
11395 # define LT_DLLAZY_OR_NOW 0
11396 # endif
11397 # endif
11398 # endif
11399 # endif
11400 #endif
11401
11402 /* When -fvisibility=hidden is used, assume the code has been annotated
11403 correspondingly for the symbols needed. */
11404 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11405 int fnord () __attribute__((visibility("default")));
11406 #endif
11407
11408 int fnord () { return 42; }
11409 int main ()
11410 {
11411 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11412 int status = $lt_dlunknown;
11413
11414 if (self)
11415 {
11416 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11417 else
11418 {
11419 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11420 else puts (dlerror ());
11421 }
11422 /* dlclose (self); */
11423 }
11424 else
11425 puts (dlerror ());
11426
11427 return status;
11428 }
11429 _LT_EOF
11430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11431 (eval $ac_link) 2>&5
11432 ac_status=$?
11433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11434 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11435 (./conftest; exit; ) >&5 2>/dev/null
11436 lt_status=$?
11437 case x$lt_status in
11438 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11439 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11440 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11441 esac
11442 else :
11443 # compilation failed
11444 lt_cv_dlopen_self_static=no
11445 fi
11446 fi
11447 rm -fr conftest*
11448
11449
11450 fi
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11452 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11453 fi
11454
11455 CPPFLAGS=$save_CPPFLAGS
11456 LDFLAGS=$save_LDFLAGS
11457 LIBS=$save_LIBS
11458 ;;
11459 esac
11460
11461 case $lt_cv_dlopen_self in
11462 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11463 *) enable_dlopen_self=unknown ;;
11464 esac
11465
11466 case $lt_cv_dlopen_self_static in
11467 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11468 *) enable_dlopen_self_static=unknown ;;
11469 esac
11470 fi
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488 striplib=
11489 old_striplib=
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11491 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11492 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11493 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11494 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11496 $as_echo "yes" >&6; }
11497 else
11498 # FIXME - insert some real tests, host_os isn't really good enough
11499 case $host_os in
11500 darwin*)
11501 if test -n "$STRIP"; then
11502 striplib="$STRIP -x"
11503 old_striplib="$STRIP -S"
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11505 $as_echo "yes" >&6; }
11506 else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11509 fi
11510 ;;
11511 *)
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11514 ;;
11515 esac
11516 fi
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529 # Report what library types will actually be built
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11531 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11533 $as_echo "$can_build_shared" >&6; }
11534
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11536 $as_echo_n "checking whether to build shared libraries... " >&6; }
11537 test no = "$can_build_shared" && enable_shared=no
11538
11539 # On AIX, shared libraries and static libraries use the same namespace, and
11540 # are all built from PIC.
11541 case $host_os in
11542 aix3*)
11543 test yes = "$enable_shared" && enable_static=no
11544 if test -n "$RANLIB"; then
11545 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11546 postinstall_cmds='$RANLIB $lib'
11547 fi
11548 ;;
11549
11550 aix[4-9]*)
11551 if test ia64 != "$host_cpu"; then
11552 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11553 yes,aix,yes) ;; # shared object as lib.so file only
11554 yes,svr4,*) ;; # shared object as lib.so archive member only
11555 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11556 esac
11557 fi
11558 ;;
11559 esac
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11561 $as_echo "$enable_shared" >&6; }
11562
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11564 $as_echo_n "checking whether to build static libraries... " >&6; }
11565 # Make sure either enable_shared or enable_static is yes.
11566 test yes = "$enable_shared" || enable_static=yes
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11568 $as_echo "$enable_static" >&6; }
11569
11570
11571
11572
11573 fi
11574 ac_ext=c
11575 ac_cpp='$CPP $CPPFLAGS'
11576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11579
11580 CC=$lt_save_CC
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596 ac_config_commands="$ac_config_commands libtool"
11597
11598
11599
11600
11601 # Only expand once:
11602
11603
11604 # Find a good install program. We prefer a C program (faster),
11605 # so one script is as good as another. But avoid the broken or
11606 # incompatible versions:
11607 # SysV /etc/install, /usr/sbin/install
11608 # SunOS /usr/etc/install
11609 # IRIX /sbin/install
11610 # AIX /bin/install
11611 # AmigaOS /C/install, which installs bootblocks on floppy discs
11612 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11613 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11614 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11615 # OS/2's system install, which has a completely different semantic
11616 # ./install, which can be erroneously created by make from ./install.sh.
11617 # Reject install programs that cannot install multiple files.
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11619 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11620 if test -z "$INSTALL"; then
11621 if ${ac_cv_path_install+:} false; then :
11622 $as_echo_n "(cached) " >&6
11623 else
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11626 do
11627 IFS=$as_save_IFS
11628 test -z "$as_dir" && as_dir=.
11629 # Account for people who put trailing slashes in PATH elements.
11630 case $as_dir/ in #((
11631 ./ | .// | /[cC]/* | \
11632 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11633 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11634 /usr/ucb/* ) ;;
11635 *)
11636 # OSF1 and SCO ODT 3.0 have their own names for install.
11637 # Don't use installbsd from OSF since it installs stuff as root
11638 # by default.
11639 for ac_prog in ginstall scoinst install; do
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11642 if test $ac_prog = install &&
11643 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11644 # AIX install. It has an incompatible calling convention.
11645 :
11646 elif test $ac_prog = install &&
11647 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11648 # program-specific install script used by HP pwplus--don't use.
11649 :
11650 else
11651 rm -rf conftest.one conftest.two conftest.dir
11652 echo one > conftest.one
11653 echo two > conftest.two
11654 mkdir conftest.dir
11655 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11656 test -s conftest.one && test -s conftest.two &&
11657 test -s conftest.dir/conftest.one &&
11658 test -s conftest.dir/conftest.two
11659 then
11660 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11661 break 3
11662 fi
11663 fi
11664 fi
11665 done
11666 done
11667 ;;
11668 esac
11669
11670 done
11671 IFS=$as_save_IFS
11672
11673 rm -rf conftest.one conftest.two conftest.dir
11674
11675 fi
11676 if test "${ac_cv_path_install+set}" = set; then
11677 INSTALL=$ac_cv_path_install
11678 else
11679 # As a last resort, use the slow shell script. Don't cache a
11680 # value for INSTALL within a source directory, because that will
11681 # break other packages using the cache if that directory is
11682 # removed, or if the value is a relative name.
11683 INSTALL=$ac_install_sh
11684 fi
11685 fi
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11687 $as_echo "$INSTALL" >&6; }
11688
11689 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11690 # It thinks the first close brace ends the variable substitution.
11691 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11692
11693 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11694
11695 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11696
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11698 $as_echo_n "checking whether ln -s works... " >&6; }
11699 LN_S=$as_ln_s
11700 if test "$LN_S" = "ln -s"; then
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11702 $as_echo "yes" >&6; }
11703 else
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11705 $as_echo "no, using $LN_S" >&6; }
11706 fi
11707
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
11709 $as_echo_n "checking for a POSIX-compatible shell... " >&6; }
11710 if ${ac_cv_prog_shell+:} false; then :
11711 $as_echo_n "(cached) " >&6
11712 else
11713 ac_test_shell_script='
11714 test "$(expr 1 + 1)" = "2" &&
11715 test "$(( 1 + 1 ))" = "2"
11716 '
11717
11718 for ac_cv_prog_shell in \
11719 "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
11720 case $ac_cv_prog_shell in #(
11721 /*) :
11722
11723 if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
11724 break
11725 fi
11726 ;; #(
11727 *) :
11728 ;;
11729 esac
11730 done
11731
11732 fi
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
11734 $as_echo "$ac_cv_prog_shell" >&6; }
11735 if test "$ac_cv_prog_shell" = "no"; then :
11736 SHELL=/bin/sh
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
11738 $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
11739
11740 else
11741 SHELL="$ac_cv_prog_shell"
11742
11743 fi
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754 #
11755 # Use pkg-config
11756 #
11757
11758
11759
11760
11761
11762
11763
11764
11765 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11766 if test -n "$ac_tool_prefix"; then
11767 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11768 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770 $as_echo_n "checking for $ac_word... " >&6; }
11771 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 case $PKG_CONFIG in
11775 [\\/]* | ?:[\\/]*)
11776 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11777 ;;
11778 *)
11779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780 for as_dir in $PATH
11781 do
11782 IFS=$as_save_IFS
11783 test -z "$as_dir" && as_dir=.
11784 for ac_exec_ext in '' $ac_executable_extensions; do
11785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11786 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11788 break 2
11789 fi
11790 done
11791 done
11792 IFS=$as_save_IFS
11793
11794 ;;
11795 esac
11796 fi
11797 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11798 if test -n "$PKG_CONFIG"; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11800 $as_echo "$PKG_CONFIG" >&6; }
11801 else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11804 fi
11805
11806
11807 fi
11808 if test -z "$ac_cv_path_PKG_CONFIG"; then
11809 ac_pt_PKG_CONFIG=$PKG_CONFIG
11810 # Extract the first word of "pkg-config", so it can be a program name with args.
11811 set dummy pkg-config; ac_word=$2
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 $as_echo_n "checking for $ac_word... " >&6; }
11814 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 case $ac_pt_PKG_CONFIG in
11818 [\\/]* | ?:[\\/]*)
11819 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11820 ;;
11821 *)
11822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823 for as_dir in $PATH
11824 do
11825 IFS=$as_save_IFS
11826 test -z "$as_dir" && as_dir=.
11827 for ac_exec_ext in '' $ac_executable_extensions; do
11828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11829 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11831 break 2
11832 fi
11833 done
11834 done
11835 IFS=$as_save_IFS
11836
11837 ;;
11838 esac
11839 fi
11840 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11841 if test -n "$ac_pt_PKG_CONFIG"; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11843 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11847 fi
11848
11849 if test "x$ac_pt_PKG_CONFIG" = x; then
11850 PKG_CONFIG=""
11851 else
11852 case $cross_compiling:$ac_tool_warned in
11853 yes:)
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11856 ac_tool_warned=yes ;;
11857 esac
11858 PKG_CONFIG=$ac_pt_PKG_CONFIG
11859 fi
11860 else
11861 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11862 fi
11863
11864 fi
11865 if test -n "$PKG_CONFIG"; then
11866 _pkg_min_version=0.9.0
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11868 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11869 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11871 $as_echo "yes" >&6; }
11872 else
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11875 PKG_CONFIG=""
11876 fi
11877 fi
11878
11879 # Warn if the user specified libbind, which is now deprecated
11880 # Check whether --enable-libbind was given.
11881 if test "${enable_libbind+set}" = set; then :
11882 enableval=$enable_libbind;
11883 fi
11884
11885
11886 case "$enable_libbind" in
11887 yes)
11888 as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution.
11889 It is available from http://www.isc.org as a separate download." "$LINENO" 5
11890 ;;
11891 no|'')
11892 ;;
11893 esac
11894
11895 # Check whether --enable-buffer_useinline was given.
11896 if test "${enable_buffer_useinline+set}" = set; then :
11897 enableval=$enable_buffer_useinline; if test yes = "${enable}"
11898 then
11899
11900 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
11901
11902 fi
11903 else
11904 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
11905
11906 fi
11907
11908
11909 # Check whether --enable-warn_shadow was given.
11910 if test "${enable_warn_shadow+set}" = set; then :
11911 enableval=$enable_warn_shadow;
11912 fi
11913
11914
11915 # Check whether --enable-warn_error was given.
11916 if test "${enable_warn_error+set}" = set; then :
11917 enableval=$enable_warn_error;
11918 fi
11919
11920
11921 # Check whether --enable-developer was given.
11922 if test "${enable_developer+set}" = set; then :
11923 enableval=$enable_developer;
11924 fi
11925
11926 XTARGETS=
11927 case "$enable_developer" in
11928 yes)
11929 STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1"
11930 test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
11931 test "${enable_querytrace+set}" = set || enable_querytrace=yes
11932 test "${with_cmocka+set}" = set || with_cmocka=yes
11933 test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
11934 test "${enable_symtable+set}" = set || enable_symtable=all
11935 test "${enable_warn_error+set}" = set || enable_warn_error=yes
11936 test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
11937 test "${with_zlib+set}" = set || with_zlib=yes
11938 XTARGETS='${XTARGETS}'
11939 ;;
11940 esac
11941
11942
11943 # Check whether --enable-fuzzing was given.
11944 if test "${enable_fuzzing+set}" = set; then :
11945 enableval=$enable_fuzzing;
11946 else
11947 enable_fuzzing=no
11948 fi
11949
11950
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
11952 $as_echo_n "checking whether to enable fuzzing mode... " >&6; }
11953 case $enable_fuzzing in #(
11954 no) :
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; } ;; #(
11957 afl) :
11958
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
11960 $as_echo "using AFL" >&6; }
11961
11962 $as_echo "#define ENABLE_AFL 1" >>confdefs.h
11963
11964 CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
11965 LIBS="$LIBS -lpthread" ;; #(
11966 libfuzzer) :
11967
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
11969 $as_echo "using libFuzzer" >&6; }
11970 CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer,address,undefined"
11971 LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address,undefined" ;; #(
11972 *) :
11973 as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
11974 *) :
11975 ;;
11976 esac
11977
11978 if test "$enable_fuzzing" = "afl"; then :
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
11980 $as_echo_n "checking \"for AFL enabled compiler\"... " >&6; }
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11983
11984 int
11985 main ()
11986 {
11987 #ifndef __AFL_COMPILER
11988 #error AFL compiler required
11989 #endif
11990
11991 ;
11992 return 0;
11993 }
11994 _ACEOF
11995 if ac_fn_c_try_compile "$LINENO"; then :
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11997 $as_echo "yes" >&6; }
11998 else
11999 as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
12000 fi
12001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002
12003 fi
12004
12005 #
12006 # Make very sure that these are the first files processed by
12007 # config.status, since we use the processed output as the input for
12008 # AC_SUBST_FILE() substitutions in other files.
12009 #
12010 ac_config_files="$ac_config_files make/rules make/includes"
12011
12012
12013 # Extract the first word of "ar", so it can be a program name with args.
12014 set dummy ar; ac_word=$2
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016 $as_echo_n "checking for $ac_word... " >&6; }
12017 if ${ac_cv_path_AR+:} false; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 case $AR in
12021 [\\/]* | ?:[\\/]*)
12022 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12023 ;;
12024 *)
12025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026 for as_dir in $PATH
12027 do
12028 IFS=$as_save_IFS
12029 test -z "$as_dir" && as_dir=.
12030 for ac_exec_ext in '' $ac_executable_extensions; do
12031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12032 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12034 break 2
12035 fi
12036 done
12037 done
12038 IFS=$as_save_IFS
12039
12040 ;;
12041 esac
12042 fi
12043 AR=$ac_cv_path_AR
12044 if test -n "$AR"; then
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12046 $as_echo "$AR" >&6; }
12047 else
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049 $as_echo "no" >&6; }
12050 fi
12051
12052
12053 ARFLAGS="cruv"
12054
12055
12056
12057 # The POSIX ln(1) program. Non-POSIX systems may substitute
12058 # "copy" or something.
12059 LN=ln
12060
12061
12062 case "$AR" in
12063 "")
12064 as_fn_error $? "
12065 ar program not found. Please fix your PATH to include the directory in
12066 which ar resides, or set AR in the environment with the full path to ar.
12067 " "$LINENO" 5
12068
12069 ;;
12070 esac
12071
12072 #
12073 # Etags.
12074 #
12075 for ac_prog in etags emacs-etags
12076 do
12077 # Extract the first word of "$ac_prog", so it can be a program name with args.
12078 set dummy $ac_prog; ac_word=$2
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 $as_echo_n "checking for $ac_word... " >&6; }
12081 if ${ac_cv_path_ETAGS+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 case $ETAGS in
12085 [\\/]* | ?:[\\/]*)
12086 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
12087 ;;
12088 *)
12089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090 for as_dir in $PATH
12091 do
12092 IFS=$as_save_IFS
12093 test -z "$as_dir" && as_dir=.
12094 for ac_exec_ext in '' $ac_executable_extensions; do
12095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12096 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
12097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12098 break 2
12099 fi
12100 done
12101 done
12102 IFS=$as_save_IFS
12103
12104 ;;
12105 esac
12106 fi
12107 ETAGS=$ac_cv_path_ETAGS
12108 if test -n "$ETAGS"; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
12110 $as_echo "$ETAGS" >&6; }
12111 else
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12114 fi
12115
12116
12117 test -n "$ETAGS" && break
12118 done
12119
12120
12121 #
12122 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
12123 # GNU emacs etags, and it requires the -L flag.
12124 #
12125 if test "X$ETAGS" != "X"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5
12127 $as_echo_n "checking for Exuberant Ctags etags... " >&6; }
12128 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12130 $as_echo "yes" >&6; }
12131 ETAGS="$ETAGS -L"
12132 else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12135 fi
12136 fi
12137
12138
12139 #
12140 # Perl is optional; it is used only by some of the system test scripts.
12141 # Note: the backtrace feature (see below) uses perl to build the symbol table,
12142 # but it still compiles without perl, in which case an empty table will be used.
12143 #
12144 for ac_prog in perl5 perl
12145 do
12146 # Extract the first word of "$ac_prog", so it can be a program name with args.
12147 set dummy $ac_prog; ac_word=$2
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12149 $as_echo_n "checking for $ac_word... " >&6; }
12150 if ${ac_cv_path_PERL+:} false; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 case $PERL in
12154 [\\/]* | ?:[\\/]*)
12155 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12156 ;;
12157 *)
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12160 do
12161 IFS=$as_save_IFS
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12165 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 break 2
12168 fi
12169 done
12170 done
12171 IFS=$as_save_IFS
12172
12173 ;;
12174 esac
12175 fi
12176 PERL=$ac_cv_path_PERL
12177 if test -n "$PERL"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12179 $as_echo "$PERL" >&6; }
12180 else
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12183 fi
12184
12185
12186 test -n "$PERL" && break
12187 done
12188
12189
12190
12191 #
12192 # Python is also optional but required by default so that dnssec-keymgr gets
12193 # installed unless explicitly prevented by the user using --without-python.
12194 #
12195 testminvers='import sys
12196 if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
12197 exit(1)'
12198
12199 testargparse='try: import argparse
12200 except: exit(1)'
12201
12202 testply='try: import ply
12203 except: exit(1)'
12204
12205 default_with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
12206
12207
12208 # Check whether --with-python was given.
12209 if test "${with_python+set}" = set; then :
12210 withval=$with_python;
12211 else
12212 with_python=$default_with_python
12213 fi
12214
12215
12216 # Check whether --with-python-install-dir was given.
12217 if test "${with_python_install_dir+set}" = set; then :
12218 withval=$with_python_install_dir;
12219 else
12220 with_python_install_dir=""
12221 fi
12222
12223
12224 if test "$with_python" = "yes"; then :
12225 with_python=$default_with_python
12226 fi
12227
12228 if test "$with_python" = "no"; then :
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
12230 $as_echo_n "checking for Python support... " >&6; }
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12232 $as_echo "disabled" >&6; }
12233 else
12234 for p in $with_python
12235 do
12236 case $p in #(
12237 /*) :
12238 PYTHON="$p" ;; #(
12239 *) :
12240 ;;
12241 esac
12242
12243 # Extract the first word of "$p", so it can be a program name with args.
12244 set dummy $p; ac_word=$2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if ${ac_cv_path_PYTHON+:} false; then :
12248 $as_echo_n "(cached) " >&6
12249 else
12250 case $PYTHON in
12251 [\\/]* | ?:[\\/]*)
12252 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12253 ;;
12254 *)
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12257 do
12258 IFS=$as_save_IFS
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12262 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264 break 2
12265 fi
12266 done
12267 done
12268 IFS=$as_save_IFS
12269
12270 ;;
12271 esac
12272 fi
12273 PYTHON=$ac_cv_path_PYTHON
12274 if test -n "$PYTHON"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12276 $as_echo "$PYTHON" >&6; }
12277 else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12280 fi
12281
12282
12283 # Do not cache the result of the check from the previous line. If the
12284 # first found Python interpreter has missing module dependencies and
12285 # the result of the above check is cached, subsequent module checks
12286 # will erroneously keep on using the cached path to the first found
12287 # Python interpreter instead of different ones.
12288 unset ac_cv_path_PYTHON
12289
12290 if test -z "$PYTHON"; then :
12291 continue
12292 fi
12293
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
12295 $as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
12296 if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12298 $as_echo "yes" >&6; }
12299 else
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301 $as_echo "no" >&6; }
12302 unset PYTHON
12303 continue
12304 fi
12305
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
12307 $as_echo_n "checking Python module 'argparse'... " >&6; }
12308 if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12310 $as_echo "yes" >&6; }
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12314 unset PYTHON
12315 continue
12316 fi
12317
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
12319 $as_echo_n "checking Python module 'ply'... " >&6; }
12320 if "$PYTHON" -c "$testply" 2>/dev/null; then :
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12322 $as_echo "yes" >&6; }
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12326 unset PYTHON
12327 continue
12328 fi
12329
12330 # Stop looking any further once we find a Python interpreter
12331 # satisfying all requirements.
12332 break
12333 done
12334
12335 if test "X$PYTHON" = "X"; then :
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
12337 $as_echo_n "checking for Python support... " >&6; }
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12340 as_fn_error $? "Python >= 2.7 or >= 3.2 and the PLY package are required for dnssec-keymgr and other Python-based tools. PLY may be available from your OS package manager as python-ply or python3-ply; it can also be installed via pip. To build without Python/PLY, use --without-python." "$LINENO" 5
12341 fi
12342 fi
12343
12344 PYTHON_TOOLS=''
12345 CHECKDS=''
12346 COVERAGE=''
12347 KEYMGR=''
12348 if test "X$PYTHON" != "X"; then :
12349 PYTHON_TOOLS=python
12350 CHECKDS=checkds
12351 COVERAGE=coverage
12352 KEYMGR=keymgr
12353 PYTHON_INSTALL_DIR="$with_python_install_dir"
12354 if test -n "$with_python_install_dir"; then :
12355 PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
12356 fi
12357 fi
12358
12359
12360
12361
12362
12363
12364
12365 #
12366 # Special processing of paths depending on whether --prefix,
12367 # --sysconfdir or --localstatedir arguments were given. What's
12368 # desired is some compatibility with the way previous versions
12369 # of BIND built; they defaulted to /usr/local for most parts of
12370 # the installation, but named.boot/named.conf was in /etc
12371 # and named.pid was in /var/run.
12372 #
12373 # So ... if none of --prefix, --sysconfdir or --localstatedir are
12374 # specified, set things up that way. If --prefix is given, use
12375 # it for sysconfdir and localstatedir the way configure normally
12376 # would. To change the prefix for everything but leave named.conf
12377 # in /etc or named.pid in /var/run, then do this the usual configure way:
12378 # ./configure --prefix=/somewhere --sysconfdir=/etc
12379 # ./configure --prefix=/somewhere --localstatedir=/var
12380 #
12381 # To put named.conf and named.pid in /usr/local with everything else,
12382 # set the prefix explicitly to /usr/local even though that's the default:
12383 # ./configure --prefix=/usr/local
12384 #
12385 case "$prefix" in
12386 NONE)
12387 case "$sysconfdir" in
12388 '${prefix}/etc')
12389 sysconfdir=/etc
12390 ;;
12391 esac
12392 case "$localstatedir" in
12393 '${prefix}/var')
12394 localstatedir=/var
12395 ;;
12396 esac
12397 ;;
12398 esac
12399 expanded_sysconfdir=`eval echo $sysconfdir`
12400
12401
12402 #
12403 # Make sure INSTALL uses an absolute path, else it will be wrong in all
12404 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
12405 # configure based on the location of the file where it is substituted.
12406 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
12407 # subdirectory of install-sh, This relative path will be wrong for all
12408 # directories more than one level down from install-sh.
12409 #
12410 case "$INSTALL" in
12411 /*)
12412 ;;
12413 *)
12414 #
12415 # Not all systems have dirname.
12416 #
12417
12418 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
12419
12420
12421 ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
12422 test "X$ac_dir" = "X$ac_prog" && ac_dir=.
12423 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
12424 INSTALL="$ac_dir/$ac_prog"
12425 ;;
12426 esac
12427
12428 ac_ext=c
12429 ac_cpp='$CPP $CPPFLAGS'
12430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12433 if test -n "$ac_tool_prefix"; then
12434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 $as_echo_n "checking for $ac_word... " >&6; }
12438 if ${ac_cv_prog_CC+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 if test -n "$CC"; then
12442 ac_cv_prog_CC="$CC" # Let the user override the test.
12443 else
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12446 do
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 break 2
12454 fi
12455 done
12456 done
12457 IFS=$as_save_IFS
12458
12459 fi
12460 fi
12461 CC=$ac_cv_prog_CC
12462 if test -n "$CC"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12464 $as_echo "$CC" >&6; }
12465 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469
12470
12471 fi
12472 if test -z "$ac_cv_prog_CC"; then
12473 ac_ct_CC=$CC
12474 # Extract the first word of "gcc", so it can be a program name with args.
12475 set dummy gcc; ac_word=$2
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12477 $as_echo_n "checking for $ac_word... " >&6; }
12478 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 if test -n "$ac_ct_CC"; then
12482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12483 else
12484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485 for as_dir in $PATH
12486 do
12487 IFS=$as_save_IFS
12488 test -z "$as_dir" && as_dir=.
12489 for ac_exec_ext in '' $ac_executable_extensions; do
12490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12491 ac_cv_prog_ac_ct_CC="gcc"
12492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12493 break 2
12494 fi
12495 done
12496 done
12497 IFS=$as_save_IFS
12498
12499 fi
12500 fi
12501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12502 if test -n "$ac_ct_CC"; then
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12504 $as_echo "$ac_ct_CC" >&6; }
12505 else
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507 $as_echo "no" >&6; }
12508 fi
12509
12510 if test "x$ac_ct_CC" = x; then
12511 CC=""
12512 else
12513 case $cross_compiling:$ac_tool_warned in
12514 yes:)
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12517 ac_tool_warned=yes ;;
12518 esac
12519 CC=$ac_ct_CC
12520 fi
12521 else
12522 CC="$ac_cv_prog_CC"
12523 fi
12524
12525 if test -z "$CC"; then
12526 if test -n "$ac_tool_prefix"; then
12527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12528 set dummy ${ac_tool_prefix}cc; ac_word=$2
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12530 $as_echo_n "checking for $ac_word... " >&6; }
12531 if ${ac_cv_prog_CC+:} false; then :
12532 $as_echo_n "(cached) " >&6
12533 else
12534 if test -n "$CC"; then
12535 ac_cv_prog_CC="$CC" # Let the user override the test.
12536 else
12537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538 for as_dir in $PATH
12539 do
12540 IFS=$as_save_IFS
12541 test -z "$as_dir" && as_dir=.
12542 for ac_exec_ext in '' $ac_executable_extensions; do
12543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12544 ac_cv_prog_CC="${ac_tool_prefix}cc"
12545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12546 break 2
12547 fi
12548 done
12549 done
12550 IFS=$as_save_IFS
12551
12552 fi
12553 fi
12554 CC=$ac_cv_prog_CC
12555 if test -n "$CC"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12557 $as_echo "$CC" >&6; }
12558 else
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560 $as_echo "no" >&6; }
12561 fi
12562
12563
12564 fi
12565 fi
12566 if test -z "$CC"; then
12567 # Extract the first word of "cc", so it can be a program name with args.
12568 set dummy cc; ac_word=$2
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570 $as_echo_n "checking for $ac_word... " >&6; }
12571 if ${ac_cv_prog_CC+:} false; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 if test -n "$CC"; then
12575 ac_cv_prog_CC="$CC" # Let the user override the test.
12576 else
12577 ac_prog_rejected=no
12578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12579 for as_dir in $PATH
12580 do
12581 IFS=$as_save_IFS
12582 test -z "$as_dir" && as_dir=.
12583 for ac_exec_ext in '' $ac_executable_extensions; do
12584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12586 ac_prog_rejected=yes
12587 continue
12588 fi
12589 ac_cv_prog_CC="cc"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12592 fi
12593 done
12594 done
12595 IFS=$as_save_IFS
12596
12597 if test $ac_prog_rejected = yes; then
12598 # We found a bogon in the path, so make sure we never use it.
12599 set dummy $ac_cv_prog_CC
12600 shift
12601 if test $# != 0; then
12602 # We chose a different compiler from the bogus one.
12603 # However, it has the same basename, so the bogon will be chosen
12604 # first if we set CC to just the basename; use the full file name.
12605 shift
12606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12607 fi
12608 fi
12609 fi
12610 fi
12611 CC=$ac_cv_prog_CC
12612 if test -n "$CC"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12614 $as_echo "$CC" >&6; }
12615 else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12618 fi
12619
12620
12621 fi
12622 if test -z "$CC"; then
12623 if test -n "$ac_tool_prefix"; then
12624 for ac_prog in cl.exe
12625 do
12626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629 $as_echo_n "checking for $ac_word... " >&6; }
12630 if ${ac_cv_prog_CC+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 if test -n "$CC"; then
12634 ac_cv_prog_CC="$CC" # Let the user override the test.
12635 else
12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637 for as_dir in $PATH
12638 do
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12643 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 break 2
12646 fi
12647 done
12648 done
12649 IFS=$as_save_IFS
12650
12651 fi
12652 fi
12653 CC=$ac_cv_prog_CC
12654 if test -n "$CC"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12656 $as_echo "$CC" >&6; }
12657 else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12660 fi
12661
12662
12663 test -n "$CC" && break
12664 done
12665 fi
12666 if test -z "$CC"; then
12667 ac_ct_CC=$CC
12668 for ac_prog in cl.exe
12669 do
12670 # Extract the first word of "$ac_prog", so it can be a program name with args.
12671 set dummy $ac_prog; ac_word=$2
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12673 $as_echo_n "checking for $ac_word... " >&6; }
12674 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 if test -n "$ac_ct_CC"; then
12678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12679 else
12680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681 for as_dir in $PATH
12682 do
12683 IFS=$as_save_IFS
12684 test -z "$as_dir" && as_dir=.
12685 for ac_exec_ext in '' $ac_executable_extensions; do
12686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12687 ac_cv_prog_ac_ct_CC="$ac_prog"
12688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12689 break 2
12690 fi
12691 done
12692 done
12693 IFS=$as_save_IFS
12694
12695 fi
12696 fi
12697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12698 if test -n "$ac_ct_CC"; then
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12700 $as_echo "$ac_ct_CC" >&6; }
12701 else
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703 $as_echo "no" >&6; }
12704 fi
12705
12706
12707 test -n "$ac_ct_CC" && break
12708 done
12709
12710 if test "x$ac_ct_CC" = x; then
12711 CC=""
12712 else
12713 case $cross_compiling:$ac_tool_warned in
12714 yes:)
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12717 ac_tool_warned=yes ;;
12718 esac
12719 CC=$ac_ct_CC
12720 fi
12721 fi
12722
12723 fi
12724
12725
12726 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12728 as_fn_error $? "no acceptable C compiler found in \$PATH
12729 See \`config.log' for more details" "$LINENO" 5; }
12730
12731 # Provide some information about the compiler.
12732 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12733 set X $ac_compile
12734 ac_compiler=$2
12735 for ac_option in --version -v -V -qversion; do
12736 { { ac_try="$ac_compiler $ac_option >&5"
12737 case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740 esac
12741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12742 $as_echo "$ac_try_echo"; } >&5
12743 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12744 ac_status=$?
12745 if test -s conftest.err; then
12746 sed '10a\
12747 ... rest of stderr output deleted ...
12748 10q' conftest.err >conftest.er1
12749 cat conftest.er1 >&5
12750 fi
12751 rm -f conftest.er1 conftest.err
12752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12753 test $ac_status = 0; }
12754 done
12755
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12757 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12758 if ${ac_cv_c_compiler_gnu+:} false; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12763
12764 int
12765 main ()
12766 {
12767 #ifndef __GNUC__
12768 choke me
12769 #endif
12770
12771 ;
12772 return 0;
12773 }
12774 _ACEOF
12775 if ac_fn_c_try_compile "$LINENO"; then :
12776 ac_compiler_gnu=yes
12777 else
12778 ac_compiler_gnu=no
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12782
12783 fi
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12785 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12786 if test $ac_compiler_gnu = yes; then
12787 GCC=yes
12788 else
12789 GCC=
12790 fi
12791 ac_test_CFLAGS=${CFLAGS+set}
12792 ac_save_CFLAGS=$CFLAGS
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12794 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12795 if ${ac_cv_prog_cc_g+:} false; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12798 ac_save_c_werror_flag=$ac_c_werror_flag
12799 ac_c_werror_flag=yes
12800 ac_cv_prog_cc_g=no
12801 CFLAGS="-g"
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12804
12805 int
12806 main ()
12807 {
12808
12809 ;
12810 return 0;
12811 }
12812 _ACEOF
12813 if ac_fn_c_try_compile "$LINENO"; then :
12814 ac_cv_prog_cc_g=yes
12815 else
12816 CFLAGS=""
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12819
12820 int
12821 main ()
12822 {
12823
12824 ;
12825 return 0;
12826 }
12827 _ACEOF
12828 if ac_fn_c_try_compile "$LINENO"; then :
12829
12830 else
12831 ac_c_werror_flag=$ac_save_c_werror_flag
12832 CFLAGS="-g"
12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12835
12836 int
12837 main ()
12838 {
12839
12840 ;
12841 return 0;
12842 }
12843 _ACEOF
12844 if ac_fn_c_try_compile "$LINENO"; then :
12845 ac_cv_prog_cc_g=yes
12846 fi
12847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12848 fi
12849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850 fi
12851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852 ac_c_werror_flag=$ac_save_c_werror_flag
12853 fi
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12855 $as_echo "$ac_cv_prog_cc_g" >&6; }
12856 if test "$ac_test_CFLAGS" = set; then
12857 CFLAGS=$ac_save_CFLAGS
12858 elif test $ac_cv_prog_cc_g = yes; then
12859 if test "$GCC" = yes; then
12860 CFLAGS="-g -O2"
12861 else
12862 CFLAGS="-g"
12863 fi
12864 else
12865 if test "$GCC" = yes; then
12866 CFLAGS="-O2"
12867 else
12868 CFLAGS=
12869 fi
12870 fi
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12872 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12873 if ${ac_cv_prog_cc_c89+:} false; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 ac_cv_prog_cc_c89=no
12877 ac_save_CC=$CC
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 #include <stdarg.h>
12881 #include <stdio.h>
12882 struct stat;
12883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12884 struct buf { int x; };
12885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12886 static char *e (p, i)
12887 char **p;
12888 int i;
12889 {
12890 return p[i];
12891 }
12892 static char *f (char * (*g) (char **, int), char **p, ...)
12893 {
12894 char *s;
12895 va_list v;
12896 va_start (v,p);
12897 s = g (p, va_arg (v,int));
12898 va_end (v);
12899 return s;
12900 }
12901
12902 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12903 function prototypes and stuff, but not '\xHH' hex character constants.
12904 These don't provoke an error unfortunately, instead are silently treated
12905 as 'x'. The following induces an error, until -std is added to get
12906 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12907 array size at least. It's necessary to write '\x00'==0 to get something
12908 that's true only with -std. */
12909 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12910
12911 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12912 inside strings and character constants. */
12913 #define FOO(x) 'x'
12914 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12915
12916 int test (int i, double x);
12917 struct s1 {int (*f) (int a);};
12918 struct s2 {int (*f) (double a);};
12919 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12920 int argc;
12921 char **argv;
12922 int
12923 main ()
12924 {
12925 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12926 ;
12927 return 0;
12928 }
12929 _ACEOF
12930 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12931 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12932 do
12933 CC="$ac_save_CC $ac_arg"
12934 if ac_fn_c_try_compile "$LINENO"; then :
12935 ac_cv_prog_cc_c89=$ac_arg
12936 fi
12937 rm -f core conftest.err conftest.$ac_objext
12938 test "x$ac_cv_prog_cc_c89" != "xno" && break
12939 done
12940 rm -f conftest.$ac_ext
12941 CC=$ac_save_CC
12942
12943 fi
12944 # AC_CACHE_VAL
12945 case "x$ac_cv_prog_cc_c89" in
12946 x)
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12948 $as_echo "none needed" >&6; } ;;
12949 xno)
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12951 $as_echo "unsupported" >&6; } ;;
12952 *)
12953 CC="$CC $ac_cv_prog_cc_c89"
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12955 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12956 esac
12957 if test "x$ac_cv_prog_cc_c89" != xno; then :
12958
12959 fi
12960
12961 ac_ext=c
12962 ac_cpp='$CPP $CPPFLAGS'
12963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12966
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12968 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12969 if ${ac_cv_prog_cc_c99+:} false; then :
12970 $as_echo_n "(cached) " >&6
12971 else
12972 ac_cv_prog_cc_c99=no
12973 ac_save_CC=$CC
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12976 #include <stdarg.h>
12977 #include <stdbool.h>
12978 #include <stdlib.h>
12979 #include <wchar.h>
12980 #include <stdio.h>
12981
12982 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12983 #define debug(...) fprintf (stderr, __VA_ARGS__)
12984 #define showlist(...) puts (#__VA_ARGS__)
12985 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12986 static void
12987 test_varargs_macros (void)
12988 {
12989 int x = 1234;
12990 int y = 5678;
12991 debug ("Flag");
12992 debug ("X = %d\n", x);
12993 showlist (The first, second, and third items.);
12994 report (x>y, "x is %d but y is %d", x, y);
12995 }
12996
12997 // Check long long types.
12998 #define BIG64 18446744073709551615ull
12999 #define BIG32 4294967295ul
13000 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13001 #if !BIG_OK
13002 your preprocessor is broken;
13003 #endif
13004 #if BIG_OK
13005 #else
13006 your preprocessor is broken;
13007 #endif
13008 static long long int bignum = -9223372036854775807LL;
13009 static unsigned long long int ubignum = BIG64;
13010
13011 struct incomplete_array
13012 {
13013 int datasize;
13014 double data[];
13015 };
13016
13017 struct named_init {
13018 int number;
13019 const wchar_t *name;
13020 double average;
13021 };
13022
13023 typedef const char *ccp;
13024
13025 static inline int
13026 test_restrict (ccp restrict text)
13027 {
13028 // See if C++-style comments work.
13029 // Iterate through items via the restricted pointer.
13030 // Also check for declarations in for loops.
13031 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13032 continue;
13033 return 0;
13034 }
13035
13036 // Check varargs and va_copy.
13037 static void
13038 test_varargs (const char *format, ...)
13039 {
13040 va_list args;
13041 va_start (args, format);
13042 va_list args_copy;
13043 va_copy (args_copy, args);
13044
13045 const char *str;
13046 int number;
13047 float fnumber;
13048
13049 while (*format)
13050 {
13051 switch (*format++)
13052 {
13053 case 's': // string
13054 str = va_arg (args_copy, const char *);
13055 break;
13056 case 'd': // int
13057 number = va_arg (args_copy, int);
13058 break;
13059 case 'f': // float
13060 fnumber = va_arg (args_copy, double);
13061 break;
13062 default:
13063 break;
13064 }
13065 }
13066 va_end (args_copy);
13067 va_end (args);
13068 }
13069
13070 int
13071 main ()
13072 {
13073
13074 // Check bool.
13075 _Bool success = false;
13076
13077 // Check restrict.
13078 if (test_restrict ("String literal") == 0)
13079 success = true;
13080 char *restrict newvar = "Another string";
13081
13082 // Check varargs.
13083 test_varargs ("s, d' f .", "string", 65, 34.234);
13084 test_varargs_macros ();
13085
13086 // Check flexible array members.
13087 struct incomplete_array *ia =
13088 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13089 ia->datasize = 10;
13090 for (int i = 0; i < ia->datasize; ++i)
13091 ia->data[i] = i * 1.234;
13092
13093 // Check named initializers.
13094 struct named_init ni = {
13095 .number = 34,
13096 .name = L"Test wide string",
13097 .average = 543.34343,
13098 };
13099
13100 ni.number = 58;
13101
13102 int dynamic_array[ni.number];
13103 dynamic_array[ni.number - 1] = 543;
13104
13105 // work around unused variable warnings
13106 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13107 || dynamic_array[ni.number - 1] != 543);
13108
13109 ;
13110 return 0;
13111 }
13112 _ACEOF
13113 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13114 do
13115 CC="$ac_save_CC $ac_arg"
13116 if ac_fn_c_try_compile "$LINENO"; then :
13117 ac_cv_prog_cc_c99=$ac_arg
13118 fi
13119 rm -f core conftest.err conftest.$ac_objext
13120 test "x$ac_cv_prog_cc_c99" != "xno" && break
13121 done
13122 rm -f conftest.$ac_ext
13123 CC=$ac_save_CC
13124
13125 fi
13126 # AC_CACHE_VAL
13127 case "x$ac_cv_prog_cc_c99" in
13128 x)
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13130 $as_echo "none needed" >&6; } ;;
13131 xno)
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13133 $as_echo "unsupported" >&6; } ;;
13134 *)
13135 CC="$CC $ac_cv_prog_cc_c99"
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13137 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13138 esac
13139 if test "x$ac_cv_prog_cc_c99" != xno; then :
13140
13141 fi
13142
13143
13144
13145 #
13146 # Using Solaris linker with gcc on Solaris breaks Thread Local Storage
13147 #
13148 case $host in #(
13149 *-solaris*) :
13150
13151 if test "$GCC" = "yes"; then :
13152 LDFLAGS="$LDFLAGS -zrelax=transtls"
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&5
13154 $as_echo "$as_me: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&2;}
13155
13156 fi
13157 ;; #(
13158 *) :
13159 ;;
13160 esac
13161
13162 #
13163 # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
13164 #
13165 if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
13166 CCNOOPT="-O0"
13167 fi
13168
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13170 $as_echo_n "checking for ANSI C header files... " >&6; }
13171 if ${ac_cv_header_stdc+:} false; then :
13172 $as_echo_n "(cached) " >&6
13173 else
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13176 #include <stdlib.h>
13177 #include <stdarg.h>
13178 #include <string.h>
13179 #include <float.h>
13180
13181 int
13182 main ()
13183 {
13184
13185 ;
13186 return 0;
13187 }
13188 _ACEOF
13189 if ac_fn_c_try_compile "$LINENO"; then :
13190 ac_cv_header_stdc=yes
13191 else
13192 ac_cv_header_stdc=no
13193 fi
13194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13195
13196 if test $ac_cv_header_stdc = yes; then
13197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13200 #include <string.h>
13201
13202 _ACEOF
13203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13204 $EGREP "memchr" >/dev/null 2>&1; then :
13205
13206 else
13207 ac_cv_header_stdc=no
13208 fi
13209 rm -f conftest*
13210
13211 fi
13212
13213 if test $ac_cv_header_stdc = yes; then
13214 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13217 #include <stdlib.h>
13218
13219 _ACEOF
13220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13221 $EGREP "free" >/dev/null 2>&1; then :
13222
13223 else
13224 ac_cv_header_stdc=no
13225 fi
13226 rm -f conftest*
13227
13228 fi
13229
13230 if test $ac_cv_header_stdc = yes; then
13231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13232 if test "$cross_compiling" = yes; then :
13233 :
13234 else
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237 #include <ctype.h>
13238 #include <stdlib.h>
13239 #if ((' ' & 0x0FF) == 0x020)
13240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13242 #else
13243 # define ISLOWER(c) \
13244 (('a' <= (c) && (c) <= 'i') \
13245 || ('j' <= (c) && (c) <= 'r') \
13246 || ('s' <= (c) && (c) <= 'z'))
13247 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13248 #endif
13249
13250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13251 int
13252 main ()
13253 {
13254 int i;
13255 for (i = 0; i < 256; i++)
13256 if (XOR (islower (i), ISLOWER (i))
13257 || toupper (i) != TOUPPER (i))
13258 return 2;
13259 return 0;
13260 }
13261 _ACEOF
13262 if ac_fn_c_try_run "$LINENO"; then :
13263
13264 else
13265 ac_cv_header_stdc=no
13266 fi
13267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13268 conftest.$ac_objext conftest.beam conftest.$ac_ext
13269 fi
13270
13271 fi
13272 fi
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13274 $as_echo "$ac_cv_header_stdc" >&6; }
13275 if test $ac_cv_header_stdc = yes; then
13276
13277 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13278
13279 fi
13280
13281
13282 for ac_header in fcntl.h regex.h sys/time.h unistd.h sys/mman.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h sys/socket.h net/route.h linux/netlink.h linux/rtnetlink.h
13283 do :
13284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13285 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13286 #ifdef HAVE_SYS_PARAM_H
13287 # include <sys/param.h>
13288 #endif
13289 #ifdef HAVE_SYS_SOCKET_H
13290 # include <sys/socket.h>
13291 #endif
13292
13293 "
13294 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13295 cat >>confdefs.h <<_ACEOF
13296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13297 _ACEOF
13298
13299 fi
13300
13301 done
13302
13303
13304 #
13305 # Check for thread local storage
13306 #
13307 for ac_header in threads.h
13308 do :
13309 ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
13310 if test "x$ac_cv_header_threads_h" = xyes; then :
13311 cat >>confdefs.h <<_ACEOF
13312 #define HAVE_THREADS_H 1
13313 _ACEOF
13314
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 Thread-Local Storage using thread_local" >&5
13316 $as_echo_n "checking for C11 Thread-Local Storage using thread_local... " >&6; }
13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319
13320 #include <threads.h>
13321
13322 int
13323 main ()
13324 {
13325
13326 static thread_local int tls = 0;
13327 return (tls);
13328
13329 ;
13330 return 0;
13331 }
13332
13333 _ACEOF
13334 if ac_fn_c_try_compile "$LINENO"; then :
13335
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13337 $as_echo "yes" >&6; }
13338
13339 $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
13340
13341
13342 $as_echo "#define HAVE_TLS 1" >>confdefs.h
13343
13344
13345 else
13346
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 $as_echo "no" >&6; }
13349
13350 fi
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352
13353 else
13354
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Thread-Local Storage using __thread" >&5
13356 $as_echo_n "checking for Thread-Local Storage using __thread... " >&6; }
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13359
13360
13361 int
13362 main ()
13363 {
13364
13365 static __thread int tls = 0;
13366 return (tls);
13367
13368 ;
13369 return 0;
13370 }
13371
13372 _ACEOF
13373 if ac_fn_c_try_compile "$LINENO"; then :
13374
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13376 $as_echo "yes" >&6; }
13377
13378 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
13379
13380
13381 $as_echo "#define HAVE_TLS 1" >>confdefs.h
13382
13383
13384 else
13385
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13388
13389 fi
13390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391
13392 fi
13393
13394 done
13395
13396
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13398 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13399 if ${ac_cv_c_const+:} false; then :
13400 $as_echo_n "(cached) " >&6
13401 else
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13404
13405 int
13406 main ()
13407 {
13408
13409 #ifndef __cplusplus
13410 /* Ultrix mips cc rejects this sort of thing. */
13411 typedef int charset[2];
13412 const charset cs = { 0, 0 };
13413 /* SunOS 4.1.1 cc rejects this. */
13414 char const *const *pcpcc;
13415 char **ppc;
13416 /* NEC SVR4.0.2 mips cc rejects this. */
13417 struct point {int x, y;};
13418 static struct point const zero = {0,0};
13419 /* AIX XL C 1.02.0.0 rejects this.
13420 It does not let you subtract one const X* pointer from another in
13421 an arm of an if-expression whose if-part is not a constant
13422 expression */
13423 const char *g = "string";
13424 pcpcc = &g + (g ? g-g : 0);
13425 /* HPUX 7.0 cc rejects these. */
13426 ++pcpcc;
13427 ppc = (char**) pcpcc;
13428 pcpcc = (char const *const *) ppc;
13429 { /* SCO 3.2v4 cc rejects this sort of thing. */
13430 char tx;
13431 char *t = &tx;
13432 char const *s = 0 ? (char *) 0 : (char const *) 0;
13433
13434 *t++ = 0;
13435 if (s) return 0;
13436 }
13437 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13438 int x[] = {25, 17};
13439 const int *foo = &x[0];
13440 ++foo;
13441 }
13442 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13443 typedef const int *iptr;
13444 iptr p = 0;
13445 ++p;
13446 }
13447 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13448 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13449 struct s { int j; const int *ap[3]; } bx;
13450 struct s *b = &bx; b->j = 5;
13451 }
13452 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13453 const int foo = 10;
13454 if (!foo) return 0;
13455 }
13456 return !cs[0] && !zero.x;
13457 #endif
13458
13459 ;
13460 return 0;
13461 }
13462 _ACEOF
13463 if ac_fn_c_try_compile "$LINENO"; then :
13464 ac_cv_c_const=yes
13465 else
13466 ac_cv_c_const=no
13467 fi
13468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13469 fi
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13471 $as_echo "$ac_cv_c_const" >&6; }
13472 if test $ac_cv_c_const = no; then
13473
13474 $as_echo "#define const /**/" >>confdefs.h
13475
13476 fi
13477
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13479 $as_echo_n "checking for inline... " >&6; }
13480 if ${ac_cv_c_inline+:} false; then :
13481 $as_echo_n "(cached) " >&6
13482 else
13483 ac_cv_c_inline=no
13484 for ac_kw in inline __inline__ __inline; do
13485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486 /* end confdefs.h. */
13487 #ifndef __cplusplus
13488 typedef int foo_t;
13489 static $ac_kw foo_t static_foo () {return 0; }
13490 $ac_kw foo_t foo () {return 0; }
13491 #endif
13492
13493 _ACEOF
13494 if ac_fn_c_try_compile "$LINENO"; then :
13495 ac_cv_c_inline=$ac_kw
13496 fi
13497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13498 test "$ac_cv_c_inline" != no && break
13499 done
13500
13501 fi
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13503 $as_echo "$ac_cv_c_inline" >&6; }
13504
13505 case $ac_cv_c_inline in
13506 inline | yes) ;;
13507 *)
13508 case $ac_cv_c_inline in
13509 no) ac_val=;;
13510 *) ac_val=$ac_cv_c_inline;;
13511 esac
13512 cat >>confdefs.h <<_ACEOF
13513 #ifndef __cplusplus
13514 #define inline $ac_val
13515 #endif
13516 _ACEOF
13517 ;;
13518 esac
13519
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13521 $as_echo_n "checking for working volatile... " >&6; }
13522 if ${ac_cv_c_volatile+:} false; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13527
13528 int
13529 main ()
13530 {
13531
13532 volatile int x;
13533 int * volatile y = (int *) 0;
13534 return !x && !y;
13535 ;
13536 return 0;
13537 }
13538 _ACEOF
13539 if ac_fn_c_try_compile "$LINENO"; then :
13540 ac_cv_c_volatile=yes
13541 else
13542 ac_cv_c_volatile=no
13543 fi
13544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545 fi
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13547 $as_echo "$ac_cv_c_volatile" >&6; }
13548 if test $ac_cv_c_volatile = no; then
13549
13550 $as_echo "#define volatile /**/" >>confdefs.h
13551
13552 fi
13553
13554
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
13556 $as_echo_n "checking for flexible array members... " >&6; }
13557 if ${ac_cv_c_flexmember+:} false; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13562 #include <stdlib.h>
13563 #include <stdio.h>
13564 #include <stddef.h>
13565 struct s { int n; double d[]; };
13566 int
13567 main ()
13568 {
13569 int m = getchar ();
13570 struct s *p = malloc (offsetof (struct s, d)
13571 + m * sizeof (double));
13572 p->d[0] = 0.0;
13573 return p->d != (double *) NULL;
13574 ;
13575 return 0;
13576 }
13577 _ACEOF
13578 if ac_fn_c_try_compile "$LINENO"; then :
13579 ac_cv_c_flexmember=yes
13580 else
13581 ac_cv_c_flexmember=no
13582 fi
13583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13584 fi
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
13586 $as_echo "$ac_cv_c_flexmember" >&6; }
13587 if test $ac_cv_c_flexmember = yes; then
13588
13589 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
13590
13591 else
13592 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
13593
13594 fi
13595
13596
13597 #
13598 # Check for yield support on ARM processors
13599 #
13600 case $host in #(
13601 arm*) :
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
13603 $as_echo_n "checking for yield instruction support... " >&6; }
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606
13607 int
13608 main ()
13609 {
13610 __asm__ __volatile__ ("yield")
13611 ;
13612 return 0;
13613 }
13614 _ACEOF
13615 if ac_fn_c_try_compile "$LINENO"; then :
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13617 $as_echo "yes" >&6; }
13618
13619 $as_echo "#define HAVE_ARM_YIELD 1" >>confdefs.h
13620
13621 else
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13623 $as_echo "no" >&6; }
13624 fi
13625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
13626 *) :
13627 ;;
13628 esac
13629
13630 #
13631 # Check for pause support on SPARC processors
13632 #
13633 case $host in #(
13634 sparc*) :
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause instruction support" >&5
13636 $as_echo_n "checking for pause instruction support... " >&6; }
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639
13640 int
13641 main ()
13642 {
13643 __asm__ __volatile__ ("pause")
13644 ;
13645 return 0;
13646 }
13647 _ACEOF
13648 if ac_fn_c_try_compile "$LINENO"; then :
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13650 $as_echo "yes" >&6; }
13651
13652 $as_echo "#define HAVE_SPARC_PAUSE 1" >>confdefs.h
13653
13654 else
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656 $as_echo "no" >&6; }
13657 fi
13658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
13659 *) :
13660 ;;
13661 esac
13662
13663 for ac_func in sysctlbyname
13664 do :
13665 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
13666 if test "x$ac_cv_func_sysctlbyname" = xyes; then :
13667 cat >>confdefs.h <<_ACEOF
13668 #define HAVE_SYSCTLBYNAME 1
13669 _ACEOF
13670
13671 fi
13672 done
13673
13674
13675 #
13676 # Check for the existence of mmap to enable the fast format zones
13677 #
13678 for ac_func in mmap
13679 do :
13680 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13681 if test "x$ac_cv_func_mmap" = xyes; then :
13682 cat >>confdefs.h <<_ACEOF
13683 #define HAVE_MMAP 1
13684 _ACEOF
13685
13686 fi
13687 done
13688
13689
13690 #
13691 # Older versions of HP/UX don't define seteuid() and setegid()
13692 #
13693 for ac_func in seteuid setresuid
13694 do :
13695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13696 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13697 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13698 cat >>confdefs.h <<_ACEOF
13699 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13700 _ACEOF
13701
13702 fi
13703 done
13704
13705 for ac_func in setegid setresgid
13706 do :
13707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13708 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13709 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13710 cat >>confdefs.h <<_ACEOF
13711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13712 _ACEOF
13713
13714 fi
13715 done
13716
13717
13718 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13719 if test "x$ac_cv_type_size_t" = xyes; then :
13720
13721 else
13722
13723 cat >>confdefs.h <<_ACEOF
13724 #define size_t unsigned int
13725 _ACEOF
13726
13727 fi
13728
13729 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13730 if test "x$ac_cv_type_ssize_t" = xyes; then :
13731
13732 else
13733
13734 cat >>confdefs.h <<_ACEOF
13735 #define ssize_t int
13736 _ACEOF
13737
13738 fi
13739
13740
13741 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13742 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13743
13744 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13745
13746 else
13747 for ac_type in 'unsigned int' 'unsigned long int' \
13748 'unsigned long long int'; do
13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13751 $ac_includes_default
13752 int
13753 main ()
13754 {
13755 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13756 test_array [0] = 0;
13757 return test_array [0];
13758
13759 ;
13760 return 0;
13761 }
13762 _ACEOF
13763 if ac_fn_c_try_compile "$LINENO"; then :
13764
13765 cat >>confdefs.h <<_ACEOF
13766 #define uintptr_t $ac_type
13767 _ACEOF
13768
13769 ac_type=
13770 fi
13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 test -z "$ac_type" && break
13773 done
13774 fi
13775
13776
13777
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13779 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13780 if ${ac_cv_header_time+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13785 #include <sys/types.h>
13786 #include <sys/time.h>
13787 #include <time.h>
13788
13789 int
13790 main ()
13791 {
13792 if ((struct tm *) 0)
13793 return 0;
13794 ;
13795 return 0;
13796 }
13797 _ACEOF
13798 if ac_fn_c_try_compile "$LINENO"; then :
13799 ac_cv_header_time=yes
13800 else
13801 ac_cv_header_time=no
13802 fi
13803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13804 fi
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13806 $as_echo "$ac_cv_header_time" >&6; }
13807 if test $ac_cv_header_time = yes; then
13808
13809 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13810
13811 fi
13812
13813
13814 #
13815 # check for uname library routine
13816 #
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
13818 $as_echo_n "checking for uname... " >&6; }
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 #include <sys/utsname.h>
13822 #include <stdio.h>
13823
13824 int
13825 main ()
13826 {
13827
13828 struct utsname uts;
13829 uname(&uts);
13830 printf("running on %s %s %s for %s\n",
13831 uts.sysname, uts.release, uts.version, uts.machine);
13832
13833 ;
13834 return 0;
13835 }
13836 _ACEOF
13837 if ac_fn_c_try_compile "$LINENO"; then :
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13839 $as_echo "yes" >&6; }
13840
13841 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
13842
13843
13844 else
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 $as_echo "no" >&6; }
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
13848 $as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
13849
13850 fi
13851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852
13853 #
13854 # check for GCC noreturn attribute
13855 #
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
13857 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13860
13861 int
13862 main ()
13863 {
13864 void foo() __attribute__((noreturn));
13865 ;
13866 return 0;
13867 }
13868 _ACEOF
13869 if ac_fn_c_try_compile "$LINENO"; then :
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13871 $as_echo "yes" >&6; }
13872 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
13873 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
13874 else
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13876 $as_echo "no" >&6; }
13877 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
13878 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
13879 fi
13880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13881
13882
13883
13884 #
13885 # check if we have kqueue
13886 #
13887 # Check whether --enable-kqueue was given.
13888 if test "${enable_kqueue+set}" = set; then :
13889 enableval=$enable_kqueue;
13890 else
13891 enable_kqueue="yes"
13892 fi
13893
13894
13895 if test "$enable_kqueue" = "yes"; then :
13896 for ac_func in kqueue
13897 do :
13898 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13899 if test "x$ac_cv_func_kqueue" = xyes; then :
13900 cat >>confdefs.h <<_ACEOF
13901 #define HAVE_KQUEUE 1
13902 _ACEOF
13903
13904 fi
13905 done
13906
13907 fi
13908
13909 #
13910 # check if we have epoll. Linux kernel 2.4 has epoll_create() which fails,
13911 # so we need to try running the code, not just test its existence.
13912 #
13913 # Check whether --enable-epoll was given.
13914 if test "${enable_epoll+set}" = set; then :
13915 enableval=$enable_epoll;
13916 else
13917 enable_epoll="yes"
13918 fi
13919
13920
13921 if test "$enable_epoll" = "yes"; then :
13922 for ac_func in epoll_create1
13923 do :
13924 ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
13925 if test "x$ac_cv_func_epoll_create1" = xyes; then :
13926 cat >>confdefs.h <<_ACEOF
13927 #define HAVE_EPOLL_CREATE1 1
13928 _ACEOF
13929
13930 fi
13931 done
13932
13933 fi
13934
13935 #
13936 # check if we support /dev/poll
13937 #
13938 # Check whether --enable-devpoll was given.
13939 if test "${enable_devpoll+set}" = set; then :
13940 enableval=$enable_devpoll;
13941 else
13942 enable_devpoll="yes"
13943 fi
13944
13945 if test "$enable_devpoll" = "yes"; then :
13946 for ac_header in sys/devpoll.h devpoll.h
13947 do :
13948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13949 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13950 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13951 cat >>confdefs.h <<_ACEOF
13952 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13953 _ACEOF
13954
13955 fi
13956
13957 done
13958
13959 fi
13960
13961 #
13962 # Find the machine's endian flavor.
13963 #
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13965 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13966 if ${ac_cv_c_bigendian+:} false; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 ac_cv_c_bigendian=unknown
13970 # See if we're dealing with a universal compiler.
13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h. */
13973 #ifndef __APPLE_CC__
13974 not a universal capable compiler
13975 #endif
13976 typedef int dummy;
13977
13978 _ACEOF
13979 if ac_fn_c_try_compile "$LINENO"; then :
13980
13981 # Check for potential -arch flags. It is not universal unless
13982 # there are at least two -arch flags with different values.
13983 ac_arch=
13984 ac_prev=
13985 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13986 if test -n "$ac_prev"; then
13987 case $ac_word in
13988 i?86 | x86_64 | ppc | ppc64)
13989 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13990 ac_arch=$ac_word
13991 else
13992 ac_cv_c_bigendian=universal
13993 break
13994 fi
13995 ;;
13996 esac
13997 ac_prev=
13998 elif test "x$ac_word" = "x-arch"; then
13999 ac_prev=arch
14000 fi
14001 done
14002 fi
14003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14004 if test $ac_cv_c_bigendian = unknown; then
14005 # See if sys/param.h defines the BYTE_ORDER macro.
14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h. */
14008 #include <sys/types.h>
14009 #include <sys/param.h>
14010
14011 int
14012 main ()
14013 {
14014 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14015 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14016 && LITTLE_ENDIAN)
14017 bogus endian macros
14018 #endif
14019
14020 ;
14021 return 0;
14022 }
14023 _ACEOF
14024 if ac_fn_c_try_compile "$LINENO"; then :
14025 # It does; now see whether it defined to BIG_ENDIAN or not.
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14028 #include <sys/types.h>
14029 #include <sys/param.h>
14030
14031 int
14032 main ()
14033 {
14034 #if BYTE_ORDER != BIG_ENDIAN
14035 not big endian
14036 #endif
14037
14038 ;
14039 return 0;
14040 }
14041 _ACEOF
14042 if ac_fn_c_try_compile "$LINENO"; then :
14043 ac_cv_c_bigendian=yes
14044 else
14045 ac_cv_c_bigendian=no
14046 fi
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048 fi
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050 fi
14051 if test $ac_cv_c_bigendian = unknown; then
14052 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055 #include <limits.h>
14056
14057 int
14058 main ()
14059 {
14060 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14061 bogus endian macros
14062 #endif
14063
14064 ;
14065 return 0;
14066 }
14067 _ACEOF
14068 if ac_fn_c_try_compile "$LINENO"; then :
14069 # It does; now see whether it defined to _BIG_ENDIAN or not.
14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14072 #include <limits.h>
14073
14074 int
14075 main ()
14076 {
14077 #ifndef _BIG_ENDIAN
14078 not big endian
14079 #endif
14080
14081 ;
14082 return 0;
14083 }
14084 _ACEOF
14085 if ac_fn_c_try_compile "$LINENO"; then :
14086 ac_cv_c_bigendian=yes
14087 else
14088 ac_cv_c_bigendian=no
14089 fi
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14091 fi
14092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14093 fi
14094 if test $ac_cv_c_bigendian = unknown; then
14095 # Compile a test program.
14096 if test "$cross_compiling" = yes; then :
14097 # Try to guess by grepping values from an object file.
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100 short int ascii_mm[] =
14101 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14102 short int ascii_ii[] =
14103 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14104 int use_ascii (int i) {
14105 return ascii_mm[i] + ascii_ii[i];
14106 }
14107 short int ebcdic_ii[] =
14108 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14109 short int ebcdic_mm[] =
14110 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14111 int use_ebcdic (int i) {
14112 return ebcdic_mm[i] + ebcdic_ii[i];
14113 }
14114 extern int foo;
14115
14116 int
14117 main ()
14118 {
14119 return use_ascii (foo) == use_ebcdic (foo);
14120 ;
14121 return 0;
14122 }
14123 _ACEOF
14124 if ac_fn_c_try_compile "$LINENO"; then :
14125 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14126 ac_cv_c_bigendian=yes
14127 fi
14128 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14129 if test "$ac_cv_c_bigendian" = unknown; then
14130 ac_cv_c_bigendian=no
14131 else
14132 # finding both strings is unlikely to happen, but who knows?
14133 ac_cv_c_bigendian=unknown
14134 fi
14135 fi
14136 fi
14137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14138 else
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14141 $ac_includes_default
14142 int
14143 main ()
14144 {
14145
14146 /* Are we little or big endian? From Harbison&Steele. */
14147 union
14148 {
14149 long int l;
14150 char c[sizeof (long int)];
14151 } u;
14152 u.l = 1;
14153 return u.c[sizeof (long int) - 1] == 1;
14154
14155 ;
14156 return 0;
14157 }
14158 _ACEOF
14159 if ac_fn_c_try_run "$LINENO"; then :
14160 ac_cv_c_bigendian=no
14161 else
14162 ac_cv_c_bigendian=yes
14163 fi
14164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14165 conftest.$ac_objext conftest.beam conftest.$ac_ext
14166 fi
14167
14168 fi
14169 fi
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14171 $as_echo "$ac_cv_c_bigendian" >&6; }
14172 case $ac_cv_c_bigendian in #(
14173 yes)
14174 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14175 ;; #(
14176 no)
14177 ;; #(
14178 universal)
14179
14180 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14181
14182 ;; #(
14183 *)
14184 as_fn_error $? "unknown endianness
14185 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14186 esac
14187
14188
14189 #
14190 # GeoIP support?
14191 #
14192 geoip2_default="no"
14193
14194 # Check whether --with-geoip was given.
14195 if test "${with_geoip+set}" = set; then :
14196 withval=$with_geoip;
14197 use_geoip="$withval"
14198 geoip2_default="no"
14199
14200 else
14201 use_geoip="no"
14202 fi
14203
14204
14205 # Check whether --with-geoip2 was given.
14206 if test "${with_geoip2+set}" = set; then :
14207 withval=$with_geoip2;
14208 else
14209 with_geoip2="$geoip2_default"
14210 fi
14211
14212
14213 # specifying both --with-geoip and --with-geoip2 is an error.
14214 if test "no" != "$with_geoip2" && test "no" != "$use_geoip"; then :
14215 as_fn_error $? "--with-geoip and --with-geoip2 are incompatible" "$LINENO" 5
14216 fi
14217
14218 GEOIP2LINKSRCS=
14219 GEOIP2LINKOBJS=
14220 case $with_geoip2 in #(
14221 no) :
14222 ;; #(
14223 auto) :
14224
14225 pkg_failed=no
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
14227 $as_echo_n "checking for libmaxminddb... " >&6; }
14228
14229 if test -n "$MAXMINDDB_CFLAGS"; then
14230 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
14231 elif test -n "$PKG_CONFIG"; then
14232 if test -n "$PKG_CONFIG" && \
14233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14234 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14235 ac_status=$?
14236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14237 test $ac_status = 0; }; then
14238 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
14239 test "x$?" != "x0" && pkg_failed=yes
14240 else
14241 pkg_failed=yes
14242 fi
14243 else
14244 pkg_failed=untried
14245 fi
14246 if test -n "$MAXMINDDB_LIBS"; then
14247 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
14248 elif test -n "$PKG_CONFIG"; then
14249 if test -n "$PKG_CONFIG" && \
14250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14251 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14252 ac_status=$?
14253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14254 test $ac_status = 0; }; then
14255 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
14256 test "x$?" != "x0" && pkg_failed=yes
14257 else
14258 pkg_failed=yes
14259 fi
14260 else
14261 pkg_failed=untried
14262 fi
14263
14264
14265
14266 if test $pkg_failed = yes; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268 $as_echo "no" >&6; }
14269
14270 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14271 _pkg_short_errors_supported=yes
14272 else
14273 _pkg_short_errors_supported=no
14274 fi
14275 if test $_pkg_short_errors_supported = yes; then
14276 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
14277 else
14278 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
14279 fi
14280 # Put the nasty error message in config.log where it belongs
14281 echo "$MAXMINDDB_PKG_ERRORS" >&5
14282
14283 :
14284 elif test $pkg_failed = untried; then
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14286 $as_echo "no" >&6; }
14287 :
14288 else
14289 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
14290 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14292 $as_echo "yes" >&6; }
14293
14294 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
14295
14296
14297 if test -n "$MAXMINDDB_PREFIX"; then
14298 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
14299 elif test -n "$PKG_CONFIG"; then
14300 if test -n "$PKG_CONFIG" && \
14301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14302 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14303 ac_status=$?
14304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14305 test $ac_status = 0; }; then
14306 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
14307 test "x$?" != "x0" && pkg_failed=yes
14308 else
14309 pkg_failed=yes
14310 fi
14311 else
14312 pkg_failed=untried
14313 fi
14314 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
14315
14316 if test "x$MAXMINDDB_PREFIX" = x""; then :
14317 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
14318 fi
14319 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
14320 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
14321
14322 fi ;; #(
14323 yes) :
14324
14325 pkg_failed=no
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
14327 $as_echo_n "checking for libmaxminddb... " >&6; }
14328
14329 if test -n "$MAXMINDDB_CFLAGS"; then
14330 pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
14331 elif test -n "$PKG_CONFIG"; then
14332 if test -n "$PKG_CONFIG" && \
14333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14334 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14335 ac_status=$?
14336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14337 test $ac_status = 0; }; then
14338 pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
14339 test "x$?" != "x0" && pkg_failed=yes
14340 else
14341 pkg_failed=yes
14342 fi
14343 else
14344 pkg_failed=untried
14345 fi
14346 if test -n "$MAXMINDDB_LIBS"; then
14347 pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
14348 elif test -n "$PKG_CONFIG"; then
14349 if test -n "$PKG_CONFIG" && \
14350 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14351 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14352 ac_status=$?
14353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14354 test $ac_status = 0; }; then
14355 pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
14356 test "x$?" != "x0" && pkg_failed=yes
14357 else
14358 pkg_failed=yes
14359 fi
14360 else
14361 pkg_failed=untried
14362 fi
14363
14364
14365
14366 if test $pkg_failed = yes; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 $as_echo "no" >&6; }
14369
14370 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14371 _pkg_short_errors_supported=yes
14372 else
14373 _pkg_short_errors_supported=no
14374 fi
14375 if test $_pkg_short_errors_supported = yes; then
14376 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
14377 else
14378 MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
14379 fi
14380 # Put the nasty error message in config.log where it belongs
14381 echo "$MAXMINDDB_PKG_ERRORS" >&5
14382
14383 as_fn_error $? "Package requirements (libmaxminddb) were not met:
14384
14385 $MAXMINDDB_PKG_ERRORS
14386
14387 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14388 installed software in a non-standard prefix.
14389
14390 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
14391 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
14392 See the pkg-config man page for more details." "$LINENO" 5
14393 elif test $pkg_failed = untried; then
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14395 $as_echo "no" >&6; }
14396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14398 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14399 is in your PATH or set the PKG_CONFIG environment variable to the full
14400 path to pkg-config.
14401
14402 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
14403 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
14404 See the pkg-config man page for more details.
14405
14406 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14407 See \`config.log' for more details" "$LINENO" 5; }
14408 else
14409 MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
14410 MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14412 $as_echo "yes" >&6; }
14413
14414 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
14415
14416
14417 if test -n "$MAXMINDDB_PREFIX"; then
14418 pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
14419 elif test -n "$PKG_CONFIG"; then
14420 if test -n "$PKG_CONFIG" && \
14421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14422 ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14423 ac_status=$?
14424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14425 test $ac_status = 0; }; then
14426 pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
14427 test "x$?" != "x0" && pkg_failed=yes
14428 else
14429 pkg_failed=yes
14430 fi
14431 else
14432 pkg_failed=untried
14433 fi
14434 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
14435
14436 if test "x$MAXMINDDB_PREFIX" = x""; then :
14437 as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
14438 fi
14439 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
14440 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
14441
14442 fi ;; #(
14443 *) :
14444 # default
14445
14446
14447 CCASFLAGS_geoip2_ax_save_flags=$CCASFLAGS
14448
14449
14450
14451 CFLAGS_geoip2_ax_save_flags=$CFLAGS
14452
14453
14454
14455 CPPFLAGS_geoip2_ax_save_flags=$CPPFLAGS
14456
14457
14458
14459 CXXFLAGS_geoip2_ax_save_flags=$CXXFLAGS
14460
14461
14462
14463 ERLCFLAGS_geoip2_ax_save_flags=$ERLCFLAGS
14464
14465
14466
14467 FCFLAGS_geoip2_ax_save_flags=$FCFLAGS
14468
14469
14470
14471 FCLIBS_geoip2_ax_save_flags=$FCLIBS
14472
14473
14474
14475 FFLAGS_geoip2_ax_save_flags=$FFLAGS
14476
14477
14478
14479 FLIBS_geoip2_ax_save_flags=$FLIBS
14480
14481
14482
14483 GCJFLAGS_geoip2_ax_save_flags=$GCJFLAGS
14484
14485
14486
14487 JAVACFLAGS_geoip2_ax_save_flags=$JAVACFLAGS
14488
14489
14490
14491 LDFLAGS_geoip2_ax_save_flags=$LDFLAGS
14492
14493
14494
14495 LIBS_geoip2_ax_save_flags=$LIBS
14496
14497
14498
14499 OBJCFLAGS_geoip2_ax_save_flags=$OBJCFLAGS
14500
14501
14502
14503 OBJCXXFLAGS_geoip2_ax_save_flags=$OBJCXXFLAGS
14504
14505
14506
14507 UPCFLAGS_geoip2_ax_save_flags=$UPCFLAGS
14508
14509
14510
14511 VALAFLAGS_geoip2_ax_save_flags=$VALAFLAGS
14512
14513
14514
14515 MAXMINDDB_CFLAGS="-I$with_geoip2/include"
14516 MAXMINDDB_LIBS="-L$with_geoip2/libs"
14517 CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS"
14518 LDFLAGS="$LDFLAGS $MAXMINDDB_LIBS"
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5
14520 $as_echo_n "checking for library containing MMDB_open... " >&6; }
14521 if ${ac_cv_search_MMDB_open+:} false; then :
14522 $as_echo_n "(cached) " >&6
14523 else
14524 ac_func_search_save_LIBS=$LIBS
14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14527
14528 /* Override any GCC internal prototype to avoid an error.
14529 Use char because int might match the return type of a GCC
14530 builtin and then its argument prototype would still apply. */
14531 #ifdef __cplusplus
14532 extern "C"
14533 #endif
14534 char MMDB_open ();
14535 int
14536 main ()
14537 {
14538 return MMDB_open ();
14539 ;
14540 return 0;
14541 }
14542 _ACEOF
14543 for ac_lib in '' maxminddb; do
14544 if test -z "$ac_lib"; then
14545 ac_res="none required"
14546 else
14547 ac_res=-l$ac_lib
14548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14549 fi
14550 if ac_fn_c_try_link "$LINENO"; then :
14551 ac_cv_search_MMDB_open=$ac_res
14552 fi
14553 rm -f core conftest.err conftest.$ac_objext \
14554 conftest$ac_exeext
14555 if ${ac_cv_search_MMDB_open+:} false; then :
14556 break
14557 fi
14558 done
14559 if ${ac_cv_search_MMDB_open+:} false; then :
14560
14561 else
14562 ac_cv_search_MMDB_open=no
14563 fi
14564 rm conftest.$ac_ext
14565 LIBS=$ac_func_search_save_LIBS
14566 fi
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5
14568 $as_echo "$ac_cv_search_MMDB_open" >&6; }
14569 ac_res=$ac_cv_search_MMDB_open
14570 if test "$ac_res" != no; then :
14571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14572
14573 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
14574
14575 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
14576 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
14577 MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_mmdb_open"
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_geoip2/share/GeoIP" >&5
14579 $as_echo "$as_me: GeoIP2 default database path set to $with_geoip2/share/GeoIP" >&6;}
14580 eval MAXMINDDB_PREFIX=\$$with_geoip2
14581
14582 else
14583 as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5
14584 fi
14585
14586
14587 CCASFLAGS=$CCASFLAGS_maxminddb_ax_save_flags
14588
14589
14590 CFLAGS=$CFLAGS_maxminddb_ax_save_flags
14591
14592
14593 CPPFLAGS=$CPPFLAGS_maxminddb_ax_save_flags
14594
14595
14596 CXXFLAGS=$CXXFLAGS_maxminddb_ax_save_flags
14597
14598
14599 ERLCFLAGS=$ERLCFLAGS_maxminddb_ax_save_flags
14600
14601
14602 FCFLAGS=$FCFLAGS_maxminddb_ax_save_flags
14603
14604
14605 FCLIBS=$FCLIBS_maxminddb_ax_save_flags
14606
14607
14608 FFLAGS=$FFLAGS_maxminddb_ax_save_flags
14609
14610
14611 FLIBS=$FLIBS_maxminddb_ax_save_flags
14612
14613
14614 GCJFLAGS=$GCJFLAGS_maxminddb_ax_save_flags
14615
14616
14617 JAVACFLAGS=$JAVACFLAGS_maxminddb_ax_save_flags
14618
14619
14620 LDFLAGS=$LDFLAGS_maxminddb_ax_save_flags
14621
14622
14623 LIBS=$LIBS_maxminddb_ax_save_flags
14624
14625
14626 OBJCFLAGS=$OBJCFLAGS_maxminddb_ax_save_flags
14627
14628
14629 OBJCXXFLAGS=$OBJCXXFLAGS_maxminddb_ax_save_flags
14630
14631
14632 UPCFLAGS=$UPCFLAGS_maxminddb_ax_save_flags
14633
14634
14635 VALAFLAGS=$VALAFLAGS_maxminddb_ax_save_flags
14636
14637
14638
14639 ;;
14640 esac
14641
14642
14643
14644
14645
14646
14647 GEOIPLINKSRCS=
14648 GEOIPLINKOBJS=
14649 if test "yes" = "$use_geoip"
14650 then
14651 for d in /usr /usr/local /opt/local
14652 do
14653 if test -f $d/include/GeoIP.h
14654 then
14655 use_geoip=$d
14656 break
14657 fi
14658 done
14659 fi
14660
14661 case "$use_geoip" in
14662 no|'')
14663 ;;
14664 *)
14665 if test -d "$use_geoip" -o -L "$use_geoip"
14666 then
14667 CFLAGS="$CFLAGS -I$use_geoip/include"
14668 CPPFLAGS="$CPPFLAGS -I$use_geoip/include"
14669 LIBS="$LIBS -L$use_geoip/lib"
14670 case "$host_os" in
14671 netbsd*|openbsd*|solaris*)
14672 LIBS="$LIBS -Wl,-rpath=$use_geoip/lib"
14673 ;;
14674 esac
14675 elif test "yes" = "$use_geoip"
14676 then
14677 as_fn_error $? "GeoIP path not found" "$LINENO" 5
14678 else
14679 as_fn_error $? "GeoIP path $use_geoip does not exist" "$LINENO" 5
14680 fi
14681 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
14682 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
14683
14684 else
14685 as_fn_error $? "GeoIP header file not found" "$LINENO" 5
14686
14687 fi
14688
14689
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_addr_gl" >&5
14691 $as_echo_n "checking for library containing GeoIP_id_by_addr_gl... " >&6; }
14692 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
14693 $as_echo_n "(cached) " >&6
14694 else
14695 ac_func_search_save_LIBS=$LIBS
14696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h. */
14698
14699 /* Override any GCC internal prototype to avoid an error.
14700 Use char because int might match the return type of a GCC
14701 builtin and then its argument prototype would still apply. */
14702 #ifdef __cplusplus
14703 extern "C"
14704 #endif
14705 char GeoIP_id_by_addr_gl ();
14706 int
14707 main ()
14708 {
14709 return GeoIP_id_by_addr_gl ();
14710 ;
14711 return 0;
14712 }
14713 _ACEOF
14714 for ac_lib in '' GeoIP; do
14715 if test -z "$ac_lib"; then
14716 ac_res="none required"
14717 else
14718 ac_res=-l$ac_lib
14719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14720 fi
14721 if ac_fn_c_try_link "$LINENO"; then :
14722 ac_cv_search_GeoIP_id_by_addr_gl=$ac_res
14723 fi
14724 rm -f core conftest.err conftest.$ac_objext \
14725 conftest$ac_exeext
14726 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
14727 break
14728 fi
14729 done
14730 if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then :
14731
14732 else
14733 ac_cv_search_GeoIP_id_by_addr_gl=no
14734 fi
14735 rm conftest.$ac_ext
14736 LIBS=$ac_func_search_save_LIBS
14737 fi
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_addr_gl" >&5
14739 $as_echo "$ac_cv_search_GeoIP_id_by_addr_gl" >&6; }
14740 ac_res=$ac_cv_search_GeoIP_id_by_addr_gl
14741 if test "$ac_res" != no; then :
14742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14743
14744 else
14745 as_fn_error $? "suitable GeoIP library not found" "$LINENO" 5
14746
14747 fi
14748
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
14750 $as_echo_n "checking for library containing fabsf... " >&6; }
14751 if ${ac_cv_search_fabsf+:} false; then :
14752 $as_echo_n "(cached) " >&6
14753 else
14754 ac_func_search_save_LIBS=$LIBS
14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14757
14758 /* Override any GCC internal prototype to avoid an error.
14759 Use char because int might match the return type of a GCC
14760 builtin and then its argument prototype would still apply. */
14761 #ifdef __cplusplus
14762 extern "C"
14763 #endif
14764 char fabsf ();
14765 int
14766 main ()
14767 {
14768 return fabsf ();
14769 ;
14770 return 0;
14771 }
14772 _ACEOF
14773 for ac_lib in '' m; do
14774 if test -z "$ac_lib"; then
14775 ac_res="none required"
14776 else
14777 ac_res=-l$ac_lib
14778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14779 fi
14780 if ac_fn_c_try_link "$LINENO"; then :
14781 ac_cv_search_fabsf=$ac_res
14782 fi
14783 rm -f core conftest.err conftest.$ac_objext \
14784 conftest$ac_exeext
14785 if ${ac_cv_search_fabsf+:} false; then :
14786 break
14787 fi
14788 done
14789 if ${ac_cv_search_fabsf+:} false; then :
14790
14791 else
14792 ac_cv_search_fabsf=no
14793 fi
14794 rm conftest.$ac_ext
14795 LIBS=$ac_func_search_save_LIBS
14796 fi
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
14798 $as_echo "$ac_cv_search_fabsf" >&6; }
14799 ac_res=$ac_cv_search_fabsf
14800 if test "$ac_res" != no; then :
14801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14802
14803 else
14804 as_fn_error $? "Math library not found" "$LINENO" 5
14805
14806 fi
14807
14808
14809 $as_echo "#define HAVE_GEOIP 1" >>confdefs.h
14810
14811 GEOIPLINKSRCS='${GEOIPLINKSRCS}'
14812 GEOIPLINKOBJS='${GEOIPLINKOBJS}'
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
14814 $as_echo_n "checking for GeoIP support... " >&6; }
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14816 $as_echo "yes" >&6; }
14817
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP Country IPv6 support" >&5
14819 $as_echo_n "checking for GeoIP Country IPv6 support... " >&6; }
14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h. */
14822
14823 #include <GeoIP.h>
14824 #include <netinet/in.h>
14825
14826 int
14827 main ()
14828 {
14829
14830 struct in6_addr in6;
14831 GeoIP_country_name_by_ipnum_v6(NULL, in6);
14832
14833 ;
14834 return 0;
14835 }
14836 _ACEOF
14837 if ac_fn_c_try_compile "$LINENO"; then :
14838
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14840 $as_echo "yes" >&6; }
14841
14842 $as_echo "#define HAVE_GEOIP_V6 1" >>confdefs.h
14843
14844
14845 else
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14847 $as_echo "no" >&6; }
14848
14849 fi
14850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14851
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP City IPv6 support" >&5
14853 $as_echo_n "checking for GeoIP City IPv6 support... " >&6; }
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14856
14857 #include <GeoIP.h>
14858 #include <GeoIPCity.h>
14859 #include <netinet/in.h>
14860
14861 int
14862 main ()
14863 {
14864
14865 struct in6_addr in6;
14866 int i = GEOIP_CITY_EDITION_REV0_V6;
14867 GeoIP_record_by_ipnum_v6(NULL, in6);
14868
14869 ;
14870 return 0;
14871 }
14872 _ACEOF
14873 if ac_fn_c_try_compile "$LINENO"; then :
14874
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14876 $as_echo "yes" >&6; }
14877
14878 $as_echo "#define HAVE_GEOIP_CITY_V6 1" >>confdefs.h
14879
14880
14881 else
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14883 $as_echo "no" >&6; }
14884
14885 fi
14886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14887 ;;
14888 esac
14889
14890
14891
14892 #
14893 # Do we have arc4random(), etc ?
14894 #
14895 for ac_func in arc4random arc4random_buf arc4random_uniform getrandom
14896 do :
14897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14898 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14899 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14900 cat >>confdefs.h <<_ACEOF
14901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14902 _ACEOF
14903
14904 fi
14905 done
14906
14907
14908
14909
14910
14911
14912 ac_ext=c
14913 ac_cpp='$CPP $CPPFLAGS'
14914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14917
14918 ax_pthread_ok=no
14919
14920 # We used to check for pthread.h first, but this fails if pthread.h
14921 # requires special compiler flags (e.g. on Tru64 or Sequent).
14922 # It gets checked for in the link test anyway.
14923
14924 # First of all, check if the user has set any of the PTHREAD_LIBS,
14925 # etcetera environment variables, and if threads linking works using
14926 # them:
14927 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14928 ax_pthread_save_CC="$CC"
14929 ax_pthread_save_CFLAGS="$CFLAGS"
14930 ax_pthread_save_LIBS="$LIBS"
14931 if test "x$PTHREAD_CC" != "x"; then :
14932 CC="$PTHREAD_CC"
14933 fi
14934 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14935 LIBS="$PTHREAD_LIBS $LIBS"
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14937 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14940
14941 /* Override any GCC internal prototype to avoid an error.
14942 Use char because int might match the return type of a GCC
14943 builtin and then its argument prototype would still apply. */
14944 #ifdef __cplusplus
14945 extern "C"
14946 #endif
14947 char pthread_join ();
14948 int
14949 main ()
14950 {
14951 return pthread_join ();
14952 ;
14953 return 0;
14954 }
14955 _ACEOF
14956 if ac_fn_c_try_link "$LINENO"; then :
14957 ax_pthread_ok=yes
14958 fi
14959 rm -f core conftest.err conftest.$ac_objext \
14960 conftest$ac_exeext conftest.$ac_ext
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14962 $as_echo "$ax_pthread_ok" >&6; }
14963 if test "x$ax_pthread_ok" = "xno"; then
14964 PTHREAD_LIBS=""
14965 PTHREAD_CFLAGS=""
14966 fi
14967 CC="$ax_pthread_save_CC"
14968 CFLAGS="$ax_pthread_save_CFLAGS"
14969 LIBS="$ax_pthread_save_LIBS"
14970 fi
14971
14972 # We must check for the threads library under a number of different
14973 # names; the ordering is very important because some systems
14974 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14975 # libraries is broken (non-POSIX).
14976
14977 # Create a list of thread flags to try. Items starting with a "-" are
14978 # C compiler flags, and other items are library names, except for "none"
14979 # which indicates that we try without any flags at all, and "pthread-config"
14980 # which is a program returning the flags for the Pth emulation library.
14981
14982 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14983
14984 # The ordering *is* (sometimes) important. Some notes on the
14985 # individual items follow:
14986
14987 # pthreads: AIX (must check this before -lpthread)
14988 # none: in case threads are in libc; should be tried before -Kthread and
14989 # other compiler flags to prevent continual compiler warnings
14990 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14991 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14992 # (Note: HP C rejects this with "bad form for `-t' option")
14993 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14994 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14995 # doesn't hurt to check since this sometimes defines pthreads and
14996 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14997 # is present but should not be used directly; and before -mthreads,
14998 # because the compiler interprets this as "-mt" + "-hreads")
14999 # -mthreads: Mingw32/gcc, Lynx/gcc
15000 # pthread: Linux, etcetera
15001 # --thread-safe: KAI C++
15002 # pthread-config: use pthread-config program (for GNU Pth library)
15003
15004 case $host_os in
15005
15006 freebsd*)
15007
15008 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15009 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15010
15011 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15012 ;;
15013
15014 hpux*)
15015
15016 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15017 # multi-threading and also sets -lpthread."
15018
15019 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15020 ;;
15021
15022 openedition*)
15023
15024 # IBM z/OS requires a feature-test macro to be defined in order to
15025 # enable POSIX threads at all, so give the user a hint if this is
15026 # not set. (We don't define these ourselves, as they can affect
15027 # other portions of the system API in unpredictable ways.)
15028
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15031
15032 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15033 AX_PTHREAD_ZOS_MISSING
15034 # endif
15035
15036 _ACEOF
15037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15038 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15040 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15041 fi
15042 rm -f conftest*
15043
15044 ;;
15045
15046 solaris*)
15047
15048 # On Solaris (at least, for some versions), libc contains stubbed
15049 # (non-functional) versions of the pthreads routines, so link-based
15050 # tests will erroneously succeed. (N.B.: The stubs are missing
15051 # pthread_cleanup_push, or rather a function called by this macro,
15052 # so we could check for that, but who knows whether they'll stub
15053 # that too in a future libc.) So we'll check first for the
15054 # standard Solaris way of linking pthreads (-mt -lpthread).
15055
15056 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
15057 ;;
15058 esac
15059
15060 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15061
15062 if test "x$GCC" = "xyes"; then :
15063 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
15064 fi
15065
15066 # The presence of a feature test macro requesting re-entrant function
15067 # definitions is, on some systems, a strong hint that pthreads support is
15068 # correctly enabled
15069
15070 case $host_os in
15071 darwin* | hpux* | linux* | osf* | solaris*)
15072 ax_pthread_check_macro="_REENTRANT"
15073 ;;
15074
15075 aix*)
15076 ax_pthread_check_macro="_THREAD_SAFE"
15077 ;;
15078
15079 *)
15080 ax_pthread_check_macro="--"
15081 ;;
15082 esac
15083 if test "x$ax_pthread_check_macro" = "x--"; then :
15084 ax_pthread_check_cond=0
15085 else
15086 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15087 fi
15088
15089 # Are we compiling with Clang?
15090
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15092 $as_echo_n "checking whether $CC is Clang... " >&6; }
15093 if ${ax_cv_PTHREAD_CLANG+:} false; then :
15094 $as_echo_n "(cached) " >&6
15095 else
15096 ax_cv_PTHREAD_CLANG=no
15097 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15098 if test "x$GCC" = "xyes"; then
15099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100 /* end confdefs.h. */
15101 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15102 # if defined(__clang__) && defined(__llvm__)
15103 AX_PTHREAD_CC_IS_CLANG
15104 # endif
15105
15106 _ACEOF
15107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15108 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
15109 ax_cv_PTHREAD_CLANG=yes
15110 fi
15111 rm -f conftest*
15112
15113 fi
15114
15115 fi
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15117 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
15118 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15119
15120 ax_pthread_clang_warning=no
15121
15122 # Clang needs special handling, because older versions handle the -pthread
15123 # option in a rather... idiosyncratic way
15124
15125 if test "x$ax_pthread_clang" = "xyes"; then
15126
15127 # Clang takes -pthread; it has never supported any other flag
15128
15129 # (Note 1: This will need to be revisited if a system that Clang
15130 # supports has POSIX threads in a separate library. This tends not
15131 # to be the way of modern systems, but it's conceivable.)
15132
15133 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15134 # to get POSIX threads support; the API is always present and
15135 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
15136 # -pthread does define _REENTRANT, and while the Darwin headers
15137 # ignore this macro, third-party headers might not.)
15138
15139 PTHREAD_CFLAGS="-pthread"
15140 PTHREAD_LIBS=
15141
15142 ax_pthread_ok=yes
15143
15144 # However, older versions of Clang make a point of warning the user
15145 # that, in an invocation where only linking and no compilation is
15146 # taking place, the -pthread option has no effect ("argument unused
15147 # during compilation"). They expect -pthread to be passed in only
15148 # when source code is being compiled.
15149 #
15150 # Problem is, this is at odds with the way Automake and most other
15151 # C build frameworks function, which is that the same flags used in
15152 # compilation (CFLAGS) are also used in linking. Many systems
15153 # supported by AX_PTHREAD require exactly this for POSIX threads
15154 # support, and in fact it is often not straightforward to specify a
15155 # flag that is used only in the compilation phase and not in
15156 # linking. Such a scenario is extremely rare in practice.
15157 #
15158 # Even though use of the -pthread flag in linking would only print
15159 # a warning, this can be a nuisance for well-run software projects
15160 # that build with -Werror. So if the active version of Clang has
15161 # this misfeature, we search for an option to squash it.
15162
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
15164 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
15165 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
15166 $as_echo_n "(cached) " >&6
15167 else
15168 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
15169 # Create an alternate version of $ac_link that compiles and
15170 # links in two steps (.c -> .o, .o -> exe) instead of one
15171 # (.c -> exe), because the warning occurs only in the second
15172 # step
15173 ax_pthread_save_ac_link="$ac_link"
15174 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
15175 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
15176 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
15177 ax_pthread_save_CFLAGS="$CFLAGS"
15178 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
15179 if test "x$ax_pthread_try" = "xunknown"; then :
15180 break
15181 fi
15182 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
15183 ac_link="$ax_pthread_save_ac_link"
15184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h. */
15186 int main(void){return 0;}
15187 _ACEOF
15188 if ac_fn_c_try_link "$LINENO"; then :
15189 ac_link="$ax_pthread_2step_ac_link"
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15192 int main(void){return 0;}
15193 _ACEOF
15194 if ac_fn_c_try_link "$LINENO"; then :
15195 break
15196 fi
15197 rm -f core conftest.err conftest.$ac_objext \
15198 conftest$ac_exeext conftest.$ac_ext
15199
15200 fi
15201 rm -f core conftest.err conftest.$ac_objext \
15202 conftest$ac_exeext conftest.$ac_ext
15203 done
15204 ac_link="$ax_pthread_save_ac_link"
15205 CFLAGS="$ax_pthread_save_CFLAGS"
15206 if test "x$ax_pthread_try" = "x"; then :
15207 ax_pthread_try=no
15208 fi
15209 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
15210
15211 fi
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
15213 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
15214
15215 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
15216 no | unknown) ;;
15217 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
15218 esac
15219
15220 fi # $ax_pthread_clang = yes
15221
15222 if test "x$ax_pthread_ok" = "xno"; then
15223 for ax_pthread_try_flag in $ax_pthread_flags; do
15224
15225 case $ax_pthread_try_flag in
15226 none)
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15228 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15229 ;;
15230
15231 -mt,pthread)
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
15233 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
15234 PTHREAD_CFLAGS="-mt"
15235 PTHREAD_LIBS="-lpthread"
15236 ;;
15237
15238 -*)
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
15240 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
15241 PTHREAD_CFLAGS="$ax_pthread_try_flag"
15242 ;;
15243
15244 pthread-config)
15245 # Extract the first word of "pthread-config", so it can be a program name with args.
15246 set dummy pthread-config; ac_word=$2
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15248 $as_echo_n "checking for $ac_word... " >&6; }
15249 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15250 $as_echo_n "(cached) " >&6
15251 else
15252 if test -n "$ax_pthread_config"; then
15253 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15254 else
15255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15256 for as_dir in $PATH
15257 do
15258 IFS=$as_save_IFS
15259 test -z "$as_dir" && as_dir=.
15260 for ac_exec_ext in '' $ac_executable_extensions; do
15261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15262 ac_cv_prog_ax_pthread_config="yes"
15263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15264 break 2
15265 fi
15266 done
15267 done
15268 IFS=$as_save_IFS
15269
15270 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15271 fi
15272 fi
15273 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15274 if test -n "$ax_pthread_config"; then
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15276 $as_echo "$ax_pthread_config" >&6; }
15277 else
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15279 $as_echo "no" >&6; }
15280 fi
15281
15282
15283 if test "x$ax_pthread_config" = "xno"; then :
15284 continue
15285 fi
15286 PTHREAD_CFLAGS="`pthread-config --cflags`"
15287 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15288 ;;
15289
15290 *)
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
15292 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
15293 PTHREAD_LIBS="-l$ax_pthread_try_flag"
15294 ;;
15295 esac
15296
15297 ax_pthread_save_CFLAGS="$CFLAGS"
15298 ax_pthread_save_LIBS="$LIBS"
15299 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15300 LIBS="$PTHREAD_LIBS $LIBS"
15301
15302 # Check for various functions. We must include pthread.h,
15303 # since some functions may be macros. (On the Sequent, we
15304 # need a special flag -Kthread to make this header compile.)
15305 # We check for pthread_join because it is in -lpthread on IRIX
15306 # while pthread_create is in libc. We check for pthread_attr_init
15307 # due to DEC craziness with -lpthreads. We check for
15308 # pthread_cleanup_push because it is one of the few pthread
15309 # functions on Solaris that doesn't have a non-functional libc stub.
15310 # We try pthread_create on general principles.
15311
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15314 #include <pthread.h>
15315 # if $ax_pthread_check_cond
15316 # error "$ax_pthread_check_macro must be defined"
15317 # endif
15318 static void routine(void *a) { a = 0; }
15319 static void *start_routine(void *a) { return a; }
15320 int
15321 main ()
15322 {
15323 pthread_t th; pthread_attr_t attr;
15324 pthread_create(&th, 0, start_routine, 0);
15325 pthread_join(th, 0);
15326 pthread_attr_init(&attr);
15327 pthread_cleanup_push(routine, 0);
15328 pthread_cleanup_pop(0) /* ; */
15329 ;
15330 return 0;
15331 }
15332 _ACEOF
15333 if ac_fn_c_try_link "$LINENO"; then :
15334 ax_pthread_ok=yes
15335 fi
15336 rm -f core conftest.err conftest.$ac_objext \
15337 conftest$ac_exeext conftest.$ac_ext
15338
15339 CFLAGS="$ax_pthread_save_CFLAGS"
15340 LIBS="$ax_pthread_save_LIBS"
15341
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15343 $as_echo "$ax_pthread_ok" >&6; }
15344 if test "x$ax_pthread_ok" = "xyes"; then :
15345 break
15346 fi
15347
15348 PTHREAD_LIBS=""
15349 PTHREAD_CFLAGS=""
15350 done
15351 fi
15352
15353 # Various other checks:
15354 if test "x$ax_pthread_ok" = "xyes"; then
15355 ax_pthread_save_CFLAGS="$CFLAGS"
15356 ax_pthread_save_LIBS="$LIBS"
15357 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15358 LIBS="$PTHREAD_LIBS $LIBS"
15359
15360 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15362 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15363 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
15364 $as_echo_n "(cached) " >&6
15365 else
15366 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
15367 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15370 #include <pthread.h>
15371 int
15372 main ()
15373 {
15374 int attr = $ax_pthread_attr; return attr /* ; */
15375 ;
15376 return 0;
15377 }
15378 _ACEOF
15379 if ac_fn_c_try_link "$LINENO"; then :
15380 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
15381 fi
15382 rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15384 done
15385
15386 fi
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
15388 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
15389 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
15390 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
15391 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
15392
15393 cat >>confdefs.h <<_ACEOF
15394 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
15395 _ACEOF
15396
15397 ax_pthread_joinable_attr_defined=yes
15398
15399 fi
15400
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
15402 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
15403 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
15404 $as_echo_n "(cached) " >&6
15405 else
15406 ax_cv_PTHREAD_SPECIAL_FLAGS=no
15407 case $host_os in
15408 solaris*)
15409 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
15410 ;;
15411 esac
15412
15413 fi
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
15415 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
15416 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
15417 test "x$ax_pthread_special_flags_added" != "xyes"; then :
15418 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
15419 ax_pthread_special_flags_added=yes
15420 fi
15421
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15423 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15424 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15425 $as_echo_n "(cached) " >&6
15426 else
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15429 #include <pthread.h>
15430 int
15431 main ()
15432 {
15433 int i = PTHREAD_PRIO_INHERIT;
15434 ;
15435 return 0;
15436 }
15437 _ACEOF
15438 if ac_fn_c_try_link "$LINENO"; then :
15439 ax_cv_PTHREAD_PRIO_INHERIT=yes
15440 else
15441 ax_cv_PTHREAD_PRIO_INHERIT=no
15442 fi
15443 rm -f core conftest.err conftest.$ac_objext \
15444 conftest$ac_exeext conftest.$ac_ext
15445
15446 fi
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15448 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15449 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
15450 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
15451
15452 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15453
15454 ax_pthread_prio_inherit_defined=yes
15455
15456 fi
15457
15458 CFLAGS="$ax_pthread_save_CFLAGS"
15459 LIBS="$ax_pthread_save_LIBS"
15460
15461 # More AIX lossage: compile with *_r variant
15462 if test "x$GCC" != "xyes"; then
15463 case $host_os in
15464 aix*)
15465 case "x/$CC" in #(
15466 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15467 #handle absolute path differently from PATH based program lookup
15468 case "x$CC" in #(
15469 x/*) :
15470 if as_fn_executable_p ${CC}_r; then :
15471 PTHREAD_CC="${CC}_r"
15472 fi ;; #(
15473 *) :
15474 for ac_prog in ${CC}_r
15475 do
15476 # Extract the first word of "$ac_prog", so it can be a program name with args.
15477 set dummy $ac_prog; ac_word=$2
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15479 $as_echo_n "checking for $ac_word... " >&6; }
15480 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15481 $as_echo_n "(cached) " >&6
15482 else
15483 if test -n "$PTHREAD_CC"; then
15484 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15485 else
15486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15487 for as_dir in $PATH
15488 do
15489 IFS=$as_save_IFS
15490 test -z "$as_dir" && as_dir=.
15491 for ac_exec_ext in '' $ac_executable_extensions; do
15492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15493 ac_cv_prog_PTHREAD_CC="$ac_prog"
15494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15495 break 2
15496 fi
15497 done
15498 done
15499 IFS=$as_save_IFS
15500
15501 fi
15502 fi
15503 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15504 if test -n "$PTHREAD_CC"; then
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15506 $as_echo "$PTHREAD_CC" >&6; }
15507 else
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509 $as_echo "no" >&6; }
15510 fi
15511
15512
15513 test -n "$PTHREAD_CC" && break
15514 done
15515 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15516 ;;
15517 esac ;; #(
15518 *) :
15519 ;;
15520 esac
15521 ;;
15522 esac
15523 fi
15524 fi
15525
15526 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15527
15528
15529
15530
15531
15532 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15533 if test "x$ax_pthread_ok" = "xyes"; then
15534
15535 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15536
15537 :
15538 else
15539 ax_pthread_ok=no
15540
15541 fi
15542 ac_ext=c
15543 ac_cpp='$CPP $CPPFLAGS'
15544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15547
15548
15549
15550 LIBS="$PTHREAD_LIBS $LIBS"
15551 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15552 CC="$PTHREAD_CC"
15553
15554 #
15555 # We'd like to use sigwait() too
15556 #
15557 for ac_func in sigwait pthread_attr_getstacksize pthread_attr_setstacksize
15558 do :
15559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15560 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15561 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15562 cat >>confdefs.h <<_ACEOF
15563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15564 _ACEOF
15565
15566 fi
15567 done
15568
15569
15570
15571 # Check whether --with-locktype was given.
15572 if test "${with_locktype+set}" = set; then :
15573 withval=$with_locktype;
15574 else
15575 with_locktype="adaptive"
15576 fi
15577
15578
15579 case $with_locktype in #(
15580 adaptive) :
15581
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
15583 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15586
15587 #ifndef _GNU_SOURCE
15588 #define _GNU_SOURCE
15589 #endif
15590 #include <pthread.h>
15591
15592 int
15593 main ()
15594 {
15595
15596 return (PTHREAD_MUTEX_ADAPTIVE_NP);
15597
15598
15599 ;
15600 return 0;
15601 }
15602 _ACEOF
15603 if ac_fn_c_try_compile "$LINENO"; then :
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
15605 $as_echo "using adaptive lock type" >&6; }
15606
15607 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
15608
15609 else
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
15611 $as_echo "using standard lock type" >&6; }
15612
15613 fi
15614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
15615 standard) :
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
15617 $as_echo "using standard lock type" >&6; } ;; #(
15618 *) :
15619 as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
15620 ;;
15621 esac
15622
15623 for ac_header in sched.h
15624 do :
15625 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15626 if test "x$ac_cv_header_sched_h" = xyes; then :
15627 cat >>confdefs.h <<_ACEOF
15628 #define HAVE_SCHED_H 1
15629 _ACEOF
15630
15631 fi
15632
15633 done
15634
15635
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
15637 $as_echo_n "checking for library containing sched_yield... " >&6; }
15638 if ${ac_cv_search_sched_yield+:} false; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 ac_func_search_save_LIBS=$LIBS
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644
15645 /* Override any GCC internal prototype to avoid an error.
15646 Use char because int might match the return type of a GCC
15647 builtin and then its argument prototype would still apply. */
15648 #ifdef __cplusplus
15649 extern "C"
15650 #endif
15651 char sched_yield ();
15652 int
15653 main ()
15654 {
15655 return sched_yield ();
15656 ;
15657 return 0;
15658 }
15659 _ACEOF
15660 for ac_lib in '' rt; do
15661 if test -z "$ac_lib"; then
15662 ac_res="none required"
15663 else
15664 ac_res=-l$ac_lib
15665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15666 fi
15667 if ac_fn_c_try_link "$LINENO"; then :
15668 ac_cv_search_sched_yield=$ac_res
15669 fi
15670 rm -f core conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext
15672 if ${ac_cv_search_sched_yield+:} false; then :
15673 break
15674 fi
15675 done
15676 if ${ac_cv_search_sched_yield+:} false; then :
15677
15678 else
15679 ac_cv_search_sched_yield=no
15680 fi
15681 rm conftest.$ac_ext
15682 LIBS=$ac_func_search_save_LIBS
15683 fi
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
15685 $as_echo "$ac_cv_search_sched_yield" >&6; }
15686 ac_res=$ac_cv_search_sched_yield
15687 if test "$ac_res" != no; then :
15688 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15689
15690 fi
15691
15692 for ac_func in sched_yield pthread_yield pthread_yield_np
15693 do :
15694 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15695 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15696 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15697 cat >>confdefs.h <<_ACEOF
15698 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15699 _ACEOF
15700
15701 fi
15702 done
15703
15704
15705 for ac_header in sys/cpuset.h
15706 do :
15707 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default"
15708 if test "x$ac_cv_header_sys_cpuset_h" = xyes; then :
15709 cat >>confdefs.h <<_ACEOF
15710 #define HAVE_SYS_CPUSET_H 1
15711 _ACEOF
15712
15713 fi
15714
15715 done
15716
15717 for ac_header in sys/procset.h
15718 do :
15719 ac_fn_c_check_header_mongrel "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
15720 if test "x$ac_cv_header_sys_procset_h" = xyes; then :
15721 cat >>confdefs.h <<_ACEOF
15722 #define HAVE_SYS_PROCSET_H 1
15723 _ACEOF
15724
15725 fi
15726
15727 done
15728
15729 for ac_func in pthread_setaffinity_np cpuset_setaffinity processor_bind sched_setaffinity
15730 do :
15731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15733 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15734 cat >>confdefs.h <<_ACEOF
15735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15736 _ACEOF
15737
15738 fi
15739 done
15740
15741
15742 # Look for functions relating to thread naming
15743 for ac_func in pthread_setname_np pthread_set_name_np
15744 do :
15745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15746 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15747 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15748 cat >>confdefs.h <<_ACEOF
15749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15750 _ACEOF
15751
15752 fi
15753 done
15754
15755 for ac_header in pthread_np.h
15756 do :
15757 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
15758 "
15759 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
15760 cat >>confdefs.h <<_ACEOF
15761 #define HAVE_PTHREAD_NP_H 1
15762 _ACEOF
15763
15764 fi
15765
15766 done
15767
15768
15769 #
15770 # flockfile is usually provided by pthreads
15771 #
15772 for ac_func in flockfile getc_unlocked
15773 do :
15774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15775 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15776 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15777 cat >>confdefs.h <<_ACEOF
15778 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15779 _ACEOF
15780
15781 fi
15782 done
15783
15784
15785 #
15786 # Look for sysconf to allow detection of the number of processors.
15787 #
15788 for ac_func in sysconf
15789 do :
15790 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
15791 if test "x$ac_cv_func_sysconf" = xyes; then :
15792 cat >>confdefs.h <<_ACEOF
15793 #define HAVE_SYSCONF 1
15794 _ACEOF
15795
15796 fi
15797 done
15798
15799
15800
15801
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
15803 $as_echo_n "checking for libtool... " >&6; }
15804
15805 # Check whether --with-libtool was given.
15806 if test "${with_libtool+set}" = set; then :
15807 withval=$with_libtool; use_libtool="$withval"
15808 else
15809 use_libtool="no"
15810 fi
15811
15812
15813 case $use_libtool in
15814 yes)
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15816 $as_echo "yes" >&6; }
15817
15818 O=lo
15819 A=la
15820 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
15821 LIBTOOL_MODE_COMPILE='--mode=compile'
15822 LIBTOOL_MODE_INSTALL='--mode=install'
15823 LIBTOOL_MODE_LINK='--mode=link'
15824 LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
15825 INSTALL_LIBRARY='${INSTALL_PROGRAM}'
15826 ;;
15827 *)
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15829 $as_echo "no" >&6; }
15830 O=o
15831 A=a
15832 LIBTOOL=
15833
15834 LIBTOOL_MKDEP_SED=
15835 LIBTOOL_MODE_COMPILE=
15836 LIBTOOL_MODE_INSTALL=
15837 LIBTOOL_MODE_LINK=
15838 LIBTOOL_MODE_UNINSTALL=
15839 INSTALL_LIBRARY='${INSTALL_DATA}'
15840 ;;
15841 esac
15842
15843
15844 #
15845 # If PIC is disabled, shared libraries must also be
15846 #
15847 if test "$pic_mode" = "no"; then :
15848 enable_shared="no"
15849 fi
15850
15851 CRYPTO=OpenSSL
15852
15853 #
15854 # was --with-openssl specified?
15855 #
15856
15857 found=false
15858 default_ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/local/opt/openssl /usr/local/opt/libressl /usr"
15859
15860 # Check whether --with-openssl was given.
15861 if test "${with_openssl+set}" = set; then :
15862 withval=$with_openssl;
15863 case $with_openssl in #(
15864 ""|y|ye|yes) :
15865 ssldirs="$default_ssldirs" ;; #(
15866 n|no) :
15867 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
15868 *) :
15869 ssldirs="$withval" ;; #(
15870 *) :
15871 ssldirs="$default_ssldirs"
15872 ;;
15873 esac
15874
15875 else
15876
15877 # if pkg-config is installed and openssl has installed a .pc file,
15878 # then use that information and don't search ssldirs
15879
15880 pkg_failed=no
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
15882 $as_echo_n "checking for crypto... " >&6; }
15883
15884 if test -n "$OPENSSL_CFLAGS"; then
15885 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
15886 elif test -n "$PKG_CONFIG"; then
15887 if test -n "$PKG_CONFIG" && \
15888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
15889 ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
15890 ac_status=$?
15891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15892 test $ac_status = 0; }; then
15893 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
15894 test "x$?" != "x0" && pkg_failed=yes
15895 else
15896 pkg_failed=yes
15897 fi
15898 else
15899 pkg_failed=untried
15900 fi
15901 if test -n "$OPENSSL_LIBS"; then
15902 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
15903 elif test -n "$PKG_CONFIG"; then
15904 if test -n "$PKG_CONFIG" && \
15905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
15906 ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
15907 ac_status=$?
15908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15909 test $ac_status = 0; }; then
15910 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
15911 test "x$?" != "x0" && pkg_failed=yes
15912 else
15913 pkg_failed=yes
15914 fi
15915 else
15916 pkg_failed=untried
15917 fi
15918
15919
15920
15921 if test $pkg_failed = yes; then
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923 $as_echo "no" >&6; }
15924
15925 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15926 _pkg_short_errors_supported=yes
15927 else
15928 _pkg_short_errors_supported=no
15929 fi
15930 if test $_pkg_short_errors_supported = yes; then
15931 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
15932 else
15933 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
15934 fi
15935 # Put the nasty error message in config.log where it belongs
15936 echo "$OPENSSL_PKG_ERRORS" >&5
15937
15938 ssldirs="$default_ssldirs"
15939 elif test $pkg_failed = untried; then
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 $as_echo "no" >&6; }
15942 ssldirs="$default_ssldirs"
15943 else
15944 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
15945 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15947 $as_echo "yes" >&6; }
15948 found=true
15949 fi
15950
15951
15952
15953 fi
15954
15955
15956
15957 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
15958 # an 'openssl' subdirectory
15959
15960 if ! $found; then :
15961
15962 OPENSSL_INCLUDES=
15963 for ssldir in $ssldirs; do
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
15965 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
15966 if test -f "$ssldir/include/openssl/ssl.h"; then :
15967
15968 OPENSSL_INCLUDES="-I$ssldir/include"
15969 OPENSSL_LIBS="-L$ssldir/lib -lcrypto"
15970 found=true
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15972 $as_echo "yes" >&6; }
15973 break
15974
15975 else
15976
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978 $as_echo "no" >&6; }
15979
15980 fi
15981 done
15982
15983 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
15984 # it will just work!
15985
15986 fi
15987
15988 # try the preprocessor and linker with our new flags,
15989 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
15990
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
15992 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
15993 # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES])
15994
15995 save_LIBS="$LIBS"
15996 save_CPPFLAGS="$CPPFLAGS"
15997 LIBS="$OPENSSL_LIBS $LIBS"
15998 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
15999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000 /* end confdefs.h. */
16001
16002 #include <openssl/crypto.h>
16003
16004 int
16005 main ()
16006 {
16007
16008 OPENSSL_free(NULL);
16009
16010 ;
16011 return 0;
16012 }
16013 _ACEOF
16014 if ac_fn_c_try_link "$LINENO"; then :
16015
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16017 $as_echo "yes" >&6; }
16018 :
16019
16020 else
16021
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16023 $as_echo "no" >&6; }
16024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16026 as_fn_error $? "OpenSSL/LibreSSL not found
16027 See \`config.log' for more details" "$LINENO" 5; }
16028
16029 fi
16030 rm -f core conftest.err conftest.$ac_objext \
16031 conftest$ac_exeext conftest.$ac_ext
16032 CPPFLAGS="$save_CPPFLAGS"
16033 LIBS="$save_LIBS"
16034
16035
16036
16037
16038
16039 save_CFLAGS="$CFLAGS"
16040 save_LIBS="$LIBS"
16041 save_LDFLAGS="$LDFLAGS"
16042 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
16043 LIBS="$LIBS $OPENSSL_LIBS"
16044 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
16045
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL" >&5
16047 $as_echo_n "checking for OpenSSL >= 1.0.0 or LibreSSL... " >&6; }
16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16050 #include <openssl/opensslv.h>
16051 int
16052 main ()
16053 {
16054 #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)
16055 #error OpenSSL >= 1.0.0 or LibreSSL required
16056 #endif
16057
16058 ;
16059 return 0;
16060 }
16061 _ACEOF
16062 if ac_fn_c_try_compile "$LINENO"; then :
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16064 $as_echo "yes" >&6; }
16065 else
16066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16068 as_fn_error $? "not found
16069 See \`config.log' for more details" "$LINENO" 5; }
16070 fi
16071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16072
16073 #
16074 # Check for functions added in OpenSSL or LibreSSL
16075 #
16076
16077 for ac_func in CRYPTO_zalloc
16078 do :
16079 ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
16080 if test "x$ac_cv_func_CRYPTO_zalloc" = xyes; then :
16081 cat >>confdefs.h <<_ACEOF
16082 #define HAVE_CRYPTO_ZALLOC 1
16083 _ACEOF
16084
16085 fi
16086 done
16087
16088 for ac_func in EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free
16089 do :
16090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16092 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16093 cat >>confdefs.h <<_ACEOF
16094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16095 _ACEOF
16096
16097 fi
16098 done
16099
16100 for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
16101 do :
16102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16104 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16105 cat >>confdefs.h <<_ACEOF
16106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16107 _ACEOF
16108
16109 fi
16110 done
16111
16112 for ac_func in HMAC_CTX_new HMAC_CTX_free HMAC_CTX_reset HMAC_CTX_get_md
16113 do :
16114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16115 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16116 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16117 cat >>confdefs.h <<_ACEOF
16118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16119 _ACEOF
16120
16121 fi
16122 done
16123
16124
16125 #
16126 # Check for algorithm support in OpenSSL
16127 #
16128
16129 for ac_func in ECDSA_sign ECDSA_verify
16130 do :
16131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16132 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16133 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16134 cat >>confdefs.h <<_ACEOF
16135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16136 _ACEOF
16137 :
16138 else
16139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16141 as_fn_error $? "ECDSA support in OpenSSL is mandatory.
16142 See \`config.log' for more details" "$LINENO" 5; }
16143 fi
16144 done
16145
16146
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
16148 $as_echo_n "checking for ECDSA P-256 support... " >&6; }
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16151 #include <openssl/evp.h>
16152 #include <openssl/ec.h>
16153 int
16154 main ()
16155 {
16156 EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
16157 ;
16158 return 0;
16159 }
16160 _ACEOF
16161 if ac_fn_c_try_compile "$LINENO"; then :
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16163 $as_echo "yes" >&6; }
16164 else
16165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16167 as_fn_error $? "not found. ECDSA P-256 support in OpenSSL is mandatory.
16168 See \`config.log' for more details" "$LINENO" 5; }
16169 fi
16170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16171
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
16173 $as_echo_n "checking for ECDSA P-384 support... " >&6; }
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h. */
16176 #include <openssl/evp.h>
16177 #include <openssl/ec.h>
16178 int
16179 main ()
16180 {
16181 EC_KEY *key = EC_KEY_new_by_curve_name(NID_secp384r1);
16182 ;
16183 return 0;
16184 }
16185 _ACEOF
16186 if ac_fn_c_try_compile "$LINENO"; then :
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16188 $as_echo "yes" >&6; }
16189 else
16190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16192 as_fn_error $? "not found. ECDSA P-384 support in OpenSSL is mandatory.
16193 See \`config.log' for more details" "$LINENO" 5; }
16194 fi
16195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16196
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
16198 $as_echo_n "checking for Ed25519 support... " >&6; }
16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h. */
16201 #include <openssl/evp.h>
16202 #include <openssl/ec.h>
16203 int
16204 main ()
16205 {
16206 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED25519);
16207 ;
16208 return 0;
16209 }
16210 _ACEOF
16211 if ac_fn_c_try_compile "$LINENO"; then :
16212
16213 $as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
16214
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16216 $as_echo "yes" >&6; }
16217 else
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16219 $as_echo "no" >&6; }
16220 fi
16221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16222
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
16224 $as_echo_n "checking for Ed448 support... " >&6; }
16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h. */
16227 #include <openssl/evp.h>
16228 #include <openssl/ec.h>
16229 int
16230 main ()
16231 {
16232 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED448);
16233 ;
16234 return 0;
16235 }
16236 _ACEOF
16237 if ac_fn_c_try_compile "$LINENO"; then :
16238
16239 $as_echo "#define HAVE_OPENSSL_ED448 1" >>confdefs.h
16240
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16242 $as_echo "yes" >&6; }
16243 else
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16245 $as_echo "no" >&6; }
16246 fi
16247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16248
16249 #
16250 # Check for OpenSSL SHA-1 support
16251 #
16252 for ac_func in EVP_sha1
16253 do :
16254 ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
16255 if test "x$ac_cv_func_EVP_sha1" = xyes; then :
16256 cat >>confdefs.h <<_ACEOF
16257 #define HAVE_EVP_SHA1 1
16258 _ACEOF
16259 :
16260 else
16261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16263 as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
16264 See \`config.log' for more details" "$LINENO" 5; }
16265 fi
16266 done
16267
16268
16269 #
16270 # Check for OpenSSL SHA-2 support
16271 #
16272 for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
16273 do :
16274 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16275 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16276 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16277 cat >>confdefs.h <<_ACEOF
16278 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16279 _ACEOF
16280 :
16281 else
16282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16284 as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
16285 See \`config.log' for more details" "$LINENO" 5; }
16286 fi
16287 done
16288
16289
16290 #
16291 # Check for OpenSSL AES support
16292 #
16293 for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
16294 do :
16295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16297 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16298 cat >>confdefs.h <<_ACEOF
16299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16300 _ACEOF
16301 :
16302 else
16303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16305 as_fn_error $? "AES support in OpenSSL is mandatory.
16306 See \`config.log' for more details" "$LINENO" 5; }
16307 fi
16308 done
16309
16310
16311 #
16312 # Check for OpenSSL 1.1.x/LibreSSL functions
16313 #
16314 for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key
16315 do :
16316 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16317 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16318 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16319 cat >>confdefs.h <<_ACEOF
16320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16321 _ACEOF
16322
16323 fi
16324 done
16325
16326
16327 #
16328 # Check whether FIPS mode is available and whether we should enable it
16329 #
16330 # Check whether --enable-fips-mode was given.
16331 if test "${enable_fips_mode+set}" = set; then :
16332 enableval=$enable_fips_mode;
16333 else
16334 enable_fips_mode="no"
16335 fi
16336
16337
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
16339 $as_echo_n "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
16340 case $enable_fips_mode in #(
16341 yes) :
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16343 $as_echo "yes" >&6; }
16344 for ac_func in FIPS_mode
16345 do :
16346 ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
16347 if test "x$ac_cv_func_FIPS_mode" = xyes; then :
16348 cat >>confdefs.h <<_ACEOF
16349 #define HAVE_FIPS_MODE 1
16350 _ACEOF
16351
16352 else
16353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16355 as_fn_error $? "OpenSSL FIPS mode requested but not available.
16356 See \`config.log' for more details" "$LINENO" 5; }
16357 fi
16358 done
16359 ;; #(
16360 no) :
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16362 $as_echo "no" >&6; } ;; #(
16363 *) :
16364 ;;
16365 esac
16366
16367 CFLAGS="$save_CFLAGS"
16368 LIBS="$save_LIBS"
16369 LDFLAGS="$save_LDFLAGS"
16370
16371
16372
16373
16374
16375 #
16376 # Client Cookie algorithm choice
16377 #
16378
16379 # Check whether --with-cc-alg was given.
16380 if test "${with_cc_alg+set}" = set; then :
16381 withval=$with_cc_alg; :
16382 else
16383 with_cc_alg="siphash24"
16384 fi
16385
16386
16387 case $with_cc_alg in #(
16388 siphash24) :
16389 : ;; #(
16390 *) :
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The Client Cookie is always SipHash 2-4 based" >&5
16392 $as_echo "$as_me: WARNING: The Client Cookie is always SipHash 2-4 based" >&2;} ;;
16393 esac
16394
16395 PKCS11_TOOLS=
16396 PKCS11_TEST=
16397 #
16398 # was --enable-native-pkcs11 specified?
16399 #
16400 # Check whether --enable-native-pkcs11 was given.
16401 if test "${enable_native_pkcs11+set}" = set; then :
16402 enableval=$enable_native_pkcs11; :
16403 else
16404 enable_native_pkcs11="no"
16405 fi
16406
16407
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 for Public-Key Cryptography" >&5
16409 $as_echo_n "checking for PKCS11 for Public-Key Cryptography... " >&6; }
16410 case $enable_native_pkcs11 in #(
16411 no) :
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16413 $as_echo "no" >&6; } ;; #(
16414 yes) :
16415 PKCS11_TOOLS=pkcs11
16416 PKCS11_TEST=pkcs11
16417 CRYPTO=pkcs11
16418 if $use_threads; then :
16419 :
16420 else
16421 as_fn_error $? "PKCS11 requires threading support" "$LINENO" 5
16422 fi
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16424 $as_echo "yes" >&6; }
16425 for ac_func in getpassphrase
16426 do :
16427 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
16428 if test "x$ac_cv_func_getpassphrase" = xyes; then :
16429 cat >>confdefs.h <<_ACEOF
16430 #define HAVE_GETPASSPHRASE 1
16431 _ACEOF
16432
16433 fi
16434 done
16435
16436 ;; #(
16437 *) :
16438 ;;
16439 esac
16440
16441
16442
16443 case $CRYPTO in #(
16444 pkcs11) :
16445
16446 $as_echo "#define USE_PKCS11 1" >>confdefs.h
16447 ;; #(
16448 *) :
16449
16450 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
16451 ;;
16452 esac
16453
16454 # preparation for automake
16455 # AM_CONDITIONAL([PKCS11_TOOLS], [test "$with_native_pkcs11" = "yes"])
16456
16457 #
16458 # was --with-pkcs11 specified?
16459 #
16460
16461 # Check whether --with-pkcs11 was given.
16462 if test "${with_pkcs11+set}" = set; then :
16463 withval=$with_pkcs11; :
16464 else
16465 with_pkcs11="undefined"
16466 fi
16467
16468
16469 case $with_pkcs11 in #(
16470 yes|auto) :
16471 as_fn_error $? "--with-pkcs11 needs explicit path to the PKCS11 library" "$LINENO" 5 ;; #(
16472 no|undefined) :
16473 with_pkcs11="undefined" ;; #(
16474 *) :
16475 ;;
16476 esac
16477
16478 cat >>confdefs.h <<_ACEOF
16479 #define PK11_LIB_LOCATION "$with_pkcs11"
16480 _ACEOF
16481
16482
16483 # for PKCS11 benchmarks
16484
16485 have_clock_gt=no
16486 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
16487 if test "x$ac_cv_func_clock_gettime" = xyes; then :
16488 have_clock_gt=yes
16489 fi
16490
16491 if test "no" = "$have_clock_gt"; then
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16493 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16494 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16495 $as_echo_n "(cached) " >&6
16496 else
16497 ac_check_lib_save_LIBS=$LIBS
16498 LIBS="-lrt $LIBS"
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16501
16502 /* Override any GCC internal prototype to avoid an error.
16503 Use char because int might match the return type of a GCC
16504 builtin and then its argument prototype would still apply. */
16505 #ifdef __cplusplus
16506 extern "C"
16507 #endif
16508 char clock_gettime ();
16509 int
16510 main ()
16511 {
16512 return clock_gettime ();
16513 ;
16514 return 0;
16515 }
16516 _ACEOF
16517 if ac_fn_c_try_link "$LINENO"; then :
16518 ac_cv_lib_rt_clock_gettime=yes
16519 else
16520 ac_cv_lib_rt_clock_gettime=no
16521 fi
16522 rm -f core conftest.err conftest.$ac_objext \
16523 conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16525 fi
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16527 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16528 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16529 have_clock_gt=rt
16530 fi
16531
16532 fi
16533
16534 if test "no" != "$have_clock_gt"; then
16535
16536 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16537
16538 fi
16539
16540 if test "rt" = "$have_clock_gt"; then
16541 LIBS="-lrt $LIBS"
16542 fi
16543
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
16545 $as_echo_n "checking for GSSAPI library... " >&6; }
16546
16547 # Check whether --with-gssapi was given.
16548 if test "${with_gssapi+set}" = set; then :
16549 withval=$with_gssapi; use_gssapi="$withval"
16550 else
16551 use_gssapi="auto"
16552 fi
16553
16554
16555 # first try using krb5-config, if that does not work then fall back to "yes" method.
16556
16557 case "$use_gssapi" in
16558 */krb5-config|krb5-config)
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
16560 $as_echo "trying $use_gssapi" >&6; }
16561 if test krb5-config = "$use_gssapi"
16562 then
16563 # Extract the first word of "$use_gssapi", so it can be a program name with args.
16564 set dummy $use_gssapi; ac_word=$2
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16566 $as_echo_n "checking for $ac_word... " >&6; }
16567 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
16568 $as_echo_n "(cached) " >&6
16569 else
16570 case $KRB5_CONFIG in
16571 [\\/]* | ?:[\\/]*)
16572 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
16573 ;;
16574 *)
16575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16576 for as_dir in $PATH
16577 do
16578 IFS=$as_save_IFS
16579 test -z "$as_dir" && as_dir=.
16580 for ac_exec_ext in '' $ac_executable_extensions; do
16581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16582 ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16584 break 2
16585 fi
16586 done
16587 done
16588 IFS=$as_save_IFS
16589
16590 ;;
16591 esac
16592 fi
16593 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
16594 if test -n "$KRB5_CONFIG"; then
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
16596 $as_echo "$KRB5_CONFIG" >&6; }
16597 else
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16599 $as_echo "no" >&6; }
16600 fi
16601
16602
16603 else
16604 KRB5_CONFIG="$use_gssapi"
16605 fi
16606 gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
16607 gssapi_libs=`$KRB5_CONFIG --libs gssapi`
16608 saved_cppflags="$CPPFLAGS"
16609 CPPFLAGS="$gssapi_cflags $CPPFLAGS"
16610 for ac_header in gssapi.h gssapi/gssapi.h
16611 do :
16612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16613 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16614 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16615 cat >>confdefs.h <<_ACEOF
16616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16617 _ACEOF
16618 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
16619 fi
16620
16621 done
16622
16623 if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
16625 $as_echo "krb5-config: gssapi.h not found" >&6; }
16626 CPPFLAGS="$saved_cppflags"
16627 use_gssapi="yes"
16628 else
16629 for ac_header in krb5/krb5.h krb5.h
16630 do :
16631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16632 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16633 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16634 cat >>confdefs.h <<_ACEOF
16635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16636 _ACEOF
16637 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
16638 fi
16639
16640 done
16641
16642 if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
16644 $as_echo "krb5-config: krb5.h not found" >&6; }
16645 CPPFLAGS="$saved_cppflags"
16646 use_gssapi="yes"
16647 else
16648 CPPFLAGS="$saved_cppflags"
16649 saved_libs="$LIBS"
16650 LIBS=$gssapi_libs
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
16652 $as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16655
16656 int
16657 main ()
16658 {
16659 gss_acquire_cred();krb5_init_context()
16660 ;
16661 return 0;
16662 }
16663 _ACEOF
16664 if ac_fn_c_try_link "$LINENO"; then :
16665 gssapi_linked=yes
16666 else
16667 gssapi_linked=no
16668 fi
16669 rm -f core conftest.err conftest.$ac_objext \
16670 conftest$ac_exeext conftest.$ac_ext
16671 case $gssapi_linked in
16672 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
16673 $as_echo "krb5-config: linked" >&6; };;
16674 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
16675 $as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
16676 use_gssapi="yes"
16677 ;;
16678 esac
16679 LIBS=$saved_libs
16680 fi
16681 fi
16682 if test "yes" = "$use_gssapi"; then
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
16684 $as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
16685 fi
16686 ;;
16687 esac
16688
16689 case "$host" in
16690 *darwin*)
16691 if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
16692 then
16693 use_gssapi=framework
16694 fi
16695 ;;
16696 esac
16697
16698 # gssapi is just the framework, we really require kerberos v5, so
16699 # look for those headers (the gssapi headers must be there, too)
16700 # The problem with this implementation is that it doesn't allow
16701 # for the specification of gssapi and krb5 headers in different locations,
16702 # which probably ought to be fixed although fixing might raise the issue of
16703 # trying to build with incompatible versions of gssapi and krb5.
16704 if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
16705 then
16706 # first, deal with the obvious
16707 if test \( -f /usr/include/kerberosv5/krb5.h -o \
16708 -f /usr/include/krb5/krb5.h -o \
16709 -f /usr/include/krb5.h \) -a \
16710 \( -f /usr/include/gssapi.h -o \
16711 -f /usr/include/gssapi/gssapi.h \)
16712 then
16713 use_gssapi=/usr
16714 else
16715 krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
16716 for d in $krb5dirs
16717 do
16718 if test -f $d/include/gssapi/gssapi_krb5.h -o \
16719 -f $d/include/krb5.h
16720 then
16721 if test -f $d/include/gssapi/gssapi.h -o \
16722 -f $d/include/gssapi.h
16723 then
16724 use_gssapi=$d
16725 break
16726 fi
16727 fi
16728 done
16729 if test "auto" = "$use_gssapi"
16730 then
16731 use_gssapi="no"
16732 fi
16733 fi
16734 fi
16735
16736 case "$use_gssapi" in
16737 no)
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16739 $as_echo "disabled" >&6; }
16740 USE_GSSAPI=''
16741 ;;
16742 yes)
16743 as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
16744 ;;
16745 */krb5-config|krb5-config)
16746 USE_GSSAPI='-DGSSAPI'
16747 DST_GSSAPI_INC="$gssapi_cflags"
16748 DNS_GSSAPI_LIBS="$gssapi_libs"
16749 ;;
16750 framework)
16751 USE_GSSAPI='-DGSSAPI'
16752 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
16753 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
16754 DNS_GSSAPI_LIBS="-framework Kerberos"
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
16756 $as_echo "framework" >&6; }
16757 ;;
16758
16759 *)
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
16761 $as_echo "looking in $use_gssapi/lib" >&6; }
16762 USE_GSSAPI='-DGSSAPI'
16763 saved_cppflags="$CPPFLAGS"
16764 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
16765 for ac_header in gssapi.h gssapi/gssapi.h
16766 do :
16767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16768 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16769 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16770 cat >>confdefs.h <<_ACEOF
16771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16772 _ACEOF
16773 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
16774 gssapi_hack="#include <$ac_header>"
16775 fi
16776
16777 done
16778
16779
16780 if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
16781 as_fn_error $? "gssapi.h not found" "$LINENO" 5
16782 fi
16783
16784 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
16785 do :
16786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16787 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16788 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16789 cat >>confdefs.h <<_ACEOF
16790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16791 _ACEOF
16792 ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
16793 gssapi_krb5_hack="#include <$ac_header>"
16794 fi
16795
16796 done
16797
16798
16799 for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
16800 do :
16801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16802 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16803 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16804 cat >>confdefs.h <<_ACEOF
16805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16806 _ACEOF
16807 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
16808 krb5_hack="#include <$ac_header>"
16809 fi
16810
16811 done
16812
16813
16814 if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
16815 as_fn_error $? "krb5.h not found" "$LINENO" 5
16816 fi
16817
16818 #
16819 # XXXDCL This probably doesn't work right on all systems.
16820 # It will need to be worked on as problems become evident.
16821 #
16822 # Essentially the problems here relate to two different
16823 # areas. The first area is building with either KTH
16824 # or MIT Kerberos, particularly when both are present on
16825 # the machine. The other is static versus dynamic linking.
16826 #
16827 # On the KTH vs MIT issue, Both have libkrb5 that can mess
16828 # up the works if one implementation ends up trying to
16829 # use the other's krb. This is unfortunately a situation
16830 # that very easily arises.
16831 #
16832 # Dynamic linking when the dependency information is built
16833 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
16834 # all such problems go away, but when that setup is not
16835 # present, because either the dynamic libraries lack
16836 # dependencies or static linking is being done, then the
16837 # problems start to show up.
16838 saved_libs="$LIBS"
16839 for TRY_LIBS in \
16840 "-lgssapi_krb5" \
16841 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
16842 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
16843 "-lgssapi" \
16844 "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
16845 "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
16846 "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
16847 "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
16848 "-lgss -lkrb5"
16849 do
16850 # Note that this does not include $saved_libs, because
16851 # on FreeBSD machines this configure script has added
16852 # -L/usr/local/lib to LIBS, which can make the
16853 # -lgssapi_krb5 test succeed with shared libraries even
16854 # when you are trying to build with KTH in /usr/lib.
16855 if test "/usr" = "$use_gssapi"
16856 then
16857 LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
16858 else
16859 LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
16860 fi
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
16862 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864 /* end confdefs.h. */
16865
16866 #include <sys/types.h>
16867 $gssapi_hack
16868 $gssapi_krb5_hack
16869 $krb5_hack
16870
16871 int
16872 main ()
16873 {
16874 gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
16875 #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
16876 gsskrb5_register_acceptor_identity(NULL);
16877 #endif
16878 ;
16879 return 0;
16880 }
16881 _ACEOF
16882 if ac_fn_c_try_link "$LINENO"; then :
16883 gssapi_linked=yes
16884 else
16885 gssapi_linked=no
16886 fi
16887 rm -f core conftest.err conftest.$ac_objext \
16888 conftest$ac_exeext conftest.$ac_ext
16889 case $gssapi_linked in
16890 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16891 $as_echo "yes" >&6; }; break ;;
16892 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16893 $as_echo "no" >&6; } ;;
16894 esac
16895 done
16896
16897 CPPFLAGS="$saved_cppflags"
16898
16899 case $gssapi_linked in
16900 no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
16901 esac
16902
16903 #
16904 # XXXDCL Major kludge. Tries to cope with KTH in /usr/lib
16905 # but MIT in /usr/local/lib and trying to build with KTH.
16906 # /usr/local/lib can end up earlier on the link lines.
16907 # Like most kludges, this one is not only inelegant it
16908 # is also likely to be the wrong thing to do at least as
16909 # many times as it is the right thing. Something better
16910 # needs to be done.
16911 #
16912 if test "/usr" = "$use_gssapi" -a \
16913 -f /usr/local/lib/libkrb5.a; then
16914 FIX_KTH_VS_MIT=yes
16915 fi
16916
16917 case "$FIX_KTH_VS_MIT" in
16918 yes)
16919 case "$enable_static_linking" in
16920 yes) gssapi_lib_suffix=".a" ;;
16921 *) gssapi_lib_suffix=".so" ;;
16922 esac
16923
16924 for lib in $LIBS; do
16925 case $lib in
16926 -L*)
16927 ;;
16928 -l*)
16929 new_lib=`echo $lib |
16930 sed -e s%^-l%$use_gssapi/lib/lib% \
16931 -e s%$%$gssapi_lib_suffix%`
16932 NEW_LIBS="$NEW_LIBS $new_lib"
16933 ;;
16934 *)
16935 as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
16936 ;;
16937 esac
16938 done
16939 LIBS="$NEW_LIBS"
16940 ;;
16941 esac
16942
16943 DST_GSSAPI_INC="-I$use_gssapi/include"
16944 DNS_GSSAPI_LIBS="$LIBS"
16945
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
16947 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
16948 LIBS="$saved_libs"
16949 ;;
16950 esac
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
16961
16962 #
16963 # Applications linking with libdns also need to link with these libraries.
16964 #
16965
16966
16967
16968 #
16969 # was --with-lmdb specified?
16970 #
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
16972 $as_echo_n "checking for lmdb library... " >&6; }
16973
16974 # Check whether --with-lmdb was given.
16975 if test "${with_lmdb+set}" = set; then :
16976 withval=$with_lmdb; use_lmdb="$withval"
16977 else
16978 use_lmdb="auto"
16979 fi
16980
16981
16982 have_lmdb=""
16983 case "$use_lmdb" in
16984 no)
16985 lmdb_libs=""
16986 ;;
16987 auto|yes)
16988 for d in /usr /usr/local /opt/local
16989 do
16990 if test -f "${d}/include/lmdb.h"
16991 then
16992 if test ${d} != /usr
16993 then
16994 lmdb_cflags="-I ${d}/include"
16995 LIBS="$LIBS -L${d}/lib"
16996 fi
16997 have_lmdb="yes"
16998 fi
16999 done
17000 ;;
17001 *)
17002 if test -f "${use_lmdb}/include/lmdb.h"
17003 then
17004 lmdb_cflags="-I${use_lmdb}/include"
17005 LIBS="$LIBS -L${use_lmdb}/lib"
17006 have_lmdb="yes"
17007 else
17008 as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
17009 fi
17010 ;;
17011 esac
17012
17013 if test "X${have_lmdb}" != "X"
17014 then
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17016 $as_echo "yes" >&6; }
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
17018 $as_echo_n "checking for library containing mdb_env_create... " >&6; }
17019 if ${ac_cv_search_mdb_env_create+:} false; then :
17020 $as_echo_n "(cached) " >&6
17021 else
17022 ac_func_search_save_LIBS=$LIBS
17023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17024 /* end confdefs.h. */
17025
17026 /* Override any GCC internal prototype to avoid an error.
17027 Use char because int might match the return type of a GCC
17028 builtin and then its argument prototype would still apply. */
17029 #ifdef __cplusplus
17030 extern "C"
17031 #endif
17032 char mdb_env_create ();
17033 int
17034 main ()
17035 {
17036 return mdb_env_create ();
17037 ;
17038 return 0;
17039 }
17040 _ACEOF
17041 for ac_lib in '' lmdb; do
17042 if test -z "$ac_lib"; then
17043 ac_res="none required"
17044 else
17045 ac_res=-l$ac_lib
17046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17047 fi
17048 if ac_fn_c_try_link "$LINENO"; then :
17049 ac_cv_search_mdb_env_create=$ac_res
17050 fi
17051 rm -f core conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext
17053 if ${ac_cv_search_mdb_env_create+:} false; then :
17054 break
17055 fi
17056 done
17057 if ${ac_cv_search_mdb_env_create+:} false; then :
17058
17059 else
17060 ac_cv_search_mdb_env_create=no
17061 fi
17062 rm conftest.$ac_ext
17063 LIBS=$ac_func_search_save_LIBS
17064 fi
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
17066 $as_echo "$ac_cv_search_mdb_env_create" >&6; }
17067 ac_res=$ac_cv_search_mdb_env_create
17068 if test "$ac_res" != no; then :
17069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17070
17071 else
17072 as_fn_error $? "found lmdb include but not library." "$LINENO" 5
17073 have_lmdb=""
17074 fi
17075
17076 elif test "X$use_lmdb" = Xyes
17077 then
17078 as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
17079 else
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081 $as_echo "no" >&6; }
17082 fi
17083
17084 NZD_TOOLS=""
17085 NZDSRCS=
17086 NZDTARGETS=
17087 if test "X${have_lmdb}" != "X"
17088 then
17089 CFLAGS="$CFLAGS $lmdb_cflags"
17090
17091 $as_echo "#define HAVE_LMDB 1" >>confdefs.h
17092
17093 NZD_TOOLS="nzd"
17094 NZDSRCS='${NZDSRCS}'
17095 NZDTARGETS='${NZDTARGETS}'
17096 fi
17097
17098
17099
17100
17101 #
17102 # was --with-libxml2 specified?
17103 #
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
17105 $as_echo_n "checking for libxml2 library... " >&6; }
17106
17107 # Check whether --with-libxml2 was given.
17108 if test "${with_libxml2+set}" = set; then :
17109 withval=$with_libxml2; use_libxml2="$withval"
17110 else
17111 use_libxml2="auto"
17112 fi
17113
17114
17115 case "$use_libxml2" in
17116 no)
17117 DST_LIBXML2_INC=""
17118 ;;
17119 auto|yes)
17120 case X`(xml2-config --version) 2>/dev/null` in
17121 X2.[6789].*)
17122 libxml2_libs=`xml2-config --libs`
17123 libxml2_cflags=`xml2-config --cflags`
17124 ;;
17125 *)
17126 if test "yes" = "$use_libxml2" ; then
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128 $as_echo "no" >&6; }
17129 as_fn_error $? "required libxml2 version not available" "$LINENO" 5
17130 else
17131 libxml2_libs=
17132 libxml2_cflags=
17133 fi
17134 ;;
17135 esac
17136 ;;
17137 *)
17138 if test -f "$use_libxml2/bin/xml2-config" ; then
17139 libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
17140 libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
17141 fi
17142 ;;
17143 esac
17144
17145 if test "X$libxml2_libs" != "X"
17146 then
17147 CFLAGS="$CFLAGS $libxml2_cflags"
17148 LIBS="$LIBS $libxml2_libs"
17149 #
17150 # Sanity check xml2-config output.
17151 #
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153 /* end confdefs.h. */
17154 #include <libxml/xmlwriter.h>
17155 int
17156 main ()
17157 {
17158 return(xmlTextWriterStartElement(NULL, NULL));
17159 ;
17160 return 0;
17161 }
17162 _ACEOF
17163 if ac_fn_c_try_link "$LINENO"; then :
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17165 $as_echo "yes" >&6; }
17166 else
17167 as_fn_error $? "xml2-config returns badness" "$LINENO" 5
17168 fi
17169 rm -f core conftest.err conftest.$ac_objext \
17170 conftest$ac_exeext conftest.$ac_ext
17171
17172 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
17173
17174 XMLSTATS=1
17175 else
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17177 $as_echo "no" >&6; }
17178 fi
17179
17180
17181 #
17182 # was --with-libjson specified?
17183 #
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json library" >&5
17185 $as_echo_n "checking for json library... " >&6; }
17186
17187 # Check whether --with-libjson was given.
17188 if test "${with_libjson+set}" = set; then :
17189 withval=$with_libjson; use_libjson="$withval"
17190 else
17191 use_libjson="auto"
17192 fi
17193
17194
17195 have_libjson=""
17196 have_libjson_c=""
17197 case "$use_libjson" in
17198 no)
17199 libjson_libs=""
17200 ;;
17201 auto|yes)
17202 for d in /usr /usr/local /opt/local
17203 do
17204 if test -f "${d}/include/json/json.h"
17205 then
17206 if test ${d} != /usr
17207 then
17208 libjson_cflags="-I ${d}/include"
17209 LIBS="$LIBS -L${d}/lib"
17210 fi
17211 have_libjson="yes"
17212 elif test -f "${d}/include/json-c/json.h"
17213 then
17214 if test ${d} != /usr
17215 then
17216 libjson_cflags="-I ${d}/include"
17217 LIBS="$LIBS -L${d}/lib"
17218 fi
17219 have_libjson="yes"
17220 have_libjson_c="yes"
17221 fi
17222 done
17223 ;;
17224 *)
17225 if test -f "${use_libjson}/include/json/json.h"
17226 then
17227 libjson_cflags="-I${use_libjson}/include"
17228 LIBS="$LIBS -L${use_libjson}/lib"
17229 have_libjson="yes"
17230 elif test -f "${use_libjson}/include/json-c/json.h"
17231 then
17232 libjson_cflags="-I${use_libjson}/include"
17233 LIBS="$LIBS -L${use_libjson}/lib"
17234 have_libjson="yes"
17235 have_libjson_c="yes"
17236 else
17237 as_fn_error $? "$use_libjson/include/json{,-c}/json.h not found." "$LINENO" 5
17238 fi
17239 ;;
17240 esac
17241
17242 if test "X${have_libjson}" != "X"
17243 then
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17245 $as_echo "yes" >&6; }
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int64" >&5
17247 $as_echo_n "checking for library containing json_object_new_int64... " >&6; }
17248 if ${ac_cv_search_json_object_new_int64+:} false; then :
17249 $as_echo_n "(cached) " >&6
17250 else
17251 ac_func_search_save_LIBS=$LIBS
17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17254
17255 /* Override any GCC internal prototype to avoid an error.
17256 Use char because int might match the return type of a GCC
17257 builtin and then its argument prototype would still apply. */
17258 #ifdef __cplusplus
17259 extern "C"
17260 #endif
17261 char json_object_new_int64 ();
17262 int
17263 main ()
17264 {
17265 return json_object_new_int64 ();
17266 ;
17267 return 0;
17268 }
17269 _ACEOF
17270 for ac_lib in '' json json-c; do
17271 if test -z "$ac_lib"; then
17272 ac_res="none required"
17273 else
17274 ac_res=-l$ac_lib
17275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17276 fi
17277 if ac_fn_c_try_link "$LINENO"; then :
17278 ac_cv_search_json_object_new_int64=$ac_res
17279 fi
17280 rm -f core conftest.err conftest.$ac_objext \
17281 conftest$ac_exeext
17282 if ${ac_cv_search_json_object_new_int64+:} false; then :
17283 break
17284 fi
17285 done
17286 if ${ac_cv_search_json_object_new_int64+:} false; then :
17287
17288 else
17289 ac_cv_search_json_object_new_int64=no
17290 fi
17291 rm conftest.$ac_ext
17292 LIBS=$ac_func_search_save_LIBS
17293 fi
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int64" >&5
17295 $as_echo "$ac_cv_search_json_object_new_int64" >&6; }
17296 ac_res=$ac_cv_search_json_object_new_int64
17297 if test "$ac_res" != no; then :
17298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17299
17300 else
17301 as_fn_error $? "found libjson include but not library." "$LINENO" 5
17302 have_libjson=""
17303 fi
17304
17305 elif test "X$use_libjson" = Xyes
17306 then
17307 as_fn_error $? "include/json{,-c}/json.h not found." "$LINENO" 5
17308 else
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17310 $as_echo "no" >&6; }
17311 fi
17312
17313 if test "X${have_libjson}" != "X"
17314 then
17315 CFLAGS="$CFLAGS $libjson_cflags"
17316
17317 $as_echo "#define HAVE_JSON 1" >>confdefs.h
17318
17319 if test "X${have_libjson_c}" = Xyes
17320 then
17321
17322 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
17323
17324 fi
17325 JSONSTATS=1
17326 fi
17327
17328
17329 #
17330 # was --with-zlib specified?
17331 #
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5
17333 $as_echo_n "checking for zlib library... " >&6; }
17334
17335 # Check whether --with-zlib was given.
17336 if test "${with_zlib+set}" = set; then :
17337 withval=$with_zlib; with_zlib="$withval"
17338 else
17339 with_zlib="auto"
17340 fi
17341
17342
17343 have_zlib=""
17344 case "$with_zlib" in
17345 no)
17346 zlib_libs=""
17347 ;;
17348 auto|yes)
17349 for d in /usr /usr/local /opt/local
17350 do
17351 if test -f "${d}/include/zlib.h"
17352 then
17353 if test ${d} != /usr
17354 then
17355 zlib_cflags="-I ${d}/include"
17356 LIBS="$LIBS -L${d}/lib"
17357 fi
17358 have_zlib="yes"
17359 fi
17360 done
17361 ;;
17362 *)
17363 if test -f "${with_zlib}/include/zlib.h"
17364 then
17365 zlib_cflags="-I${with_zlib}/include"
17366 LIBS="$LIBS -L${with_zlib}/lib"
17367 have_zlib="yes"
17368 else
17369 as_fn_error $? "$with_zlib/include/zlib.h not found." "$LINENO" 5
17370 fi
17371 ;;
17372 esac
17373
17374 if test "X${have_zlib}" != "X"
17375 then
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17377 $as_echo "yes" >&6; }
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
17379 $as_echo_n "checking for library containing deflate... " >&6; }
17380 if ${ac_cv_search_deflate+:} false; then :
17381 $as_echo_n "(cached) " >&6
17382 else
17383 ac_func_search_save_LIBS=$LIBS
17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385 /* end confdefs.h. */
17386
17387 /* Override any GCC internal prototype to avoid an error.
17388 Use char because int might match the return type of a GCC
17389 builtin and then its argument prototype would still apply. */
17390 #ifdef __cplusplus
17391 extern "C"
17392 #endif
17393 char deflate ();
17394 int
17395 main ()
17396 {
17397 return deflate ();
17398 ;
17399 return 0;
17400 }
17401 _ACEOF
17402 for ac_lib in '' z; do
17403 if test -z "$ac_lib"; then
17404 ac_res="none required"
17405 else
17406 ac_res=-l$ac_lib
17407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17408 fi
17409 if ac_fn_c_try_link "$LINENO"; then :
17410 ac_cv_search_deflate=$ac_res
17411 fi
17412 rm -f core conftest.err conftest.$ac_objext \
17413 conftest$ac_exeext
17414 if ${ac_cv_search_deflate+:} false; then :
17415 break
17416 fi
17417 done
17418 if ${ac_cv_search_deflate+:} false; then :
17419
17420 else
17421 ac_cv_search_deflate=no
17422 fi
17423 rm conftest.$ac_ext
17424 LIBS=$ac_func_search_save_LIBS
17425 fi
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
17427 $as_echo "$ac_cv_search_deflate" >&6; }
17428 ac_res=$ac_cv_search_deflate
17429 if test "$ac_res" != no; then :
17430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17431
17432 else
17433 as_fn_error $? "found zlib include but not library." "$LINENO" 5
17434 have_zlib=""
17435 fi
17436
17437 elif test "X$with_zlib" = Xyes
17438 then
17439 as_fn_error $? "include/zlib.h not found." "$LINENO" 5
17440 else
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17442 $as_echo "no" >&6; }
17443 fi
17444
17445 ZLIB=
17446 if test "X${have_zlib}" != "X"
17447 then
17448 CFLAGS="$CFLAGS $zlib_cflags"
17449
17450 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
17451
17452 ZLIB=1
17453 fi
17454
17455
17456
17457 #
17458 # In solaris 10, SMF can manage named service
17459 #
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
17461 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
17462 if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
17463 $as_echo_n "(cached) " >&6
17464 else
17465 ac_check_lib_save_LIBS=$LIBS
17466 LIBS="-lscf $LIBS"
17467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17468 /* end confdefs.h. */
17469
17470 /* Override any GCC internal prototype to avoid an error.
17471 Use char because int might match the return type of a GCC
17472 builtin and then its argument prototype would still apply. */
17473 #ifdef __cplusplus
17474 extern "C"
17475 #endif
17476 char smf_enable_instance ();
17477 int
17478 main ()
17479 {
17480 return smf_enable_instance ();
17481 ;
17482 return 0;
17483 }
17484 _ACEOF
17485 if ac_fn_c_try_link "$LINENO"; then :
17486 ac_cv_lib_scf_smf_enable_instance=yes
17487 else
17488 ac_cv_lib_scf_smf_enable_instance=no
17489 fi
17490 rm -f core conftest.err conftest.$ac_objext \
17491 conftest$ac_exeext conftest.$ac_ext
17492 LIBS=$ac_check_lib_save_LIBS
17493 fi
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
17495 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
17496 if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
17497 cat >>confdefs.h <<_ACEOF
17498 #define HAVE_LIBSCF 1
17499 _ACEOF
17500
17501 LIBS="-lscf $LIBS"
17502
17503 fi
17504
17505
17506 #
17507 # Large File
17508 #
17509 # Check whether --enable-largefile was given.
17510 if test "${enable_largefile+set}" = set; then :
17511 enableval=$enable_largefile; want_largefile="yes"
17512 else
17513 want_largefile="no"
17514 fi
17515
17516 case $want_largefile in
17517 yes)
17518 ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
17519 ;;
17520 *)
17521 ;;
17522 esac
17523
17524 #
17525 # Additional compiler settings.
17526 #
17527 MKDEPCC="$CC"
17528 MKDEPCFLAGS="-M"
17529
17530 if test "X$GCC" = "Xyes"; then
17531 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
17533 $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
17534 SAVE_CFLAGS="$CFLAGS"
17535 CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
17536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537 /* end confdefs.h. */
17538
17539 int
17540 main ()
17541 {
17542
17543 ;
17544 return 0;
17545 }
17546 _ACEOF
17547 if ac_fn_c_try_compile "$LINENO"; then :
17548 FNOSTRICTALIASING=yes
17549 else
17550 FNOSTRICTALIASING=no
17551 fi
17552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17553 CFLAGS="$SAVE_CFLAGS"
17554 if test "yes" = "$FNOSTRICTALIASING"; then
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17556 $as_echo "yes" >&6; }
17557 STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
17558 else
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17560 $as_echo "no" >&6; }
17561 fi
17562 #
17563 # turn off delete null pointer checks
17564 #
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5
17566 $as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; }
17567 SAVE_CFLAGS="$CFLAGS"
17568 CFLAGS="$CFLAGS -Werror -fno-delete-null-pointer-checks"
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17571
17572 int
17573 main ()
17574 {
17575
17576 ;
17577 return 0;
17578 }
17579 _ACEOF
17580 if ac_fn_c_try_compile "$LINENO"; then :
17581 FNODELETENULLPOINTERCHECKS=yes
17582 else
17583 FNODELETENULLPOINTERCHECKS=no
17584 fi
17585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17586 CFLAGS="$SAVE_CFLAGS"
17587 if test "yes" = "$FNODELETENULLPOINTERCHECKS"; then
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17589 $as_echo "yes" >&6; }
17590 STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
17591 else
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17593 $as_echo "no" >&6; }
17594 fi
17595 if test "X$enable_warn_shadow" = Xyes; then
17596 STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
17597 fi
17598 if test "X$enable_warn_error" = Xyes; then
17599 STD_CWARNINGS="$STD_CWARNINGS -Werror"
17600 fi
17601 else
17602 case $host in
17603 *-solaris*)
17604 MKDEPCFLAGS="-xM"
17605 ;;
17606 esac
17607 fi
17608
17609
17610
17611
17612
17613 #
17614 # -lxnet buys us one big porting headache... standards, gotta love 'em.
17615 #
17616 # AC_CHECK_LIB(xnet, socket, ,
17617 # AC_CHECK_LIB(socket, socket)
17618 # )
17619 #
17620 # Use this for now, instead:
17621 #
17622 case "$host" in
17623 *-linux*)
17624 ;;
17625 *)
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17627 $as_echo_n "checking for socket in -lsocket... " >&6; }
17628 if ${ac_cv_lib_socket_socket+:} false; then :
17629 $as_echo_n "(cached) " >&6
17630 else
17631 ac_check_lib_save_LIBS=$LIBS
17632 LIBS="-lsocket $LIBS"
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17635
17636 /* Override any GCC internal prototype to avoid an error.
17637 Use char because int might match the return type of a GCC
17638 builtin and then its argument prototype would still apply. */
17639 #ifdef __cplusplus
17640 extern "C"
17641 #endif
17642 char socket ();
17643 int
17644 main ()
17645 {
17646 return socket ();
17647 ;
17648 return 0;
17649 }
17650 _ACEOF
17651 if ac_fn_c_try_link "$LINENO"; then :
17652 ac_cv_lib_socket_socket=yes
17653 else
17654 ac_cv_lib_socket_socket=no
17655 fi
17656 rm -f core conftest.err conftest.$ac_objext \
17657 conftest$ac_exeext conftest.$ac_ext
17658 LIBS=$ac_check_lib_save_LIBS
17659 fi
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17661 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17662 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17663 cat >>confdefs.h <<_ACEOF
17664 #define HAVE_LIBSOCKET 1
17665 _ACEOF
17666
17667 LIBS="-lsocket $LIBS"
17668
17669 fi
17670
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
17672 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
17673 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
17674 $as_echo_n "(cached) " >&6
17675 else
17676 ac_check_lib_save_LIBS=$LIBS
17677 LIBS="-lnsl $LIBS"
17678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17679 /* end confdefs.h. */
17680
17681 /* Override any GCC internal prototype to avoid an error.
17682 Use char because int might match the return type of a GCC
17683 builtin and then its argument prototype would still apply. */
17684 #ifdef __cplusplus
17685 extern "C"
17686 #endif
17687 char inet_addr ();
17688 int
17689 main ()
17690 {
17691 return inet_addr ();
17692 ;
17693 return 0;
17694 }
17695 _ACEOF
17696 if ac_fn_c_try_link "$LINENO"; then :
17697 ac_cv_lib_nsl_inet_addr=yes
17698 else
17699 ac_cv_lib_nsl_inet_addr=no
17700 fi
17701 rm -f core conftest.err conftest.$ac_objext \
17702 conftest$ac_exeext conftest.$ac_ext
17703 LIBS=$ac_check_lib_save_LIBS
17704 fi
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
17706 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
17707 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
17708 cat >>confdefs.h <<_ACEOF
17709 #define HAVE_LIBNSL 1
17710 _ACEOF
17711
17712 LIBS="-lnsl $LIBS"
17713
17714 fi
17715
17716 ;;
17717 esac
17718
17719 #
17720 # Work around Solaris's select() limitations.
17721 #
17722 case "$host" in
17723 *-solaris2.[89]|*-solaris2.1?)
17724
17725 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
17726
17727 ;;
17728 esac
17729
17730 #
17731 # Purify support
17732 #
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
17734 $as_echo_n "checking whether to use purify... " >&6; }
17735
17736 # Check whether --with-purify was given.
17737 if test "${with_purify+set}" = set; then :
17738 withval=$with_purify; use_purify="$withval"
17739 else
17740 use_purify="no"
17741 fi
17742
17743
17744 case "$use_purify" in
17745 no)
17746 ;;
17747 yes)
17748 # Extract the first word of "purify", so it can be a program name with args.
17749 set dummy purify; ac_word=$2
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17751 $as_echo_n "checking for $ac_word... " >&6; }
17752 if ${ac_cv_path_purify_path+:} false; then :
17753 $as_echo_n "(cached) " >&6
17754 else
17755 case $purify_path in
17756 [\\/]* | ?:[\\/]*)
17757 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
17758 ;;
17759 *)
17760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17761 for as_dir in $PATH
17762 do
17763 IFS=$as_save_IFS
17764 test -z "$as_dir" && as_dir=.
17765 for ac_exec_ext in '' $ac_executable_extensions; do
17766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17767 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
17768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17769 break 2
17770 fi
17771 done
17772 done
17773 IFS=$as_save_IFS
17774
17775 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
17776 ;;
17777 esac
17778 fi
17779 purify_path=$ac_cv_path_purify_path
17780 if test -n "$purify_path"; then
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
17782 $as_echo "$purify_path" >&6; }
17783 else
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17785 $as_echo "no" >&6; }
17786 fi
17787
17788
17789 ;;
17790 *)
17791 purify_path="$use_purify"
17792 ;;
17793 esac
17794
17795 case "$use_purify" in
17796 no)
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17798 $as_echo "no" >&6; }
17799 PURIFY=""
17800 ;;
17801 *)
17802 if test -f "$purify_path" || test purify = "$purify_path"; then
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
17804 $as_echo "$purify_path" >&6; }
17805 PURIFYFLAGS="`echo $PURIFYOPTIONS`"
17806 PURIFY="$purify_path $PURIFYFLAGS"
17807 else
17808 as_fn_error $? "$purify_path not found.
17809
17810 Please choose the proper path with the following command:
17811
17812 configure --with-purify=PATH
17813 " "$LINENO" 5
17814 fi
17815 ;;
17816 esac
17817
17818
17819
17820 #
17821 # Google/Great Performance Tools CPU Profiler
17822 #
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
17824 $as_echo_n "checking whether to use gperftools profiler... " >&6; }
17825
17826 # Check whether --with-gperftools-profiler was given.
17827 if test "${with_gperftools_profiler+set}" = set; then :
17828 withval=$with_gperftools_profiler; use_profiler="$withval"
17829 else
17830 use_profiler="no"
17831 fi
17832
17833
17834 case $use_profiler in
17835 yes)
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17837 $as_echo "yes" >&6; }
17838
17839 $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
17840
17841 LIBS="$LIBS -lprofiler"
17842 ;;
17843 *)
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17845 $as_echo "no" >&6; }
17846 ;;
17847 esac
17848
17849 #
17850 # enable/disable dumping stack backtrace. Also check if the system supports
17851 # glibc-compatible backtrace() function.
17852 #
17853 # Check whether --enable-backtrace was given.
17854 if test "${enable_backtrace+set}" = set; then :
17855 enableval=$enable_backtrace;
17856 else
17857 enable_backtrace="yes"
17858 fi
17859
17860
17861 if test "$enable_backtrace" = "yes"; then :
17862
17863 $as_echo "#define USE_BACKTRACE 1" >>confdefs.h
17864
17865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h. */
17867 #include <execinfo.h>
17868 int
17869 main ()
17870 {
17871 return (backtrace((void **)0, 0));
17872
17873 ;
17874 return 0;
17875 }
17876 _ACEOF
17877 if ac_fn_c_try_link "$LINENO"; then :
17878
17879 $as_echo "#define HAVE_LIBCTRACE 1" >>confdefs.h
17880
17881
17882 fi
17883 rm -f core conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17885 fi
17886
17887 # Check whether --enable-symtable was given.
17888 if test "${enable_symtable+set}" = set; then :
17889 enableval=$enable_symtable; want_symtable="$enableval"
17890 else
17891 want_symtable="minimal"
17892 fi
17893
17894 case $want_symtable in
17895 yes|all|minimal) # "yes" is a hidden value equivalent to "minimal"
17896 if test "" = "$PERL"
17897 then
17898 as_fn_error $? "Internal symbol table requires perl but no perl is found.
17899 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
17900 fi
17901 if test "yes" = "$use_libtool"; then
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&5
17903 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&2;}
17904 else
17905 # we generate the internal symbol table only for those systems
17906 # known to work to avoid unexpected build failure. Also, warn
17907 # about unsupported systems when the feature is enabled
17908 # manually.
17909 case $host_os in
17910 freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
17911 MKSYMTBL_PROGRAM="$PERL"
17912 if test "all" = "$want_symtable"; then
17913 ALWAYS_MAKE_SYMTABLE="yes"
17914 fi
17915 ;;
17916 *)
17917 if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
17918 then
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
17920 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
17921 fi
17922 esac
17923 fi
17924 ;;
17925 *)
17926 ;;
17927 esac
17928
17929
17930
17931 #
17932 # File name extension for static archive files, for those few places
17933 # where they are treated differently from dynamic ones.
17934 #
17935 SA=a
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946 BIND9_CO_RULE=".c.$O:"
17947
17948
17949 #
17950 # Here begins a very long section to determine the system's networking
17951 # capabilities. The order of the tests is significant.
17952 #
17953
17954 #
17955 # We do the IPv6 compilation checking after libtool so that we can put
17956 # the right suffix on the files.
17957 #
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
17959 $as_echo_n "checking for IPv6 structures... " >&6; }
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17962
17963 #include <sys/types.h>
17964 #include <sys/socket.h>
17965 #include <netinet/in.h>
17966
17967 int
17968 main ()
17969 {
17970
17971 struct sockaddr_in6 sin6;
17972 struct in6_addr in6;
17973 struct in6_pktinfo in6_pi;
17974 struct sockaddr_storage storage;
17975 in6 = in6addr_any;
17976 in6 = in6addr_loopback;
17977 sin6.sin6_scope_id = 0;
17978 return (0);
17979
17980 ;
17981 return 0;
17982 }
17983 _ACEOF
17984 if ac_fn_c_try_compile "$LINENO"; then :
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17986 $as_echo "yes" >&6; }
17987 else
17988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17990 as_fn_error $? "IPv6 support is mandatory
17991 See \`config.log' for more details" "$LINENO" 5; }
17992 fi
17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994
17995 #
17996 # Allow forcibly disabling TCP Fast Open support as autodetection might yield
17997 # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
17998 # comment in lib/isc/unix/socket.c).
17999 #
18000
18001 # Check whether --enable-tcp_fastopen was given.
18002 if test "${enable_tcp_fastopen+set}" = set; then :
18003 enableval=$enable_tcp_fastopen;
18004 else
18005 enable_tcp_fastopen="yes"
18006 fi
18007
18008
18009 if test "$enable_tcp_fastopen" = "yes"; then :
18010
18011 $as_echo "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
18012
18013 fi
18014
18015 #
18016 # Check for some other useful functions that are not ever-present.
18017 #
18018 for ac_func in strlcpy strlcat
18019 do :
18020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18021 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18022 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18023 cat >>confdefs.h <<_ACEOF
18024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18025 _ACEOF
18026
18027 fi
18028 done
18029
18030
18031
18032
18033 # Check whether --with-readline was given.
18034 if test "${with_readline+set}" = set; then :
18035 withval=$with_readline; use_readline="$withval"
18036 else
18037 use_readline="auto"
18038 fi
18039
18040 case "$use_readline" in
18041 no) ;;
18042 *)
18043 saved_LIBS="$LIBS"
18044 case "$use_readline" in
18045 yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
18046 *) try_readline="$use_readline"
18047 esac
18048 for readline in "$try_readline" $or_readline
18049 do
18050 LIBS="$readline"
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
18052 $as_echo "$as_me: checking for readline with $readline" >&6;}
18053 for ac_func in readline
18054 do :
18055 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
18056 if test "x$ac_cv_func_readline" = xyes; then :
18057 cat >>confdefs.h <<_ACEOF
18058 #define HAVE_READLINE 1
18059 _ACEOF
18060
18061 fi
18062 done
18063
18064 if test "yes" = "$ac_cv_func_readline"
18065 then
18066 READLINE_LIB="$readline"
18067 break
18068 fi
18069 for lib in -lterminfo -ltermcap -lncurses -lcurses
18070 do
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
18072 $as_echo "$as_me: checking for readline with $readline $lib" >&6;}
18073 unset ac_cv_func_readline
18074 LIBS="$readline $lib"
18075 for ac_func in readline
18076 do :
18077 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
18078 if test "x$ac_cv_func_readline" = xyes; then :
18079 cat >>confdefs.h <<_ACEOF
18080 #define HAVE_READLINE 1
18081 _ACEOF
18082
18083 fi
18084 done
18085
18086 if test "yes" = "$ac_cv_func_readline"
18087 then
18088 READLINE_LIB="$readline $lib"
18089 break
18090 fi
18091 done
18092 if test "yes" = "$ac_cv_func_readline"
18093 then
18094 break
18095 fi
18096 done
18097 if test "auto" != "$use_readline" &&
18098 test "X$READLINE_LIB" = "X"
18099 then
18100 as_fn_error $? "The readline library was not found." "$LINENO" 5
18101 fi
18102 LIBS="$saved_LIBS"
18103 ;;
18104 esac
18105 if test "yes" = "$ac_cv_func_readline"
18106 then
18107 case "$READLINE_LIB" in
18108 *edit*)
18109 for ac_header in editline/readline.h
18110 do :
18111 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
18112 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
18113 cat >>confdefs.h <<_ACEOF
18114 #define HAVE_EDITLINE_READLINE_H 1
18115 _ACEOF
18116
18117 fi
18118
18119 done
18120
18121 for ac_header in edit/readline/readline.h
18122 do :
18123 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
18124 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
18125 cat >>confdefs.h <<_ACEOF
18126 #define HAVE_EDIT_READLINE_READLINE_H 1
18127 _ACEOF
18128
18129 fi
18130
18131 done
18132
18133 for ac_header in edit/readline/history.h
18134 do :
18135 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
18136 if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
18137 cat >>confdefs.h <<_ACEOF
18138 #define HAVE_EDIT_READLINE_HISTORY_H 1
18139 _ACEOF
18140
18141 fi
18142
18143 done
18144
18145 ;;
18146 esac
18147 for ac_header in readline/readline.h
18148 do :
18149 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18150 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
18151 cat >>confdefs.h <<_ACEOF
18152 #define HAVE_READLINE_READLINE_H 1
18153 _ACEOF
18154
18155 fi
18156
18157 done
18158
18159 for ac_header in readline/history.h
18160 do :
18161 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
18162 if test "x$ac_cv_header_readline_history_h" = xyes; then :
18163 cat >>confdefs.h <<_ACEOF
18164 #define HAVE_READLINE_HISTORY_H 1
18165 _ACEOF
18166
18167 fi
18168
18169 done
18170
18171 fi
18172
18173 #
18174 # Use our own SPNEGO implementation?
18175 #
18176 # Check whether --enable-isc-spnego was given.
18177 if test "${enable_isc_spnego+set}" = set; then :
18178 enableval=$enable_isc_spnego;
18179 fi
18180
18181
18182 if test -n "$USE_GSSAPI"
18183 then
18184 case "$enable_isc_spnego" in
18185 yes|'')
18186 USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
18187 DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
18188 DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
18190 $as_echo "using SPNEGO from lib/dns" >&6; }
18191 ;;
18192 no)
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
18194 $as_echo "using SPNEGO from GSSAPI library" >&6; }
18195 ;;
18196 esac
18197 fi
18198
18199
18200
18201
18202
18203
18204 #
18205 # Security Stuff
18206 #
18207 # Note it is very recommended to *not* disable chroot(),
18208 # this is only because chroot() was made obsolete by Posix.
18209 # Check whether --enable-chroot was given.
18210 if test "${enable_chroot+set}" = set; then :
18211 enableval=$enable_chroot;
18212 fi
18213
18214 case "$enable_chroot" in
18215 yes|'')
18216 for ac_func in chroot
18217 do :
18218 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
18219 if test "x$ac_cv_func_chroot" = xyes; then :
18220 cat >>confdefs.h <<_ACEOF
18221 #define HAVE_CHROOT 1
18222 _ACEOF
18223
18224 fi
18225 done
18226
18227 ;;
18228 no)
18229 ;;
18230 esac
18231
18232 LIBCAP_LIBS=""
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
18234 $as_echo_n "checking whether to enable Linux capabilities... " >&6; }
18235 # Check whether --enable-linux-caps was given.
18236 if test "${enable_linux_caps+set}" = set; then :
18237 enableval=$enable_linux_caps;
18238 else
18239 case $host in #(
18240 *-linux*) :
18241 enable_linux_caps=yes ;; #(
18242 *) :
18243 enable_linux_caps=no ;;
18244 esac
18245 fi
18246
18247
18248 if test "$enable_linux_caps" = "yes"; then :
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18250 $as_echo "yes" >&6; }
18251 for ac_header in sys/capability.h
18252 do :
18253 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
18254 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
18255 cat >>confdefs.h <<_ACEOF
18256 #define HAVE_SYS_CAPABILITY_H 1
18257 _ACEOF
18258
18259 else
18260 as_fn_error $? "sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
18261 fi
18262
18263 done
18264
18265 save_LIBS="$LIBS"
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
18267 $as_echo_n "checking for library containing cap_set_proc... " >&6; }
18268 if ${ac_cv_search_cap_set_proc+:} false; then :
18269 $as_echo_n "(cached) " >&6
18270 else
18271 ac_func_search_save_LIBS=$LIBS
18272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h. */
18274
18275 /* Override any GCC internal prototype to avoid an error.
18276 Use char because int might match the return type of a GCC
18277 builtin and then its argument prototype would still apply. */
18278 #ifdef __cplusplus
18279 extern "C"
18280 #endif
18281 char cap_set_proc ();
18282 int
18283 main ()
18284 {
18285 return cap_set_proc ();
18286 ;
18287 return 0;
18288 }
18289 _ACEOF
18290 for ac_lib in '' cap; do
18291 if test -z "$ac_lib"; then
18292 ac_res="none required"
18293 else
18294 ac_res=-l$ac_lib
18295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18296 fi
18297 if ac_fn_c_try_link "$LINENO"; then :
18298 ac_cv_search_cap_set_proc=$ac_res
18299 fi
18300 rm -f core conftest.err conftest.$ac_objext \
18301 conftest$ac_exeext
18302 if ${ac_cv_search_cap_set_proc+:} false; then :
18303 break
18304 fi
18305 done
18306 if ${ac_cv_search_cap_set_proc+:} false; then :
18307
18308 else
18309 ac_cv_search_cap_set_proc=no
18310 fi
18311 rm conftest.$ac_ext
18312 LIBS=$ac_func_search_save_LIBS
18313 fi
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
18315 $as_echo "$ac_cv_search_cap_set_proc" >&6; }
18316 ac_res=$ac_cv_search_cap_set_proc
18317 if test "$ac_res" != no; then :
18318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18319 LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
18320 else
18321 as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
18322 fi
18323
18324 LIBS="$save_LIBS"
18325 else
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18327 $as_echo "no" >&6; }
18328 fi
18329
18330
18331 for ac_header in sys/un.h
18332 do :
18333 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
18334 if test "x$ac_cv_header_sys_un_h" = xyes; then :
18335 cat >>confdefs.h <<_ACEOF
18336 #define HAVE_SYS_UN_H 1
18337 _ACEOF
18338 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
18339
18340 else
18341 ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
18342
18343 fi
18344
18345 done
18346
18347
18348
18349 case "$host" in
18350 *-solaris*)
18351
18352 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
18353
18354 ;;
18355 esac
18356
18357 #
18358 # Time Zone Stuff
18359 #
18360 for ac_func in tzset
18361 do :
18362 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
18363 if test "x$ac_cv_func_tzset" = xyes; then :
18364 cat >>confdefs.h <<_ACEOF
18365 #define HAVE_TZSET 1
18366 _ACEOF
18367
18368 fi
18369 done
18370
18371
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
18373 $as_echo_n "checking for optarg declaration... " >&6; }
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18376
18377 #include <unistd.h>
18378
18379 int
18380 main ()
18381 {
18382 optarg = 0;
18383 ;
18384 return 0;
18385 }
18386 _ACEOF
18387 if ac_fn_c_try_compile "$LINENO"; then :
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18389 $as_echo "yes" >&6; }
18390 else
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18392 $as_echo "no" >&6; }
18393 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
18394
18395 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
18396
18397 fi
18398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399
18400 #
18401 # Check for nanoseconds in file stats
18402 #
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
18404 $as_echo_n "checking for st_mtim.tv_nsec... " >&6; }
18405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18407 #include <sys/fcntl.h>
18408 int
18409 main ()
18410 {
18411 struct stat s;
18412 return(s.st_mtim.tv_nsec);
18413
18414 ;
18415 return 0;
18416 }
18417 _ACEOF
18418 if ac_fn_c_try_compile "$LINENO"; then :
18419
18420 $as_echo "#define HAVE_STAT_NSEC 1" >>confdefs.h
18421
18422 fi
18423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18424
18425 #
18426 # Check for if_nametoindex() for IPv6 scoped addresses support
18427 #
18428 for ac_func in if_nametoindex
18429 do :
18430 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
18431 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
18432 cat >>confdefs.h <<_ACEOF
18433 #define HAVE_IF_NAMETOINDEX 1
18434 _ACEOF
18435
18436 fi
18437 done
18438
18439
18440 for ac_func in nanosleep usleep explicit_bzero
18441 do :
18442 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18443 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18444 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18445 cat >>confdefs.h <<_ACEOF
18446 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18447 _ACEOF
18448
18449 fi
18450 done
18451
18452
18453 ISC_ATOMIC_LIBS=""
18454 for ac_header in stdatomic.h
18455 do :
18456 ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
18457 if test "x$ac_cv_header_stdatomic_h" = xyes; then :
18458 cat >>confdefs.h <<_ACEOF
18459 #define HAVE_STDATOMIC_H 1
18460 _ACEOF
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
18462 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
18463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18464 /* end confdefs.h. */
18465 #include <stdatomic.h>
18466 int
18467 main ()
18468 {
18469 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
18470
18471 ;
18472 return 0;
18473 }
18474 _ACEOF
18475 if ac_fn_c_try_compile "$LINENO"; then :
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
18477 $as_echo "stdatomic.h" >&6; }
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
18479 $as_echo_n "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18482 #include <stdatomic.h>
18483 int
18484 main ()
18485 {
18486 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
18487
18488 ;
18489 return 0;
18490 }
18491 _ACEOF
18492 if ac_fn_c_try_link "$LINENO"; then :
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18494 $as_echo "no" >&6; }
18495 else
18496 ISC_ATOMIC_LIBS="-latomic"
18497 save_LIBS="$LIBS"
18498 LIBS="$LIBS $ISC_ATOMIC_LIBS"
18499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18500 /* end confdefs.h. */
18501 #include <stdatomic.h>
18502 int
18503 main ()
18504 {
18505 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
18506
18507 ;
18508 return 0;
18509 }
18510 _ACEOF
18511 if ac_fn_c_try_link "$LINENO"; then :
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18513 $as_echo "yes" >&6; }
18514 else
18515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18517 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
18518 See \`config.log' for more details" "$LINENO" 5; }
18519 fi
18520 rm -f core conftest.err conftest.$ac_objext \
18521 conftest$ac_exeext conftest.$ac_ext
18522 LIBS="$save_LIBS"
18523
18524 fi
18525 rm -f core conftest.err conftest.$ac_objext \
18526 conftest$ac_exeext conftest.$ac_ext
18527
18528 else
18529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18531 as_fn_error $? "stdatomic.h header found, but compilation failed, please fix your toolchain.
18532 See \`config.log' for more details" "$LINENO" 5; }
18533
18534 fi
18535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18536 else
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
18538 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
18539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540 /* end confdefs.h. */
18541 #include <inttypes.h>
18542 int
18543 main ()
18544 {
18545 int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
18546
18547 ;
18548 return 0;
18549 }
18550 _ACEOF
18551 if ac_fn_c_try_compile "$LINENO"; then :
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
18553 $as_echo "__atomic builtins" >&6; }
18554
18555 $as_echo "#define HAVE___ATOMIC 1" >>confdefs.h
18556
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
18558 $as_echo_n "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
18559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18560 /* end confdefs.h. */
18561 #include <inttypes.h>
18562 int
18563 main ()
18564 {
18565 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
18566
18567 ;
18568 return 0;
18569 }
18570 _ACEOF
18571 if ac_fn_c_try_link "$LINENO"; then :
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18573 $as_echo "no" >&6; }
18574 else
18575 ISC_ATOMIC_LIBS="-latomic"
18576 save_LIBS="$LIBS"
18577 LIBS="$LIBS $ISC_ATOMIC_LIBS"
18578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18579 /* end confdefs.h. */
18580 #include <inttypes.h>
18581 int
18582 main ()
18583 {
18584 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
18585
18586 ;
18587 return 0;
18588 }
18589 _ACEOF
18590 if ac_fn_c_try_link "$LINENO"; then :
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18592 $as_echo "yes" >&6; }
18593 else
18594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18596 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
18597 See \`config.log' for more details" "$LINENO" 5; }
18598 fi
18599 rm -f core conftest.err conftest.$ac_objext \
18600 conftest$ac_exeext conftest.$ac_ext
18601 LIBS="$save_LIBS"
18602
18603 fi
18604 rm -f core conftest.err conftest.$ac_objext \
18605 conftest$ac_exeext conftest.$ac_ext
18606
18607 else
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __sync builtins" >&5
18609 $as_echo "__sync builtins" >&6; }
18610
18611 fi
18612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613
18614 fi
18615
18616 done
18617
18618 LIBS="$LIBS $ISC_ATOMIC_LIBS"
18619
18620 for ac_header in uchar.h
18621 do :
18622 ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
18623 if test "x$ac_cv_header_uchar_h" = xyes; then :
18624 cat >>confdefs.h <<_ACEOF
18625 #define HAVE_UCHAR_H 1
18626 _ACEOF
18627
18628 fi
18629
18630 done
18631
18632
18633 #
18634 # Check for __builtin_unreachable
18635 #
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
18637 $as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
18638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h. */
18640
18641 int
18642 main ()
18643 {
18644 __builtin_unreachable();
18645
18646 ;
18647 return 0;
18648 }
18649 _ACEOF
18650 if ac_fn_c_try_link "$LINENO"; then :
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18652 $as_echo "yes" >&6; }
18653
18654 $as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
18655
18656
18657 else
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18659 $as_echo "no" >&6; }
18660
18661 fi
18662 rm -f core conftest.err conftest.$ac_objext \
18663 conftest$ac_exeext conftest.$ac_ext
18664
18665 #
18666 # Check for __builtin_expect
18667 #
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
18669 $as_echo_n "checking compiler support for __builtin_expect... " >&6; }
18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h. */
18672
18673 int
18674 main ()
18675 {
18676
18677 return (__builtin_expect(1, 1) ? 1 : 0);
18678
18679 ;
18680 return 0;
18681 }
18682 _ACEOF
18683 if ac_fn_c_try_link "$LINENO"; then :
18684
18685 have_builtin_expect=yes
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18687 $as_echo "yes" >&6; }
18688
18689 else
18690
18691 have_builtin_expect=no
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18693 $as_echo "no" >&6; }
18694
18695 fi
18696 rm -f core conftest.err conftest.$ac_objext \
18697 conftest$ac_exeext conftest.$ac_ext
18698 if test "yes" = "$have_builtin_expect"; then
18699
18700 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
18701
18702 fi
18703
18704 #
18705 # Check for __builtin_clz
18706 #
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
18708 $as_echo_n "checking compiler support for __builtin_clz... " >&6; }
18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h. */
18711
18712 int
18713 main ()
18714 {
18715
18716 return (__builtin_clz(0xff) == 24 ? 1 : 0);
18717
18718 ;
18719 return 0;
18720 }
18721 _ACEOF
18722 if ac_fn_c_try_link "$LINENO"; then :
18723
18724 have_builtin_clz=yes
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18726 $as_echo "yes" >&6; }
18727
18728 else
18729
18730 have_builtin_clz=no
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18732 $as_echo "no" >&6; }
18733
18734 fi
18735 rm -f core conftest.err conftest.$ac_objext \
18736 conftest$ac_exeext conftest.$ac_ext
18737 if test "yes" = "$have_builtin_clz"; then
18738
18739 $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
18740
18741 fi
18742
18743 #
18744 # Activate "rrset-order fixed" or not?
18745 #
18746 # Check whether --enable-fixed-rrset was given.
18747 if test "${enable_fixed_rrset+set}" = set; then :
18748 enableval=$enable_fixed_rrset; enable_fixed="$enableval"
18749 else
18750 enable_fixed="no"
18751 fi
18752
18753 case "$enable_fixed" in
18754 yes)
18755
18756 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
18757
18758 ;;
18759 no)
18760 ;;
18761 *)
18762 ;;
18763 esac
18764
18765 #
18766 # Activate dnstap?
18767 #
18768 # Check whether --enable-dnstap was given.
18769 if test "${enable_dnstap+set}" = set; then :
18770 enableval=$enable_dnstap; use_dnstap=$enableval
18771 else
18772 use_dnstap=no
18773 fi
18774
18775
18776 DNSTAP=
18777 DNSTAPSRCS=
18778 DNSTAPOBJS=
18779 DNSTAPTARGETS=
18780 if test "x$use_dnstap" != "xno"; then
18781
18782 # Check whether --with-protobuf-c was given.
18783 if test "${with_protobuf_c+set}" = set; then :
18784 withval=$with_protobuf_c;
18785 # workaround for protobuf-c includes at old dir
18786 # before protobuf-c-1.0.0
18787 if test -f $withval/include/google/protobuf-c/protobuf-c.h
18788 then
18789 CFLAGS="$CFLAGS -I$withval/include/google"
18790 else
18791 CFLAGS="$CFLAGS -I$withval/include"
18792 fi
18793 LDFLAGS="$LDFLAGS -L$withval/lib"
18794 # Extract the first word of "protoc-c", so it can be a program name with args.
18795 set dummy protoc-c; ac_word=$2
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18797 $as_echo_n "checking for $ac_word... " >&6; }
18798 if ${ac_cv_path_PROTOC_C+:} false; then :
18799 $as_echo_n "(cached) " >&6
18800 else
18801 case $PROTOC_C in
18802 [\\/]* | ?:[\\/]*)
18803 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
18804 ;;
18805 *)
18806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18807 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
18808 do
18809 IFS=$as_save_IFS
18810 test -z "$as_dir" && as_dir=.
18811 for ac_exec_ext in '' $ac_executable_extensions; do
18812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18813 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
18814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18815 break 2
18816 fi
18817 done
18818 done
18819 IFS=$as_save_IFS
18820
18821 ;;
18822 esac
18823 fi
18824 PROTOC_C=$ac_cv_path_PROTOC_C
18825 if test -n "$PROTOC_C"; then
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
18827 $as_echo "$PROTOC_C" >&6; }
18828 else
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18830 $as_echo "no" >&6; }
18831 fi
18832
18833
18834
18835 else
18836
18837 # workaround for protobuf-c includes at old dir
18838 # before protobuf-c-1.0.0
18839 if test -f /usr/include/google/protobuf-c/protobuf-c.h
18840 then
18841 CFLAGS="$CFLAGS -I/usr/include/google"
18842 else
18843 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
18844 then
18845 CFLAGS="$CFLAGS -I/usr/local/include/google"
18846 LDFLAGS="$LDFLAGS -L/usr/local/lib"
18847 fi
18848 fi
18849 # Extract the first word of "protoc-c", so it can be a program name with args.
18850 set dummy protoc-c; ac_word=$2
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18852 $as_echo_n "checking for $ac_word... " >&6; }
18853 if ${ac_cv_path_PROTOC_C+:} false; then :
18854 $as_echo_n "(cached) " >&6
18855 else
18856 case $PROTOC_C in
18857 [\\/]* | ?:[\\/]*)
18858 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
18859 ;;
18860 *)
18861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18862 for as_dir in $PATH
18863 do
18864 IFS=$as_save_IFS
18865 test -z "$as_dir" && as_dir=.
18866 for ac_exec_ext in '' $ac_executable_extensions; do
18867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18868 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
18869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18870 break 2
18871 fi
18872 done
18873 done
18874 IFS=$as_save_IFS
18875
18876 ;;
18877 esac
18878 fi
18879 PROTOC_C=$ac_cv_path_PROTOC_C
18880 if test -n "$PROTOC_C"; then
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
18882 $as_echo "$PROTOC_C" >&6; }
18883 else
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18885 $as_echo "no" >&6; }
18886 fi
18887
18888
18889
18890 fi
18891
18892 if test -z "$PROTOC_C"; then
18893 as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
18894 fi
18895
18896 # Check whether --with-libfstrm was given.
18897 if test "${with_libfstrm+set}" = set; then :
18898 withval=$with_libfstrm;
18899 CFLAGS="$CFLAGS -I$withval/include"
18900 LDFLAGS="$LDFLAGS -L$withval/lib"
18901 # Extract the first word of "fstrm_capture", so it can be a program name with args.
18902 set dummy fstrm_capture; ac_word=$2
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18904 $as_echo_n "checking for $ac_word... " >&6; }
18905 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
18906 $as_echo_n "(cached) " >&6
18907 else
18908 case $FSTRM_CAPTURE in
18909 [\\/]* | ?:[\\/]*)
18910 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
18911 ;;
18912 *)
18913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18914 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
18915 do
18916 IFS=$as_save_IFS
18917 test -z "$as_dir" && as_dir=.
18918 for ac_exec_ext in '' $ac_executable_extensions; do
18919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18920 ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
18921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18922 break 2
18923 fi
18924 done
18925 done
18926 IFS=$as_save_IFS
18927
18928 ;;
18929 esac
18930 fi
18931 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
18932 if test -n "$FSTRM_CAPTURE"; then
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
18934 $as_echo "$FSTRM_CAPTURE" >&6; }
18935 else
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18937 $as_echo "no" >&6; }
18938 fi
18939
18940
18941
18942 else
18943
18944 # Extract the first word of "fstrm_capture", so it can be a program name with args.
18945 set dummy fstrm_capture; ac_word=$2
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18947 $as_echo_n "checking for $ac_word... " >&6; }
18948 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
18949 $as_echo_n "(cached) " >&6
18950 else
18951 case $FSTRM_CAPTURE in
18952 [\\/]* | ?:[\\/]*)
18953 ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
18954 ;;
18955 *)
18956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18957 for as_dir in $PATH
18958 do
18959 IFS=$as_save_IFS
18960 test -z "$as_dir" && as_dir=.
18961 for ac_exec_ext in '' $ac_executable_extensions; do
18962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18963 ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
18964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18965 break 2
18966 fi
18967 done
18968 done
18969 IFS=$as_save_IFS
18970
18971 ;;
18972 esac
18973 fi
18974 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
18975 if test -n "$FSTRM_CAPTURE"; then
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
18977 $as_echo "$FSTRM_CAPTURE" >&6; }
18978 else
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18980 $as_echo "no" >&6; }
18981 fi
18982
18983
18984
18985 fi
18986
18987
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
18989 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
18990 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18991 $as_echo_n "(cached) " >&6
18992 else
18993 ac_func_search_save_LIBS=$LIBS
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18996
18997 /* Override any GCC internal prototype to avoid an error.
18998 Use char because int might match the return type of a GCC
18999 builtin and then its argument prototype would still apply. */
19000 #ifdef __cplusplus
19001 extern "C"
19002 #endif
19003 char fstrm_iothr_init ();
19004 int
19005 main ()
19006 {
19007 return fstrm_iothr_init ();
19008 ;
19009 return 0;
19010 }
19011 _ACEOF
19012 for ac_lib in '' fstrm; do
19013 if test -z "$ac_lib"; then
19014 ac_res="none required"
19015 else
19016 ac_res=-l$ac_lib
19017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19018 fi
19019 if ac_fn_c_try_link "$LINENO"; then :
19020 ac_cv_search_fstrm_iothr_init=$ac_res
19021 fi
19022 rm -f core conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext
19024 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
19025 break
19026 fi
19027 done
19028 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
19029
19030 else
19031 ac_cv_search_fstrm_iothr_init=no
19032 fi
19033 rm conftest.$ac_ext
19034 LIBS=$ac_func_search_save_LIBS
19035 fi
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
19037 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
19038 ac_res=$ac_cv_search_fstrm_iothr_init
19039 if test "$ac_res" != no; then :
19040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19041
19042 else
19043 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
19044 fi
19045
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
19047 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
19048 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19049 $as_echo_n "(cached) " >&6
19050 else
19051 ac_func_search_save_LIBS=$LIBS
19052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19053 /* end confdefs.h. */
19054
19055 /* Override any GCC internal prototype to avoid an error.
19056 Use char because int might match the return type of a GCC
19057 builtin and then its argument prototype would still apply. */
19058 #ifdef __cplusplus
19059 extern "C"
19060 #endif
19061 char protobuf_c_message_pack ();
19062 int
19063 main ()
19064 {
19065 return protobuf_c_message_pack ();
19066 ;
19067 return 0;
19068 }
19069 _ACEOF
19070 for ac_lib in '' protobuf-c; do
19071 if test -z "$ac_lib"; then
19072 ac_res="none required"
19073 else
19074 ac_res=-l$ac_lib
19075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19076 fi
19077 if ac_fn_c_try_link "$LINENO"; then :
19078 ac_cv_search_protobuf_c_message_pack=$ac_res
19079 fi
19080 rm -f core conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext
19082 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19083 break
19084 fi
19085 done
19086 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19087
19088 else
19089 ac_cv_search_protobuf_c_message_pack=no
19090 fi
19091 rm conftest.$ac_ext
19092 LIBS=$ac_func_search_save_LIBS
19093 fi
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
19095 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
19096 ac_res=$ac_cv_search_protobuf_c_message_pack
19097 if test "$ac_res" != no; then :
19098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19099
19100 else
19101 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
19102 fi
19103
19104
19105
19106 $as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
19107
19108 DNSTAP=dnstap
19109 DNSTAPSRCS='${DNSTAPSRCS}'
19110 DNSTAPOBJS='${DNSTAPOBJS}'
19111 DNSTAPTARGETS='${DNSTAPTARGETS}'
19112 fi
19113
19114
19115
19116
19117
19118 #
19119 # The following sets up how non-blocking i/o is established.
19120 # cygwin and solaris 2.x (x<5) require special handling.
19121 #
19122 case "$host" in
19123 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
19124 ;;
19125 *-solaris2.[01234])
19126 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
19127
19128
19129 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
19130
19131 ;;
19132 *)
19133 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
19134
19135 ;;
19136 esac
19137 #
19138 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
19139 # This prevents the source address being set.
19140 #
19141 case "$host" in
19142 *-solaris2.[012345]|*-solaris2.5.1)
19143
19144 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
19145
19146 ;;
19147 esac
19148 #
19149 # The following sections deal with tools used for formatting
19150 # the documentation. They are all optional, unless you are
19151 # a developer editing the documentation source.
19152 #
19153
19154 #
19155 # Look for TeX.
19156 #
19157
19158 for ac_prog in latex
19159 do
19160 # Extract the first word of "$ac_prog", so it can be a program name with args.
19161 set dummy $ac_prog; ac_word=$2
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19163 $as_echo_n "checking for $ac_word... " >&6; }
19164 if ${ac_cv_path_LATEX+:} false; then :
19165 $as_echo_n "(cached) " >&6
19166 else
19167 case $LATEX in
19168 [\\/]* | ?:[\\/]*)
19169 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
19170 ;;
19171 *)
19172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19173 for as_dir in $PATH
19174 do
19175 IFS=$as_save_IFS
19176 test -z "$as_dir" && as_dir=.
19177 for ac_exec_ext in '' $ac_executable_extensions; do
19178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19179 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
19180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19181 break 2
19182 fi
19183 done
19184 done
19185 IFS=$as_save_IFS
19186
19187 ;;
19188 esac
19189 fi
19190 LATEX=$ac_cv_path_LATEX
19191 if test -n "$LATEX"; then
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
19193 $as_echo "$LATEX" >&6; }
19194 else
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19196 $as_echo "no" >&6; }
19197 fi
19198
19199
19200 test -n "$LATEX" && break
19201 done
19202 test -n "$LATEX" || LATEX="latex"
19203
19204
19205
19206 for ac_prog in pdflatex
19207 do
19208 # Extract the first word of "$ac_prog", so it can be a program name with args.
19209 set dummy $ac_prog; ac_word=$2
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19211 $as_echo_n "checking for $ac_word... " >&6; }
19212 if ${ac_cv_path_PDFLATEX+:} false; then :
19213 $as_echo_n "(cached) " >&6
19214 else
19215 case $PDFLATEX in
19216 [\\/]* | ?:[\\/]*)
19217 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
19218 ;;
19219 *)
19220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19221 for as_dir in $PATH
19222 do
19223 IFS=$as_save_IFS
19224 test -z "$as_dir" && as_dir=.
19225 for ac_exec_ext in '' $ac_executable_extensions; do
19226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19227 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
19228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19229 break 2
19230 fi
19231 done
19232 done
19233 IFS=$as_save_IFS
19234
19235 ;;
19236 esac
19237 fi
19238 PDFLATEX=$ac_cv_path_PDFLATEX
19239 if test -n "$PDFLATEX"; then
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
19241 $as_echo "$PDFLATEX" >&6; }
19242 else
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19244 $as_echo "no" >&6; }
19245 fi
19246
19247
19248 test -n "$PDFLATEX" && break
19249 done
19250 test -n "$PDFLATEX" || PDFLATEX="pdflatex"
19251
19252
19253
19254 for ac_prog in dblatex
19255 do
19256 # Extract the first word of "$ac_prog", so it can be a program name with args.
19257 set dummy $ac_prog; ac_word=$2
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19259 $as_echo_n "checking for $ac_word... " >&6; }
19260 if ${ac_cv_path_DBLATEX+:} false; then :
19261 $as_echo_n "(cached) " >&6
19262 else
19263 case $DBLATEX in
19264 [\\/]* | ?:[\\/]*)
19265 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
19266 ;;
19267 *)
19268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19269 for as_dir in $PATH
19270 do
19271 IFS=$as_save_IFS
19272 test -z "$as_dir" && as_dir=.
19273 for ac_exec_ext in '' $ac_executable_extensions; do
19274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19275 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
19276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19277 break 2
19278 fi
19279 done
19280 done
19281 IFS=$as_save_IFS
19282
19283 ;;
19284 esac
19285 fi
19286 DBLATEX=$ac_cv_path_DBLATEX
19287 if test -n "$DBLATEX"; then
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
19289 $as_echo "$DBLATEX" >&6; }
19290 else
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19292 $as_echo "no" >&6; }
19293 fi
19294
19295
19296 test -n "$DBLATEX" && break
19297 done
19298 test -n "$DBLATEX" || DBLATEX="dblatex"
19299
19300
19301
19302 #
19303 # Look for w3m
19304 #
19305
19306 for ac_prog in w3m
19307 do
19308 # Extract the first word of "$ac_prog", so it can be a program name with args.
19309 set dummy $ac_prog; ac_word=$2
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19311 $as_echo_n "checking for $ac_word... " >&6; }
19312 if ${ac_cv_path_W3M+:} false; then :
19313 $as_echo_n "(cached) " >&6
19314 else
19315 case $W3M in
19316 [\\/]* | ?:[\\/]*)
19317 ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
19318 ;;
19319 *)
19320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19321 for as_dir in $PATH
19322 do
19323 IFS=$as_save_IFS
19324 test -z "$as_dir" && as_dir=.
19325 for ac_exec_ext in '' $ac_executable_extensions; do
19326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19327 ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
19328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19329 break 2
19330 fi
19331 done
19332 done
19333 IFS=$as_save_IFS
19334
19335 ;;
19336 esac
19337 fi
19338 W3M=$ac_cv_path_W3M
19339 if test -n "$W3M"; then
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
19341 $as_echo "$W3M" >&6; }
19342 else
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19344 $as_echo "no" >&6; }
19345 fi
19346
19347
19348 test -n "$W3M" && break
19349 done
19350 test -n "$W3M" || W3M="w3m"
19351
19352
19353
19354 #
19355 # Look for pandoc
19356 #
19357 # Extract the first word of "pandoc", so it can be a program name with args.
19358 set dummy pandoc; ac_word=$2
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19360 $as_echo_n "checking for $ac_word... " >&6; }
19361 if ${ac_cv_path_PANDOC+:} false; then :
19362 $as_echo_n "(cached) " >&6
19363 else
19364 case $PANDOC in
19365 [\\/]* | ?:[\\/]*)
19366 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
19367 ;;
19368 *)
19369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19370 for as_dir in $PATH
19371 do
19372 IFS=$as_save_IFS
19373 test -z "$as_dir" && as_dir=.
19374 for ac_exec_ext in '' $ac_executable_extensions; do
19375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19376 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
19377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19378 break 2
19379 fi
19380 done
19381 done
19382 IFS=$as_save_IFS
19383
19384 test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
19385 ;;
19386 esac
19387 fi
19388 PANDOC=$ac_cv_path_PANDOC
19389 if test -n "$PANDOC"; then
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
19391 $as_echo "$PANDOC" >&6; }
19392 else
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19394 $as_echo "no" >&6; }
19395 fi
19396
19397
19398
19399
19400
19401 #
19402 # Look for xsltproc (libxslt)
19403 #
19404
19405 # Extract the first word of "xsltproc", so it can be a program name with args.
19406 set dummy xsltproc; ac_word=$2
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19408 $as_echo_n "checking for $ac_word... " >&6; }
19409 if ${ac_cv_path_XSLTPROC+:} false; then :
19410 $as_echo_n "(cached) " >&6
19411 else
19412 case $XSLTPROC in
19413 [\\/]* | ?:[\\/]*)
19414 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19415 ;;
19416 *)
19417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19418 for as_dir in $PATH
19419 do
19420 IFS=$as_save_IFS
19421 test -z "$as_dir" && as_dir=.
19422 for ac_exec_ext in '' $ac_executable_extensions; do
19423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19424 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19426 break 2
19427 fi
19428 done
19429 done
19430 IFS=$as_save_IFS
19431
19432 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
19433 ;;
19434 esac
19435 fi
19436 XSLTPROC=$ac_cv_path_XSLTPROC
19437 if test -n "$XSLTPROC"; then
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19439 $as_echo "$XSLTPROC" >&6; }
19440 else
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19442 $as_echo "no" >&6; }
19443 fi
19444
19445
19446
19447
19448 #
19449 # Look for xmllint (libxml2)
19450 #
19451
19452 # Extract the first word of "xmllint", so it can be a program name with args.
19453 set dummy xmllint; ac_word=$2
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19455 $as_echo_n "checking for $ac_word... " >&6; }
19456 if ${ac_cv_path_XMLLINT+:} false; then :
19457 $as_echo_n "(cached) " >&6
19458 else
19459 case $XMLLINT in
19460 [\\/]* | ?:[\\/]*)
19461 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
19462 ;;
19463 *)
19464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19465 for as_dir in $PATH
19466 do
19467 IFS=$as_save_IFS
19468 test -z "$as_dir" && as_dir=.
19469 for ac_exec_ext in '' $ac_executable_extensions; do
19470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19471 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
19472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19473 break 2
19474 fi
19475 done
19476 done
19477 IFS=$as_save_IFS
19478
19479 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
19480 ;;
19481 esac
19482 fi
19483 XMLLINT=$ac_cv_path_XMLLINT
19484 if test -n "$XMLLINT"; then
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
19486 $as_echo "$XMLLINT" >&6; }
19487 else
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19489 $as_echo "no" >&6; }
19490 fi
19491
19492
19493
19494
19495 #
19496 # Look for Doxygen
19497 #
19498
19499 # Extract the first word of "doxygen", so it can be a program name with args.
19500 set dummy doxygen; ac_word=$2
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19502 $as_echo_n "checking for $ac_word... " >&6; }
19503 if ${ac_cv_path_DOXYGEN+:} false; then :
19504 $as_echo_n "(cached) " >&6
19505 else
19506 case $DOXYGEN in
19507 [\\/]* | ?:[\\/]*)
19508 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19509 ;;
19510 *)
19511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19512 for as_dir in $PATH
19513 do
19514 IFS=$as_save_IFS
19515 test -z "$as_dir" && as_dir=.
19516 for ac_exec_ext in '' $ac_executable_extensions; do
19517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19518 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19520 break 2
19521 fi
19522 done
19523 done
19524 IFS=$as_save_IFS
19525
19526 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
19527 ;;
19528 esac
19529 fi
19530 DOXYGEN=$ac_cv_path_DOXYGEN
19531 if test -n "$DOXYGEN"; then
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19533 $as_echo "$DOXYGEN" >&6; }
19534 else
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19536 $as_echo "no" >&6; }
19537 fi
19538
19539
19540
19541
19542 #
19543 # Look for curl
19544 #
19545
19546 # Extract the first word of "curl", so it can be a program name with args.
19547 set dummy curl; ac_word=$2
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19549 $as_echo_n "checking for $ac_word... " >&6; }
19550 if ${ac_cv_path_CURL+:} false; then :
19551 $as_echo_n "(cached) " >&6
19552 else
19553 case $CURL in
19554 [\\/]* | ?:[\\/]*)
19555 ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
19556 ;;
19557 *)
19558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19559 for as_dir in $PATH
19560 do
19561 IFS=$as_save_IFS
19562 test -z "$as_dir" && as_dir=.
19563 for ac_exec_ext in '' $ac_executable_extensions; do
19564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19565 ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
19566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19567 break 2
19568 fi
19569 done
19570 done
19571 IFS=$as_save_IFS
19572
19573 test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
19574 ;;
19575 esac
19576 fi
19577 CURL=$ac_cv_path_CURL
19578 if test -n "$CURL"; then
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
19580 $as_echo "$CURL" >&6; }
19581 else
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19583 $as_echo "no" >&6; }
19584 fi
19585
19586
19587
19588
19589 #
19590 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
19591 # in a number of directories:
19592 #
19593 # NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
19594 #
19595 # If the file FILENAME is found in one of the DIRECTORIES, the shell
19596 # variable VARIABLE is defined to its absolute pathname. Otherwise,
19597 # it is set to FILENAME, with no directory prefix (that's not terribly
19598 # useful, but looks less confusing in substitutions than leaving it
19599 # empty). The variable VARIABLE will be substituted into output files.
19600 #
19601
19602
19603
19604 #
19605 # Look for Docbook-XSL stylesheets. Location probably varies by system.
19606 # If it's not explicitly specified, guess where it might be found, based on
19607 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
19608 # of at the moment).
19609 #
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
19611 $as_echo_n "checking for Docbook-XSL path... " >&6; }
19612
19613 # Check whether --with-docbook-xsl was given.
19614 if test "${with_docbook_xsl+set}" = set; then :
19615 withval=$with_docbook_xsl; docbook_path="$withval"
19616 else
19617 docbook_path="auto"
19618 fi
19619
19620 case "$docbook_path" in
19621 auto)
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
19623 $as_echo "auto" >&6; }
19624 docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook-ns /usr/local/share/xsl/docbook /usr/share/xsl/docbook /opt/local/share/xsl/docbook-xsl /opt/local/share/xsl/docbook-xsl-nons /usr/share/xml/docbook/stylesheet/docbook-xsl"
19625 ;;
19626 *)
19627 docbook_xsl_trees="$withval"
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
19629 $as_echo "$docbook_xsl_trees" >&6; }
19630 ;;
19631 esac
19632
19633 #
19634 # Look for stylesheets we need.
19635 #
19636
19637
19638 XSLT_DOCBOOK_STYLE_HTML=""
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
19640 $as_echo_n "checking for html/docbook.xsl... " >&6; }
19641 for d in $docbook_xsl_trees
19642 do
19643 f=$d/html/docbook.xsl
19644 if test -f $f
19645 then
19646 XSLT_DOCBOOK_STYLE_HTML=$f
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19648 $as_echo "$f" >&6; }
19649 break
19650 fi
19651 done
19652 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
19653 then
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19655 $as_echo "\"not found\"" >&6; };
19656 XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
19657 fi
19658
19659
19660
19661 XSLT_DOCBOOK_STYLE_XHTML=""
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
19663 $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
19664 for d in $docbook_xsl_trees
19665 do
19666 f=$d/xhtml/docbook.xsl
19667 if test -f $f
19668 then
19669 XSLT_DOCBOOK_STYLE_XHTML=$f
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19671 $as_echo "$f" >&6; }
19672 break
19673 fi
19674 done
19675 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
19676 then
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19678 $as_echo "\"not found\"" >&6; };
19679 XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
19680 fi
19681
19682
19683
19684 XSLT_DOCBOOK_STYLE_MAN=""
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
19686 $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
19687 for d in $docbook_xsl_trees
19688 do
19689 f=$d/manpages/docbook.xsl
19690 if test -f $f
19691 then
19692 XSLT_DOCBOOK_STYLE_MAN=$f
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19694 $as_echo "$f" >&6; }
19695 break
19696 fi
19697 done
19698 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
19699 then
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19701 $as_echo "\"not found\"" >&6; };
19702 XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
19703 fi
19704
19705
19706
19707 XSLT_DOCBOOK_CHUNK_HTML=""
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
19709 $as_echo_n "checking for html/chunk.xsl... " >&6; }
19710 for d in $docbook_xsl_trees
19711 do
19712 f=$d/html/chunk.xsl
19713 if test -f $f
19714 then
19715 XSLT_DOCBOOK_CHUNK_HTML=$f
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19717 $as_echo "$f" >&6; }
19718 break
19719 fi
19720 done
19721 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
19722 then
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19724 $as_echo "\"not found\"" >&6; };
19725 XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
19726 fi
19727
19728
19729
19730 XSLT_DOCBOOK_CHUNK_XHTML=""
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
19732 $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
19733 for d in $docbook_xsl_trees
19734 do
19735 f=$d/xhtml/chunk.xsl
19736 if test -f $f
19737 then
19738 XSLT_DOCBOOK_CHUNK_XHTML=$f
19739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19740 $as_echo "$f" >&6; }
19741 break
19742 fi
19743 done
19744 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
19745 then
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19747 $as_echo "\"not found\"" >&6; };
19748 XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
19749 fi
19750
19751
19752
19753 XSLT_DOCBOOK_CHUNKTOC_HTML=""
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
19755 $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
19756 for d in $docbook_xsl_trees
19757 do
19758 f=$d/html/chunktoc.xsl
19759 if test -f $f
19760 then
19761 XSLT_DOCBOOK_CHUNKTOC_HTML=$f
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19763 $as_echo "$f" >&6; }
19764 break
19765 fi
19766 done
19767 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
19768 then
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19770 $as_echo "\"not found\"" >&6; };
19771 XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
19772 fi
19773
19774
19775
19776 XSLT_DOCBOOK_CHUNKTOC_XHTML=""
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
19778 $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
19779 for d in $docbook_xsl_trees
19780 do
19781 f=$d/xhtml/chunktoc.xsl
19782 if test -f $f
19783 then
19784 XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19786 $as_echo "$f" >&6; }
19787 break
19788 fi
19789 done
19790 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
19791 then
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19793 $as_echo "\"not found\"" >&6; };
19794 XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
19795 fi
19796
19797
19798
19799 XSLT_DOCBOOK_MAKETOC_HTML=""
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
19801 $as_echo_n "checking for html/maketoc.xsl... " >&6; }
19802 for d in $docbook_xsl_trees
19803 do
19804 f=$d/html/maketoc.xsl
19805 if test -f $f
19806 then
19807 XSLT_DOCBOOK_MAKETOC_HTML=$f
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19809 $as_echo "$f" >&6; }
19810 break
19811 fi
19812 done
19813 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
19814 then
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19816 $as_echo "\"not found\"" >&6; };
19817 XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
19818 fi
19819
19820
19821
19822 XSLT_DOCBOOK_MAKETOC_XHTML=""
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
19824 $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
19825 for d in $docbook_xsl_trees
19826 do
19827 f=$d/xhtml/maketoc.xsl
19828 if test -f $f
19829 then
19830 XSLT_DOCBOOK_MAKETOC_XHTML=$f
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19832 $as_echo "$f" >&6; }
19833 break
19834 fi
19835 done
19836 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
19837 then
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19839 $as_echo "\"not found\"" >&6; };
19840 XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
19841 fi
19842
19843
19844
19845 #
19846 # Same dance for dblatex
19847 #
19848 dblatex_xsl_trees="/usr/local/share/xml/docbook/stylesheet/dblatex /usr/pkg/share/xml/docbook/stylesheet/dblatex /usr/share/xml/docbook/stylesheet/dblatex"
19849
19850 XSLT_DBLATEX_STYLE=""
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/docbook.xsl" >&5
19852 $as_echo_n "checking for xsl/docbook.xsl... " >&6; }
19853 for d in $dblatex_xsl_trees
19854 do
19855 f=$d/xsl/docbook.xsl
19856 if test -f $f
19857 then
19858 XSLT_DBLATEX_STYLE=$f
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19860 $as_echo "$f" >&6; }
19861 break
19862 fi
19863 done
19864 if test "X$XSLT_DBLATEX_STYLE" = "X"
19865 then
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19867 $as_echo "\"not found\"" >&6; };
19868 XSLT_DBLATEX_STYLE=xsl/docbook.xsl
19869 fi
19870
19871
19872
19873 XSLT_DBLATEX_FASTBOOK=""
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsl/latex_book_fast.xsl" >&5
19875 $as_echo_n "checking for xsl/latex_book_fast.xsl... " >&6; }
19876 for d in $dblatex_xsl_trees
19877 do
19878 f=$d/xsl/latex_book_fast.xsl
19879 if test -f $f
19880 then
19881 XSLT_DBLATEX_FASTBOOK=$f
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
19883 $as_echo "$f" >&6; }
19884 break
19885 fi
19886 done
19887 if test "X$XSLT_DBLATEX_FASTBOOK" = "X"
19888 then
19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
19890 $as_echo "\"not found\"" >&6; };
19891 XSLT_DBLATEX_FASTBOOK=xsl/latex_book_fast.xsl
19892 fi
19893
19894
19895
19896 #
19897 # IDN support using libidn2
19898 #
19899
19900 LIBIDN2_CFLAGS=
19901 LIBIDN2_LDFLAGS=
19902 LIBIDN2_LIBS=
19903
19904 # Check whether --with-libidn2 was given.
19905 if test "${with_libidn2+set}" = set; then :
19906 withval=$with_libidn2; with_libidn2="$withval"
19907 else
19908 with_libidn2="no"
19909 fi
19910
19911 case $with_libidn2 in #(
19912 yes) :
19913
19914 pkg_failed=no
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
19916 $as_echo_n "checking for libidn2... " >&6; }
19917
19918 if test -n "$LIBIDN2_CFLAGS"; then
19919 pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
19920 elif test -n "$PKG_CONFIG"; then
19921 if test -n "$PKG_CONFIG" && \
19922 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
19923 ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
19924 ac_status=$?
19925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19926 test $ac_status = 0; }; then
19927 pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
19928 test "x$?" != "x0" && pkg_failed=yes
19929 else
19930 pkg_failed=yes
19931 fi
19932 else
19933 pkg_failed=untried
19934 fi
19935 if test -n "$LIBIDN2_LIBS"; then
19936 pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
19937 elif test -n "$PKG_CONFIG"; then
19938 if test -n "$PKG_CONFIG" && \
19939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
19940 ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
19941 ac_status=$?
19942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19943 test $ac_status = 0; }; then
19944 pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
19945 test "x$?" != "x0" && pkg_failed=yes
19946 else
19947 pkg_failed=yes
19948 fi
19949 else
19950 pkg_failed=untried
19951 fi
19952
19953
19954
19955 if test $pkg_failed = yes; then
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19957 $as_echo "no" >&6; }
19958
19959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19960 _pkg_short_errors_supported=yes
19961 else
19962 _pkg_short_errors_supported=no
19963 fi
19964 if test $_pkg_short_errors_supported = yes; then
19965 LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
19966 else
19967 LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
19968 fi
19969 # Put the nasty error message in config.log where it belongs
19970 echo "$LIBIDN2_PKG_ERRORS" >&5
19971
19972 as_fn_error $? "Package requirements (libidn2) were not met:
19973
19974 $LIBIDN2_PKG_ERRORS
19975
19976 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19977 installed software in a non-standard prefix.
19978
19979 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
19980 and LIBIDN2_LIBS to avoid the need to call pkg-config.
19981 See the pkg-config man page for more details." "$LINENO" 5
19982 elif test $pkg_failed = untried; then
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19984 $as_echo "no" >&6; }
19985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19987 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19988 is in your PATH or set the PKG_CONFIG environment variable to the full
19989 path to pkg-config.
19990
19991 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
19992 and LIBIDN2_LIBS to avoid the need to call pkg-config.
19993 See the pkg-config man page for more details.
19994
19995 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19996 See \`config.log' for more details" "$LINENO" 5; }
19997 else
19998 LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
19999 LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20001 $as_echo "yes" >&6; }
20002
20003 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
20004
20005 fi ;; #(
20006 no) :
20007 ;; #(
20008 *) :
20009 save_CFLAGS="$CFLAGS"
20010 save_CPPFLAGS="$CPPFLAGS"
20011 save_LDFLAGS="$LDFLAGS"
20012 save_LIBS="$LIBS"
20013 LIBIDN2_CFLAGS="-I$with_libidn2/include"
20014 LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
20015 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
20016 CPPFLAGS="$LIBIDN2_CFLAGS $CPPFLAGS"
20017 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
20018 for ac_header in idn2.h
20019 do :
20020 ac_fn_c_check_header_mongrel "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
20021 if test "x$ac_cv_header_idn2_h" = xyes; then :
20022 cat >>confdefs.h <<_ACEOF
20023 #define HAVE_IDN2_H 1
20024 _ACEOF
20025
20026 else
20027 as_fn_error $? "idn2.h not found" "$LINENO" 5
20028 fi
20029
20030 done
20031
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
20033 $as_echo_n "checking for library containing idn2_to_ascii_lz... " >&6; }
20034 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
20035 $as_echo_n "(cached) " >&6
20036 else
20037 ac_func_search_save_LIBS=$LIBS
20038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039 /* end confdefs.h. */
20040
20041 /* Override any GCC internal prototype to avoid an error.
20042 Use char because int might match the return type of a GCC
20043 builtin and then its argument prototype would still apply. */
20044 #ifdef __cplusplus
20045 extern "C"
20046 #endif
20047 char idn2_to_ascii_lz ();
20048 int
20049 main ()
20050 {
20051 return idn2_to_ascii_lz ();
20052 ;
20053 return 0;
20054 }
20055 _ACEOF
20056 for ac_lib in '' idn2; do
20057 if test -z "$ac_lib"; then
20058 ac_res="none required"
20059 else
20060 ac_res=-l$ac_lib
20061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20062 fi
20063 if ac_fn_c_try_link "$LINENO"; then :
20064 ac_cv_search_idn2_to_ascii_lz=$ac_res
20065 fi
20066 rm -f core conftest.err conftest.$ac_objext \
20067 conftest$ac_exeext
20068 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
20069 break
20070 fi
20071 done
20072 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
20073
20074 else
20075 ac_cv_search_idn2_to_ascii_lz=no
20076 fi
20077 rm conftest.$ac_ext
20078 LIBS=$ac_func_search_save_LIBS
20079 fi
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
20081 $as_echo "$ac_cv_search_idn2_to_ascii_lz" >&6; }
20082 ac_res=$ac_cv_search_idn2_to_ascii_lz
20083 if test "$ac_res" != no; then :
20084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20085 LIBIDN2_LIBS="$ac_cv_search_idn2_to_ascii_lz"
20086
20087 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
20088
20089 else
20090 as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
20091 fi
20092
20093 CFLAGS="$save_CFLAGS"
20094 CPPFLAGS="$save_CPPFLAGS"
20095 LDFLAGS="$save_LDFLAGS"
20096 LIBS="$save_LIBS" ;; #(
20097 *) :
20098 ;;
20099 esac
20100
20101
20102
20103
20104 #
20105 # Check whether to build with cmocka unit testing framework
20106 #
20107
20108
20109 # Check whether --with-cmocka was given.
20110 if test "${with_cmocka+set}" = set; then :
20111 withval=$with_cmocka;
20112 else
20113 with_cmocka=detect
20114 fi
20115
20116
20117 case $with_cmocka in #(
20118 no) :
20119 ;; #(
20120 detect) :
20121
20122 pkg_failed=no
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
20124 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
20125
20126 if test -n "$CMOCKA_CFLAGS"; then
20127 pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
20128 elif test -n "$PKG_CONFIG"; then
20129 if test -n "$PKG_CONFIG" && \
20130 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
20131 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
20132 ac_status=$?
20133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20134 test $ac_status = 0; }; then
20135 pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
20136 test "x$?" != "x0" && pkg_failed=yes
20137 else
20138 pkg_failed=yes
20139 fi
20140 else
20141 pkg_failed=untried
20142 fi
20143 if test -n "$CMOCKA_LIBS"; then
20144 pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
20145 elif test -n "$PKG_CONFIG"; then
20146 if test -n "$PKG_CONFIG" && \
20147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
20148 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
20149 ac_status=$?
20150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20151 test $ac_status = 0; }; then
20152 pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
20153 test "x$?" != "x0" && pkg_failed=yes
20154 else
20155 pkg_failed=yes
20156 fi
20157 else
20158 pkg_failed=untried
20159 fi
20160
20161
20162
20163 if test $pkg_failed = yes; then
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20165 $as_echo "no" >&6; }
20166
20167 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20168 _pkg_short_errors_supported=yes
20169 else
20170 _pkg_short_errors_supported=no
20171 fi
20172 if test $_pkg_short_errors_supported = yes; then
20173 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
20174 else
20175 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
20176 fi
20177 # Put the nasty error message in config.log where it belongs
20178 echo "$CMOCKA_PKG_ERRORS" >&5
20179
20180 with_cmocka=no
20181 elif test $pkg_failed = untried; then
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20183 $as_echo "no" >&6; }
20184 with_cmocka=no
20185 else
20186 CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
20187 CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20189 $as_echo "yes" >&6; }
20190
20191 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
20192
20193 UNITTESTS=tests
20194 fi ;; #(
20195 yes) :
20196
20197 pkg_failed=no
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
20199 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
20200
20201 if test -n "$CMOCKA_CFLAGS"; then
20202 pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
20203 elif test -n "$PKG_CONFIG"; then
20204 if test -n "$PKG_CONFIG" && \
20205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
20206 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
20207 ac_status=$?
20208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20209 test $ac_status = 0; }; then
20210 pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
20211 test "x$?" != "x0" && pkg_failed=yes
20212 else
20213 pkg_failed=yes
20214 fi
20215 else
20216 pkg_failed=untried
20217 fi
20218 if test -n "$CMOCKA_LIBS"; then
20219 pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
20220 elif test -n "$PKG_CONFIG"; then
20221 if test -n "$PKG_CONFIG" && \
20222 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
20223 ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
20224 ac_status=$?
20225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20226 test $ac_status = 0; }; then
20227 pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
20228 test "x$?" != "x0" && pkg_failed=yes
20229 else
20230 pkg_failed=yes
20231 fi
20232 else
20233 pkg_failed=untried
20234 fi
20235
20236
20237
20238 if test $pkg_failed = yes; then
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20240 $as_echo "no" >&6; }
20241
20242 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20243 _pkg_short_errors_supported=yes
20244 else
20245 _pkg_short_errors_supported=no
20246 fi
20247 if test $_pkg_short_errors_supported = yes; then
20248 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
20249 else
20250 CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
20251 fi
20252 # Put the nasty error message in config.log where it belongs
20253 echo "$CMOCKA_PKG_ERRORS" >&5
20254
20255 as_fn_error $? "Package requirements (cmocka >= 1.0.0) were not met:
20256
20257 $CMOCKA_PKG_ERRORS
20258
20259 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20260 installed software in a non-standard prefix.
20261
20262 Alternatively, you may set the environment variables CMOCKA_CFLAGS
20263 and CMOCKA_LIBS to avoid the need to call pkg-config.
20264 See the pkg-config man page for more details." "$LINENO" 5
20265 elif test $pkg_failed = untried; then
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20267 $as_echo "no" >&6; }
20268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20270 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20271 is in your PATH or set the PKG_CONFIG environment variable to the full
20272 path to pkg-config.
20273
20274 Alternatively, you may set the environment variables CMOCKA_CFLAGS
20275 and CMOCKA_LIBS to avoid the need to call pkg-config.
20276 See the pkg-config man page for more details.
20277
20278 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20279 See \`config.log' for more details" "$LINENO" 5; }
20280 else
20281 CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
20282 CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20284 $as_echo "yes" >&6; }
20285
20286 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
20287
20288 fi
20289 UNITTESTS=tests ;; #(
20290 *) :
20291 as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5
20292 ;;
20293 esac
20294
20295
20296
20297
20298 #
20299 # Check for kyua execution engine if CMocka was requested
20300 # and bail out if execution engine was not found
20301 #
20302
20303 if test "$with_cmocka" != "no"; then :
20304 for ac_prog in kyua
20305 do
20306 # Extract the first word of "$ac_prog", so it can be a program name with args.
20307 set dummy $ac_prog; ac_word=$2
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20309 $as_echo_n "checking for $ac_word... " >&6; }
20310 if ${ac_cv_path_KYUA+:} false; then :
20311 $as_echo_n "(cached) " >&6
20312 else
20313 case $KYUA in
20314 [\\/]* | ?:[\\/]*)
20315 ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
20316 ;;
20317 *)
20318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20319 for as_dir in $PATH
20320 do
20321 IFS=$as_save_IFS
20322 test -z "$as_dir" && as_dir=.
20323 for ac_exec_ext in '' $ac_executable_extensions; do
20324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20325 ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
20326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20327 break 2
20328 fi
20329 done
20330 done
20331 IFS=$as_save_IFS
20332
20333 ;;
20334 esac
20335 fi
20336 KYUA=$ac_cv_path_KYUA
20337 if test -n "$KYUA"; then
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
20339 $as_echo "$KYUA" >&6; }
20340 else
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20342 $as_echo "no" >&6; }
20343 fi
20344
20345
20346 test -n "$KYUA" && break
20347 done
20348
20349 if test -z "$KYUA"; then :
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
20351 $as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
20352 fi
20353 fi
20354
20355
20356
20357 #
20358 # Check for -Wl,--wrap= support
20359 #
20360
20361
20362
20363 CCASFLAGS_wrap_ax_save_flags=$CCASFLAGS
20364
20365
20366
20367 CFLAGS_wrap_ax_save_flags=$CFLAGS
20368
20369
20370
20371 CPPFLAGS_wrap_ax_save_flags=$CPPFLAGS
20372
20373
20374
20375 CXXFLAGS_wrap_ax_save_flags=$CXXFLAGS
20376
20377
20378
20379 ERLCFLAGS_wrap_ax_save_flags=$ERLCFLAGS
20380
20381
20382
20383 FCFLAGS_wrap_ax_save_flags=$FCFLAGS
20384
20385
20386
20387 FCLIBS_wrap_ax_save_flags=$FCLIBS
20388
20389
20390
20391 FFLAGS_wrap_ax_save_flags=$FFLAGS
20392
20393
20394
20395 FLIBS_wrap_ax_save_flags=$FLIBS
20396
20397
20398
20399 GCJFLAGS_wrap_ax_save_flags=$GCJFLAGS
20400
20401
20402
20403 JAVACFLAGS_wrap_ax_save_flags=$JAVACFLAGS
20404
20405
20406
20407 LDFLAGS_wrap_ax_save_flags=$LDFLAGS
20408
20409
20410
20411 LIBS_wrap_ax_save_flags=$LIBS
20412
20413
20414
20415 OBJCFLAGS_wrap_ax_save_flags=$OBJCFLAGS
20416
20417
20418
20419 OBJCXXFLAGS_wrap_ax_save_flags=$OBJCXXFLAGS
20420
20421
20422
20423 UPCFLAGS_wrap_ax_save_flags=$UPCFLAGS
20424
20425
20426
20427 VALAFLAGS_wrap_ax_save_flags=$VALAFLAGS
20428
20429
20430
20431
20432 LDFLAGS="-Wl,-wrap,exit"
20433 LD_WRAP_TESTS=false
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5
20435 $as_echo_n "checking for linker support for --wrap option... " >&6; }
20436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20437 /* end confdefs.h. */
20438 #include <stdlib.h>
20439 void __real_exit (int status);
20440 void __wrap_exit (int status) { __real_exit (status); }
20441
20442 int
20443 main ()
20444 {
20445 exit (1);
20446 ;
20447 return 0;
20448 }
20449 _ACEOF
20450 if ac_fn_c_try_link "$LINENO"; then :
20451 LD_WRAP_TESTS=true
20452
20453 $as_echo "#define LD_WRAP 1" >>confdefs.h
20454
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20456 $as_echo "yes" >&6; }
20457 else
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20459 $as_echo "no" >&6; }
20460 fi
20461 rm -f core conftest.err conftest.$ac_objext \
20462 conftest$ac_exeext conftest.$ac_ext
20463
20464
20465
20466 CCASFLAGS=$CCASFLAGS_wrap_ax_save_flags
20467
20468
20469 CFLAGS=$CFLAGS_wrap_ax_save_flags
20470
20471
20472 CPPFLAGS=$CPPFLAGS_wrap_ax_save_flags
20473
20474
20475 CXXFLAGS=$CXXFLAGS_wrap_ax_save_flags
20476
20477
20478 ERLCFLAGS=$ERLCFLAGS_wrap_ax_save_flags
20479
20480
20481 FCFLAGS=$FCFLAGS_wrap_ax_save_flags
20482
20483
20484 FCLIBS=$FCLIBS_wrap_ax_save_flags
20485
20486
20487 FFLAGS=$FFLAGS_wrap_ax_save_flags
20488
20489
20490 FLIBS=$FLIBS_wrap_ax_save_flags
20491
20492
20493 GCJFLAGS=$GCJFLAGS_wrap_ax_save_flags
20494
20495
20496 JAVACFLAGS=$JAVACFLAGS_wrap_ax_save_flags
20497
20498
20499 LDFLAGS=$LDFLAGS_wrap_ax_save_flags
20500
20501
20502 LIBS=$LIBS_wrap_ax_save_flags
20503
20504
20505 OBJCFLAGS=$OBJCFLAGS_wrap_ax_save_flags
20506
20507
20508 OBJCXXFLAGS=$OBJCXXFLAGS_wrap_ax_save_flags
20509
20510
20511 UPCFLAGS=$UPCFLAGS_wrap_ax_save_flags
20512
20513
20514 VALAFLAGS=$VALAFLAGS_wrap_ax_save_flags
20515
20516
20517
20518
20519 #
20520 # Check for i18n
20521 #
20522 for ac_header in locale.h
20523 do :
20524 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
20525 if test "x$ac_cv_header_locale_h" = xyes; then :
20526 cat >>confdefs.h <<_ACEOF
20527 #define HAVE_LOCALE_H 1
20528 _ACEOF
20529
20530 fi
20531
20532 done
20533
20534 for ac_func in setlocale
20535 do :
20536 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
20537 if test "x$ac_cv_func_setlocale" = xyes; then :
20538 cat >>confdefs.h <<_ACEOF
20539 #define HAVE_SETLOCALE 1
20540 _ACEOF
20541
20542 fi
20543 done
20544
20545
20546 #
20547 # was --with-tuning specified?
20548 #
20549
20550 # Check whether --with-tuning was given.
20551 if test "${with_tuning+set}" = set; then :
20552 withval=$with_tuning; use_tuning="$withval"
20553 else
20554 use_tuning="no"
20555 fi
20556
20557
20558 case "$use_tuning" in
20559 large)
20560
20561 $as_echo "#define TUNE_LARGE 1" >>confdefs.h
20562
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using large-system tuning" >&5
20564 $as_echo "using large-system tuning" >&6; }
20565 ;;
20566 no|default)
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default tuning" >&5
20568 $as_echo "using default tuning" >&6; }
20569 ;;
20570 yes|*)
20571 as_fn_error $? "You must specify \"large\" or \"default\" for --with-tuning." "$LINENO" 5
20572 ;;
20573 esac
20574
20575 #
20576 # was --enable-querytrace specified?
20577 #
20578 # Check whether --enable-querytrace was given.
20579 if test "${enable_querytrace+set}" = set; then :
20580 enableval=$enable_querytrace; want_querytrace="$enableval"
20581 else
20582 want_querytrace="no"
20583 fi
20584
20585
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
20587 $as_echo_n "checking whether to enable query trace logging... " >&6; }
20588 case "$want_querytrace" in
20589 yes)
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20591 $as_echo "yes" >&6; }
20592
20593 $as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
20594
20595 ;;
20596 no)
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20598 $as_echo "no" >&6; }
20599 ;;
20600 *)
20601 as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
20602 ;;
20603 esac
20604
20605 #
20606 # Was --disable-auto-validation specified?
20607 #
20608 validation_default=auto
20609 # Check whether --enable-auto-validation was given.
20610 if test "${enable_auto_validation+set}" = set; then :
20611 enableval=$enable_auto_validation; :
20612 else
20613 enable_auto_validation=yes
20614 fi
20615
20616 if test "$enable_auto_validation" = "no"; then :
20617 validation_default=yes
20618 fi
20619
20620 cat >>confdefs.h <<_ACEOF
20621 #define VALIDATION_DEFAULT "$validation_default"
20622 _ACEOF
20623
20624
20625 #
20626 # Substitutions
20627 #
20628
20629 BIND9_TOP_BUILDDIR=`pwd`
20630
20631
20632
20633
20634
20635
20636
20637
20638 if test "X$srcdir" != "X"; then
20639 BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
20640 BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
20641 BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
20642 BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
20643 BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
20644 BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
20645 BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
20646 else
20647 BIND9_ISC_BUILDINCLUDE=""
20648 BIND9_ISCCC_BUILDINCLUDE=""
20649 BIND9_ISCCFG_BUILDINCLUDE=""
20650 BIND9_DNS_BUILDINCLUDE=""
20651 BIND9_NS_BUILDINCLUDE=""
20652 BIND9_BIND9_BUILDINCLUDE=""
20653 BIND9_IRS_BUILDINCLUDE=""
20654 fi
20655
20656
20657 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
20658
20659
20660 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
20661
20662 . "$srcdir/version"
20663 BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
20664
20665 BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
20666
20667 BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
20668
20669 BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
20670
20671 BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
20672
20673 BIND9_VERSIONSHORT="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
20674
20675
20676 BIND9_SRCID="SRCID=unset_id"
20677 if test -f "${srcdir}/srcid"; then
20678 . "${srcdir}/srcid"
20679 BIND9_SRCID="SRCID=$SRCID"
20680 elif test -d "${srcdir}/.git"; then
20681 BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
20682 fi
20683
20684
20685
20686 if test -z "$ac_configure_args"; then
20687 BIND9_CONFIGARGS="defaults"
20688 else
20689 for a in $ac_configure_args
20690 do
20691 BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
20692 done
20693 fi
20694 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
20695 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
20696
20697
20698
20699 LIBISC_API="$srcdir/lib/isc/api"
20700
20701
20702 LIBISCCC_API="$srcdir/lib/isccc/api"
20703
20704
20705 LIBISCCFG_API="$srcdir/lib/isccfg/api"
20706
20707
20708 LIBDNS_API="$srcdir/lib/dns/api"
20709
20710
20711 LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
20712
20713
20714 LIBBIND9_API="$srcdir/lib/bind9/api"
20715
20716
20717 LIBIRS_API="$srcdir/lib/irs/api"
20718
20719
20720 LIBNS_API="$srcdir/lib/ns/api"
20721
20722 #
20723 # Configure any DLZ drivers.
20724 #
20725 # If config.dlz.in selects one or more DLZ drivers, it will set
20726 # CONTRIB_DLZ to a non-empty value, which will be our clue to
20727 # build DLZ drivers in contrib.
20728 #
20729 # This section has to come after the libtool stuff because it needs to
20730 # know how to name the driver object files.
20731 #
20732
20733 CONTRIB_DLZ=""
20734 DLZ_DRIVER_INCLUDES=""
20735 DLZ_DRIVER_LIBS=""
20736 DLZ_DRIVER_SRCS=""
20737 DLZ_DRIVER_OBJS=""
20738 DLZ_SYSTEM_TEST=""
20739 DLZ_DRIVER_MYSQL_INCLUDES=""
20740 DLZ_DRIVER_MYSQL_LIBS=""
20741
20742 #
20743 # Configure support for building a shared library object
20744 #
20745 # Even when libtool is available it can't always be relied upon
20746 # to build an object that can be dlopen()'ed, but this is necessary
20747 # for building the dlzexternal system test, so we'll try it the
20748 # old-fashioned way.
20749 #
20750 SO="so"
20751 SO_CFLAGS=""
20752 SO_LDFLAGS=""
20753 SO_LD=""
20754 SO_TARGETS=""
20755 SO_STRIP="cat"
20756
20757
20758 # Check whether --with-dlopen was given.
20759 if test "${with_dlopen+set}" = set; then :
20760 withval=$with_dlopen;
20761 else
20762 with_dlopen="auto"
20763 fi
20764
20765
20766
20767 #
20768 # If PIC is disabled, dlopen must also be
20769 #
20770 if test "$pic_mode" = "no"; then :
20771 case $with_dlopen in #(
20772 auto) :
20773 with_dlopen="no" ;; #(
20774 yes) :
20775 as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
20776 *) :
20777 ;;
20778 esac
20779 fi
20780
20781 case $with_dlopen in #(
20782 auto|yes) :
20783
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20785 $as_echo_n "checking for library containing dlopen... " >&6; }
20786 if ${ac_cv_search_dlopen+:} false; then :
20787 $as_echo_n "(cached) " >&6
20788 else
20789 ac_func_search_save_LIBS=$LIBS
20790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20791 /* end confdefs.h. */
20792
20793 /* Override any GCC internal prototype to avoid an error.
20794 Use char because int might match the return type of a GCC
20795 builtin and then its argument prototype would still apply. */
20796 #ifdef __cplusplus
20797 extern "C"
20798 #endif
20799 char dlopen ();
20800 int
20801 main ()
20802 {
20803 return dlopen ();
20804 ;
20805 return 0;
20806 }
20807 _ACEOF
20808 for ac_lib in '' dl; do
20809 if test -z "$ac_lib"; then
20810 ac_res="none required"
20811 else
20812 ac_res=-l$ac_lib
20813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20814 fi
20815 if ac_fn_c_try_link "$LINENO"; then :
20816 ac_cv_search_dlopen=$ac_res
20817 fi
20818 rm -f core conftest.err conftest.$ac_objext \
20819 conftest$ac_exeext
20820 if ${ac_cv_search_dlopen+:} false; then :
20821 break
20822 fi
20823 done
20824 if ${ac_cv_search_dlopen+:} false; then :
20825
20826 else
20827 ac_cv_search_dlopen=no
20828 fi
20829 rm conftest.$ac_ext
20830 LIBS=$ac_func_search_save_LIBS
20831 fi
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20833 $as_echo "$ac_cv_search_dlopen" >&6; }
20834 ac_res=$ac_cv_search_dlopen
20835 if test "$ac_res" != no; then :
20836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20837
20838 fi
20839
20840 for ac_func in dlopen dlclose dlsym
20841 do :
20842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20843 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20844 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20845 cat >>confdefs.h <<_ACEOF
20846 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20847 _ACEOF
20848 with_dlopen="yes"
20849 else
20850 with_dlopen="no"
20851 fi
20852 done
20853
20854 ;; #(
20855 *) :
20856 ;;
20857 esac
20858
20859 if test "$with_dlopen" = "yes"; then :
20860 case $host in #(
20861 *-linux*|*-gnu*) :
20862
20863 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
20864 SO_CFLAGS="-fPIC"
20865 SO_LDFLAGS=""
20866 if test "$use_libtool" = "yes"; then :
20867
20868 SO_LDFLAGS="-Xcompiler -shared"
20869 SO_LD="${CC}"
20870
20871 else
20872
20873 SO_LDFLAGS="-shared"
20874 SO_LD="${CC}"
20875
20876 fi
20877 ;; #(
20878 *-freebsd*|*-openbsd*|*-netbsd*) :
20879
20880 LDFLAGS="${LDFLAGS} -Wl,-E"
20881 SO_CFLAGS="-fpic"
20882 if test "$use_libtool" = "yes"; then :
20883
20884 SO_LDFLAGS="-Xcompiler -shared"
20885 SO_LD="${CC}"
20886
20887 else
20888
20889 SO_LDFLAGS="-shared"
20890 SO_LD="${CC}"
20891
20892 fi
20893 ;; #(
20894 *-darwin*) :
20895
20896 SO_CFLAGS="-fPIC"
20897 SO_LD="${CC}"
20898 if test "$use_libtool" = "yes"; then :
20899
20900 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
20901
20902 else
20903
20904 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
20905
20906 fi
20907 ;; #(
20908 *-solaris*) :
20909
20910 SO_CFLAGS="-KPIC"
20911 SO_LDFLAGS="-G -z text"
20912 SO_LD="ld"
20913 ;; #(
20914 ia64-hp-hpux*) :
20915
20916 SO_CFLAGS="+z"
20917 SO_LDFLAGS="-b"
20918 SO_LD="${CC}"
20919 ;; #(
20920 *) :
20921
20922 SO_CFLAGS="-fPIC"
20923 ;;
20924 esac
20925 if test "$GCC" = "yes"; then :
20926
20927 SO_CFLAGS="-fPIC"
20928 if test -z "$SO_LD"; then :
20929 if test "$use_libtool" = "yes"; then :
20930
20931 SO_LDFLAGS="-Xcompiler -shared"
20932 SO_LD="${CC}"
20933
20934 else
20935
20936 SO_LDFLAGS="-shared"
20937 SO_LD="${CC}"
20938
20939 fi
20940
20941 fi
20942
20943 fi
20944 # If we still don't know how to make shared objects, don't make any.
20945 if test -n "$SO_LD"; then :
20946 SO_TARGETS="\${SO_TARGETS}"
20947
20948 $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
20949
20950
20951 fi
20952
20953 fi
20954
20955 CFLAGS="$CFLAGS $SO_CFLAGS"
20956
20957
20958
20959
20960
20961
20962
20963
20964 #
20965 # Response policy rewriting using DNS Response Policy Service (DNSRPS)
20966 # interface.
20967 #
20968 # DNSRPS can be compiled into BIND everywhere with a reasonably
20969 # modern C compiler. It is enabled on systems with dlopen() and librpz.so.
20970 #
20971 dnsrps_avail=yes
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
20973 $as_echo_n "checking for librpz __attribute__s... " >&6; }
20974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20975 /* end confdefs.h. */
20976
20977 int
20978 main ()
20979 {
20980
20981 extern void f(char *p __attribute__((unused)), ...)
20982 __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
20983
20984 ;
20985 return 0;
20986 }
20987 _ACEOF
20988 if ac_fn_c_try_compile "$LINENO"; then :
20989
20990 librpz_have_attr=yes
20991
20992 $as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
20993
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20995 $as_echo "yes" >&6; }
20996
20997 else
20998
20999 librpz_have_attr=no
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21001 $as_echo "no" >&6; }
21002
21003 fi
21004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21005
21006 # Check whether --enable-dnsrps-dl was given.
21007 if test "${enable_dnsrps_dl+set}" = set; then :
21008 enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
21009 else
21010 enable_librpz_dl="$with_dlopen"
21011 fi
21012
21013
21014 if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"; then :
21015 as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
21016 fi
21017
21018
21019 # Check whether --with-dnsrps-libname was given.
21020 if test "${with_dnsrps_libname+set}" = set; then :
21021 withval=$with_dnsrps_libname; librpz_name="$withval"
21022 else
21023 librpz_name="librpz.so"
21024 fi
21025
21026
21027 # Check whether --with-dnsrps-dir was given.
21028 if test "${with_dnsrps_dir+set}" = set; then :
21029 withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
21030 else
21031 librpz_path="$librpz_name"
21032 fi
21033
21034
21035 cat >>confdefs.h <<_ACEOF
21036 #define DNSRPS_LIBRPZ_PATH "$librpz_path"
21037 _ACEOF
21038
21039 if test "$enable_librpz_dl" = "yes"; then :
21040
21041 dnsrps_lib_open=2
21042
21043 else
21044
21045 dnsrps_lib_open=1
21046 # Add librpz.so to linked libraries if we are not using dlopen()
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
21048 $as_echo_n "checking for library containing librpz_client_create... " >&6; }
21049 if ${ac_cv_search_librpz_client_create+:} false; then :
21050 $as_echo_n "(cached) " >&6
21051 else
21052 ac_func_search_save_LIBS=$LIBS
21053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21054 /* end confdefs.h. */
21055
21056 /* Override any GCC internal prototype to avoid an error.
21057 Use char because int might match the return type of a GCC
21058 builtin and then its argument prototype would still apply. */
21059 #ifdef __cplusplus
21060 extern "C"
21061 #endif
21062 char librpz_client_create ();
21063 int
21064 main ()
21065 {
21066 return librpz_client_create ();
21067 ;
21068 return 0;
21069 }
21070 _ACEOF
21071 for ac_lib in '' rpz; do
21072 if test -z "$ac_lib"; then
21073 ac_res="none required"
21074 else
21075 ac_res=-l$ac_lib
21076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21077 fi
21078 if ac_fn_c_try_link "$LINENO"; then :
21079 ac_cv_search_librpz_client_create=$ac_res
21080 fi
21081 rm -f core conftest.err conftest.$ac_objext \
21082 conftest$ac_exeext
21083 if ${ac_cv_search_librpz_client_create+:} false; then :
21084 break
21085 fi
21086 done
21087 if ${ac_cv_search_librpz_client_create+:} false; then :
21088
21089 else
21090 ac_cv_search_librpz_client_create=no
21091 fi
21092 rm conftest.$ac_ext
21093 LIBS=$ac_func_search_save_LIBS
21094 fi
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
21096 $as_echo "$ac_cv_search_librpz_client_create" >&6; }
21097 ac_res=$ac_cv_search_librpz_client_create
21098 if test "$ac_res" != no; then :
21099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21100
21101 else
21102 dnsrps_lib_open=0
21103 dnsrps_avail=no
21104 fi
21105
21106
21107 fi
21108
21109 cat >>confdefs.h <<_ACEOF
21110 #define DNSRPS_LIB_OPEN $dnsrps_lib_open
21111 _ACEOF
21112
21113
21114 # Check whether --enable-dnsrps was given.
21115 if test "${enable_dnsrps+set}" = set; then :
21116 enableval=$enable_dnsrps; enable_dnsrps=$enableval
21117 else
21118 enable_dnsrps=no
21119 fi
21120
21121
21122 if test "$enable_dnsrps" != "no"; then :
21123
21124 if test "$dnsrps_avail" != "yes"; then :
21125 as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
21126 fi
21127 if test "$dnsrps_lib_open" = "0"; then :
21128 as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
21129 fi
21130
21131 $as_echo "#define USE_DNSRPS 1" >>confdefs.h
21132
21133
21134 fi
21135
21136 # Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
21137 #
21138 # Permission to use, copy, modify, and distribute this software for any
21139 # purpose with or without fee is hereby granted, provided that the above
21140 # copyright notice and this permission notice appear in all copies.
21141 #
21142 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
21143 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
21144 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
21145 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
21146 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
21147 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21148 # PERFORMANCE OF THIS SOFTWARE.
21149
21150 #
21151 # Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
21152 #
21153 dlzdir='${DLZ_DRIVER_DIR}'
21154
21155 #
21156 # Private autoconf macro to simplify configuring drivers:
21157 #
21158 # DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
21159 #
21160 # where:
21161 # DEFINE is FOO (to define -DDLZ_FOO)
21162 # DRIVER is dlz_foo_driver (sources without the .c)
21163 # INCLUDES is any necessary include definitions
21164 # LIBS is any necessary library definitions
21165 #
21166
21167
21168 #
21169 # Check for the various DLZ drivers
21170 #
21171
21172 #
21173 # Was --with-dlz-postgres specified?
21174 #
21175
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
21177 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
21178
21179 # Check whether --with-dlz_postgres was given.
21180 if test "${with_dlz_postgres+set}" = set; then :
21181 withval=$with_dlz_postgres; use_dlz_postgres="$withval"
21182 else
21183 use_dlz_postgres="no"
21184 fi
21185
21186
21187 if test "$use_dlz_postgres" != "no"
21188 then
21189 if test "$use_dlz_postgres" != "yes"
21190 then
21191 for ac_prog in pg_config
21192 do
21193 # Extract the first word of "$ac_prog", so it can be a program name with args.
21194 set dummy $ac_prog; ac_word=$2
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21196 $as_echo_n "checking for $ac_word... " >&6; }
21197 if ${ac_cv_path_PG_CONFIG+:} false; then :
21198 $as_echo_n "(cached) " >&6
21199 else
21200 case $PG_CONFIG in
21201 [\\/]* | ?:[\\/]*)
21202 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
21203 ;;
21204 *)
21205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21206 for as_dir in $use_dlz_postgres/bin
21207 do
21208 IFS=$as_save_IFS
21209 test -z "$as_dir" && as_dir=.
21210 for ac_exec_ext in '' $ac_executable_extensions; do
21211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21212 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21214 break 2
21215 fi
21216 done
21217 done
21218 IFS=$as_save_IFS
21219
21220 ;;
21221 esac
21222 fi
21223 PG_CONFIG=$ac_cv_path_PG_CONFIG
21224 if test -n "$PG_CONFIG"; then
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
21226 $as_echo "$PG_CONFIG" >&6; }
21227 else
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21229 $as_echo "no" >&6; }
21230 fi
21231
21232
21233 test -n "$PG_CONFIG" && break
21234 done
21235 test -n "$PG_CONFIG" || PG_CONFIG="not found"
21236
21237 else
21238 for ac_prog in pg_config
21239 do
21240 # Extract the first word of "$ac_prog", so it can be a program name with args.
21241 set dummy $ac_prog; ac_word=$2
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21243 $as_echo_n "checking for $ac_word... " >&6; }
21244 if ${ac_cv_path_PG_CONFIG+:} false; then :
21245 $as_echo_n "(cached) " >&6
21246 else
21247 case $PG_CONFIG in
21248 [\\/]* | ?:[\\/]*)
21249 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
21250 ;;
21251 *)
21252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21253 for as_dir in $PATH
21254 do
21255 IFS=$as_save_IFS
21256 test -z "$as_dir" && as_dir=.
21257 for ac_exec_ext in '' $ac_executable_extensions; do
21258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21259 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21261 break 2
21262 fi
21263 done
21264 done
21265 IFS=$as_save_IFS
21266
21267 ;;
21268 esac
21269 fi
21270 PG_CONFIG=$ac_cv_path_PG_CONFIG
21271 if test -n "$PG_CONFIG"; then
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
21273 $as_echo "$PG_CONFIG" >&6; }
21274 else
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21276 $as_echo "no" >&6; }
21277 fi
21278
21279
21280 test -n "$PG_CONFIG" && break
21281 done
21282 test -n "$PG_CONFIG" || PG_CONFIG="not found"
21283
21284 fi
21285
21286 if test "$PG_CONFIG" != "not found"
21287 then
21288 use_dlz_postgres=`$PG_CONFIG --includedir`
21289 use_dlz_postgres_lib=`$PG_CONFIG --libdir`
21290 else
21291 pgprefix="$use_dlz_postgres"
21292 use_dlz_postgres="$pgprefix/include"
21293 use_dlz_postgres_lib="$pgprefix/lib"
21294 fi
21295 fi
21296
21297 if test "$use_dlz_postgres" = "yes/include"
21298 then
21299 # User did not specify path and Postgres didn't say - guess it
21300 pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
21301 for d in $pgdirs
21302 do
21303 if test -f $d/include/libpq-fe.h
21304 then
21305 use_dlz_postgres=$d/include
21306 use_dlz_postgres_lib=$d/lib
21307 break
21308 fi
21309 done
21310 fi
21311
21312 if test "$use_dlz_postgres" = "yes/include"
21313 then
21314 # Still no joy, give up
21315
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21317 $as_echo "not found" >&6; }
21318 as_fn_error $? "No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" "$LINENO" 5
21319 fi
21320
21321 case "$use_dlz_postgres" in
21322 no)
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21324 $as_echo "no" >&6; }
21325 ;;
21326 *)
21327
21328 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
21329 for i in dlz_postgres_driver
21330 do
21331 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21332 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21333 done
21334 if test -n "-I$use_dlz_postgres"
21335 then
21336 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
21337 DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
21338 fi
21339 if test -n "-L$use_dlz_postgres_lib -lpq"
21340 then
21341 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
21342 DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
21343 fi
21344
21345
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
21347 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
21348 ;;
21349 esac
21350
21351
21352 #
21353 # Was --with-dlz-mysql specified?
21354 #
21355
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
21357 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
21358
21359 # Check whether --with-dlz_mysql was given.
21360 if test "${with_dlz_mysql+set}" = set; then :
21361 withval=$with_dlz_mysql; use_dlz_mysql="$withval"
21362 else
21363 use_dlz_mysql="no"
21364 fi
21365
21366
21367 mysql_include=""
21368 mysql_lib=""
21369 if test "$use_dlz_mysql" = "yes"
21370 then
21371 for ac_prog in mysql_config
21372 do
21373 # Extract the first word of "$ac_prog", so it can be a program name with args.
21374 set dummy $ac_prog; ac_word=$2
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21376 $as_echo_n "checking for $ac_word... " >&6; }
21377 if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
21378 $as_echo_n "(cached) " >&6
21379 else
21380 if test -n "$MYSQL_CONFIG"; then
21381 ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
21382 else
21383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21384 for as_dir in $PATH
21385 do
21386 IFS=$as_save_IFS
21387 test -z "$as_dir" && as_dir=.
21388 for ac_exec_ext in '' $ac_executable_extensions; do
21389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21390 ac_cv_prog_MYSQL_CONFIG="$ac_prog"
21391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21392 break 2
21393 fi
21394 done
21395 done
21396 IFS=$as_save_IFS
21397
21398 fi
21399 fi
21400 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
21401 if test -n "$MYSQL_CONFIG"; then
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
21403 $as_echo "$MYSQL_CONFIG" >&6; }
21404 else
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21406 $as_echo "no" >&6; }
21407 fi
21408
21409
21410 test -n "$MYSQL_CONFIG" && break
21411 done
21412
21413 if test -n "$MYSQL_CONFIG"
21414 then
21415 mysql_include=`${MYSQL_CONFIG} --include`
21416 mysql_lib=`${MYSQL_CONFIG} --libs`
21417 use_dlz_mysql="config"
21418
21419 else
21420 # User did not specify a path - guess it
21421 mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
21422 for d in $mysqldirs
21423 do
21424 if test -f $d/include/mysql/mysql.h
21425 then
21426 use_dlz_mysql=$d
21427 mysql_include=$d/include/mysql
21428 break
21429 elif test -f $d/include/mysql.h
21430 then
21431 use_dlz_mysql=$d
21432 mysql_include=$d/include
21433 break
21434 fi
21435 done
21436 fi
21437 elif test "$use_dlz_mysql" != "no"
21438 then
21439 d=$use_dlz_mysql
21440 if test -f $d/include/mysql/mysql.h
21441 then
21442 mysql_include=$d/include/mysql
21443 elif test -f $d/include/mysql.h
21444 then
21445 mysql_include=$d/include
21446 fi
21447 fi
21448
21449 if test "$use_dlz_mysql" = "yes"
21450 then
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21452 $as_echo "not found" >&6; }
21453 as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
21454 fi
21455
21456 case "$use_dlz_mysql" in
21457 no)
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21459 $as_echo "no" >&6; }
21460 ;;
21461 config)
21462
21463 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
21464 for i in dlz_mysql_driver
21465 do
21466 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21467 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21468 done
21469 if test -n "${mysql_include}"
21470 then
21471 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
21472 DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
21473 fi
21474 if test -n "${mysql_lib}"
21475 then
21476 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
21477 DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
21478 fi
21479
21480
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
21482 $as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
21483 ;;
21484 *)
21485 if test -d "$use_dlz_mysql/lib/mysql"
21486 then
21487 mysql_lib="$use_dlz_mysql/lib/mysql"
21488 else
21489 mysql_lib="$use_dlz_mysql/lib"
21490 fi
21491
21492 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
21493 for i in dlz_mysql_driver
21494 do
21495 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21496 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21497 done
21498 if test -n "-I${mysql_include}"
21499 then
21500 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
21501 DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
21502 fi
21503 if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
21504 then
21505 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
21506 DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
21507 fi
21508
21509
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
21511 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
21512 ;;
21513 esac
21514
21515
21516 #
21517 # Was --with-dlz-bdb specified?
21518 #
21519
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
21521 $as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
21522
21523 # Check whether --with-dlz_bdb was given.
21524 if test "${with_dlz_bdb+set}" = set; then :
21525 withval=$with_dlz_bdb; use_dlz_bdb="$withval"
21526 else
21527 use_dlz_bdb="no"
21528 fi
21529
21530
21531 case "$use_dlz_bdb" in
21532 no)
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21534 $as_echo "no" >&6; }
21535 ;;
21536 *)
21537 if test "$use_dlz_bdb" = "yes"
21538 then
21539 # User did not specify a path - guess directories
21540 bdbdirs="/usr/local /usr/pkg /usr"
21541 elif test -d "$use_dlz_bdb"
21542 then
21543 # User specified directory and it exists
21544 bdbdirs="$use_dlz_bdb"
21545 else
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21547 $as_echo "not found" >&6; }
21548 as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
21549 bdbdirs=""
21550 fi
21551
21552 # Use path we were given or guessed. This is insanely
21553 # complicated because we have to search for a bunch of
21554 # platform-specific variations and have to check
21555 # separately for include and library directories.
21556
21557 # Set both to yes, so we can check them later
21558 dlz_bdb_inc="yes"
21559 dlz_bdb_libs="yes"
21560
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21562 $as_echo "" >&6; }
21563 for dd in $bdbdirs
21564 do
21565 # Skip nonexistant directories
21566 if test ! -d "$dd"
21567 then
21568 continue
21569 fi
21570
21571 # Check other locations for includes.
21572 # Order is important (sigh).
21573
21574 bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
21575 # include a blank element first
21576 for d in "" $bdb_incdirs
21577 do
21578 if test -f "$dd/include${d}/db.h"
21579 then
21580 dlz_bdb_inc="-I$dd/include${d}"
21581 break
21582 fi
21583 done
21584
21585 # Give up on this directory if we couldn't
21586 # find the include subdir
21587
21588 if test "$dlz_bdb_inc" = "yes"
21589 then
21590 continue
21591 fi
21592
21593 # Look for libname other than libdb.so.
21594 # Order is important (sigh).
21595
21596 bdb_libnames="db53 db-5.3 db51 db-5.1 db48 db-4.8 db47 db-4.7 db46 db-4.6 db45 db-4.5 db44 db-4.4 db43 db-4.3 db42 db-4.2 db41 db-4.1 db"
21597 for d in $bdb_libnames
21598 do
21599 if test "$dd" = "/usr"
21600 then
21601 as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
21603 $as_echo_n "checking for db_create in -l$d... " >&6; }
21604 if eval \${$as_ac_Lib+:} false; then :
21605 $as_echo_n "(cached) " >&6
21606 else
21607 ac_check_lib_save_LIBS=$LIBS
21608 LIBS="-l$d $LIBS"
21609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h. */
21611
21612 /* Override any GCC internal prototype to avoid an error.
21613 Use char because int might match the return type of a GCC
21614 builtin and then its argument prototype would still apply. */
21615 #ifdef __cplusplus
21616 extern "C"
21617 #endif
21618 char db_create ();
21619 int
21620 main ()
21621 {
21622 return db_create ();
21623 ;
21624 return 0;
21625 }
21626 _ACEOF
21627 if ac_fn_c_try_link "$LINENO"; then :
21628 eval "$as_ac_Lib=yes"
21629 else
21630 eval "$as_ac_Lib=no"
21631 fi
21632 rm -f core conftest.err conftest.$ac_objext \
21633 conftest$ac_exeext conftest.$ac_ext
21634 LIBS=$ac_check_lib_save_LIBS
21635 fi
21636 eval ac_res=\$$as_ac_Lib
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21638 $as_echo "$ac_res" >&6; }
21639 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21640 dlz_bdb_libs="-l${d}"
21641 fi
21642
21643 if test $dlz_bdb_libs != "yes"
21644 then
21645 break
21646 fi
21647 elif test -f "$dd/lib/lib${d}.so"
21648 then
21649 dlz_bdb_libs="-L${dd}/lib -l${d}"
21650 break
21651 fi
21652 done
21653
21654 # If we found both incdir and lib, we're done
21655 if test "$dlz_bdb_libs" != "yes"
21656 then
21657 break
21658 fi
21659
21660 # Otherwise, we're starting over
21661
21662 dlz_bdb_inc="yes"
21663 dlz_bdb_libs="yes"
21664 done
21665
21666 # Done searching, now make sure we got everything.
21667
21668 if test "$dlz_bdb_inc" = "yes"
21669 then
21670 as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
21671 fi
21672
21673 if test "$dlz_bdb_libs" = "yes"
21674 then
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21676 $as_echo "not found" >&6; }
21677 as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
21678 fi
21679
21680
21681 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
21682 for i in dlz_bdb_driver dlz_bdbhpt_driver
21683 do
21684 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21685 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21686 done
21687 if test -n "$dlz_bdb_inc"
21688 then
21689 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
21690 DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
21691 fi
21692 if test -n "$dlz_bdb_libs"
21693 then
21694 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
21695 DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
21696 fi
21697
21698
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
21700 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
21701
21702 ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
21703
21704 ;;
21705 esac
21706
21707
21708 #
21709 # Was --with-dlz-filesystem specified?
21710 #
21711
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
21713 $as_echo_n "checking for file system DLZ driver... " >&6; }
21714
21715 # Check whether --with-dlz_filesystem was given.
21716 if test "${with_dlz_filesystem+set}" = set; then :
21717 withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
21718 else
21719 use_dlz_filesystem="no"
21720 fi
21721
21722
21723 case "$use_dlz_filesystem" in
21724 no)
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21726 $as_echo "no" >&6; }
21727 ;;
21728 *)
21729
21730 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
21731 for i in dlz_filesystem_driver
21732 do
21733 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21734 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21735 done
21736 if test -n ""
21737 then
21738 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
21739 DLZ_DRIVER_FILESYSTEM_INCLUDES=""
21740 fi
21741 if test -n ""
21742 then
21743 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
21744 DLZ_DRIVER_FILESYSTEM_LIBS=""
21745 fi
21746
21747 DLZ_SYSTEM_TEST=filesystem
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21749 $as_echo "yes" >&6; }
21750 ;;
21751 esac
21752
21753
21754 #
21755 # Was --with-dlz-ldap specified?
21756 #
21757
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
21759 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
21760
21761 # Check whether --with-dlz_ldap was given.
21762 if test "${with_dlz_ldap+set}" = set; then :
21763 withval=$with_dlz_ldap; use_dlz_ldap="$withval"
21764 else
21765 use_dlz_ldap="no"
21766 fi
21767
21768
21769 if test "$use_dlz_ldap" = "yes"
21770 then
21771 # User did not specify a path - guess it
21772 ldapdirs="/usr /usr/local /usr/pkg"
21773 for d in $ldapdirs
21774 do
21775 if test -f $d/include/ldap.h
21776 then
21777 use_dlz_ldap=$d
21778 break
21779 fi
21780 done
21781 fi
21782
21783 if test "$use_dlz_ldap" = "yes"
21784 then
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21786 $as_echo "not found" >&6; }
21787 as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
21788 fi
21789
21790 case "$use_dlz_ldap" in
21791 no)
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21793 $as_echo "no" >&6; }
21794 ;;
21795 *)
21796
21797 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
21798 for i in dlz_ldap_driver
21799 do
21800 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21801 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21802 done
21803 if test -n "-I$use_dlz_ldap/include"
21804 then
21805 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
21806 DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
21807 fi
21808 if test -n "-L$use_dlz_ldap/lib -lldap -llber"
21809 then
21810 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
21811 DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
21812 fi
21813
21814
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
21816 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
21817 ;;
21818 esac
21819
21820
21821 #
21822 # Was --with-dlz-odbc specified?
21823 #
21824
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
21826 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
21827
21828 # Check whether --with-dlz_odbc was given.
21829 if test "${with_dlz_odbc+set}" = set; then :
21830 withval=$with_dlz_odbc; use_dlz_odbc="$withval"
21831 else
21832 use_dlz_odbc="no"
21833 fi
21834
21835
21836 if test "$use_dlz_odbc" = "yes"
21837 then
21838 # User did not specify a path - guess it
21839 libodbc_found=no
21840 sql_h_found=no
21841 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
21842 if test "x$ac_cv_header_sql_h" = xyes; then :
21843 sql_h_found=yes
21844 fi
21845
21846
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
21848 $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
21849 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
21850 $as_echo_n "(cached) " >&6
21851 else
21852 ac_check_lib_save_LIBS=$LIBS
21853 LIBS="-lodbc $LIBS"
21854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21855 /* end confdefs.h. */
21856
21857 /* Override any GCC internal prototype to avoid an error.
21858 Use char because int might match the return type of a GCC
21859 builtin and then its argument prototype would still apply. */
21860 #ifdef __cplusplus
21861 extern "C"
21862 #endif
21863 char SQLConnect ();
21864 int
21865 main ()
21866 {
21867 return SQLConnect ();
21868 ;
21869 return 0;
21870 }
21871 _ACEOF
21872 if ac_fn_c_try_link "$LINENO"; then :
21873 ac_cv_lib_odbc_SQLConnect=yes
21874 else
21875 ac_cv_lib_odbc_SQLConnect=no
21876 fi
21877 rm -f core conftest.err conftest.$ac_objext \
21878 conftest$ac_exeext conftest.$ac_ext
21879 LIBS=$ac_check_lib_save_LIBS
21880 fi
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
21882 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
21883 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
21884 libodbc_found=yes
21885 fi
21886
21887
21888 if test $libodbc_found = "yes" -o $sql_h_found = "yes"
21889 then
21890 use_dlz_odbc=system
21891 dlz_odbc_include=""
21892 dlz_odbc_libs="-lodbc"
21893 else
21894 odbcdirs="/usr /usr/local /usr/pkg"
21895 for d in $odbcdirs
21896 do
21897 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
21898 then
21899 use_dlz_odbc=$d
21900 dlz_odbc_include="-I$use_dlz_odbc/include"
21901 dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
21902 break
21903 fi
21904 done
21905 fi
21906 fi
21907
21908 case "$use_dlz_odbc" in
21909 no)
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21911 $as_echo "no" >&6; }
21912 ;;
21913 yes)
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21915 $as_echo "not found" >&6; }
21916 as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
21917 ;;
21918 *)
21919
21920 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
21921 for i in dlz_odbc_driver
21922 do
21923 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21924 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21925 done
21926 if test -n "$dlz_odbc_include"
21927 then
21928 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
21929 DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
21930 fi
21931 if test -n "$dlz_odbc_libs"
21932 then
21933 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
21934 DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
21935 fi
21936
21937
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
21939 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
21940 ;;
21941 esac
21942
21943
21944 #
21945 # Was --with-dlz-stub specified?
21946 #
21947
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
21949 $as_echo_n "checking for stub DLZ driver... " >&6; }
21950
21951 # Check whether --with-dlz_stub was given.
21952 if test "${with_dlz_stub+set}" = set; then :
21953 withval=$with_dlz_stub; use_dlz_stub="$withval"
21954 else
21955 use_dlz_stub="no"
21956 fi
21957
21958
21959 case "$use_dlz_stub" in
21960 no)
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21962 $as_echo "no" >&6; }
21963 ;;
21964 *)
21965
21966
21967 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
21968 for i in dlz_stub_driver
21969 do
21970 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21971 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
21972 done
21973 if test -n ""
21974 then
21975 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
21976 DLZ_DRIVER_STUB_INCLUDES=""
21977 fi
21978 if test -n ""
21979 then
21980 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
21981 DLZ_DRIVER_STUB_LIBS=""
21982 fi
21983
21984
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21986 $as_echo "yes" >&6; }
21987 ;;
21988 esac
21989
21990 # Add any additional DLZ drivers here.
21991
21992 #
21993 # Finally, some generic stuff that applies to all drivers, assuming
21994 # we're compiling contrib DLZ drivers at all.
21995 #
21996 if test -n "$CONTRIB_DLZ"
21997 then
21998 CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
21999
22000 #
22001 # Where to find DLZ driver header files.
22002 #
22003 DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
22004
22005 #
22006 # Initialization and shutdown wrappers, helper functions.
22007 #
22008 DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
22009 DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
22010 fi
22011
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
22013 $as_echo_n "checking contributed DLZ drivers... " >&6; }
22014
22015 if test -n "$CONTRIB_DLZ"
22016 then
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22018 $as_echo "yes" >&6; }
22019 DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
22020 ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
22021
22022 else
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22024 $as_echo "no" >&6; }
22025 DLZ_DRIVER_RULES=/dev/null
22026 fi
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038 if test "yes" = "$cross_compiling"; then
22039 if test -z "$BUILD_CC"; then
22040 as_fn_error $? "BUILD_CC not set" "$LINENO" 5
22041 fi
22042 BUILD_CFLAGS="$BUILD_CFLAGS"
22043 BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
22044 BUILD_LDFLAGS="$BUILD_LDFLAGS"
22045 BUILD_LIBS="$BUILD_LIBS"
22046 else
22047 BUILD_CC="$CC"
22048 BUILD_CFLAGS="$CFLAGS"
22049 BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
22050 BUILD_LDFLAGS="$LDFLAGS"
22051 BUILD_LIBS="$LIBS"
22052 fi
22053
22054 NEWFLAGS=""
22055 for e in $BUILD_LDFLAGS ; do
22056 case $e in
22057 -L*)
22058 case $host_os in
22059 netbsd*)
22060 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
22061 NEWFLAGS="$NEWFLAGS $e $ee"
22062 ;;
22063 freebsd*)
22064 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
22065 NEWFLAGS="$NEWFLAGS $e $ee"
22066 ;;
22067 solaris*)
22068 ee=`echo $e | sed -e 's%^-L%-R%'`
22069 NEWFLAGS="$NEWFLAGS $e $ee"
22070 ;;
22071 *)
22072 NEWFLAGS="$NEWFLAGS $e"
22073 ;;
22074 esac
22075 ;;
22076 *)
22077 NEWFLAGS="$NEWFLAGS $e"
22078 ;;
22079 esac
22080 done
22081 BUILD_LDFLAGS="$NEWFLAGS"
22082
22083 NEWFLAGS=""
22084 for e in $DNS_GSSAPI_LIBS ; do
22085 case $e in
22086 -L*)
22087 case $host_os in
22088 netbsd*)
22089 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
22090 NEWFLAGS="$NEWFLAGS $e $ee"
22091 ;;
22092 freebsd*)
22093 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
22094 NEWFLAGS="$NEWFLAGS $e $ee"
22095 ;;
22096 solaris*)
22097 ee=`echo $e | sed -e 's%^-L%-R%'`
22098 NEWFLAGS="$NEWFLAGS $e $ee"
22099 ;;
22100 *)
22101 NEWFLAGS="$NEWFLAGS $e"
22102 ;;
22103 esac
22104 ;;
22105 *)
22106 NEWFLAGS="$NEWFLAGS $e"
22107 ;;
22108 esac
22109 done
22110 DNS_GSSAPI_LIBS="$NEWFLAGS"
22111
22112 NEWFLAGS=""
22113 for e in $ISC_OPENSSL_LIBS ; do
22114 case $e in
22115 -L*)
22116 case $host_os in
22117 netbsd*)
22118 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
22119 NEWFLAGS="$NEWFLAGS $e $ee"
22120 ;;
22121 freebsd*)
22122 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
22123 NEWFLAGS="$NEWFLAGS $e $ee"
22124 ;;
22125 solaris*)
22126 ee=`echo $e | sed -e 's%^-L%-R%'`
22127 NEWFLAGS="$NEWFLAGS $e $ee"
22128 ;;
22129 *)
22130 NEWFLAGS="$NEWFLAGS $e"
22131 ;;
22132 esac
22133 ;;
22134 *)
22135 NEWFLAGS="$NEWFLAGS $e"
22136 ;;
22137 esac
22138 done
22139 ISC_OPENSSL_LIBS="$NEWFLAGS"
22140
22141 NEWFLAGS=""
22142 for e in $DNS_CRYPTO_LIBS ; do
22143 case $e in
22144 -L*)
22145 case $host_os in
22146 netbsd*)
22147 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
22148 NEWFLAGS="$NEWFLAGS $e $ee"
22149 ;;
22150 freebsd*)
22151 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
22152 NEWFLAGS="$NEWFLAGS $e $ee"
22153 ;;
22154 solaris*)
22155 ee=`echo $e | sed -e 's%^-L%-R%'`
22156 NEWFLAGS="$NEWFLAGS $e $ee"
22157 ;;
22158 *)
22159 NEWFLAGS="$NEWFLAGS $e"
22160 ;;
22161 esac
22162 ;;
22163 *)
22164 NEWFLAGS="$NEWFLAGS $e"
22165 ;;
22166 esac
22167 done
22168 DNS_CRYPTO_LIBS="$NEWFLAGS"
22169
22170
22171
22172
22173
22174
22175
22176 #
22177 # Commands to run at the end of config.status.
22178 # Don't just put these into configure, it won't work right if somebody
22179 # runs config.status directly (which autoconf allows).
22180 #
22181
22182 ac_config_commands="$ac_config_commands chmod"
22183
22184
22185 #
22186 # Files to configure. These are listed here because we used to
22187 # specify them as arguments to AC_OUTPUT. It's (now) ok to move these
22188 # elsewhere if there's a good reason for doing so.
22189 #
22190
22191 ac_config_files="$ac_config_files make/Makefile make/mkdep Makefile bin/Makefile bin/check/Makefile bin/confgen/Makefile bin/confgen/unix/Makefile bin/delv/Makefile bin/dig/Makefile bin/dnssec/Makefile bin/named/Makefile bin/named/unix/Makefile bin/nsupdate/Makefile bin/pkcs11/Makefile bin/plugins/Makefile bin/python/Makefile bin/python/isc/Makefile bin/python/isc/utils.py bin/python/isc/tests/Makefile bin/python/dnssec-checkds.py bin/python/dnssec-coverage.py bin/python/dnssec-keymgr.py bin/python/isc/__init__.py bin/python/isc/checkds.py bin/python/isc/coverage.py bin/python/isc/dnskey.py bin/python/isc/eventlist.py bin/python/isc/keydict.py bin/python/isc/keyevent.py bin/python/isc/keymgr.py bin/python/isc/keyseries.py bin/python/isc/keyzone.py bin/python/isc/policy.py bin/python/isc/rndc.py bin/python/isc/tests/dnskey_test.py bin/python/isc/tests/policy_test.py bin/rndc/Makefile bin/tests/Makefile bin/tests/headerdep_test.sh bin/tests/optional/Makefile bin/tests/pkcs11/Makefile bin/tests/pkcs11/benchmarks/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/dlzexternal/Makefile bin/tests/system/dlzexternal/ns1/dlzs.conf bin/tests/system/dyndb/Makefile bin/tests/system/dyndb/driver/Makefile bin/tests/system/pipelined/Makefile bin/tests/system/rndc/Makefile bin/tests/system/rpz/Makefile bin/tests/system/rsabigexponent/Makefile bin/tests/system/tkey/Makefile bin/tests/virtual-time/Makefile bin/tests/virtual-time/conf.sh bin/tools/Makefile contrib/scripts/check-secure-delegation.pl contrib/scripts/zone-edit.sh doc/Makefile doc/arm/Makefile doc/arm/noteversion.xml doc/arm/pkgversion.xml doc/arm/releaseinfo.xml doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter doc/misc/Makefile doc/tex/Makefile doc/tex/armstyle.sty doc/xsl/Makefile doc/xsl/isc-docbook-chunk.xsl doc/xsl/isc-docbook-html.xsl doc/xsl/isc-manpage.xsl doc/xsl/isc-notes-html.xsl isc-config.sh lib/Makefile lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/dns/tests/Makefile lib/irs/Makefile lib/irs/include/Makefile lib/irs/include/irs/Makefile lib/irs/include/irs/netdb.h lib/irs/include/irs/platform.h lib/irs/tests/Makefile lib/isc/pthreads/Makefile lib/isc/pthreads/include/Makefile lib/isc/pthreads/include/isc/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/include/pk11/Makefile lib/isc/include/pkcs11/Makefile lib/isc/tests/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isc/unix/include/pkcs11/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccc/tests/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/isccfg/tests/Makefile lib/ns/Makefile lib/ns/include/Makefile lib/ns/include/ns/Makefile lib/ns/tests/Makefile lib/samples/Makefile lib/samples/Makefile-postinstall unit/unittest.sh fuzz/Makefile"
22192
22193
22194 #
22195 # Do it
22196 #
22197
22198 cat >confcache <<\_ACEOF
22199 # This file is a shell script that caches the results of configure
22200 # tests run on this system so they can be shared between configure
22201 # scripts and configure runs, see configure's option --config-cache.
22202 # It is not useful on other systems. If it contains results you don't
22203 # want to keep, you may remove or edit it.
22204 #
22205 # config.status only pays attention to the cache file if you give it
22206 # the --recheck option to rerun configure.
22207 #
22208 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22209 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22210 # following values.
22211
22212 _ACEOF
22213
22214 # The following way of writing the cache mishandles newlines in values,
22215 # but we know of no workaround that is simple, portable, and efficient.
22216 # So, we kill variables containing newlines.
22217 # Ultrix sh set writes to stderr and can't be redirected directly,
22218 # and sets the high bit in the cache file unless we assign to the vars.
22219 (
22220 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22221 eval ac_val=\$$ac_var
22222 case $ac_val in #(
22223 *${as_nl}*)
22224 case $ac_var in #(
22225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22226 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22227 esac
22228 case $ac_var in #(
22229 _ | IFS | as_nl) ;; #(
22230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22231 *) { eval $ac_var=; unset $ac_var;} ;;
22232 esac ;;
22233 esac
22234 done
22235
22236 (set) 2>&1 |
22237 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22238 *${as_nl}ac_space=\ *)
22239 # `set' does not quote correctly, so add quotes: double-quote
22240 # substitution turns \\\\ into \\, and sed turns \\ into \.
22241 sed -n \
22242 "s/'/'\\\\''/g;
22243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22244 ;; #(
22245 *)
22246 # `set' quotes correctly as required by POSIX, so do not add quotes.
22247 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22248 ;;
22249 esac |
22250 sort
22251 ) |
22252 sed '
22253 /^ac_cv_env_/b end
22254 t clear
22255 :clear
22256 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22257 t end
22258 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22259 :end' >>confcache
22260 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22261 if test -w "$cache_file"; then
22262 if test "x$cache_file" != "x/dev/null"; then
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22264 $as_echo "$as_me: updating cache $cache_file" >&6;}
22265 if test ! -f "$cache_file" || test -h "$cache_file"; then
22266 cat confcache >"$cache_file"
22267 else
22268 case $cache_file in #(
22269 */* | ?:*)
22270 mv -f confcache "$cache_file"$$ &&
22271 mv -f "$cache_file"$$ "$cache_file" ;; #(
22272 *)
22273 mv -f confcache "$cache_file" ;;
22274 esac
22275 fi
22276 fi
22277 else
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22279 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22280 fi
22281 fi
22282 rm -f confcache
22283
22284 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22285 # Let make expand exec_prefix.
22286 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22287
22288 DEFS=-DHAVE_CONFIG_H
22289
22290 ac_libobjs=
22291 ac_ltlibobjs=
22292 U=
22293 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22294 # 1. Remove the extension, and $U if already installed.
22295 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22296 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22297 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22298 # will be set to the directory where LIBOBJS objects are built.
22299 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22300 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22301 done
22302 LIBOBJS=$ac_libobjs
22303
22304 LTLIBOBJS=$ac_ltlibobjs
22305
22306
22307
22308
22309 : "${CONFIG_STATUS=./config.status}"
22310 ac_write_fail=0
22311 ac_clean_files_save=$ac_clean_files
22312 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22314 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22315 as_write_fail=0
22316 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22317 #! $SHELL
22318 # Generated by $as_me.
22319 # Run this file to recreate the current configuration.
22320 # Compiler output produced by configure, useful for debugging
22321 # configure, is in config.log if it exists.
22322
22323 debug=false
22324 ac_cs_recheck=false
22325 ac_cs_silent=false
22326
22327 SHELL=\${CONFIG_SHELL-$SHELL}
22328 export SHELL
22329 _ASEOF
22330 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22331 ## -------------------- ##
22332 ## M4sh Initialization. ##
22333 ## -------------------- ##
22334
22335 # Be more Bourne compatible
22336 DUALCASE=1; export DUALCASE # for MKS sh
22337 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22338 emulate sh
22339 NULLCMD=:
22340 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22341 # is contrary to our usage. Disable this feature.
22342 alias -g '${1+"$@"}'='"$@"'
22343 setopt NO_GLOB_SUBST
22344 else
22345 case `(set -o) 2>/dev/null` in #(
22346 *posix*) :
22347 set -o posix ;; #(
22348 *) :
22349 ;;
22350 esac
22351 fi
22352
22353
22354 as_nl='
22355 '
22356 export as_nl
22357 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22358 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22359 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22360 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22361 # Prefer a ksh shell builtin over an external printf program on Solaris,
22362 # but without wasting forks for bash or zsh.
22363 if test -z "$BASH_VERSION$ZSH_VERSION" \
22364 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22365 as_echo='print -r --'
22366 as_echo_n='print -rn --'
22367 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22368 as_echo='printf %s\n'
22369 as_echo_n='printf %s'
22370 else
22371 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22372 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22373 as_echo_n='/usr/ucb/echo -n'
22374 else
22375 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22376 as_echo_n_body='eval
22377 arg=$1;
22378 case $arg in #(
22379 *"$as_nl"*)
22380 expr "X$arg" : "X\\(.*\\)$as_nl";
22381 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22382 esac;
22383 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22384 '
22385 export as_echo_n_body
22386 as_echo_n='sh -c $as_echo_n_body as_echo'
22387 fi
22388 export as_echo_body
22389 as_echo='sh -c $as_echo_body as_echo'
22390 fi
22391
22392 # The user is always right.
22393 if test "${PATH_SEPARATOR+set}" != set; then
22394 PATH_SEPARATOR=:
22395 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22396 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22397 PATH_SEPARATOR=';'
22398 }
22399 fi
22400
22401
22402 # IFS
22403 # We need space, tab and new line, in precisely that order. Quoting is
22404 # there to prevent editors from complaining about space-tab.
22405 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22406 # splitting by setting IFS to empty value.)
22407 IFS=" "" $as_nl"
22408
22409 # Find who we are. Look in the path if we contain no directory separator.
22410 as_myself=
22411 case $0 in #((
22412 *[\\/]* ) as_myself=$0 ;;
22413 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22414 for as_dir in $PATH
22415 do
22416 IFS=$as_save_IFS
22417 test -z "$as_dir" && as_dir=.
22418 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22419 done
22420 IFS=$as_save_IFS
22421
22422 ;;
22423 esac
22424 # We did not find ourselves, most probably we were run as `sh COMMAND'
22425 # in which case we are not to be found in the path.
22426 if test "x$as_myself" = x; then
22427 as_myself=$0
22428 fi
22429 if test ! -f "$as_myself"; then
22430 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22431 exit 1
22432 fi
22433
22434 # Unset variables that we do not need and which cause bugs (e.g. in
22435 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22436 # suppresses any "Segmentation fault" message there. '((' could
22437 # trigger a bug in pdksh 5.2.14.
22438 for as_var in BASH_ENV ENV MAIL MAILPATH
22439 do eval test x\${$as_var+set} = xset \
22440 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22441 done
22442 PS1='$ '
22443 PS2='> '
22444 PS4='+ '
22445
22446 # NLS nuisances.
22447 LC_ALL=C
22448 export LC_ALL
22449 LANGUAGE=C
22450 export LANGUAGE
22451
22452 # CDPATH.
22453 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22454
22455
22456 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22457 # ----------------------------------------
22458 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22459 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22460 # script with STATUS, using 1 if that was 0.
22461 as_fn_error ()
22462 {
22463 as_status=$1; test $as_status -eq 0 && as_status=1
22464 if test "$4"; then
22465 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22466 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22467 fi
22468 $as_echo "$as_me: error: $2" >&2
22469 as_fn_exit $as_status
22470 } # as_fn_error
22471
22472
22473 # as_fn_set_status STATUS
22474 # -----------------------
22475 # Set $? to STATUS, without forking.
22476 as_fn_set_status ()
22477 {
22478 return $1
22479 } # as_fn_set_status
22480
22481 # as_fn_exit STATUS
22482 # -----------------
22483 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22484 as_fn_exit ()
22485 {
22486 set +e
22487 as_fn_set_status $1
22488 exit $1
22489 } # as_fn_exit
22490
22491 # as_fn_unset VAR
22492 # ---------------
22493 # Portably unset VAR.
22494 as_fn_unset ()
22495 {
22496 { eval $1=; unset $1;}
22497 }
22498 as_unset=as_fn_unset
22499 # as_fn_append VAR VALUE
22500 # ----------------------
22501 # Append the text in VALUE to the end of the definition contained in VAR. Take
22502 # advantage of any shell optimizations that allow amortized linear growth over
22503 # repeated appends, instead of the typical quadratic growth present in naive
22504 # implementations.
22505 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22506 eval 'as_fn_append ()
22507 {
22508 eval $1+=\$2
22509 }'
22510 else
22511 as_fn_append ()
22512 {
22513 eval $1=\$$1\$2
22514 }
22515 fi # as_fn_append
22516
22517 # as_fn_arith ARG...
22518 # ------------------
22519 # Perform arithmetic evaluation on the ARGs, and store the result in the
22520 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22521 # must be portable across $(()) and expr.
22522 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22523 eval 'as_fn_arith ()
22524 {
22525 as_val=$(( $* ))
22526 }'
22527 else
22528 as_fn_arith ()
22529 {
22530 as_val=`expr "$@" || test $? -eq 1`
22531 }
22532 fi # as_fn_arith
22533
22534
22535 if expr a : '\(a\)' >/dev/null 2>&1 &&
22536 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22537 as_expr=expr
22538 else
22539 as_expr=false
22540 fi
22541
22542 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22543 as_basename=basename
22544 else
22545 as_basename=false
22546 fi
22547
22548 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22549 as_dirname=dirname
22550 else
22551 as_dirname=false
22552 fi
22553
22554 as_me=`$as_basename -- "$0" ||
22555 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22556 X"$0" : 'X\(//\)$' \| \
22557 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22558 $as_echo X/"$0" |
22559 sed '/^.*\/\([^/][^/]*\)\/*$/{
22560 s//\1/
22561 q
22562 }
22563 /^X\/\(\/\/\)$/{
22564 s//\1/
22565 q
22566 }
22567 /^X\/\(\/\).*/{
22568 s//\1/
22569 q
22570 }
22571 s/.*/./; q'`
22572
22573 # Avoid depending upon Character Ranges.
22574 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22575 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22576 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22577 as_cr_digits='0123456789'
22578 as_cr_alnum=$as_cr_Letters$as_cr_digits
22579
22580 ECHO_C= ECHO_N= ECHO_T=
22581 case `echo -n x` in #(((((
22582 -n*)
22583 case `echo 'xy\c'` in
22584 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22585 xy) ECHO_C='\c';;
22586 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22587 ECHO_T=' ';;
22588 esac;;
22589 *)
22590 ECHO_N='-n';;
22591 esac
22592
22593 rm -f conf$$ conf$$.exe conf$$.file
22594 if test -d conf$$.dir; then
22595 rm -f conf$$.dir/conf$$.file
22596 else
22597 rm -f conf$$.dir
22598 mkdir conf$$.dir 2>/dev/null
22599 fi
22600 if (echo >conf$$.file) 2>/dev/null; then
22601 if ln -s conf$$.file conf$$ 2>/dev/null; then
22602 as_ln_s='ln -s'
22603 # ... but there are two gotchas:
22604 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22605 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22606 # In both cases, we have to default to `cp -pR'.
22607 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22608 as_ln_s='cp -pR'
22609 elif ln conf$$.file conf$$ 2>/dev/null; then
22610 as_ln_s=ln
22611 else
22612 as_ln_s='cp -pR'
22613 fi
22614 else
22615 as_ln_s='cp -pR'
22616 fi
22617 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22618 rmdir conf$$.dir 2>/dev/null
22619
22620
22621 # as_fn_mkdir_p
22622 # -------------
22623 # Create "$as_dir" as a directory, including parents if necessary.
22624 as_fn_mkdir_p ()
22625 {
22626
22627 case $as_dir in #(
22628 -*) as_dir=./$as_dir;;
22629 esac
22630 test -d "$as_dir" || eval $as_mkdir_p || {
22631 as_dirs=
22632 while :; do
22633 case $as_dir in #(
22634 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22635 *) as_qdir=$as_dir;;
22636 esac
22637 as_dirs="'$as_qdir' $as_dirs"
22638 as_dir=`$as_dirname -- "$as_dir" ||
22639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22640 X"$as_dir" : 'X\(//\)[^/]' \| \
22641 X"$as_dir" : 'X\(//\)$' \| \
22642 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22643 $as_echo X"$as_dir" |
22644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22645 s//\1/
22646 q
22647 }
22648 /^X\(\/\/\)[^/].*/{
22649 s//\1/
22650 q
22651 }
22652 /^X\(\/\/\)$/{
22653 s//\1/
22654 q
22655 }
22656 /^X\(\/\).*/{
22657 s//\1/
22658 q
22659 }
22660 s/.*/./; q'`
22661 test -d "$as_dir" && break
22662 done
22663 test -z "$as_dirs" || eval "mkdir $as_dirs"
22664 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22665
22666
22667 } # as_fn_mkdir_p
22668 if mkdir -p . 2>/dev/null; then
22669 as_mkdir_p='mkdir -p "$as_dir"'
22670 else
22671 test -d ./-p && rmdir ./-p
22672 as_mkdir_p=false
22673 fi
22674
22675
22676 # as_fn_executable_p FILE
22677 # -----------------------
22678 # Test if FILE is an executable regular file.
22679 as_fn_executable_p ()
22680 {
22681 test -f "$1" && test -x "$1"
22682 } # as_fn_executable_p
22683 as_test_x='test -x'
22684 as_executable_p=as_fn_executable_p
22685
22686 # Sed expression to map a string onto a valid CPP name.
22687 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22688
22689 # Sed expression to map a string onto a valid variable name.
22690 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22691
22692
22693 exec 6>&1
22694 ## ----------------------------------- ##
22695 ## Main body of $CONFIG_STATUS script. ##
22696 ## ----------------------------------- ##
22697 _ASEOF
22698 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22699
22700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22701 # Save the log message, to keep $0 and so on meaningful, and to
22702 # report actual input values of CONFIG_FILES etc. instead of their
22703 # values after options handling.
22704 ac_log="
22705 This file was extended by BIND $as_me 9.14, which was
22706 generated by GNU Autoconf 2.69. Invocation command line was
22707
22708 CONFIG_FILES = $CONFIG_FILES
22709 CONFIG_HEADERS = $CONFIG_HEADERS
22710 CONFIG_LINKS = $CONFIG_LINKS
22711 CONFIG_COMMANDS = $CONFIG_COMMANDS
22712 $ $0 $@
22713
22714 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22715 "
22716
22717 _ACEOF
22718
22719 case $ac_config_files in *"
22720 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22721 esac
22722
22723 case $ac_config_headers in *"
22724 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22725 esac
22726
22727
22728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22729 # Files that config.status was made for.
22730 config_files="$ac_config_files"
22731 config_headers="$ac_config_headers"
22732 config_commands="$ac_config_commands"
22733
22734 _ACEOF
22735
22736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22737 ac_cs_usage="\
22738 \`$as_me' instantiates files and other configuration actions
22739 from templates according to the current configuration. Unless the files
22740 and actions are specified as TAGs, all are instantiated by default.
22741
22742 Usage: $0 [OPTION]... [TAG]...
22743
22744 -h, --help print this help, then exit
22745 -V, --version print version number and configuration settings, then exit
22746 --config print configuration, then exit
22747 -q, --quiet, --silent
22748 do not print progress messages
22749 -d, --debug don't remove temporary files
22750 --recheck update $as_me by reconfiguring in the same conditions
22751 --file=FILE[:TEMPLATE]
22752 instantiate the configuration file FILE
22753 --header=FILE[:TEMPLATE]
22754 instantiate the configuration header FILE
22755
22756 Configuration files:
22757 $config_files
22758
22759 Configuration headers:
22760 $config_headers
22761
22762 Configuration commands:
22763 $config_commands
22764
22765 Report bugs to <info@isc.org>.
22766 BIND home page: <https://www.isc.org/downloads/BIND/>."
22767
22768 _ACEOF
22769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22770 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22771 ac_cs_version="\\
22772 BIND config.status 9.14
22773 configured by $0, generated by GNU Autoconf 2.69,
22774 with options \\"\$ac_cs_config\\"
22775
22776 Copyright (C) 2012 Free Software Foundation, Inc.
22777 This config.status script is free software; the Free Software Foundation
22778 gives unlimited permission to copy, distribute and modify it."
22779
22780 ac_pwd='$ac_pwd'
22781 srcdir='$srcdir'
22782 INSTALL='$INSTALL'
22783 AWK='$AWK'
22784 test -n "\$AWK" || AWK=awk
22785 _ACEOF
22786
22787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22788 # The default lists apply if the user does not specify any file.
22789 ac_need_defaults=:
22790 while test $# != 0
22791 do
22792 case $1 in
22793 --*=?*)
22794 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22795 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22796 ac_shift=:
22797 ;;
22798 --*=)
22799 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22800 ac_optarg=
22801 ac_shift=:
22802 ;;
22803 *)
22804 ac_option=$1
22805 ac_optarg=$2
22806 ac_shift=shift
22807 ;;
22808 esac
22809
22810 case $ac_option in
22811 # Handling of the options.
22812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22813 ac_cs_recheck=: ;;
22814 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22815 $as_echo "$ac_cs_version"; exit ;;
22816 --config | --confi | --conf | --con | --co | --c )
22817 $as_echo "$ac_cs_config"; exit ;;
22818 --debug | --debu | --deb | --de | --d | -d )
22819 debug=: ;;
22820 --file | --fil | --fi | --f )
22821 $ac_shift
22822 case $ac_optarg in
22823 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22824 '') as_fn_error $? "missing file argument" ;;
22825 esac
22826 as_fn_append CONFIG_FILES " '$ac_optarg'"
22827 ac_need_defaults=false;;
22828 --header | --heade | --head | --hea )
22829 $ac_shift
22830 case $ac_optarg in
22831 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22832 esac
22833 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22834 ac_need_defaults=false;;
22835 --he | --h)
22836 # Conflict between --help and --header
22837 as_fn_error $? "ambiguous option: \`$1'
22838 Try \`$0 --help' for more information.";;
22839 --help | --hel | -h )
22840 $as_echo "$ac_cs_usage"; exit ;;
22841 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22842 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22843 ac_cs_silent=: ;;
22844
22845 # This is an error.
22846 -*) as_fn_error $? "unrecognized option: \`$1'
22847 Try \`$0 --help' for more information." ;;
22848
22849 *) as_fn_append ac_config_targets " $1"
22850 ac_need_defaults=false ;;
22851
22852 esac
22853 shift
22854 done
22855
22856 ac_configure_extra_args=
22857
22858 if $ac_cs_silent; then
22859 exec 6>/dev/null
22860 ac_configure_extra_args="$ac_configure_extra_args --silent"
22861 fi
22862
22863 _ACEOF
22864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22865 if \$ac_cs_recheck; then
22866 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22867 shift
22868 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22869 CONFIG_SHELL='$SHELL'
22870 export CONFIG_SHELL
22871 exec "\$@"
22872 fi
22873
22874 _ACEOF
22875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22876 exec 5>>config.log
22877 {
22878 echo
22879 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22880 ## Running $as_me. ##
22881 _ASBOX
22882 $as_echo "$ac_log"
22883 } >&5
22884
22885 _ACEOF
22886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22887 #
22888 # INIT-COMMANDS
22889 #
22890
22891
22892 # The HP-UX ksh and POSIX shell print the target directory to stdout
22893 # if CDPATH is set.
22894 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22895
22896 sed_quote_subst='$sed_quote_subst'
22897 double_quote_subst='$double_quote_subst'
22898 delay_variable_subst='$delay_variable_subst'
22899 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22900 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22901 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22902 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22903 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22904 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22905 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22906 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22907 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22908 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22909 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22910 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22911 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22912 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22913 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22914 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22915 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22916 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22917 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22918 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22919 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22920 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22921 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22922 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22923 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22924 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22925 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22926 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22927 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22928 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22929 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22930 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22931 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22932 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22933 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22934 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22935 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22936 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22937 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22938 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22939 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22940 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22941 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22942 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22943 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22944 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22945 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22946 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22947 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22948 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22949 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22950 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22951 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22952 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22953 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22954 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22955 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22956 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22957 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
22958 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22959 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22960 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22961 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22962 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22963 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22964 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22965 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22966 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22967 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22968 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22969 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22970 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22971 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22972 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22973 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22974 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22975 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22976 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22977 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22978 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22979 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22980 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22981 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22982 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22983 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22984 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22985 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22986 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22987 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22988 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22989 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22990 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22991 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22992 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22993 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22994 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22995 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22996 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22997 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22998 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22999 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23000 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23001 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23002 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23003 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23004 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23005 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23006 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23007 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23008 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23009 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23010 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23011 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23012 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23013 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23014 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23015 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23016 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23017 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23018 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23019 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23020 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23021 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23022 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23023 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23024 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23025 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23026 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23027 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23028 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23029 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23030 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23031 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23032 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23033 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23034
23035 LTCC='$LTCC'
23036 LTCFLAGS='$LTCFLAGS'
23037 compiler='$compiler_DEFAULT'
23038
23039 # A function that is used when there is no print builtin or printf.
23040 func_fallback_echo ()
23041 {
23042 eval 'cat <<_LTECHO_EOF
23043 \$1
23044 _LTECHO_EOF'
23045 }
23046
23047 # Quote evaled strings.
23048 for var in SHELL \
23049 ECHO \
23050 PATH_SEPARATOR \
23051 SED \
23052 GREP \
23053 EGREP \
23054 FGREP \
23055 LD \
23056 NM \
23057 LN_S \
23058 lt_SP2NL \
23059 lt_NL2SP \
23060 reload_flag \
23061 OBJDUMP \
23062 deplibs_check_method \
23063 file_magic_cmd \
23064 file_magic_glob \
23065 want_nocaseglob \
23066 DLLTOOL \
23067 sharedlib_from_linklib_cmd \
23068 AR \
23069 AR_FLAGS \
23070 archiver_list_spec \
23071 STRIP \
23072 RANLIB \
23073 CC \
23074 CFLAGS \
23075 compiler \
23076 lt_cv_sys_global_symbol_pipe \
23077 lt_cv_sys_global_symbol_to_cdecl \
23078 lt_cv_sys_global_symbol_to_import \
23079 lt_cv_sys_global_symbol_to_c_name_address \
23080 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23081 lt_cv_nm_interface \
23082 nm_file_list_spec \
23083 lt_cv_truncate_bin \
23084 lt_prog_compiler_no_builtin_flag \
23085 lt_prog_compiler_pic \
23086 lt_prog_compiler_wl \
23087 lt_prog_compiler_static \
23088 lt_cv_prog_compiler_c_o \
23089 need_locks \
23090 MANIFEST_TOOL \
23091 DSYMUTIL \
23092 NMEDIT \
23093 LIPO \
23094 OTOOL \
23095 OTOOL64 \
23096 shrext_cmds \
23097 export_dynamic_flag_spec \
23098 whole_archive_flag_spec \
23099 compiler_needs_object \
23100 with_gnu_ld \
23101 allow_undefined_flag \
23102 no_undefined_flag \
23103 hardcode_libdir_flag_spec \
23104 hardcode_libdir_separator \
23105 exclude_expsyms \
23106 include_expsyms \
23107 file_list_spec \
23108 variables_saved_for_relink \
23109 libname_spec \
23110 library_names_spec \
23111 soname_spec \
23112 install_override_mode \
23113 finish_eval \
23114 old_striplib \
23115 striplib; do
23116 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23117 *[\\\\\\\`\\"\\\$]*)
23118 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23119 ;;
23120 *)
23121 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23122 ;;
23123 esac
23124 done
23125
23126 # Double-quote double-evaled strings.
23127 for var in reload_cmds \
23128 old_postinstall_cmds \
23129 old_postuninstall_cmds \
23130 old_archive_cmds \
23131 extract_expsyms_cmds \
23132 old_archive_from_new_cmds \
23133 old_archive_from_expsyms_cmds \
23134 archive_cmds \
23135 archive_expsym_cmds \
23136 module_cmds \
23137 module_expsym_cmds \
23138 export_symbols_cmds \
23139 prelink_cmds \
23140 postlink_cmds \
23141 postinstall_cmds \
23142 postuninstall_cmds \
23143 finish_cmds \
23144 sys_lib_search_path_spec \
23145 configure_time_dlsearch_path \
23146 configure_time_lt_sys_library_path; do
23147 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23148 *[\\\\\\\`\\"\\\$]*)
23149 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23150 ;;
23151 *)
23152 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23153 ;;
23154 esac
23155 done
23156
23157 ac_aux_dir='$ac_aux_dir'
23158
23159 # See if we are running on zsh, and set the options that allow our
23160 # commands through without removal of \ escapes INIT.
23161 if test -n "\${ZSH_VERSION+set}"; then
23162 setopt NO_GLOB_SUBST
23163 fi
23164
23165
23166 PACKAGE='$PACKAGE'
23167 VERSION='$VERSION'
23168 RM='$RM'
23169 ofile='$ofile'
23170
23171
23172
23173
23174 _ACEOF
23175
23176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23177
23178 # Handling of arguments.
23179 for ac_config_target in $ac_config_targets
23180 do
23181 case $ac_config_target in
23182 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23183 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23184 "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
23185 "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
23186 "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
23187 "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
23188 "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
23189 "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
23190 "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
23191 "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
23192 "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
23193 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23194 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
23195 "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
23196 "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
23197 "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
23198 "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
23199 "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
23200 "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
23201 "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
23202 "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
23203 "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
23204 "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
23205 "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
23206 "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
23207 "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
23208 "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
23209 "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
23210 "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
23211 "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
23212 "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
23213 "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
23214 "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
23215 "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
23216 "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
23217 "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
23218 "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
23219 "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
23220 "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
23221 "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
23222 "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
23223 "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
23224 "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
23225 "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
23226 "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
23227 "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
23228 "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
23229 "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
23230 "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
23231 "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
23232 "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
23233 "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
23234 "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
23235 "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
23236 "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
23237 "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
23238 "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
23239 "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
23240 "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
23241 "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
23242 "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
23243 "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
23244 "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
23245 "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
23246 "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
23247 "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
23248 "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
23249 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23250 "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
23251 "doc/arm/noteversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/noteversion.xml" ;;
23252 "doc/arm/pkgversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/pkgversion.xml" ;;
23253 "doc/arm/releaseinfo.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/releaseinfo.xml" ;;
23254 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
23255 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
23256 "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
23257 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23258 "doc/tex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex/Makefile" ;;
23259 "doc/tex/armstyle.sty") CONFIG_FILES="$CONFIG_FILES doc/tex/armstyle.sty" ;;
23260 "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
23261 "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
23262 "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
23263 "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
23264 "doc/xsl/isc-notes-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;;
23265 "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
23266 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23267 "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
23268 "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
23269 "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
23270 "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
23271 "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
23272 "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
23273 "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
23274 "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
23275 "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
23276 "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
23277 "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
23278 "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
23279 "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
23280 "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
23281 "lib/isc/pthreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/Makefile" ;;
23282 "lib/isc/pthreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/Makefile" ;;
23283 "lib/isc/pthreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/isc/Makefile" ;;
23284 "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
23285 "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
23286 "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
23287 "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
23288 "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
23289 "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
23290 "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
23291 "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
23292 "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
23293 "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
23294 "lib/isc/unix/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/pkcs11/Makefile" ;;
23295 "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
23296 "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
23297 "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
23298 "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
23299 "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
23300 "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
23301 "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
23302 "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
23303 "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
23304 "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
23305 "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
23306 "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
23307 "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
23308 "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
23309 "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
23310 "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
23311
23312 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23313 esac
23314 done
23315
23316
23317 # If the user did not use the arguments to specify the items to instantiate,
23318 # then the envvar interface is used. Set only those that are not.
23319 # We use the long form for the default assignment because of an extremely
23320 # bizarre bug on SunOS 4.1.3.
23321 if $ac_need_defaults; then
23322 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23323 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23324 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23325 fi
23326
23327 # Have a temporary directory for convenience. Make it in the build tree
23328 # simply because there is no reason against having it here, and in addition,
23329 # creating and moving files from /tmp can sometimes cause problems.
23330 # Hook for its removal unless debugging.
23331 # Note that there is a small window in which the directory will not be cleaned:
23332 # after its creation but before its name has been assigned to `$tmp'.
23333 $debug ||
23334 {
23335 tmp= ac_tmp=
23336 trap 'exit_status=$?
23337 : "${ac_tmp:=$tmp}"
23338 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23339 ' 0
23340 trap 'as_fn_exit 1' 1 2 13 15
23341 }
23342 # Create a (secure) tmp directory for tmp files.
23343
23344 {
23345 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23346 test -d "$tmp"
23347 } ||
23348 {
23349 tmp=./conf$$-$RANDOM
23350 (umask 077 && mkdir "$tmp")
23351 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23352 ac_tmp=$tmp
23353
23354 # Set up the scripts for CONFIG_FILES section.
23355 # No need to generate them if there are no CONFIG_FILES.
23356 # This happens for instance with `./config.status config.h'.
23357 if test -n "$CONFIG_FILES"; then
23358
23359 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23360 ac_cs_awk_getline=:
23361 ac_cs_awk_pipe_init=
23362 ac_cs_awk_read_file='
23363 while ((getline aline < (F[key])) > 0)
23364 print(aline)
23365 close(F[key])'
23366 ac_cs_awk_pipe_fini=
23367 else
23368 ac_cs_awk_getline=false
23369 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23370 ac_cs_awk_read_file='
23371 print "|#_!!_#|"
23372 print "cat " F[key] " &&"
23373 '$ac_cs_awk_pipe_init
23374 # The final `:' finishes the AND list.
23375 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23376 fi
23377 ac_cr=`echo X | tr X '\015'`
23378 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23379 # But we know of no other shell where ac_cr would be empty at this
23380 # point, so we can use a bashism as a fallback.
23381 if test "x$ac_cr" = x; then
23382 eval ac_cr=\$\'\\r\'
23383 fi
23384 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23385 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23386 ac_cs_awk_cr='\\r'
23387 else
23388 ac_cs_awk_cr=$ac_cr
23389 fi
23390
23391 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23392 _ACEOF
23393
23394 # Create commands to substitute file output variables.
23395 {
23396 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23397 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
23398 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
23399 echo "_ACAWK" &&
23400 echo "_ACEOF"
23401 } >conf$$files.sh &&
23402 . ./conf$$files.sh ||
23403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23404 rm -f conf$$files.sh
23405
23406 {
23407 echo "cat >conf$$subs.awk <<_ACEOF" &&
23408 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23409 echo "_ACEOF"
23410 } >conf$$subs.sh ||
23411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23412 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23413 ac_delim='%!_!# '
23414 for ac_last_try in false false false false false :; do
23415 . ./conf$$subs.sh ||
23416 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23417
23418 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23419 if test $ac_delim_n = $ac_delim_num; then
23420 break
23421 elif $ac_last_try; then
23422 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23423 else
23424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23425 fi
23426 done
23427 rm -f conf$$subs.sh
23428
23429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23430 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23431 _ACEOF
23432 sed -n '
23433 h
23434 s/^/S["/; s/!.*/"]=/
23435 p
23436 g
23437 s/^[^!]*!//
23438 :repl
23439 t repl
23440 s/'"$ac_delim"'$//
23441 t delim
23442 :nl
23443 h
23444 s/\(.\{148\}\)..*/\1/
23445 t more1
23446 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23447 p
23448 n
23449 b repl
23450 :more1
23451 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23452 p
23453 g
23454 s/.\{148\}//
23455 t nl
23456 :delim
23457 h
23458 s/\(.\{148\}\)..*/\1/
23459 t more2
23460 s/["\\]/\\&/g; s/^/"/; s/$/"/
23461 p
23462 b
23463 :more2
23464 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23465 p
23466 g
23467 s/.\{148\}//
23468 t delim
23469 ' <conf$$subs.awk | sed '
23470 /^[^""]/{
23471 N
23472 s/\n//
23473 }
23474 ' >>$CONFIG_STATUS || ac_write_fail=1
23475 rm -f conf$$subs.awk
23476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23477 _ACAWK
23478 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23479 for (key in S) S_is_set[key] = 1
23480 FS = ""
23481 \$ac_cs_awk_pipe_init
23482 }
23483 {
23484 line = $ 0
23485 nfields = split(line, field, "@")
23486 substed = 0
23487 len = length(field[1])
23488 for (i = 2; i < nfields; i++) {
23489 key = field[i]
23490 keylen = length(key)
23491 if (S_is_set[key]) {
23492 value = S[key]
23493 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23494 len += length(value) + length(field[++i])
23495 substed = 1
23496 } else
23497 len += 1 + keylen
23498 }
23499 if (nfields == 3 && !substed) {
23500 key = field[2]
23501 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23502 \$ac_cs_awk_read_file
23503 next
23504 }
23505 }
23506 print line
23507 }
23508 \$ac_cs_awk_pipe_fini
23509 _ACAWK
23510 _ACEOF
23511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23512 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23513 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23514 else
23515 cat
23516 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23517 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23518 _ACEOF
23519
23520 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23521 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23522 # trailing colons and then remove the whole line if VPATH becomes empty
23523 # (actually we leave an empty line to preserve line numbers).
23524 if test "x$srcdir" = x.; then
23525 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23526 h
23527 s///
23528 s/^/:/
23529 s/[ ]*$/:/
23530 s/:\$(srcdir):/:/g
23531 s/:\${srcdir}:/:/g
23532 s/:@srcdir@:/:/g
23533 s/^:*//
23534 s/:*$//
23535 x
23536 s/\(=[ ]*\).*/\1/
23537 G
23538 s/\n//
23539 s/^[^=]*=[ ]*$//
23540 }'
23541 fi
23542
23543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23544 fi # test -n "$CONFIG_FILES"
23545
23546 # Set up the scripts for CONFIG_HEADERS section.
23547 # No need to generate them if there are no CONFIG_HEADERS.
23548 # This happens for instance with `./config.status Makefile'.
23549 if test -n "$CONFIG_HEADERS"; then
23550 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23551 BEGIN {
23552 _ACEOF
23553
23554 # Transform confdefs.h into an awk script `defines.awk', embedded as
23555 # here-document in config.status, that substitutes the proper values into
23556 # config.h.in to produce config.h.
23557
23558 # Create a delimiter string that does not exist in confdefs.h, to ease
23559 # handling of long lines.
23560 ac_delim='%!_!# '
23561 for ac_last_try in false false :; do
23562 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23563 if test -z "$ac_tt"; then
23564 break
23565 elif $ac_last_try; then
23566 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23567 else
23568 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23569 fi
23570 done
23571
23572 # For the awk script, D is an array of macro values keyed by name,
23573 # likewise P contains macro parameters if any. Preserve backslash
23574 # newline sequences.
23575
23576 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23577 sed -n '
23578 s/.\{148\}/&'"$ac_delim"'/g
23579 t rset
23580 :rset
23581 s/^[ ]*#[ ]*define[ ][ ]*/ /
23582 t def
23583 d
23584 :def
23585 s/\\$//
23586 t bsnl
23587 s/["\\]/\\&/g
23588 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23589 D["\1"]=" \3"/p
23590 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23591 d
23592 :bsnl
23593 s/["\\]/\\&/g
23594 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23595 D["\1"]=" \3\\\\\\n"\\/p
23596 t cont
23597 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23598 t cont
23599 d
23600 :cont
23601 n
23602 s/.\{148\}/&'"$ac_delim"'/g
23603 t clear
23604 :clear
23605 s/\\$//
23606 t bsnlc
23607 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23608 d
23609 :bsnlc
23610 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23611 b cont
23612 ' <confdefs.h | sed '
23613 s/'"$ac_delim"'/"\\\
23614 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23615
23616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23617 for (key in D) D_is_set[key] = 1
23618 FS = ""
23619 }
23620 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23621 line = \$ 0
23622 split(line, arg, " ")
23623 if (arg[1] == "#") {
23624 defundef = arg[2]
23625 mac1 = arg[3]
23626 } else {
23627 defundef = substr(arg[1], 2)
23628 mac1 = arg[2]
23629 }
23630 split(mac1, mac2, "(") #)
23631 macro = mac2[1]
23632 prefix = substr(line, 1, index(line, defundef) - 1)
23633 if (D_is_set[macro]) {
23634 # Preserve the white space surrounding the "#".
23635 print prefix "define", macro P[macro] D[macro]
23636 next
23637 } else {
23638 # Replace #undef with comments. This is necessary, for example,
23639 # in the case of _POSIX_SOURCE, which is predefined and required
23640 # on some systems where configure will not decide to define it.
23641 if (defundef == "undef") {
23642 print "/*", prefix defundef, macro, "*/"
23643 next
23644 }
23645 }
23646 }
23647 { print }
23648 _ACAWK
23649 _ACEOF
23650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23651 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23652 fi # test -n "$CONFIG_HEADERS"
23653
23654
23655 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23656 shift
23657 for ac_tag
23658 do
23659 case $ac_tag in
23660 :[FHLC]) ac_mode=$ac_tag; continue;;
23661 esac
23662 case $ac_mode$ac_tag in
23663 :[FHL]*:*);;
23664 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23665 :[FH]-) ac_tag=-:-;;
23666 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23667 esac
23668 ac_save_IFS=$IFS
23669 IFS=:
23670 set x $ac_tag
23671 IFS=$ac_save_IFS
23672 shift
23673 ac_file=$1
23674 shift
23675
23676 case $ac_mode in
23677 :L) ac_source=$1;;
23678 :[FH])
23679 ac_file_inputs=
23680 for ac_f
23681 do
23682 case $ac_f in
23683 -) ac_f="$ac_tmp/stdin";;
23684 *) # Look for the file first in the build tree, then in the source tree
23685 # (if the path is not absolute). The absolute path cannot be DOS-style,
23686 # because $ac_f cannot contain `:'.
23687 test -f "$ac_f" ||
23688 case $ac_f in
23689 [\\/$]*) false;;
23690 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23691 esac ||
23692 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23693 esac
23694 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23695 as_fn_append ac_file_inputs " '$ac_f'"
23696 done
23697
23698 # Let's still pretend it is `configure' which instantiates (i.e., don't
23699 # use $as_me), people would be surprised to read:
23700 # /* config.h. Generated by config.status. */
23701 configure_input='Generated from '`
23702 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23703 `' by configure.'
23704 if test x"$ac_file" != x-; then
23705 configure_input="$ac_file. $configure_input"
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23707 $as_echo "$as_me: creating $ac_file" >&6;}
23708 fi
23709 # Neutralize special characters interpreted by sed in replacement strings.
23710 case $configure_input in #(
23711 *\&* | *\|* | *\\* )
23712 ac_sed_conf_input=`$as_echo "$configure_input" |
23713 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23714 *) ac_sed_conf_input=$configure_input;;
23715 esac
23716
23717 case $ac_tag in
23718 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23719 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23720 esac
23721 ;;
23722 esac
23723
23724 ac_dir=`$as_dirname -- "$ac_file" ||
23725 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23726 X"$ac_file" : 'X\(//\)[^/]' \| \
23727 X"$ac_file" : 'X\(//\)$' \| \
23728 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23729 $as_echo X"$ac_file" |
23730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23731 s//\1/
23732 q
23733 }
23734 /^X\(\/\/\)[^/].*/{
23735 s//\1/
23736 q
23737 }
23738 /^X\(\/\/\)$/{
23739 s//\1/
23740 q
23741 }
23742 /^X\(\/\).*/{
23743 s//\1/
23744 q
23745 }
23746 s/.*/./; q'`
23747 as_dir="$ac_dir"; as_fn_mkdir_p
23748 ac_builddir=.
23749
23750 case "$ac_dir" in
23751 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23752 *)
23753 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23754 # A ".." for each directory in $ac_dir_suffix.
23755 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23756 case $ac_top_builddir_sub in
23757 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23758 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23759 esac ;;
23760 esac
23761 ac_abs_top_builddir=$ac_pwd
23762 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23763 # for backward compatibility:
23764 ac_top_builddir=$ac_top_build_prefix
23765
23766 case $srcdir in
23767 .) # We are building in place.
23768 ac_srcdir=.
23769 ac_top_srcdir=$ac_top_builddir_sub
23770 ac_abs_top_srcdir=$ac_pwd ;;
23771 [\\/]* | ?:[\\/]* ) # Absolute name.
23772 ac_srcdir=$srcdir$ac_dir_suffix;
23773 ac_top_srcdir=$srcdir
23774 ac_abs_top_srcdir=$srcdir ;;
23775 *) # Relative name.
23776 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23777 ac_top_srcdir=$ac_top_build_prefix$srcdir
23778 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23779 esac
23780 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23781
23782
23783 case $ac_mode in
23784 :F)
23785 #
23786 # CONFIG_FILE
23787 #
23788
23789 case $INSTALL in
23790 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23791 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23792 esac
23793 _ACEOF
23794
23795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23796 # If the template does not know about datarootdir, expand it.
23797 # FIXME: This hack should be removed a few years after 2.60.
23798 ac_datarootdir_hack=; ac_datarootdir_seen=
23799 ac_sed_dataroot='
23800 /datarootdir/ {
23801 p
23802 q
23803 }
23804 /@datadir@/p
23805 /@docdir@/p
23806 /@infodir@/p
23807 /@localedir@/p
23808 /@mandir@/p'
23809 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23810 *datarootdir*) ac_datarootdir_seen=yes;;
23811 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23813 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23814 _ACEOF
23815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23816 ac_datarootdir_hack='
23817 s&@datadir@&$datadir&g
23818 s&@docdir@&$docdir&g
23819 s&@infodir@&$infodir&g
23820 s&@localedir@&$localedir&g
23821 s&@mandir@&$mandir&g
23822 s&\\\${datarootdir}&$datarootdir&g' ;;
23823 esac
23824 _ACEOF
23825
23826 # Neutralize VPATH when `$srcdir' = `.'.
23827 # Shell code in configure.ac might set extrasub.
23828 # FIXME: do we really want to maintain this feature?
23829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23830 ac_sed_extra="$ac_vpsub
23831 $extrasub
23832 _ACEOF
23833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23834 :t
23835 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23836 s|@configure_input@|$ac_sed_conf_input|;t t
23837 s&@top_builddir@&$ac_top_builddir_sub&;t t
23838 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23839 s&@srcdir@&$ac_srcdir&;t t
23840 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23841 s&@top_srcdir@&$ac_top_srcdir&;t t
23842 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23843 s&@builddir@&$ac_builddir&;t t
23844 s&@abs_builddir@&$ac_abs_builddir&;t t
23845 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23846 s&@INSTALL@&$ac_INSTALL&;t t
23847 $ac_datarootdir_hack
23848 "
23849 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23850 if $ac_cs_awk_getline; then
23851 $AWK -f "$ac_tmp/subs.awk"
23852 else
23853 $AWK -f "$ac_tmp/subs.awk" | $SHELL
23854 fi \
23855 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23856
23857 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23858 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23859 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23860 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23862 which seems to be undefined. Please make sure it is defined" >&5
23863 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23864 which seems to be undefined. Please make sure it is defined" >&2;}
23865
23866 rm -f "$ac_tmp/stdin"
23867 case $ac_file in
23868 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23869 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23870 esac \
23871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23872 ;;
23873 :H)
23874 #
23875 # CONFIG_HEADER
23876 #
23877 if test x"$ac_file" != x-; then
23878 {
23879 $as_echo "/* $configure_input */" \
23880 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23881 } >"$ac_tmp/config.h" \
23882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23883 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23885 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23886 else
23887 rm -f "$ac_file"
23888 mv "$ac_tmp/config.h" "$ac_file" \
23889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23890 fi
23891 else
23892 $as_echo "/* $configure_input */" \
23893 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23894 || as_fn_error $? "could not create -" "$LINENO" 5
23895 fi
23896 ;;
23897
23898 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23899 $as_echo "$as_me: executing $ac_file commands" >&6;}
23900 ;;
23901 esac
23902
23903
23904 case $ac_file$ac_mode in
23905 "libtool":C)
23906
23907 # See if we are running on zsh, and set the options that allow our
23908 # commands through without removal of \ escapes.
23909 if test -n "${ZSH_VERSION+set}"; then
23910 setopt NO_GLOB_SUBST
23911 fi
23912
23913 cfgfile=${ofile}T
23914 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23915 $RM "$cfgfile"
23916
23917 cat <<_LT_EOF >> "$cfgfile"
23918 #! $SHELL
23919 # Generated automatically by $as_me ($PACKAGE) $VERSION
23920 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23921 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23922
23923 # Provide generalized library-building support services.
23924 # Written by Gordon Matzigkeit, 1996
23925
23926 # Copyright (C) 2014 Free Software Foundation, Inc.
23927 # This is free software; see the source for copying conditions. There is NO
23928 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23929
23930 # GNU Libtool is free software; you can redistribute it and/or modify
23931 # it under the terms of the GNU General Public License as published by
23932 # the Free Software Foundation; either version 2 of of the License, or
23933 # (at your option) any later version.
23934 #
23935 # As a special exception to the GNU General Public License, if you
23936 # distribute this file as part of a program or library that is built
23937 # using GNU Libtool, you may include this file under the same
23938 # distribution terms that you use for the rest of that program.
23939 #
23940 # GNU Libtool is distributed in the hope that it will be useful, but
23941 # WITHOUT ANY WARRANTY; without even the implied warranty of
23942 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23943 # GNU General Public License for more details.
23944 #
23945 # You should have received a copy of the GNU General Public License
23946 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23947
23948
23949 # The names of the tagged configurations supported by this script.
23950 available_tags=''
23951
23952 # Configured defaults for sys_lib_dlsearch_path munging.
23953 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23954
23955 # ### BEGIN LIBTOOL CONFIG
23956
23957 # Which release of libtool.m4 was used?
23958 macro_version=$macro_version
23959 macro_revision=$macro_revision
23960
23961 # Whether or not to build shared libraries.
23962 build_libtool_libs=$enable_shared
23963
23964 # Whether or not to build static libraries.
23965 build_old_libs=$enable_static
23966
23967 # What type of objects to build.
23968 pic_mode=$pic_mode
23969
23970 # Whether or not to optimize for fast installation.
23971 fast_install=$enable_fast_install
23972
23973 # Shared archive member basename,for filename based shared library versioning on AIX.
23974 shared_archive_member_spec=$shared_archive_member_spec
23975
23976 # Shell to use when invoking shell scripts.
23977 SHELL=$lt_SHELL
23978
23979 # An echo program that protects backslashes.
23980 ECHO=$lt_ECHO
23981
23982 # The PATH separator for the build system.
23983 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23984
23985 # The host system.
23986 host_alias=$host_alias
23987 host=$host
23988 host_os=$host_os
23989
23990 # The build system.
23991 build_alias=$build_alias
23992 build=$build
23993 build_os=$build_os
23994
23995 # A sed program that does not truncate output.
23996 SED=$lt_SED
23997
23998 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23999 Xsed="\$SED -e 1s/^X//"
24000
24001 # A grep program that handles long lines.
24002 GREP=$lt_GREP
24003
24004 # An ERE matcher.
24005 EGREP=$lt_EGREP
24006
24007 # A literal string matcher.
24008 FGREP=$lt_FGREP
24009
24010 # A BSD- or MS-compatible name lister.
24011 NM=$lt_NM
24012
24013 # Whether we need soft or hard links.
24014 LN_S=$lt_LN_S
24015
24016 # What is the maximum length of a command?
24017 max_cmd_len=$max_cmd_len
24018
24019 # Object file suffix (normally "o").
24020 objext=$ac_objext
24021
24022 # Executable file suffix (normally "").
24023 exeext=$exeext
24024
24025 # whether the shell understands "unset".
24026 lt_unset=$lt_unset
24027
24028 # turn spaces into newlines.
24029 SP2NL=$lt_lt_SP2NL
24030
24031 # turn newlines into spaces.
24032 NL2SP=$lt_lt_NL2SP
24033
24034 # convert \$build file names to \$host format.
24035 to_host_file_cmd=$lt_cv_to_host_file_cmd
24036
24037 # convert \$build files to toolchain format.
24038 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24039
24040 # An object symbol dumper.
24041 OBJDUMP=$lt_OBJDUMP
24042
24043 # Method to check whether dependent libraries are shared objects.
24044 deplibs_check_method=$lt_deplibs_check_method
24045
24046 # Command to use when deplibs_check_method = "file_magic".
24047 file_magic_cmd=$lt_file_magic_cmd
24048
24049 # How to find potential files when deplibs_check_method = "file_magic".
24050 file_magic_glob=$lt_file_magic_glob
24051
24052 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24053 want_nocaseglob=$lt_want_nocaseglob
24054
24055 # DLL creation program.
24056 DLLTOOL=$lt_DLLTOOL
24057
24058 # Command to associate shared and link libraries.
24059 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24060
24061 # The archiver.
24062 AR=$lt_AR
24063
24064 # Flags to create an archive.
24065 AR_FLAGS=$lt_AR_FLAGS
24066
24067 # How to feed a file listing to the archiver.
24068 archiver_list_spec=$lt_archiver_list_spec
24069
24070 # A symbol stripping program.
24071 STRIP=$lt_STRIP
24072
24073 # Commands used to install an old-style archive.
24074 RANLIB=$lt_RANLIB
24075 old_postinstall_cmds=$lt_old_postinstall_cmds
24076 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24077
24078 # Whether to use a lock for old archive extraction.
24079 lock_old_archive_extraction=$lock_old_archive_extraction
24080
24081 # A C compiler.
24082 LTCC=$lt_CC
24083
24084 # LTCC compiler flags.
24085 LTCFLAGS=$lt_CFLAGS
24086
24087 # Take the output of nm and produce a listing of raw symbols and C names.
24088 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24089
24090 # Transform the output of nm in a proper C declaration.
24091 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24092
24093 # Transform the output of nm into a list of symbols to manually relocate.
24094 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24095
24096 # Transform the output of nm in a C name address pair.
24097 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24098
24099 # Transform the output of nm in a C name address pair when lib prefix is needed.
24100 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24101
24102 # The name lister interface.
24103 nm_interface=$lt_lt_cv_nm_interface
24104
24105 # Specify filename containing input files for \$NM.
24106 nm_file_list_spec=$lt_nm_file_list_spec
24107
24108 # The root where to search for dependent libraries,and where our libraries should be installed.
24109 lt_sysroot=$lt_sysroot
24110
24111 # Command to truncate a binary pipe.
24112 lt_truncate_bin=$lt_lt_cv_truncate_bin
24113
24114 # The name of the directory that contains temporary libtool files.
24115 objdir=$objdir
24116
24117 # Used to examine libraries when file_magic_cmd begins with "file".
24118 MAGIC_CMD=$MAGIC_CMD
24119
24120 # Must we lock files when doing compilation?
24121 need_locks=$lt_need_locks
24122
24123 # Manifest tool.
24124 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24125
24126 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24127 DSYMUTIL=$lt_DSYMUTIL
24128
24129 # Tool to change global to local symbols on Mac OS X.
24130 NMEDIT=$lt_NMEDIT
24131
24132 # Tool to manipulate fat objects and archives on Mac OS X.
24133 LIPO=$lt_LIPO
24134
24135 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24136 OTOOL=$lt_OTOOL
24137
24138 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24139 OTOOL64=$lt_OTOOL64
24140
24141 # Old archive suffix (normally "a").
24142 libext=$libext
24143
24144 # Shared library suffix (normally ".so").
24145 shrext_cmds=$lt_shrext_cmds
24146
24147 # The commands to extract the exported symbol list from a shared archive.
24148 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24149
24150 # Variables whose values should be saved in libtool wrapper scripts and
24151 # restored at link time.
24152 variables_saved_for_relink=$lt_variables_saved_for_relink
24153
24154 # Do we need the "lib" prefix for modules?
24155 need_lib_prefix=$need_lib_prefix
24156
24157 # Do we need a version for libraries?
24158 need_version=$need_version
24159
24160 # Library versioning type.
24161 version_type=$version_type
24162
24163 # Shared library runtime path variable.
24164 runpath_var=$runpath_var
24165
24166 # Shared library path variable.
24167 shlibpath_var=$shlibpath_var
24168
24169 # Is shlibpath searched before the hard-coded library search path?
24170 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24171
24172 # Format of library name prefix.
24173 libname_spec=$lt_libname_spec
24174
24175 # List of archive names. First name is the real one, the rest are links.
24176 # The last name is the one that the linker finds with -lNAME
24177 library_names_spec=$lt_library_names_spec
24178
24179 # The coded name of the library, if different from the real name.
24180 soname_spec=$lt_soname_spec
24181
24182 # Permission mode override for installation of shared libraries.
24183 install_override_mode=$lt_install_override_mode
24184
24185 # Command to use after installation of a shared archive.
24186 postinstall_cmds=$lt_postinstall_cmds
24187
24188 # Command to use after uninstallation of a shared archive.
24189 postuninstall_cmds=$lt_postuninstall_cmds
24190
24191 # Commands used to finish a libtool library installation in a directory.
24192 finish_cmds=$lt_finish_cmds
24193
24194 # As "finish_cmds", except a single script fragment to be evaled but
24195 # not shown.
24196 finish_eval=$lt_finish_eval
24197
24198 # Whether we should hardcode library paths into libraries.
24199 hardcode_into_libs=$hardcode_into_libs
24200
24201 # Compile-time system search path for libraries.
24202 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24203
24204 # Detected run-time system search path for libraries.
24205 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24206
24207 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24208 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24209
24210 # Whether dlopen is supported.
24211 dlopen_support=$enable_dlopen
24212
24213 # Whether dlopen of programs is supported.
24214 dlopen_self=$enable_dlopen_self
24215
24216 # Whether dlopen of statically linked programs is supported.
24217 dlopen_self_static=$enable_dlopen_self_static
24218
24219 # Commands to strip libraries.
24220 old_striplib=$lt_old_striplib
24221 striplib=$lt_striplib
24222
24223
24224 # The linker used to build libraries.
24225 LD=$lt_LD
24226
24227 # How to create reloadable object files.
24228 reload_flag=$lt_reload_flag
24229 reload_cmds=$lt_reload_cmds
24230
24231 # Commands used to build an old-style archive.
24232 old_archive_cmds=$lt_old_archive_cmds
24233
24234 # A language specific compiler.
24235 CC=$lt_compiler
24236
24237 # Is the compiler the GNU compiler?
24238 with_gcc=$GCC
24239
24240 # Compiler flag to turn off builtin functions.
24241 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24242
24243 # Additional compiler flags for building library objects.
24244 pic_flag=$lt_lt_prog_compiler_pic
24245
24246 # How to pass a linker flag through the compiler.
24247 wl=$lt_lt_prog_compiler_wl
24248
24249 # Compiler flag to prevent dynamic linking.
24250 link_static_flag=$lt_lt_prog_compiler_static
24251
24252 # Does compiler simultaneously support -c and -o options?
24253 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24254
24255 # Whether or not to add -lc for building shared libraries.
24256 build_libtool_need_lc=$archive_cmds_need_lc
24257
24258 # Whether or not to disallow shared libs when runtime libs are static.
24259 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24260
24261 # Compiler flag to allow reflexive dlopens.
24262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24263
24264 # Compiler flag to generate shared objects directly from archives.
24265 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24266
24267 # Whether the compiler copes with passing no objects directly.
24268 compiler_needs_object=$lt_compiler_needs_object
24269
24270 # Create an old-style archive from a shared archive.
24271 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24272
24273 # Create a temporary old-style archive to link instead of a shared archive.
24274 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24275
24276 # Commands used to build a shared archive.
24277 archive_cmds=$lt_archive_cmds
24278 archive_expsym_cmds=$lt_archive_expsym_cmds
24279
24280 # Commands used to build a loadable module if different from building
24281 # a shared archive.
24282 module_cmds=$lt_module_cmds
24283 module_expsym_cmds=$lt_module_expsym_cmds
24284
24285 # Whether we are building with GNU ld or not.
24286 with_gnu_ld=$lt_with_gnu_ld
24287
24288 # Flag that allows shared libraries with undefined symbols to be built.
24289 allow_undefined_flag=$lt_allow_undefined_flag
24290
24291 # Flag that enforces no undefined symbols.
24292 no_undefined_flag=$lt_no_undefined_flag
24293
24294 # Flag to hardcode \$libdir into a binary during linking.
24295 # This must work even if \$libdir does not exist
24296 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24297
24298 # Whether we need a single "-rpath" flag with a separated argument.
24299 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24300
24301 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24302 # DIR into the resulting binary.
24303 hardcode_direct=$hardcode_direct
24304
24305 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24306 # DIR into the resulting binary and the resulting library dependency is
24307 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24308 # library is relocated.
24309 hardcode_direct_absolute=$hardcode_direct_absolute
24310
24311 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24312 # into the resulting binary.
24313 hardcode_minus_L=$hardcode_minus_L
24314
24315 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24316 # into the resulting binary.
24317 hardcode_shlibpath_var=$hardcode_shlibpath_var
24318
24319 # Set to "yes" if building a shared library automatically hardcodes DIR
24320 # into the library and all subsequent libraries and executables linked
24321 # against it.
24322 hardcode_automatic=$hardcode_automatic
24323
24324 # Set to yes if linker adds runtime paths of dependent libraries
24325 # to runtime path list.
24326 inherit_rpath=$inherit_rpath
24327
24328 # Whether libtool must link a program against all its dependency libraries.
24329 link_all_deplibs=$link_all_deplibs
24330
24331 # Set to "yes" if exported symbols are required.
24332 always_export_symbols=$always_export_symbols
24333
24334 # The commands to list exported symbols.
24335 export_symbols_cmds=$lt_export_symbols_cmds
24336
24337 # Symbols that should not be listed in the preloaded symbols.
24338 exclude_expsyms=$lt_exclude_expsyms
24339
24340 # Symbols that must always be exported.
24341 include_expsyms=$lt_include_expsyms
24342
24343 # Commands necessary for linking programs (against libraries) with templates.
24344 prelink_cmds=$lt_prelink_cmds
24345
24346 # Commands necessary for finishing linking programs.
24347 postlink_cmds=$lt_postlink_cmds
24348
24349 # Specify filename containing input files.
24350 file_list_spec=$lt_file_list_spec
24351
24352 # How to hardcode a shared library path into an executable.
24353 hardcode_action=$hardcode_action
24354
24355 # ### END LIBTOOL CONFIG
24356
24357 _LT_EOF
24358
24359 cat <<'_LT_EOF' >> "$cfgfile"
24360
24361 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24362
24363 # func_munge_path_list VARIABLE PATH
24364 # -----------------------------------
24365 # VARIABLE is name of variable containing _space_ separated list of
24366 # directories to be munged by the contents of PATH, which is string
24367 # having a format:
24368 # "DIR[:DIR]:"
24369 # string "DIR[ DIR]" will be prepended to VARIABLE
24370 # ":DIR[:DIR]"
24371 # string "DIR[ DIR]" will be appended to VARIABLE
24372 # "DIRP[:DIRP]::[DIRA:]DIRA"
24373 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24374 # "DIRA[ DIRA]" will be appended to VARIABLE
24375 # "DIR[:DIR]"
24376 # VARIABLE will be replaced by "DIR[ DIR]"
24377 func_munge_path_list ()
24378 {
24379 case x$2 in
24380 x)
24381 ;;
24382 *:)
24383 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24384 ;;
24385 x:*)
24386 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24387 ;;
24388 *::*)
24389 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24390 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24391 ;;
24392 *)
24393 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24394 ;;
24395 esac
24396 }
24397
24398
24399 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24400 func_cc_basename ()
24401 {
24402 for cc_temp in $*""; do
24403 case $cc_temp in
24404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24406 \-*) ;;
24407 *) break;;
24408 esac
24409 done
24410 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24411 }
24412
24413
24414 # ### END FUNCTIONS SHARED WITH CONFIGURE
24415
24416 _LT_EOF
24417
24418 case $host_os in
24419 aix3*)
24420 cat <<\_LT_EOF >> "$cfgfile"
24421 # AIX sometimes has problems with the GCC collect2 program. For some
24422 # reason, if we set the COLLECT_NAMES environment variable, the problems
24423 # vanish in a puff of smoke.
24424 if test set != "${COLLECT_NAMES+set}"; then
24425 COLLECT_NAMES=
24426 export COLLECT_NAMES
24427 fi
24428 _LT_EOF
24429 ;;
24430 esac
24431
24432
24433 ltmain=$ac_aux_dir/ltmain.sh
24434
24435
24436 # We use sed instead of cat because bash on DJGPP gets confused if
24437 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24438 # text mode, it properly converts lines to CR/LF. This bash problem
24439 # is reportedly fixed, but why not run on old versions too?
24440 sed '$q' "$ltmain" >> "$cfgfile" \
24441 || (rm -f "$cfgfile"; exit 1)
24442
24443 mv -f "$cfgfile" "$ofile" ||
24444 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24445 chmod +x "$ofile"
24446
24447 ;;
24448 "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
24449
24450 esac
24451 done # for ac_tag
24452
24453
24454 as_fn_exit 0
24455 _ACEOF
24456 ac_clean_files=$ac_clean_files_save
24457
24458 test $ac_write_fail = 0 ||
24459 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24460
24461
24462 # configure is writing to config.log, and then calls config.status.
24463 # config.status does its own redirection, appending to config.log.
24464 # Unfortunately, on DOS this fails, as config.log is still kept open
24465 # by configure, so config.status won't be able to write to it; its
24466 # output is simply discarded. So we exec the FD to /dev/null,
24467 # effectively closing config.log, so it can be properly (re)opened and
24468 # appended to by config.status. When coming back to configure, we
24469 # need to make the FD available again.
24470 if test "$no_create" != yes; then
24471 ac_cs_success=:
24472 ac_config_status_args=
24473 test "$silent" = yes &&
24474 ac_config_status_args="$ac_config_status_args --quiet"
24475 exec 5>/dev/null
24476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24477 exec 5>>config.log
24478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24479 # would make configure fail if this is the last instruction.
24480 $ac_cs_success || as_fn_exit 1
24481 fi
24482 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24484 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24485 fi
24486
24487
24488 #
24489 # Now that the Makefiles exist we can ensure that everything is rebuilt.
24490 #
24491
24492 # Check whether --with-make-clean was given.
24493 if test "${with_make_clean+set}" = set; then :
24494 withval=$with_make_clean; make_clean="$withval"
24495 else
24496 make_clean="yes"
24497 fi
24498
24499 case "$make_clean" in
24500 yes)
24501 if test "yes" != "$no_create"
24502 then
24503 if test "yes" = "$silent"
24504 then
24505 make clean > /dev/null
24506 else
24507 make clean
24508 fi
24509 fi
24510 ;;
24511 esac
24512
24513 # Check whether --enable-full-report was given.
24514 if test "${enable_full_report+set}" = set; then :
24515 enableval=$enable_full_report;
24516 fi
24517
24518
24519 report() {
24520 echo "==============================================================================="
24521 echo "Configuration summary:"
24522 echo "-------------------------------------------------------------------------------"
24523 echo "Optional features enabled:"
24524 if test "yes" = "$enable_full_report" -o "standard" = "$locktype"; then
24525 echo " Mutex lock type: $locktype"
24526 fi
24527 test "large" = "$use_tuning" && echo " Large-system tuning (--with-tuning)"
24528 test "no" = "$use_dnstap" || \
24529 echo " Allow 'dnstap' packet logging (--enable-dnstap)"
24530 test -z "$MAXMINDDB_LIBS" || echo " GeoIP2 access control (--with-geoip2)"
24531 test "no" = "$use_geoip" || echo " Legacy GeoIP access control (--with-geoip)"
24532 test "no" = "$use_gssapi" || echo " GSS-API (--with-gssapi)"
24533 if test "yes" = "$enable_full_report" -o "aes" != "$with_cc_alg"; then
24534 echo " Algorithm: $with_cc_alg"
24535 fi
24536
24537 # these lines are only printed if run with --enable-full-report
24538 if test "yes" = "$enable_full_report"; then
24539 test "no" = "$found_ipv6" || echo " IPv6 support (--enable-ipv6)"
24540 test "X$PYTHON" = "X" || echo " Python tools (--with-python)"
24541 test "X$XMLSTATS" = "X" || echo " XML statistics (--with-libxml2)"
24542 test "X$JSONSTATS" = "X" || echo " JSON statistics (--with-libjson)"
24543 test "X$ZLIB" = "X" || echo " HTTP zlib compression (--with-zlib)"
24544 test "X$NZD_TOOLS" = "X" || echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
24545 test "no" = "$with_libidn2" || echo " IDN support (--with-libidn2)"
24546 fi
24547
24548 test "yes" = "$enable_dnsrps" && \
24549 echo " DNS Response Policy Service interface (--enable-dnsrps)"
24550 test "yes" = "$enable_fixed" && \
24551 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
24552 test "yes" = "$enable_backtrace" && \
24553 echo " Print backtrace on crash (--enable-backtrace)"
24554 test "minimal" = "$want_symtable" && \
24555 echo " Use symbol table for backtrace, named only (--enable-symtable)"
24556 test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
24557 echo " Use symbol table for backtrace, all binaries (--enable-symtable=all)"
24558 test "no" = "$use_libtool" || echo " Use GNU libtool (--with-libtool)"
24559 test "yes" = "$want_querytrace" && \
24560 echo " Very verbose query trace logging (--enable-querytrace)"
24561 test "no" = "$with_cmocka" || echo " CMocka Unit Testing Framework (--with-cmocka)"
24562
24563 test "auto" = "$validation_default" && echo " DNSSEC validation active by default (--enable-auto-validation)"
24564
24565 test "$CRYPTO" = "pkcs11" && (
24566 echo " Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
24567 echo " PKCS#11 module (--with-pkcs11): $with_pkcs11"
24568 )
24569
24570 echo " Dynamically loadable zone (DLZ) drivers:"
24571 test "no" = "$use_dlz_bdb" || \
24572 echo " Berkeley DB (--with-dlz-bdb)"
24573 test "no" = "$use_dlz_ldap" || \
24574 echo " LDAP (--with-dlz-ldap)"
24575 test "no" = "$use_dlz_mysql" || \
24576 echo " MySQL (--with-dlz-mysql)"
24577 test "no" = "$use_dlz_odbc" || \
24578 echo " ODBC (--with-dlz-odbc)"
24579 test "no" = "$use_dlz_postgres" || \
24580 echo " Postgres (--with-dlz-postgres)"
24581 test "no" = "$use_dlz_filesystem" || \
24582 echo " Filesystem (--with-dlz-filesystem)"
24583 test "no" = "$use_dlz_stub" || \
24584 echo " Stub (--with-dlz-stub)"
24585 test "$use_dlz_bdb $use_dlz_ldap $use_dlz_mysql $use_dlz_odbc $use_dlz_postgres $use_dlz_filesystem $use_dlz_stub" = "no no no no no no no" && echo " None"
24586
24587 echo "-------------------------------------------------------------------------------"
24588
24589 echo "Features disabled or unavailable on this platform:"
24590 test "no" = "$found_ipv6" && echo " IPv6 support (--enable-ipv6)"
24591 test "large" = "$use_tuning" || echo " Large-system tuning (--with-tuning)"
24592
24593 test "no" = "$use_dnstap" && \
24594 echo " Allow 'dnstap' packet logging (--enable-dnstap)"
24595 test -z "$MAXMINDDB_LIBS" && echo " GeoIP2 access control (--with-geoip2)"
24596 test "no" = "$use_gssapi" && echo " GSS-API (--with-gssapi)"
24597
24598 test "no" = "$enable_dnsrps" && \
24599 echo " DNS Response Policy Service interface (--enable-dnsrps)"
24600
24601 test "yes" = "$enable_fixed" || \
24602 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
24603
24604 test "yes" = "$validation_default" && echo " DNSSEC validation requires configuration (--enablee-auto-validation)"
24605
24606 test "$CRYPTO" = "pkcs11" || (
24607 echo " Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
24608 )
24609
24610 test "yes" = "$enable_backtrace" || \
24611 echo " Print backtrace on crash (--enable-backtrace)"
24612 test "yes" = "$want_querytrace" || \
24613 echo " Very verbose query trace logging (--enable-querytrace)"
24614
24615 test "yes" = "$use_libtool" || echo " Use GNU libtool (--with-libtool)"
24616 test "no" = "$with_cmocka" && echo " CMocka Unit Testing Framework (--with-cmocka)"
24617
24618 test "X$PYTHON" = "X" && echo " Python tools (--with-python)"
24619 test "X$XMLSTATS" = "X" && echo " XML statistics (--with-libxml2)"
24620 test "X$JSONSTATS" = "X" && echo " JSON statistics (--with-libjson)"
24621 test "X$ZLIB" = "X" && echo " HTTP zlib compression (--with-zlib)"
24622 test "X$NZD_TOOLS" = "X" && echo " LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
24623 test "no" = "$with_libidn2" && echo " IDN support (--with-libidn2)"
24624
24625 echo "-------------------------------------------------------------------------------"
24626 echo "Configured paths:"
24627 echo " prefix: $prefix"
24628 echo " sysconfdir: $sysconfdir"
24629 echo " localstatedir: $localstatedir"
24630 echo "-------------------------------------------------------------------------------"
24631 echo "Compiler: $CC"
24632 $CC --version 2>&1 | sed 's/^/ /'
24633
24634 if test "X$ac_unrecognized_opts" != "X"; then
24635 echo "Unrecognized options:"
24636 echo " $ac_unrecognized_opts"
24637 fi
24638
24639 if test "yes" != "$enable_full_report"; then
24640 echo "-------------------------------------------------------------------------------"
24641 echo "For more detail, use --enable-full-report."
24642 fi
24643 echo "==============================================================================="
24644 }
24645
24646 if test "yes" != "$silent"; then
24647 report
24648 fi
24649
24650 # Tell Emacs to edit this file in shell mode.
24651 # Local Variables:
24652 # mode: sh
24653 # End:
24654