usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src / router / dnscrypt / configure
blobfa65cf2706c5348eef218b9ec2deeffda6149cad
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for dnscrypt-proxy 1.3.0.
5 # Report bugs to <http://dnscrypt.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
176 esac
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; }
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 :
192 else
193 exitcode=1; echo positional parameters were not saved.
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
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
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
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
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
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
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@gnu.org and
278 $0: http://dnscrypt.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
569 lt_ltdl_dir='libltdl'
571 lt_dlopen_dir="$lt_ltdl_dir"
574 test -n "$DJDIR" || exec 7<&0 </dev/null
575 exec 6>&1
577 # Name of the host.
578 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
579 # so uname gets run too.
580 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583 # Initializations.
585 ac_default_prefix=/usr/local
586 ac_clean_files=
587 ac_config_libobj_dir=.
588 LIBOBJS=
589 cross_compiling=no
590 subdirs=
591 MFLAGS=
592 MAKEFLAGS=
594 # Identity of this package.
595 PACKAGE_NAME='dnscrypt-proxy'
596 PACKAGE_TARNAME='dnscrypt-proxy'
597 PACKAGE_VERSION='1.3.0'
598 PACKAGE_STRING='dnscrypt-proxy 1.3.0'
599 PACKAGE_BUGREPORT='http://dnscrypt.org'
600 PACKAGE_URL=''
602 ac_unique_file="src/proxy/app.c"
603 enable_option_checking=no
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 # include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 # include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
640 ac_subst_vars='ltdl_LTLIBOBJS
641 ltdl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIBOBJS
646 LTDLOPEN
647 LT_CONFIG_H
648 CONVENIENCE_LTDL_FALSE
649 CONVENIENCE_LTDL_TRUE
650 INSTALL_LTDL_FALSE
651 INSTALL_LTDL_TRUE
652 ARGZ_H
653 sys_symbol_underscore
654 LIBADD_DL
655 LT_DLPREOPEN
656 LIBADD_DLD_LINK
657 LIBADD_SHL_LOAD
658 LIBADD_DLOPEN
659 LT_DLLOADERS
660 INCLTDL
661 LTDLINCL
662 LTDLDEPS
663 LIBLTDL
664 PROBES_SOURCE
665 SAFECODE_HOME
666 ENABLE_PLUGINS_ROOT_FALSE
667 ENABLE_PLUGINS_ROOT_TRUE
668 RELAXED_PLUGINS_PERMISSIONS_FALSE
669 RELAXED_PLUGINS_PERMISSIONS_TRUE
670 PLUGINS_FALSE
671 PLUGINS_TRUE
672 LDNS_LIBS
673 USE_LDNS_FALSE
674 USE_LDNS_TRUE
675 USE_BUILTIN_LIBSODIUM_FALSE
676 USE_BUILTIN_LIBSODIUM_TRUE
677 DTRACE
678 SIXJACK
679 RONN
680 LIBTOOL_DEPS
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 MANIFEST_TOOL
687 RANLIB
688 ac_ct_AR
690 DLLTOOL
691 OBJDUMP
692 LN_S
694 ac_ct_DUMPBIN
695 DUMPBIN
697 FGREP
699 LIBTOOL
700 CWFLAGS
701 EGREP
702 GREP
704 am__fastdepCC_FALSE
705 am__fastdepCC_TRUE
706 CCDEPMODE
707 am__quote
708 am__include
709 DEPDIR
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
717 ISODATE
718 am__nodep
719 AMDEPBACKSLASH
720 AMDEP_FALSE
721 AMDEP_TRUE
722 MAINT
723 MAINTAINER_MODE_FALSE
724 MAINTAINER_MODE_TRUE
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 subdirs
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL'
795 ac_subst_files=''
796 ac_user_opts='
797 enable_option_checking
798 enable_maintainer_mode
799 enable_dependency_tracking
800 enable_shared
801 enable_static
802 with_pic
803 enable_fast_install
804 with_gnu_ld
805 with_sysroot
806 enable_libtool_lock
807 enable_largefile
808 enable_pie
809 enable_ssp
810 enable_plugins
811 enable_relaxed_plugins_permissions
812 enable_plugins_root
813 enable_blocking_random
814 enable_debug
815 with_safecode
816 with_included_ltdl
817 with_ltdl_include
818 with_ltdl_lib
819 enable_ltdl_install
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
830 CWFLAGS
831 RONN
832 SIXJACK
834 DTRACE
835 SAFECODE_HOME'
836 ac_subdirs_all='src/libevent-modified src/libsodium
837 libltdl'
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
887 ac_prev=
888 ac_dashdash=
889 for ac_option
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
894 ac_prev=
895 continue
898 case $ac_option in
899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *=) ac_optarg= ;;
901 *) ac_optarg=yes ;;
902 esac
904 # Accept the important Cygnus configure options, so we can diagnose typos.
906 case $ac_dashdash$ac_option in
908 ac_dashdash=yes ;;
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
927 --config-cache | -C)
928 cache_file=config.cache ;;
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1131 sbindir=$ac_optarg ;;
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1142 sharedstatedir=$ac_optarg ;;
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1147 site=$ac_optarg ;;
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1172 -with-* | --with-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1222 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information"
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244 esac
1245 done
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error $? "missing argument to $ac_option"
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 esac
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
1274 case $ac_val in
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 esac
1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1279 done
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error $? "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error $? "pwd does not report name of working directory"
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1329 /^X\(\/\/\)$/{
1330 s//\1/
1333 /^X\(\/\).*/{
1334 s//\1/
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1342 else
1343 ac_srcdir_defaulted=no
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352 pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1371 # Report the --help message.
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377 \`configure' configures dnscrypt-proxy 1.3.0 to adapt to many kinds of systems.
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1384 Defaults for the options are specified in brackets.
1386 Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking ...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 [PREFIX]
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1408 For better control, use the options below.
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/dnscrypt-proxy]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1430 _ACEOF
1432 cat <<\_ACEOF
1434 Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439 System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 _ACEOF
1445 if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of dnscrypt-proxy 1.3.0:";;
1448 esac
1449 cat <<\_ACEOF
1451 Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-maintainer-mode enable make rules and dependencies not useful
1456 (and sometimes confusing) to the casual installer
1457 --disable-dependency-tracking speeds up one-time build
1458 --enable-dependency-tracking do not reject slow dependency extractors
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-static[=PKGS] build static libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --disable-largefile omit support for large files
1465 --enable-pie Produce position independent executables
1466 [default=yes]
1467 --disable-ssp Don't compile with -fstack-protector
1468 --enable-plugins Enable support for plugins - experimental
1469 --enable-relaxed-plugins-permissions
1470 Allow loading plugins owned by other users
1471 --enable-plugins-root Only load plugins sitting in the default plugins
1472 directory
1473 --enable-blocking-random
1474 Use /dev/random instead of /dev/urandom
1475 --enable-debug For maintainers only - please do not use
1476 --enable-ltdl-install install libltdl
1478 Optional Packages:
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1482 both]
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-sysroot=DIR Search for dependent libraries within DIR
1485 (or the compiler's sysroot if not specified).
1486 --with-safecode For maintainers only - please do not use
1487 --with-included-ltdl use the GNU ltdl sources included here
1488 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1489 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 CPP C preprocessor
1500 CWFLAGS define to compilation flags for generating extra warnings
1501 RONN path to the ronn text processor
1502 SIXJACK path to 6jack
1503 AR path to the ar utility
1504 DTRACE path to dtrace if you have it
1505 SAFECODE_HOME
1506 set to the safecode base directory
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1511 Report bugs to <http://dnscrypt.org>.
1512 _ACEOF
1513 ac_status=$?
1516 if test "$ac_init_help" = "recursive"; then
1517 # If there are subdirs, report their specific --help.
1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519 test -d "$ac_dir" ||
1520 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1521 continue
1522 ac_builddir=.
1524 case "$ac_dir" in
1525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1528 # A ".." for each directory in $ac_dir_suffix.
1529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1530 case $ac_top_builddir_sub in
1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 esac ;;
1534 esac
1535 ac_abs_top_builddir=$ac_pwd
1536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537 # for backward compatibility:
1538 ac_top_builddir=$ac_top_build_prefix
1540 case $srcdir in
1541 .) # We are building in place.
1542 ac_srcdir=.
1543 ac_top_srcdir=$ac_top_builddir_sub
1544 ac_abs_top_srcdir=$ac_pwd ;;
1545 [\\/]* | ?:[\\/]* ) # Absolute name.
1546 ac_srcdir=$srcdir$ac_dir_suffix;
1547 ac_top_srcdir=$srcdir
1548 ac_abs_top_srcdir=$srcdir ;;
1549 *) # Relative name.
1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551 ac_top_srcdir=$ac_top_build_prefix$srcdir
1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553 esac
1554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556 cd "$ac_dir" || { ac_status=$?; continue; }
1557 # Check for guested configure.
1558 if test -f "$ac_srcdir/configure.gnu"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561 elif test -f "$ac_srcdir/configure"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure" --help=recursive
1564 else
1565 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566 fi || ac_status=$?
1567 cd "$ac_pwd" || { ac_status=$?; break; }
1568 done
1571 test -n "$ac_init_help" && exit $ac_status
1572 if $ac_init_version; then
1573 cat <<\_ACEOF
1574 dnscrypt-proxy configure 1.3.0
1575 generated by GNU Autoconf 2.69
1577 Copyright (C) 2012 Free Software Foundation, Inc.
1578 This configure script is free software; the Free Software Foundation
1579 gives unlimited permission to copy, distribute and modify it.
1580 _ACEOF
1581 exit
1584 ## ------------------------ ##
1585 ## Autoconf initialization. ##
1586 ## ------------------------ ##
1588 # ac_fn_c_try_compile LINENO
1589 # --------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_c_try_compile ()
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext
1595 if { { ac_try="$ac_compile"
1596 case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_compile") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest.$ac_objext; then :
1614 ac_retval=0
1615 else
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1619 ac_retval=1
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1624 } # ac_fn_c_try_compile
1626 # ac_fn_c_try_cpp LINENO
1627 # ----------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_cpp ()
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } > conftest.i && {
1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 }; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1656 ac_retval=1
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1661 } # ac_fn_c_try_cpp
1663 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1666 # the include files in INCLUDES and setting the cache variable VAR
1667 # accordingly.
1668 ac_fn_c_check_header_mongrel ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if eval \${$3+:} false; then :
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1677 eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 else
1681 # Is the header compilable?
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1683 $as_echo_n "checking $2 usability... " >&6; }
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_compile "$LINENO"; then :
1690 ac_header_compiler=yes
1691 else
1692 ac_header_compiler=no
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1696 $as_echo "$ac_header_compiler" >&6; }
1698 # Is the header present?
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1700 $as_echo_n "checking $2 presence... " >&6; }
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1703 #include <$2>
1704 _ACEOF
1705 if ac_fn_c_try_cpp "$LINENO"; then :
1706 ac_header_preproc=yes
1707 else
1708 ac_header_preproc=no
1710 rm -f conftest.err conftest.i conftest.$ac_ext
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1712 $as_echo "$ac_header_preproc" >&6; }
1714 # So? What about this header?
1715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1716 yes:no: )
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1718 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 no:yes:* )
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1724 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1726 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1728 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1730 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 ( $as_echo "## ---------------------------------- ##
1734 ## Report this to http://dnscrypt.org ##
1735 ## ---------------------------------- ##"
1736 ) | sed "s/^/$as_me: WARNING: /" >&2
1738 esac
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 eval "$3=\$ac_header_compiler"
1746 eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 } # ac_fn_c_check_header_mongrel
1754 # ac_fn_c_try_run LINENO
1755 # ----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757 # that executables *can* be run.
1758 ac_fn_c_try_run ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_link"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772 { { case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_try") 2>&5
1779 ac_status=$?
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; }; }; then :
1782 ac_retval=0
1783 else
1784 $as_echo "$as_me: program exited with status $ac_status" >&5
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1788 ac_retval=$ac_status
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1794 } # ac_fn_c_try_run
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"; then :
1814 eval "$3=yes"
1815 else
1816 eval "$3=no"
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 } # ac_fn_c_check_header_compile
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_link ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1835 case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 test -x conftest$ac_exeext
1855 }; then :
1856 ac_retval=0
1857 else
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1861 ac_retval=1
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1871 } # ac_fn_c_try_link
1873 # ac_fn_c_check_func LINENO FUNC VAR
1874 # ----------------------------------
1875 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1876 ac_fn_c_check_func ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1883 else
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1888 #define $2 innocuous_$2
1890 /* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char $2 (); below.
1892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1893 <limits.h> exists even on freestanding compilers. */
1895 #ifdef __STDC__
1896 # include <limits.h>
1897 #else
1898 # include <assert.h>
1899 #endif
1901 #undef $2
1903 /* Override any GCC internal prototype to avoid an error.
1904 Use char because int might match the return type of a GCC
1905 builtin and then its argument prototype would still apply. */
1906 #ifdef __cplusplus
1907 extern "C"
1908 #endif
1909 char $2 ();
1910 /* The GNU C library defines this for functions which it implements
1911 to always fail with ENOSYS. Some functions are actually named
1912 something starting with __ and the normal name is an alias. */
1913 #if defined __stub_$2 || defined __stub___$2
1914 choke me
1915 #endif
1918 main ()
1920 return $2 ();
1922 return 0;
1924 _ACEOF
1925 if ac_fn_c_try_link "$LINENO"; then :
1926 eval "$3=yes"
1927 else
1928 eval "$3=no"
1930 rm -f core conftest.err conftest.$ac_objext \
1931 conftest$ac_exeext conftest.$ac_ext
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 } # ac_fn_c_check_func
1940 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1941 # -------------------------------------------
1942 # Tests whether TYPE exists after having included INCLUDES, setting cache
1943 # variable VAR accordingly.
1944 ac_fn_c_check_type ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1951 else
1952 eval "$3=no"
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1957 main ()
1959 if (sizeof ($2))
1960 return 0;
1962 return 0;
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1970 main ()
1972 if (sizeof (($2)))
1973 return 0;
1975 return 0;
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1980 else
1981 eval "$3=yes"
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 } # ac_fn_c_check_type
1994 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1995 # ---------------------------------------------
1996 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1997 # accordingly.
1998 ac_fn_c_check_decl ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 as_decl_name=`echo $2|sed 's/ *(.*//'`
2002 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2004 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2005 if eval \${$3+:} false; then :
2006 $as_echo_n "(cached) " >&6
2007 else
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2012 main ()
2014 #ifndef $as_decl_name
2015 #ifdef __cplusplus
2016 (void) $as_decl_use;
2017 #else
2018 (void) $as_decl_name;
2019 #endif
2020 #endif
2023 return 0;
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$3=yes"
2028 else
2029 eval "$3=no"
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 eval ac_res=\$$3
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 } # ac_fn_c_check_decl
2039 cat >config.log <<_ACEOF
2040 This file contains any messages produced by compilers while
2041 running configure, to aid debugging if configure makes a mistake.
2043 It was created by dnscrypt-proxy $as_me 1.3.0, which was
2044 generated by GNU Autoconf 2.69. Invocation command line was
2046 $ $0 $@
2048 _ACEOF
2049 exec 5>>config.log
2051 cat <<_ASUNAME
2052 ## --------- ##
2053 ## Platform. ##
2054 ## --------- ##
2056 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2057 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2058 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2059 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2060 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2062 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2063 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2065 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2066 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2067 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2068 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2069 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2070 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2071 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2073 _ASUNAME
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 $as_echo "PATH: $as_dir"
2081 done
2082 IFS=$as_save_IFS
2084 } >&5
2086 cat >&5 <<_ACEOF
2089 ## ----------- ##
2090 ## Core tests. ##
2091 ## ----------- ##
2093 _ACEOF
2096 # Keep a trace of the command line.
2097 # Strip out --no-create and --no-recursion so they do not pile up.
2098 # Strip out --silent because we don't want to record it for future runs.
2099 # Also quote any args containing shell meta-characters.
2100 # Make two passes to allow for proper duplicate-argument suppression.
2101 ac_configure_args=
2102 ac_configure_args0=
2103 ac_configure_args1=
2104 ac_must_keep_next=false
2105 for ac_pass in 1 2
2107 for ac_arg
2109 case $ac_arg in
2110 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2112 | -silent | --silent | --silen | --sile | --sil)
2113 continue ;;
2114 *\'*)
2115 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2116 esac
2117 case $ac_pass in
2118 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2120 as_fn_append ac_configure_args1 " '$ac_arg'"
2121 if test $ac_must_keep_next = true; then
2122 ac_must_keep_next=false # Got value, back to normal.
2123 else
2124 case $ac_arg in
2125 *=* | --config-cache | -C | -disable-* | --disable-* \
2126 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2127 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2128 | -with-* | --with-* | -without-* | --without-* | --x)
2129 case "$ac_configure_args0 " in
2130 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2131 esac
2133 -* ) ac_must_keep_next=true ;;
2134 esac
2136 as_fn_append ac_configure_args " '$ac_arg'"
2138 esac
2139 done
2140 done
2141 { ac_configure_args0=; unset ac_configure_args0;}
2142 { ac_configure_args1=; unset ac_configure_args1;}
2144 # When interrupted or exit'd, cleanup temporary files, and complete
2145 # config.log. We remove comments because anyway the quotes in there
2146 # would cause problems or look ugly.
2147 # WARNING: Use '\'' to represent an apostrophe within the trap.
2148 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2149 trap 'exit_status=$?
2150 # Save into config.log some information that might help in debugging.
2152 echo
2154 $as_echo "## ---------------- ##
2155 ## Cache variables. ##
2156 ## ---------------- ##"
2157 echo
2158 # The following way of writing the cache mishandles newlines in values,
2160 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in #(
2163 *${as_nl}*)
2164 case $ac_var in #(
2165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2166 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2167 esac
2168 case $ac_var in #(
2169 _ | IFS | as_nl) ;; #(
2170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2171 *) { eval $ac_var=; unset $ac_var;} ;;
2172 esac ;;
2173 esac
2174 done
2175 (set) 2>&1 |
2176 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2177 *${as_nl}ac_space=\ *)
2178 sed -n \
2179 "s/'\''/'\''\\\\'\'''\''/g;
2180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2181 ;; #(
2183 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2185 esac |
2186 sort
2188 echo
2190 $as_echo "## ----------------- ##
2191 ## Output variables. ##
2192 ## ----------------- ##"
2193 echo
2194 for ac_var in $ac_subst_vars
2196 eval ac_val=\$$ac_var
2197 case $ac_val in
2198 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2199 esac
2200 $as_echo "$ac_var='\''$ac_val'\''"
2201 done | sort
2202 echo
2204 if test -n "$ac_subst_files"; then
2205 $as_echo "## ------------------- ##
2206 ## File substitutions. ##
2207 ## ------------------- ##"
2208 echo
2209 for ac_var in $ac_subst_files
2211 eval ac_val=\$$ac_var
2212 case $ac_val in
2213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214 esac
2215 $as_echo "$ac_var='\''$ac_val'\''"
2216 done | sort
2217 echo
2220 if test -s confdefs.h; then
2221 $as_echo "## ----------- ##
2222 ## confdefs.h. ##
2223 ## ----------- ##"
2224 echo
2225 cat confdefs.h
2226 echo
2228 test "$ac_signal" != 0 &&
2229 $as_echo "$as_me: caught signal $ac_signal"
2230 $as_echo "$as_me: exit $exit_status"
2231 } >&5
2232 rm -f core *.core core.conftest.* &&
2233 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2234 exit $exit_status
2236 for ac_signal in 1 2 13 15; do
2237 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2238 done
2239 ac_signal=0
2241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2242 rm -f -r conftest* confdefs.h
2244 $as_echo "/* confdefs.h */" > confdefs.h
2246 # Predefined preprocessor variables.
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_NAME "$PACKAGE_NAME"
2250 _ACEOF
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2254 _ACEOF
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2258 _ACEOF
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_STRING "$PACKAGE_STRING"
2262 _ACEOF
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2266 _ACEOF
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_URL "$PACKAGE_URL"
2270 _ACEOF
2273 # Let the site file select an alternate cache file if it wants to.
2274 # Prefer an explicitly selected file to automatically selected ones.
2275 ac_site_file1=NONE
2276 ac_site_file2=NONE
2277 if test -n "$CONFIG_SITE"; then
2278 # We do not want a PATH search for config.site.
2279 case $CONFIG_SITE in #((
2280 -*) ac_site_file1=./$CONFIG_SITE;;
2281 */*) ac_site_file1=$CONFIG_SITE;;
2282 *) ac_site_file1=./$CONFIG_SITE;;
2283 esac
2284 elif test "x$prefix" != xNONE; then
2285 ac_site_file1=$prefix/share/config.site
2286 ac_site_file2=$prefix/etc/config.site
2287 else
2288 ac_site_file1=$ac_default_prefix/share/config.site
2289 ac_site_file2=$ac_default_prefix/etc/config.site
2291 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2293 test "x$ac_site_file" = xNONE && continue
2294 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2296 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2297 sed 's/^/| /' "$ac_site_file" >&5
2298 . "$ac_site_file" \
2299 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301 as_fn_error $? "failed to load site script $ac_site_file
2302 See \`config.log' for more details" "$LINENO" 5; }
2304 done
2306 if test -r "$cache_file"; then
2307 # Some versions of bash will fail to source /dev/null (special files
2308 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2309 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2311 $as_echo "$as_me: loading cache $cache_file" >&6;}
2312 case $cache_file in
2313 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2314 *) . "./$cache_file";;
2315 esac
2317 else
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2319 $as_echo "$as_me: creating cache $cache_file" >&6;}
2320 >$cache_file
2323 # Check that the precious variables saved in the cache have kept the same
2324 # value.
2325 ac_cache_corrupted=false
2326 for ac_var in $ac_precious_vars; do
2327 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2328 eval ac_new_set=\$ac_env_${ac_var}_set
2329 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2330 eval ac_new_val=\$ac_env_${ac_var}_value
2331 case $ac_old_set,$ac_new_set in
2332 set,)
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2334 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2335 ac_cache_corrupted=: ;;
2336 ,set)
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2338 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2339 ac_cache_corrupted=: ;;
2340 ,);;
2342 if test "x$ac_old_val" != "x$ac_new_val"; then
2343 # differences in whitespace do not lead to failure.
2344 ac_old_val_w=`echo x $ac_old_val`
2345 ac_new_val_w=`echo x $ac_new_val`
2346 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2348 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2349 ac_cache_corrupted=:
2350 else
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2352 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2353 eval $ac_var=\$ac_old_val
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2356 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2358 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2359 fi;;
2360 esac
2361 # Pass precious variables to config.status.
2362 if test "$ac_new_set" = set; then
2363 case $ac_new_val in
2364 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2365 *) ac_arg=$ac_var=$ac_new_val ;;
2366 esac
2367 case " $ac_configure_args " in
2368 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2369 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2370 esac
2372 done
2373 if $ac_cache_corrupted; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2377 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2378 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2380 ## -------------------- ##
2381 ## Main body of script. ##
2382 ## -------------------- ##
2384 ac_ext=c
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 ac_aux_dir=
2393 for ac_dir in libltdl/config "$srcdir"/libltdl/config; do
2394 if test -f "$ac_dir/install-sh"; then
2395 ac_aux_dir=$ac_dir
2396 ac_install_sh="$ac_aux_dir/install-sh -c"
2397 break
2398 elif test -f "$ac_dir/install.sh"; then
2399 ac_aux_dir=$ac_dir
2400 ac_install_sh="$ac_aux_dir/install.sh -c"
2401 break
2402 elif test -f "$ac_dir/shtool"; then
2403 ac_aux_dir=$ac_dir
2404 ac_install_sh="$ac_aux_dir/shtool install -c"
2405 break
2407 done
2408 if test -z "$ac_aux_dir"; then
2409 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5
2412 # These three variables are undocumented and unsupported,
2413 # and are intended to be withdrawn in a future Autoconf release.
2414 # They can cause serious problems if a builder's source tree is in a directory
2415 # whose full name contains unusual characters.
2416 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2417 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2418 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2422 ac_config_headers="$ac_config_headers config.h"
2426 subdirs="$subdirs src/libevent-modified src/libsodium"
2428 # Make sure we can run config.sub.
2429 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2430 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2433 $as_echo_n "checking build system type... " >&6; }
2434 if ${ac_cv_build+:} false; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 ac_build_alias=$build_alias
2438 test "x$ac_build_alias" = x &&
2439 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2440 test "x$ac_build_alias" = x &&
2441 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2442 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2447 $as_echo "$ac_cv_build" >&6; }
2448 case $ac_cv_build in
2449 *-*-*) ;;
2450 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2451 esac
2452 build=$ac_cv_build
2453 ac_save_IFS=$IFS; IFS='-'
2454 set x $ac_cv_build
2455 shift
2456 build_cpu=$1
2457 build_vendor=$2
2458 shift; shift
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2461 build_os=$*
2462 IFS=$ac_save_IFS
2463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2467 $as_echo_n "checking host system type... " >&6; }
2468 if ${ac_cv_host+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 if test "x$host_alias" = x; then
2472 ac_cv_host=$ac_cv_build
2473 else
2474 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2475 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2480 $as_echo "$ac_cv_host" >&6; }
2481 case $ac_cv_host in
2482 *-*-*) ;;
2483 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2484 esac
2485 host=$ac_cv_host
2486 ac_save_IFS=$IFS; IFS='-'
2487 set x $ac_cv_host
2488 shift
2489 host_cpu=$1
2490 host_vendor=$2
2491 shift; shift
2492 # Remember, the first character of IFS is used to create $*,
2493 # except with old shells:
2494 host_os=$*
2495 IFS=$ac_save_IFS
2496 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2499 am__api_version='1.11'
2501 # Find a good install program. We prefer a C program (faster),
2502 # so one script is as good as another. But avoid the broken or
2503 # incompatible versions:
2504 # SysV /etc/install, /usr/sbin/install
2505 # SunOS /usr/etc/install
2506 # IRIX /sbin/install
2507 # AIX /bin/install
2508 # AmigaOS /C/install, which installs bootblocks on floppy discs
2509 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2510 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2511 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2512 # OS/2's system install, which has a completely different semantic
2513 # ./install, which can be erroneously created by make from ./install.sh.
2514 # Reject install programs that cannot install multiple files.
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2516 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2517 if test -z "$INSTALL"; then
2518 if ${ac_cv_path_install+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 # Account for people who put trailing slashes in PATH elements.
2527 case $as_dir/ in #((
2528 ./ | .// | /[cC]/* | \
2529 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2530 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2531 /usr/ucb/* ) ;;
2533 # OSF1 and SCO ODT 3.0 have their own names for install.
2534 # Don't use installbsd from OSF since it installs stuff as root
2535 # by default.
2536 for ac_prog in ginstall scoinst install; do
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2539 if test $ac_prog = install &&
2540 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2541 # AIX install. It has an incompatible calling convention.
2543 elif test $ac_prog = install &&
2544 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545 # program-specific install script used by HP pwplus--don't use.
2547 else
2548 rm -rf conftest.one conftest.two conftest.dir
2549 echo one > conftest.one
2550 echo two > conftest.two
2551 mkdir conftest.dir
2552 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2553 test -s conftest.one && test -s conftest.two &&
2554 test -s conftest.dir/conftest.one &&
2555 test -s conftest.dir/conftest.two
2556 then
2557 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2558 break 3
2562 done
2563 done
2565 esac
2567 done
2568 IFS=$as_save_IFS
2570 rm -rf conftest.one conftest.two conftest.dir
2573 if test "${ac_cv_path_install+set}" = set; then
2574 INSTALL=$ac_cv_path_install
2575 else
2576 # As a last resort, use the slow shell script. Don't cache a
2577 # value for INSTALL within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the value is a relative name.
2580 INSTALL=$ac_install_sh
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2584 $as_echo "$INSTALL" >&6; }
2586 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2587 # It thinks the first close brace ends the variable substitution.
2588 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2590 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2592 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2595 $as_echo_n "checking whether build environment is sane... " >&6; }
2596 # Just in case
2597 sleep 1
2598 echo timestamp > conftest.file
2599 # Reject unsafe characters in $srcdir or the absolute working directory
2600 # name. Accept space and tab only in the latter.
2601 am_lf='
2603 case `pwd` in
2604 *[\\\"\#\$\&\'\`$am_lf]*)
2605 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2606 esac
2607 case $srcdir in
2608 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2609 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2610 esac
2612 # Do `set' in a subshell so we don't clobber the current shell's
2613 # arguments. Must try -L first in case configure is actually a
2614 # symlink; some systems play weird games with the mod time of symlinks
2615 # (eg FreeBSD returns the mod time of the symlink's containing
2616 # directory).
2617 if (
2618 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2619 if test "$*" = "X"; then
2620 # -L didn't work.
2621 set X `ls -t "$srcdir/configure" conftest.file`
2623 rm -f conftest.file
2624 if test "$*" != "X $srcdir/configure conftest.file" \
2625 && test "$*" != "X conftest.file $srcdir/configure"; then
2627 # If neither matched, then we have a broken ls. This can happen
2628 # if, for instance, CONFIG_SHELL is bash and it inherits a
2629 # broken ls alias from the environment. This has actually
2630 # happened. Such a system could not be considered "sane".
2631 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2632 alias in your environment" "$LINENO" 5
2635 test "$2" = conftest.file
2637 then
2638 # Ok.
2640 else
2641 as_fn_error $? "newly created file is older than distributed files!
2642 Check your system clock" "$LINENO" 5
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2645 $as_echo "yes" >&6; }
2646 test "$program_prefix" != NONE &&
2647 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2648 # Use a double $ so make ignores it.
2649 test "$program_suffix" != NONE &&
2650 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2651 # Double any \ or $.
2652 # By default was `s,x,x', remove it if useless.
2653 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2654 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2656 # expand $ac_aux_dir to an absolute path
2657 am_aux_dir=`cd $ac_aux_dir && pwd`
2659 if test x"${MISSING+set}" != xset; then
2660 case $am_aux_dir in
2661 *\ * | *\ *)
2662 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2664 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2665 esac
2667 # Use eval to expand $SHELL
2668 if eval "$MISSING --run true"; then
2669 am_missing_run="$MISSING --run "
2670 else
2671 am_missing_run=
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2673 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2676 if test x"${install_sh}" != xset; then
2677 case $am_aux_dir in
2678 *\ * | *\ *)
2679 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2681 install_sh="\${SHELL} $am_aux_dir/install-sh"
2682 esac
2685 # Installed binaries are usually stripped using `strip' when the user
2686 # run `make install-strip'. However `strip' might not be the right
2687 # tool to use in cross-compilation environments, therefore Automake
2688 # will honor the `STRIP' environment variable to overrule this program.
2689 if test "$cross_compiling" != no; then
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}strip; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_STRIP+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test -n "$STRIP"; then
2699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2712 done
2713 done
2714 IFS=$as_save_IFS
2718 STRIP=$ac_cv_prog_STRIP
2719 if test -n "$STRIP"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2721 $as_echo "$STRIP" >&6; }
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2729 if test -z "$ac_cv_prog_STRIP"; then
2730 ac_ct_STRIP=$STRIP
2731 # Extract the first word of "strip", so it can be a program name with args.
2732 set dummy strip; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test -n "$ac_ct_STRIP"; then
2739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_ac_ct_STRIP="strip"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2752 done
2753 done
2754 IFS=$as_save_IFS
2758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2759 if test -n "$ac_ct_STRIP"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2761 $as_echo "$ac_ct_STRIP" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2767 if test "x$ac_ct_STRIP" = x; then
2768 STRIP=":"
2769 else
2770 case $cross_compiling:$ac_tool_warned in
2771 yes:)
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774 ac_tool_warned=yes ;;
2775 esac
2776 STRIP=$ac_ct_STRIP
2778 else
2779 STRIP="$ac_cv_prog_STRIP"
2783 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2786 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2787 if test -z "$MKDIR_P"; then
2788 if ${ac_cv_path_mkdir+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_prog in mkdir gmkdir; do
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2799 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2800 'mkdir (GNU coreutils) '* | \
2801 'mkdir (coreutils) '* | \
2802 'mkdir (fileutils) '4.1*)
2803 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2804 break 3;;
2805 esac
2806 done
2807 done
2808 done
2809 IFS=$as_save_IFS
2813 test -d ./--version && rmdir ./--version
2814 if test "${ac_cv_path_mkdir+set}" = set; then
2815 MKDIR_P="$ac_cv_path_mkdir -p"
2816 else
2817 # As a last resort, use the slow shell script. Don't cache a
2818 # value for MKDIR_P within a source directory, because that will
2819 # break other packages using the cache if that directory is
2820 # removed, or if the value is a relative name.
2821 MKDIR_P="$ac_install_sh -d"
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2825 $as_echo "$MKDIR_P" >&6; }
2827 mkdir_p="$MKDIR_P"
2828 case $mkdir_p in
2829 [\\/$]* | ?:[\\/]*) ;;
2830 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2831 esac
2833 for ac_prog in gawk mawk nawk awk
2835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2836 set dummy $ac_prog; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_AWK+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$AWK"; then
2843 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_AWK="$ac_prog"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2856 done
2857 done
2858 IFS=$as_save_IFS
2862 AWK=$ac_cv_prog_AWK
2863 if test -n "$AWK"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2865 $as_echo "$AWK" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2872 test -n "$AWK" && break
2873 done
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2876 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2877 set x ${MAKE-make}
2878 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2879 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 cat >conftest.make <<\_ACEOF
2883 SHELL = /bin/sh
2884 all:
2885 @echo '@@@%%%=$(MAKE)=@@@%%%'
2886 _ACEOF
2887 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2888 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2889 *@@@%%%=?*=@@@%%%*)
2890 eval ac_cv_prog_make_${ac_make}_set=yes;;
2892 eval ac_cv_prog_make_${ac_make}_set=no;;
2893 esac
2894 rm -f conftest.make
2896 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2898 $as_echo "yes" >&6; }
2899 SET_MAKE=
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 SET_MAKE="MAKE=${MAKE-make}"
2906 rm -rf .tst 2>/dev/null
2907 mkdir .tst 2>/dev/null
2908 if test -d .tst; then
2909 am__leading_dot=.
2910 else
2911 am__leading_dot=_
2913 rmdir .tst 2>/dev/null
2915 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2916 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2917 # is not polluted with repeated "-I."
2918 am__isrc=' -I$(srcdir)'
2919 # test to see if srcdir already configured
2920 if test -f $srcdir/config.status; then
2921 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2925 # test whether we have cygpath
2926 if test -z "$CYGPATH_W"; then
2927 if (cygpath --version) >/dev/null 2>/dev/null; then
2928 CYGPATH_W='cygpath -w'
2929 else
2930 CYGPATH_W=echo
2935 # Define the identity of the package.
2936 PACKAGE='dnscrypt-proxy'
2937 VERSION='1.3.0'
2940 cat >>confdefs.h <<_ACEOF
2941 #define PACKAGE "$PACKAGE"
2942 _ACEOF
2945 cat >>confdefs.h <<_ACEOF
2946 #define VERSION "$VERSION"
2947 _ACEOF
2949 # Some tools Automake needs.
2951 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2954 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2957 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2960 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2963 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2965 # We need awk for the "check" target. The system "awk" is bad on
2966 # some platforms.
2967 # Always define AMTAR for backward compatibility. Yes, it's still used
2968 # in the wild :-( We should find a proper way to deprecate it ...
2969 AMTAR='$${TAR-tar}'
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2973 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2974 # Loop over all known methods to create a tar archive until one works.
2975 _am_tools='gnutar plaintar pax cpio none'
2976 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2977 # Do not fold the above two line into one, because Tru64 sh and
2978 # Solaris sh will not grok spaces in the rhs of `-'.
2979 for _am_tool in $_am_tools
2981 case $_am_tool in
2982 gnutar)
2983 for _am_tar in tar gnutar gtar;
2985 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2986 ($_am_tar --version) >&5 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } && break
2990 done
2991 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2992 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2993 am__untar="$_am_tar -xf -"
2995 plaintar)
2996 # Must skip GNU tar: if it does not support --format= it doesn't create
2997 # ustar tarball either.
2998 (tar --version) >/dev/null 2>&1 && continue
2999 am__tar='tar chf - "$$tardir"'
3000 am__tar_='tar chf - "$tardir"'
3001 am__untar='tar xf -'
3003 pax)
3004 am__tar='pax -L -x ustar -w "$$tardir"'
3005 am__tar_='pax -L -x ustar -w "$tardir"'
3006 am__untar='pax -r'
3008 cpio)
3009 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3010 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3011 am__untar='cpio -i -H ustar -d'
3013 none)
3014 am__tar=false
3015 am__tar_=false
3016 am__untar=false
3018 esac
3020 # If the value was cached, stop now. We just wanted to have am__tar
3021 # and am__untar set.
3022 test -n "${am_cv_prog_tar_ustar}" && break
3024 # tar/untar a dummy directory, and stop if the command works
3025 rm -rf conftest.dir
3026 mkdir conftest.dir
3027 echo GrepMe > conftest.dir/file
3028 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3029 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }
3033 rm -rf conftest.dir
3034 if test -s conftest.tar; then
3035 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3036 ($am__untar <conftest.tar) >&5 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }
3040 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3042 done
3043 rm -rf conftest.dir
3045 if ${am_cv_prog_tar_ustar+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 am_cv_prog_tar_ustar=$_am_tool
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3052 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3060 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3061 # Check whether --enable-maintainer-mode was given.
3062 if test "${enable_maintainer_mode+set}" = set; then :
3063 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3064 else
3065 USE_MAINTAINER_MODE=no
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3069 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3070 if test $USE_MAINTAINER_MODE = yes; then
3071 MAINTAINER_MODE_TRUE=
3072 MAINTAINER_MODE_FALSE='#'
3073 else
3074 MAINTAINER_MODE_TRUE='#'
3075 MAINTAINER_MODE_FALSE=
3078 MAINT=$MAINTAINER_MODE_TRUE
3081 # Check whether --enable-dependency-tracking was given.
3082 if test "${enable_dependency_tracking+set}" = set; then :
3083 enableval=$enable_dependency_tracking;
3086 if test "x$enable_dependency_tracking" != xno; then
3087 am_depcomp="$ac_aux_dir/depcomp"
3088 AMDEPBACKSLASH='\'
3089 am__nodep='_no'
3091 if test "x$enable_dependency_tracking" != xno; then
3092 AMDEP_TRUE=
3093 AMDEP_FALSE='#'
3094 else
3095 AMDEP_TRUE='#'
3096 AMDEP_FALSE=
3102 ISODATE=`date +%Y-%m-%d`
3105 LX_CFLAGS=${CFLAGS-NONE}
3106 DEPDIR="${am__leading_dot}deps"
3108 ac_config_commands="$ac_config_commands depfiles"
3111 am_make=${MAKE-make}
3112 cat > confinc << 'END'
3113 am__doit:
3114 @echo this is the am__doit target
3115 .PHONY: am__doit
3117 # If we don't find an include directive, just comment out the code.
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3119 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3120 am__include="#"
3121 am__quote=
3122 _am_result=none
3123 # First try GNU make style include.
3124 echo "include confinc" > confmf
3125 # Ignore all kinds of additional output from `make'.
3126 case `$am_make -s -f confmf 2> /dev/null` in #(
3127 *the\ am__doit\ target*)
3128 am__include=include
3129 am__quote=
3130 _am_result=GNU
3132 esac
3133 # Now try BSD make style include.
3134 if test "$am__include" = "#"; then
3135 echo '.include "confinc"' > confmf
3136 case `$am_make -s -f confmf 2> /dev/null` in #(
3137 *the\ am__doit\ target*)
3138 am__include=.include
3139 am__quote="\""
3140 _am_result=BSD
3142 esac
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3147 $as_echo "$_am_result" >&6; }
3148 rm -f confinc confmf
3150 ac_ext=c
3151 ac_cpp='$CPP $CPPFLAGS'
3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155 if test -n "$ac_tool_prefix"; then
3156 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_CC+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3177 done
3178 done
3179 IFS=$as_save_IFS
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3194 if test -z "$ac_cv_prog_CC"; then
3195 ac_ct_CC=$CC
3196 # Extract the first word of "gcc", so it can be a program name with args.
3197 set dummy gcc; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$ac_ct_CC"; then
3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_ac_ct_CC="gcc"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3217 done
3218 done
3219 IFS=$as_save_IFS
3223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224 if test -n "$ac_ct_CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226 $as_echo "$ac_ct_CC" >&6; }
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3232 if test "x$ac_ct_CC" = x; then
3233 CC=""
3234 else
3235 case $cross_compiling:$ac_tool_warned in
3236 yes:)
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned=yes ;;
3240 esac
3241 CC=$ac_ct_CC
3243 else
3244 CC="$ac_cv_prog_CC"
3247 if test -z "$CC"; then
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}cc; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_CC+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_CC="${ac_tool_prefix}cc"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3270 done
3271 done
3272 IFS=$as_save_IFS
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279 $as_echo "$CC" >&6; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3288 if test -z "$CC"; then
3289 # Extract the first word of "cc", so it can be a program name with args.
3290 set dummy cc; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if ${ac_cv_prog_CC+:} false; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3298 else
3299 ac_prog_rejected=no
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3308 ac_prog_rejected=yes
3309 continue
3311 ac_cv_prog_CC="cc"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3315 done
3316 done
3317 IFS=$as_save_IFS
3319 if test $ac_prog_rejected = yes; then
3320 # We found a bogon in the path, so make sure we never use it.
3321 set dummy $ac_cv_prog_CC
3322 shift
3323 if test $# != 0; then
3324 # We chose a different compiler from the bogus one.
3325 # However, it has the same basename, so the bogon will be chosen
3326 # first if we set CC to just the basename; use the full file name.
3327 shift
3328 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3333 CC=$ac_cv_prog_CC
3334 if test -n "$CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 $as_echo "$CC" >&6; }
3337 else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3344 if test -z "$CC"; then
3345 if test -n "$ac_tool_prefix"; then
3346 for ac_prog in cl.exe
3348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_CC+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 break 2
3369 done
3370 done
3371 IFS=$as_save_IFS
3375 CC=$ac_cv_prog_CC
3376 if test -n "$CC"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378 $as_echo "$CC" >&6; }
3379 else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3385 test -n "$CC" && break
3386 done
3388 if test -z "$CC"; then
3389 ac_ct_CC=$CC
3390 for ac_prog in cl.exe
3392 # Extract the first word of "$ac_prog", so it can be a program name with args.
3393 set dummy $ac_prog; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 if test -n "$ac_ct_CC"; then
3400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_ac_ct_CC="$ac_prog"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3413 done
3414 done
3415 IFS=$as_save_IFS
3419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420 if test -n "$ac_ct_CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422 $as_echo "$ac_ct_CC" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3429 test -n "$ac_ct_CC" && break
3430 done
3432 if test "x$ac_ct_CC" = x; then
3433 CC=""
3434 else
3435 case $cross_compiling:$ac_tool_warned in
3436 yes:)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439 ac_tool_warned=yes ;;
3440 esac
3441 CC=$ac_ct_CC
3448 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "no acceptable C compiler found in \$PATH
3451 See \`config.log' for more details" "$LINENO" 5; }
3453 # Provide some information about the compiler.
3454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3455 set X $ac_compile
3456 ac_compiler=$2
3457 for ac_option in --version -v -V -qversion; do
3458 { { ac_try="$ac_compiler $ac_option >&5"
3459 case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3466 ac_status=$?
3467 if test -s conftest.err; then
3468 sed '10a\
3469 ... rest of stderr output deleted ...
3470 10q' conftest.err >conftest.er1
3471 cat conftest.er1 >&5
3473 rm -f conftest.er1 conftest.err
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }
3476 done
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3482 main ()
3486 return 0;
3488 _ACEOF
3489 ac_clean_files_save=$ac_clean_files
3490 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3491 # Try to create an executable without -o first, disregard a.out.
3492 # It will help us diagnose broken compilers, and finding out an intuition
3493 # of exeext.
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3495 $as_echo_n "checking whether the C compiler works... " >&6; }
3496 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3498 # The possible output files:
3499 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3501 ac_rmfiles=
3502 for ac_file in $ac_files
3504 case $ac_file in
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3506 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3507 esac
3508 done
3509 rm -f $ac_rmfiles
3511 if { { ac_try="$ac_link_default"
3512 case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518 (eval "$ac_link_default") 2>&5
3519 ac_status=$?
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; then :
3522 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3523 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3524 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3525 # so that the user can short-circuit this test for compilers unknown to
3526 # Autoconf.
3527 for ac_file in $ac_files ''
3529 test -f "$ac_file" || continue
3530 case $ac_file in
3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3533 [ab].out )
3534 # We found the default executable, but exeext='' is most
3535 # certainly right.
3536 break;;
3537 *.* )
3538 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3539 then :; else
3540 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3542 # We set ac_cv_exeext here because the later test for it is not
3543 # safe: cross compilers may not add the suffix if given an `-o'
3544 # argument, so we may need to know it at that point already.
3545 # Even if this section looks crufty: it has the advantage of
3546 # actually working.
3547 break;;
3549 break;;
3550 esac
3551 done
3552 test "$ac_cv_exeext" = no && ac_cv_exeext=
3554 else
3555 ac_file=''
3557 if test -z "$ac_file"; then :
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 $as_echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error 77 "C compiler cannot create executables
3566 See \`config.log' for more details" "$LINENO" 5; }
3567 else
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3569 $as_echo "yes" >&6; }
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3572 $as_echo_n "checking for C compiler default output file name... " >&6; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3574 $as_echo "$ac_file" >&6; }
3575 ac_exeext=$ac_cv_exeext
3577 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3578 ac_clean_files=$ac_clean_files_save
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3580 $as_echo_n "checking for suffix of executables... " >&6; }
3581 if { { ac_try="$ac_link"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link") 2>&5
3589 ac_status=$?
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; then :
3592 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3593 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3594 # work properly (i.e., refer to `conftest.exe'), while it won't with
3595 # `rm'.
3596 for ac_file in conftest.exe conftest conftest.*; do
3597 test -f "$ac_file" || continue
3598 case $ac_file in
3599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3600 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3601 break;;
3602 * ) break;;
3603 esac
3604 done
3605 else
3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3609 See \`config.log' for more details" "$LINENO" 5; }
3611 rm -f conftest conftest$ac_cv_exeext
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3613 $as_echo "$ac_cv_exeext" >&6; }
3615 rm -f conftest.$ac_ext
3616 EXEEXT=$ac_cv_exeext
3617 ac_exeext=$EXEEXT
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620 #include <stdio.h>
3622 main ()
3624 FILE *f = fopen ("conftest.out", "w");
3625 return ferror (f) || fclose (f) != 0;
3628 return 0;
3630 _ACEOF
3631 ac_clean_files="$ac_clean_files conftest.out"
3632 # Check that the compiler produces executables we can run. If not, either
3633 # the compiler is broken, or we cross compile.
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3635 $as_echo_n "checking whether we are cross compiling... " >&6; }
3636 if test "$cross_compiling" != yes; then
3637 { { ac_try="$ac_link"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_link") 2>&5
3645 ac_status=$?
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }
3648 if { ac_try='./conftest$ac_cv_exeext'
3649 { { case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652 esac
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$ac_try_echo"; } >&5
3655 (eval "$ac_try") 2>&5
3656 ac_status=$?
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }; }; then
3659 cross_compiling=no
3660 else
3661 if test "$cross_compiling" = maybe; then
3662 cross_compiling=yes
3663 else
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error $? "cannot run C compiled programs.
3667 If you meant to cross compile, use \`--host'.
3668 See \`config.log' for more details" "$LINENO" 5; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3673 $as_echo "$cross_compiling" >&6; }
3675 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3676 ac_clean_files=$ac_clean_files_save
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3678 $as_echo_n "checking for suffix of object files... " >&6; }
3679 if ${ac_cv_objext+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3686 main ()
3690 return 0;
3692 _ACEOF
3693 rm -f conftest.o conftest.obj
3694 if { { ac_try="$ac_compile"
3695 case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_compile") 2>&5
3702 ac_status=$?
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }; then :
3705 for ac_file in conftest.o conftest.obj conftest.*; do
3706 test -f "$ac_file" || continue;
3707 case $ac_file in
3708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3709 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3710 break;;
3711 esac
3712 done
3713 else
3714 $as_echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3719 as_fn_error $? "cannot compute suffix of object files: cannot compile
3720 See \`config.log' for more details" "$LINENO" 5; }
3722 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3725 $as_echo "$ac_cv_objext" >&6; }
3726 OBJEXT=$ac_cv_objext
3727 ac_objext=$OBJEXT
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3729 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3730 if ${ac_cv_c_compiler_gnu+:} false; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3737 main ()
3739 #ifndef __GNUC__
3740 choke me
3741 #endif
3744 return 0;
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_compiler_gnu=yes
3749 else
3750 ac_compiler_gnu=no
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3757 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3758 if test $ac_compiler_gnu = yes; then
3759 GCC=yes
3760 else
3761 GCC=
3763 ac_test_CFLAGS=${CFLAGS+set}
3764 ac_save_CFLAGS=$CFLAGS
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3766 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3767 if ${ac_cv_prog_cc_g+:} false; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 ac_save_c_werror_flag=$ac_c_werror_flag
3771 ac_c_werror_flag=yes
3772 ac_cv_prog_cc_g=no
3773 CFLAGS="-g"
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3778 main ()
3782 return 0;
3784 _ACEOF
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786 ac_cv_prog_cc_g=yes
3787 else
3788 CFLAGS=""
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3793 main ()
3797 return 0;
3799 _ACEOF
3800 if ac_fn_c_try_compile "$LINENO"; then :
3802 else
3803 ac_c_werror_flag=$ac_save_c_werror_flag
3804 CFLAGS="-g"
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3809 main ()
3813 return 0;
3815 _ACEOF
3816 if ac_fn_c_try_compile "$LINENO"; then :
3817 ac_cv_prog_cc_g=yes
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_c_werror_flag=$ac_save_c_werror_flag
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3827 $as_echo "$ac_cv_prog_cc_g" >&6; }
3828 if test "$ac_test_CFLAGS" = set; then
3829 CFLAGS=$ac_save_CFLAGS
3830 elif test $ac_cv_prog_cc_g = yes; then
3831 if test "$GCC" = yes; then
3832 CFLAGS="-g -O2"
3833 else
3834 CFLAGS="-g"
3836 else
3837 if test "$GCC" = yes; then
3838 CFLAGS="-O2"
3839 else
3840 CFLAGS=
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3844 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3845 if ${ac_cv_prog_cc_c89+:} false; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 ac_cv_prog_cc_c89=no
3849 ac_save_CC=$CC
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3852 #include <stdarg.h>
3853 #include <stdio.h>
3854 struct stat;
3855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3856 struct buf { int x; };
3857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3858 static char *e (p, i)
3859 char **p;
3860 int i;
3862 return p[i];
3864 static char *f (char * (*g) (char **, int), char **p, ...)
3866 char *s;
3867 va_list v;
3868 va_start (v,p);
3869 s = g (p, va_arg (v,int));
3870 va_end (v);
3871 return s;
3874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3875 function prototypes and stuff, but not '\xHH' hex character constants.
3876 These don't provoke an error unfortunately, instead are silently treated
3877 as 'x'. The following induces an error, until -std is added to get
3878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3879 array size at least. It's necessary to write '\x00'==0 to get something
3880 that's true only with -std. */
3881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3883 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3884 inside strings and character constants. */
3885 #define FOO(x) 'x'
3886 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3888 int test (int i, double x);
3889 struct s1 {int (*f) (int a);};
3890 struct s2 {int (*f) (double a);};
3891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3892 int argc;
3893 char **argv;
3895 main ()
3897 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3899 return 0;
3901 _ACEOF
3902 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3903 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3905 CC="$ac_save_CC $ac_arg"
3906 if ac_fn_c_try_compile "$LINENO"; then :
3907 ac_cv_prog_cc_c89=$ac_arg
3909 rm -f core conftest.err conftest.$ac_objext
3910 test "x$ac_cv_prog_cc_c89" != "xno" && break
3911 done
3912 rm -f conftest.$ac_ext
3913 CC=$ac_save_CC
3916 # AC_CACHE_VAL
3917 case "x$ac_cv_prog_cc_c89" in
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3920 $as_echo "none needed" >&6; } ;;
3921 xno)
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3923 $as_echo "unsupported" >&6; } ;;
3925 CC="$CC $ac_cv_prog_cc_c89"
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3927 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3928 esac
3929 if test "x$ac_cv_prog_cc_c89" != xno; then :
3933 ac_ext=c
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939 depcc="$CC" am_compiler_list=
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3942 $as_echo_n "checking dependency style of $depcc... " >&6; }
3943 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3947 # We make a subdir and do the tests there. Otherwise we can end up
3948 # making bogus files that we don't know about and never remove. For
3949 # instance it was reported that on HP-UX the gcc test will end up
3950 # making a dummy file named `D' -- because `-MD' means `put the output
3951 # in D'.
3952 rm -rf conftest.dir
3953 mkdir conftest.dir
3954 # Copy depcomp to subdir because otherwise we won't find it if we're
3955 # using a relative directory.
3956 cp "$am_depcomp" conftest.dir
3957 cd conftest.dir
3958 # We will build objects and dependencies in a subdirectory because
3959 # it helps to detect inapplicable dependency modes. For instance
3960 # both Tru64's cc and ICC support -MD to output dependencies as a
3961 # side effect of compilation, but ICC will put the dependencies in
3962 # the current directory while Tru64 will put them in the object
3963 # directory.
3964 mkdir sub
3966 am_cv_CC_dependencies_compiler_type=none
3967 if test "$am_compiler_list" = ""; then
3968 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3970 am__universal=false
3971 case " $depcc " in #(
3972 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3973 esac
3975 for depmode in $am_compiler_list; do
3976 # Setup a source with many dependencies, because some compilers
3977 # like to wrap large dependency lists on column 80 (with \), and
3978 # we should not choose a depcomp mode which is confused by this.
3980 # We need to recreate these files for each test, as the compiler may
3981 # overwrite some of them when testing with obscure command lines.
3982 # This happens at least with the AIX C compiler.
3983 : > sub/conftest.c
3984 for i in 1 2 3 4 5 6; do
3985 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3986 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3987 # Solaris 8's {/usr,}/bin/sh.
3988 touch sub/conftst$i.h
3989 done
3990 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3992 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3993 # mode. It turns out that the SunPro C++ compiler does not properly
3994 # handle `-M -o', and we need to detect this. Also, some Intel
3995 # versions had trouble with output in subdirs
3996 am__obj=sub/conftest.${OBJEXT-o}
3997 am__minus_obj="-o $am__obj"
3998 case $depmode in
3999 gcc)
4000 # This depmode causes a compiler race in universal mode.
4001 test "$am__universal" = false || continue
4003 nosideeffect)
4004 # after this tag, mechanisms are not by side-effect, so they'll
4005 # only be used when explicitly requested
4006 if test "x$enable_dependency_tracking" = xyes; then
4007 continue
4008 else
4009 break
4012 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4013 # This compiler won't grok `-c -o', but also, the minuso test has
4014 # not run yet. These depmodes are late enough in the game, and
4015 # so weak that their functioning should not be impacted.
4016 am__obj=conftest.${OBJEXT-o}
4017 am__minus_obj=
4019 none) break ;;
4020 esac
4021 if depmode=$depmode \
4022 source=sub/conftest.c object=$am__obj \
4023 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4024 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4025 >/dev/null 2>conftest.err &&
4026 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4027 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4028 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4029 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4030 # icc doesn't choke on unknown options, it will just issue warnings
4031 # or remarks (even with -Werror). So we grep stderr for any message
4032 # that says an option was ignored or not supported.
4033 # When given -MP, icc 7.0 and 7.1 complain thusly:
4034 # icc: Command line warning: ignoring option '-M'; no argument required
4035 # The diagnosis changed in icc 8.0:
4036 # icc: Command line remark: option '-MP' not supported
4037 if (grep 'ignoring option' conftest.err ||
4038 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4039 am_cv_CC_dependencies_compiler_type=$depmode
4040 break
4043 done
4045 cd ..
4046 rm -rf conftest.dir
4047 else
4048 am_cv_CC_dependencies_compiler_type=none
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4053 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4054 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4057 test "x$enable_dependency_tracking" != xno \
4058 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4059 am__fastdepCC_TRUE=
4060 am__fastdepCC_FALSE='#'
4061 else
4062 am__fastdepCC_TRUE='#'
4063 am__fastdepCC_FALSE=
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4068 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4069 if ${ac_cv_prog_cc_c99+:} false; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 ac_cv_prog_cc_c99=no
4073 ac_save_CC=$CC
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076 #include <stdarg.h>
4077 #include <stdbool.h>
4078 #include <stdlib.h>
4079 #include <wchar.h>
4080 #include <stdio.h>
4082 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4083 #define debug(...) fprintf (stderr, __VA_ARGS__)
4084 #define showlist(...) puts (#__VA_ARGS__)
4085 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4086 static void
4087 test_varargs_macros (void)
4089 int x = 1234;
4090 int y = 5678;
4091 debug ("Flag");
4092 debug ("X = %d\n", x);
4093 showlist (The first, second, and third items.);
4094 report (x>y, "x is %d but y is %d", x, y);
4097 // Check long long types.
4098 #define BIG64 18446744073709551615ull
4099 #define BIG32 4294967295ul
4100 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4101 #if !BIG_OK
4102 your preprocessor is broken;
4103 #endif
4104 #if BIG_OK
4105 #else
4106 your preprocessor is broken;
4107 #endif
4108 static long long int bignum = -9223372036854775807LL;
4109 static unsigned long long int ubignum = BIG64;
4111 struct incomplete_array
4113 int datasize;
4114 double data[];
4117 struct named_init {
4118 int number;
4119 const wchar_t *name;
4120 double average;
4123 typedef const char *ccp;
4125 static inline int
4126 test_restrict (ccp restrict text)
4128 // See if C++-style comments work.
4129 // Iterate through items via the restricted pointer.
4130 // Also check for declarations in for loops.
4131 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4132 continue;
4133 return 0;
4136 // Check varargs and va_copy.
4137 static void
4138 test_varargs (const char *format, ...)
4140 va_list args;
4141 va_start (args, format);
4142 va_list args_copy;
4143 va_copy (args_copy, args);
4145 const char *str;
4146 int number;
4147 float fnumber;
4149 while (*format)
4151 switch (*format++)
4153 case 's': // string
4154 str = va_arg (args_copy, const char *);
4155 break;
4156 case 'd': // int
4157 number = va_arg (args_copy, int);
4158 break;
4159 case 'f': // float
4160 fnumber = va_arg (args_copy, double);
4161 break;
4162 default:
4163 break;
4166 va_end (args_copy);
4167 va_end (args);
4171 main ()
4174 // Check bool.
4175 _Bool success = false;
4177 // Check restrict.
4178 if (test_restrict ("String literal") == 0)
4179 success = true;
4180 char *restrict newvar = "Another string";
4182 // Check varargs.
4183 test_varargs ("s, d' f .", "string", 65, 34.234);
4184 test_varargs_macros ();
4186 // Check flexible array members.
4187 struct incomplete_array *ia =
4188 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4189 ia->datasize = 10;
4190 for (int i = 0; i < ia->datasize; ++i)
4191 ia->data[i] = i * 1.234;
4193 // Check named initializers.
4194 struct named_init ni = {
4195 .number = 34,
4196 .name = L"Test wide string",
4197 .average = 543.34343,
4200 ni.number = 58;
4202 int dynamic_array[ni.number];
4203 dynamic_array[ni.number - 1] = 543;
4205 // work around unused variable warnings
4206 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4207 || dynamic_array[ni.number - 1] != 543);
4210 return 0;
4212 _ACEOF
4213 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4215 CC="$ac_save_CC $ac_arg"
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_prog_cc_c99=$ac_arg
4219 rm -f core conftest.err conftest.$ac_objext
4220 test "x$ac_cv_prog_cc_c99" != "xno" && break
4221 done
4222 rm -f conftest.$ac_ext
4223 CC=$ac_save_CC
4226 # AC_CACHE_VAL
4227 case "x$ac_cv_prog_cc_c99" in
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4230 $as_echo "none needed" >&6; } ;;
4231 xno)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4233 $as_echo "unsupported" >&6; } ;;
4235 CC="$CC $ac_cv_prog_cc_c99"
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4237 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4238 esac
4239 if test "x$ac_cv_prog_cc_c99" != xno; then :
4245 ac_ext=c
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4251 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4252 # On Suns, sometimes $CPP names a directory.
4253 if test -n "$CPP" && test -d "$CPP"; then
4254 CPP=
4256 if test -z "$CPP"; then
4257 if ${ac_cv_prog_CPP+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 # Double quotes because CPP needs to be expanded
4261 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4263 ac_preproc_ok=false
4264 for ac_c_preproc_warn_flag in '' yes
4266 # Use a header file that comes with gcc, so configuring glibc
4267 # with a fresh cross-compiler works.
4268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4269 # <limits.h> exists even on freestanding compilers.
4270 # On the NeXT, cc -E runs the code through the compiler's parser,
4271 # not just through cpp. "Syntax error" is here to catch this case.
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 #ifdef __STDC__
4275 # include <limits.h>
4276 #else
4277 # include <assert.h>
4278 #endif
4279 Syntax error
4280 _ACEOF
4281 if ac_fn_c_try_cpp "$LINENO"; then :
4283 else
4284 # Broken: fails on valid input.
4285 continue
4287 rm -f conftest.err conftest.i conftest.$ac_ext
4289 # OK, works on sane cases. Now check whether nonexistent headers
4290 # can be detected and how.
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #include <ac_nonexistent.h>
4294 _ACEOF
4295 if ac_fn_c_try_cpp "$LINENO"; then :
4296 # Broken: success on invalid input.
4297 continue
4298 else
4299 # Passes both tests.
4300 ac_preproc_ok=:
4301 break
4303 rm -f conftest.err conftest.i conftest.$ac_ext
4305 done
4306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4307 rm -f conftest.i conftest.err conftest.$ac_ext
4308 if $ac_preproc_ok; then :
4309 break
4312 done
4313 ac_cv_prog_CPP=$CPP
4316 CPP=$ac_cv_prog_CPP
4317 else
4318 ac_cv_prog_CPP=$CPP
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4321 $as_echo "$CPP" >&6; }
4322 ac_preproc_ok=false
4323 for ac_c_preproc_warn_flag in '' yes
4325 # Use a header file that comes with gcc, so configuring glibc
4326 # with a fresh cross-compiler works.
4327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 # <limits.h> exists even on freestanding compilers.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error" is here to catch this case.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 #ifdef __STDC__
4334 # include <limits.h>
4335 #else
4336 # include <assert.h>
4337 #endif
4338 Syntax error
4339 _ACEOF
4340 if ac_fn_c_try_cpp "$LINENO"; then :
4342 else
4343 # Broken: fails on valid input.
4344 continue
4346 rm -f conftest.err conftest.i conftest.$ac_ext
4348 # OK, works on sane cases. Now check whether nonexistent headers
4349 # can be detected and how.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #include <ac_nonexistent.h>
4353 _ACEOF
4354 if ac_fn_c_try_cpp "$LINENO"; then :
4355 # Broken: success on invalid input.
4356 continue
4357 else
4358 # Passes both tests.
4359 ac_preproc_ok=:
4360 break
4362 rm -f conftest.err conftest.i conftest.$ac_ext
4364 done
4365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4366 rm -f conftest.i conftest.err conftest.$ac_ext
4367 if $ac_preproc_ok; then :
4369 else
4370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4373 See \`config.log' for more details" "$LINENO" 5; }
4376 ac_ext=c
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4384 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4385 if ${ac_cv_path_GREP+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if test -z "$GREP"; then
4389 ac_path_GREP_found=false
4390 # Loop through the user's path and test for each of PROGNAME-LIST
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_prog in grep ggrep; do
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4399 as_fn_executable_p "$ac_path_GREP" || continue
4400 # Check for GNU ac_path_GREP and select it if it is found.
4401 # Check for GNU $ac_path_GREP
4402 case `"$ac_path_GREP" --version 2>&1` in
4403 *GNU*)
4404 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4406 ac_count=0
4407 $as_echo_n 0123456789 >"conftest.in"
4408 while :
4410 cat "conftest.in" "conftest.in" >"conftest.tmp"
4411 mv "conftest.tmp" "conftest.in"
4412 cp "conftest.in" "conftest.nl"
4413 $as_echo 'GREP' >> "conftest.nl"
4414 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416 as_fn_arith $ac_count + 1 && ac_count=$as_val
4417 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4418 # Best one so far, save it but keep looking for a better one
4419 ac_cv_path_GREP="$ac_path_GREP"
4420 ac_path_GREP_max=$ac_count
4422 # 10*(2^10) chars as input seems more than enough
4423 test $ac_count -gt 10 && break
4424 done
4425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426 esac
4428 $ac_path_GREP_found && break 3
4429 done
4430 done
4431 done
4432 IFS=$as_save_IFS
4433 if test -z "$ac_cv_path_GREP"; then
4434 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4436 else
4437 ac_cv_path_GREP=$GREP
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4442 $as_echo "$ac_cv_path_GREP" >&6; }
4443 GREP="$ac_cv_path_GREP"
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4447 $as_echo_n "checking for egrep... " >&6; }
4448 if ${ac_cv_path_EGREP+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4452 then ac_cv_path_EGREP="$GREP -E"
4453 else
4454 if test -z "$EGREP"; then
4455 ac_path_EGREP_found=false
4456 # Loop through the user's path and test for each of PROGNAME-LIST
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_prog in egrep; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4465 as_fn_executable_p "$ac_path_EGREP" || continue
4466 # Check for GNU ac_path_EGREP and select it if it is found.
4467 # Check for GNU $ac_path_EGREP
4468 case `"$ac_path_EGREP" --version 2>&1` in
4469 *GNU*)
4470 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4472 ac_count=0
4473 $as_echo_n 0123456789 >"conftest.in"
4474 while :
4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
4477 mv "conftest.tmp" "conftest.in"
4478 cp "conftest.in" "conftest.nl"
4479 $as_echo 'EGREP' >> "conftest.nl"
4480 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
4483 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4484 # Best one so far, save it but keep looking for a better one
4485 ac_cv_path_EGREP="$ac_path_EGREP"
4486 ac_path_EGREP_max=$ac_count
4488 # 10*(2^10) chars as input seems more than enough
4489 test $ac_count -gt 10 && break
4490 done
4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4492 esac
4494 $ac_path_EGREP_found && break 3
4495 done
4496 done
4497 done
4498 IFS=$as_save_IFS
4499 if test -z "$ac_cv_path_EGREP"; then
4500 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502 else
4503 ac_cv_path_EGREP=$EGREP
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4509 $as_echo "$ac_cv_path_EGREP" >&6; }
4510 EGREP="$ac_cv_path_EGREP"
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4514 $as_echo_n "checking for ANSI C header files... " >&6; }
4515 if ${ac_cv_header_stdc+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520 #include <stdlib.h>
4521 #include <stdarg.h>
4522 #include <string.h>
4523 #include <float.h>
4526 main ()
4530 return 0;
4532 _ACEOF
4533 if ac_fn_c_try_compile "$LINENO"; then :
4534 ac_cv_header_stdc=yes
4535 else
4536 ac_cv_header_stdc=no
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 if test $ac_cv_header_stdc = yes; then
4541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544 #include <string.h>
4546 _ACEOF
4547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4548 $EGREP "memchr" >/dev/null 2>&1; then :
4550 else
4551 ac_cv_header_stdc=no
4553 rm -f conftest*
4557 if test $ac_cv_header_stdc = yes; then
4558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561 #include <stdlib.h>
4563 _ACEOF
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 $EGREP "free" >/dev/null 2>&1; then :
4567 else
4568 ac_cv_header_stdc=no
4570 rm -f conftest*
4574 if test $ac_cv_header_stdc = yes; then
4575 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4576 if test "$cross_compiling" = yes; then :
4578 else
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581 #include <ctype.h>
4582 #include <stdlib.h>
4583 #if ((' ' & 0x0FF) == 0x020)
4584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4586 #else
4587 # define ISLOWER(c) \
4588 (('a' <= (c) && (c) <= 'i') \
4589 || ('j' <= (c) && (c) <= 'r') \
4590 || ('s' <= (c) && (c) <= 'z'))
4591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4592 #endif
4594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4596 main ()
4598 int i;
4599 for (i = 0; i < 256; i++)
4600 if (XOR (islower (i), ISLOWER (i))
4601 || toupper (i) != TOUPPER (i))
4602 return 2;
4603 return 0;
4605 _ACEOF
4606 if ac_fn_c_try_run "$LINENO"; then :
4608 else
4609 ac_cv_header_stdc=no
4611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4612 conftest.$ac_objext conftest.beam conftest.$ac_ext
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4618 $as_echo "$ac_cv_header_stdc" >&6; }
4619 if test $ac_cv_header_stdc = yes; then
4621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4625 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4626 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4627 inttypes.h stdint.h unistd.h
4628 do :
4629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4632 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4633 cat >>confdefs.h <<_ACEOF
4634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4635 _ACEOF
4639 done
4643 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4644 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4645 MINIX=yes
4646 else
4647 MINIX=
4651 if test "$MINIX" = yes; then
4653 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4656 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4659 $as_echo "#define _MINIX 1" >>confdefs.h
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4665 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4666 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4672 # define __EXTENSIONS__ 1
4673 $ac_includes_default
4675 main ()
4679 return 0;
4681 _ACEOF
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683 ac_cv_safe_to_define___extensions__=yes
4684 else
4685 ac_cv_safe_to_define___extensions__=no
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4690 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4691 test $ac_cv_safe_to_define___extensions__ = yes &&
4692 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4694 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4696 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4698 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4700 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4703 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
4706 $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
4707 if ${ax_cv_check_cflags___fPIC+:} false; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4711 ax_check_save_flags=$CFLAGS
4712 CFLAGS="$CFLAGS -fPIC"
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715 #include <stdio.h>
4717 main ()
4719 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4721 return 0;
4723 _ACEOF
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 ax_cv_check_cflags___fPIC=yes
4726 else
4727 ax_cv_check_cflags___fPIC=no
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 CFLAGS=$ax_check_save_flags
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
4733 $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
4734 if test x"$ax_cv_check_cflags___fPIC" = xyes; then :
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIC" >&5
4737 $as_echo_n "checking whether the linker accepts -fPIC... " >&6; }
4738 if ${ax_cv_check_ldflags___fPIC+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4742 ax_check_save_flags=$LDFLAGS
4743 LDFLAGS="$LDFLAGS -fPIC"
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746 #include <stdio.h>
4748 main ()
4750 char x[42U];if (fgets(x,1000,stdin)) puts(x)
4752 return 0;
4754 _ACEOF
4755 if ac_fn_c_try_link "$LINENO"; then :
4756 ax_cv_check_ldflags___fPIC=yes
4757 else
4758 ax_cv_check_ldflags___fPIC=no
4760 rm -f core conftest.err conftest.$ac_objext \
4761 conftest$ac_exeext conftest.$ac_ext
4762 LDFLAGS=$ax_check_save_flags
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIC" >&5
4765 $as_echo "$ax_cv_check_ldflags___fPIC" >&6; }
4766 if test x"$ax_cv_check_ldflags___fPIC" = xyes; then :
4767 CFLAGS="$CFLAGS -fPIC"
4769 else
4774 else
4779 if test "$enable_pie" != "no"; then :
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
4782 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
4783 if ${ax_cv_check_cflags___fPIE+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4787 ax_check_save_flags=$CFLAGS
4788 CFLAGS="$CFLAGS -fPIE"
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791 #include <stdio.h>
4793 main ()
4795 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4797 return 0;
4799 _ACEOF
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801 ax_cv_check_cflags___fPIE=yes
4802 else
4803 ax_cv_check_cflags___fPIE=no
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 CFLAGS=$ax_check_save_flags
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
4809 $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
4810 if test x"$ax_cv_check_cflags___fPIE" = xyes; then :
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE" >&5
4813 $as_echo_n "checking whether the linker accepts -fPIE... " >&6; }
4814 if ${ax_cv_check_ldflags___fPIE+:} false; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4818 ax_check_save_flags=$LDFLAGS
4819 LDFLAGS="$LDFLAGS -fPIE"
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 #include <stdio.h>
4824 main ()
4826 char x[42U];if (fgets(x,1000,stdin)) puts(x)
4828 return 0;
4830 _ACEOF
4831 if ac_fn_c_try_link "$LINENO"; then :
4832 ax_cv_check_ldflags___fPIE=yes
4833 else
4834 ax_cv_check_ldflags___fPIE=no
4836 rm -f core conftest.err conftest.$ac_objext \
4837 conftest$ac_exeext conftest.$ac_ext
4838 LDFLAGS=$ax_check_save_flags
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIE" >&5
4841 $as_echo "$ax_cv_check_ldflags___fPIE" >&6; }
4842 if test x"$ax_cv_check_ldflags___fPIE" = xyes; then :
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
4844 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
4845 if ${ax_cv_check_ldflags___pie+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4849 ax_check_save_flags=$LDFLAGS
4850 LDFLAGS="$LDFLAGS -pie"
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 #include <stdio.h>
4855 main ()
4857 char x[42U];if (fgets(x,1000,stdin)) puts(x)
4859 return 0;
4861 _ACEOF
4862 if ac_fn_c_try_link "$LINENO"; then :
4863 ax_cv_check_ldflags___pie=yes
4864 else
4865 ax_cv_check_ldflags___pie=no
4867 rm -f core conftest.err conftest.$ac_objext \
4868 conftest$ac_exeext conftest.$ac_ext
4869 LDFLAGS=$ax_check_save_flags
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
4872 $as_echo "$ax_cv_check_ldflags___pie" >&6; }
4873 if test x"$ax_cv_check_ldflags___pie" = xyes; then :
4874 CFLAGS="$CFLAGS -fPIE"
4875 LDFLAGS="$LDFLAGS -pie"
4876 else
4881 else
4886 else
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
4894 $as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
4895 if ${ax_cv_check_cflags___fwrapv+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4899 ax_check_save_flags=$CFLAGS
4900 CFLAGS="$CFLAGS -fwrapv"
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 #include <stdio.h>
4905 main ()
4907 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4909 return 0;
4911 _ACEOF
4912 if ac_fn_c_try_compile "$LINENO"; then :
4913 ax_cv_check_cflags___fwrapv=yes
4914 else
4915 ax_cv_check_cflags___fwrapv=no
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 CFLAGS=$ax_check_save_flags
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
4921 $as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
4922 if test x"$ax_cv_check_cflags___fwrapv" = xyes; then :
4923 CFLAGS="$CFLAGS -fwrapv"
4924 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
4929 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
4930 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4934 ax_check_save_flags=$CFLAGS
4935 CFLAGS="$CFLAGS -fno-strict-aliasing"
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938 #include <stdio.h>
4940 main ()
4942 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4944 return 0;
4946 _ACEOF
4947 if ac_fn_c_try_compile "$LINENO"; then :
4948 ax_cv_check_cflags___fno_strict_aliasing=yes
4949 else
4950 ax_cv_check_cflags___fno_strict_aliasing=no
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 CFLAGS=$ax_check_save_flags
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
4956 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
4957 if test x"$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
4958 CFLAGS="$CFLAGS -fno-strict-aliasing"
4959 else
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
4964 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
4965 if ${ax_cv_check_cflags___fno_strict_overflow+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4969 ax_check_save_flags=$CFLAGS
4970 CFLAGS="$CFLAGS -fno-strict-overflow"
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 #include <stdio.h>
4975 main ()
4977 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4979 return 0;
4981 _ACEOF
4982 if ac_fn_c_try_compile "$LINENO"; then :
4983 ax_cv_check_cflags___fno_strict_overflow=yes
4984 else
4985 ax_cv_check_cflags___fno_strict_overflow=no
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 CFLAGS=$ax_check_save_flags
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
4991 $as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
4992 if test x"$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
4993 CFLAGS="$CFLAGS -fno-strict-overflow"
4994 else
4999 case $host_os in
5000 cygwin* | mingw* | pw32* | cegcc*)
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
5002 $as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
5003 if ${ax_cv_check_ldflags___Wl___dynamicbase+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5007 ax_check_save_flags=$LDFLAGS
5008 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 #include <stdio.h>
5013 main ()
5015 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5017 return 0;
5019 _ACEOF
5020 if ac_fn_c_try_link "$LINENO"; then :
5021 ax_cv_check_ldflags___Wl___dynamicbase=yes
5022 else
5023 ax_cv_check_ldflags___Wl___dynamicbase=no
5025 rm -f core conftest.err conftest.$ac_objext \
5026 conftest$ac_exeext conftest.$ac_ext
5027 LDFLAGS=$ax_check_save_flags
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
5030 $as_echo "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
5031 if test x"$ax_cv_check_ldflags___Wl___dynamicbase" = xyes; then :
5032 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
5033 else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
5038 $as_echo_n "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
5039 if ${ax_cv_check_ldflags___Wl___nxcompat+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5043 ax_check_save_flags=$LDFLAGS
5044 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 #include <stdio.h>
5049 main ()
5051 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5053 return 0;
5055 _ACEOF
5056 if ac_fn_c_try_link "$LINENO"; then :
5057 ax_cv_check_ldflags___Wl___nxcompat=yes
5058 else
5059 ax_cv_check_ldflags___Wl___nxcompat=no
5061 rm -f core conftest.err conftest.$ac_objext \
5062 conftest$ac_exeext conftest.$ac_ext
5063 LDFLAGS=$ax_check_save_flags
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
5066 $as_echo "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
5067 if test x"$ax_cv_check_ldflags___Wl___nxcompat" = xyes; then :
5068 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
5069 else
5074 dragonfly*)
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
5076 $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
5077 if ${ax_cv_check_cflags___fstack_protector+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5081 ax_check_save_flags=$CFLAGS
5082 CFLAGS="$CFLAGS -fstack-protector"
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 #include <stdio.h>
5087 main ()
5089 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5091 return 0;
5093 _ACEOF
5094 if ac_fn_c_try_compile "$LINENO"; then :
5095 ax_cv_check_cflags___fstack_protector=yes
5096 else
5097 ax_cv_check_cflags___fstack_protector=no
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 CFLAGS=$ax_check_save_flags
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
5103 $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
5104 if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then :
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
5107 $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
5108 if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5112 ax_check_save_flags=$LDFLAGS
5113 LDFLAGS="$LDFLAGS -fstack-protector"
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 #include <stdio.h>
5118 main ()
5120 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5122 return 0;
5124 _ACEOF
5125 if ac_fn_c_try_link "$LINENO"; then :
5126 ax_cv_check_ldflags___fstack_protector=yes
5127 else
5128 ax_cv_check_ldflags___fstack_protector=no
5130 rm -f core conftest.err conftest.$ac_objext \
5131 conftest$ac_exeext conftest.$ac_ext
5132 LDFLAGS=$ax_check_save_flags
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
5135 $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
5136 if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
5137 CFLAGS="$CFLAGS -fstack-protector"
5139 else
5144 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
5151 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
5152 if ${ax_cv_check_cflags___fstack_protector_all+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5156 ax_check_save_flags=$CFLAGS
5157 CFLAGS="$CFLAGS -fstack-protector-all"
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #include <stdio.h>
5162 main ()
5164 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5166 return 0;
5168 _ACEOF
5169 if ac_fn_c_try_compile "$LINENO"; then :
5170 ax_cv_check_cflags___fstack_protector_all=yes
5171 else
5172 ax_cv_check_cflags___fstack_protector_all=no
5174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175 CFLAGS=$ax_check_save_flags
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5
5178 $as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; }
5179 if test x"$ax_cv_check_cflags___fstack_protector_all" = xyes; then :
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
5182 $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
5183 if ${ax_cv_check_ldflags___fstack_protector_all+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5187 ax_check_save_flags=$LDFLAGS
5188 LDFLAGS="$LDFLAGS -fstack-protector-all"
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191 #include <stdio.h>
5193 main ()
5195 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5197 return 0;
5199 _ACEOF
5200 if ac_fn_c_try_link "$LINENO"; then :
5201 ax_cv_check_ldflags___fstack_protector_all=yes
5202 else
5203 ax_cv_check_ldflags___fstack_protector_all=no
5205 rm -f core conftest.err conftest.$ac_objext \
5206 conftest$ac_exeext conftest.$ac_ext
5207 LDFLAGS=$ax_check_save_flags
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_all" >&5
5210 $as_echo "$ax_cv_check_ldflags___fstack_protector_all" >&6; }
5211 if test x"$ax_cv_check_ldflags___fstack_protector_all" = xyes; then :
5212 CFLAGS="$CFLAGS -fstack-protector-all"
5214 else
5219 else
5224 esac
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winit-self" >&5
5227 $as_echo_n "checking whether C compiler accepts -Winit-self... " >&6; }
5228 if ${ax_cv_check_cflags___Winit_self+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5232 ax_check_save_flags=$CFLAGS
5233 CFLAGS="$CFLAGS -Winit-self"
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5236 #include <stdio.h>
5238 main ()
5240 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5242 return 0;
5244 _ACEOF
5245 if ac_fn_c_try_compile "$LINENO"; then :
5246 ax_cv_check_cflags___Winit_self=yes
5247 else
5248 ax_cv_check_cflags___Winit_self=no
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 CFLAGS=$ax_check_save_flags
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winit_self" >&5
5254 $as_echo "$ax_cv_check_cflags___Winit_self" >&6; }
5255 if test x"$ax_cv_check_cflags___Winit_self" = xyes; then :
5256 CFLAGS="$CFLAGS -Winit-self"
5257 else
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
5262 $as_echo_n "checking whether C compiler accepts -Wwrite-strings... " >&6; }
5263 if ${ax_cv_check_cflags___Wwrite_strings+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5267 ax_check_save_flags=$CFLAGS
5268 CFLAGS="$CFLAGS -Wwrite-strings"
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 #include <stdio.h>
5273 main ()
5275 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5277 return 0;
5279 _ACEOF
5280 if ac_fn_c_try_compile "$LINENO"; then :
5281 ax_cv_check_cflags___Wwrite_strings=yes
5282 else
5283 ax_cv_check_cflags___Wwrite_strings=no
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 CFLAGS=$ax_check_save_flags
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
5289 $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
5290 if test x"$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
5291 CFLAGS="$CFLAGS -Wwrite-strings"
5292 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
5297 $as_echo_n "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
5298 if ${ax_cv_check_cflags___Wdiv_by_zero+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5302 ax_check_save_flags=$CFLAGS
5303 CFLAGS="$CFLAGS -Wdiv-by-zero"
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 #include <stdio.h>
5308 main ()
5310 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5312 return 0;
5314 _ACEOF
5315 if ac_fn_c_try_compile "$LINENO"; then :
5316 ax_cv_check_cflags___Wdiv_by_zero=yes
5317 else
5318 ax_cv_check_cflags___Wdiv_by_zero=no
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 CFLAGS=$ax_check_save_flags
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
5324 $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
5325 if test x"$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
5326 CFLAGS="$CFLAGS -Wdiv-by-zero"
5327 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsometimes-uninitialized" >&5
5332 $as_echo_n "checking whether C compiler accepts -Wsometimes-uninitialized... " >&6; }
5333 if ${ax_cv_check_cflags___Wsometimes_uninitialized+:} false; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5337 ax_check_save_flags=$CFLAGS
5338 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341 #include <stdio.h>
5343 main ()
5345 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5347 return 0;
5349 _ACEOF
5350 if ac_fn_c_try_compile "$LINENO"; then :
5351 ax_cv_check_cflags___Wsometimes_uninitialized=yes
5352 else
5353 ax_cv_check_cflags___Wsometimes_uninitialized=no
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 CFLAGS=$ax_check_save_flags
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
5359 $as_echo "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
5360 if test x"$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes; then :
5361 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
5362 else
5369 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wall" | $as_tr_sh`
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wall" >&5
5371 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wall... " >&6; }
5372 if eval \${$as_CACHEVAR+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5376 ax_check_save_flags=$CFLAGS
5377 CFLAGS="$CFLAGS $CWFLAGS -Wall"
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5380 #include <stdio.h>
5382 main ()
5384 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5386 return 0;
5388 _ACEOF
5389 if ac_fn_c_try_compile "$LINENO"; then :
5390 eval "$as_CACHEVAR=yes"
5391 else
5392 eval "$as_CACHEVAR=no"
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 CFLAGS=$ax_check_save_flags
5397 eval ac_res=\$$as_CACHEVAR
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5399 $as_echo "$ac_res" >&6; }
5400 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5401 CWFLAGS="$CWFLAGS -Wall"
5402 else
5406 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wextra" | $as_tr_sh`
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wextra" >&5
5408 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wextra... " >&6; }
5409 if eval \${$as_CACHEVAR+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5413 ax_check_save_flags=$CFLAGS
5414 CFLAGS="$CFLAGS $CWFLAGS -Wextra"
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 #include <stdio.h>
5419 main ()
5421 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5423 return 0;
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427 eval "$as_CACHEVAR=yes"
5428 else
5429 eval "$as_CACHEVAR=no"
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 CFLAGS=$ax_check_save_flags
5434 eval ac_res=\$$as_CACHEVAR
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5436 $as_echo "$ac_res" >&6; }
5437 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5438 CWFLAGS="$CWFLAGS -Wextra"
5439 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
5445 $as_echo_n "checking for clang... " >&6; }
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5450 main ()
5453 #ifndef __clang__
5454 be sad
5455 #endif
5458 return 0;
5460 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"; then :
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5463 $as_echo "yes" >&6; }
5464 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | $as_tr_sh`
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
5466 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
5467 if eval \${$as_CACHEVAR+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5471 ax_check_save_flags=$CFLAGS
5472 CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-warning-option"
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #include <stdio.h>
5477 main ()
5479 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5481 return 0;
5483 _ACEOF
5484 if ac_fn_c_try_compile "$LINENO"; then :
5485 eval "$as_CACHEVAR=yes"
5486 else
5487 eval "$as_CACHEVAR=no"
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 CFLAGS=$ax_check_save_flags
5492 eval ac_res=\$$as_CACHEVAR
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5494 $as_echo "$ac_res" >&6; }
5495 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5496 CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
5497 else
5501 else
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
5510 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
5511 if eval \${$as_CACHEVAR+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5515 ax_check_save_flags=$CFLAGS
5516 CFLAGS="$CFLAGS $CWFLAGS -Wbad-function-cast"
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5519 #include <stdio.h>
5521 main ()
5523 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5525 return 0;
5527 _ACEOF
5528 if ac_fn_c_try_compile "$LINENO"; then :
5529 eval "$as_CACHEVAR=yes"
5530 else
5531 eval "$as_CACHEVAR=no"
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 CFLAGS=$ax_check_save_flags
5536 eval ac_res=\$$as_CACHEVAR
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5538 $as_echo "$ac_res" >&6; }
5539 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5540 CWFLAGS="$CWFLAGS -Wbad-function-cast"
5541 else
5545 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-align" | $as_tr_sh`
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-align" >&5
5547 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-align... " >&6; }
5548 if eval \${$as_CACHEVAR+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5552 ax_check_save_flags=$CFLAGS
5553 CFLAGS="$CFLAGS $CWFLAGS -Wcast-align"
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #include <stdio.h>
5558 main ()
5560 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5562 return 0;
5564 _ACEOF
5565 if ac_fn_c_try_compile "$LINENO"; then :
5566 eval "$as_CACHEVAR=yes"
5567 else
5568 eval "$as_CACHEVAR=no"
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 CFLAGS=$ax_check_save_flags
5573 eval ac_res=\$$as_CACHEVAR
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5575 $as_echo "$ac_res" >&6; }
5576 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5577 CWFLAGS="$CWFLAGS -Wcast-align"
5578 else
5582 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | $as_tr_sh`
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
5584 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
5585 if eval \${$as_CACHEVAR+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5589 ax_check_save_flags=$CFLAGS
5590 CFLAGS="$CFLAGS $CWFLAGS -Wcast-qual"
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #include <stdio.h>
5595 main ()
5597 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5599 return 0;
5601 _ACEOF
5602 if ac_fn_c_try_compile "$LINENO"; then :
5603 eval "$as_CACHEVAR=yes"
5604 else
5605 eval "$as_CACHEVAR=no"
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 CFLAGS=$ax_check_save_flags
5610 eval ac_res=\$$as_CACHEVAR
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5612 $as_echo "$ac_res" >&6; }
5613 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5614 CWFLAGS="$CWFLAGS -Wcast-qual"
5615 else
5619 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wchar-subscripts" | $as_tr_sh`
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wchar-subscripts" >&5
5621 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wchar-subscripts... " >&6; }
5622 if eval \${$as_CACHEVAR+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5626 ax_check_save_flags=$CFLAGS
5627 CFLAGS="$CFLAGS $CWFLAGS -Wchar-subscripts"
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <stdio.h>
5632 main ()
5634 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5636 return 0;
5638 _ACEOF
5639 if ac_fn_c_try_compile "$LINENO"; then :
5640 eval "$as_CACHEVAR=yes"
5641 else
5642 eval "$as_CACHEVAR=no"
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 CFLAGS=$ax_check_save_flags
5647 eval ac_res=\$$as_CACHEVAR
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5649 $as_echo "$ac_res" >&6; }
5650 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5651 CWFLAGS="$CWFLAGS -Wchar-subscripts"
5652 else
5656 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcomment" | $as_tr_sh`
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcomment" >&5
5658 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcomment... " >&6; }
5659 if eval \${$as_CACHEVAR+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5663 ax_check_save_flags=$CFLAGS
5664 CFLAGS="$CFLAGS $CWFLAGS -Wcomment"
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <stdio.h>
5669 main ()
5671 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5673 return 0;
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677 eval "$as_CACHEVAR=yes"
5678 else
5679 eval "$as_CACHEVAR=no"
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 CFLAGS=$ax_check_save_flags
5684 eval ac_res=\$$as_CACHEVAR
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5686 $as_echo "$ac_res" >&6; }
5687 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5688 CWFLAGS="$CWFLAGS -Wcomment"
5689 else
5693 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | $as_tr_sh`
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
5695 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
5696 if eval \${$as_CACHEVAR+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5700 ax_check_save_flags=$CFLAGS
5701 CFLAGS="$CFLAGS $CWFLAGS -Wfloat-equal"
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <stdio.h>
5706 main ()
5708 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5710 return 0;
5712 _ACEOF
5713 if ac_fn_c_try_compile "$LINENO"; then :
5714 eval "$as_CACHEVAR=yes"
5715 else
5716 eval "$as_CACHEVAR=no"
5718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 CFLAGS=$ax_check_save_flags
5721 eval ac_res=\$$as_CACHEVAR
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5723 $as_echo "$ac_res" >&6; }
5724 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5725 CWFLAGS="$CWFLAGS -Wfloat-equal"
5726 else
5730 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | $as_tr_sh`
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
5732 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
5733 if eval \${$as_CACHEVAR+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5737 ax_check_save_flags=$CFLAGS
5738 CFLAGS="$CFLAGS $CWFLAGS -Wformat=2"
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 #include <stdio.h>
5743 main ()
5745 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5747 return 0;
5749 _ACEOF
5750 if ac_fn_c_try_compile "$LINENO"; then :
5751 eval "$as_CACHEVAR=yes"
5752 else
5753 eval "$as_CACHEVAR=no"
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756 CFLAGS=$ax_check_save_flags
5758 eval ac_res=\$$as_CACHEVAR
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5760 $as_echo "$ac_res" >&6; }
5761 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5762 CWFLAGS="$CWFLAGS -Wformat=2"
5763 else
5767 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wimplicit" | $as_tr_sh`
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wimplicit" >&5
5769 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wimplicit... " >&6; }
5770 if eval \${$as_CACHEVAR+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5774 ax_check_save_flags=$CFLAGS
5775 CFLAGS="$CFLAGS $CWFLAGS -Wimplicit"
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 #include <stdio.h>
5780 main ()
5782 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5784 return 0;
5786 _ACEOF
5787 if ac_fn_c_try_compile "$LINENO"; then :
5788 eval "$as_CACHEVAR=yes"
5789 else
5790 eval "$as_CACHEVAR=no"
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 CFLAGS=$ax_check_save_flags
5795 eval ac_res=\$$as_CACHEVAR
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5797 $as_echo "$ac_res" >&6; }
5798 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5799 CWFLAGS="$CWFLAGS -Wimplicit"
5800 else
5804 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-declarations" | $as_tr_sh`
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-declarations" >&5
5806 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-declarations... " >&6; }
5807 if eval \${$as_CACHEVAR+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5811 ax_check_save_flags=$CFLAGS
5812 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-declarations"
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #include <stdio.h>
5817 main ()
5819 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5821 return 0;
5823 _ACEOF
5824 if ac_fn_c_try_compile "$LINENO"; then :
5825 eval "$as_CACHEVAR=yes"
5826 else
5827 eval "$as_CACHEVAR=no"
5829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 CFLAGS=$ax_check_save_flags
5832 eval ac_res=\$$as_CACHEVAR
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5834 $as_echo "$ac_res" >&6; }
5835 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5836 CWFLAGS="$CWFLAGS -Wmissing-declarations"
5837 else
5841 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-prototypes" | $as_tr_sh`
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes" >&5
5843 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes... " >&6; }
5844 if eval \${$as_CACHEVAR+:} false; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5848 ax_check_save_flags=$CFLAGS
5849 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-prototypes"
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 #include <stdio.h>
5854 main ()
5856 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5858 return 0;
5860 _ACEOF
5861 if ac_fn_c_try_compile "$LINENO"; then :
5862 eval "$as_CACHEVAR=yes"
5863 else
5864 eval "$as_CACHEVAR=no"
5866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867 CFLAGS=$ax_check_save_flags
5869 eval ac_res=\$$as_CACHEVAR
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5871 $as_echo "$ac_res" >&6; }
5872 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5873 CWFLAGS="$CWFLAGS -Wmissing-prototypes"
5874 else
5878 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnormalized=id" | $as_tr_sh`
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnormalized=id" >&5
5880 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnormalized=id... " >&6; }
5881 if eval \${$as_CACHEVAR+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5885 ax_check_save_flags=$CFLAGS
5886 CFLAGS="$CFLAGS $CWFLAGS -Wnormalized=id"
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 #include <stdio.h>
5891 main ()
5893 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5895 return 0;
5897 _ACEOF
5898 if ac_fn_c_try_compile "$LINENO"; then :
5899 eval "$as_CACHEVAR=yes"
5900 else
5901 eval "$as_CACHEVAR=no"
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904 CFLAGS=$ax_check_save_flags
5906 eval ac_res=\$$as_CACHEVAR
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5908 $as_echo "$ac_res" >&6; }
5909 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5910 CWFLAGS="$CWFLAGS -Wnormalized=id"
5911 else
5915 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Woverride-init" | $as_tr_sh`
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Woverride-init" >&5
5917 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Woverride-init... " >&6; }
5918 if eval \${$as_CACHEVAR+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5922 ax_check_save_flags=$CFLAGS
5923 CFLAGS="$CFLAGS $CWFLAGS -Woverride-init"
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 #include <stdio.h>
5928 main ()
5930 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5932 return 0;
5934 _ACEOF
5935 if ac_fn_c_try_compile "$LINENO"; then :
5936 eval "$as_CACHEVAR=yes"
5937 else
5938 eval "$as_CACHEVAR=no"
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 CFLAGS=$ax_check_save_flags
5943 eval ac_res=\$$as_CACHEVAR
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5945 $as_echo "$ac_res" >&6; }
5946 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5947 CWFLAGS="$CWFLAGS -Woverride-init"
5948 else
5952 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wparentheses" | $as_tr_sh`
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wparentheses" >&5
5954 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wparentheses... " >&6; }
5955 if eval \${$as_CACHEVAR+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5959 ax_check_save_flags=$CFLAGS
5960 CFLAGS="$CFLAGS $CWFLAGS -Wparentheses"
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 #include <stdio.h>
5965 main ()
5967 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5969 return 0;
5971 _ACEOF
5972 if ac_fn_c_try_compile "$LINENO"; then :
5973 eval "$as_CACHEVAR=yes"
5974 else
5975 eval "$as_CACHEVAR=no"
5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978 CFLAGS=$ax_check_save_flags
5980 eval ac_res=\$$as_CACHEVAR
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5982 $as_echo "$ac_res" >&6; }
5983 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5984 CWFLAGS="$CWFLAGS -Wparentheses"
5985 else
5989 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wpointer-arith" | $as_tr_sh`
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wpointer-arith" >&5
5991 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wpointer-arith... " >&6; }
5992 if eval \${$as_CACHEVAR+:} false; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5996 ax_check_save_flags=$CFLAGS
5997 CFLAGS="$CFLAGS $CWFLAGS -Wpointer-arith"
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6000 #include <stdio.h>
6002 main ()
6004 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6006 return 0;
6008 _ACEOF
6009 if ac_fn_c_try_compile "$LINENO"; then :
6010 eval "$as_CACHEVAR=yes"
6011 else
6012 eval "$as_CACHEVAR=no"
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 CFLAGS=$ax_check_save_flags
6017 eval ac_res=\$$as_CACHEVAR
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6019 $as_echo "$ac_res" >&6; }
6020 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6021 CWFLAGS="$CWFLAGS -Wpointer-arith"
6022 else
6026 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wredundant-decls" | $as_tr_sh`
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wredundant-decls" >&5
6028 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wredundant-decls... " >&6; }
6029 if eval \${$as_CACHEVAR+:} false; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6033 ax_check_save_flags=$CFLAGS
6034 CFLAGS="$CFLAGS $CWFLAGS -Wredundant-decls"
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 #include <stdio.h>
6039 main ()
6041 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6043 return 0;
6045 _ACEOF
6046 if ac_fn_c_try_compile "$LINENO"; then :
6047 eval "$as_CACHEVAR=yes"
6048 else
6049 eval "$as_CACHEVAR=no"
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 CFLAGS=$ax_check_save_flags
6054 eval ac_res=\$$as_CACHEVAR
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6056 $as_echo "$ac_res" >&6; }
6057 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6058 CWFLAGS="$CWFLAGS -Wredundant-decls"
6059 else
6063 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | $as_tr_sh`
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
6065 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
6066 if eval \${$as_CACHEVAR+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6070 ax_check_save_flags=$CFLAGS
6071 CFLAGS="$CFLAGS $CWFLAGS -Wstrict-prototypes"
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 #include <stdio.h>
6076 main ()
6078 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6080 return 0;
6082 _ACEOF
6083 if ac_fn_c_try_compile "$LINENO"; then :
6084 eval "$as_CACHEVAR=yes"
6085 else
6086 eval "$as_CACHEVAR=no"
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 CFLAGS=$ax_check_save_flags
6091 eval ac_res=\$$as_CACHEVAR
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6093 $as_echo "$ac_res" >&6; }
6094 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6095 CWFLAGS="$CWFLAGS -Wstrict-prototypes"
6096 else
6100 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | $as_tr_sh`
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
6102 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
6103 if eval \${$as_CACHEVAR+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6107 ax_check_save_flags=$CFLAGS
6108 CFLAGS="$CFLAGS $CWFLAGS -Wswitch-enum"
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6111 #include <stdio.h>
6113 main ()
6115 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6117 return 0;
6119 _ACEOF
6120 if ac_fn_c_try_compile "$LINENO"; then :
6121 eval "$as_CACHEVAR=yes"
6122 else
6123 eval "$as_CACHEVAR=no"
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 CFLAGS=$ax_check_save_flags
6128 eval ac_res=\$$as_CACHEVAR
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6130 $as_echo "$ac_res" >&6; }
6131 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6132 CWFLAGS="$CWFLAGS -Wswitch-enum"
6133 else
6137 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | $as_tr_sh`
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
6139 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
6140 if eval \${$as_CACHEVAR+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6144 ax_check_save_flags=$CFLAGS
6145 CFLAGS="$CFLAGS $CWFLAGS -Wvariable-decl"
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6148 #include <stdio.h>
6150 main ()
6152 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6154 return 0;
6156 _ACEOF
6157 if ac_fn_c_try_compile "$LINENO"; then :
6158 eval "$as_CACHEVAR=yes"
6159 else
6160 eval "$as_CACHEVAR=no"
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163 CFLAGS=$ax_check_save_flags
6165 eval ac_res=\$$as_CACHEVAR
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6167 $as_echo "$ac_res" >&6; }
6168 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6169 CWFLAGS="$CWFLAGS -Wvariable-decl"
6170 else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
6176 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
6177 if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6181 ax_check_save_flags=$LDFLAGS
6182 LDFLAGS="$LDFLAGS -Wl,-z,relro"
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 #include <stdio.h>
6187 main ()
6189 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6191 return 0;
6193 _ACEOF
6194 if ac_fn_c_try_link "$LINENO"; then :
6195 ax_cv_check_ldflags___Wl__z_relro=yes
6196 else
6197 ax_cv_check_ldflags___Wl__z_relro=no
6199 rm -f core conftest.err conftest.$ac_objext \
6200 conftest$ac_exeext conftest.$ac_ext
6201 LDFLAGS=$ax_check_save_flags
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
6204 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
6205 if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
6206 LDFLAGS="$LDFLAGS -Wl,-z,relro"
6207 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
6212 $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
6213 if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6217 ax_check_save_flags=$LDFLAGS
6218 LDFLAGS="$LDFLAGS -Wl,-z,now"
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6221 #include <stdio.h>
6223 main ()
6225 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6227 return 0;
6229 _ACEOF
6230 if ac_fn_c_try_link "$LINENO"; then :
6231 ax_cv_check_ldflags___Wl__z_now=yes
6232 else
6233 ax_cv_check_ldflags___Wl__z_now=no
6235 rm -f core conftest.err conftest.$ac_objext \
6236 conftest$ac_exeext conftest.$ac_ext
6237 LDFLAGS=$ax_check_save_flags
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
6240 $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
6241 if test x"$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
6242 LDFLAGS="$LDFLAGS -Wl,-z,now"
6243 else
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
6248 $as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
6249 if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6253 ax_check_save_flags=$LDFLAGS
6254 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 #include <stdio.h>
6259 main ()
6261 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6263 return 0;
6265 _ACEOF
6266 if ac_fn_c_try_link "$LINENO"; then :
6267 ax_cv_check_ldflags___Wl__z_noexecstack=yes
6268 else
6269 ax_cv_check_ldflags___Wl__z_noexecstack=no
6271 rm -f core conftest.err conftest.$ac_objext \
6272 conftest$ac_exeext conftest.$ac_ext
6273 LDFLAGS=$ax_check_save_flags
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
6276 $as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
6277 if test x"$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
6278 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
6279 else
6284 case `pwd` in
6285 *\ * | *\ *)
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6287 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6288 esac
6292 macro_version='2.4.2'
6293 macro_revision='1.3337'
6307 ltmain="$ac_aux_dir/ltmain.sh"
6309 # Backslashify metacharacters that are still active within
6310 # double-quoted strings.
6311 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6313 # Same as above, but do not quote variable references.
6314 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6316 # Sed substitution to delay expansion of an escaped shell variable in a
6317 # double_quote_subst'ed string.
6318 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6320 # Sed substitution to delay expansion of an escaped single quote.
6321 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6323 # Sed substitution to avoid accidental globbing in evaled expressions
6324 no_glob_subst='s/\*/\\\*/g'
6326 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6327 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6328 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6331 $as_echo_n "checking how to print strings... " >&6; }
6332 # Test print first, because it will be a builtin if present.
6333 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6334 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6335 ECHO='print -r --'
6336 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6337 ECHO='printf %s\n'
6338 else
6339 # Use this function as a fallback that always works.
6340 func_fallback_echo ()
6342 eval 'cat <<_LTECHO_EOF
6344 _LTECHO_EOF'
6346 ECHO='func_fallback_echo'
6349 # func_echo_all arg...
6350 # Invoke $ECHO with all args, space-separated.
6351 func_echo_all ()
6353 $ECHO ""
6356 case "$ECHO" in
6357 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6358 $as_echo "printf" >&6; } ;;
6359 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6360 $as_echo "print -r" >&6; } ;;
6361 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6362 $as_echo "cat" >&6; } ;;
6363 esac
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6379 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6380 if ${ac_cv_path_SED+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6384 for ac_i in 1 2 3 4 5 6 7; do
6385 ac_script="$ac_script$as_nl$ac_script"
6386 done
6387 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6388 { ac_script=; unset ac_script;}
6389 if test -z "$SED"; then
6390 ac_path_SED_found=false
6391 # Loop through the user's path and test for each of PROGNAME-LIST
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_prog in sed gsed; do
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6400 as_fn_executable_p "$ac_path_SED" || continue
6401 # Check for GNU ac_path_SED and select it if it is found.
6402 # Check for GNU $ac_path_SED
6403 case `"$ac_path_SED" --version 2>&1` in
6404 *GNU*)
6405 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6407 ac_count=0
6408 $as_echo_n 0123456789 >"conftest.in"
6409 while :
6411 cat "conftest.in" "conftest.in" >"conftest.tmp"
6412 mv "conftest.tmp" "conftest.in"
6413 cp "conftest.in" "conftest.nl"
6414 $as_echo '' >> "conftest.nl"
6415 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6417 as_fn_arith $ac_count + 1 && ac_count=$as_val
6418 if test $ac_count -gt ${ac_path_SED_max-0}; then
6419 # Best one so far, save it but keep looking for a better one
6420 ac_cv_path_SED="$ac_path_SED"
6421 ac_path_SED_max=$ac_count
6423 # 10*(2^10) chars as input seems more than enough
6424 test $ac_count -gt 10 && break
6425 done
6426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6427 esac
6429 $ac_path_SED_found && break 3
6430 done
6431 done
6432 done
6433 IFS=$as_save_IFS
6434 if test -z "$ac_cv_path_SED"; then
6435 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6437 else
6438 ac_cv_path_SED=$SED
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6443 $as_echo "$ac_cv_path_SED" >&6; }
6444 SED="$ac_cv_path_SED"
6445 rm -f conftest.sed
6447 test -z "$SED" && SED=sed
6448 Xsed="$SED -e 1s/^X//"
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6461 $as_echo_n "checking for fgrep... " >&6; }
6462 if ${ac_cv_path_FGREP+:} false; then :
6463 $as_echo_n "(cached) " >&6
6464 else
6465 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6466 then ac_cv_path_FGREP="$GREP -F"
6467 else
6468 if test -z "$FGREP"; then
6469 ac_path_FGREP_found=false
6470 # Loop through the user's path and test for each of PROGNAME-LIST
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
6476 for ac_prog in fgrep; do
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6479 as_fn_executable_p "$ac_path_FGREP" || continue
6480 # Check for GNU ac_path_FGREP and select it if it is found.
6481 # Check for GNU $ac_path_FGREP
6482 case `"$ac_path_FGREP" --version 2>&1` in
6483 *GNU*)
6484 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6486 ac_count=0
6487 $as_echo_n 0123456789 >"conftest.in"
6488 while :
6490 cat "conftest.in" "conftest.in" >"conftest.tmp"
6491 mv "conftest.tmp" "conftest.in"
6492 cp "conftest.in" "conftest.nl"
6493 $as_echo 'FGREP' >> "conftest.nl"
6494 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6496 as_fn_arith $ac_count + 1 && ac_count=$as_val
6497 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6498 # Best one so far, save it but keep looking for a better one
6499 ac_cv_path_FGREP="$ac_path_FGREP"
6500 ac_path_FGREP_max=$ac_count
6502 # 10*(2^10) chars as input seems more than enough
6503 test $ac_count -gt 10 && break
6504 done
6505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6506 esac
6508 $ac_path_FGREP_found && break 3
6509 done
6510 done
6511 done
6512 IFS=$as_save_IFS
6513 if test -z "$ac_cv_path_FGREP"; then
6514 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6516 else
6517 ac_cv_path_FGREP=$FGREP
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6523 $as_echo "$ac_cv_path_FGREP" >&6; }
6524 FGREP="$ac_cv_path_FGREP"
6527 test -z "$GREP" && GREP=grep
6547 # Check whether --with-gnu-ld was given.
6548 if test "${with_gnu_ld+set}" = set; then :
6549 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6550 else
6551 with_gnu_ld=no
6554 ac_prog=ld
6555 if test "$GCC" = yes; then
6556 # Check if gcc -print-prog-name=ld gives a path.
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6558 $as_echo_n "checking for ld used by $CC... " >&6; }
6559 case $host in
6560 *-*-mingw*)
6561 # gcc leaves a trailing carriage return which upsets mingw
6562 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6564 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6565 esac
6566 case $ac_prog in
6567 # Accept absolute paths.
6568 [\\/]* | ?:[\\/]*)
6569 re_direlt='/[^/][^/]*/\.\./'
6570 # Canonicalize the pathname of ld
6571 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6572 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6573 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6574 done
6575 test -z "$LD" && LD="$ac_prog"
6578 # If it fails, then pretend we aren't using GCC.
6579 ac_prog=ld
6582 # If it is relative, then search for the first ld in PATH.
6583 with_gnu_ld=unknown
6585 esac
6586 elif test "$with_gnu_ld" = yes; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6588 $as_echo_n "checking for GNU ld... " >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6591 $as_echo_n "checking for non-GNU ld... " >&6; }
6593 if ${lt_cv_path_LD+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 if test -z "$LD"; then
6597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6598 for ac_dir in $PATH; do
6599 IFS="$lt_save_ifs"
6600 test -z "$ac_dir" && ac_dir=.
6601 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6602 lt_cv_path_LD="$ac_dir/$ac_prog"
6603 # Check to see if the program is GNU ld. I'd rather use --version,
6604 # but apparently some variants of GNU ld only accept -v.
6605 # Break only if it was the GNU/non-GNU ld that we prefer.
6606 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6607 *GNU* | *'with BFD'*)
6608 test "$with_gnu_ld" != no && break
6611 test "$with_gnu_ld" != yes && break
6613 esac
6615 done
6616 IFS="$lt_save_ifs"
6617 else
6618 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6622 LD="$lt_cv_path_LD"
6623 if test -n "$LD"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6625 $as_echo "$LD" >&6; }
6626 else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6630 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6632 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6633 if ${lt_cv_prog_gnu_ld+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6637 case `$LD -v 2>&1 </dev/null` in
6638 *GNU* | *'with BFD'*)
6639 lt_cv_prog_gnu_ld=yes
6642 lt_cv_prog_gnu_ld=no
6644 esac
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6647 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6648 with_gnu_ld=$lt_cv_prog_gnu_ld
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6659 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6660 if ${lt_cv_path_NM+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 if test -n "$NM"; then
6664 # Let the user override the test.
6665 lt_cv_path_NM="$NM"
6666 else
6667 lt_nm_to_check="${ac_tool_prefix}nm"
6668 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6669 lt_nm_to_check="$lt_nm_to_check nm"
6671 for lt_tmp_nm in $lt_nm_to_check; do
6672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6673 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6674 IFS="$lt_save_ifs"
6675 test -z "$ac_dir" && ac_dir=.
6676 tmp_nm="$ac_dir/$lt_tmp_nm"
6677 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6678 # Check to see if the nm accepts a BSD-compat flag.
6679 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6680 # nm: unknown option "B" ignored
6681 # Tru64's nm complains that /dev/null is an invalid object file
6682 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6683 */dev/null* | *'Invalid file or object type'*)
6684 lt_cv_path_NM="$tmp_nm -B"
6685 break
6688 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6689 */dev/null*)
6690 lt_cv_path_NM="$tmp_nm -p"
6691 break
6694 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6695 continue # so that we can try to find one that supports BSD flags
6697 esac
6699 esac
6701 done
6702 IFS="$lt_save_ifs"
6703 done
6704 : ${lt_cv_path_NM=no}
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6708 $as_echo "$lt_cv_path_NM" >&6; }
6709 if test "$lt_cv_path_NM" != "no"; then
6710 NM="$lt_cv_path_NM"
6711 else
6712 # Didn't find any BSD compatible name lister, look for dumpbin.
6713 if test -n "$DUMPBIN"; then :
6714 # Let the user override the test.
6715 else
6716 if test -n "$ac_tool_prefix"; then
6717 for ac_prog in dumpbin "link -dump"
6719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if ${ac_cv_prog_DUMPBIN+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 if test -n "$DUMPBIN"; then
6727 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6740 done
6741 done
6742 IFS=$as_save_IFS
6746 DUMPBIN=$ac_cv_prog_DUMPBIN
6747 if test -n "$DUMPBIN"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6749 $as_echo "$DUMPBIN" >&6; }
6750 else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6756 test -n "$DUMPBIN" && break
6757 done
6759 if test -z "$DUMPBIN"; then
6760 ac_ct_DUMPBIN=$DUMPBIN
6761 for ac_prog in dumpbin "link -dump"
6763 # Extract the first word of "$ac_prog", so it can be a program name with args.
6764 set dummy $ac_prog; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 if test -n "$ac_ct_DUMPBIN"; then
6771 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6784 done
6785 done
6786 IFS=$as_save_IFS
6790 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6791 if test -n "$ac_ct_DUMPBIN"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6793 $as_echo "$ac_ct_DUMPBIN" >&6; }
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6800 test -n "$ac_ct_DUMPBIN" && break
6801 done
6803 if test "x$ac_ct_DUMPBIN" = x; then
6804 DUMPBIN=":"
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807 yes:)
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810 ac_tool_warned=yes ;;
6811 esac
6812 DUMPBIN=$ac_ct_DUMPBIN
6816 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6817 *COFF*)
6818 DUMPBIN="$DUMPBIN -symbols"
6821 DUMPBIN=:
6823 esac
6826 if test "$DUMPBIN" != ":"; then
6827 NM="$DUMPBIN"
6830 test -z "$NM" && NM=nm
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6838 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6839 if ${lt_cv_nm_interface+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 lt_cv_nm_interface="BSD nm"
6843 echo "int some_variable = 0;" > conftest.$ac_ext
6844 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6845 (eval "$ac_compile" 2>conftest.err)
6846 cat conftest.err >&5
6847 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6848 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6849 cat conftest.err >&5
6850 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6851 cat conftest.out >&5
6852 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6853 lt_cv_nm_interface="MS dumpbin"
6855 rm -f conftest*
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6858 $as_echo "$lt_cv_nm_interface" >&6; }
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6861 $as_echo_n "checking whether ln -s works... " >&6; }
6862 LN_S=$as_ln_s
6863 if test "$LN_S" = "ln -s"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6865 $as_echo "yes" >&6; }
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6868 $as_echo "no, using $LN_S" >&6; }
6871 # find the maximum length of command line arguments
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6873 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6874 if ${lt_cv_sys_max_cmd_len+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6878 teststring="ABCD"
6880 case $build_os in
6881 msdosdjgpp*)
6882 # On DJGPP, this test can blow up pretty badly due to problems in libc
6883 # (any single argument exceeding 2000 bytes causes a buffer overrun
6884 # during glob expansion). Even if it were fixed, the result of this
6885 # check would be larger than it should be.
6886 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6889 gnu*)
6890 # Under GNU Hurd, this test is not required because there is
6891 # no limit to the length of command line arguments.
6892 # Libtool will interpret -1 as no limit whatsoever
6893 lt_cv_sys_max_cmd_len=-1;
6896 cygwin* | mingw* | cegcc*)
6897 # On Win9x/ME, this test blows up -- it succeeds, but takes
6898 # about 5 minutes as the teststring grows exponentially.
6899 # Worse, since 9x/ME are not pre-emptively multitasking,
6900 # you end up with a "frozen" computer, even though with patience
6901 # the test eventually succeeds (with a max line length of 256k).
6902 # Instead, let's just punt: use the minimum linelength reported by
6903 # all of the supported platforms: 8192 (on NT/2K/XP).
6904 lt_cv_sys_max_cmd_len=8192;
6907 mint*)
6908 # On MiNT this can take a long time and run out of memory.
6909 lt_cv_sys_max_cmd_len=8192;
6912 amigaos*)
6913 # On AmigaOS with pdksh, this test takes hours, literally.
6914 # So we just punt and use a minimum line length of 8192.
6915 lt_cv_sys_max_cmd_len=8192;
6918 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6919 # This has been around since 386BSD, at least. Likely further.
6920 if test -x /sbin/sysctl; then
6921 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6922 elif test -x /usr/sbin/sysctl; then
6923 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6924 else
6925 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6927 # And add a safety zone
6928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6932 interix*)
6933 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6934 lt_cv_sys_max_cmd_len=196608
6937 os2*)
6938 # The test takes a long time on OS/2.
6939 lt_cv_sys_max_cmd_len=8192
6942 osf*)
6943 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6944 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6945 # nice to cause kernel panics so lets avoid the loop below.
6946 # First set a reasonable default.
6947 lt_cv_sys_max_cmd_len=16384
6949 if test -x /sbin/sysconfig; then
6950 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6951 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6952 esac
6955 sco3.2v5*)
6956 lt_cv_sys_max_cmd_len=102400
6958 sysv5* | sco5v6* | sysv4.2uw2*)
6959 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6960 if test -n "$kargmax"; then
6961 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6962 else
6963 lt_cv_sys_max_cmd_len=32768
6967 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6968 if test -n "$lt_cv_sys_max_cmd_len"; then
6969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6971 else
6972 # Make teststring a little bigger before we do anything with it.
6973 # a 1K string should be a reasonable start.
6974 for i in 1 2 3 4 5 6 7 8 ; do
6975 teststring=$teststring$teststring
6976 done
6977 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6978 # If test is not a shell built-in, we'll probably end up computing a
6979 # maximum length that is only half of the actual maximum length, but
6980 # we can't tell.
6981 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6982 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6983 test $i != 17 # 1/2 MB should be enough
6985 i=`expr $i + 1`
6986 teststring=$teststring$teststring
6987 done
6988 # Only check the string length outside the loop.
6989 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6990 teststring=
6991 # Add a significant safety factor because C++ compilers can tack on
6992 # massive amounts of additional arguments before passing them to the
6993 # linker. It appears as though 1/2 is a usable value.
6994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6997 esac
7001 if test -n $lt_cv_sys_max_cmd_len ; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7003 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7004 else
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7006 $as_echo "none" >&6; }
7008 max_cmd_len=$lt_cv_sys_max_cmd_len
7015 : ${CP="cp -f"}
7016 : ${MV="mv -f"}
7017 : ${RM="rm -f"}
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7020 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7021 # Try some XSI features
7022 xsi_shell=no
7023 ( _lt_dummy="a/b/c"
7024 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7025 = c,a/b,b/c, \
7026 && eval 'test $(( 1 + 1 )) -eq 2 \
7027 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7028 && xsi_shell=yes
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7030 $as_echo "$xsi_shell" >&6; }
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7034 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7035 lt_shell_append=no
7036 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7037 >/dev/null 2>&1 \
7038 && lt_shell_append=yes
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7040 $as_echo "$lt_shell_append" >&6; }
7043 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7044 lt_unset=unset
7045 else
7046 lt_unset=false
7053 # test EBCDIC or ASCII
7054 case `echo X|tr X '\101'` in
7055 A) # ASCII based system
7056 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7057 lt_SP2NL='tr \040 \012'
7058 lt_NL2SP='tr \015\012 \040\040'
7060 *) # EBCDIC based system
7061 lt_SP2NL='tr \100 \n'
7062 lt_NL2SP='tr \r\n \100\100'
7064 esac
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7075 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7076 if ${lt_cv_to_host_file_cmd+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 case $host in
7080 *-*-mingw* )
7081 case $build in
7082 *-*-mingw* ) # actually msys
7083 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7085 *-*-cygwin* )
7086 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7088 * ) # otherwise, assume *nix
7089 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7091 esac
7093 *-*-cygwin* )
7094 case $build in
7095 *-*-mingw* ) # actually msys
7096 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7098 *-*-cygwin* )
7099 lt_cv_to_host_file_cmd=func_convert_file_noop
7101 * ) # otherwise, assume *nix
7102 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7104 esac
7106 * ) # unhandled hosts (and "normal" native builds)
7107 lt_cv_to_host_file_cmd=func_convert_file_noop
7109 esac
7113 to_host_file_cmd=$lt_cv_to_host_file_cmd
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7115 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7122 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7123 if ${lt_cv_to_tool_file_cmd+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 #assume ordinary cross tools, or native build.
7127 lt_cv_to_tool_file_cmd=func_convert_file_noop
7128 case $host in
7129 *-*-mingw* )
7130 case $build in
7131 *-*-mingw* ) # actually msys
7132 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7134 esac
7136 esac
7140 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7142 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7149 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7150 if ${lt_cv_ld_reload_flag+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 lt_cv_ld_reload_flag='-r'
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7156 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7157 reload_flag=$lt_cv_ld_reload_flag
7158 case $reload_flag in
7159 "" | " "*) ;;
7160 *) reload_flag=" $reload_flag" ;;
7161 esac
7162 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7163 case $host_os in
7164 cygwin* | mingw* | pw32* | cegcc*)
7165 if test "$GCC" != yes; then
7166 reload_cmds=false
7169 darwin*)
7170 if test "$GCC" = yes; then
7171 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7172 else
7173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7176 esac
7186 if test -n "$ac_tool_prefix"; then
7187 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_OBJDUMP+:} false; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 if test -n "$OBJDUMP"; then
7195 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 break 2
7208 done
7209 done
7210 IFS=$as_save_IFS
7214 OBJDUMP=$ac_cv_prog_OBJDUMP
7215 if test -n "$OBJDUMP"; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7217 $as_echo "$OBJDUMP" >&6; }
7218 else
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7225 if test -z "$ac_cv_prog_OBJDUMP"; then
7226 ac_ct_OBJDUMP=$OBJDUMP
7227 # Extract the first word of "objdump", so it can be a program name with args.
7228 set dummy objdump; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 if test -n "$ac_ct_OBJDUMP"; then
7235 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7240 IFS=$as_save_IFS
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 break 2
7248 done
7249 done
7250 IFS=$as_save_IFS
7254 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7255 if test -n "$ac_ct_OBJDUMP"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7257 $as_echo "$ac_ct_OBJDUMP" >&6; }
7258 else
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7263 if test "x$ac_ct_OBJDUMP" = x; then
7264 OBJDUMP="false"
7265 else
7266 case $cross_compiling:$ac_tool_warned in
7267 yes:)
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7271 esac
7272 OBJDUMP=$ac_ct_OBJDUMP
7274 else
7275 OBJDUMP="$ac_cv_prog_OBJDUMP"
7278 test -z "$OBJDUMP" && OBJDUMP=objdump
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7289 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7290 if ${lt_cv_deplibs_check_method+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 lt_cv_file_magic_cmd='$MAGIC_CMD'
7294 lt_cv_file_magic_test_file=
7295 lt_cv_deplibs_check_method='unknown'
7296 # Need to set the preceding variable on all platforms that support
7297 # interlibrary dependencies.
7298 # 'none' -- dependencies not supported.
7299 # `unknown' -- same as none, but documents that we really don't know.
7300 # 'pass_all' -- all dependencies passed with no checks.
7301 # 'test_compile' -- check by making test program.
7302 # 'file_magic [[regex]]' -- check by looking for files in library path
7303 # which responds to the $file_magic_cmd with a given extended regex.
7304 # If you have `file' or equivalent on your system and you're not sure
7305 # whether `pass_all' will *always* work, you probably want this one.
7307 case $host_os in
7308 aix[4-9]*)
7309 lt_cv_deplibs_check_method=pass_all
7312 beos*)
7313 lt_cv_deplibs_check_method=pass_all
7316 bsdi[45]*)
7317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7318 lt_cv_file_magic_cmd='/usr/bin/file -L'
7319 lt_cv_file_magic_test_file=/shlib/libc.so
7322 cygwin*)
7323 # func_win32_libid is a shell function defined in ltmain.sh
7324 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7325 lt_cv_file_magic_cmd='func_win32_libid'
7328 mingw* | pw32*)
7329 # Base MSYS/MinGW do not provide the 'file' command needed by
7330 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7331 # unless we find 'file', for example because we are cross-compiling.
7332 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7333 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7335 lt_cv_file_magic_cmd='func_win32_libid'
7336 else
7337 # Keep this pattern in sync with the one in func_win32_libid.
7338 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7339 lt_cv_file_magic_cmd='$OBJDUMP -f'
7343 cegcc*)
7344 # use the weaker test based on 'objdump'. See mingw*.
7345 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7346 lt_cv_file_magic_cmd='$OBJDUMP -f'
7349 darwin* | rhapsody*)
7350 lt_cv_deplibs_check_method=pass_all
7353 freebsd* | dragonfly*)
7354 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7355 case $host_cpu in
7356 i*86 )
7357 # Not sure whether the presence of OpenBSD here was a mistake.
7358 # Let's accept both of them until this is cleared up.
7359 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7360 lt_cv_file_magic_cmd=/usr/bin/file
7361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7363 esac
7364 else
7365 lt_cv_deplibs_check_method=pass_all
7369 haiku*)
7370 lt_cv_deplibs_check_method=pass_all
7373 hpux10.20* | hpux11*)
7374 lt_cv_file_magic_cmd=/usr/bin/file
7375 case $host_cpu in
7376 ia64*)
7377 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7378 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7380 hppa*64*)
7381 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]'
7382 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7386 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7388 esac
7391 interix[3-9]*)
7392 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7396 irix5* | irix6* | nonstopux*)
7397 case $LD in
7398 *-32|*"-32 ") libmagic=32-bit;;
7399 *-n32|*"-n32 ") libmagic=N32;;
7400 *-64|*"-64 ") libmagic=64-bit;;
7401 *) libmagic=never-match;;
7402 esac
7403 lt_cv_deplibs_check_method=pass_all
7406 # This must be glibc/ELF.
7407 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7408 lt_cv_deplibs_check_method=pass_all
7411 netbsd* | netbsdelf*-gnu)
7412 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7414 else
7415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7419 newos6*)
7420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7421 lt_cv_file_magic_cmd=/usr/bin/file
7422 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7425 *nto* | *qnx*)
7426 lt_cv_deplibs_check_method=pass_all
7429 openbsd*)
7430 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7432 else
7433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7437 osf3* | osf4* | osf5*)
7438 lt_cv_deplibs_check_method=pass_all
7441 rdos*)
7442 lt_cv_deplibs_check_method=pass_all
7445 solaris*)
7446 lt_cv_deplibs_check_method=pass_all
7449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7450 lt_cv_deplibs_check_method=pass_all
7453 sysv4 | sysv4.3*)
7454 case $host_vendor in
7455 motorola)
7456 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]'
7457 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7459 ncr)
7460 lt_cv_deplibs_check_method=pass_all
7462 sequent)
7463 lt_cv_file_magic_cmd='/bin/file'
7464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7466 sni)
7467 lt_cv_file_magic_cmd='/bin/file'
7468 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7469 lt_cv_file_magic_test_file=/lib/libc.so
7471 siemens)
7472 lt_cv_deplibs_check_method=pass_all
7475 lt_cv_deplibs_check_method=pass_all
7477 esac
7480 tpf*)
7481 lt_cv_deplibs_check_method=pass_all
7483 esac
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7487 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7489 file_magic_glob=
7490 want_nocaseglob=no
7491 if test "$build" = "$host"; then
7492 case $host_os in
7493 mingw* | pw32*)
7494 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7495 want_nocaseglob=yes
7496 else
7497 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7500 esac
7503 file_magic_cmd=$lt_cv_file_magic_cmd
7504 deplibs_check_method=$lt_cv_deplibs_check_method
7505 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7528 if test -n "$ac_tool_prefix"; then
7529 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7530 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if ${ac_cv_prog_DLLTOOL+:} false; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 if test -n "$DLLTOOL"; then
7537 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7538 else
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7550 done
7551 done
7552 IFS=$as_save_IFS
7556 DLLTOOL=$ac_cv_prog_DLLTOOL
7557 if test -n "$DLLTOOL"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7559 $as_echo "$DLLTOOL" >&6; }
7560 else
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7567 if test -z "$ac_cv_prog_DLLTOOL"; then
7568 ac_ct_DLLTOOL=$DLLTOOL
7569 # Extract the first word of "dlltool", so it can be a program name with args.
7570 set dummy dlltool; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7574 $as_echo_n "(cached) " >&6
7575 else
7576 if test -n "$ac_ct_DLLTOOL"; then
7577 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7578 else
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7582 IFS=$as_save_IFS
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 break 2
7590 done
7591 done
7592 IFS=$as_save_IFS
7596 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7597 if test -n "$ac_ct_DLLTOOL"; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7599 $as_echo "$ac_ct_DLLTOOL" >&6; }
7600 else
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7605 if test "x$ac_ct_DLLTOOL" = x; then
7606 DLLTOOL="false"
7607 else
7608 case $cross_compiling:$ac_tool_warned in
7609 yes:)
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7612 ac_tool_warned=yes ;;
7613 esac
7614 DLLTOOL=$ac_ct_DLLTOOL
7616 else
7617 DLLTOOL="$ac_cv_prog_DLLTOOL"
7620 test -z "$DLLTOOL" && DLLTOOL=dlltool
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7632 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7633 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 lt_cv_sharedlib_from_linklib_cmd='unknown'
7638 case $host_os in
7639 cygwin* | mingw* | pw32* | cegcc*)
7640 # two different shell functions defined in ltmain.sh
7641 # decide which to use based on capabilities of $DLLTOOL
7642 case `$DLLTOOL --help 2>&1` in
7643 *--identify-strict*)
7644 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7647 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7649 esac
7652 # fallback: assume linklib IS sharedlib
7653 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7655 esac
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7659 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7660 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7661 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7669 if test -n "$ac_tool_prefix"; then
7670 for ac_prog in ar
7672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675 $as_echo_n "checking for $ac_word... " >&6; }
7676 if ${ac_cv_prog_AR+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 if test -n "$AR"; then
7680 ac_cv_prog_AR="$AR" # Let the user override the test.
7681 else
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7693 done
7694 done
7695 IFS=$as_save_IFS
7699 AR=$ac_cv_prog_AR
7700 if test -n "$AR"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7702 $as_echo "$AR" >&6; }
7703 else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7709 test -n "$AR" && break
7710 done
7712 if test -z "$AR"; then
7713 ac_ct_AR=$AR
7714 for ac_prog in ar
7716 # Extract the first word of "$ac_prog", so it can be a program name with args.
7717 set dummy $ac_prog; ac_word=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 if test -n "$ac_ct_AR"; then
7724 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7733 ac_cv_prog_ac_ct_AR="$ac_prog"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 break 2
7737 done
7738 done
7739 IFS=$as_save_IFS
7743 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7744 if test -n "$ac_ct_AR"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7746 $as_echo "$ac_ct_AR" >&6; }
7747 else
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7753 test -n "$ac_ct_AR" && break
7754 done
7756 if test "x$ac_ct_AR" = x; then
7757 AR="false"
7758 else
7759 case $cross_compiling:$ac_tool_warned in
7760 yes:)
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7763 ac_tool_warned=yes ;;
7764 esac
7765 AR=$ac_ct_AR
7769 : ${AR=ar}
7770 : ${AR_FLAGS=cru}
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7783 $as_echo_n "checking for archiver @FILE support... " >&6; }
7784 if ${lt_cv_ar_at_file+:} false; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 lt_cv_ar_at_file=no
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7792 main ()
7796 return 0;
7798 _ACEOF
7799 if ac_fn_c_try_compile "$LINENO"; then :
7800 echo conftest.$ac_objext > conftest.lst
7801 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7803 (eval $lt_ar_try) 2>&5
7804 ac_status=$?
7805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7806 test $ac_status = 0; }
7807 if test "$ac_status" -eq 0; then
7808 # Ensure the archiver fails upon bogus file names.
7809 rm -f conftest.$ac_objext libconftest.a
7810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7811 (eval $lt_ar_try) 2>&5
7812 ac_status=$?
7813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7814 test $ac_status = 0; }
7815 if test "$ac_status" -ne 0; then
7816 lt_cv_ar_at_file=@
7819 rm -f conftest.* libconftest.a
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7826 $as_echo "$lt_cv_ar_at_file" >&6; }
7828 if test "x$lt_cv_ar_at_file" = xno; then
7829 archiver_list_spec=
7830 else
7831 archiver_list_spec=$lt_cv_ar_at_file
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7842 set dummy ${ac_tool_prefix}strip; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if ${ac_cv_prog_STRIP+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$STRIP"; then
7849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7862 done
7863 done
7864 IFS=$as_save_IFS
7868 STRIP=$ac_cv_prog_STRIP
7869 if test -n "$STRIP"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7871 $as_echo "$STRIP" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7879 if test -z "$ac_cv_prog_STRIP"; then
7880 ac_ct_STRIP=$STRIP
7881 # Extract the first word of "strip", so it can be a program name with args.
7882 set dummy strip; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 if test -n "$ac_ct_STRIP"; then
7889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_ac_ct_STRIP="strip"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7902 done
7903 done
7904 IFS=$as_save_IFS
7908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7909 if test -n "$ac_ct_STRIP"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7911 $as_echo "$ac_ct_STRIP" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7917 if test "x$ac_ct_STRIP" = x; then
7918 STRIP=":"
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921 yes:)
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924 ac_tool_warned=yes ;;
7925 esac
7926 STRIP=$ac_ct_STRIP
7928 else
7929 STRIP="$ac_cv_prog_STRIP"
7932 test -z "$STRIP" && STRIP=:
7939 if test -n "$ac_tool_prefix"; then
7940 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7941 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_prog_RANLIB+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 if test -n "$RANLIB"; then
7948 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7961 done
7962 done
7963 IFS=$as_save_IFS
7967 RANLIB=$ac_cv_prog_RANLIB
7968 if test -n "$RANLIB"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7970 $as_echo "$RANLIB" >&6; }
7971 else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7978 if test -z "$ac_cv_prog_RANLIB"; then
7979 ac_ct_RANLIB=$RANLIB
7980 # Extract the first word of "ranlib", so it can be a program name with args.
7981 set dummy ranlib; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 if test -n "$ac_ct_RANLIB"; then
7988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_ac_ct_RANLIB="ranlib"
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8001 done
8002 done
8003 IFS=$as_save_IFS
8007 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8008 if test -n "$ac_ct_RANLIB"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8010 $as_echo "$ac_ct_RANLIB" >&6; }
8011 else
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8016 if test "x$ac_ct_RANLIB" = x; then
8017 RANLIB=":"
8018 else
8019 case $cross_compiling:$ac_tool_warned in
8020 yes:)
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8023 ac_tool_warned=yes ;;
8024 esac
8025 RANLIB=$ac_ct_RANLIB
8027 else
8028 RANLIB="$ac_cv_prog_RANLIB"
8031 test -z "$RANLIB" && RANLIB=:
8038 # Determine commands to create old-style static archives.
8039 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8040 old_postinstall_cmds='chmod 644 $oldlib'
8041 old_postuninstall_cmds=
8043 if test -n "$RANLIB"; then
8044 case $host_os in
8045 openbsd*)
8046 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8049 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8051 esac
8052 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8055 case $host_os in
8056 darwin*)
8057 lock_old_archive_extraction=yes ;;
8059 lock_old_archive_extraction=no ;;
8060 esac
8100 # If no C compiler was specified, use CC.
8101 LTCC=${LTCC-"$CC"}
8103 # If no C compiler flags were specified, use CFLAGS.
8104 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8106 # Allow CC to be a program name with arguments.
8107 compiler=$CC
8110 # Check for command to grab the raw symbol name followed by C symbol from nm.
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8112 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8113 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8117 # These are sane defaults that work on at least a few old systems.
8118 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8120 # Character class describing NM global symbol codes.
8121 symcode='[BCDEGRST]'
8123 # Regexp to match symbols that can be accessed directly from C.
8124 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8126 # Define system-specific variables.
8127 case $host_os in
8128 aix*)
8129 symcode='[BCDT]'
8131 cygwin* | mingw* | pw32* | cegcc*)
8132 symcode='[ABCDGISTW]'
8134 hpux*)
8135 if test "$host_cpu" = ia64; then
8136 symcode='[ABCDEGRST]'
8139 irix* | nonstopux*)
8140 symcode='[BCDEGRST]'
8142 osf*)
8143 symcode='[BCDEGQRST]'
8145 solaris*)
8146 symcode='[BDRT]'
8148 sco3.2v5*)
8149 symcode='[DT]'
8151 sysv4.2uw2*)
8152 symcode='[DT]'
8154 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8155 symcode='[ABDT]'
8157 sysv4)
8158 symcode='[DFNSTU]'
8160 esac
8162 # If we're using GNU nm, then use its standard symbol codes.
8163 case `$NM -V 2>&1` in
8164 *GNU* | *'with BFD'*)
8165 symcode='[ABCDGIRSTW]' ;;
8166 esac
8168 # Transform an extracted symbol line into a proper C declaration.
8169 # Some systems (esp. on ia64) link data and code symbols differently,
8170 # so use this general approach.
8171 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8173 # Transform an extracted symbol line into symbol name and symbol address
8174 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8175 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8177 # Handle CRLF in mingw tool chain
8178 opt_cr=
8179 case $build_os in
8180 mingw*)
8181 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8183 esac
8185 # Try without a prefix underscore, then with it.
8186 for ac_symprfx in "" "_"; do
8188 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8189 symxfrm="\\1 $ac_symprfx\\2 \\2"
8191 # Write the raw and C identifiers.
8192 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8193 # Fake it for dumpbin and say T for any non-static function
8194 # and D for any global variable.
8195 # Also find C++ and __fastcall symbols from MSVC++,
8196 # which start with @ or ?.
8197 lt_cv_sys_global_symbol_pipe="$AWK '"\
8198 " {last_section=section; section=\$ 3};"\
8199 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8200 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8201 " \$ 0!~/External *\|/{next};"\
8202 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8203 " {if(hide[section]) next};"\
8204 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8205 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8206 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8207 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8208 " ' prfx=^$ac_symprfx"
8209 else
8210 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8212 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8214 # Check to see that the pipe works correctly.
8215 pipe_works=no
8217 rm -f conftest*
8218 cat > conftest.$ac_ext <<_LT_EOF
8219 #ifdef __cplusplus
8220 extern "C" {
8221 #endif
8222 char nm_test_var;
8223 void nm_test_func(void);
8224 void nm_test_func(void){}
8225 #ifdef __cplusplus
8227 #endif
8228 int main(){nm_test_var='a';nm_test_func();return(0);}
8229 _LT_EOF
8231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8232 (eval $ac_compile) 2>&5
8233 ac_status=$?
8234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8235 test $ac_status = 0; }; then
8236 # Now try to grab the symbols.
8237 nlist=conftest.nm
8238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8239 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8240 ac_status=$?
8241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8242 test $ac_status = 0; } && test -s "$nlist"; then
8243 # Try sorting and uniquifying the output.
8244 if sort "$nlist" | uniq > "$nlist"T; then
8245 mv -f "$nlist"T "$nlist"
8246 else
8247 rm -f "$nlist"T
8250 # Make sure that we snagged all the symbols we need.
8251 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8252 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8253 cat <<_LT_EOF > conftest.$ac_ext
8254 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8255 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8256 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8257 relocations are performed -- see ld's documentation on pseudo-relocs. */
8258 # define LT_DLSYM_CONST
8259 #elif defined(__osf__)
8260 /* This system does not cope well with relocations in const data. */
8261 # define LT_DLSYM_CONST
8262 #else
8263 # define LT_DLSYM_CONST const
8264 #endif
8266 #ifdef __cplusplus
8267 extern "C" {
8268 #endif
8270 _LT_EOF
8271 # Now generate the symbol file.
8272 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8274 cat <<_LT_EOF >> conftest.$ac_ext
8276 /* The mapping between symbol names and symbols. */
8277 LT_DLSYM_CONST struct {
8278 const char *name;
8279 void *address;
8281 lt__PROGRAM__LTX_preloaded_symbols[] =
8283 { "@PROGRAM@", (void *) 0 },
8284 _LT_EOF
8285 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8286 cat <<\_LT_EOF >> conftest.$ac_ext
8287 {0, (void *) 0}
8290 /* This works around a problem in FreeBSD linker */
8291 #ifdef FREEBSD_WORKAROUND
8292 static const void *lt_preloaded_setup() {
8293 return lt__PROGRAM__LTX_preloaded_symbols;
8295 #endif
8297 #ifdef __cplusplus
8299 #endif
8300 _LT_EOF
8301 # Now try linking the two files.
8302 mv conftest.$ac_objext conftstm.$ac_objext
8303 lt_globsym_save_LIBS=$LIBS
8304 lt_globsym_save_CFLAGS=$CFLAGS
8305 LIBS="conftstm.$ac_objext"
8306 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8308 (eval $ac_link) 2>&5
8309 ac_status=$?
8310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8311 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8312 pipe_works=yes
8314 LIBS=$lt_globsym_save_LIBS
8315 CFLAGS=$lt_globsym_save_CFLAGS
8316 else
8317 echo "cannot find nm_test_func in $nlist" >&5
8319 else
8320 echo "cannot find nm_test_var in $nlist" >&5
8322 else
8323 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8325 else
8326 echo "$progname: failed program was:" >&5
8327 cat conftest.$ac_ext >&5
8329 rm -rf conftest* conftst*
8331 # Do not use the global_symbol_pipe unless it works.
8332 if test "$pipe_works" = yes; then
8333 break
8334 else
8335 lt_cv_sys_global_symbol_pipe=
8337 done
8341 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8342 lt_cv_sys_global_symbol_to_cdecl=
8344 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8346 $as_echo "failed" >&6; }
8347 else
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8349 $as_echo "ok" >&6; }
8352 # Response file support.
8353 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8354 nm_file_list_spec='@'
8355 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8356 nm_file_list_spec='@'
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8386 $as_echo_n "checking for sysroot... " >&6; }
8388 # Check whether --with-sysroot was given.
8389 if test "${with_sysroot+set}" = set; then :
8390 withval=$with_sysroot;
8391 else
8392 with_sysroot=no
8396 lt_sysroot=
8397 case ${with_sysroot} in #(
8398 yes)
8399 if test "$GCC" = yes; then
8400 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8402 ;; #(
8404 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8405 ;; #(
8406 no|'')
8407 ;; #(
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8410 $as_echo "${with_sysroot}" >&6; }
8411 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8413 esac
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8416 $as_echo "${lt_sysroot:-no}" >&6; }
8422 # Check whether --enable-libtool-lock was given.
8423 if test "${enable_libtool_lock+set}" = set; then :
8424 enableval=$enable_libtool_lock;
8427 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8429 # Some flags need to be propagated to the compiler or linker for good
8430 # libtool support.
8431 case $host in
8432 ia64-*-hpux*)
8433 # Find out which ABI we are using.
8434 echo 'int i;' > conftest.$ac_ext
8435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8436 (eval $ac_compile) 2>&5
8437 ac_status=$?
8438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8439 test $ac_status = 0; }; then
8440 case `/usr/bin/file conftest.$ac_objext` in
8441 *ELF-32*)
8442 HPUX_IA64_MODE="32"
8444 *ELF-64*)
8445 HPUX_IA64_MODE="64"
8447 esac
8449 rm -rf conftest*
8451 *-*-irix6*)
8452 # Find out which ABI we are using.
8453 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8455 (eval $ac_compile) 2>&5
8456 ac_status=$?
8457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8458 test $ac_status = 0; }; then
8459 if test "$lt_cv_prog_gnu_ld" = yes; then
8460 case `/usr/bin/file conftest.$ac_objext` in
8461 *32-bit*)
8462 LD="${LD-ld} -melf32bsmip"
8464 *N32*)
8465 LD="${LD-ld} -melf32bmipn32"
8467 *64-bit*)
8468 LD="${LD-ld} -melf64bmip"
8470 esac
8471 else
8472 case `/usr/bin/file conftest.$ac_objext` in
8473 *32-bit*)
8474 LD="${LD-ld} -32"
8476 *N32*)
8477 LD="${LD-ld} -n32"
8479 *64-bit*)
8480 LD="${LD-ld} -64"
8482 esac
8485 rm -rf conftest*
8488 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8489 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8490 # Find out which ABI we are using.
8491 echo 'int i;' > conftest.$ac_ext
8492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8493 (eval $ac_compile) 2>&5
8494 ac_status=$?
8495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8496 test $ac_status = 0; }; then
8497 case `/usr/bin/file conftest.o` in
8498 *32-bit*)
8499 case $host in
8500 x86_64-*kfreebsd*-gnu)
8501 LD="${LD-ld} -m elf_i386_fbsd"
8503 x86_64-*linux*)
8504 LD="${LD-ld} -m elf_i386"
8506 ppc64-*linux*|powerpc64-*linux*)
8507 LD="${LD-ld} -m elf32ppclinux"
8509 s390x-*linux*)
8510 LD="${LD-ld} -m elf_s390"
8512 sparc64-*linux*)
8513 LD="${LD-ld} -m elf32_sparc"
8515 esac
8517 *64-bit*)
8518 case $host in
8519 x86_64-*kfreebsd*-gnu)
8520 LD="${LD-ld} -m elf_x86_64_fbsd"
8522 x86_64-*linux*)
8523 LD="${LD-ld} -m elf_x86_64"
8525 ppc*-*linux*|powerpc*-*linux*)
8526 LD="${LD-ld} -m elf64ppc"
8528 s390*-*linux*|s390*-*tpf*)
8529 LD="${LD-ld} -m elf64_s390"
8531 sparc*-*linux*)
8532 LD="${LD-ld} -m elf64_sparc"
8534 esac
8536 esac
8538 rm -rf conftest*
8541 *-*-sco3.2v5*)
8542 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8543 SAVE_CFLAGS="$CFLAGS"
8544 CFLAGS="$CFLAGS -belf"
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8546 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8547 if ${lt_cv_cc_needs_belf+:} false; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 ac_ext=c
8551 ac_cpp='$CPP $CPPFLAGS'
8552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h. */
8560 main ()
8564 return 0;
8566 _ACEOF
8567 if ac_fn_c_try_link "$LINENO"; then :
8568 lt_cv_cc_needs_belf=yes
8569 else
8570 lt_cv_cc_needs_belf=no
8572 rm -f core conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574 ac_ext=c
8575 ac_cpp='$CPP $CPPFLAGS'
8576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8582 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8583 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8584 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8585 CFLAGS="$SAVE_CFLAGS"
8588 *-*solaris*)
8589 # Find out which ABI we are using.
8590 echo 'int i;' > conftest.$ac_ext
8591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8592 (eval $ac_compile) 2>&5
8593 ac_status=$?
8594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8595 test $ac_status = 0; }; then
8596 case `/usr/bin/file conftest.o` in
8597 *64-bit*)
8598 case $lt_cv_prog_gnu_ld in
8599 yes*)
8600 case $host in
8601 i?86-*-solaris*)
8602 LD="${LD-ld} -m elf_x86_64"
8604 sparc*-*-solaris*)
8605 LD="${LD-ld} -m elf64_sparc"
8607 esac
8608 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8609 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8610 LD="${LD-ld}_sol2"
8614 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8615 LD="${LD-ld} -64"
8618 esac
8620 esac
8622 rm -rf conftest*
8624 esac
8626 need_locks="$enable_libtool_lock"
8628 if test -n "$ac_tool_prefix"; then
8629 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8630 set dummy ${ac_tool_prefix}mt; ac_word=$2
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632 $as_echo_n "checking for $ac_word... " >&6; }
8633 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 if test -n "$MANIFEST_TOOL"; then
8637 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8638 else
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8650 done
8651 done
8652 IFS=$as_save_IFS
8656 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8657 if test -n "$MANIFEST_TOOL"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8659 $as_echo "$MANIFEST_TOOL" >&6; }
8660 else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8667 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8668 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8669 # Extract the first word of "mt", so it can be a program name with args.
8670 set dummy mt; ac_word=$2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 $as_echo_n "checking for $ac_word... " >&6; }
8673 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 if test -n "$ac_ct_MANIFEST_TOOL"; then
8677 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8678 else
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 for as_dir in $PATH
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8690 done
8691 done
8692 IFS=$as_save_IFS
8696 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8697 if test -n "$ac_ct_MANIFEST_TOOL"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8699 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8700 else
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8705 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8706 MANIFEST_TOOL=":"
8707 else
8708 case $cross_compiling:$ac_tool_warned in
8709 yes:)
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8712 ac_tool_warned=yes ;;
8713 esac
8714 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8716 else
8717 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8720 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8722 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8723 if ${lt_cv_path_mainfest_tool+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 lt_cv_path_mainfest_tool=no
8727 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8728 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8729 cat conftest.err >&5
8730 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8731 lt_cv_path_mainfest_tool=yes
8733 rm -f conftest*
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8736 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8737 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8738 MANIFEST_TOOL=:
8746 case $host_os in
8747 rhapsody* | darwin*)
8748 if test -n "$ac_tool_prefix"; then
8749 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8750 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752 $as_echo_n "checking for $ac_word... " >&6; }
8753 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 if test -n "$DSYMUTIL"; then
8757 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8758 else
8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760 for as_dir in $PATH
8762 IFS=$as_save_IFS
8763 test -z "$as_dir" && as_dir=.
8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8766 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 break 2
8770 done
8771 done
8772 IFS=$as_save_IFS
8776 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8777 if test -n "$DSYMUTIL"; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8779 $as_echo "$DSYMUTIL" >&6; }
8780 else
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782 $as_echo "no" >&6; }
8787 if test -z "$ac_cv_prog_DSYMUTIL"; then
8788 ac_ct_DSYMUTIL=$DSYMUTIL
8789 # Extract the first word of "dsymutil", so it can be a program name with args.
8790 set dummy dsymutil; ac_word=$2
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792 $as_echo_n "checking for $ac_word... " >&6; }
8793 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 if test -n "$ac_ct_DSYMUTIL"; then
8797 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8798 else
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808 break 2
8810 done
8811 done
8812 IFS=$as_save_IFS
8816 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8817 if test -n "$ac_ct_DSYMUTIL"; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8819 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8820 else
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 $as_echo "no" >&6; }
8825 if test "x$ac_ct_DSYMUTIL" = x; then
8826 DSYMUTIL=":"
8827 else
8828 case $cross_compiling:$ac_tool_warned in
8829 yes:)
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8832 ac_tool_warned=yes ;;
8833 esac
8834 DSYMUTIL=$ac_ct_DSYMUTIL
8836 else
8837 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8840 if test -n "$ac_tool_prefix"; then
8841 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8842 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844 $as_echo_n "checking for $ac_word... " >&6; }
8845 if ${ac_cv_prog_NMEDIT+:} false; then :
8846 $as_echo_n "(cached) " >&6
8847 else
8848 if test -n "$NMEDIT"; then
8849 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8850 else
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852 for as_dir in $PATH
8854 IFS=$as_save_IFS
8855 test -z "$as_dir" && as_dir=.
8856 for ac_exec_ext in '' $ac_executable_extensions; do
8857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8858 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860 break 2
8862 done
8863 done
8864 IFS=$as_save_IFS
8868 NMEDIT=$ac_cv_prog_NMEDIT
8869 if test -n "$NMEDIT"; then
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8871 $as_echo "$NMEDIT" >&6; }
8872 else
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874 $as_echo "no" >&6; }
8879 if test -z "$ac_cv_prog_NMEDIT"; then
8880 ac_ct_NMEDIT=$NMEDIT
8881 # Extract the first word of "nmedit", so it can be a program name with args.
8882 set dummy nmedit; ac_word=$2
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8884 $as_echo_n "checking for $ac_word... " >&6; }
8885 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8886 $as_echo_n "(cached) " >&6
8887 else
8888 if test -n "$ac_ct_NMEDIT"; then
8889 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8890 else
8891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 for as_dir in $PATH
8894 IFS=$as_save_IFS
8895 test -z "$as_dir" && as_dir=.
8896 for ac_exec_ext in '' $ac_executable_extensions; do
8897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8898 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900 break 2
8902 done
8903 done
8904 IFS=$as_save_IFS
8908 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8909 if test -n "$ac_ct_NMEDIT"; then
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8911 $as_echo "$ac_ct_NMEDIT" >&6; }
8912 else
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 $as_echo "no" >&6; }
8917 if test "x$ac_ct_NMEDIT" = x; then
8918 NMEDIT=":"
8919 else
8920 case $cross_compiling:$ac_tool_warned in
8921 yes:)
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8924 ac_tool_warned=yes ;;
8925 esac
8926 NMEDIT=$ac_ct_NMEDIT
8928 else
8929 NMEDIT="$ac_cv_prog_NMEDIT"
8932 if test -n "$ac_tool_prefix"; then
8933 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8934 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8936 $as_echo_n "checking for $ac_word... " >&6; }
8937 if ${ac_cv_prog_LIPO+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 if test -n "$LIPO"; then
8941 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8942 else
8943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944 for as_dir in $PATH
8946 IFS=$as_save_IFS
8947 test -z "$as_dir" && as_dir=.
8948 for ac_exec_ext in '' $ac_executable_extensions; do
8949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8950 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8952 break 2
8954 done
8955 done
8956 IFS=$as_save_IFS
8960 LIPO=$ac_cv_prog_LIPO
8961 if test -n "$LIPO"; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8963 $as_echo "$LIPO" >&6; }
8964 else
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966 $as_echo "no" >&6; }
8971 if test -z "$ac_cv_prog_LIPO"; then
8972 ac_ct_LIPO=$LIPO
8973 # Extract the first word of "lipo", so it can be a program name with args.
8974 set dummy lipo; ac_word=$2
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976 $as_echo_n "checking for $ac_word... " >&6; }
8977 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 if test -n "$ac_ct_LIPO"; then
8981 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8982 else
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 for as_dir in $PATH
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8990 ac_cv_prog_ac_ct_LIPO="lipo"
8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8994 done
8995 done
8996 IFS=$as_save_IFS
9000 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9001 if test -n "$ac_ct_LIPO"; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9003 $as_echo "$ac_ct_LIPO" >&6; }
9004 else
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006 $as_echo "no" >&6; }
9009 if test "x$ac_ct_LIPO" = x; then
9010 LIPO=":"
9011 else
9012 case $cross_compiling:$ac_tool_warned in
9013 yes:)
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9016 ac_tool_warned=yes ;;
9017 esac
9018 LIPO=$ac_ct_LIPO
9020 else
9021 LIPO="$ac_cv_prog_LIPO"
9024 if test -n "$ac_tool_prefix"; then
9025 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9026 set dummy ${ac_tool_prefix}otool; ac_word=$2
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9028 $as_echo_n "checking for $ac_word... " >&6; }
9029 if ${ac_cv_prog_OTOOL+:} false; then :
9030 $as_echo_n "(cached) " >&6
9031 else
9032 if test -n "$OTOOL"; then
9033 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9034 else
9035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036 for as_dir in $PATH
9038 IFS=$as_save_IFS
9039 test -z "$as_dir" && as_dir=.
9040 for ac_exec_ext in '' $ac_executable_extensions; do
9041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9042 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9044 break 2
9046 done
9047 done
9048 IFS=$as_save_IFS
9052 OTOOL=$ac_cv_prog_OTOOL
9053 if test -n "$OTOOL"; then
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9055 $as_echo "$OTOOL" >&6; }
9056 else
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9058 $as_echo "no" >&6; }
9063 if test -z "$ac_cv_prog_OTOOL"; then
9064 ac_ct_OTOOL=$OTOOL
9065 # Extract the first word of "otool", so it can be a program name with args.
9066 set dummy otool; ac_word=$2
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9068 $as_echo_n "checking for $ac_word... " >&6; }
9069 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9070 $as_echo_n "(cached) " >&6
9071 else
9072 if test -n "$ac_ct_OTOOL"; then
9073 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9074 else
9075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9076 for as_dir in $PATH
9078 IFS=$as_save_IFS
9079 test -z "$as_dir" && as_dir=.
9080 for ac_exec_ext in '' $ac_executable_extensions; do
9081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9082 ac_cv_prog_ac_ct_OTOOL="otool"
9083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9084 break 2
9086 done
9087 done
9088 IFS=$as_save_IFS
9092 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9093 if test -n "$ac_ct_OTOOL"; then
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9095 $as_echo "$ac_ct_OTOOL" >&6; }
9096 else
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9098 $as_echo "no" >&6; }
9101 if test "x$ac_ct_OTOOL" = x; then
9102 OTOOL=":"
9103 else
9104 case $cross_compiling:$ac_tool_warned in
9105 yes:)
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9108 ac_tool_warned=yes ;;
9109 esac
9110 OTOOL=$ac_ct_OTOOL
9112 else
9113 OTOOL="$ac_cv_prog_OTOOL"
9116 if test -n "$ac_tool_prefix"; then
9117 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9118 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120 $as_echo_n "checking for $ac_word... " >&6; }
9121 if ${ac_cv_prog_OTOOL64+:} false; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 if test -n "$OTOOL64"; then
9125 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9126 else
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 for as_dir in $PATH
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9134 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 break 2
9138 done
9139 done
9140 IFS=$as_save_IFS
9144 OTOOL64=$ac_cv_prog_OTOOL64
9145 if test -n "$OTOOL64"; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9147 $as_echo "$OTOOL64" >&6; }
9148 else
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9155 if test -z "$ac_cv_prog_OTOOL64"; then
9156 ac_ct_OTOOL64=$OTOOL64
9157 # Extract the first word of "otool64", so it can be a program name with args.
9158 set dummy otool64; ac_word=$2
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9160 $as_echo_n "checking for $ac_word... " >&6; }
9161 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 if test -n "$ac_ct_OTOOL64"; then
9165 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9166 else
9167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168 for as_dir in $PATH
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9174 ac_cv_prog_ac_ct_OTOOL64="otool64"
9175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 break 2
9178 done
9179 done
9180 IFS=$as_save_IFS
9184 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9185 if test -n "$ac_ct_OTOOL64"; then
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9187 $as_echo "$ac_ct_OTOOL64" >&6; }
9188 else
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9190 $as_echo "no" >&6; }
9193 if test "x$ac_ct_OTOOL64" = x; then
9194 OTOOL64=":"
9195 else
9196 case $cross_compiling:$ac_tool_warned in
9197 yes:)
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9200 ac_tool_warned=yes ;;
9201 esac
9202 OTOOL64=$ac_ct_OTOOL64
9204 else
9205 OTOOL64="$ac_cv_prog_OTOOL64"
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9235 $as_echo_n "checking for -single_module linker flag... " >&6; }
9236 if ${lt_cv_apple_cc_single_mod+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 lt_cv_apple_cc_single_mod=no
9240 if test -z "${LT_MULTI_MODULE}"; then
9241 # By default we will add the -single_module flag. You can override
9242 # by either setting the environment variable LT_MULTI_MODULE
9243 # non-empty at configure time, or by adding -multi_module to the
9244 # link flags.
9245 rm -rf libconftest.dylib*
9246 echo "int foo(void){return 1;}" > conftest.c
9247 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9248 -dynamiclib -Wl,-single_module conftest.c" >&5
9249 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9250 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9251 _lt_result=$?
9252 # If there is a non-empty error log, and "single_module"
9253 # appears in it, assume the flag caused a linker warning
9254 if test -s conftest.err && $GREP single_module conftest.err; then
9255 cat conftest.err >&5
9256 # Otherwise, if the output was created with a 0 exit code from
9257 # the compiler, it worked.
9258 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9259 lt_cv_apple_cc_single_mod=yes
9260 else
9261 cat conftest.err >&5
9263 rm -rf libconftest.dylib*
9264 rm -f conftest.*
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9268 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9271 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9272 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 lt_cv_ld_exported_symbols_list=no
9276 save_LDFLAGS=$LDFLAGS
9277 echo "_main" > conftest.sym
9278 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9283 main ()
9287 return 0;
9289 _ACEOF
9290 if ac_fn_c_try_link "$LINENO"; then :
9291 lt_cv_ld_exported_symbols_list=yes
9292 else
9293 lt_cv_ld_exported_symbols_list=no
9295 rm -f core conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297 LDFLAGS="$save_LDFLAGS"
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9301 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9304 $as_echo_n "checking for -force_load linker flag... " >&6; }
9305 if ${lt_cv_ld_force_load+:} false; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 lt_cv_ld_force_load=no
9309 cat > conftest.c << _LT_EOF
9310 int forced_loaded() { return 2;}
9311 _LT_EOF
9312 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9313 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9314 echo "$AR cru libconftest.a conftest.o" >&5
9315 $AR cru libconftest.a conftest.o 2>&5
9316 echo "$RANLIB libconftest.a" >&5
9317 $RANLIB libconftest.a 2>&5
9318 cat > conftest.c << _LT_EOF
9319 int main() { return 0;}
9320 _LT_EOF
9321 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9322 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9323 _lt_result=$?
9324 if test -s conftest.err && $GREP force_load conftest.err; then
9325 cat conftest.err >&5
9326 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9327 lt_cv_ld_force_load=yes
9328 else
9329 cat conftest.err >&5
9331 rm -f conftest.err libconftest.a conftest conftest.c
9332 rm -rf conftest.dSYM
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9336 $as_echo "$lt_cv_ld_force_load" >&6; }
9337 case $host_os in
9338 rhapsody* | darwin1.[012])
9339 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9340 darwin1.*)
9341 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9342 darwin*) # darwin 5.x on
9343 # if running on 10.5 or later, the deployment target defaults
9344 # to the OS version, if on x86, and 10.4, the deployment
9345 # target defaults to 10.4. Don't you love it?
9346 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9347 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9348 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9349 10.[012]*)
9350 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9351 10.*)
9352 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9353 esac
9355 esac
9356 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9357 _lt_dar_single_mod='$single_module'
9359 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9360 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9361 else
9362 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9364 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9365 _lt_dsymutil='~$DSYMUTIL $lib || :'
9366 else
9367 _lt_dsymutil=
9370 esac
9372 for ac_header in dlfcn.h
9373 do :
9374 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9376 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9377 cat >>confdefs.h <<_ACEOF
9378 #define HAVE_DLFCN_H 1
9379 _ACEOF
9383 done
9389 # Set options
9393 enable_dlopen=no
9396 enable_win32_dll=no
9399 # Check whether --enable-shared was given.
9400 if test "${enable_shared+set}" = set; then :
9401 enableval=$enable_shared; p=${PACKAGE-default}
9402 case $enableval in
9403 yes) enable_shared=yes ;;
9404 no) enable_shared=no ;;
9406 enable_shared=no
9407 # Look at the argument we got. We use all the common list separators.
9408 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9409 for pkg in $enableval; do
9410 IFS="$lt_save_ifs"
9411 if test "X$pkg" = "X$p"; then
9412 enable_shared=yes
9414 done
9415 IFS="$lt_save_ifs"
9417 esac
9418 else
9419 enable_shared=yes
9430 # Check whether --enable-static was given.
9431 if test "${enable_static+set}" = set; then :
9432 enableval=$enable_static; p=${PACKAGE-default}
9433 case $enableval in
9434 yes) enable_static=yes ;;
9435 no) enable_static=no ;;
9437 enable_static=no
9438 # Look at the argument we got. We use all the common list separators.
9439 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9440 for pkg in $enableval; do
9441 IFS="$lt_save_ifs"
9442 if test "X$pkg" = "X$p"; then
9443 enable_static=yes
9445 done
9446 IFS="$lt_save_ifs"
9448 esac
9449 else
9450 enable_static=yes
9462 # Check whether --with-pic was given.
9463 if test "${with_pic+set}" = set; then :
9464 withval=$with_pic; lt_p=${PACKAGE-default}
9465 case $withval in
9466 yes|no) pic_mode=$withval ;;
9468 pic_mode=default
9469 # Look at the argument we got. We use all the common list separators.
9470 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9471 for lt_pkg in $withval; do
9472 IFS="$lt_save_ifs"
9473 if test "X$lt_pkg" = "X$lt_p"; then
9474 pic_mode=yes
9476 done
9477 IFS="$lt_save_ifs"
9479 esac
9480 else
9481 pic_mode=default
9485 test -z "$pic_mode" && pic_mode=default
9493 # Check whether --enable-fast-install was given.
9494 if test "${enable_fast_install+set}" = set; then :
9495 enableval=$enable_fast_install; p=${PACKAGE-default}
9496 case $enableval in
9497 yes) enable_fast_install=yes ;;
9498 no) enable_fast_install=no ;;
9500 enable_fast_install=no
9501 # Look at the argument we got. We use all the common list separators.
9502 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9503 for pkg in $enableval; do
9504 IFS="$lt_save_ifs"
9505 if test "X$pkg" = "X$p"; then
9506 enable_fast_install=yes
9508 done
9509 IFS="$lt_save_ifs"
9511 esac
9512 else
9513 enable_fast_install=yes
9526 # This can be used to rebuild libtool when needed
9527 LIBTOOL_DEPS="$ltmain"
9529 # Always use our own libtool.
9530 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9561 test -z "$LN_S" && LN_S="ln -s"
9576 if test -n "${ZSH_VERSION+set}" ; then
9577 setopt NO_GLOB_SUBST
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9581 $as_echo_n "checking for objdir... " >&6; }
9582 if ${lt_cv_objdir+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 rm -f .libs 2>/dev/null
9586 mkdir .libs 2>/dev/null
9587 if test -d .libs; then
9588 lt_cv_objdir=.libs
9589 else
9590 # MS-DOS does not allow filenames that begin with a dot.
9591 lt_cv_objdir=_libs
9593 rmdir .libs 2>/dev/null
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9596 $as_echo "$lt_cv_objdir" >&6; }
9597 objdir=$lt_cv_objdir
9603 cat >>confdefs.h <<_ACEOF
9604 #define LT_OBJDIR "$lt_cv_objdir/"
9605 _ACEOF
9610 case $host_os in
9611 aix3*)
9612 # AIX sometimes has problems with the GCC collect2 program. For some
9613 # reason, if we set the COLLECT_NAMES environment variable, the problems
9614 # vanish in a puff of smoke.
9615 if test "X${COLLECT_NAMES+set}" != Xset; then
9616 COLLECT_NAMES=
9617 export COLLECT_NAMES
9620 esac
9622 # Global variables:
9623 ofile=libtool
9624 can_build_shared=yes
9626 # All known linkers require a `.a' archive for static linking (except MSVC,
9627 # which needs '.lib').
9628 libext=a
9630 with_gnu_ld="$lt_cv_prog_gnu_ld"
9632 old_CC="$CC"
9633 old_CFLAGS="$CFLAGS"
9635 # Set sane defaults for various variables
9636 test -z "$CC" && CC=cc
9637 test -z "$LTCC" && LTCC=$CC
9638 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9639 test -z "$LD" && LD=ld
9640 test -z "$ac_objext" && ac_objext=o
9642 for cc_temp in $compiler""; do
9643 case $cc_temp in
9644 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9645 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9646 \-*) ;;
9647 *) break;;
9648 esac
9649 done
9650 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9653 # Only perform the check for file, if the check method requires it
9654 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9655 case $deplibs_check_method in
9656 file_magic*)
9657 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9659 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9660 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 case $MAGIC_CMD in
9664 [\\/*] | ?:[\\/]*)
9665 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9668 lt_save_MAGIC_CMD="$MAGIC_CMD"
9669 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9670 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9671 for ac_dir in $ac_dummy; do
9672 IFS="$lt_save_ifs"
9673 test -z "$ac_dir" && ac_dir=.
9674 if test -f $ac_dir/${ac_tool_prefix}file; then
9675 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9676 if test -n "$file_magic_test_file"; then
9677 case $deplibs_check_method in
9678 "file_magic "*)
9679 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9680 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9681 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9682 $EGREP "$file_magic_regex" > /dev/null; then
9684 else
9685 cat <<_LT_EOF 1>&2
9687 *** Warning: the command libtool uses to detect shared libraries,
9688 *** $file_magic_cmd, produces output that libtool cannot recognize.
9689 *** The result is that libtool may fail to recognize shared libraries
9690 *** as such. This will affect the creation of libtool libraries that
9691 *** depend on shared libraries, but programs linked with such libtool
9692 *** libraries will work regardless of this problem. Nevertheless, you
9693 *** may want to report the problem to your system manager and/or to
9694 *** bug-libtool@gnu.org
9696 _LT_EOF
9697 fi ;;
9698 esac
9700 break
9702 done
9703 IFS="$lt_save_ifs"
9704 MAGIC_CMD="$lt_save_MAGIC_CMD"
9706 esac
9709 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9710 if test -n "$MAGIC_CMD"; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9712 $as_echo "$MAGIC_CMD" >&6; }
9713 else
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9722 if test -z "$lt_cv_path_MAGIC_CMD"; then
9723 if test -n "$ac_tool_prefix"; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9725 $as_echo_n "checking for file... " >&6; }
9726 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9727 $as_echo_n "(cached) " >&6
9728 else
9729 case $MAGIC_CMD in
9730 [\\/*] | ?:[\\/]*)
9731 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9734 lt_save_MAGIC_CMD="$MAGIC_CMD"
9735 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9736 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9737 for ac_dir in $ac_dummy; do
9738 IFS="$lt_save_ifs"
9739 test -z "$ac_dir" && ac_dir=.
9740 if test -f $ac_dir/file; then
9741 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9742 if test -n "$file_magic_test_file"; then
9743 case $deplibs_check_method in
9744 "file_magic "*)
9745 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9747 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9748 $EGREP "$file_magic_regex" > /dev/null; then
9750 else
9751 cat <<_LT_EOF 1>&2
9753 *** Warning: the command libtool uses to detect shared libraries,
9754 *** $file_magic_cmd, produces output that libtool cannot recognize.
9755 *** The result is that libtool may fail to recognize shared libraries
9756 *** as such. This will affect the creation of libtool libraries that
9757 *** depend on shared libraries, but programs linked with such libtool
9758 *** libraries will work regardless of this problem. Nevertheless, you
9759 *** may want to report the problem to your system manager and/or to
9760 *** bug-libtool@gnu.org
9762 _LT_EOF
9763 fi ;;
9764 esac
9766 break
9768 done
9769 IFS="$lt_save_ifs"
9770 MAGIC_CMD="$lt_save_MAGIC_CMD"
9772 esac
9775 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9776 if test -n "$MAGIC_CMD"; then
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9778 $as_echo "$MAGIC_CMD" >&6; }
9779 else
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781 $as_echo "no" >&6; }
9785 else
9786 MAGIC_CMD=:
9792 esac
9794 # Use C for the default configuration in the libtool script
9796 lt_save_CC="$CC"
9797 ac_ext=c
9798 ac_cpp='$CPP $CPPFLAGS'
9799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9804 # Source file extension for C test sources.
9805 ac_ext=c
9807 # Object file extension for compiled C test sources.
9808 objext=o
9809 objext=$objext
9811 # Code to be used in simple compile tests
9812 lt_simple_compile_test_code="int some_variable = 0;"
9814 # Code to be used in simple link tests
9815 lt_simple_link_test_code='int main(){return(0);}'
9823 # If no C compiler was specified, use CC.
9824 LTCC=${LTCC-"$CC"}
9826 # If no C compiler flags were specified, use CFLAGS.
9827 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9829 # Allow CC to be a program name with arguments.
9830 compiler=$CC
9832 # Save the default compiler, since it gets overwritten when the other
9833 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9834 compiler_DEFAULT=$CC
9836 # save warnings/boilerplate of simple test code
9837 ac_outfile=conftest.$ac_objext
9838 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9839 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9840 _lt_compiler_boilerplate=`cat conftest.err`
9841 $RM conftest*
9843 ac_outfile=conftest.$ac_objext
9844 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9845 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9846 _lt_linker_boilerplate=`cat conftest.err`
9847 $RM -r conftest*
9850 ## CAVEAT EMPTOR:
9851 ## There is no encapsulation within the following macros, do not change
9852 ## the running order or otherwise move them around unless you know exactly
9853 ## what you are doing...
9854 if test -n "$compiler"; then
9856 lt_prog_compiler_no_builtin_flag=
9858 if test "$GCC" = yes; then
9859 case $cc_basename in
9860 nvcc*)
9861 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9863 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9864 esac
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9867 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9868 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 lt_cv_prog_compiler_rtti_exceptions=no
9872 ac_outfile=conftest.$ac_objext
9873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9874 lt_compiler_flag="-fno-rtti -fno-exceptions"
9875 # Insert the option either (1) after the last *FLAGS variable, or
9876 # (2) before a word containing "conftest.", or (3) at the end.
9877 # Note that $ac_compile itself does not contain backslashes and begins
9878 # with a dollar sign (not a hyphen), so the echo should work correctly.
9879 # The option is referenced via a variable to avoid confusing sed.
9880 lt_compile=`echo "$ac_compile" | $SED \
9881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9883 -e 's:$: $lt_compiler_flag:'`
9884 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9885 (eval "$lt_compile" 2>conftest.err)
9886 ac_status=$?
9887 cat conftest.err >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 if (exit $ac_status) && test -s "$ac_outfile"; then
9890 # The compiler can only warn and ignore the option if not recognized
9891 # So say no if there are warnings other than the usual output.
9892 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9894 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9895 lt_cv_prog_compiler_rtti_exceptions=yes
9898 $RM conftest*
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9902 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9904 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9905 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9906 else
9917 lt_prog_compiler_wl=
9918 lt_prog_compiler_pic=
9919 lt_prog_compiler_static=
9922 if test "$GCC" = yes; then
9923 lt_prog_compiler_wl='-Wl,'
9924 lt_prog_compiler_static='-static'
9926 case $host_os in
9927 aix*)
9928 # All AIX code is PIC.
9929 if test "$host_cpu" = ia64; then
9930 # AIX 5 now supports IA64 processor
9931 lt_prog_compiler_static='-Bstatic'
9935 amigaos*)
9936 case $host_cpu in
9937 powerpc)
9938 # see comment about AmigaOS4 .so support
9939 lt_prog_compiler_pic='-fPIC'
9941 m68k)
9942 # FIXME: we need at least 68020 code to build shared libraries, but
9943 # adding the `-m68020' flag to GCC prevents building anything better,
9944 # like `-m68040'.
9945 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9947 esac
9950 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9951 # PIC is the default for these OSes.
9954 mingw* | cygwin* | pw32* | os2* | cegcc*)
9955 # This hack is so that the source file can tell whether it is being
9956 # built for inclusion in a dll (and should export symbols for example).
9957 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9958 # (--disable-auto-import) libraries
9959 lt_prog_compiler_pic='-DDLL_EXPORT'
9962 darwin* | rhapsody*)
9963 # PIC is the default on this platform
9964 # Common symbols not allowed in MH_DYLIB files
9965 lt_prog_compiler_pic='-fno-common'
9968 haiku*)
9969 # PIC is the default for Haiku.
9970 # The "-static" flag exists, but is broken.
9971 lt_prog_compiler_static=
9974 hpux*)
9975 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9976 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9977 # sets the default TLS model and affects inlining.
9978 case $host_cpu in
9979 hppa*64*)
9980 # +Z the default
9983 lt_prog_compiler_pic='-fPIC'
9985 esac
9988 interix[3-9]*)
9989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9990 # Instead, we relocate shared libraries at runtime.
9993 msdosdjgpp*)
9994 # Just because we use GCC doesn't mean we suddenly get shared libraries
9995 # on systems that don't support them.
9996 lt_prog_compiler_can_build_shared=no
9997 enable_shared=no
10000 *nto* | *qnx*)
10001 # QNX uses GNU C++, but need to define -shared option too, otherwise
10002 # it will coredump.
10003 lt_prog_compiler_pic='-fPIC -shared'
10006 sysv4*MP*)
10007 if test -d /usr/nec; then
10008 lt_prog_compiler_pic=-Kconform_pic
10013 lt_prog_compiler_pic='-fPIC'
10015 esac
10017 case $cc_basename in
10018 nvcc*) # Cuda Compiler Driver 2.2
10019 lt_prog_compiler_wl='-Xlinker '
10020 if test -n "$lt_prog_compiler_pic"; then
10021 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10024 esac
10025 else
10026 # PORTME Check for flag to pass linker flags through the system compiler.
10027 case $host_os in
10028 aix*)
10029 lt_prog_compiler_wl='-Wl,'
10030 if test "$host_cpu" = ia64; then
10031 # AIX 5 now supports IA64 processor
10032 lt_prog_compiler_static='-Bstatic'
10033 else
10034 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10038 mingw* | cygwin* | pw32* | os2* | cegcc*)
10039 # This hack is so that the source file can tell whether it is being
10040 # built for inclusion in a dll (and should export symbols for example).
10041 lt_prog_compiler_pic='-DDLL_EXPORT'
10044 hpux9* | hpux10* | hpux11*)
10045 lt_prog_compiler_wl='-Wl,'
10046 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10047 # not for PA HP-UX.
10048 case $host_cpu in
10049 hppa*64*|ia64*)
10050 # +Z the default
10053 lt_prog_compiler_pic='+Z'
10055 esac
10056 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10057 lt_prog_compiler_static='${wl}-a ${wl}archive'
10060 irix5* | irix6* | nonstopux*)
10061 lt_prog_compiler_wl='-Wl,'
10062 # PIC (with -KPIC) is the default.
10063 lt_prog_compiler_static='-non_shared'
10066 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10067 case $cc_basename in
10068 # old Intel for x86_64 which still supported -KPIC.
10069 ecc*)
10070 lt_prog_compiler_wl='-Wl,'
10071 lt_prog_compiler_pic='-KPIC'
10072 lt_prog_compiler_static='-static'
10074 # icc used to be incompatible with GCC.
10075 # ICC 10 doesn't accept -KPIC any more.
10076 icc* | ifort*)
10077 lt_prog_compiler_wl='-Wl,'
10078 lt_prog_compiler_pic='-fPIC'
10079 lt_prog_compiler_static='-static'
10081 # Lahey Fortran 8.1.
10082 lf95*)
10083 lt_prog_compiler_wl='-Wl,'
10084 lt_prog_compiler_pic='--shared'
10085 lt_prog_compiler_static='--static'
10087 nagfor*)
10088 # NAG Fortran compiler
10089 lt_prog_compiler_wl='-Wl,-Wl,,'
10090 lt_prog_compiler_pic='-PIC'
10091 lt_prog_compiler_static='-Bstatic'
10093 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10094 # Portland Group compilers (*not* the Pentium gcc compiler,
10095 # which looks to be a dead project)
10096 lt_prog_compiler_wl='-Wl,'
10097 lt_prog_compiler_pic='-fpic'
10098 lt_prog_compiler_static='-Bstatic'
10100 ccc*)
10101 lt_prog_compiler_wl='-Wl,'
10102 # All Alpha code is PIC.
10103 lt_prog_compiler_static='-non_shared'
10105 xl* | bgxl* | bgf* | mpixl*)
10106 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10107 lt_prog_compiler_wl='-Wl,'
10108 lt_prog_compiler_pic='-qpic'
10109 lt_prog_compiler_static='-qstaticlink'
10112 case `$CC -V 2>&1 | sed 5q` in
10113 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10114 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10115 lt_prog_compiler_pic='-KPIC'
10116 lt_prog_compiler_static='-Bstatic'
10117 lt_prog_compiler_wl=''
10119 *Sun\ F* | *Sun*Fortran*)
10120 lt_prog_compiler_pic='-KPIC'
10121 lt_prog_compiler_static='-Bstatic'
10122 lt_prog_compiler_wl='-Qoption ld '
10124 *Sun\ C*)
10125 # Sun C 5.9
10126 lt_prog_compiler_pic='-KPIC'
10127 lt_prog_compiler_static='-Bstatic'
10128 lt_prog_compiler_wl='-Wl,'
10130 *Intel*\ [CF]*Compiler*)
10131 lt_prog_compiler_wl='-Wl,'
10132 lt_prog_compiler_pic='-fPIC'
10133 lt_prog_compiler_static='-static'
10135 *Portland\ Group*)
10136 lt_prog_compiler_wl='-Wl,'
10137 lt_prog_compiler_pic='-fpic'
10138 lt_prog_compiler_static='-Bstatic'
10140 esac
10142 esac
10145 newsos6)
10146 lt_prog_compiler_pic='-KPIC'
10147 lt_prog_compiler_static='-Bstatic'
10150 *nto* | *qnx*)
10151 # QNX uses GNU C++, but need to define -shared option too, otherwise
10152 # it will coredump.
10153 lt_prog_compiler_pic='-fPIC -shared'
10156 osf3* | osf4* | osf5*)
10157 lt_prog_compiler_wl='-Wl,'
10158 # All OSF/1 code is PIC.
10159 lt_prog_compiler_static='-non_shared'
10162 rdos*)
10163 lt_prog_compiler_static='-non_shared'
10166 solaris*)
10167 lt_prog_compiler_pic='-KPIC'
10168 lt_prog_compiler_static='-Bstatic'
10169 case $cc_basename in
10170 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10171 lt_prog_compiler_wl='-Qoption ld ';;
10173 lt_prog_compiler_wl='-Wl,';;
10174 esac
10177 sunos4*)
10178 lt_prog_compiler_wl='-Qoption ld '
10179 lt_prog_compiler_pic='-PIC'
10180 lt_prog_compiler_static='-Bstatic'
10183 sysv4 | sysv4.2uw2* | sysv4.3*)
10184 lt_prog_compiler_wl='-Wl,'
10185 lt_prog_compiler_pic='-KPIC'
10186 lt_prog_compiler_static='-Bstatic'
10189 sysv4*MP*)
10190 if test -d /usr/nec ;then
10191 lt_prog_compiler_pic='-Kconform_pic'
10192 lt_prog_compiler_static='-Bstatic'
10196 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10197 lt_prog_compiler_wl='-Wl,'
10198 lt_prog_compiler_pic='-KPIC'
10199 lt_prog_compiler_static='-Bstatic'
10202 unicos*)
10203 lt_prog_compiler_wl='-Wl,'
10204 lt_prog_compiler_can_build_shared=no
10207 uts4*)
10208 lt_prog_compiler_pic='-pic'
10209 lt_prog_compiler_static='-Bstatic'
10213 lt_prog_compiler_can_build_shared=no
10215 esac
10218 case $host_os in
10219 # For platforms which do not support PIC, -DPIC is meaningless:
10220 *djgpp*)
10221 lt_prog_compiler_pic=
10224 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10226 esac
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10229 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10230 if ${lt_cv_prog_compiler_pic+:} false; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10236 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10237 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10240 # Check to make sure the PIC flag actually works.
10242 if test -n "$lt_prog_compiler_pic"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10244 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10245 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248 lt_cv_prog_compiler_pic_works=no
10249 ac_outfile=conftest.$ac_objext
10250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10251 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10252 # Insert the option either (1) after the last *FLAGS variable, or
10253 # (2) before a word containing "conftest.", or (3) at the end.
10254 # Note that $ac_compile itself does not contain backslashes and begins
10255 # with a dollar sign (not a hyphen), so the echo should work correctly.
10256 # The option is referenced via a variable to avoid confusing sed.
10257 lt_compile=`echo "$ac_compile" | $SED \
10258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10260 -e 's:$: $lt_compiler_flag:'`
10261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10262 (eval "$lt_compile" 2>conftest.err)
10263 ac_status=$?
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 if (exit $ac_status) && test -s "$ac_outfile"; then
10267 # The compiler can only warn and ignore the option if not recognized
10268 # So say no if there are warnings other than the usual output.
10269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10271 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10272 lt_cv_prog_compiler_pic_works=yes
10275 $RM conftest*
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10279 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10281 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10282 case $lt_prog_compiler_pic in
10283 "" | " "*) ;;
10284 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10285 esac
10286 else
10287 lt_prog_compiler_pic=
10288 lt_prog_compiler_can_build_shared=no
10304 # Check to make sure the static flag actually works.
10306 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10308 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10309 if ${lt_cv_prog_compiler_static_works+:} false; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 lt_cv_prog_compiler_static_works=no
10313 save_LDFLAGS="$LDFLAGS"
10314 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10315 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10316 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10317 # The linker can only warn and ignore the option if not recognized
10318 # So say no if there are warnings
10319 if test -s conftest.err; then
10320 # Append any errors to the config.log.
10321 cat conftest.err 1>&5
10322 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10324 if diff conftest.exp conftest.er2 >/dev/null; then
10325 lt_cv_prog_compiler_static_works=yes
10327 else
10328 lt_cv_prog_compiler_static_works=yes
10331 $RM -r conftest*
10332 LDFLAGS="$save_LDFLAGS"
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10336 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10338 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10340 else
10341 lt_prog_compiler_static=
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10351 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10352 if ${lt_cv_prog_compiler_c_o+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 lt_cv_prog_compiler_c_o=no
10356 $RM -r conftest 2>/dev/null
10357 mkdir conftest
10358 cd conftest
10359 mkdir out
10360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10362 lt_compiler_flag="-o out/conftest2.$ac_objext"
10363 # Insert the option either (1) after the last *FLAGS variable, or
10364 # (2) before a word containing "conftest.", or (3) at the end.
10365 # Note that $ac_compile itself does not contain backslashes and begins
10366 # with a dollar sign (not a hyphen), so the echo should work correctly.
10367 lt_compile=`echo "$ac_compile" | $SED \
10368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10370 -e 's:$: $lt_compiler_flag:'`
10371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10372 (eval "$lt_compile" 2>out/conftest.err)
10373 ac_status=$?
10374 cat out/conftest.err >&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10377 then
10378 # The compiler can only warn and ignore the option if not recognized
10379 # So say no if there are warnings
10380 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10381 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10382 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10383 lt_cv_prog_compiler_c_o=yes
10386 chmod u+w . 2>&5
10387 $RM conftest*
10388 # SGI C++ compiler will create directory out/ii_files/ for
10389 # template instantiation
10390 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10391 $RM out/* && rmdir out
10392 cd ..
10393 $RM -r conftest
10394 $RM conftest*
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10398 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10406 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10407 if ${lt_cv_prog_compiler_c_o+:} false; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 lt_cv_prog_compiler_c_o=no
10411 $RM -r conftest 2>/dev/null
10412 mkdir conftest
10413 cd conftest
10414 mkdir out
10415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10417 lt_compiler_flag="-o out/conftest2.$ac_objext"
10418 # Insert the option either (1) after the last *FLAGS variable, or
10419 # (2) before a word containing "conftest.", or (3) at the end.
10420 # Note that $ac_compile itself does not contain backslashes and begins
10421 # with a dollar sign (not a hyphen), so the echo should work correctly.
10422 lt_compile=`echo "$ac_compile" | $SED \
10423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10425 -e 's:$: $lt_compiler_flag:'`
10426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10427 (eval "$lt_compile" 2>out/conftest.err)
10428 ac_status=$?
10429 cat out/conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10432 then
10433 # The compiler can only warn and ignore the option if not recognized
10434 # So say no if there are warnings
10435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10438 lt_cv_prog_compiler_c_o=yes
10441 chmod u+w . 2>&5
10442 $RM conftest*
10443 # SGI C++ compiler will create directory out/ii_files/ for
10444 # template instantiation
10445 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10446 $RM out/* && rmdir out
10447 cd ..
10448 $RM -r conftest
10449 $RM conftest*
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10453 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10458 hard_links="nottested"
10459 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10460 # do not overwrite the value of need_locks provided by the user
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10462 $as_echo_n "checking if we can lock with hard links... " >&6; }
10463 hard_links=yes
10464 $RM conftest*
10465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10466 touch conftest.a
10467 ln conftest.a conftest.b 2>&5 || hard_links=no
10468 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10470 $as_echo "$hard_links" >&6; }
10471 if test "$hard_links" = no; then
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10473 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10474 need_locks=warn
10476 else
10477 need_locks=no
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10486 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10488 runpath_var=
10489 allow_undefined_flag=
10490 always_export_symbols=no
10491 archive_cmds=
10492 archive_expsym_cmds=
10493 compiler_needs_object=no
10494 enable_shared_with_static_runtimes=no
10495 export_dynamic_flag_spec=
10496 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10497 hardcode_automatic=no
10498 hardcode_direct=no
10499 hardcode_direct_absolute=no
10500 hardcode_libdir_flag_spec=
10501 hardcode_libdir_separator=
10502 hardcode_minus_L=no
10503 hardcode_shlibpath_var=unsupported
10504 inherit_rpath=no
10505 link_all_deplibs=unknown
10506 module_cmds=
10507 module_expsym_cmds=
10508 old_archive_from_new_cmds=
10509 old_archive_from_expsyms_cmds=
10510 thread_safe_flag_spec=
10511 whole_archive_flag_spec=
10512 # include_expsyms should be a list of space-separated symbols to be *always*
10513 # included in the symbol list
10514 include_expsyms=
10515 # exclude_expsyms can be an extended regexp of symbols to exclude
10516 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10517 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10518 # as well as any symbol that contains `d'.
10519 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10520 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10521 # platforms (ab)use it in PIC code, but their linkers get confused if
10522 # the symbol is explicitly referenced. Since portable code cannot
10523 # rely on this symbol name, it's probably fine to never include it in
10524 # preloaded symbol tables.
10525 # Exclude shared library initialization/finalization symbols.
10526 extract_expsyms_cmds=
10528 case $host_os in
10529 cygwin* | mingw* | pw32* | cegcc*)
10530 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10531 # When not using gcc, we currently assume that we are using
10532 # Microsoft Visual C++.
10533 if test "$GCC" != yes; then
10534 with_gnu_ld=no
10537 interix*)
10538 # we just hope/assume this is gcc and not c89 (= MSVC++)
10539 with_gnu_ld=yes
10541 openbsd*)
10542 with_gnu_ld=no
10544 linux* | k*bsd*-gnu | gnu*)
10545 link_all_deplibs=no
10547 esac
10549 ld_shlibs=yes
10551 # On some targets, GNU ld is compatible enough with the native linker
10552 # that we're better off using the native interface for both.
10553 lt_use_gnu_ld_interface=no
10554 if test "$with_gnu_ld" = yes; then
10555 case $host_os in
10556 aix*)
10557 # The AIX port of GNU ld has always aspired to compatibility
10558 # with the native linker. However, as the warning in the GNU ld
10559 # block says, versions before 2.19.5* couldn't really create working
10560 # shared libraries, regardless of the interface used.
10561 case `$LD -v 2>&1` in
10562 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10563 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10564 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10566 lt_use_gnu_ld_interface=yes
10568 esac
10571 lt_use_gnu_ld_interface=yes
10573 esac
10576 if test "$lt_use_gnu_ld_interface" = yes; then
10577 # If archive_cmds runs LD, not CC, wlarc should be empty
10578 wlarc='${wl}'
10580 # Set some defaults for GNU ld with shared library support. These
10581 # are reset later if shared libraries are not supported. Putting them
10582 # here allows them to be overridden if necessary.
10583 runpath_var=LD_RUN_PATH
10584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10585 export_dynamic_flag_spec='${wl}--export-dynamic'
10586 # ancient GNU ld didn't support --whole-archive et. al.
10587 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10588 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10589 else
10590 whole_archive_flag_spec=
10592 supports_anon_versioning=no
10593 case `$LD -v 2>&1` in
10594 *GNU\ gold*) supports_anon_versioning=yes ;;
10595 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10596 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10597 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10598 *\ 2.11.*) ;; # other 2.11 versions
10599 *) supports_anon_versioning=yes ;;
10600 esac
10602 # See if GNU ld supports shared libraries.
10603 case $host_os in
10604 aix[3-9]*)
10605 # On AIX/PPC, the GNU linker is very broken
10606 if test "$host_cpu" != ia64; then
10607 ld_shlibs=no
10608 cat <<_LT_EOF 1>&2
10610 *** Warning: the GNU linker, at least up to release 2.19, is reported
10611 *** to be unable to reliably create shared libraries on AIX.
10612 *** Therefore, libtool is disabling shared libraries support. If you
10613 *** really care for shared libraries, you may want to install binutils
10614 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10615 *** You will then need to restart the configuration process.
10617 _LT_EOF
10621 amigaos*)
10622 case $host_cpu in
10623 powerpc)
10624 # see comment about AmigaOS4 .so support
10625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10626 archive_expsym_cmds=''
10628 m68k)
10629 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)'
10630 hardcode_libdir_flag_spec='-L$libdir'
10631 hardcode_minus_L=yes
10633 esac
10636 beos*)
10637 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10638 allow_undefined_flag=unsupported
10639 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10640 # support --undefined. This deserves some investigation. FIXME
10641 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10642 else
10643 ld_shlibs=no
10647 cygwin* | mingw* | pw32* | cegcc*)
10648 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10649 # as there is no search path for DLLs.
10650 hardcode_libdir_flag_spec='-L$libdir'
10651 export_dynamic_flag_spec='${wl}--export-all-symbols'
10652 allow_undefined_flag=unsupported
10653 always_export_symbols=no
10654 enable_shared_with_static_runtimes=yes
10655 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'
10656 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10658 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10660 # If the export-symbols file already is a .def file (1st line
10661 # is EXPORTS), use it as is; otherwise, prepend...
10662 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10663 cp $export_symbols $output_objdir/$soname.def;
10664 else
10665 echo EXPORTS > $output_objdir/$soname.def;
10666 cat $export_symbols >> $output_objdir/$soname.def;
10668 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10669 else
10670 ld_shlibs=no
10674 haiku*)
10675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10676 link_all_deplibs=yes
10679 interix[3-9]*)
10680 hardcode_direct=no
10681 hardcode_shlibpath_var=no
10682 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10683 export_dynamic_flag_spec='${wl}-E'
10684 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10685 # Instead, shared libraries are loaded at an image base (0x10000000 by
10686 # default) and relocated if they conflict, which is a slow very memory
10687 # consuming and fragmenting process. To avoid this, we pick a random,
10688 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10689 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10690 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10691 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'
10694 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10695 tmp_diet=no
10696 if test "$host_os" = linux-dietlibc; then
10697 case $cc_basename in
10698 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10699 esac
10701 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10702 && test "$tmp_diet" = no
10703 then
10704 tmp_addflag=' $pic_flag'
10705 tmp_sharedflag='-shared'
10706 case $cc_basename,$host_cpu in
10707 pgcc*) # Portland Group C compiler
10708 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'
10709 tmp_addflag=' $pic_flag'
10711 pgf77* | pgf90* | pgf95* | pgfortran*)
10712 # Portland Group f77 and f90 compilers
10713 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'
10714 tmp_addflag=' $pic_flag -Mnomain' ;;
10715 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10716 tmp_addflag=' -i_dynamic' ;;
10717 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10718 tmp_addflag=' -i_dynamic -nofor_main' ;;
10719 ifc* | ifort*) # Intel Fortran compiler
10720 tmp_addflag=' -nofor_main' ;;
10721 lf95*) # Lahey Fortran 8.1
10722 whole_archive_flag_spec=
10723 tmp_sharedflag='--shared' ;;
10724 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10725 tmp_sharedflag='-qmkshrobj'
10726 tmp_addflag= ;;
10727 nvcc*) # Cuda Compiler Driver 2.2
10728 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'
10729 compiler_needs_object=yes
10731 esac
10732 case `$CC -V 2>&1 | sed 5q` in
10733 *Sun\ C*) # Sun C 5.9
10734 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'
10735 compiler_needs_object=yes
10736 tmp_sharedflag='-G' ;;
10737 *Sun\ F*) # Sun Fortran 8.3
10738 tmp_sharedflag='-G' ;;
10739 esac
10740 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10742 if test "x$supports_anon_versioning" = xyes; then
10743 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10745 echo "local: *; };" >> $output_objdir/$libname.ver~
10746 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10749 case $cc_basename in
10750 xlf* | bgf* | bgxlf* | mpixlf*)
10751 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10752 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10754 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10755 if test "x$supports_anon_versioning" = xyes; then
10756 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10758 echo "local: *; };" >> $output_objdir/$libname.ver~
10759 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10762 esac
10763 else
10764 ld_shlibs=no
10768 netbsd* | netbsdelf*-gnu)
10769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10770 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10771 wlarc=
10772 else
10773 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10774 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10778 solaris*)
10779 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10780 ld_shlibs=no
10781 cat <<_LT_EOF 1>&2
10783 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10784 *** create shared libraries on Solaris systems. Therefore, libtool
10785 *** is disabling shared libraries support. We urge you to upgrade GNU
10786 *** binutils to release 2.9.1 or newer. Another option is to modify
10787 *** your PATH or compiler configuration so that the native linker is
10788 *** used, and then restart.
10790 _LT_EOF
10791 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10792 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10793 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10794 else
10795 ld_shlibs=no
10799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10800 case `$LD -v 2>&1` in
10801 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10802 ld_shlibs=no
10803 cat <<_LT_EOF 1>&2
10805 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10806 *** reliably create shared libraries on SCO systems. Therefore, libtool
10807 *** is disabling shared libraries support. We urge you to upgrade GNU
10808 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10809 *** your PATH or compiler configuration so that the native linker is
10810 *** used, and then restart.
10812 _LT_EOF
10815 # For security reasons, it is highly recommended that you always
10816 # use absolute paths for naming shared libraries, and exclude the
10817 # DT_RUNPATH tag from executables and libraries. But doing so
10818 # requires that you compile everything twice, which is a pain.
10819 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10822 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10823 else
10824 ld_shlibs=no
10827 esac
10830 sunos4*)
10831 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10832 wlarc=
10833 hardcode_direct=yes
10834 hardcode_shlibpath_var=no
10838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10839 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10840 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10841 else
10842 ld_shlibs=no
10845 esac
10847 if test "$ld_shlibs" = no; then
10848 runpath_var=
10849 hardcode_libdir_flag_spec=
10850 export_dynamic_flag_spec=
10851 whole_archive_flag_spec=
10853 else
10854 # PORTME fill in a description of your system's linker (not GNU ld)
10855 case $host_os in
10856 aix3*)
10857 allow_undefined_flag=unsupported
10858 always_export_symbols=yes
10859 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'
10860 # Note: this linker hardcodes the directories in LIBPATH if there
10861 # are no directories specified by -L.
10862 hardcode_minus_L=yes
10863 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10864 # Neither direct hardcoding nor static linking is supported with a
10865 # broken collect2.
10866 hardcode_direct=unsupported
10870 aix[4-9]*)
10871 if test "$host_cpu" = ia64; then
10872 # On IA64, the linker does run time linking by default, so we don't
10873 # have to do anything special.
10874 aix_use_runtimelinking=no
10875 exp_sym_flag='-Bexport'
10876 no_entry_flag=""
10877 else
10878 # If we're using GNU nm, then we don't want the "-C" option.
10879 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10880 # Also, AIX nm treats weak defined symbols like other global
10881 # defined symbols, whereas GNU nm marks them as "W".
10882 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10883 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10884 else
10885 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10887 aix_use_runtimelinking=no
10889 # Test if we are trying to use run time linking or normal
10890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10891 # need to do runtime linking.
10892 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10893 for ld_flag in $LDFLAGS; do
10894 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10895 aix_use_runtimelinking=yes
10896 break
10898 done
10900 esac
10902 exp_sym_flag='-bexport'
10903 no_entry_flag='-bnoentry'
10906 # When large executables or shared objects are built, AIX ld can
10907 # have problems creating the table of contents. If linking a library
10908 # or program results in "error TOC overflow" add -mminimal-toc to
10909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10912 archive_cmds=''
10913 hardcode_direct=yes
10914 hardcode_direct_absolute=yes
10915 hardcode_libdir_separator=':'
10916 link_all_deplibs=yes
10917 file_list_spec='${wl}-f,'
10919 if test "$GCC" = yes; then
10920 case $host_os in aix4.[012]|aix4.[012].*)
10921 # We only want to do this on AIX 4.2 and lower, the check
10922 # below for broken collect2 doesn't work under 4.3+
10923 collect2name=`${CC} -print-prog-name=collect2`
10924 if test -f "$collect2name" &&
10925 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10926 then
10927 # We have reworked collect2
10929 else
10930 # We have old collect2
10931 hardcode_direct=unsupported
10932 # It fails to find uninstalled libraries when the uninstalled
10933 # path is not listed in the libpath. Setting hardcode_minus_L
10934 # to unsupported forces relinking
10935 hardcode_minus_L=yes
10936 hardcode_libdir_flag_spec='-L$libdir'
10937 hardcode_libdir_separator=
10940 esac
10941 shared_flag='-shared'
10942 if test "$aix_use_runtimelinking" = yes; then
10943 shared_flag="$shared_flag "'${wl}-G'
10945 link_all_deplibs=no
10946 else
10947 # not using gcc
10948 if test "$host_cpu" = ia64; then
10949 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10950 # chokes on -Wl,-G. The following line is correct:
10951 shared_flag='-G'
10952 else
10953 if test "$aix_use_runtimelinking" = yes; then
10954 shared_flag='${wl}-G'
10955 else
10956 shared_flag='${wl}-bM:SRE'
10961 export_dynamic_flag_spec='${wl}-bexpall'
10962 # It seems that -bexpall does not export symbols beginning with
10963 # underscore (_), so it is better to generate a list of symbols to export.
10964 always_export_symbols=yes
10965 if test "$aix_use_runtimelinking" = yes; then
10966 # Warning - without using the other runtime loading flags (-brtl),
10967 # -berok will link without error, but may produce a broken library.
10968 allow_undefined_flag='-berok'
10969 # Determine the default libpath from the value encoded in an
10970 # empty executable.
10971 if test "${lt_cv_aix_libpath+set}" = set; then
10972 aix_libpath=$lt_cv_aix_libpath
10973 else
10974 if ${lt_cv_aix_libpath_+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10981 main ()
10985 return 0;
10987 _ACEOF
10988 if ac_fn_c_try_link "$LINENO"; then :
10990 lt_aix_libpath_sed='
10991 /Import File Strings/,/^$/ {
10992 /^0/ {
10993 s/^0 *\([^ ]*\) *$/\1/
10997 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10998 # Check for a 64-bit object if we didn't find anything.
10999 if test -z "$lt_cv_aix_libpath_"; then
11000 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11003 rm -f core conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11005 if test -z "$lt_cv_aix_libpath_"; then
11006 lt_cv_aix_libpath_="/usr/lib:/lib"
11011 aix_libpath=$lt_cv_aix_libpath_
11014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11015 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11016 else
11017 if test "$host_cpu" = ia64; then
11018 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11019 allow_undefined_flag="-z nodefs"
11020 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"
11021 else
11022 # Determine the default libpath from the value encoded in an
11023 # empty executable.
11024 if test "${lt_cv_aix_libpath+set}" = set; then
11025 aix_libpath=$lt_cv_aix_libpath
11026 else
11027 if ${lt_cv_aix_libpath_+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11034 main ()
11038 return 0;
11040 _ACEOF
11041 if ac_fn_c_try_link "$LINENO"; then :
11043 lt_aix_libpath_sed='
11044 /Import File Strings/,/^$/ {
11045 /^0/ {
11046 s/^0 *\([^ ]*\) *$/\1/
11050 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11051 # Check for a 64-bit object if we didn't find anything.
11052 if test -z "$lt_cv_aix_libpath_"; then
11053 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11056 rm -f core conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 if test -z "$lt_cv_aix_libpath_"; then
11059 lt_cv_aix_libpath_="/usr/lib:/lib"
11064 aix_libpath=$lt_cv_aix_libpath_
11067 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11068 # Warning - without using the other run time loading flags,
11069 # -berok will link without error, but may produce a broken library.
11070 no_undefined_flag=' ${wl}-bernotok'
11071 allow_undefined_flag=' ${wl}-berok'
11072 if test "$with_gnu_ld" = yes; then
11073 # We only use this code for GNU lds that support --whole-archive.
11074 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11075 else
11076 # Exported symbols can be pulled into shared objects from archives
11077 whole_archive_flag_spec='$convenience'
11079 archive_cmds_need_lc=yes
11080 # This is similar to how AIX traditionally builds its shared libraries.
11081 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11086 amigaos*)
11087 case $host_cpu in
11088 powerpc)
11089 # see comment about AmigaOS4 .so support
11090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11091 archive_expsym_cmds=''
11093 m68k)
11094 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)'
11095 hardcode_libdir_flag_spec='-L$libdir'
11096 hardcode_minus_L=yes
11098 esac
11101 bsdi[45]*)
11102 export_dynamic_flag_spec=-rdynamic
11105 cygwin* | mingw* | pw32* | cegcc*)
11106 # When not using gcc, we currently assume that we are using
11107 # Microsoft Visual C++.
11108 # hardcode_libdir_flag_spec is actually meaningless, as there is
11109 # no search path for DLLs.
11110 case $cc_basename in
11111 cl*)
11112 # Native MSVC
11113 hardcode_libdir_flag_spec=' '
11114 allow_undefined_flag=unsupported
11115 always_export_symbols=yes
11116 file_list_spec='@'
11117 # Tell ltmain to make .lib files, not .a files.
11118 libext=lib
11119 # Tell ltmain to make .dll files, not .so files.
11120 shrext_cmds=".dll"
11121 # FIXME: Setting linknames here is a bad hack.
11122 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11123 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11124 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11125 else
11126 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11128 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11129 linknames='
11130 # The linker will not automatically build a static lib if we build a DLL.
11131 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11132 enable_shared_with_static_runtimes=yes
11133 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11135 # Don't use ranlib
11136 old_postinstall_cmds='chmod 644 $oldlib'
11137 postlink_cmds='lt_outputfile="@OUTPUT@"~
11138 lt_tool_outputfile="@TOOL_OUTPUT@"~
11139 case $lt_outputfile in
11140 *.exe|*.EXE) ;;
11142 lt_outputfile="$lt_outputfile.exe"
11143 lt_tool_outputfile="$lt_tool_outputfile.exe"
11145 esac~
11146 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11147 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11148 $RM "$lt_outputfile.manifest";
11152 # Assume MSVC wrapper
11153 hardcode_libdir_flag_spec=' '
11154 allow_undefined_flag=unsupported
11155 # Tell ltmain to make .lib files, not .a files.
11156 libext=lib
11157 # Tell ltmain to make .dll files, not .so files.
11158 shrext_cmds=".dll"
11159 # FIXME: Setting linknames here is a bad hack.
11160 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11161 # The linker will automatically build a .lib file if we build a DLL.
11162 old_archive_from_new_cmds='true'
11163 # FIXME: Should let the user specify the lib program.
11164 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11165 enable_shared_with_static_runtimes=yes
11167 esac
11170 darwin* | rhapsody*)
11173 archive_cmds_need_lc=no
11174 hardcode_direct=no
11175 hardcode_automatic=yes
11176 hardcode_shlibpath_var=unsupported
11177 if test "$lt_cv_ld_force_load" = "yes"; then
11178 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\"`'
11180 else
11181 whole_archive_flag_spec=''
11183 link_all_deplibs=yes
11184 allow_undefined_flag="$_lt_dar_allow_undefined"
11185 case $cc_basename in
11186 ifort*) _lt_dar_can_shared=yes ;;
11187 *) _lt_dar_can_shared=$GCC ;;
11188 esac
11189 if test "$_lt_dar_can_shared" = "yes"; then
11190 output_verbose_link_cmd=func_echo_all
11191 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11192 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11193 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}"
11194 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}"
11196 else
11197 ld_shlibs=no
11202 dgux*)
11203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11204 hardcode_libdir_flag_spec='-L$libdir'
11205 hardcode_shlibpath_var=no
11208 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11209 # support. Future versions do this automatically, but an explicit c++rt0.o
11210 # does not break anything, and helps significantly (at the cost of a little
11211 # extra space).
11212 freebsd2.2*)
11213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11214 hardcode_libdir_flag_spec='-R$libdir'
11215 hardcode_direct=yes
11216 hardcode_shlibpath_var=no
11219 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11220 freebsd2.*)
11221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11222 hardcode_direct=yes
11223 hardcode_minus_L=yes
11224 hardcode_shlibpath_var=no
11227 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11228 freebsd* | dragonfly*)
11229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11230 hardcode_libdir_flag_spec='-R$libdir'
11231 hardcode_direct=yes
11232 hardcode_shlibpath_var=no
11235 hpux9*)
11236 if test "$GCC" = yes; then
11237 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11238 else
11239 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11241 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11242 hardcode_libdir_separator=:
11243 hardcode_direct=yes
11245 # hardcode_minus_L: Not really in the search PATH,
11246 # but as the default location of the library.
11247 hardcode_minus_L=yes
11248 export_dynamic_flag_spec='${wl}-E'
11251 hpux10*)
11252 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11253 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11254 else
11255 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11257 if test "$with_gnu_ld" = no; then
11258 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11259 hardcode_libdir_separator=:
11260 hardcode_direct=yes
11261 hardcode_direct_absolute=yes
11262 export_dynamic_flag_spec='${wl}-E'
11263 # hardcode_minus_L: Not really in the search PATH,
11264 # but as the default location of the library.
11265 hardcode_minus_L=yes
11269 hpux11*)
11270 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11271 case $host_cpu in
11272 hppa*64*)
11273 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11275 ia64*)
11276 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11279 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11281 esac
11282 else
11283 case $host_cpu in
11284 hppa*64*)
11285 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11287 ia64*)
11288 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11292 # Older versions of the 11.00 compiler do not understand -b yet
11293 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11295 $as_echo_n "checking if $CC understands -b... " >&6; }
11296 if ${lt_cv_prog_compiler__b+:} false; then :
11297 $as_echo_n "(cached) " >&6
11298 else
11299 lt_cv_prog_compiler__b=no
11300 save_LDFLAGS="$LDFLAGS"
11301 LDFLAGS="$LDFLAGS -b"
11302 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11303 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11304 # The linker can only warn and ignore the option if not recognized
11305 # So say no if there are warnings
11306 if test -s conftest.err; then
11307 # Append any errors to the config.log.
11308 cat conftest.err 1>&5
11309 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11311 if diff conftest.exp conftest.er2 >/dev/null; then
11312 lt_cv_prog_compiler__b=yes
11314 else
11315 lt_cv_prog_compiler__b=yes
11318 $RM -r conftest*
11319 LDFLAGS="$save_LDFLAGS"
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11323 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11325 if test x"$lt_cv_prog_compiler__b" = xyes; then
11326 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11327 else
11328 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11332 esac
11334 if test "$with_gnu_ld" = no; then
11335 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11336 hardcode_libdir_separator=:
11338 case $host_cpu in
11339 hppa*64*|ia64*)
11340 hardcode_direct=no
11341 hardcode_shlibpath_var=no
11344 hardcode_direct=yes
11345 hardcode_direct_absolute=yes
11346 export_dynamic_flag_spec='${wl}-E'
11348 # hardcode_minus_L: Not really in the search PATH,
11349 # but as the default location of the library.
11350 hardcode_minus_L=yes
11352 esac
11356 irix5* | irix6* | nonstopux*)
11357 if test "$GCC" = yes; then
11358 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'
11359 # Try to use the -exported_symbol ld option, if it does not
11360 # work, assume that -exports_file does not work either and
11361 # implicitly export all symbols.
11362 # This should be the same for all languages, so no per-tag cache variable.
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11364 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11365 if ${lt_cv_irix_exported_symbol+:} false; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 save_LDFLAGS="$LDFLAGS"
11369 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11372 int foo (void) { return 0; }
11373 _ACEOF
11374 if ac_fn_c_try_link "$LINENO"; then :
11375 lt_cv_irix_exported_symbol=yes
11376 else
11377 lt_cv_irix_exported_symbol=no
11379 rm -f core conftest.err conftest.$ac_objext \
11380 conftest$ac_exeext conftest.$ac_ext
11381 LDFLAGS="$save_LDFLAGS"
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11384 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11385 if test "$lt_cv_irix_exported_symbol" = yes; then
11386 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'
11388 else
11389 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'
11390 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'
11392 archive_cmds_need_lc='no'
11393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11394 hardcode_libdir_separator=:
11395 inherit_rpath=yes
11396 link_all_deplibs=yes
11399 netbsd* | netbsdelf*-gnu)
11400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11402 else
11403 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11405 hardcode_libdir_flag_spec='-R$libdir'
11406 hardcode_direct=yes
11407 hardcode_shlibpath_var=no
11410 newsos6)
11411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11412 hardcode_direct=yes
11413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11414 hardcode_libdir_separator=:
11415 hardcode_shlibpath_var=no
11418 *nto* | *qnx*)
11421 openbsd*)
11422 if test -f /usr/libexec/ld.so; then
11423 hardcode_direct=yes
11424 hardcode_shlibpath_var=no
11425 hardcode_direct_absolute=yes
11426 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11428 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11429 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11430 export_dynamic_flag_spec='${wl}-E'
11431 else
11432 case $host_os in
11433 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11435 hardcode_libdir_flag_spec='-R$libdir'
11438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11439 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11441 esac
11443 else
11444 ld_shlibs=no
11448 os2*)
11449 hardcode_libdir_flag_spec='-L$libdir'
11450 hardcode_minus_L=yes
11451 allow_undefined_flag=unsupported
11452 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11453 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11456 osf3*)
11457 if test "$GCC" = yes; then
11458 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11459 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'
11460 else
11461 allow_undefined_flag=' -expect_unresolved \*'
11462 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'
11464 archive_cmds_need_lc='no'
11465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11466 hardcode_libdir_separator=:
11469 osf4* | osf5*) # as osf3* with the addition of -msym flag
11470 if test "$GCC" = yes; then
11471 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11472 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'
11473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11474 else
11475 allow_undefined_flag=' -expect_unresolved \*'
11476 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'
11477 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~
11478 $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'
11480 # Both c and cxx compiler support -rpath directly
11481 hardcode_libdir_flag_spec='-rpath $libdir'
11483 archive_cmds_need_lc='no'
11484 hardcode_libdir_separator=:
11487 solaris*)
11488 no_undefined_flag=' -z defs'
11489 if test "$GCC" = yes; then
11490 wlarc='${wl}'
11491 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11492 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11493 $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'
11494 else
11495 case `$CC -V 2>&1` in
11496 *"Compilers 5.0"*)
11497 wlarc=''
11498 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11499 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11500 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11503 wlarc='${wl}'
11504 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11505 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11506 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11508 esac
11510 hardcode_libdir_flag_spec='-R$libdir'
11511 hardcode_shlibpath_var=no
11512 case $host_os in
11513 solaris2.[0-5] | solaris2.[0-5].*) ;;
11515 # The compiler driver will combine and reorder linker options,
11516 # but understands `-z linker_flag'. GCC discards it without `$wl',
11517 # but is careful enough not to reorder.
11518 # Supported since Solaris 2.6 (maybe 2.5.1?)
11519 if test "$GCC" = yes; then
11520 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11521 else
11522 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11525 esac
11526 link_all_deplibs=yes
11529 sunos4*)
11530 if test "x$host_vendor" = xsequent; then
11531 # Use $CC to link under sequent, because it throws in some extra .o
11532 # files that make .init and .fini sections work.
11533 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11534 else
11535 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11537 hardcode_libdir_flag_spec='-L$libdir'
11538 hardcode_direct=yes
11539 hardcode_minus_L=yes
11540 hardcode_shlibpath_var=no
11543 sysv4)
11544 case $host_vendor in
11545 sni)
11546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11547 hardcode_direct=yes # is this really true???
11549 siemens)
11550 ## LD is ld it makes a PLAMLIB
11551 ## CC just makes a GrossModule.
11552 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11553 reload_cmds='$CC -r -o $output$reload_objs'
11554 hardcode_direct=no
11556 motorola)
11557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11558 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11560 esac
11561 runpath_var='LD_RUN_PATH'
11562 hardcode_shlibpath_var=no
11565 sysv4.3*)
11566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11567 hardcode_shlibpath_var=no
11568 export_dynamic_flag_spec='-Bexport'
11571 sysv4*MP*)
11572 if test -d /usr/nec; then
11573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11574 hardcode_shlibpath_var=no
11575 runpath_var=LD_RUN_PATH
11576 hardcode_runpath_var=yes
11577 ld_shlibs=yes
11581 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11582 no_undefined_flag='${wl}-z,text'
11583 archive_cmds_need_lc=no
11584 hardcode_shlibpath_var=no
11585 runpath_var='LD_RUN_PATH'
11587 if test "$GCC" = yes; then
11588 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11589 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11590 else
11591 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11592 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11596 sysv5* | sco3.2v5* | sco5v6*)
11597 # Note: We can NOT use -z defs as we might desire, because we do not
11598 # link with -lc, and that would cause any symbols used from libc to
11599 # always be unresolved, which means just about no library would
11600 # ever link correctly. If we're not using GNU ld we use -z text
11601 # though, which does catch some bad symbols but isn't as heavy-handed
11602 # as -z defs.
11603 no_undefined_flag='${wl}-z,text'
11604 allow_undefined_flag='${wl}-z,nodefs'
11605 archive_cmds_need_lc=no
11606 hardcode_shlibpath_var=no
11607 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11608 hardcode_libdir_separator=':'
11609 link_all_deplibs=yes
11610 export_dynamic_flag_spec='${wl}-Bexport'
11611 runpath_var='LD_RUN_PATH'
11613 if test "$GCC" = yes; then
11614 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11615 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11616 else
11617 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11618 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11622 uts4*)
11623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11624 hardcode_libdir_flag_spec='-L$libdir'
11625 hardcode_shlibpath_var=no
11629 ld_shlibs=no
11631 esac
11633 if test x$host_vendor = xsni; then
11634 case $host in
11635 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11636 export_dynamic_flag_spec='${wl}-Blargedynsym'
11638 esac
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11643 $as_echo "$ld_shlibs" >&6; }
11644 test "$ld_shlibs" = no && can_build_shared=no
11646 with_gnu_ld=$with_gnu_ld
11663 # Do we need to explicitly link libc?
11665 case "x$archive_cmds_need_lc" in
11666 x|xyes)
11667 # Assume -lc should be added
11668 archive_cmds_need_lc=yes
11670 if test "$enable_shared" = yes && test "$GCC" = yes; then
11671 case $archive_cmds in
11672 *'~'*)
11673 # FIXME: we may have to deal with multi-command sequences.
11675 '$CC '*)
11676 # Test whether the compiler implicitly links with -lc since on some
11677 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11678 # to ld, don't add -lc before -lgcc.
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11680 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11681 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 $RM conftest*
11685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11688 (eval $ac_compile) 2>&5
11689 ac_status=$?
11690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11691 test $ac_status = 0; } 2>conftest.err; then
11692 soname=conftest
11693 lib=conftest
11694 libobjs=conftest.$ac_objext
11695 deplibs=
11696 wl=$lt_prog_compiler_wl
11697 pic_flag=$lt_prog_compiler_pic
11698 compiler_flags=-v
11699 linker_flags=-v
11700 verstring=
11701 output_objdir=.
11702 libname=conftest
11703 lt_save_allow_undefined_flag=$allow_undefined_flag
11704 allow_undefined_flag=
11705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11706 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11707 ac_status=$?
11708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11709 test $ac_status = 0; }
11710 then
11711 lt_cv_archive_cmds_need_lc=no
11712 else
11713 lt_cv_archive_cmds_need_lc=yes
11715 allow_undefined_flag=$lt_save_allow_undefined_flag
11716 else
11717 cat conftest.err 1>&5
11719 $RM conftest*
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11723 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11724 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11726 esac
11729 esac
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11883 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11885 if test "$GCC" = yes; then
11886 case $host_os in
11887 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11888 *) lt_awk_arg="/^libraries:/" ;;
11889 esac
11890 case $host_os in
11891 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11892 *) lt_sed_strip_eq="s,=/,/,g" ;;
11893 esac
11894 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11895 case $lt_search_path_spec in
11896 *\;*)
11897 # if the path contains ";" then we assume it to be the separator
11898 # otherwise default to the standard path separator (i.e. ":") - it is
11899 # assumed that no part of a normal pathname contains ";" but that should
11900 # okay in the real world where ";" in dirpaths is itself problematic.
11901 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11904 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11906 esac
11907 # Ok, now we have the path, separated by spaces, we can step through it
11908 # and add multilib dir if necessary.
11909 lt_tmp_lt_search_path_spec=
11910 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11911 for lt_sys_path in $lt_search_path_spec; do
11912 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11913 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11914 else
11915 test -d "$lt_sys_path" && \
11916 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11918 done
11919 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11920 BEGIN {RS=" "; FS="/|\n";} {
11921 lt_foo="";
11922 lt_count=0;
11923 for (lt_i = NF; lt_i > 0; lt_i--) {
11924 if ($lt_i != "" && $lt_i != ".") {
11925 if ($lt_i == "..") {
11926 lt_count++;
11927 } else {
11928 if (lt_count == 0) {
11929 lt_foo="/" $lt_i lt_foo;
11930 } else {
11931 lt_count--;
11936 if (lt_foo != "") { lt_freq[lt_foo]++; }
11937 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11939 # AWK program above erroneously prepends '/' to C:/dos/paths
11940 # for these hosts.
11941 case $host_os in
11942 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11943 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11944 esac
11945 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11946 else
11947 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11949 library_names_spec=
11950 libname_spec='lib$name'
11951 soname_spec=
11952 shrext_cmds=".so"
11953 postinstall_cmds=
11954 postuninstall_cmds=
11955 finish_cmds=
11956 finish_eval=
11957 shlibpath_var=
11958 shlibpath_overrides_runpath=unknown
11959 version_type=none
11960 dynamic_linker="$host_os ld.so"
11961 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11962 need_lib_prefix=unknown
11963 hardcode_into_libs=no
11965 # when you set need_version to no, make sure it does not cause -set_version
11966 # flags to be left without arguments
11967 need_version=unknown
11969 case $host_os in
11970 aix3*)
11971 version_type=linux # correct to gnu/linux during the next big refactor
11972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11973 shlibpath_var=LIBPATH
11975 # AIX 3 has no versioning support, so we append a major version to the name.
11976 soname_spec='${libname}${release}${shared_ext}$major'
11979 aix[4-9]*)
11980 version_type=linux # correct to gnu/linux during the next big refactor
11981 need_lib_prefix=no
11982 need_version=no
11983 hardcode_into_libs=yes
11984 if test "$host_cpu" = ia64; then
11985 # AIX 5 supports IA64
11986 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11987 shlibpath_var=LD_LIBRARY_PATH
11988 else
11989 # With GCC up to 2.95.x, collect2 would create an import file
11990 # for dependence libraries. The import file would start with
11991 # the line `#! .'. This would cause the generated library to
11992 # depend on `.', always an invalid library. This was fixed in
11993 # development snapshots of GCC prior to 3.0.
11994 case $host_os in
11995 aix4 | aix4.[01] | aix4.[01].*)
11996 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11997 echo ' yes '
11998 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12000 else
12001 can_build_shared=no
12004 esac
12005 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12006 # soname into executable. Probably we can add versioning support to
12007 # collect2, so additional links can be useful in future.
12008 if test "$aix_use_runtimelinking" = yes; then
12009 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12010 # instead of lib<name>.a to let people know that these are not
12011 # typical AIX shared libraries.
12012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12013 else
12014 # We preserve .a as extension for shared libraries through AIX4.2
12015 # and later when we are not doing run time linking.
12016 library_names_spec='${libname}${release}.a $libname.a'
12017 soname_spec='${libname}${release}${shared_ext}$major'
12019 shlibpath_var=LIBPATH
12023 amigaos*)
12024 case $host_cpu in
12025 powerpc)
12026 # Since July 2007 AmigaOS4 officially supports .so libraries.
12027 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12030 m68k)
12031 library_names_spec='$libname.ixlibrary $libname.a'
12032 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12033 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
12035 esac
12038 beos*)
12039 library_names_spec='${libname}${shared_ext}'
12040 dynamic_linker="$host_os ld.so"
12041 shlibpath_var=LIBRARY_PATH
12044 bsdi[45]*)
12045 version_type=linux # correct to gnu/linux during the next big refactor
12046 need_version=no
12047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12048 soname_spec='${libname}${release}${shared_ext}$major'
12049 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12050 shlibpath_var=LD_LIBRARY_PATH
12051 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12052 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12053 # the default ld.so.conf also contains /usr/contrib/lib and
12054 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12055 # libtool to hard-code these into programs
12058 cygwin* | mingw* | pw32* | cegcc*)
12059 version_type=windows
12060 shrext_cmds=".dll"
12061 need_version=no
12062 need_lib_prefix=no
12064 case $GCC,$cc_basename in
12065 yes,*)
12066 # gcc
12067 library_names_spec='$libname.dll.a'
12068 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12069 postinstall_cmds='base_file=`basename \${file}`~
12070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12071 dldir=$destdir/`dirname \$dlpath`~
12072 test -d \$dldir || mkdir -p \$dldir~
12073 $install_prog $dir/$dlname \$dldir/$dlname~
12074 chmod a+x \$dldir/$dlname~
12075 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12076 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12078 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12079 dlpath=$dir/\$dldll~
12080 $RM \$dlpath'
12081 shlibpath_overrides_runpath=yes
12083 case $host_os in
12084 cygwin*)
12085 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12086 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12088 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12090 mingw* | cegcc*)
12091 # MinGW DLLs use traditional 'lib' prefix
12092 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12094 pw32*)
12095 # pw32 DLLs use 'pw' prefix rather than 'lib'
12096 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12098 esac
12099 dynamic_linker='Win32 ld.exe'
12102 *,cl*)
12103 # Native MSVC
12104 libname_spec='$name'
12105 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12106 library_names_spec='${libname}.dll.lib'
12108 case $build_os in
12109 mingw*)
12110 sys_lib_search_path_spec=
12111 lt_save_ifs=$IFS
12112 IFS=';'
12113 for lt_path in $LIB
12115 IFS=$lt_save_ifs
12116 # Let DOS variable expansion print the short 8.3 style file name.
12117 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12118 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12119 done
12120 IFS=$lt_save_ifs
12121 # Convert to MSYS style.
12122 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12124 cygwin*)
12125 # Convert to unix form, then to dos form, then back to unix form
12126 # but this time dos style (no spaces!) so that the unix form looks
12127 # like /cygdrive/c/PROGRA~1:/cygdr...
12128 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12129 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12130 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12133 sys_lib_search_path_spec="$LIB"
12134 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12135 # It is most probably a Windows format PATH.
12136 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12137 else
12138 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12140 # FIXME: find the short name or the path components, as spaces are
12141 # common. (e.g. "Program Files" -> "PROGRA~1")
12143 esac
12145 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12146 postinstall_cmds='base_file=`basename \${file}`~
12147 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12148 dldir=$destdir/`dirname \$dlpath`~
12149 test -d \$dldir || mkdir -p \$dldir~
12150 $install_prog $dir/$dlname \$dldir/$dlname'
12151 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12152 dlpath=$dir/\$dldll~
12153 $RM \$dlpath'
12154 shlibpath_overrides_runpath=yes
12155 dynamic_linker='Win32 link.exe'
12159 # Assume MSVC wrapper
12160 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12161 dynamic_linker='Win32 ld.exe'
12163 esac
12164 # FIXME: first we should search . and the directory the executable is in
12165 shlibpath_var=PATH
12168 darwin* | rhapsody*)
12169 dynamic_linker="$host_os dyld"
12170 version_type=darwin
12171 need_lib_prefix=no
12172 need_version=no
12173 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12174 soname_spec='${libname}${release}${major}$shared_ext'
12175 shlibpath_overrides_runpath=yes
12176 shlibpath_var=DYLD_LIBRARY_PATH
12177 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12179 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12183 dgux*)
12184 version_type=linux # correct to gnu/linux during the next big refactor
12185 need_lib_prefix=no
12186 need_version=no
12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12188 soname_spec='${libname}${release}${shared_ext}$major'
12189 shlibpath_var=LD_LIBRARY_PATH
12192 freebsd* | dragonfly*)
12193 # DragonFly does not have aout. When/if they implement a new
12194 # versioning mechanism, adjust this.
12195 if test -x /usr/bin/objformat; then
12196 objformat=`/usr/bin/objformat`
12197 else
12198 case $host_os in
12199 freebsd[23].*) objformat=aout ;;
12200 *) objformat=elf ;;
12201 esac
12203 version_type=freebsd-$objformat
12204 case $version_type in
12205 freebsd-elf*)
12206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12207 need_version=no
12208 need_lib_prefix=no
12210 freebsd-*)
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12212 need_version=yes
12214 esac
12215 shlibpath_var=LD_LIBRARY_PATH
12216 case $host_os in
12217 freebsd2.*)
12218 shlibpath_overrides_runpath=yes
12220 freebsd3.[01]* | freebsdelf3.[01]*)
12221 shlibpath_overrides_runpath=yes
12222 hardcode_into_libs=yes
12224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12226 shlibpath_overrides_runpath=no
12227 hardcode_into_libs=yes
12229 *) # from 4.6 on, and DragonFly
12230 shlibpath_overrides_runpath=yes
12231 hardcode_into_libs=yes
12233 esac
12236 haiku*)
12237 version_type=linux # correct to gnu/linux during the next big refactor
12238 need_lib_prefix=no
12239 need_version=no
12240 dynamic_linker="$host_os runtime_loader"
12241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12242 soname_spec='${libname}${release}${shared_ext}$major'
12243 shlibpath_var=LIBRARY_PATH
12244 shlibpath_overrides_runpath=yes
12245 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12246 hardcode_into_libs=yes
12249 hpux9* | hpux10* | hpux11*)
12250 # Give a soname corresponding to the major version so that dld.sl refuses to
12251 # link against other versions.
12252 version_type=sunos
12253 need_lib_prefix=no
12254 need_version=no
12255 case $host_cpu in
12256 ia64*)
12257 shrext_cmds='.so'
12258 hardcode_into_libs=yes
12259 dynamic_linker="$host_os dld.so"
12260 shlibpath_var=LD_LIBRARY_PATH
12261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12263 soname_spec='${libname}${release}${shared_ext}$major'
12264 if test "X$HPUX_IA64_MODE" = X32; then
12265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12266 else
12267 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12271 hppa*64*)
12272 shrext_cmds='.sl'
12273 hardcode_into_libs=yes
12274 dynamic_linker="$host_os dld.sl"
12275 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12278 soname_spec='${libname}${release}${shared_ext}$major'
12279 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12283 shrext_cmds='.sl'
12284 dynamic_linker="$host_os dld.sl"
12285 shlibpath_var=SHLIB_PATH
12286 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12288 soname_spec='${libname}${release}${shared_ext}$major'
12290 esac
12291 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12292 postinstall_cmds='chmod 555 $lib'
12293 # or fails outright, so override atomically:
12294 install_override_mode=555
12297 interix[3-9]*)
12298 version_type=linux # correct to gnu/linux during the next big refactor
12299 need_lib_prefix=no
12300 need_version=no
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12302 soname_spec='${libname}${release}${shared_ext}$major'
12303 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12304 shlibpath_var=LD_LIBRARY_PATH
12305 shlibpath_overrides_runpath=no
12306 hardcode_into_libs=yes
12309 irix5* | irix6* | nonstopux*)
12310 case $host_os in
12311 nonstopux*) version_type=nonstopux ;;
12313 if test "$lt_cv_prog_gnu_ld" = yes; then
12314 version_type=linux # correct to gnu/linux during the next big refactor
12315 else
12316 version_type=irix
12317 fi ;;
12318 esac
12319 need_lib_prefix=no
12320 need_version=no
12321 soname_spec='${libname}${release}${shared_ext}$major'
12322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12323 case $host_os in
12324 irix5* | nonstopux*)
12325 libsuff= shlibsuff=
12328 case $LD in # libtool.m4 will add one of these switches to LD
12329 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12330 libsuff= shlibsuff= libmagic=32-bit;;
12331 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12332 libsuff=32 shlibsuff=N32 libmagic=N32;;
12333 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12334 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12335 *) libsuff= shlibsuff= libmagic=never-match;;
12336 esac
12338 esac
12339 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12340 shlibpath_overrides_runpath=no
12341 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12342 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12343 hardcode_into_libs=yes
12346 # No shared lib support for Linux oldld, aout, or coff.
12347 linux*oldld* | linux*aout* | linux*coff*)
12348 dynamic_linker=no
12351 # This must be glibc/ELF.
12352 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12353 version_type=linux # correct to gnu/linux during the next big refactor
12354 need_lib_prefix=no
12355 need_version=no
12356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12357 soname_spec='${libname}${release}${shared_ext}$major'
12358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12359 shlibpath_var=LD_LIBRARY_PATH
12360 shlibpath_overrides_runpath=no
12362 # Some binutils ld are patched to set DT_RUNPATH
12363 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 lt_cv_shlibpath_overrides_runpath=no
12367 save_LDFLAGS=$LDFLAGS
12368 save_libdir=$libdir
12369 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12370 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12375 main ()
12379 return 0;
12381 _ACEOF
12382 if ac_fn_c_try_link "$LINENO"; then :
12383 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12384 lt_cv_shlibpath_overrides_runpath=yes
12387 rm -f core conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext conftest.$ac_ext
12389 LDFLAGS=$save_LDFLAGS
12390 libdir=$save_libdir
12394 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12396 # This implies no fast_install, which is unacceptable.
12397 # Some rework will be needed to allow for fast_install
12398 # before this can be enabled.
12399 hardcode_into_libs=yes
12401 # Append ld.so.conf contents to the search path
12402 if test -f /etc/ld.so.conf; then
12403 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' ' '`
12404 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12407 # We used to test for /lib/ld.so.1 and disable shared libraries on
12408 # powerpc, because MkLinux only supported shared libraries with the
12409 # GNU dynamic linker. Since this was broken with cross compilers,
12410 # most powerpc-linux boxes support dynamic linking these days and
12411 # people can always --disable-shared, the test was removed, and we
12412 # assume the GNU/Linux dynamic linker is in use.
12413 dynamic_linker='GNU/Linux ld.so'
12416 netbsdelf*-gnu)
12417 version_type=linux
12418 need_lib_prefix=no
12419 need_version=no
12420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12421 soname_spec='${libname}${release}${shared_ext}$major'
12422 shlibpath_var=LD_LIBRARY_PATH
12423 shlibpath_overrides_runpath=no
12424 hardcode_into_libs=yes
12425 dynamic_linker='NetBSD ld.elf_so'
12428 netbsd*)
12429 version_type=sunos
12430 need_lib_prefix=no
12431 need_version=no
12432 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12435 dynamic_linker='NetBSD (a.out) ld.so'
12436 else
12437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12438 soname_spec='${libname}${release}${shared_ext}$major'
12439 dynamic_linker='NetBSD ld.elf_so'
12441 shlibpath_var=LD_LIBRARY_PATH
12442 shlibpath_overrides_runpath=yes
12443 hardcode_into_libs=yes
12446 newsos6)
12447 version_type=linux # correct to gnu/linux during the next big refactor
12448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12449 shlibpath_var=LD_LIBRARY_PATH
12450 shlibpath_overrides_runpath=yes
12453 *nto* | *qnx*)
12454 version_type=qnx
12455 need_lib_prefix=no
12456 need_version=no
12457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12458 soname_spec='${libname}${release}${shared_ext}$major'
12459 shlibpath_var=LD_LIBRARY_PATH
12460 shlibpath_overrides_runpath=no
12461 hardcode_into_libs=yes
12462 dynamic_linker='ldqnx.so'
12465 openbsd*)
12466 version_type=sunos
12467 sys_lib_dlsearch_path_spec="/usr/lib"
12468 need_lib_prefix=no
12469 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12470 case $host_os in
12471 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12472 *) need_version=no ;;
12473 esac
12474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12476 shlibpath_var=LD_LIBRARY_PATH
12477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12478 case $host_os in
12479 openbsd2.[89] | openbsd2.[89].*)
12480 shlibpath_overrides_runpath=no
12483 shlibpath_overrides_runpath=yes
12485 esac
12486 else
12487 shlibpath_overrides_runpath=yes
12491 os2*)
12492 libname_spec='$name'
12493 shrext_cmds=".dll"
12494 need_lib_prefix=no
12495 library_names_spec='$libname${shared_ext} $libname.a'
12496 dynamic_linker='OS/2 ld.exe'
12497 shlibpath_var=LIBPATH
12500 osf3* | osf4* | osf5*)
12501 version_type=osf
12502 need_lib_prefix=no
12503 need_version=no
12504 soname_spec='${libname}${release}${shared_ext}$major'
12505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12506 shlibpath_var=LD_LIBRARY_PATH
12507 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12508 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12511 rdos*)
12512 dynamic_linker=no
12515 solaris*)
12516 version_type=linux # correct to gnu/linux during the next big refactor
12517 need_lib_prefix=no
12518 need_version=no
12519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12520 soname_spec='${libname}${release}${shared_ext}$major'
12521 shlibpath_var=LD_LIBRARY_PATH
12522 shlibpath_overrides_runpath=yes
12523 hardcode_into_libs=yes
12524 # ldd complains unless libraries are executable
12525 postinstall_cmds='chmod +x $lib'
12528 sunos4*)
12529 version_type=sunos
12530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12531 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12532 shlibpath_var=LD_LIBRARY_PATH
12533 shlibpath_overrides_runpath=yes
12534 if test "$with_gnu_ld" = yes; then
12535 need_lib_prefix=no
12537 need_version=yes
12540 sysv4 | sysv4.3*)
12541 version_type=linux # correct to gnu/linux during the next big refactor
12542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12543 soname_spec='${libname}${release}${shared_ext}$major'
12544 shlibpath_var=LD_LIBRARY_PATH
12545 case $host_vendor in
12546 sni)
12547 shlibpath_overrides_runpath=no
12548 need_lib_prefix=no
12549 runpath_var=LD_RUN_PATH
12551 siemens)
12552 need_lib_prefix=no
12554 motorola)
12555 need_lib_prefix=no
12556 need_version=no
12557 shlibpath_overrides_runpath=no
12558 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12560 esac
12563 sysv4*MP*)
12564 if test -d /usr/nec ;then
12565 version_type=linux # correct to gnu/linux during the next big refactor
12566 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12567 soname_spec='$libname${shared_ext}.$major'
12568 shlibpath_var=LD_LIBRARY_PATH
12572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12573 version_type=freebsd-elf
12574 need_lib_prefix=no
12575 need_version=no
12576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12577 soname_spec='${libname}${release}${shared_ext}$major'
12578 shlibpath_var=LD_LIBRARY_PATH
12579 shlibpath_overrides_runpath=yes
12580 hardcode_into_libs=yes
12581 if test "$with_gnu_ld" = yes; then
12582 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12583 else
12584 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12585 case $host_os in
12586 sco3.2v5*)
12587 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12589 esac
12591 sys_lib_dlsearch_path_spec='/usr/lib'
12594 tpf*)
12595 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12596 version_type=linux # correct to gnu/linux during the next big refactor
12597 need_lib_prefix=no
12598 need_version=no
12599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12600 shlibpath_var=LD_LIBRARY_PATH
12601 shlibpath_overrides_runpath=no
12602 hardcode_into_libs=yes
12605 uts4*)
12606 version_type=linux # correct to gnu/linux during the next big refactor
12607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12608 soname_spec='${libname}${release}${shared_ext}$major'
12609 shlibpath_var=LD_LIBRARY_PATH
12613 dynamic_linker=no
12615 esac
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12617 $as_echo "$dynamic_linker" >&6; }
12618 test "$dynamic_linker" = no && can_build_shared=no
12620 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12621 if test "$GCC" = yes; then
12622 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12625 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12626 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12628 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12629 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12724 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12725 hardcode_action=
12726 if test -n "$hardcode_libdir_flag_spec" ||
12727 test -n "$runpath_var" ||
12728 test "X$hardcode_automatic" = "Xyes" ; then
12730 # We can hardcode non-existent directories.
12731 if test "$hardcode_direct" != no &&
12732 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12733 # have to relink, otherwise we might link with an installed library
12734 # when we should be linking with a yet-to-be-installed one
12735 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12736 test "$hardcode_minus_L" != no; then
12737 # Linking always hardcodes the temporary library directory.
12738 hardcode_action=relink
12739 else
12740 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12741 hardcode_action=immediate
12743 else
12744 # We cannot hardcode anything, or else we can only hardcode existing
12745 # directories.
12746 hardcode_action=unsupported
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12749 $as_echo "$hardcode_action" >&6; }
12751 if test "$hardcode_action" = relink ||
12752 test "$inherit_rpath" = yes; then
12753 # Fast installation is not supported
12754 enable_fast_install=no
12755 elif test "$shlibpath_overrides_runpath" = yes ||
12756 test "$enable_shared" = no; then
12757 # Fast installation is not necessary
12758 enable_fast_install=needless
12766 if test "x$enable_dlopen" != xyes; then
12767 enable_dlopen=unknown
12768 enable_dlopen_self=unknown
12769 enable_dlopen_self_static=unknown
12770 else
12771 lt_cv_dlopen=no
12772 lt_cv_dlopen_libs=
12774 case $host_os in
12775 beos*)
12776 lt_cv_dlopen="load_add_on"
12777 lt_cv_dlopen_libs=
12778 lt_cv_dlopen_self=yes
12781 mingw* | pw32* | cegcc*)
12782 lt_cv_dlopen="LoadLibrary"
12783 lt_cv_dlopen_libs=
12786 cygwin*)
12787 lt_cv_dlopen="dlopen"
12788 lt_cv_dlopen_libs=
12791 darwin*)
12792 # if libdl is installed we need to link against it
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12794 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12795 if ${ac_cv_lib_dl_dlopen+:} false; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12798 ac_check_lib_save_LIBS=$LIBS
12799 LIBS="-ldl $LIBS"
12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801 /* end confdefs.h. */
12803 /* Override any GCC internal prototype to avoid an error.
12804 Use char because int might match the return type of a GCC
12805 builtin and then its argument prototype would still apply. */
12806 #ifdef __cplusplus
12807 extern "C"
12808 #endif
12809 char dlopen ();
12811 main ()
12813 return dlopen ();
12815 return 0;
12817 _ACEOF
12818 if ac_fn_c_try_link "$LINENO"; then :
12819 ac_cv_lib_dl_dlopen=yes
12820 else
12821 ac_cv_lib_dl_dlopen=no
12823 rm -f core conftest.err conftest.$ac_objext \
12824 conftest$ac_exeext conftest.$ac_ext
12825 LIBS=$ac_check_lib_save_LIBS
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12828 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12829 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12830 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12831 else
12833 lt_cv_dlopen="dyld"
12834 lt_cv_dlopen_libs=
12835 lt_cv_dlopen_self=yes
12842 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12843 if test "x$ac_cv_func_shl_load" = xyes; then :
12844 lt_cv_dlopen="shl_load"
12845 else
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12847 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12848 if ${ac_cv_lib_dld_shl_load+:} false; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 ac_check_lib_save_LIBS=$LIBS
12852 LIBS="-ldld $LIBS"
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12856 /* Override any GCC internal prototype to avoid an error.
12857 Use char because int might match the return type of a GCC
12858 builtin and then its argument prototype would still apply. */
12859 #ifdef __cplusplus
12860 extern "C"
12861 #endif
12862 char shl_load ();
12864 main ()
12866 return shl_load ();
12868 return 0;
12870 _ACEOF
12871 if ac_fn_c_try_link "$LINENO"; then :
12872 ac_cv_lib_dld_shl_load=yes
12873 else
12874 ac_cv_lib_dld_shl_load=no
12876 rm -f core conftest.err conftest.$ac_objext \
12877 conftest$ac_exeext conftest.$ac_ext
12878 LIBS=$ac_check_lib_save_LIBS
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12881 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12882 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12883 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12884 else
12885 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12886 if test "x$ac_cv_func_dlopen" = xyes; then :
12887 lt_cv_dlopen="dlopen"
12888 else
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12890 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12891 if ${ac_cv_lib_dl_dlopen+:} false; then :
12892 $as_echo_n "(cached) " >&6
12893 else
12894 ac_check_lib_save_LIBS=$LIBS
12895 LIBS="-ldl $LIBS"
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12899 /* Override any GCC internal prototype to avoid an error.
12900 Use char because int might match the return type of a GCC
12901 builtin and then its argument prototype would still apply. */
12902 #ifdef __cplusplus
12903 extern "C"
12904 #endif
12905 char dlopen ();
12907 main ()
12909 return dlopen ();
12911 return 0;
12913 _ACEOF
12914 if ac_fn_c_try_link "$LINENO"; then :
12915 ac_cv_lib_dl_dlopen=yes
12916 else
12917 ac_cv_lib_dl_dlopen=no
12919 rm -f core conftest.err conftest.$ac_objext \
12920 conftest$ac_exeext conftest.$ac_ext
12921 LIBS=$ac_check_lib_save_LIBS
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12924 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12925 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12929 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12930 if ${ac_cv_lib_svld_dlopen+:} false; then :
12931 $as_echo_n "(cached) " >&6
12932 else
12933 ac_check_lib_save_LIBS=$LIBS
12934 LIBS="-lsvld $LIBS"
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12938 /* Override any GCC internal prototype to avoid an error.
12939 Use char because int might match the return type of a GCC
12940 builtin and then its argument prototype would still apply. */
12941 #ifdef __cplusplus
12942 extern "C"
12943 #endif
12944 char dlopen ();
12946 main ()
12948 return dlopen ();
12950 return 0;
12952 _ACEOF
12953 if ac_fn_c_try_link "$LINENO"; then :
12954 ac_cv_lib_svld_dlopen=yes
12955 else
12956 ac_cv_lib_svld_dlopen=no
12958 rm -f core conftest.err conftest.$ac_objext \
12959 conftest$ac_exeext conftest.$ac_ext
12960 LIBS=$ac_check_lib_save_LIBS
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12963 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12964 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12966 else
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12968 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12969 if ${ac_cv_lib_dld_dld_link+:} false; then :
12970 $as_echo_n "(cached) " >&6
12971 else
12972 ac_check_lib_save_LIBS=$LIBS
12973 LIBS="-ldld $LIBS"
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12977 /* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12980 #ifdef __cplusplus
12981 extern "C"
12982 #endif
12983 char dld_link ();
12985 main ()
12987 return dld_link ();
12989 return 0;
12991 _ACEOF
12992 if ac_fn_c_try_link "$LINENO"; then :
12993 ac_cv_lib_dld_dld_link=yes
12994 else
12995 ac_cv_lib_dld_dld_link=no
12997 rm -f core conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
12999 LIBS=$ac_check_lib_save_LIBS
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13002 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13003 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13004 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13023 esac
13025 if test "x$lt_cv_dlopen" != xno; then
13026 enable_dlopen=yes
13027 else
13028 enable_dlopen=no
13031 case $lt_cv_dlopen in
13032 dlopen)
13033 save_CPPFLAGS="$CPPFLAGS"
13034 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13036 save_LDFLAGS="$LDFLAGS"
13037 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13039 save_LIBS="$LIBS"
13040 LIBS="$lt_cv_dlopen_libs $LIBS"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13043 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13044 if ${lt_cv_dlopen_self+:} false; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 if test "$cross_compiling" = yes; then :
13048 lt_cv_dlopen_self=cross
13049 else
13050 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13051 lt_status=$lt_dlunknown
13052 cat > conftest.$ac_ext <<_LT_EOF
13053 #line $LINENO "configure"
13054 #include "confdefs.h"
13056 #if HAVE_DLFCN_H
13057 #include <dlfcn.h>
13058 #endif
13060 #include <stdio.h>
13062 #ifdef RTLD_GLOBAL
13063 # define LT_DLGLOBAL RTLD_GLOBAL
13064 #else
13065 # ifdef DL_GLOBAL
13066 # define LT_DLGLOBAL DL_GLOBAL
13067 # else
13068 # define LT_DLGLOBAL 0
13069 # endif
13070 #endif
13072 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13073 find out it does not work in some platform. */
13074 #ifndef LT_DLLAZY_OR_NOW
13075 # ifdef RTLD_LAZY
13076 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13077 # else
13078 # ifdef DL_LAZY
13079 # define LT_DLLAZY_OR_NOW DL_LAZY
13080 # else
13081 # ifdef RTLD_NOW
13082 # define LT_DLLAZY_OR_NOW RTLD_NOW
13083 # else
13084 # ifdef DL_NOW
13085 # define LT_DLLAZY_OR_NOW DL_NOW
13086 # else
13087 # define LT_DLLAZY_OR_NOW 0
13088 # endif
13089 # endif
13090 # endif
13091 # endif
13092 #endif
13094 /* When -fvisbility=hidden is used, assume the code has been annotated
13095 correspondingly for the symbols needed. */
13096 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13097 int fnord () __attribute__((visibility("default")));
13098 #endif
13100 int fnord () { return 42; }
13101 int main ()
13103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13104 int status = $lt_dlunknown;
13106 if (self)
13108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13109 else
13111 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13112 else puts (dlerror ());
13114 /* dlclose (self); */
13116 else
13117 puts (dlerror ());
13119 return status;
13121 _LT_EOF
13122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13123 (eval $ac_link) 2>&5
13124 ac_status=$?
13125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13126 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13127 (./conftest; exit; ) >&5 2>/dev/null
13128 lt_status=$?
13129 case x$lt_status in
13130 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13131 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13132 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13133 esac
13134 else :
13135 # compilation failed
13136 lt_cv_dlopen_self=no
13139 rm -fr conftest*
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13144 $as_echo "$lt_cv_dlopen_self" >&6; }
13146 if test "x$lt_cv_dlopen_self" = xyes; then
13147 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13149 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13150 if ${lt_cv_dlopen_self_static+:} false; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 if test "$cross_compiling" = yes; then :
13154 lt_cv_dlopen_self_static=cross
13155 else
13156 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13157 lt_status=$lt_dlunknown
13158 cat > conftest.$ac_ext <<_LT_EOF
13159 #line $LINENO "configure"
13160 #include "confdefs.h"
13162 #if HAVE_DLFCN_H
13163 #include <dlfcn.h>
13164 #endif
13166 #include <stdio.h>
13168 #ifdef RTLD_GLOBAL
13169 # define LT_DLGLOBAL RTLD_GLOBAL
13170 #else
13171 # ifdef DL_GLOBAL
13172 # define LT_DLGLOBAL DL_GLOBAL
13173 # else
13174 # define LT_DLGLOBAL 0
13175 # endif
13176 #endif
13178 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13179 find out it does not work in some platform. */
13180 #ifndef LT_DLLAZY_OR_NOW
13181 # ifdef RTLD_LAZY
13182 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13183 # else
13184 # ifdef DL_LAZY
13185 # define LT_DLLAZY_OR_NOW DL_LAZY
13186 # else
13187 # ifdef RTLD_NOW
13188 # define LT_DLLAZY_OR_NOW RTLD_NOW
13189 # else
13190 # ifdef DL_NOW
13191 # define LT_DLLAZY_OR_NOW DL_NOW
13192 # else
13193 # define LT_DLLAZY_OR_NOW 0
13194 # endif
13195 # endif
13196 # endif
13197 # endif
13198 #endif
13200 /* When -fvisbility=hidden is used, assume the code has been annotated
13201 correspondingly for the symbols needed. */
13202 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13203 int fnord () __attribute__((visibility("default")));
13204 #endif
13206 int fnord () { return 42; }
13207 int main ()
13209 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13210 int status = $lt_dlunknown;
13212 if (self)
13214 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13215 else
13217 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13218 else puts (dlerror ());
13220 /* dlclose (self); */
13222 else
13223 puts (dlerror ());
13225 return status;
13227 _LT_EOF
13228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13229 (eval $ac_link) 2>&5
13230 ac_status=$?
13231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13232 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13233 (./conftest; exit; ) >&5 2>/dev/null
13234 lt_status=$?
13235 case x$lt_status in
13236 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13237 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13238 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13239 esac
13240 else :
13241 # compilation failed
13242 lt_cv_dlopen_self_static=no
13245 rm -fr conftest*
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13250 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13253 CPPFLAGS="$save_CPPFLAGS"
13254 LDFLAGS="$save_LDFLAGS"
13255 LIBS="$save_LIBS"
13257 esac
13259 case $lt_cv_dlopen_self in
13260 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13261 *) enable_dlopen_self=unknown ;;
13262 esac
13264 case $lt_cv_dlopen_self_static in
13265 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13266 *) enable_dlopen_self_static=unknown ;;
13267 esac
13286 striplib=
13287 old_striplib=
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13289 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13290 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13291 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13292 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13294 $as_echo "yes" >&6; }
13295 else
13296 # FIXME - insert some real tests, host_os isn't really good enough
13297 case $host_os in
13298 darwin*)
13299 if test -n "$STRIP" ; then
13300 striplib="$STRIP -x"
13301 old_striplib="$STRIP -S"
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13303 $as_echo "yes" >&6; }
13304 else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13313 esac
13327 # Report which library types will actually be built
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13329 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13331 $as_echo "$can_build_shared" >&6; }
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13334 $as_echo_n "checking whether to build shared libraries... " >&6; }
13335 test "$can_build_shared" = "no" && enable_shared=no
13337 # On AIX, shared libraries and static libraries use the same namespace, and
13338 # are all built from PIC.
13339 case $host_os in
13340 aix3*)
13341 test "$enable_shared" = yes && enable_static=no
13342 if test -n "$RANLIB"; then
13343 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13344 postinstall_cmds='$RANLIB $lib'
13348 aix[4-9]*)
13349 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13350 test "$enable_shared" = yes && enable_static=no
13353 esac
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13355 $as_echo "$enable_shared" >&6; }
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13358 $as_echo_n "checking whether to build static libraries... " >&6; }
13359 # Make sure either enable_shared or enable_static is yes.
13360 test "$enable_shared" = yes || enable_static=yes
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13362 $as_echo "$enable_static" >&6; }
13368 ac_ext=c
13369 ac_cpp='$CPP $CPPFLAGS'
13370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13374 CC="$lt_save_CC"
13390 ac_config_commands="$ac_config_commands libtool"
13395 # Only expand once:
13401 # Extract the first word of "ronn", so it can be a program name with args.
13402 set dummy ronn; ac_word=$2
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13404 $as_echo_n "checking for $ac_word... " >&6; }
13405 if ${ac_cv_path_RONN+:} false; then :
13406 $as_echo_n "(cached) " >&6
13407 else
13408 case $RONN in
13409 [\\/]* | ?:[\\/]*)
13410 ac_cv_path_RONN="$RONN" # Let the user override the test with a path.
13413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13414 for as_dir in $PATH
13416 IFS=$as_save_IFS
13417 test -z "$as_dir" && as_dir=.
13418 for ac_exec_ext in '' $ac_executable_extensions; do
13419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13420 ac_cv_path_RONN="$as_dir/$ac_word$ac_exec_ext"
13421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13422 break 2
13424 done
13425 done
13426 IFS=$as_save_IFS
13428 test -z "$ac_cv_path_RONN" && ac_cv_path_RONN="#"
13430 esac
13432 RONN=$ac_cv_path_RONN
13433 if test -n "$RONN"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RONN" >&5
13435 $as_echo "$RONN" >&6; }
13436 else
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438 $as_echo "no" >&6; }
13444 # Extract the first word of "sixjack", so it can be a program name with args.
13445 set dummy sixjack; ac_word=$2
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447 $as_echo_n "checking for $ac_word... " >&6; }
13448 if ${ac_cv_path_SIXJACK+:} false; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 case $SIXJACK in
13452 [\\/]* | ?:[\\/]*)
13453 ac_cv_path_SIXJACK="$SIXJACK" # Let the user override the test with a path.
13456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457 for as_dir in $PATH
13459 IFS=$as_save_IFS
13460 test -z "$as_dir" && as_dir=.
13461 for ac_exec_ext in '' $ac_executable_extensions; do
13462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13463 ac_cv_path_SIXJACK="$as_dir/$ac_word$ac_exec_ext"
13464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465 break 2
13467 done
13468 done
13469 IFS=$as_save_IFS
13471 test -z "$ac_cv_path_SIXJACK" && ac_cv_path_SIXJACK="#"
13473 esac
13475 SIXJACK=$ac_cv_path_SIXJACK
13476 if test -n "$SIXJACK"; then
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIXJACK" >&5
13478 $as_echo "$SIXJACK" >&6; }
13479 else
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481 $as_echo "no" >&6; }
13487 if test -n "$ac_tool_prefix"; then
13488 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13489 set dummy ${ac_tool_prefix}ar; ac_word=$2
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13491 $as_echo_n "checking for $ac_word... " >&6; }
13492 if ${ac_cv_prog_AR+:} false; then :
13493 $as_echo_n "(cached) " >&6
13494 else
13495 if test -n "$AR"; then
13496 ac_cv_prog_AR="$AR" # Let the user override the test.
13497 else
13498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13499 for as_dir in $PATH
13501 IFS=$as_save_IFS
13502 test -z "$as_dir" && as_dir=.
13503 for ac_exec_ext in '' $ac_executable_extensions; do
13504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13505 ac_cv_prog_AR="${ac_tool_prefix}ar"
13506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13507 break 2
13509 done
13510 done
13511 IFS=$as_save_IFS
13515 AR=$ac_cv_prog_AR
13516 if test -n "$AR"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13518 $as_echo "$AR" >&6; }
13519 else
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13526 if test -z "$ac_cv_prog_AR"; then
13527 ac_ct_AR=$AR
13528 # Extract the first word of "ar", so it can be a program name with args.
13529 set dummy ar; ac_word=$2
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13531 $as_echo_n "checking for $ac_word... " >&6; }
13532 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 if test -n "$ac_ct_AR"; then
13536 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13537 else
13538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13539 for as_dir in $PATH
13541 IFS=$as_save_IFS
13542 test -z "$as_dir" && as_dir=.
13543 for ac_exec_ext in '' $ac_executable_extensions; do
13544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13545 ac_cv_prog_ac_ct_AR="ar"
13546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13547 break 2
13549 done
13550 done
13551 IFS=$as_save_IFS
13555 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13556 if test -n "$ac_ct_AR"; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13558 $as_echo "$ac_ct_AR" >&6; }
13559 else
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13564 if test "x$ac_ct_AR" = x; then
13565 AR="ar"
13566 else
13567 case $cross_compiling:$ac_tool_warned in
13568 yes:)
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13571 ac_tool_warned=yes ;;
13572 esac
13573 AR=$ac_ct_AR
13575 else
13576 AR="$ac_cv_prog_AR"
13580 case $host_os in
13581 darwin*)
13582 case $build_os in
13583 darwin*)
13585 # Extract the first word of "dtrace", so it can be a program name with args.
13586 set dummy dtrace; ac_word=$2
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588 $as_echo_n "checking for $ac_word... " >&6; }
13589 if ${ac_cv_path_DTRACE+:} false; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 case $DTRACE in
13593 [\\/]* | ?:[\\/]*)
13594 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
13597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13598 for as_dir in $PATH
13600 IFS=$as_save_IFS
13601 test -z "$as_dir" && as_dir=.
13602 for ac_exec_ext in '' $ac_executable_extensions; do
13603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13604 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
13605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13606 break 2
13608 done
13609 done
13610 IFS=$as_save_IFS
13613 esac
13615 DTRACE=$ac_cv_path_DTRACE
13616 if test -n "$DTRACE"; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
13618 $as_echo "$DTRACE" >&6; }
13619 else
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13626 esac
13628 esac
13629 if test -n "$DTRACE"; then :
13631 PROBES_SOURCE="probes_dnscrypt_proxy.h"
13633 else
13635 DTRACE="#"
13636 PROBES_SOURCE="probes_no_dtrace.h"
13640 if test -d /usr/local/include; then :
13642 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
13646 if test -d /usr/local/lib; then :
13648 LDFLAGS="$LDFLAGS -L/usr/local/lib"
13653 # Check whether --enable-largefile was given.
13654 if test "${enable_largefile+set}" = set; then :
13655 enableval=$enable_largefile;
13658 if test "$enable_largefile" != no; then
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13661 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13662 if ${ac_cv_sys_largefile_CC+:} false; then :
13663 $as_echo_n "(cached) " >&6
13664 else
13665 ac_cv_sys_largefile_CC=no
13666 if test "$GCC" != yes; then
13667 ac_save_CC=$CC
13668 while :; do
13669 # IRIX 6.2 and later do not support large files by default,
13670 # so use the C compiler's -n32 option if that helps.
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13673 #include <sys/types.h>
13674 /* Check that off_t can represent 2**63 - 1 correctly.
13675 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13676 since some C++ compilers masquerading as C compilers
13677 incorrectly reject 9223372036854775807. */
13678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13679 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13680 && LARGE_OFF_T % 2147483647 == 1)
13681 ? 1 : -1];
13683 main ()
13687 return 0;
13689 _ACEOF
13690 if ac_fn_c_try_compile "$LINENO"; then :
13691 break
13693 rm -f core conftest.err conftest.$ac_objext
13694 CC="$CC -n32"
13695 if ac_fn_c_try_compile "$LINENO"; then :
13696 ac_cv_sys_largefile_CC=' -n32'; break
13698 rm -f core conftest.err conftest.$ac_objext
13699 break
13700 done
13701 CC=$ac_save_CC
13702 rm -f conftest.$ac_ext
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13706 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13707 if test "$ac_cv_sys_largefile_CC" != no; then
13708 CC=$CC$ac_cv_sys_largefile_CC
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13712 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13713 if ${ac_cv_sys_file_offset_bits+:} false; then :
13714 $as_echo_n "(cached) " >&6
13715 else
13716 while :; do
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13719 #include <sys/types.h>
13720 /* Check that off_t can represent 2**63 - 1 correctly.
13721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13722 since some C++ compilers masquerading as C compilers
13723 incorrectly reject 9223372036854775807. */
13724 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13726 && LARGE_OFF_T % 2147483647 == 1)
13727 ? 1 : -1];
13729 main ()
13733 return 0;
13735 _ACEOF
13736 if ac_fn_c_try_compile "$LINENO"; then :
13737 ac_cv_sys_file_offset_bits=no; break
13739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13742 #define _FILE_OFFSET_BITS 64
13743 #include <sys/types.h>
13744 /* Check that off_t can represent 2**63 - 1 correctly.
13745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13746 since some C++ compilers masquerading as C compilers
13747 incorrectly reject 9223372036854775807. */
13748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13750 && LARGE_OFF_T % 2147483647 == 1)
13751 ? 1 : -1];
13753 main ()
13757 return 0;
13759 _ACEOF
13760 if ac_fn_c_try_compile "$LINENO"; then :
13761 ac_cv_sys_file_offset_bits=64; break
13763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764 ac_cv_sys_file_offset_bits=unknown
13765 break
13766 done
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13769 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13770 case $ac_cv_sys_file_offset_bits in #(
13771 no | unknown) ;;
13773 cat >>confdefs.h <<_ACEOF
13774 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13775 _ACEOF
13777 esac
13778 rm -rf conftest*
13779 if test $ac_cv_sys_file_offset_bits = unknown; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13781 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13782 if ${ac_cv_sys_large_files+:} false; then :
13783 $as_echo_n "(cached) " >&6
13784 else
13785 while :; do
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788 #include <sys/types.h>
13789 /* Check that off_t can represent 2**63 - 1 correctly.
13790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13791 since some C++ compilers masquerading as C compilers
13792 incorrectly reject 9223372036854775807. */
13793 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13795 && LARGE_OFF_T % 2147483647 == 1)
13796 ? 1 : -1];
13798 main ()
13802 return 0;
13804 _ACEOF
13805 if ac_fn_c_try_compile "$LINENO"; then :
13806 ac_cv_sys_large_files=no; break
13808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13811 #define _LARGE_FILES 1
13812 #include <sys/types.h>
13813 /* Check that off_t can represent 2**63 - 1 correctly.
13814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13815 since some C++ compilers masquerading as C compilers
13816 incorrectly reject 9223372036854775807. */
13817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13819 && LARGE_OFF_T % 2147483647 == 1)
13820 ? 1 : -1];
13822 main ()
13826 return 0;
13828 _ACEOF
13829 if ac_fn_c_try_compile "$LINENO"; then :
13830 ac_cv_sys_large_files=1; break
13832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13833 ac_cv_sys_large_files=unknown
13834 break
13835 done
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13838 $as_echo "$ac_cv_sys_large_files" >&6; }
13839 case $ac_cv_sys_large_files in #(
13840 no | unknown) ;;
13842 cat >>confdefs.h <<_ACEOF
13843 #define _LARGE_FILES $ac_cv_sys_large_files
13844 _ACEOF
13846 esac
13847 rm -rf conftest*
13853 for ac_header in sys/cdefs.h sys/feature_tests.h
13854 do :
13855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13856 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13857 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13858 cat >>confdefs.h <<_ACEOF
13859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13860 _ACEOF
13864 done
13866 for ac_header in execinfo.h paths.h pwd.h uuid/uuid.h
13867 do :
13868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13869 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13870 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13871 cat >>confdefs.h <<_ACEOF
13872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13873 _ACEOF
13877 done
13879 for ac_header in sandbox.h
13880 do :
13881 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
13882 if test "x$ac_cv_header_sandbox_h" = xyes; then :
13883 cat >>confdefs.h <<_ACEOF
13884 #define HAVE_SANDBOX_H 1
13885 _ACEOF
13889 done
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13894 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13895 if ${ac_cv_c_bigendian+:} false; then :
13896 $as_echo_n "(cached) " >&6
13897 else
13898 ac_cv_c_bigendian=unknown
13899 # See if we're dealing with a universal compiler.
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902 #ifndef __APPLE_CC__
13903 not a universal capable compiler
13904 #endif
13905 typedef int dummy;
13907 _ACEOF
13908 if ac_fn_c_try_compile "$LINENO"; then :
13910 # Check for potential -arch flags. It is not universal unless
13911 # there are at least two -arch flags with different values.
13912 ac_arch=
13913 ac_prev=
13914 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13915 if test -n "$ac_prev"; then
13916 case $ac_word in
13917 i?86 | x86_64 | ppc | ppc64)
13918 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13919 ac_arch=$ac_word
13920 else
13921 ac_cv_c_bigendian=universal
13922 break
13925 esac
13926 ac_prev=
13927 elif test "x$ac_word" = "x-arch"; then
13928 ac_prev=arch
13930 done
13932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13933 if test $ac_cv_c_bigendian = unknown; then
13934 # See if sys/param.h defines the BYTE_ORDER macro.
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13937 #include <sys/types.h>
13938 #include <sys/param.h>
13941 main ()
13943 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13944 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13945 && LITTLE_ENDIAN)
13946 bogus endian macros
13947 #endif
13950 return 0;
13952 _ACEOF
13953 if ac_fn_c_try_compile "$LINENO"; then :
13954 # It does; now see whether it defined to BIG_ENDIAN or not.
13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13957 #include <sys/types.h>
13958 #include <sys/param.h>
13961 main ()
13963 #if BYTE_ORDER != BIG_ENDIAN
13964 not big endian
13965 #endif
13968 return 0;
13970 _ACEOF
13971 if ac_fn_c_try_compile "$LINENO"; then :
13972 ac_cv_c_bigendian=yes
13973 else
13974 ac_cv_c_bigendian=no
13976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980 if test $ac_cv_c_bigendian = unknown; then
13981 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13984 #include <limits.h>
13987 main ()
13989 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13990 bogus endian macros
13991 #endif
13994 return 0;
13996 _ACEOF
13997 if ac_fn_c_try_compile "$LINENO"; then :
13998 # It does; now see whether it defined to _BIG_ENDIAN or not.
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14001 #include <limits.h>
14004 main ()
14006 #ifndef _BIG_ENDIAN
14007 not big endian
14008 #endif
14011 return 0;
14013 _ACEOF
14014 if ac_fn_c_try_compile "$LINENO"; then :
14015 ac_cv_c_bigendian=yes
14016 else
14017 ac_cv_c_bigendian=no
14019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14023 if test $ac_cv_c_bigendian = unknown; then
14024 # Compile a test program.
14025 if test "$cross_compiling" = yes; then :
14026 # Try to guess by grepping values from an object file.
14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h. */
14029 short int ascii_mm[] =
14030 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14031 short int ascii_ii[] =
14032 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14033 int use_ascii (int i) {
14034 return ascii_mm[i] + ascii_ii[i];
14036 short int ebcdic_ii[] =
14037 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14038 short int ebcdic_mm[] =
14039 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14040 int use_ebcdic (int i) {
14041 return ebcdic_mm[i] + ebcdic_ii[i];
14043 extern int foo;
14046 main ()
14048 return use_ascii (foo) == use_ebcdic (foo);
14050 return 0;
14052 _ACEOF
14053 if ac_fn_c_try_compile "$LINENO"; then :
14054 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14055 ac_cv_c_bigendian=yes
14057 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14058 if test "$ac_cv_c_bigendian" = unknown; then
14059 ac_cv_c_bigendian=no
14060 else
14061 # finding both strings is unlikely to happen, but who knows?
14062 ac_cv_c_bigendian=unknown
14066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067 else
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070 $ac_includes_default
14072 main ()
14075 /* Are we little or big endian? From Harbison&Steele. */
14076 union
14078 long int l;
14079 char c[sizeof (long int)];
14080 } u;
14081 u.l = 1;
14082 return u.c[sizeof (long int) - 1] == 1;
14085 return 0;
14087 _ACEOF
14088 if ac_fn_c_try_run "$LINENO"; then :
14089 ac_cv_c_bigendian=no
14090 else
14091 ac_cv_c_bigendian=yes
14093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14094 conftest.$ac_objext conftest.beam conftest.$ac_ext
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14100 $as_echo "$ac_cv_c_bigendian" >&6; }
14101 case $ac_cv_c_bigendian in #(
14102 yes)
14103 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14104 ;; #(
14106 ;; #(
14107 universal)
14109 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14111 ;; #(
14113 as_fn_error $? "unknown endianness
14114 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14115 esac
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14118 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14119 if ${ac_cv_c_restrict+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 ac_cv_c_restrict=no
14123 # The order here caters to the fact that C++ does not require restrict.
14124 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127 typedef int * int_ptr;
14128 int foo (int_ptr $ac_kw ip) {
14129 return ip[0];
14132 main ()
14134 int s[1];
14135 int * $ac_kw t = s;
14136 t[0] = 0;
14137 return foo(t)
14139 return 0;
14141 _ACEOF
14142 if ac_fn_c_try_compile "$LINENO"; then :
14143 ac_cv_c_restrict=$ac_kw
14145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14146 test "$ac_cv_c_restrict" != no && break
14147 done
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14151 $as_echo "$ac_cv_c_restrict" >&6; }
14153 case $ac_cv_c_restrict in
14154 restrict) ;;
14155 no) $as_echo "#define restrict /**/" >>confdefs.h
14157 *) cat >>confdefs.h <<_ACEOF
14158 #define restrict $ac_cv_c_restrict
14159 _ACEOF
14161 esac
14164 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14165 #ifdef HAVE_UNISTD_H
14166 # include <unistd.h>
14167 #endif
14168 #include <sys/types.h>
14169 #include <sys/socket.h>
14170 #include <netinet/in.h>
14173 if test "x$ac_cv_type_in_port_t" = xyes; then :
14175 else
14177 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sin_len is defined" >&5
14183 $as_echo_n "checking whether sin_len is defined... " >&6; }
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14187 #include <stdio.h>
14188 #ifdef HAVE_UNISTD_H
14189 # include <unistd.h>
14190 #endif
14191 #include <sys/types.h>
14192 #include <sys/socket.h>
14193 #include <netinet/in.h>
14196 main ()
14199 do {
14200 struct sockaddr_in a;
14201 (void) a.sin_len;
14202 } while(0)
14205 return 0;
14207 _ACEOF
14208 if ac_fn_c_try_compile "$LINENO"; then :
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14211 $as_echo "yes" >&6; }
14213 $as_echo "#define HAVE_SIN_LEN 1" >>confdefs.h
14216 else
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14219 $as_echo "no" >&6; }
14222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __ss_family is defined" >&5
14225 $as_echo_n "checking whether __ss_family is defined... " >&6; }
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14229 #include <stdio.h>
14230 #ifdef HAVE_UNISTD_H
14231 # include <unistd.h>
14232 #endif
14233 #include <sys/types.h>
14234 #include <sys/socket.h>
14237 main ()
14240 do {
14241 struct sockaddr_storage a;
14242 (void) a.__ss_family;
14243 } while(0)
14246 return 0;
14248 _ACEOF
14249 if ac_fn_c_try_compile "$LINENO"; then :
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14252 $as_echo "yes" >&6; }
14254 $as_echo "#define HAVE___SS_FAMILY 1" >>confdefs.h
14257 else
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14260 $as_echo "no" >&6; }
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ss_len is defined" >&5
14266 $as_echo_n "checking whether ss_len is defined... " >&6; }
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14270 #include <stdio.h>
14271 #ifdef HAVE_UNISTD_H
14272 # include <unistd.h>
14273 #endif
14274 #include <sys/types.h>
14275 #include <sys/socket.h>
14278 main ()
14281 do {
14282 struct sockaddr_storage a;
14283 (void) a.ss_len;
14284 } while(0)
14287 return 0;
14289 _ACEOF
14290 if ac_fn_c_try_compile "$LINENO"; then :
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14293 $as_echo "yes" >&6; }
14295 $as_echo "#define HAVE_SS_LEN 1" >>confdefs.h
14298 else
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14301 $as_echo "no" >&6; }
14304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __ss_len is defined" >&5
14307 $as_echo_n "checking whether __ss_len is defined... " >&6; }
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14311 #include <stdio.h>
14312 #ifdef HAVE_UNISTD_H
14313 # include <unistd.h>
14314 #endif
14315 #include <sys/types.h>
14316 #include <sys/socket.h>
14319 main ()
14322 do {
14323 struct sockaddr_storage a;
14324 (void) a.__ss_len;
14325 } while(0)
14328 return 0;
14330 _ACEOF
14331 if ac_fn_c_try_compile "$LINENO"; then :
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14334 $as_echo "yes" >&6; }
14336 $as_echo "#define HAVE___SS_LEN 1" >>confdefs.h
14339 else
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
14349 $as_echo_n "checking for library containing pow... " >&6; }
14350 if ${ac_cv_search_pow+:} false; then :
14351 $as_echo_n "(cached) " >&6
14352 else
14353 ac_func_search_save_LIBS=$LIBS
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char pow ();
14365 main ()
14367 return pow ();
14369 return 0;
14371 _ACEOF
14372 for ac_lib in '' m; do
14373 if test -z "$ac_lib"; then
14374 ac_res="none required"
14375 else
14376 ac_res=-l$ac_lib
14377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14379 if ac_fn_c_try_link "$LINENO"; then :
14380 ac_cv_search_pow=$ac_res
14382 rm -f core conftest.err conftest.$ac_objext \
14383 conftest$ac_exeext
14384 if ${ac_cv_search_pow+:} false; then :
14385 break
14387 done
14388 if ${ac_cv_search_pow+:} false; then :
14390 else
14391 ac_cv_search_pow=no
14393 rm conftest.$ac_ext
14394 LIBS=$ac_func_search_save_LIBS
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
14397 $as_echo "$ac_cv_search_pow" >&6; }
14398 ac_res=$ac_cv_search_pow
14399 if test "$ac_res" != no; then :
14400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14405 $as_echo_n "checking for library containing dlopen... " >&6; }
14406 if ${ac_cv_search_dlopen+:} false; then :
14407 $as_echo_n "(cached) " >&6
14408 else
14409 ac_func_search_save_LIBS=$LIBS
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14413 /* Override any GCC internal prototype to avoid an error.
14414 Use char because int might match the return type of a GCC
14415 builtin and then its argument prototype would still apply. */
14416 #ifdef __cplusplus
14417 extern "C"
14418 #endif
14419 char dlopen ();
14421 main ()
14423 return dlopen ();
14425 return 0;
14427 _ACEOF
14428 for ac_lib in '' dl; do
14429 if test -z "$ac_lib"; then
14430 ac_res="none required"
14431 else
14432 ac_res=-l$ac_lib
14433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14435 if ac_fn_c_try_link "$LINENO"; then :
14436 ac_cv_search_dlopen=$ac_res
14438 rm -f core conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext
14440 if ${ac_cv_search_dlopen+:} false; then :
14441 break
14443 done
14444 if ${ac_cv_search_dlopen+:} false; then :
14446 else
14447 ac_cv_search_dlopen=no
14449 rm conftest.$ac_ext
14450 LIBS=$ac_func_search_save_LIBS
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14453 $as_echo "$ac_cv_search_dlopen" >&6; }
14454 ac_res=$ac_cv_search_dlopen
14455 if test "$ac_res" != no; then :
14456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14461 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14462 if ${ac_cv_search_clock_gettime+:} false; then :
14463 $as_echo_n "(cached) " >&6
14464 else
14465 ac_func_search_save_LIBS=$LIBS
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14469 /* Override any GCC internal prototype to avoid an error.
14470 Use char because int might match the return type of a GCC
14471 builtin and then its argument prototype would still apply. */
14472 #ifdef __cplusplus
14473 extern "C"
14474 #endif
14475 char clock_gettime ();
14477 main ()
14479 return clock_gettime ();
14481 return 0;
14483 _ACEOF
14484 for ac_lib in '' rt; do
14485 if test -z "$ac_lib"; then
14486 ac_res="none required"
14487 else
14488 ac_res=-l$ac_lib
14489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14491 if ac_fn_c_try_link "$LINENO"; then :
14492 ac_cv_search_clock_gettime=$ac_res
14494 rm -f core conftest.err conftest.$ac_objext \
14495 conftest$ac_exeext
14496 if ${ac_cv_search_clock_gettime+:} false; then :
14497 break
14499 done
14500 if ${ac_cv_search_clock_gettime+:} false; then :
14502 else
14503 ac_cv_search_clock_gettime=no
14505 rm conftest.$ac_ext
14506 LIBS=$ac_func_search_save_LIBS
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14509 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14510 ac_res=$ac_cv_search_clock_gettime
14511 if test "$ac_res" != no; then :
14512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14514 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
14520 $as_echo_n "checking for library containing backtrace... " >&6; }
14521 if ${ac_cv_search_backtrace+:} 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. */
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 backtrace ();
14536 main ()
14538 return backtrace ();
14540 return 0;
14542 _ACEOF
14543 for ac_lib in '' execinfo; 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"
14550 if ac_fn_c_try_link "$LINENO"; then :
14551 ac_cv_search_backtrace=$ac_res
14553 rm -f core conftest.err conftest.$ac_objext \
14554 conftest$ac_exeext
14555 if ${ac_cv_search_backtrace+:} false; then :
14556 break
14558 done
14559 if ${ac_cv_search_backtrace+:} false; then :
14561 else
14562 ac_cv_search_backtrace=no
14564 rm conftest.$ac_ext
14565 LIBS=$ac_func_search_save_LIBS
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
14568 $as_echo "$ac_cv_search_backtrace" >&6; }
14569 ac_res=$ac_cv_search_backtrace
14570 if test "$ac_res" != no; then :
14571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14573 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14579 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14580 if ${ac_cv_search_gethostbyname+:} false; then :
14581 $as_echo_n "(cached) " >&6
14582 else
14583 ac_func_search_save_LIBS=$LIBS
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14587 /* Override any GCC internal prototype to avoid an error.
14588 Use char because int might match the return type of a GCC
14589 builtin and then its argument prototype would still apply. */
14590 #ifdef __cplusplus
14591 extern "C"
14592 #endif
14593 char gethostbyname ();
14595 main ()
14597 return gethostbyname ();
14599 return 0;
14601 _ACEOF
14602 for ac_lib in '' resolv nsl; do
14603 if test -z "$ac_lib"; then
14604 ac_res="none required"
14605 else
14606 ac_res=-l$ac_lib
14607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14609 if ac_fn_c_try_link "$LINENO"; then :
14610 ac_cv_search_gethostbyname=$ac_res
14612 rm -f core conftest.err conftest.$ac_objext \
14613 conftest$ac_exeext
14614 if ${ac_cv_search_gethostbyname+:} false; then :
14615 break
14617 done
14618 if ${ac_cv_search_gethostbyname+:} false; then :
14620 else
14621 ac_cv_search_gethostbyname=no
14623 rm conftest.$ac_ext
14624 LIBS=$ac_func_search_save_LIBS
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14627 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14628 ac_res=$ac_cv_search_gethostbyname
14629 if test "$ac_res" != no; then :
14630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing recvfrom" >&5
14635 $as_echo_n "checking for library containing recvfrom... " >&6; }
14636 if ${ac_cv_search_recvfrom+:} false; then :
14637 $as_echo_n "(cached) " >&6
14638 else
14639 ac_func_search_save_LIBS=$LIBS
14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h. */
14643 /* Override any GCC internal prototype to avoid an error.
14644 Use char because int might match the return type of a GCC
14645 builtin and then its argument prototype would still apply. */
14646 #ifdef __cplusplus
14647 extern "C"
14648 #endif
14649 char recvfrom ();
14651 main ()
14653 return recvfrom ();
14655 return 0;
14657 _ACEOF
14658 for ac_lib in '' socket; do
14659 if test -z "$ac_lib"; then
14660 ac_res="none required"
14661 else
14662 ac_res=-l$ac_lib
14663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14665 if ac_fn_c_try_link "$LINENO"; then :
14666 ac_cv_search_recvfrom=$ac_res
14668 rm -f core conftest.err conftest.$ac_objext \
14669 conftest$ac_exeext
14670 if ${ac_cv_search_recvfrom+:} false; then :
14671 break
14673 done
14674 if ${ac_cv_search_recvfrom+:} false; then :
14676 else
14677 ac_cv_search_recvfrom=no
14679 rm conftest.$ac_ext
14680 LIBS=$ac_func_search_save_LIBS
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_recvfrom" >&5
14683 $as_echo "$ac_cv_search_recvfrom" >&6; }
14684 ac_res=$ac_cv_search_recvfrom
14685 if test "$ac_res" != no; then :
14686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
14691 $as_echo_n "checking for library containing kvm_open... " >&6; }
14692 if ${ac_cv_search_kvm_open+:} 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. */
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 kvm_open ();
14707 main ()
14709 return kvm_open ();
14711 return 0;
14713 _ACEOF
14714 for ac_lib in '' kvm; 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"
14721 if ac_fn_c_try_link "$LINENO"; then :
14722 ac_cv_search_kvm_open=$ac_res
14724 rm -f core conftest.err conftest.$ac_objext \
14725 conftest$ac_exeext
14726 if ${ac_cv_search_kvm_open+:} false; then :
14727 break
14729 done
14730 if ${ac_cv_search_kvm_open+:} false; then :
14732 else
14733 ac_cv_search_kvm_open=no
14735 rm conftest.$ac_ext
14736 LIBS=$ac_func_search_save_LIBS
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
14739 $as_echo "$ac_cv_search_kvm_open" >&6; }
14740 ac_res=$ac_cv_search_kvm_open
14741 if test "$ac_res" != no; then :
14742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
14747 $as_echo_n "checking for library containing sodium_init... " >&6; }
14748 if ${ac_cv_search_sodium_init+:} false; then :
14749 $as_echo_n "(cached) " >&6
14750 else
14751 ac_func_search_save_LIBS=$LIBS
14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14755 /* Override any GCC internal prototype to avoid an error.
14756 Use char because int might match the return type of a GCC
14757 builtin and then its argument prototype would still apply. */
14758 #ifdef __cplusplus
14759 extern "C"
14760 #endif
14761 char sodium_init ();
14763 main ()
14765 return sodium_init ();
14767 return 0;
14769 _ACEOF
14770 for ac_lib in '' sodium; do
14771 if test -z "$ac_lib"; then
14772 ac_res="none required"
14773 else
14774 ac_res=-l$ac_lib
14775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14777 if ac_fn_c_try_link "$LINENO"; then :
14778 ac_cv_search_sodium_init=$ac_res
14780 rm -f core conftest.err conftest.$ac_objext \
14781 conftest$ac_exeext
14782 if ${ac_cv_search_sodium_init+:} false; then :
14783 break
14785 done
14786 if ${ac_cv_search_sodium_init+:} false; then :
14788 else
14789 ac_cv_search_sodium_init=no
14791 rm conftest.$ac_ext
14792 LIBS=$ac_func_search_save_LIBS
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
14795 $as_echo "$ac_cv_search_sodium_init" >&6; }
14796 ac_res=$ac_cv_search_sodium_init
14797 if test "$ac_res" != no; then :
14798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14803 if test x$ac_cv_search_sodium_init = xno; then
14804 USE_BUILTIN_LIBSODIUM_TRUE=
14805 USE_BUILTIN_LIBSODIUM_FALSE='#'
14806 else
14807 USE_BUILTIN_LIBSODIUM_TRUE='#'
14808 USE_BUILTIN_LIBSODIUM_FALSE=
14812 use_ldns=no
14813 ac_fn_c_check_header_compile "$LINENO" "ldns/ldns.h" "ac_cv_header_ldns_ldns_h" "#include <stdlib.h>
14814 #include <stdint.h>
14816 if test "x$ac_cv_header_ldns_ldns_h" = xyes; then :
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_wire2pkt in -lldns" >&5
14819 $as_echo_n "checking for ldns_wire2pkt in -lldns... " >&6; }
14820 if ${ac_cv_lib_ldns_ldns_wire2pkt+:} false; then :
14821 $as_echo_n "(cached) " >&6
14822 else
14823 ac_check_lib_save_LIBS=$LIBS
14824 LIBS="-lldns $LIBS"
14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14826 /* end confdefs.h. */
14828 /* Override any GCC internal prototype to avoid an error.
14829 Use char because int might match the return type of a GCC
14830 builtin and then its argument prototype would still apply. */
14831 #ifdef __cplusplus
14832 extern "C"
14833 #endif
14834 char ldns_wire2pkt ();
14836 main ()
14838 return ldns_wire2pkt ();
14840 return 0;
14842 _ACEOF
14843 if ac_fn_c_try_link "$LINENO"; then :
14844 ac_cv_lib_ldns_ldns_wire2pkt=yes
14845 else
14846 ac_cv_lib_ldns_ldns_wire2pkt=no
14848 rm -f core conftest.err conftest.$ac_objext \
14849 conftest$ac_exeext conftest.$ac_ext
14850 LIBS=$ac_check_lib_save_LIBS
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_wire2pkt" >&5
14853 $as_echo "$ac_cv_lib_ldns_ldns_wire2pkt" >&6; }
14854 if test "x$ac_cv_lib_ldns_ldns_wire2pkt" = xyes; then :
14857 $as_echo "#define USE_LDNS 1" >>confdefs.h
14859 LDNS_LIBS=-lldns
14860 use_ldns=yes
14868 if test x$use_ldns = xyes; then
14869 USE_LDNS_TRUE=
14870 USE_LDNS_FALSE='#'
14871 else
14872 USE_LDNS_TRUE='#'
14873 USE_LDNS_FALSE=
14878 case $host_os in
14879 cygwin* | mingw* | pw32* | cegcc*)
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libws2_32_a in -lws2_32" >&5
14881 $as_echo_n "checking for _head_libws2_32_a in -lws2_32... " >&6; }
14882 if ${ac_cv_lib_ws2_32__head_libws2_32_a+:} false; then :
14883 $as_echo_n "(cached) " >&6
14884 else
14885 ac_check_lib_save_LIBS=$LIBS
14886 LIBS="-lws2_32 $LIBS"
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14890 /* Override any GCC internal prototype to avoid an error.
14891 Use char because int might match the return type of a GCC
14892 builtin and then its argument prototype would still apply. */
14893 #ifdef __cplusplus
14894 extern "C"
14895 #endif
14896 char _head_libws2_32_a ();
14898 main ()
14900 return _head_libws2_32_a ();
14902 return 0;
14904 _ACEOF
14905 if ac_fn_c_try_link "$LINENO"; then :
14906 ac_cv_lib_ws2_32__head_libws2_32_a=yes
14907 else
14908 ac_cv_lib_ws2_32__head_libws2_32_a=no
14910 rm -f core conftest.err conftest.$ac_objext \
14911 conftest$ac_exeext conftest.$ac_ext
14912 LIBS=$ac_check_lib_save_LIBS
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32__head_libws2_32_a" >&5
14915 $as_echo "$ac_cv_lib_ws2_32__head_libws2_32_a" >&6; }
14916 if test "x$ac_cv_lib_ws2_32__head_libws2_32_a" = xyes; then :
14917 cat >>confdefs.h <<_ACEOF
14918 #define HAVE_LIBWS2_32 1
14919 _ACEOF
14921 LIBS="-lws2_32 $LIBS"
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libpsapi_a in -lpsapi" >&5
14926 $as_echo_n "checking for _head_libpsapi_a in -lpsapi... " >&6; }
14927 if ${ac_cv_lib_psapi__head_libpsapi_a+:} false; then :
14928 $as_echo_n "(cached) " >&6
14929 else
14930 ac_check_lib_save_LIBS=$LIBS
14931 LIBS="-lpsapi $LIBS"
14932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14935 /* Override any GCC internal prototype to avoid an error.
14936 Use char because int might match the return type of a GCC
14937 builtin and then its argument prototype would still apply. */
14938 #ifdef __cplusplus
14939 extern "C"
14940 #endif
14941 char _head_libpsapi_a ();
14943 main ()
14945 return _head_libpsapi_a ();
14947 return 0;
14949 _ACEOF
14950 if ac_fn_c_try_link "$LINENO"; then :
14951 ac_cv_lib_psapi__head_libpsapi_a=yes
14952 else
14953 ac_cv_lib_psapi__head_libpsapi_a=no
14955 rm -f core conftest.err conftest.$ac_objext \
14956 conftest$ac_exeext conftest.$ac_ext
14957 LIBS=$ac_check_lib_save_LIBS
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi__head_libpsapi_a" >&5
14960 $as_echo "$ac_cv_lib_psapi__head_libpsapi_a" >&6; }
14961 if test "x$ac_cv_lib_psapi__head_libpsapi_a" = xyes; then :
14962 cat >>confdefs.h <<_ACEOF
14963 #define HAVE_LIBPSAPI 1
14964 _ACEOF
14966 LIBS="-lpsapi $LIBS"
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libiphlpapi_a in -liphlpapi" >&5
14971 $as_echo_n "checking for _head_libiphlpapi_a in -liphlpapi... " >&6; }
14972 if ${ac_cv_lib_iphlpapi__head_libiphlpapi_a+:} false; then :
14973 $as_echo_n "(cached) " >&6
14974 else
14975 ac_check_lib_save_LIBS=$LIBS
14976 LIBS="-liphlpapi $LIBS"
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14980 /* Override any GCC internal prototype to avoid an error.
14981 Use char because int might match the return type of a GCC
14982 builtin and then its argument prototype would still apply. */
14983 #ifdef __cplusplus
14984 extern "C"
14985 #endif
14986 char _head_libiphlpapi_a ();
14988 main ()
14990 return _head_libiphlpapi_a ();
14992 return 0;
14994 _ACEOF
14995 if ac_fn_c_try_link "$LINENO"; then :
14996 ac_cv_lib_iphlpapi__head_libiphlpapi_a=yes
14997 else
14998 ac_cv_lib_iphlpapi__head_libiphlpapi_a=no
15000 rm -f core conftest.err conftest.$ac_objext \
15001 conftest$ac_exeext conftest.$ac_ext
15002 LIBS=$ac_check_lib_save_LIBS
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iphlpapi__head_libiphlpapi_a" >&5
15005 $as_echo "$ac_cv_lib_iphlpapi__head_libiphlpapi_a" >&6; }
15006 if test "x$ac_cv_lib_iphlpapi__head_libiphlpapi_a" = xyes; then :
15007 cat >>confdefs.h <<_ACEOF
15008 #define HAVE_LIBIPHLPAPI 1
15009 _ACEOF
15011 LIBS="-liphlpapi $LIBS"
15016 esac
15018 ac_fn_c_check_header_mongrel "$LINENO" "CoreServices/CoreServices.h" "ac_cv_header_CoreServices_CoreServices_h" "$ac_includes_default"
15019 if test "x$ac_cv_header_CoreServices_CoreServices_h" = xyes; then :
15020 LIBS="$LIBS -framework CoreFoundation -framework CoreServices"
15025 for ac_func in getpwnam sandbox_init setrlimit putc_unlocked
15026 do :
15027 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15029 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15030 cat >>confdefs.h <<_ACEOF
15031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15032 _ACEOF
15035 done
15039 # Check whether --enable-pie was given.
15040 if test "${enable_pie+set}" = set; then :
15041 enableval=$enable_pie; enable_pie=$enableval
15042 else
15043 enable_pie="maybe"
15047 # Check whether --enable-ssp was given.
15048 if test "${enable_ssp+set}" = set; then :
15049 enableval=$enable_ssp; if test "x$enableval" = "xno"; then :
15051 nxflags=""
15052 for flag in `echo $CFLAGS`; do
15053 case "$flag" in
15054 -fstack-protector*) ;;
15055 *) as_fn_append nxflags " $flag" ;;
15056 esac
15057 done
15058 CFLAGS="$nxflags"
15065 plugins=disabled
15066 # Check whether --enable-plugins was given.
15067 if test "${enable_plugins+set}" = set; then :
15068 enableval=$enable_plugins; CPPFLAGS="$CPPFLAGS -DPLUGINS=1"
15069 plugins=enabled
15072 if test x$plugins = xenabled; then
15073 PLUGINS_TRUE=
15074 PLUGINS_FALSE='#'
15075 else
15076 PLUGINS_TRUE='#'
15077 PLUGINS_FALSE=
15081 relaxed_plugins_permissions=disabled
15082 # Check whether --enable-relaxed-plugins-permissions was given.
15083 if test "${enable_relaxed_plugins_permissions+set}" = set; then :
15084 enableval=$enable_relaxed_plugins_permissions; CPPFLAGS="$CPPFLAGS -DRELAXED_PLUGINS_PERMISSIONS=1"
15085 relaxed_plugins_permissions=enabled
15088 if test x$relaxed_plugins_permissions = xenabled; then
15089 RELAXED_PLUGINS_PERMISSIONS_TRUE=
15090 RELAXED_PLUGINS_PERMISSIONS_FALSE='#'
15091 else
15092 RELAXED_PLUGINS_PERMISSIONS_TRUE='#'
15093 RELAXED_PLUGINS_PERMISSIONS_FALSE=
15097 plugins_root=disabled
15098 # Check whether --enable-plugins-root was given.
15099 if test "${enable_plugins_root+set}" = set; then :
15100 enableval=$enable_plugins_root; CPPFLAGS="$CPPFLAGS -DENABLE_PLUGINS_ROOT=1"
15101 plugins_root=enabled
15104 if test x$plugins_root = xenabled; then
15105 ENABLE_PLUGINS_ROOT_TRUE=
15106 ENABLE_PLUGINS_ROOT_FALSE='#'
15107 else
15108 ENABLE_PLUGINS_ROOT_TRUE='#'
15109 ENABLE_PLUGINS_ROOT_FALSE=
15113 # Check whether --enable-blocking-random was given.
15114 if test "${enable_blocking_random+set}" = set; then :
15115 enableval=$enable_blocking_random;
15116 $as_echo "#define USE_BLOCKING_RANDOM 1" >>confdefs.h
15121 # Check whether --enable-debug was given.
15122 if test "${enable_debug+set}" = set; then :
15123 enableval=$enable_debug;
15124 if test "x$LX_CFLAGS" = "xNONE"; then :
15126 nxflags=""
15127 for flag in `echo $CFLAGS`; do
15128 case "$flag" in
15129 -O*) ;;
15130 -g*) ;;
15131 *) as_fn_append nxflags " $flag" ;;
15132 esac
15133 done
15134 CFLAGS="$nxflags -O0 -g3"
15137 CPPFLAGS="$CPPFLAGS -DDEBUG=1"
15143 # Check whether --with-safecode was given.
15144 if test "${with_safecode+set}" = set; then :
15145 withval=$with_safecode; if test "x$withval" = "xyes"; then :
15148 : ${SAFECODE_HOME:=/opt/safecode}
15149 LDFLAGS="$LDFLAGS -L${SAFECODE_HOME}/lib"
15150 LIBS="$LIBS -lsc_dbg_rt -lpoolalloc_bitmap -lstdc++"
15151 CFLAGS="$CFLAGS -fmemsafety"
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
15171 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
15172 if ${libltdl_cv_shlibext+:} false; then :
15173 $as_echo_n "(cached) " >&6
15174 else
15176 module=yes
15177 eval libltdl_cv_shlibext=$shrext_cmds
15178 module=no
15179 eval libltdl_cv_shrext=$shrext_cmds
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
15183 $as_echo "$libltdl_cv_shlibext" >&6; }
15184 if test -n "$libltdl_cv_shlibext"; then
15186 cat >>confdefs.h <<_ACEOF
15187 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15188 _ACEOF
15191 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15193 cat >>confdefs.h <<_ACEOF
15194 #define LT_SHARED_EXT "$libltdl_cv_shrext"
15195 _ACEOF
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
15200 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
15201 if ${lt_cv_module_path_var+:} false; then :
15202 $as_echo_n "(cached) " >&6
15203 else
15204 lt_cv_module_path_var="$shlibpath_var"
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
15207 $as_echo "$lt_cv_module_path_var" >&6; }
15208 if test -n "$lt_cv_module_path_var"; then
15210 cat >>confdefs.h <<_ACEOF
15211 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15212 _ACEOF
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
15217 $as_echo_n "checking for the default library search path... " >&6; }
15218 if ${lt_cv_sys_dlsearch_path+:} false; then :
15219 $as_echo_n "(cached) " >&6
15220 else
15221 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
15224 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
15225 if test -n "$lt_cv_sys_dlsearch_path"; then
15226 sys_dlsearch_path=
15227 for dir in $lt_cv_sys_dlsearch_path; do
15228 if test -z "$sys_dlsearch_path"; then
15229 sys_dlsearch_path="$dir"
15230 else
15231 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15233 done
15235 cat >>confdefs.h <<_ACEOF
15236 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15237 _ACEOF
15242 LT_DLLOADERS=
15245 ac_ext=c
15246 ac_cpp='$CPP $CPPFLAGS'
15247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15252 LIBADD_DLOPEN=
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15254 $as_echo_n "checking for library containing dlopen... " >&6; }
15255 if ${ac_cv_search_dlopen+:} false; then :
15256 $as_echo_n "(cached) " >&6
15257 else
15258 ac_func_search_save_LIBS=$LIBS
15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15262 /* Override any GCC internal prototype to avoid an error.
15263 Use char because int might match the return type of a GCC
15264 builtin and then its argument prototype would still apply. */
15265 #ifdef __cplusplus
15266 extern "C"
15267 #endif
15268 char dlopen ();
15270 main ()
15272 return dlopen ();
15274 return 0;
15276 _ACEOF
15277 for ac_lib in '' dl; do
15278 if test -z "$ac_lib"; then
15279 ac_res="none required"
15280 else
15281 ac_res=-l$ac_lib
15282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15284 if ac_fn_c_try_link "$LINENO"; then :
15285 ac_cv_search_dlopen=$ac_res
15287 rm -f core conftest.err conftest.$ac_objext \
15288 conftest$ac_exeext
15289 if ${ac_cv_search_dlopen+:} false; then :
15290 break
15292 done
15293 if ${ac_cv_search_dlopen+:} false; then :
15295 else
15296 ac_cv_search_dlopen=no
15298 rm conftest.$ac_ext
15299 LIBS=$ac_func_search_save_LIBS
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15302 $as_echo "$ac_cv_search_dlopen" >&6; }
15303 ac_res=$ac_cv_search_dlopen
15304 if test "$ac_res" != no; then :
15305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15307 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15309 if test "$ac_cv_search_dlopen" != "none required" ; then
15310 LIBADD_DLOPEN="-ldl"
15312 libltdl_cv_lib_dl_dlopen="yes"
15313 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15314 else
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15317 #if HAVE_DLFCN_H
15318 # include <dlfcn.h>
15319 #endif
15322 main ()
15324 dlopen(0, 0);
15326 return 0;
15328 _ACEOF
15329 if ac_fn_c_try_link "$LINENO"; then :
15331 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15333 libltdl_cv_func_dlopen="yes"
15334 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15335 else
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15337 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15338 if ${ac_cv_lib_svld_dlopen+:} false; then :
15339 $as_echo_n "(cached) " >&6
15340 else
15341 ac_check_lib_save_LIBS=$LIBS
15342 LIBS="-lsvld $LIBS"
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15346 /* Override any GCC internal prototype to avoid an error.
15347 Use char because int might match the return type of a GCC
15348 builtin and then its argument prototype would still apply. */
15349 #ifdef __cplusplus
15350 extern "C"
15351 #endif
15352 char dlopen ();
15354 main ()
15356 return dlopen ();
15358 return 0;
15360 _ACEOF
15361 if ac_fn_c_try_link "$LINENO"; then :
15362 ac_cv_lib_svld_dlopen=yes
15363 else
15364 ac_cv_lib_svld_dlopen=no
15366 rm -f core conftest.err conftest.$ac_objext \
15367 conftest$ac_exeext conftest.$ac_ext
15368 LIBS=$ac_check_lib_save_LIBS
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15371 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15372 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15374 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
15376 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15377 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15381 rm -f core conftest.err conftest.$ac_objext \
15382 conftest$ac_exeext conftest.$ac_ext
15385 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15386 then
15387 lt_save_LIBS="$LIBS"
15388 LIBS="$LIBS $LIBADD_DLOPEN"
15389 for ac_func in dlerror
15390 do :
15391 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
15392 if test "x$ac_cv_func_dlerror" = xyes; then :
15393 cat >>confdefs.h <<_ACEOF
15394 #define HAVE_DLERROR 1
15395 _ACEOF
15398 done
15400 LIBS="$lt_save_LIBS"
15404 LIBADD_SHL_LOAD=
15405 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15406 if test "x$ac_cv_func_shl_load" = xyes; then :
15408 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
15410 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15411 else
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15413 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15414 if ${ac_cv_lib_dld_shl_load+:} false; then :
15415 $as_echo_n "(cached) " >&6
15416 else
15417 ac_check_lib_save_LIBS=$LIBS
15418 LIBS="-ldld $LIBS"
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h. */
15422 /* Override any GCC internal prototype to avoid an error.
15423 Use char because int might match the return type of a GCC
15424 builtin and then its argument prototype would still apply. */
15425 #ifdef __cplusplus
15426 extern "C"
15427 #endif
15428 char shl_load ();
15430 main ()
15432 return shl_load ();
15434 return 0;
15436 _ACEOF
15437 if ac_fn_c_try_link "$LINENO"; then :
15438 ac_cv_lib_dld_shl_load=yes
15439 else
15440 ac_cv_lib_dld_shl_load=no
15442 rm -f core conftest.err conftest.$ac_objext \
15443 conftest$ac_exeext conftest.$ac_ext
15444 LIBS=$ac_check_lib_save_LIBS
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15447 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15448 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15450 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
15452 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15453 LIBADD_SHL_LOAD="-ldld"
15460 case $host_os in
15461 darwin[1567].*)
15462 # We only want this for pre-Mac OS X 10.4.
15463 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
15464 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
15466 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
15468 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15472 beos*)
15473 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15475 cygwin* | mingw* | os2* | pw32*)
15476 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
15478 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
15479 ac_have_decl=1
15480 else
15481 ac_have_decl=0
15484 cat >>confdefs.h <<_ACEOF
15485 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
15486 _ACEOF
15488 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15490 esac
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15493 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15494 if ${ac_cv_lib_dld_dld_link+:} false; then :
15495 $as_echo_n "(cached) " >&6
15496 else
15497 ac_check_lib_save_LIBS=$LIBS
15498 LIBS="-ldld $LIBS"
15499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500 /* end confdefs.h. */
15502 /* Override any GCC internal prototype to avoid an error.
15503 Use char because int might match the return type of a GCC
15504 builtin and then its argument prototype would still apply. */
15505 #ifdef __cplusplus
15506 extern "C"
15507 #endif
15508 char dld_link ();
15510 main ()
15512 return dld_link ();
15514 return 0;
15516 _ACEOF
15517 if ac_fn_c_try_link "$LINENO"; then :
15518 ac_cv_lib_dld_dld_link=yes
15519 else
15520 ac_cv_lib_dld_dld_link=no
15522 rm -f core conftest.err conftest.$ac_objext \
15523 conftest$ac_exeext conftest.$ac_ext
15524 LIBS=$ac_check_lib_save_LIBS
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15527 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15528 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15530 $as_echo "#define HAVE_DLD 1" >>confdefs.h
15532 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
15538 LT_DLPREOPEN=
15539 if test -n "$LT_DLLOADERS"
15540 then
15541 for lt_loader in $LT_DLLOADERS; do
15542 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
15543 done
15545 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
15550 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
15553 ac_ext=c
15554 ac_cpp='$CPP $CPPFLAGS'
15555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15561 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15562 if ${lt_cv_sys_symbol_underscore+:} false; then :
15563 $as_echo_n "(cached) " >&6
15564 else
15565 lt_cv_sys_symbol_underscore=no
15566 cat > conftest.$ac_ext <<_LT_EOF
15567 void nm_test_func(){}
15568 int main(){nm_test_func;return 0;}
15569 _LT_EOF
15570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15571 (eval $ac_compile) 2>&5
15572 ac_status=$?
15573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15574 test $ac_status = 0; }; then
15575 # Now try to grab the symbols.
15576 ac_nlist=conftest.nm
15577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
15578 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
15579 ac_status=$?
15580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15581 test $ac_status = 0; } && test -s "$ac_nlist"; then
15582 # See whether the symbols have a leading underscore.
15583 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
15584 lt_cv_sys_symbol_underscore=yes
15585 else
15586 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
15588 else
15589 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15592 else
15593 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15595 else
15596 echo "configure: failed program was:" >&5
15597 cat conftest.c >&5
15599 rm -rf conftest*
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
15603 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
15604 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
15607 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
15608 if test x"$libltdl_cv_func_dlopen" = xyes ||
15609 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
15611 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
15612 if ${libltdl_cv_need_uscore+:} false; then :
15613 $as_echo_n "(cached) " >&6
15614 else
15615 libltdl_cv_need_uscore=unknown
15616 save_LIBS="$LIBS"
15617 LIBS="$LIBS $LIBADD_DLOPEN"
15618 if test "$cross_compiling" = yes; then :
15619 libltdl_cv_need_uscore=cross
15620 else
15621 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15622 lt_status=$lt_dlunknown
15623 cat > conftest.$ac_ext <<_LT_EOF
15624 #line $LINENO "configure"
15625 #include "confdefs.h"
15627 #if HAVE_DLFCN_H
15628 #include <dlfcn.h>
15629 #endif
15631 #include <stdio.h>
15633 #ifdef RTLD_GLOBAL
15634 # define LT_DLGLOBAL RTLD_GLOBAL
15635 #else
15636 # ifdef DL_GLOBAL
15637 # define LT_DLGLOBAL DL_GLOBAL
15638 # else
15639 # define LT_DLGLOBAL 0
15640 # endif
15641 #endif
15643 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15644 find out it does not work in some platform. */
15645 #ifndef LT_DLLAZY_OR_NOW
15646 # ifdef RTLD_LAZY
15647 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15648 # else
15649 # ifdef DL_LAZY
15650 # define LT_DLLAZY_OR_NOW DL_LAZY
15651 # else
15652 # ifdef RTLD_NOW
15653 # define LT_DLLAZY_OR_NOW RTLD_NOW
15654 # else
15655 # ifdef DL_NOW
15656 # define LT_DLLAZY_OR_NOW DL_NOW
15657 # else
15658 # define LT_DLLAZY_OR_NOW 0
15659 # endif
15660 # endif
15661 # endif
15662 # endif
15663 #endif
15665 /* When -fvisbility=hidden is used, assume the code has been annotated
15666 correspondingly for the symbols needed. */
15667 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15668 int fnord () __attribute__((visibility("default")));
15669 #endif
15671 int fnord () { return 42; }
15672 int main ()
15674 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15675 int status = $lt_dlunknown;
15677 if (self)
15679 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15680 else
15682 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15683 else puts (dlerror ());
15685 /* dlclose (self); */
15687 else
15688 puts (dlerror ());
15690 return status;
15692 _LT_EOF
15693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15694 (eval $ac_link) 2>&5
15695 ac_status=$?
15696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15697 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15698 (./conftest; exit; ) >&5 2>/dev/null
15699 lt_status=$?
15700 case x$lt_status in
15701 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
15702 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
15703 x$lt_dlunknown|x*) ;;
15704 esac
15705 else :
15706 # compilation failed
15710 rm -fr conftest*
15712 LIBS="$save_LIBS"
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
15716 $as_echo "$libltdl_cv_need_uscore" >&6; }
15720 if test x"$libltdl_cv_need_uscore" = xyes; then
15722 $as_echo "#define NEED_USCORE 1" >>confdefs.h
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
15727 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
15728 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
15729 $as_echo_n "(cached) " >&6
15730 else
15731 # PORTME does your system automatically load deplibs for dlopen?
15732 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
15733 # For now, we just catch OSes we know something about -- in the
15734 # future, we'll try test this programmatically.
15735 lt_cv_sys_dlopen_deplibs=unknown
15736 case $host_os in
15737 aix3*|aix4.1.*|aix4.2.*)
15738 # Unknown whether this is true for these versions of AIX, but
15739 # we want this `case' here to explicitly catch those versions.
15740 lt_cv_sys_dlopen_deplibs=unknown
15742 aix[4-9]*)
15743 lt_cv_sys_dlopen_deplibs=yes
15745 amigaos*)
15746 case $host_cpu in
15747 powerpc)
15748 lt_cv_sys_dlopen_deplibs=no
15750 esac
15752 darwin*)
15753 # Assuming the user has installed a libdl from somewhere, this is true
15754 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
15755 lt_cv_sys_dlopen_deplibs=yes
15757 freebsd* | dragonfly*)
15758 lt_cv_sys_dlopen_deplibs=yes
15760 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
15761 # GNU and its variants, using gnu ld.so (Glibc)
15762 lt_cv_sys_dlopen_deplibs=yes
15764 hpux10*|hpux11*)
15765 lt_cv_sys_dlopen_deplibs=yes
15767 interix*)
15768 lt_cv_sys_dlopen_deplibs=yes
15770 irix[12345]*|irix6.[01]*)
15771 # Catch all versions of IRIX before 6.2, and indicate that we don't
15772 # know how it worked for any of those versions.
15773 lt_cv_sys_dlopen_deplibs=unknown
15775 irix*)
15776 # The case above catches anything before 6.2, and it's known that
15777 # at 6.2 and later dlopen does load deplibs.
15778 lt_cv_sys_dlopen_deplibs=yes
15780 netbsd* | netbsdelf*-gnu)
15781 lt_cv_sys_dlopen_deplibs=yes
15783 openbsd*)
15784 lt_cv_sys_dlopen_deplibs=yes
15786 osf[1234]*)
15787 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
15788 # it did *not* use an RPATH in a shared library to find objects the
15789 # library depends on, so we explicitly say `no'.
15790 lt_cv_sys_dlopen_deplibs=no
15792 osf5.0|osf5.0a|osf5.1)
15793 # dlopen *does* load deplibs and with the right loader patch applied
15794 # it even uses RPATH in a shared library to search for shared objects
15795 # that the library depends on, but there's no easy way to know if that
15796 # patch is installed. Since this is the case, all we can really
15797 # say is unknown -- it depends on the patch being installed. If
15798 # it is, this changes to `yes'. Without it, it would be `no'.
15799 lt_cv_sys_dlopen_deplibs=unknown
15801 osf*)
15802 # the two cases above should catch all versions of osf <= 5.1. Read
15803 # the comments above for what we know about them.
15804 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
15805 # is used to find them so we can finally say `yes'.
15806 lt_cv_sys_dlopen_deplibs=yes
15808 qnx*)
15809 lt_cv_sys_dlopen_deplibs=yes
15811 solaris*)
15812 lt_cv_sys_dlopen_deplibs=yes
15814 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15815 libltdl_cv_sys_dlopen_deplibs=yes
15817 esac
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
15821 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
15822 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
15824 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
15830 for ac_header in argz.h
15831 do :
15832 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
15834 if test "x$ac_cv_header_argz_h" = xyes; then :
15835 cat >>confdefs.h <<_ACEOF
15836 #define HAVE_ARGZ_H 1
15837 _ACEOF
15841 done
15844 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
15845 # include <argz.h>
15846 #endif
15848 if test "x$ac_cv_type_error_t" = xyes; then :
15850 cat >>confdefs.h <<_ACEOF
15851 #define HAVE_ERROR_T 1
15852 _ACEOF
15855 else
15857 $as_echo "#define error_t int" >>confdefs.h
15860 $as_echo "#define __error_t_defined 1" >>confdefs.h
15865 ARGZ_H=
15866 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
15867 argz_next argz_stringify
15868 do :
15869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15870 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15871 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15872 cat >>confdefs.h <<_ACEOF
15873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15874 _ACEOF
15876 else
15877 ARGZ_H=argz.h;
15879 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
15882 done
15885 if test -z "$ARGZ_H"; then :
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
15887 $as_echo_n "checking if argz actually works... " >&6; }
15888 if ${lt_cv_sys_argz_works+:} false; then :
15889 $as_echo_n "(cached) " >&6
15890 else
15891 case $host_os in #(
15892 *cygwin*)
15893 lt_cv_sys_argz_works=no
15894 if test "$cross_compiling" != no; then
15895 lt_cv_sys_argz_works="guessing no"
15896 else
15897 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
15898 save_IFS=$IFS
15899 IFS=-.
15900 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
15901 IFS=$save_IFS
15902 lt_os_major=${2-0}
15903 lt_os_minor=${3-0}
15904 lt_os_micro=${4-0}
15905 if test "$lt_os_major" -gt 1 \
15906 || { test "$lt_os_major" -eq 1 \
15907 && { test "$lt_os_minor" -gt 5 \
15908 || { test "$lt_os_minor" -eq 5 \
15909 && test "$lt_os_micro" -gt 24; }; }; }; then
15910 lt_cv_sys_argz_works=yes
15913 ;; #(
15914 *) lt_cv_sys_argz_works=yes ;;
15915 esac
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
15918 $as_echo "$lt_cv_sys_argz_works" >&6; }
15919 if test "$lt_cv_sys_argz_works" = yes; then :
15921 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
15923 else
15924 ARGZ_H=argz.h
15927 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
15935 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
15936 if ${libltdl_cv_preloaded_symbols+:} false; then :
15937 $as_echo_n "(cached) " >&6
15938 else
15939 if test -n "$lt_cv_sys_global_symbol_pipe"; then
15940 libltdl_cv_preloaded_symbols=yes
15941 else
15942 libltdl_cv_preloaded_symbols=no
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
15947 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
15948 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
15950 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
15954 # Set options
15967 # Check whether --with-included_ltdl was given.
15968 if test "${with_included_ltdl+set}" = set; then :
15969 withval=$with_included_ltdl;
15973 if test "x$with_included_ltdl" != xyes; then
15974 # We are not being forced to use the included libltdl sources, so
15975 # decide whether there is a useful installed version we can use.
15976 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
15979 if test "x$ac_cv_header_ltdl_h" = xyes; then :
15980 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
15981 #include <ltdl.h>
15983 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
15985 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
15986 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
15987 $as_echo_n "(cached) " >&6
15988 else
15989 ac_check_lib_save_LIBS=$LIBS
15990 LIBS="-lltdl $LIBS"
15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
15994 /* Override any GCC internal prototype to avoid an error.
15995 Use char because int might match the return type of a GCC
15996 builtin and then its argument prototype would still apply. */
15997 #ifdef __cplusplus
15998 extern "C"
15999 #endif
16000 char lt_dladvise_preload ();
16002 main ()
16004 return lt_dladvise_preload ();
16006 return 0;
16008 _ACEOF
16009 if ac_fn_c_try_link "$LINENO"; then :
16010 ac_cv_lib_ltdl_lt_dladvise_preload=yes
16011 else
16012 ac_cv_lib_ltdl_lt_dladvise_preload=no
16014 rm -f core conftest.err conftest.$ac_objext \
16015 conftest$ac_exeext conftest.$ac_ext
16016 LIBS=$ac_check_lib_save_LIBS
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16019 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16020 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
16021 with_included_ltdl=no
16022 else
16023 with_included_ltdl=yes
16026 else
16027 with_included_ltdl=yes
16030 else
16031 with_included_ltdl=yes
16040 # Check whether --with-ltdl_include was given.
16041 if test "${with_ltdl_include+set}" = set; then :
16042 withval=$with_ltdl_include;
16046 if test -n "$with_ltdl_include"; then
16047 if test -f "$with_ltdl_include/ltdl.h"; then :
16048 else
16049 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
16051 else
16052 with_ltdl_include=no
16056 # Check whether --with-ltdl_lib was given.
16057 if test "${with_ltdl_lib+set}" = set; then :
16058 withval=$with_ltdl_lib;
16062 if test -n "$with_ltdl_lib"; then
16063 if test -f "$with_ltdl_lib/libltdl.la"; then :
16064 else
16065 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
16067 else
16068 with_ltdl_lib=no
16071 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16072 ,yes,no,no,)
16073 case $enable_ltdl_convenience in
16074 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
16075 "") enable_ltdl_convenience=yes
16076 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16077 esac
16078 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16079 LTDLDEPS=$LIBLTDL
16080 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16086 # For backwards non-gettext consistent compatibility...
16087 INCLTDL="$LTDLINCL"
16091 ,no,no,no,)
16092 # If the included ltdl is not to be used, then use the
16093 # preinstalled libltdl we found.
16095 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
16097 LIBLTDL=-lltdl
16098 LTDLDEPS=
16099 LTDLINCL=
16101 ,no*,no,*)
16102 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
16104 *) with_included_ltdl=no
16105 LIBLTDL="-L$with_ltdl_lib -lltdl"
16106 LTDLDEPS=
16107 LTDLINCL="-I$with_ltdl_include"
16109 esac
16110 INCLTDL="$LTDLINCL"
16112 # Report our decision...
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
16114 $as_echo_n "checking where to find libltdl headers... " >&6; }
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
16116 $as_echo "$LTDLINCL" >&6; }
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
16118 $as_echo_n "checking where to find libltdl library... " >&6; }
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
16120 $as_echo "$LIBLTDL" >&6; }
16124 # Check whether --enable-ltdl-install was given.
16125 if test "${enable_ltdl_install+set}" = set; then :
16126 enableval=$enable_ltdl_install;
16130 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16131 *yes*) ;;
16132 *) enable_ltdl_convenience=yes ;;
16133 esac
16135 if test x"${enable_ltdl_install-no}" != xno; then
16136 INSTALL_LTDL_TRUE=
16137 INSTALL_LTDL_FALSE='#'
16138 else
16139 INSTALL_LTDL_TRUE='#'
16140 INSTALL_LTDL_FALSE=
16143 if test x"${enable_ltdl_convenience-no}" != xno; then
16144 CONVENIENCE_LTDL_TRUE=
16145 CONVENIENCE_LTDL_FALSE='#'
16146 else
16147 CONVENIENCE_LTDL_TRUE='#'
16148 CONVENIENCE_LTDL_FALSE=
16153 subdirs="$subdirs libltdl"
16158 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16159 # the user used. This is so that ltdl.h can pick up the parent projects
16160 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16161 # definitions required by ltdl.c.
16162 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16166 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
16167 do :
16168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16169 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16172 cat >>confdefs.h <<_ACEOF
16173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16174 _ACEOF
16178 done
16181 for ac_func in closedir opendir readdir
16182 do :
16183 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16184 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16185 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16186 cat >>confdefs.h <<_ACEOF
16187 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16188 _ACEOF
16190 else
16193 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
16196 done
16198 for ac_func in strlcat strlcpy
16199 do :
16200 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16201 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16202 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16203 cat >>confdefs.h <<_ACEOF
16204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16205 _ACEOF
16207 else
16210 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16213 done
16217 cat >>confdefs.h <<_ACEOF
16218 #define LT_LIBEXT "$libext"
16219 _ACEOF
16222 name=
16223 eval "lt_libprefix=\"$libname_spec\""
16225 cat >>confdefs.h <<_ACEOF
16226 #define LT_LIBPREFIX "$lt_libprefix"
16227 _ACEOF
16230 name=ltdl
16231 eval "LTDLOPEN=\"$libname_spec\""
16240 # Only expand once:
16245 case $host_os in
16246 cygwin* | mingw* | pw32* | cegcc*) ;;
16247 *) ac_configure_args="$ac_configure_args --disable-thread-support" ;;
16248 esac
16250 ac_configure_args="$ac_configure_args --disable-dependency-tracking"
16251 ac_configure_args="$ac_configure_args --disable-libevent-install"
16252 ac_configure_args="$ac_configure_args --disable-openssl"
16253 ac_configure_args="$ac_configure_args --disable-shared"
16254 ac_configure_args="$ac_configure_args --enable-function-sections"
16255 export CC
16256 export CFLAGS
16257 export CPP
16258 export CPPFLAGS
16259 export LDFLAGS
16260 export LIBS
16265 ac_config_files="$ac_config_files Makefile dist-build/Makefile man/Makefile src/Makefile src/hostip/Makefile src/proxy/Makefile src/ext/Makefile src/include/Makefile src/include/dnscrypt/version.h src/plugins/Makefile src/plugins/example/Makefile src/plugins/example-ldns-forward-after-nxdomain/Makefile src/plugins/example-logging/Makefile src/plugins/example-ldns-aaaa-blocking/Makefile src/plugins/example-ldns-blocking/Makefile src/plugins/example-ldns-opendns-deviceid/Makefile src/plugins/example-ldns-opendns-set-client-ip/Makefile test/Makefile"
16268 cat >confcache <<\_ACEOF
16269 # This file is a shell script that caches the results of configure
16270 # tests run on this system so they can be shared between configure
16271 # scripts and configure runs, see configure's option --config-cache.
16272 # It is not useful on other systems. If it contains results you don't
16273 # want to keep, you may remove or edit it.
16275 # config.status only pays attention to the cache file if you give it
16276 # the --recheck option to rerun configure.
16278 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16279 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16280 # following values.
16282 _ACEOF
16284 # The following way of writing the cache mishandles newlines in values,
16285 # but we know of no workaround that is simple, portable, and efficient.
16286 # So, we kill variables containing newlines.
16287 # Ultrix sh set writes to stderr and can't be redirected directly,
16288 # and sets the high bit in the cache file unless we assign to the vars.
16290 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16291 eval ac_val=\$$ac_var
16292 case $ac_val in #(
16293 *${as_nl}*)
16294 case $ac_var in #(
16295 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16296 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16297 esac
16298 case $ac_var in #(
16299 _ | IFS | as_nl) ;; #(
16300 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16301 *) { eval $ac_var=; unset $ac_var;} ;;
16302 esac ;;
16303 esac
16304 done
16306 (set) 2>&1 |
16307 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16308 *${as_nl}ac_space=\ *)
16309 # `set' does not quote correctly, so add quotes: double-quote
16310 # substitution turns \\\\ into \\, and sed turns \\ into \.
16311 sed -n \
16312 "s/'/'\\\\''/g;
16313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16314 ;; #(
16316 # `set' quotes correctly as required by POSIX, so do not add quotes.
16317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16319 esac |
16320 sort
16322 sed '
16323 /^ac_cv_env_/b end
16324 t clear
16325 :clear
16326 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16327 t end
16328 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16329 :end' >>confcache
16330 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16331 if test -w "$cache_file"; then
16332 if test "x$cache_file" != "x/dev/null"; then
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16334 $as_echo "$as_me: updating cache $cache_file" >&6;}
16335 if test ! -f "$cache_file" || test -h "$cache_file"; then
16336 cat confcache >"$cache_file"
16337 else
16338 case $cache_file in #(
16339 */* | ?:*)
16340 mv -f confcache "$cache_file"$$ &&
16341 mv -f "$cache_file"$$ "$cache_file" ;; #(
16343 mv -f confcache "$cache_file" ;;
16344 esac
16347 else
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16349 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16352 rm -f confcache
16354 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16355 # Let make expand exec_prefix.
16356 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16358 DEFS=-DHAVE_CONFIG_H
16360 ac_libobjs=
16361 ac_ltlibobjs=
16363 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16364 # 1. Remove the extension, and $U if already installed.
16365 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16366 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16367 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16368 # will be set to the directory where LIBOBJS objects are built.
16369 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16370 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16371 done
16372 LIBOBJS=$ac_libobjs
16374 LTLIBOBJS=$ac_ltlibobjs
16377 if test -n "$EXEEXT"; then
16378 am__EXEEXT_TRUE=
16379 am__EXEEXT_FALSE='#'
16380 else
16381 am__EXEEXT_TRUE='#'
16382 am__EXEEXT_FALSE=
16385 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16386 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16389 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16390 as_fn_error $? "conditional \"AMDEP\" was never defined.
16391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16393 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16394 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16398 if test -z "${USE_BUILTIN_LIBSODIUM_TRUE}" && test -z "${USE_BUILTIN_LIBSODIUM_FALSE}"; then
16399 as_fn_error $? "conditional \"USE_BUILTIN_LIBSODIUM\" was never defined.
16400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16402 if test -z "${USE_LDNS_TRUE}" && test -z "${USE_LDNS_FALSE}"; then
16403 as_fn_error $? "conditional \"USE_LDNS\" was never defined.
16404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16406 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
16407 as_fn_error $? "conditional \"PLUGINS\" was never defined.
16408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16410 if test -z "${RELAXED_PLUGINS_PERMISSIONS_TRUE}" && test -z "${RELAXED_PLUGINS_PERMISSIONS_FALSE}"; then
16411 as_fn_error $? "conditional \"RELAXED_PLUGINS_PERMISSIONS\" was never defined.
16412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16414 if test -z "${ENABLE_PLUGINS_ROOT_TRUE}" && test -z "${ENABLE_PLUGINS_ROOT_FALSE}"; then
16415 as_fn_error $? "conditional \"ENABLE_PLUGINS_ROOT\" was never defined.
16416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16418 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
16419 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
16420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16422 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
16423 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
16424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16426 LT_CONFIG_H=config.h
16428 _ltdl_libobjs=
16429 _ltdl_ltlibobjs=
16430 if test -n "$_LT_LIBOBJS"; then
16431 # Remove the extension.
16432 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
16433 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
16434 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
16435 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
16436 done
16438 ltdl_LIBOBJS=$_ltdl_libobjs
16440 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
16444 : "${CONFIG_STATUS=./config.status}"
16445 ac_write_fail=0
16446 ac_clean_files_save=$ac_clean_files
16447 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16449 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16450 as_write_fail=0
16451 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16452 #! $SHELL
16453 # Generated by $as_me.
16454 # Run this file to recreate the current configuration.
16455 # Compiler output produced by configure, useful for debugging
16456 # configure, is in config.log if it exists.
16458 debug=false
16459 ac_cs_recheck=false
16460 ac_cs_silent=false
16462 SHELL=\${CONFIG_SHELL-$SHELL}
16463 export SHELL
16464 _ASEOF
16465 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16466 ## -------------------- ##
16467 ## M4sh Initialization. ##
16468 ## -------------------- ##
16470 # Be more Bourne compatible
16471 DUALCASE=1; export DUALCASE # for MKS sh
16472 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16473 emulate sh
16474 NULLCMD=:
16475 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16476 # is contrary to our usage. Disable this feature.
16477 alias -g '${1+"$@"}'='"$@"'
16478 setopt NO_GLOB_SUBST
16479 else
16480 case `(set -o) 2>/dev/null` in #(
16481 *posix*) :
16482 set -o posix ;; #(
16483 *) :
16485 esac
16489 as_nl='
16491 export as_nl
16492 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16493 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16495 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16496 # Prefer a ksh shell builtin over an external printf program on Solaris,
16497 # but without wasting forks for bash or zsh.
16498 if test -z "$BASH_VERSION$ZSH_VERSION" \
16499 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16500 as_echo='print -r --'
16501 as_echo_n='print -rn --'
16502 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16503 as_echo='printf %s\n'
16504 as_echo_n='printf %s'
16505 else
16506 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16507 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16508 as_echo_n='/usr/ucb/echo -n'
16509 else
16510 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16511 as_echo_n_body='eval
16512 arg=$1;
16513 case $arg in #(
16514 *"$as_nl"*)
16515 expr "X$arg" : "X\\(.*\\)$as_nl";
16516 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16517 esac;
16518 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16520 export as_echo_n_body
16521 as_echo_n='sh -c $as_echo_n_body as_echo'
16523 export as_echo_body
16524 as_echo='sh -c $as_echo_body as_echo'
16527 # The user is always right.
16528 if test "${PATH_SEPARATOR+set}" != set; then
16529 PATH_SEPARATOR=:
16530 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16531 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16532 PATH_SEPARATOR=';'
16537 # IFS
16538 # We need space, tab and new line, in precisely that order. Quoting is
16539 # there to prevent editors from complaining about space-tab.
16540 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16541 # splitting by setting IFS to empty value.)
16542 IFS=" "" $as_nl"
16544 # Find who we are. Look in the path if we contain no directory separator.
16545 as_myself=
16546 case $0 in #((
16547 *[\\/]* ) as_myself=$0 ;;
16548 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16549 for as_dir in $PATH
16551 IFS=$as_save_IFS
16552 test -z "$as_dir" && as_dir=.
16553 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16554 done
16555 IFS=$as_save_IFS
16558 esac
16559 # We did not find ourselves, most probably we were run as `sh COMMAND'
16560 # in which case we are not to be found in the path.
16561 if test "x$as_myself" = x; then
16562 as_myself=$0
16564 if test ! -f "$as_myself"; then
16565 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16566 exit 1
16569 # Unset variables that we do not need and which cause bugs (e.g. in
16570 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16571 # suppresses any "Segmentation fault" message there. '((' could
16572 # trigger a bug in pdksh 5.2.14.
16573 for as_var in BASH_ENV ENV MAIL MAILPATH
16574 do eval test x\${$as_var+set} = xset \
16575 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16576 done
16577 PS1='$ '
16578 PS2='> '
16579 PS4='+ '
16581 # NLS nuisances.
16582 LC_ALL=C
16583 export LC_ALL
16584 LANGUAGE=C
16585 export LANGUAGE
16587 # CDPATH.
16588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16591 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16592 # ----------------------------------------
16593 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16594 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16595 # script with STATUS, using 1 if that was 0.
16596 as_fn_error ()
16598 as_status=$1; test $as_status -eq 0 && as_status=1
16599 if test "$4"; then
16600 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16601 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16603 $as_echo "$as_me: error: $2" >&2
16604 as_fn_exit $as_status
16605 } # as_fn_error
16608 # as_fn_set_status STATUS
16609 # -----------------------
16610 # Set $? to STATUS, without forking.
16611 as_fn_set_status ()
16613 return $1
16614 } # as_fn_set_status
16616 # as_fn_exit STATUS
16617 # -----------------
16618 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16619 as_fn_exit ()
16621 set +e
16622 as_fn_set_status $1
16623 exit $1
16624 } # as_fn_exit
16626 # as_fn_unset VAR
16627 # ---------------
16628 # Portably unset VAR.
16629 as_fn_unset ()
16631 { eval $1=; unset $1;}
16633 as_unset=as_fn_unset
16634 # as_fn_append VAR VALUE
16635 # ----------------------
16636 # Append the text in VALUE to the end of the definition contained in VAR. Take
16637 # advantage of any shell optimizations that allow amortized linear growth over
16638 # repeated appends, instead of the typical quadratic growth present in naive
16639 # implementations.
16640 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16641 eval 'as_fn_append ()
16643 eval $1+=\$2
16645 else
16646 as_fn_append ()
16648 eval $1=\$$1\$2
16650 fi # as_fn_append
16652 # as_fn_arith ARG...
16653 # ------------------
16654 # Perform arithmetic evaluation on the ARGs, and store the result in the
16655 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16656 # must be portable across $(()) and expr.
16657 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16658 eval 'as_fn_arith ()
16660 as_val=$(( $* ))
16662 else
16663 as_fn_arith ()
16665 as_val=`expr "$@" || test $? -eq 1`
16667 fi # as_fn_arith
16670 if expr a : '\(a\)' >/dev/null 2>&1 &&
16671 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16672 as_expr=expr
16673 else
16674 as_expr=false
16677 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16678 as_basename=basename
16679 else
16680 as_basename=false
16683 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16684 as_dirname=dirname
16685 else
16686 as_dirname=false
16689 as_me=`$as_basename -- "$0" ||
16690 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16691 X"$0" : 'X\(//\)$' \| \
16692 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16693 $as_echo X/"$0" |
16694 sed '/^.*\/\([^/][^/]*\)\/*$/{
16695 s//\1/
16698 /^X\/\(\/\/\)$/{
16699 s//\1/
16702 /^X\/\(\/\).*/{
16703 s//\1/
16706 s/.*/./; q'`
16708 # Avoid depending upon Character Ranges.
16709 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16710 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16711 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16712 as_cr_digits='0123456789'
16713 as_cr_alnum=$as_cr_Letters$as_cr_digits
16715 ECHO_C= ECHO_N= ECHO_T=
16716 case `echo -n x` in #(((((
16717 -n*)
16718 case `echo 'xy\c'` in
16719 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16720 xy) ECHO_C='\c';;
16721 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16722 ECHO_T=' ';;
16723 esac;;
16725 ECHO_N='-n';;
16726 esac
16728 rm -f conf$$ conf$$.exe conf$$.file
16729 if test -d conf$$.dir; then
16730 rm -f conf$$.dir/conf$$.file
16731 else
16732 rm -f conf$$.dir
16733 mkdir conf$$.dir 2>/dev/null
16735 if (echo >conf$$.file) 2>/dev/null; then
16736 if ln -s conf$$.file conf$$ 2>/dev/null; then
16737 as_ln_s='ln -s'
16738 # ... but there are two gotchas:
16739 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16740 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16741 # In both cases, we have to default to `cp -pR'.
16742 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16743 as_ln_s='cp -pR'
16744 elif ln conf$$.file conf$$ 2>/dev/null; then
16745 as_ln_s=ln
16746 else
16747 as_ln_s='cp -pR'
16749 else
16750 as_ln_s='cp -pR'
16752 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16753 rmdir conf$$.dir 2>/dev/null
16756 # as_fn_mkdir_p
16757 # -------------
16758 # Create "$as_dir" as a directory, including parents if necessary.
16759 as_fn_mkdir_p ()
16762 case $as_dir in #(
16763 -*) as_dir=./$as_dir;;
16764 esac
16765 test -d "$as_dir" || eval $as_mkdir_p || {
16766 as_dirs=
16767 while :; do
16768 case $as_dir in #(
16769 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16770 *) as_qdir=$as_dir;;
16771 esac
16772 as_dirs="'$as_qdir' $as_dirs"
16773 as_dir=`$as_dirname -- "$as_dir" ||
16774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16775 X"$as_dir" : 'X\(//\)[^/]' \| \
16776 X"$as_dir" : 'X\(//\)$' \| \
16777 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16778 $as_echo X"$as_dir" |
16779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16780 s//\1/
16783 /^X\(\/\/\)[^/].*/{
16784 s//\1/
16787 /^X\(\/\/\)$/{
16788 s//\1/
16791 /^X\(\/\).*/{
16792 s//\1/
16795 s/.*/./; q'`
16796 test -d "$as_dir" && break
16797 done
16798 test -z "$as_dirs" || eval "mkdir $as_dirs"
16799 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16802 } # as_fn_mkdir_p
16803 if mkdir -p . 2>/dev/null; then
16804 as_mkdir_p='mkdir -p "$as_dir"'
16805 else
16806 test -d ./-p && rmdir ./-p
16807 as_mkdir_p=false
16811 # as_fn_executable_p FILE
16812 # -----------------------
16813 # Test if FILE is an executable regular file.
16814 as_fn_executable_p ()
16816 test -f "$1" && test -x "$1"
16817 } # as_fn_executable_p
16818 as_test_x='test -x'
16819 as_executable_p=as_fn_executable_p
16821 # Sed expression to map a string onto a valid CPP name.
16822 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16824 # Sed expression to map a string onto a valid variable name.
16825 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16828 exec 6>&1
16829 ## ----------------------------------- ##
16830 ## Main body of $CONFIG_STATUS script. ##
16831 ## ----------------------------------- ##
16832 _ASEOF
16833 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16836 # Save the log message, to keep $0 and so on meaningful, and to
16837 # report actual input values of CONFIG_FILES etc. instead of their
16838 # values after options handling.
16839 ac_log="
16840 This file was extended by dnscrypt-proxy $as_me 1.3.0, which was
16841 generated by GNU Autoconf 2.69. Invocation command line was
16843 CONFIG_FILES = $CONFIG_FILES
16844 CONFIG_HEADERS = $CONFIG_HEADERS
16845 CONFIG_LINKS = $CONFIG_LINKS
16846 CONFIG_COMMANDS = $CONFIG_COMMANDS
16847 $ $0 $@
16849 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16852 _ACEOF
16854 case $ac_config_files in *"
16855 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16856 esac
16858 case $ac_config_headers in *"
16859 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16860 esac
16863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16864 # Files that config.status was made for.
16865 config_files="$ac_config_files"
16866 config_headers="$ac_config_headers"
16867 config_commands="$ac_config_commands"
16869 _ACEOF
16871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16872 ac_cs_usage="\
16873 \`$as_me' instantiates files and other configuration actions
16874 from templates according to the current configuration. Unless the files
16875 and actions are specified as TAGs, all are instantiated by default.
16877 Usage: $0 [OPTION]... [TAG]...
16879 -h, --help print this help, then exit
16880 -V, --version print version number and configuration settings, then exit
16881 --config print configuration, then exit
16882 -q, --quiet, --silent
16883 do not print progress messages
16884 -d, --debug don't remove temporary files
16885 --recheck update $as_me by reconfiguring in the same conditions
16886 --file=FILE[:TEMPLATE]
16887 instantiate the configuration file FILE
16888 --header=FILE[:TEMPLATE]
16889 instantiate the configuration header FILE
16891 Configuration files:
16892 $config_files
16894 Configuration headers:
16895 $config_headers
16897 Configuration commands:
16898 $config_commands
16900 Report bugs to <http://dnscrypt.org>."
16902 _ACEOF
16903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16904 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16905 ac_cs_version="\\
16906 dnscrypt-proxy config.status 1.3.0
16907 configured by $0, generated by GNU Autoconf 2.69,
16908 with options \\"\$ac_cs_config\\"
16910 Copyright (C) 2012 Free Software Foundation, Inc.
16911 This config.status script is free software; the Free Software Foundation
16912 gives unlimited permission to copy, distribute and modify it."
16914 ac_pwd='$ac_pwd'
16915 srcdir='$srcdir'
16916 INSTALL='$INSTALL'
16917 MKDIR_P='$MKDIR_P'
16918 AWK='$AWK'
16919 test -n "\$AWK" || AWK=awk
16920 _ACEOF
16922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16923 # The default lists apply if the user does not specify any file.
16924 ac_need_defaults=:
16925 while test $# != 0
16927 case $1 in
16928 --*=?*)
16929 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16930 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16931 ac_shift=:
16933 --*=)
16934 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16935 ac_optarg=
16936 ac_shift=:
16939 ac_option=$1
16940 ac_optarg=$2
16941 ac_shift=shift
16943 esac
16945 case $ac_option in
16946 # Handling of the options.
16947 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16948 ac_cs_recheck=: ;;
16949 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16950 $as_echo "$ac_cs_version"; exit ;;
16951 --config | --confi | --conf | --con | --co | --c )
16952 $as_echo "$ac_cs_config"; exit ;;
16953 --debug | --debu | --deb | --de | --d | -d )
16954 debug=: ;;
16955 --file | --fil | --fi | --f )
16956 $ac_shift
16957 case $ac_optarg in
16958 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16959 '') as_fn_error $? "missing file argument" ;;
16960 esac
16961 as_fn_append CONFIG_FILES " '$ac_optarg'"
16962 ac_need_defaults=false;;
16963 --header | --heade | --head | --hea )
16964 $ac_shift
16965 case $ac_optarg in
16966 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16967 esac
16968 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16969 ac_need_defaults=false;;
16970 --he | --h)
16971 # Conflict between --help and --header
16972 as_fn_error $? "ambiguous option: \`$1'
16973 Try \`$0 --help' for more information.";;
16974 --help | --hel | -h )
16975 $as_echo "$ac_cs_usage"; exit ;;
16976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16977 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16978 ac_cs_silent=: ;;
16980 # This is an error.
16981 -*) as_fn_error $? "unrecognized option: \`$1'
16982 Try \`$0 --help' for more information." ;;
16984 *) as_fn_append ac_config_targets " $1"
16985 ac_need_defaults=false ;;
16987 esac
16988 shift
16989 done
16991 ac_configure_extra_args=
16993 if $ac_cs_silent; then
16994 exec 6>/dev/null
16995 ac_configure_extra_args="$ac_configure_extra_args --silent"
16998 _ACEOF
16999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17000 if \$ac_cs_recheck; then
17001 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17002 shift
17003 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17004 CONFIG_SHELL='$SHELL'
17005 export CONFIG_SHELL
17006 exec "\$@"
17009 _ACEOF
17010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17011 exec 5>>config.log
17013 echo
17014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17015 ## Running $as_me. ##
17016 _ASBOX
17017 $as_echo "$ac_log"
17018 } >&5
17020 _ACEOF
17021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17023 # INIT-COMMANDS
17025 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17028 # The HP-UX ksh and POSIX shell print the target directory to stdout
17029 # if CDPATH is set.
17030 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17032 sed_quote_subst='$sed_quote_subst'
17033 double_quote_subst='$double_quote_subst'
17034 delay_variable_subst='$delay_variable_subst'
17035 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17036 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17037 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17038 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17039 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17040 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17041 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17042 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17043 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17044 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17045 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17046 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17047 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17048 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17049 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17050 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17051 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17052 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17053 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17054 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17055 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17056 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17057 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17058 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17059 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17060 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17061 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17062 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17063 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17064 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17065 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17066 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17067 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17068 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17069 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17070 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17071 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17072 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17073 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17074 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17075 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17076 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17077 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17078 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17079 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17080 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17081 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17082 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17083 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17084 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17085 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17086 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17087 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17088 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17089 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17090 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17091 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"`'
17092 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17093 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17094 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17095 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17096 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17097 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17098 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17099 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17100 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17101 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17102 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17103 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17104 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17105 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17106 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17107 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17108 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17109 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17110 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17111 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17112 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17113 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17114 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17115 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17116 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17117 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17118 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17119 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17120 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17121 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17122 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17123 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17124 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17125 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17126 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17127 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17128 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17129 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17130 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17131 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17132 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17133 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17134 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17135 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17136 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17137 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17138 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17139 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17140 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17141 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17142 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17143 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17144 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17145 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17146 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17147 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17148 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17149 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17150 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17151 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17152 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17153 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17154 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17155 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17156 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17157 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17158 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17159 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17160 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17161 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17162 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17163 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17164 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17166 LTCC='$LTCC'
17167 LTCFLAGS='$LTCFLAGS'
17168 compiler='$compiler_DEFAULT'
17170 # A function that is used when there is no print builtin or printf.
17171 func_fallback_echo ()
17173 eval 'cat <<_LTECHO_EOF
17175 _LTECHO_EOF'
17178 # Quote evaled strings.
17179 for var in SHELL \
17180 ECHO \
17181 PATH_SEPARATOR \
17182 SED \
17183 GREP \
17184 EGREP \
17185 FGREP \
17186 LD \
17187 NM \
17188 LN_S \
17189 lt_SP2NL \
17190 lt_NL2SP \
17191 reload_flag \
17192 OBJDUMP \
17193 deplibs_check_method \
17194 file_magic_cmd \
17195 file_magic_glob \
17196 want_nocaseglob \
17197 DLLTOOL \
17198 sharedlib_from_linklib_cmd \
17199 AR \
17200 AR_FLAGS \
17201 archiver_list_spec \
17202 STRIP \
17203 RANLIB \
17204 CC \
17205 CFLAGS \
17206 compiler \
17207 lt_cv_sys_global_symbol_pipe \
17208 lt_cv_sys_global_symbol_to_cdecl \
17209 lt_cv_sys_global_symbol_to_c_name_address \
17210 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17211 nm_file_list_spec \
17212 lt_prog_compiler_no_builtin_flag \
17213 lt_prog_compiler_pic \
17214 lt_prog_compiler_wl \
17215 lt_prog_compiler_static \
17216 lt_cv_prog_compiler_c_o \
17217 need_locks \
17218 MANIFEST_TOOL \
17219 DSYMUTIL \
17220 NMEDIT \
17221 LIPO \
17222 OTOOL \
17223 OTOOL64 \
17224 shrext_cmds \
17225 export_dynamic_flag_spec \
17226 whole_archive_flag_spec \
17227 compiler_needs_object \
17228 with_gnu_ld \
17229 allow_undefined_flag \
17230 no_undefined_flag \
17231 hardcode_libdir_flag_spec \
17232 hardcode_libdir_separator \
17233 exclude_expsyms \
17234 include_expsyms \
17235 file_list_spec \
17236 variables_saved_for_relink \
17237 libname_spec \
17238 library_names_spec \
17239 soname_spec \
17240 install_override_mode \
17241 finish_eval \
17242 old_striplib \
17243 striplib; do
17244 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17245 *[\\\\\\\`\\"\\\$]*)
17246 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17249 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17251 esac
17252 done
17254 # Double-quote double-evaled strings.
17255 for var in reload_cmds \
17256 old_postinstall_cmds \
17257 old_postuninstall_cmds \
17258 old_archive_cmds \
17259 extract_expsyms_cmds \
17260 old_archive_from_new_cmds \
17261 old_archive_from_expsyms_cmds \
17262 archive_cmds \
17263 archive_expsym_cmds \
17264 module_cmds \
17265 module_expsym_cmds \
17266 export_symbols_cmds \
17267 prelink_cmds \
17268 postlink_cmds \
17269 postinstall_cmds \
17270 postuninstall_cmds \
17271 finish_cmds \
17272 sys_lib_search_path_spec \
17273 sys_lib_dlsearch_path_spec; do
17274 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17275 *[\\\\\\\`\\"\\\$]*)
17276 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17279 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17281 esac
17282 done
17284 ac_aux_dir='$ac_aux_dir'
17285 xsi_shell='$xsi_shell'
17286 lt_shell_append='$lt_shell_append'
17288 # See if we are running on zsh, and set the options which allow our
17289 # commands through without removal of \ escapes INIT.
17290 if test -n "\${ZSH_VERSION+set}" ; then
17291 setopt NO_GLOB_SUBST
17295 PACKAGE='$PACKAGE'
17296 VERSION='$VERSION'
17297 TIMESTAMP='$TIMESTAMP'
17298 RM='$RM'
17299 ofile='$ofile'
17304 _ACEOF
17306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17308 # Handling of arguments.
17309 for ac_config_target in $ac_config_targets
17311 case $ac_config_target in
17312 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17313 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17314 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17315 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17316 "dist-build/Makefile") CONFIG_FILES="$CONFIG_FILES dist-build/Makefile" ;;
17317 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17318 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17319 "src/hostip/Makefile") CONFIG_FILES="$CONFIG_FILES src/hostip/Makefile" ;;
17320 "src/proxy/Makefile") CONFIG_FILES="$CONFIG_FILES src/proxy/Makefile" ;;
17321 "src/ext/Makefile") CONFIG_FILES="$CONFIG_FILES src/ext/Makefile" ;;
17322 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
17323 "src/include/dnscrypt/version.h") CONFIG_FILES="$CONFIG_FILES src/include/dnscrypt/version.h" ;;
17324 "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
17325 "src/plugins/example/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example/Makefile" ;;
17326 "src/plugins/example-ldns-forward-after-nxdomain/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-ldns-forward-after-nxdomain/Makefile" ;;
17327 "src/plugins/example-logging/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-logging/Makefile" ;;
17328 "src/plugins/example-ldns-aaaa-blocking/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-ldns-aaaa-blocking/Makefile" ;;
17329 "src/plugins/example-ldns-blocking/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-ldns-blocking/Makefile" ;;
17330 "src/plugins/example-ldns-opendns-deviceid/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-ldns-opendns-deviceid/Makefile" ;;
17331 "src/plugins/example-ldns-opendns-set-client-ip/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-ldns-opendns-set-client-ip/Makefile" ;;
17332 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
17334 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17335 esac
17336 done
17339 # If the user did not use the arguments to specify the items to instantiate,
17340 # then the envvar interface is used. Set only those that are not.
17341 # We use the long form for the default assignment because of an extremely
17342 # bizarre bug on SunOS 4.1.3.
17343 if $ac_need_defaults; then
17344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17345 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17346 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17349 # Have a temporary directory for convenience. Make it in the build tree
17350 # simply because there is no reason against having it here, and in addition,
17351 # creating and moving files from /tmp can sometimes cause problems.
17352 # Hook for its removal unless debugging.
17353 # Note that there is a small window in which the directory will not be cleaned:
17354 # after its creation but before its name has been assigned to `$tmp'.
17355 $debug ||
17357 tmp= ac_tmp=
17358 trap 'exit_status=$?
17359 : "${ac_tmp:=$tmp}"
17360 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17362 trap 'as_fn_exit 1' 1 2 13 15
17364 # Create a (secure) tmp directory for tmp files.
17367 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17368 test -d "$tmp"
17369 } ||
17371 tmp=./conf$$-$RANDOM
17372 (umask 077 && mkdir "$tmp")
17373 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17374 ac_tmp=$tmp
17376 # Set up the scripts for CONFIG_FILES section.
17377 # No need to generate them if there are no CONFIG_FILES.
17378 # This happens for instance with `./config.status config.h'.
17379 if test -n "$CONFIG_FILES"; then
17382 ac_cr=`echo X | tr X '\015'`
17383 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17384 # But we know of no other shell where ac_cr would be empty at this
17385 # point, so we can use a bashism as a fallback.
17386 if test "x$ac_cr" = x; then
17387 eval ac_cr=\$\'\\r\'
17389 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17390 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17391 ac_cs_awk_cr='\\r'
17392 else
17393 ac_cs_awk_cr=$ac_cr
17396 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17397 _ACEOF
17401 echo "cat >conf$$subs.awk <<_ACEOF" &&
17402 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17403 echo "_ACEOF"
17404 } >conf$$subs.sh ||
17405 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17406 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17407 ac_delim='%!_!# '
17408 for ac_last_try in false false false false false :; do
17409 . ./conf$$subs.sh ||
17410 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17412 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17413 if test $ac_delim_n = $ac_delim_num; then
17414 break
17415 elif $ac_last_try; then
17416 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17417 else
17418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17420 done
17421 rm -f conf$$subs.sh
17423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17424 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17425 _ACEOF
17426 sed -n '
17428 s/^/S["/; s/!.*/"]=/
17431 s/^[^!]*!//
17432 :repl
17433 t repl
17434 s/'"$ac_delim"'$//
17435 t delim
17438 s/\(.\{148\}\)..*/\1/
17439 t more1
17440 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17443 b repl
17444 :more1
17445 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17448 s/.\{148\}//
17449 t nl
17450 :delim
17452 s/\(.\{148\}\)..*/\1/
17453 t more2
17454 s/["\\]/\\&/g; s/^/"/; s/$/"/
17457 :more2
17458 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17461 s/.\{148\}//
17462 t delim
17463 ' <conf$$subs.awk | sed '
17464 /^[^""]/{
17466 s/\n//
17468 ' >>$CONFIG_STATUS || ac_write_fail=1
17469 rm -f conf$$subs.awk
17470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17471 _ACAWK
17472 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17473 for (key in S) S_is_set[key] = 1
17474 FS = "\a"
17478 line = $ 0
17479 nfields = split(line, field, "@")
17480 substed = 0
17481 len = length(field[1])
17482 for (i = 2; i < nfields; i++) {
17483 key = field[i]
17484 keylen = length(key)
17485 if (S_is_set[key]) {
17486 value = S[key]
17487 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17488 len += length(value) + length(field[++i])
17489 substed = 1
17490 } else
17491 len += 1 + keylen
17494 print line
17497 _ACAWK
17498 _ACEOF
17499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17500 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17501 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17502 else
17504 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17505 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17506 _ACEOF
17508 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17509 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17510 # trailing colons and then remove the whole line if VPATH becomes empty
17511 # (actually we leave an empty line to preserve line numbers).
17512 if test "x$srcdir" = x.; then
17513 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17515 s///
17516 s/^/:/
17517 s/[ ]*$/:/
17518 s/:\$(srcdir):/:/g
17519 s/:\${srcdir}:/:/g
17520 s/:@srcdir@:/:/g
17521 s/^:*//
17522 s/:*$//
17524 s/\(=[ ]*\).*/\1/
17526 s/\n//
17527 s/^[^=]*=[ ]*$//
17531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17532 fi # test -n "$CONFIG_FILES"
17534 # Set up the scripts for CONFIG_HEADERS section.
17535 # No need to generate them if there are no CONFIG_HEADERS.
17536 # This happens for instance with `./config.status Makefile'.
17537 if test -n "$CONFIG_HEADERS"; then
17538 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17539 BEGIN {
17540 _ACEOF
17542 # Transform confdefs.h into an awk script `defines.awk', embedded as
17543 # here-document in config.status, that substitutes the proper values into
17544 # config.h.in to produce config.h.
17546 # Create a delimiter string that does not exist in confdefs.h, to ease
17547 # handling of long lines.
17548 ac_delim='%!_!# '
17549 for ac_last_try in false false :; do
17550 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17551 if test -z "$ac_tt"; then
17552 break
17553 elif $ac_last_try; then
17554 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17555 else
17556 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17558 done
17560 # For the awk script, D is an array of macro values keyed by name,
17561 # likewise P contains macro parameters if any. Preserve backslash
17562 # newline sequences.
17564 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17565 sed -n '
17566 s/.\{148\}/&'"$ac_delim"'/g
17567 t rset
17568 :rset
17569 s/^[ ]*#[ ]*define[ ][ ]*/ /
17570 t def
17572 :def
17573 s/\\$//
17574 t bsnl
17575 s/["\\]/\\&/g
17576 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17577 D["\1"]=" \3"/p
17578 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17580 :bsnl
17581 s/["\\]/\\&/g
17582 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17583 D["\1"]=" \3\\\\\\n"\\/p
17584 t cont
17585 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17586 t cont
17588 :cont
17590 s/.\{148\}/&'"$ac_delim"'/g
17591 t clear
17592 :clear
17593 s/\\$//
17594 t bsnlc
17595 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17597 :bsnlc
17598 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17599 b cont
17600 ' <confdefs.h | sed '
17601 s/'"$ac_delim"'/"\\\
17602 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17605 for (key in D) D_is_set[key] = 1
17606 FS = "\a"
17608 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17609 line = \$ 0
17610 split(line, arg, " ")
17611 if (arg[1] == "#") {
17612 defundef = arg[2]
17613 mac1 = arg[3]
17614 } else {
17615 defundef = substr(arg[1], 2)
17616 mac1 = arg[2]
17618 split(mac1, mac2, "(") #)
17619 macro = mac2[1]
17620 prefix = substr(line, 1, index(line, defundef) - 1)
17621 if (D_is_set[macro]) {
17622 # Preserve the white space surrounding the "#".
17623 print prefix "define", macro P[macro] D[macro]
17624 next
17625 } else {
17626 # Replace #undef with comments. This is necessary, for example,
17627 # in the case of _POSIX_SOURCE, which is predefined and required
17628 # on some systems where configure will not decide to define it.
17629 if (defundef == "undef") {
17630 print "/*", prefix defundef, macro, "*/"
17631 next
17635 { print }
17636 _ACAWK
17637 _ACEOF
17638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17639 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17640 fi # test -n "$CONFIG_HEADERS"
17643 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17644 shift
17645 for ac_tag
17647 case $ac_tag in
17648 :[FHLC]) ac_mode=$ac_tag; continue;;
17649 esac
17650 case $ac_mode$ac_tag in
17651 :[FHL]*:*);;
17652 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17653 :[FH]-) ac_tag=-:-;;
17654 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17655 esac
17656 ac_save_IFS=$IFS
17657 IFS=:
17658 set x $ac_tag
17659 IFS=$ac_save_IFS
17660 shift
17661 ac_file=$1
17662 shift
17664 case $ac_mode in
17665 :L) ac_source=$1;;
17666 :[FH])
17667 ac_file_inputs=
17668 for ac_f
17670 case $ac_f in
17671 -) ac_f="$ac_tmp/stdin";;
17672 *) # Look for the file first in the build tree, then in the source tree
17673 # (if the path is not absolute). The absolute path cannot be DOS-style,
17674 # because $ac_f cannot contain `:'.
17675 test -f "$ac_f" ||
17676 case $ac_f in
17677 [\\/$]*) false;;
17678 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17679 esac ||
17680 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17681 esac
17682 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17683 as_fn_append ac_file_inputs " '$ac_f'"
17684 done
17686 # Let's still pretend it is `configure' which instantiates (i.e., don't
17687 # use $as_me), people would be surprised to read:
17688 # /* config.h. Generated by config.status. */
17689 configure_input='Generated from '`
17690 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17691 `' by configure.'
17692 if test x"$ac_file" != x-; then
17693 configure_input="$ac_file. $configure_input"
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17695 $as_echo "$as_me: creating $ac_file" >&6;}
17697 # Neutralize special characters interpreted by sed in replacement strings.
17698 case $configure_input in #(
17699 *\&* | *\|* | *\\* )
17700 ac_sed_conf_input=`$as_echo "$configure_input" |
17701 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17702 *) ac_sed_conf_input=$configure_input;;
17703 esac
17705 case $ac_tag in
17706 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17707 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17708 esac
17710 esac
17712 ac_dir=`$as_dirname -- "$ac_file" ||
17713 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17714 X"$ac_file" : 'X\(//\)[^/]' \| \
17715 X"$ac_file" : 'X\(//\)$' \| \
17716 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17717 $as_echo X"$ac_file" |
17718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17719 s//\1/
17722 /^X\(\/\/\)[^/].*/{
17723 s//\1/
17726 /^X\(\/\/\)$/{
17727 s//\1/
17730 /^X\(\/\).*/{
17731 s//\1/
17734 s/.*/./; q'`
17735 as_dir="$ac_dir"; as_fn_mkdir_p
17736 ac_builddir=.
17738 case "$ac_dir" in
17739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17742 # A ".." for each directory in $ac_dir_suffix.
17743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17744 case $ac_top_builddir_sub in
17745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17747 esac ;;
17748 esac
17749 ac_abs_top_builddir=$ac_pwd
17750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17751 # for backward compatibility:
17752 ac_top_builddir=$ac_top_build_prefix
17754 case $srcdir in
17755 .) # We are building in place.
17756 ac_srcdir=.
17757 ac_top_srcdir=$ac_top_builddir_sub
17758 ac_abs_top_srcdir=$ac_pwd ;;
17759 [\\/]* | ?:[\\/]* ) # Absolute name.
17760 ac_srcdir=$srcdir$ac_dir_suffix;
17761 ac_top_srcdir=$srcdir
17762 ac_abs_top_srcdir=$srcdir ;;
17763 *) # Relative name.
17764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17765 ac_top_srcdir=$ac_top_build_prefix$srcdir
17766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17767 esac
17768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17771 case $ac_mode in
17774 # CONFIG_FILE
17777 case $INSTALL in
17778 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17779 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17780 esac
17781 ac_MKDIR_P=$MKDIR_P
17782 case $MKDIR_P in
17783 [\\/$]* | ?:[\\/]* ) ;;
17784 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17785 esac
17786 _ACEOF
17788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17789 # If the template does not know about datarootdir, expand it.
17790 # FIXME: This hack should be removed a few years after 2.60.
17791 ac_datarootdir_hack=; ac_datarootdir_seen=
17792 ac_sed_dataroot='
17793 /datarootdir/ {
17797 /@datadir@/p
17798 /@docdir@/p
17799 /@infodir@/p
17800 /@localedir@/p
17801 /@mandir@/p'
17802 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17803 *datarootdir*) ac_datarootdir_seen=yes;;
17804 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17806 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17807 _ACEOF
17808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17809 ac_datarootdir_hack='
17810 s&@datadir@&$datadir&g
17811 s&@docdir@&$docdir&g
17812 s&@infodir@&$infodir&g
17813 s&@localedir@&$localedir&g
17814 s&@mandir@&$mandir&g
17815 s&\\\${datarootdir}&$datarootdir&g' ;;
17816 esac
17817 _ACEOF
17819 # Neutralize VPATH when `$srcdir' = `.'.
17820 # Shell code in configure.ac might set extrasub.
17821 # FIXME: do we really want to maintain this feature?
17822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17823 ac_sed_extra="$ac_vpsub
17824 $extrasub
17825 _ACEOF
17826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17829 s|@configure_input@|$ac_sed_conf_input|;t t
17830 s&@top_builddir@&$ac_top_builddir_sub&;t t
17831 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17832 s&@srcdir@&$ac_srcdir&;t t
17833 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17834 s&@top_srcdir@&$ac_top_srcdir&;t t
17835 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17836 s&@builddir@&$ac_builddir&;t t
17837 s&@abs_builddir@&$ac_abs_builddir&;t t
17838 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17839 s&@INSTALL@&$ac_INSTALL&;t t
17840 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17841 $ac_datarootdir_hack
17843 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17844 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17846 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17847 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17848 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17849 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17851 which seems to be undefined. Please make sure it is defined" >&5
17852 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17853 which seems to be undefined. Please make sure it is defined" >&2;}
17855 rm -f "$ac_tmp/stdin"
17856 case $ac_file in
17857 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17858 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17859 esac \
17860 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17864 # CONFIG_HEADER
17866 if test x"$ac_file" != x-; then
17868 $as_echo "/* $configure_input */" \
17869 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17870 } >"$ac_tmp/config.h" \
17871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17872 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17874 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17875 else
17876 rm -f "$ac_file"
17877 mv "$ac_tmp/config.h" "$ac_file" \
17878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17880 else
17881 $as_echo "/* $configure_input */" \
17882 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17883 || as_fn_error $? "could not create -" "$LINENO" 5
17885 # Compute "$ac_file"'s index in $config_headers.
17886 _am_arg="$ac_file"
17887 _am_stamp_count=1
17888 for _am_header in $config_headers :; do
17889 case $_am_header in
17890 $_am_arg | $_am_arg:* )
17891 break ;;
17893 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17894 esac
17895 done
17896 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17897 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17898 X"$_am_arg" : 'X\(//\)[^/]' \| \
17899 X"$_am_arg" : 'X\(//\)$' \| \
17900 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17901 $as_echo X"$_am_arg" |
17902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17903 s//\1/
17906 /^X\(\/\/\)[^/].*/{
17907 s//\1/
17910 /^X\(\/\/\)$/{
17911 s//\1/
17914 /^X\(\/\).*/{
17915 s//\1/
17918 s/.*/./; q'`/stamp-h$_am_stamp_count
17921 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17922 $as_echo "$as_me: executing $ac_file commands" >&6;}
17924 esac
17927 case $ac_file$ac_mode in
17928 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17929 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17930 # are listed without --file. Let's play safe and only enable the eval
17931 # if we detect the quoting.
17932 case $CONFIG_FILES in
17933 *\'*) eval set x "$CONFIG_FILES" ;;
17934 *) set x $CONFIG_FILES ;;
17935 esac
17936 shift
17937 for mf
17939 # Strip MF so we end up with the name of the file.
17940 mf=`echo "$mf" | sed -e 's/:.*$//'`
17941 # Check whether this is an Automake generated Makefile or not.
17942 # We used to match only the files named `Makefile.in', but
17943 # some people rename them; so instead we look at the file content.
17944 # Grep'ing the first line is not enough: some people post-process
17945 # each Makefile.in and add a new line on top of each file to say so.
17946 # Grep'ing the whole file is not good either: AIX grep has a line
17947 # limit of 2048, but all sed's we know have understand at least 4000.
17948 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17949 dirpart=`$as_dirname -- "$mf" ||
17950 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17951 X"$mf" : 'X\(//\)[^/]' \| \
17952 X"$mf" : 'X\(//\)$' \| \
17953 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17954 $as_echo X"$mf" |
17955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17956 s//\1/
17959 /^X\(\/\/\)[^/].*/{
17960 s//\1/
17963 /^X\(\/\/\)$/{
17964 s//\1/
17967 /^X\(\/\).*/{
17968 s//\1/
17971 s/.*/./; q'`
17972 else
17973 continue
17975 # Extract the definition of DEPDIR, am__include, and am__quote
17976 # from the Makefile without running `make'.
17977 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17978 test -z "$DEPDIR" && continue
17979 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17980 test -z "am__include" && continue
17981 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17982 # When using ansi2knr, U may be empty or an underscore; expand it
17983 U=`sed -n 's/^U = //p' < "$mf"`
17984 # Find all dependency output files, they are included files with
17985 # $(DEPDIR) in their names. We invoke sed twice because it is the
17986 # simplest approach to changing $(DEPDIR) to its actual value in the
17987 # expansion.
17988 for file in `sed -n "
17989 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17990 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17991 # Make sure the directory exists.
17992 test -f "$dirpart/$file" && continue
17993 fdir=`$as_dirname -- "$file" ||
17994 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17995 X"$file" : 'X\(//\)[^/]' \| \
17996 X"$file" : 'X\(//\)$' \| \
17997 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17998 $as_echo X"$file" |
17999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18000 s//\1/
18003 /^X\(\/\/\)[^/].*/{
18004 s//\1/
18007 /^X\(\/\/\)$/{
18008 s//\1/
18011 /^X\(\/\).*/{
18012 s//\1/
18015 s/.*/./; q'`
18016 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18017 # echo "creating $dirpart/$file"
18018 echo '# dummy' > "$dirpart/$file"
18019 done
18020 done
18023 "libtool":C)
18025 # See if we are running on zsh, and set the options which allow our
18026 # commands through without removal of \ escapes.
18027 if test -n "${ZSH_VERSION+set}" ; then
18028 setopt NO_GLOB_SUBST
18031 cfgfile="${ofile}T"
18032 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18033 $RM "$cfgfile"
18035 cat <<_LT_EOF >> "$cfgfile"
18036 #! $SHELL
18038 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18039 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18040 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18041 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18043 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18044 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18045 # Foundation, Inc.
18046 # Written by Gordon Matzigkeit, 1996
18048 # This file is part of GNU Libtool.
18050 # GNU Libtool is free software; you can redistribute it and/or
18051 # modify it under the terms of the GNU General Public License as
18052 # published by the Free Software Foundation; either version 2 of
18053 # the License, or (at your option) any later version.
18055 # As a special exception to the GNU General Public License,
18056 # if you distribute this file as part of a program or library that
18057 # is built using GNU Libtool, you may include this file under the
18058 # same distribution terms that you use for the rest of that program.
18060 # GNU Libtool is distributed in the hope that it will be useful,
18061 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18062 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18063 # GNU General Public License for more details.
18065 # You should have received a copy of the GNU General Public License
18066 # along with GNU Libtool; see the file COPYING. If not, a copy
18067 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18068 # obtained by writing to the Free Software Foundation, Inc.,
18069 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18072 # The names of the tagged configurations supported by this script.
18073 available_tags=""
18075 # ### BEGIN LIBTOOL CONFIG
18077 # Which release of libtool.m4 was used?
18078 macro_version=$macro_version
18079 macro_revision=$macro_revision
18081 # Whether or not to build shared libraries.
18082 build_libtool_libs=$enable_shared
18084 # Whether or not to build static libraries.
18085 build_old_libs=$enable_static
18087 # What type of objects to build.
18088 pic_mode=$pic_mode
18090 # Whether or not to optimize for fast installation.
18091 fast_install=$enable_fast_install
18093 # Shell to use when invoking shell scripts.
18094 SHELL=$lt_SHELL
18096 # An echo program that protects backslashes.
18097 ECHO=$lt_ECHO
18099 # The PATH separator for the build system.
18100 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18102 # The host system.
18103 host_alias=$host_alias
18104 host=$host
18105 host_os=$host_os
18107 # The build system.
18108 build_alias=$build_alias
18109 build=$build
18110 build_os=$build_os
18112 # A sed program that does not truncate output.
18113 SED=$lt_SED
18115 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18116 Xsed="\$SED -e 1s/^X//"
18118 # A grep program that handles long lines.
18119 GREP=$lt_GREP
18121 # An ERE matcher.
18122 EGREP=$lt_EGREP
18124 # A literal string matcher.
18125 FGREP=$lt_FGREP
18127 # A BSD- or MS-compatible name lister.
18128 NM=$lt_NM
18130 # Whether we need soft or hard links.
18131 LN_S=$lt_LN_S
18133 # What is the maximum length of a command?
18134 max_cmd_len=$max_cmd_len
18136 # Object file suffix (normally "o").
18137 objext=$ac_objext
18139 # Executable file suffix (normally "").
18140 exeext=$exeext
18142 # whether the shell understands "unset".
18143 lt_unset=$lt_unset
18145 # turn spaces into newlines.
18146 SP2NL=$lt_lt_SP2NL
18148 # turn newlines into spaces.
18149 NL2SP=$lt_lt_NL2SP
18151 # convert \$build file names to \$host format.
18152 to_host_file_cmd=$lt_cv_to_host_file_cmd
18154 # convert \$build files to toolchain format.
18155 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18157 # An object symbol dumper.
18158 OBJDUMP=$lt_OBJDUMP
18160 # Method to check whether dependent libraries are shared objects.
18161 deplibs_check_method=$lt_deplibs_check_method
18163 # Command to use when deplibs_check_method = "file_magic".
18164 file_magic_cmd=$lt_file_magic_cmd
18166 # How to find potential files when deplibs_check_method = "file_magic".
18167 file_magic_glob=$lt_file_magic_glob
18169 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18170 want_nocaseglob=$lt_want_nocaseglob
18172 # DLL creation program.
18173 DLLTOOL=$lt_DLLTOOL
18175 # Command to associate shared and link libraries.
18176 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18178 # The archiver.
18179 AR=$lt_AR
18181 # Flags to create an archive.
18182 AR_FLAGS=$lt_AR_FLAGS
18184 # How to feed a file listing to the archiver.
18185 archiver_list_spec=$lt_archiver_list_spec
18187 # A symbol stripping program.
18188 STRIP=$lt_STRIP
18190 # Commands used to install an old-style archive.
18191 RANLIB=$lt_RANLIB
18192 old_postinstall_cmds=$lt_old_postinstall_cmds
18193 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18195 # Whether to use a lock for old archive extraction.
18196 lock_old_archive_extraction=$lock_old_archive_extraction
18198 # A C compiler.
18199 LTCC=$lt_CC
18201 # LTCC compiler flags.
18202 LTCFLAGS=$lt_CFLAGS
18204 # Take the output of nm and produce a listing of raw symbols and C names.
18205 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18207 # Transform the output of nm in a proper C declaration.
18208 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18210 # Transform the output of nm in a C name address pair.
18211 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18213 # Transform the output of nm in a C name address pair when lib prefix is needed.
18214 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18216 # Specify filename containing input files for \$NM.
18217 nm_file_list_spec=$lt_nm_file_list_spec
18219 # The root where to search for dependent libraries,and in which our libraries should be installed.
18220 lt_sysroot=$lt_sysroot
18222 # The name of the directory that contains temporary libtool files.
18223 objdir=$objdir
18225 # Used to examine libraries when file_magic_cmd begins with "file".
18226 MAGIC_CMD=$MAGIC_CMD
18228 # Must we lock files when doing compilation?
18229 need_locks=$lt_need_locks
18231 # Manifest tool.
18232 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18234 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18235 DSYMUTIL=$lt_DSYMUTIL
18237 # Tool to change global to local symbols on Mac OS X.
18238 NMEDIT=$lt_NMEDIT
18240 # Tool to manipulate fat objects and archives on Mac OS X.
18241 LIPO=$lt_LIPO
18243 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18244 OTOOL=$lt_OTOOL
18246 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18247 OTOOL64=$lt_OTOOL64
18249 # Old archive suffix (normally "a").
18250 libext=$libext
18252 # Shared library suffix (normally ".so").
18253 shrext_cmds=$lt_shrext_cmds
18255 # The commands to extract the exported symbol list from a shared archive.
18256 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18258 # Variables whose values should be saved in libtool wrapper scripts and
18259 # restored at link time.
18260 variables_saved_for_relink=$lt_variables_saved_for_relink
18262 # Do we need the "lib" prefix for modules?
18263 need_lib_prefix=$need_lib_prefix
18265 # Do we need a version for libraries?
18266 need_version=$need_version
18268 # Library versioning type.
18269 version_type=$version_type
18271 # Shared library runtime path variable.
18272 runpath_var=$runpath_var
18274 # Shared library path variable.
18275 shlibpath_var=$shlibpath_var
18277 # Is shlibpath searched before the hard-coded library search path?
18278 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18280 # Format of library name prefix.
18281 libname_spec=$lt_libname_spec
18283 # List of archive names. First name is the real one, the rest are links.
18284 # The last name is the one that the linker finds with -lNAME
18285 library_names_spec=$lt_library_names_spec
18287 # The coded name of the library, if different from the real name.
18288 soname_spec=$lt_soname_spec
18290 # Permission mode override for installation of shared libraries.
18291 install_override_mode=$lt_install_override_mode
18293 # Command to use after installation of a shared archive.
18294 postinstall_cmds=$lt_postinstall_cmds
18296 # Command to use after uninstallation of a shared archive.
18297 postuninstall_cmds=$lt_postuninstall_cmds
18299 # Commands used to finish a libtool library installation in a directory.
18300 finish_cmds=$lt_finish_cmds
18302 # As "finish_cmds", except a single script fragment to be evaled but
18303 # not shown.
18304 finish_eval=$lt_finish_eval
18306 # Whether we should hardcode library paths into libraries.
18307 hardcode_into_libs=$hardcode_into_libs
18309 # Compile-time system search path for libraries.
18310 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18312 # Run-time system search path for libraries.
18313 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18315 # Whether dlopen is supported.
18316 dlopen_support=$enable_dlopen
18318 # Whether dlopen of programs is supported.
18319 dlopen_self=$enable_dlopen_self
18321 # Whether dlopen of statically linked programs is supported.
18322 dlopen_self_static=$enable_dlopen_self_static
18324 # Commands to strip libraries.
18325 old_striplib=$lt_old_striplib
18326 striplib=$lt_striplib
18329 # The linker used to build libraries.
18330 LD=$lt_LD
18332 # How to create reloadable object files.
18333 reload_flag=$lt_reload_flag
18334 reload_cmds=$lt_reload_cmds
18336 # Commands used to build an old-style archive.
18337 old_archive_cmds=$lt_old_archive_cmds
18339 # A language specific compiler.
18340 CC=$lt_compiler
18342 # Is the compiler the GNU compiler?
18343 with_gcc=$GCC
18345 # Compiler flag to turn off builtin functions.
18346 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18348 # Additional compiler flags for building library objects.
18349 pic_flag=$lt_lt_prog_compiler_pic
18351 # How to pass a linker flag through the compiler.
18352 wl=$lt_lt_prog_compiler_wl
18354 # Compiler flag to prevent dynamic linking.
18355 link_static_flag=$lt_lt_prog_compiler_static
18357 # Does compiler simultaneously support -c and -o options?
18358 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18360 # Whether or not to add -lc for building shared libraries.
18361 build_libtool_need_lc=$archive_cmds_need_lc
18363 # Whether or not to disallow shared libs when runtime libs are static.
18364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18366 # Compiler flag to allow reflexive dlopens.
18367 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18369 # Compiler flag to generate shared objects directly from archives.
18370 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18372 # Whether the compiler copes with passing no objects directly.
18373 compiler_needs_object=$lt_compiler_needs_object
18375 # Create an old-style archive from a shared archive.
18376 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18378 # Create a temporary old-style archive to link instead of a shared archive.
18379 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18381 # Commands used to build a shared archive.
18382 archive_cmds=$lt_archive_cmds
18383 archive_expsym_cmds=$lt_archive_expsym_cmds
18385 # Commands used to build a loadable module if different from building
18386 # a shared archive.
18387 module_cmds=$lt_module_cmds
18388 module_expsym_cmds=$lt_module_expsym_cmds
18390 # Whether we are building with GNU ld or not.
18391 with_gnu_ld=$lt_with_gnu_ld
18393 # Flag that allows shared libraries with undefined symbols to be built.
18394 allow_undefined_flag=$lt_allow_undefined_flag
18396 # Flag that enforces no undefined symbols.
18397 no_undefined_flag=$lt_no_undefined_flag
18399 # Flag to hardcode \$libdir into a binary during linking.
18400 # This must work even if \$libdir does not exist
18401 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18403 # Whether we need a single "-rpath" flag with a separated argument.
18404 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18406 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18407 # DIR into the resulting binary.
18408 hardcode_direct=$hardcode_direct
18410 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18411 # DIR into the resulting binary and the resulting library dependency is
18412 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18413 # library is relocated.
18414 hardcode_direct_absolute=$hardcode_direct_absolute
18416 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18417 # into the resulting binary.
18418 hardcode_minus_L=$hardcode_minus_L
18420 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18421 # into the resulting binary.
18422 hardcode_shlibpath_var=$hardcode_shlibpath_var
18424 # Set to "yes" if building a shared library automatically hardcodes DIR
18425 # into the library and all subsequent libraries and executables linked
18426 # against it.
18427 hardcode_automatic=$hardcode_automatic
18429 # Set to yes if linker adds runtime paths of dependent libraries
18430 # to runtime path list.
18431 inherit_rpath=$inherit_rpath
18433 # Whether libtool must link a program against all its dependency libraries.
18434 link_all_deplibs=$link_all_deplibs
18436 # Set to "yes" if exported symbols are required.
18437 always_export_symbols=$always_export_symbols
18439 # The commands to list exported symbols.
18440 export_symbols_cmds=$lt_export_symbols_cmds
18442 # Symbols that should not be listed in the preloaded symbols.
18443 exclude_expsyms=$lt_exclude_expsyms
18445 # Symbols that must always be exported.
18446 include_expsyms=$lt_include_expsyms
18448 # Commands necessary for linking programs (against libraries) with templates.
18449 prelink_cmds=$lt_prelink_cmds
18451 # Commands necessary for finishing linking programs.
18452 postlink_cmds=$lt_postlink_cmds
18454 # Specify filename containing input files.
18455 file_list_spec=$lt_file_list_spec
18457 # How to hardcode a shared library path into an executable.
18458 hardcode_action=$hardcode_action
18460 # ### END LIBTOOL CONFIG
18462 _LT_EOF
18464 case $host_os in
18465 aix3*)
18466 cat <<\_LT_EOF >> "$cfgfile"
18467 # AIX sometimes has problems with the GCC collect2 program. For some
18468 # reason, if we set the COLLECT_NAMES environment variable, the problems
18469 # vanish in a puff of smoke.
18470 if test "X${COLLECT_NAMES+set}" != Xset; then
18471 COLLECT_NAMES=
18472 export COLLECT_NAMES
18474 _LT_EOF
18476 esac
18479 ltmain="$ac_aux_dir/ltmain.sh"
18482 # We use sed instead of cat because bash on DJGPP gets confused if
18483 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18484 # text mode, it properly converts lines to CR/LF. This bash problem
18485 # is reportedly fixed, but why not run on old versions too?
18486 sed '$q' "$ltmain" >> "$cfgfile" \
18487 || (rm -f "$cfgfile"; exit 1)
18489 if test x"$xsi_shell" = xyes; then
18490 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18491 func_dirname ()\
18493 \ case ${1} in\
18494 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18495 \ * ) func_dirname_result="${3}" ;;\
18496 \ esac\
18497 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18498 && mv -f "$cfgfile.tmp" "$cfgfile" \
18499 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18500 test 0 -eq $? || _lt_function_replace_fail=:
18503 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18504 func_basename ()\
18506 \ func_basename_result="${1##*/}"\
18507 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18508 && mv -f "$cfgfile.tmp" "$cfgfile" \
18509 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18510 test 0 -eq $? || _lt_function_replace_fail=:
18513 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18514 func_dirname_and_basename ()\
18516 \ case ${1} in\
18517 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18518 \ * ) func_dirname_result="${3}" ;;\
18519 \ esac\
18520 \ func_basename_result="${1##*/}"\
18521 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18522 && mv -f "$cfgfile.tmp" "$cfgfile" \
18523 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18524 test 0 -eq $? || _lt_function_replace_fail=:
18527 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18528 func_stripname ()\
18530 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18531 \ # positional parameters, so assign one to ordinary parameter first.\
18532 \ func_stripname_result=${3}\
18533 \ func_stripname_result=${func_stripname_result#"${1}"}\
18534 \ func_stripname_result=${func_stripname_result%"${2}"}\
18535 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18536 && mv -f "$cfgfile.tmp" "$cfgfile" \
18537 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18538 test 0 -eq $? || _lt_function_replace_fail=:
18541 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18542 func_split_long_opt ()\
18544 \ func_split_long_opt_name=${1%%=*}\
18545 \ func_split_long_opt_arg=${1#*=}\
18546 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18547 && mv -f "$cfgfile.tmp" "$cfgfile" \
18548 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18549 test 0 -eq $? || _lt_function_replace_fail=:
18552 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18553 func_split_short_opt ()\
18555 \ func_split_short_opt_arg=${1#??}\
18556 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18557 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18558 && mv -f "$cfgfile.tmp" "$cfgfile" \
18559 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18560 test 0 -eq $? || _lt_function_replace_fail=:
18563 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18564 func_lo2o ()\
18566 \ case ${1} in\
18567 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18568 \ *) func_lo2o_result=${1} ;;\
18569 \ esac\
18570 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18571 && mv -f "$cfgfile.tmp" "$cfgfile" \
18572 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18573 test 0 -eq $? || _lt_function_replace_fail=:
18576 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18577 func_xform ()\
18579 func_xform_result=${1%.*}.lo\
18580 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18581 && mv -f "$cfgfile.tmp" "$cfgfile" \
18582 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18583 test 0 -eq $? || _lt_function_replace_fail=:
18586 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18587 func_arith ()\
18589 func_arith_result=$(( $* ))\
18590 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18591 && mv -f "$cfgfile.tmp" "$cfgfile" \
18592 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18593 test 0 -eq $? || _lt_function_replace_fail=:
18596 sed -e '/^func_len ()$/,/^} # func_len /c\
18597 func_len ()\
18599 func_len_result=${#1}\
18600 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18601 && mv -f "$cfgfile.tmp" "$cfgfile" \
18602 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18603 test 0 -eq $? || _lt_function_replace_fail=:
18607 if test x"$lt_shell_append" = xyes; then
18608 sed -e '/^func_append ()$/,/^} # func_append /c\
18609 func_append ()\
18611 eval "${1}+=\\${2}"\
18612 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18613 && mv -f "$cfgfile.tmp" "$cfgfile" \
18614 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18615 test 0 -eq $? || _lt_function_replace_fail=:
18618 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18619 func_append_quoted ()\
18621 \ func_quote_for_eval "${2}"\
18622 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18623 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18624 && mv -f "$cfgfile.tmp" "$cfgfile" \
18625 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18626 test 0 -eq $? || _lt_function_replace_fail=:
18629 # Save a `func_append' function call where possible by direct use of '+='
18630 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18631 && mv -f "$cfgfile.tmp" "$cfgfile" \
18632 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18633 test 0 -eq $? || _lt_function_replace_fail=:
18634 else
18635 # Save a `func_append' function call even when '+=' is not available
18636 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18637 && mv -f "$cfgfile.tmp" "$cfgfile" \
18638 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18639 test 0 -eq $? || _lt_function_replace_fail=:
18642 if test x"$_lt_function_replace_fail" = x":"; then
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18644 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18648 mv -f "$cfgfile" "$ofile" ||
18649 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18650 chmod +x "$ofile"
18654 esac
18655 done # for ac_tag
18658 as_fn_exit 0
18659 _ACEOF
18660 ac_clean_files=$ac_clean_files_save
18662 test $ac_write_fail = 0 ||
18663 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18666 # configure is writing to config.log, and then calls config.status.
18667 # config.status does its own redirection, appending to config.log.
18668 # Unfortunately, on DOS this fails, as config.log is still kept open
18669 # by configure, so config.status won't be able to write to it; its
18670 # output is simply discarded. So we exec the FD to /dev/null,
18671 # effectively closing config.log, so it can be properly (re)opened and
18672 # appended to by config.status. When coming back to configure, we
18673 # need to make the FD available again.
18674 if test "$no_create" != yes; then
18675 ac_cs_success=:
18676 ac_config_status_args=
18677 test "$silent" = yes &&
18678 ac_config_status_args="$ac_config_status_args --quiet"
18679 exec 5>/dev/null
18680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18681 exec 5>>config.log
18682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18683 # would make configure fail if this is the last instruction.
18684 $ac_cs_success || as_fn_exit 1
18688 # CONFIG_SUBDIRS section.
18690 if test "$no_recursion" != yes; then
18692 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18693 # so they do not pile up.
18694 ac_sub_configure_args=
18695 ac_prev=
18696 eval "set x $ac_configure_args"
18697 shift
18698 for ac_arg
18700 if test -n "$ac_prev"; then
18701 ac_prev=
18702 continue
18704 case $ac_arg in
18705 -cache-file | --cache-file | --cache-fil | --cache-fi \
18706 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18707 ac_prev=cache_file ;;
18708 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18709 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18710 | --c=*)
18712 --config-cache | -C)
18714 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18715 ac_prev=srcdir ;;
18716 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18718 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18719 ac_prev=prefix ;;
18720 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18722 --disable-option-checking)
18725 case $ac_arg in
18726 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18727 esac
18728 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18729 esac
18730 done
18732 # Always prepend --prefix to ensure using the same prefix
18733 # in subdir configurations.
18734 ac_arg="--prefix=$prefix"
18735 case $ac_arg in
18736 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18737 esac
18738 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18740 # Pass --silent
18741 if test "$silent" = yes; then
18742 ac_sub_configure_args="--silent $ac_sub_configure_args"
18745 # Always prepend --disable-option-checking to silence warnings, since
18746 # different subdirs can have different --enable and --with options.
18747 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18749 ac_popdir=`pwd`
18750 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18752 # Do not complain, so a configure script can configure whichever
18753 # parts of a large source tree are present.
18754 test -d "$srcdir/$ac_dir" || continue
18756 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18757 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18758 $as_echo "$ac_msg" >&6
18759 as_dir="$ac_dir"; as_fn_mkdir_p
18760 ac_builddir=.
18762 case "$ac_dir" in
18763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18765 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18766 # A ".." for each directory in $ac_dir_suffix.
18767 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18768 case $ac_top_builddir_sub in
18769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18771 esac ;;
18772 esac
18773 ac_abs_top_builddir=$ac_pwd
18774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18775 # for backward compatibility:
18776 ac_top_builddir=$ac_top_build_prefix
18778 case $srcdir in
18779 .) # We are building in place.
18780 ac_srcdir=.
18781 ac_top_srcdir=$ac_top_builddir_sub
18782 ac_abs_top_srcdir=$ac_pwd ;;
18783 [\\/]* | ?:[\\/]* ) # Absolute name.
18784 ac_srcdir=$srcdir$ac_dir_suffix;
18785 ac_top_srcdir=$srcdir
18786 ac_abs_top_srcdir=$srcdir ;;
18787 *) # Relative name.
18788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18789 ac_top_srcdir=$ac_top_build_prefix$srcdir
18790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18791 esac
18792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18795 cd "$ac_dir"
18797 # Check for guested configure; otherwise get Cygnus style configure.
18798 if test -f "$ac_srcdir/configure.gnu"; then
18799 ac_sub_configure=$ac_srcdir/configure.gnu
18800 elif test -f "$ac_srcdir/configure"; then
18801 ac_sub_configure=$ac_srcdir/configure
18802 elif test -f "$ac_srcdir/configure.in"; then
18803 # This should be Cygnus configure.
18804 ac_sub_configure=$ac_aux_dir/configure
18805 else
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18807 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18808 ac_sub_configure=
18811 # The recursion is here.
18812 if test -n "$ac_sub_configure"; then
18813 # Make the cache file name correct relative to the subdirectory.
18814 case $cache_file in
18815 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18816 *) # Relative name.
18817 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18818 esac
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18821 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18822 # The eval makes quoting arguments work.
18823 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18824 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18825 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18828 cd "$ac_popdir"
18829 done
18831 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18833 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}