TOR: fix compilation
[tomato.git] / release / src / router / libsodium / configure
blob4969dc64e8f46a01e409e3d9930e5d5601a81609
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libsodium 1.0.12.
5 # Report bugs to <https://github.com/jedisct1/libsodium/issues>.
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: https://github.com/jedisct1/libsodium/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a 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}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='libsodium'
592 PACKAGE_TARNAME='libsodium'
593 PACKAGE_VERSION='1.0.12'
594 PACKAGE_STRING='libsodium 1.0.12'
595 PACKAGE_BUGREPORT='https://github.com/jedisct1/libsodium/issues'
596 PACKAGE_URL='https://github.com/jedisct1/libsodium'
598 ac_unique_file="src/libsodium/sodium/version.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 HAVE_LD_OUTPUT_DEF_FALSE
640 HAVE_LD_OUTPUT_DEF_TRUE
642 NATIVECLIENT_FALSE
643 NATIVECLIENT_TRUE
644 EMSCRIPTEN_FALSE
645 EMSCRIPTEN_TRUE
646 TEST_LDFLAGS
647 LIBTOOL_EXTRA_FLAGS
648 HAVE_CPUID_V
649 HAVE_TI_MODE_V
650 HAVE_TI_MODE_FALSE
651 HAVE_TI_MODE_TRUE
652 HAVE_AVX_ASM_V
653 HAVE_AVX_ASM_FALSE
654 HAVE_AVX_ASM_TRUE
655 HAVE_AMD64_ASM_V
656 HAVE_AMD64_ASM_FALSE
657 HAVE_AMD64_ASM_TRUE
658 CFLAGS_PCLMUL
659 CFLAGS_AESNI
660 CFLAGS_AVX2
661 CFLAGS_AVX
662 CFLAGS_SSE41
663 CFLAGS_SSSE3
664 CFLAGS_SSE3
665 CFLAGS_SSE2
666 CFLAGS_MMX
667 LIBTOOL_DEPS
668 LT_SYS_LIBRARY_PATH
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 ac_ct_AR
678 DLLTOOL
679 OBJDUMP
680 LN_S
682 ac_ct_DUMPBIN
683 DUMPBIN
685 FGREP
686 LIBTOOL
687 CWFLAGS
688 am__fastdepCCAS_FALSE
689 am__fastdepCCAS_TRUE
690 CCASDEPMODE
691 CCASFLAGS
692 CCAS
693 VALGRIND_CHECK_RULES
694 VALGRIND_HAVE_TOOL_exp_sgcheck
695 VALGRIND_HAVE_TOOL_drd
696 VALGRIND_HAVE_TOOL_helgrind
697 VALGRIND_HAVE_TOOL_memcheck
698 VALGRIND_ENABLED
699 VALGRIND_ENABLED_FALSE
700 VALGRIND_ENABLED_TRUE
701 VALGRIND
702 SAFECODE_HOME
703 PTHREAD_CFLAGS
704 PTHREAD_LIBS
705 PTHREAD_CC
706 ax_pthread_config
707 EGREP
708 GREP
711 am__fastdepCC_FALSE
712 am__fastdepCC_TRUE
713 CCDEPMODE
714 am__quote
715 am__include
716 DEPDIR
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
724 SODIUM_LIBRARY_MINIMAL_DEF
725 MINIMAL_FALSE
726 MINIMAL_TRUE
727 DLL_VERSION
728 SODIUM_LIBRARY_VERSION
729 SODIUM_LIBRARY_VERSION_MINOR
730 SODIUM_LIBRARY_VERSION_MAJOR
731 ISODATE
732 am__nodep
733 AMDEPBACKSLASH
734 AMDEP_FALSE
735 AMDEP_TRUE
736 MAINT
737 MAINTAINER_MODE_FALSE
738 MAINTAINER_MODE_TRUE
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 host_os
767 host_vendor
768 host_cpu
769 host
770 build_os
771 build_vendor
772 build_cpu
773 build
774 target_alias
775 host_alias
776 build_alias
777 LIBS
778 ECHO_T
779 ECHO_N
780 ECHO_C
781 DEFS
782 mandir
783 localedir
784 libdir
785 psdir
786 pdfdir
787 dvidir
788 htmldir
789 infodir
790 docdir
791 oldincludedir
792 includedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_silent_rules
816 enable_maintainer_mode
817 enable_dependency_tracking
818 enable_ssp
819 enable_asm
820 enable_pie
821 enable_blocking_random
822 enable_minimal
823 with_pthreads
824 with_safecode
825 enable_debug
826 enable_opt
827 enable_valgrind
828 enable_soname_versions
829 enable_shared
830 enable_static
831 with_pic
832 enable_fast_install
833 with_aix_soname
834 with_gnu_ld
835 with_sysroot
836 enable_libtool_lock
838 ac_precious_vars='build_alias
839 host_alias
840 target_alias
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
847 SAFECODE_HOME
848 CCAS
849 CCASFLAGS
850 CWFLAGS
851 LT_SYS_LIBRARY_PATH
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
903 ac_prev=
904 ac_dashdash=
905 for ac_option
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
910 ac_prev=
911 continue
914 case $ac_option in
915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *=) ac_optarg= ;;
917 *) ac_optarg=yes ;;
918 esac
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
924 ac_dashdash=yes ;;
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
943 --config-cache | -C)
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260 esac
1261 done
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $? "missing argument to $ac_option"
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316 test "$silent" = yes && exec 6>/dev/null
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 as_fn_error $? "working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 as_fn_error $? "pwd does not report name of working directory"
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 $as_echo X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1345 /^X\(\/\/\)$/{
1346 s//\1/
1349 /^X\(\/\).*/{
1350 s//\1/
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1358 else
1359 ac_srcdir_defaulted=no
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures libsodium 1.0.12 to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking ...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/libsodium]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1448 cat <<\_ACEOF
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 _ACEOF
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of libsodium 1.0.12:";;
1464 esac
1465 cat <<\_ACEOF
1467 Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-silent-rules less verbose build output (undo: "make V=1")
1472 --disable-silent-rules verbose build output (undo: "make V=0")
1473 --enable-maintainer-mode
1474 enable make rules and dependencies not useful (and
1475 sometimes confusing) to the casual installer
1476 --enable-dependency-tracking
1477 do not reject slow dependency extractors
1478 --disable-dependency-tracking
1479 speeds up one-time build
1480 --disable-ssp Do not compile with -fstack-protector
1481 --disable-asm Disable assembly implementations
1482 --disable-pie Do not produce position independent executables
1483 --enable-blocking-random
1484 Enable this switch only if /dev/urandom is totally
1485 broken on the target platform
1486 --enable-minimal Only compile the minimum set of functions required
1487 for the high-level API
1488 --enable-debug For maintainers only - please do not use
1489 --enable-opt Optimize for the native CPU - The resulting library
1490 will be faster but not portable
1491 --enable-valgrind Whether to enable Valgrind on the unit tests
1492 (requires GNU make)
1493 --enable-soname-versions
1494 enable soname versions (must be disabled for
1495 Android) (default: enabled)
1496 --enable-shared[=PKGS] build shared libraries [default=yes]
1497 --enable-static[=PKGS] build static libraries [default=yes]
1498 --enable-fast-install[=PKGS]
1499 optimize for fast installation [default=yes]
1500 --disable-libtool-lock avoid locking (might break parallel builds)
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-pthreads use pthreads library, or --without-pthreads to
1506 disable threading support.
1507 --with-safecode For maintainers only - please do not use
1508 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1509 both]
1510 --with-aix-soname=aix|svr4|both
1511 shared library versioning (aka "SONAME") variant to
1512 provide on AIX, [default=aix].
1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1514 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1515 compiler's sysroot if not specified).
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CPP C preprocessor
1526 SAFECODE_HOME
1527 set to the safecode base directory
1528 CCAS assembler compiler command (defaults to CC)
1529 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1530 CWFLAGS define to compilation flags for generating extra warnings
1531 LT_SYS_LIBRARY_PATH
1532 User-defined run-time library search path.
1533 AR path to the ar utility
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1538 Report bugs to <https://github.com/jedisct1/libsodium/issues>.
1539 libsodium home page: <https://github.com/jedisct1/libsodium>.
1540 _ACEOF
1541 ac_status=$?
1544 if test "$ac_init_help" = "recursive"; then
1545 # If there are subdirs, report their specific --help.
1546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547 test -d "$ac_dir" ||
1548 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549 continue
1550 ac_builddir=.
1552 case "$ac_dir" in
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 esac ;;
1562 esac
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1568 case $srcdir in
1569 .) # We are building in place.
1570 ac_srcdir=.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1577 *) # Relative name.
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 esac
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1592 else
1593 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1596 done
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601 cat <<\_ACEOF
1602 libsodium configure 1.0.12
1603 generated by GNU Autoconf 2.69
1605 Copyright (C) 2012 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1608 _ACEOF
1609 exit
1612 ## ------------------------ ##
1613 ## Autoconf initialization. ##
1614 ## ------------------------ ##
1616 # ac_fn_c_try_compile LINENO
1617 # --------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_compile ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext
1623 if { { ac_try="$ac_compile"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1647 ac_retval=1
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1652 } # ac_fn_c_try_compile
1654 # ac_fn_c_try_link LINENO
1655 # -----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_link ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext conftest$ac_exeext
1661 if { { ac_try="$ac_link"
1662 case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest$ac_exeext && {
1680 test "$cross_compiling" = yes ||
1681 test -x conftest$ac_exeext
1682 }; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1688 ac_retval=1
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1698 } # ac_fn_c_try_link
1700 # ac_fn_c_try_cpp LINENO
1701 # ----------------------
1702 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_cpp ()
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_cpp conftest.$ac_ext"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } > conftest.i && {
1722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1730 ac_retval=1
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1735 } # ac_fn_c_try_cpp
1737 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1740 # the include files in INCLUDES and setting the cache variable VAR
1741 # accordingly.
1742 ac_fn_c_check_header_mongrel ()
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if eval \${$3+:} false; then :
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval \${$3+:} false; then :
1749 $as_echo_n "(cached) " >&6
1751 eval ac_res=\$$3
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 else
1755 # Is the header compilable?
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1757 $as_echo_n "checking $2 usability... " >&6; }
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1761 #include <$2>
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764 ac_header_compiler=yes
1765 else
1766 ac_header_compiler=no
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1770 $as_echo "$ac_header_compiler" >&6; }
1772 # Is the header present?
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1774 $as_echo_n "checking $2 presence... " >&6; }
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_cpp "$LINENO"; then :
1780 ac_header_preproc=yes
1781 else
1782 ac_header_preproc=no
1784 rm -f conftest.err conftest.i conftest.$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1786 $as_echo "$ac_header_preproc" >&6; }
1788 # So? What about this header?
1789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1790 yes:no: )
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1792 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 no:yes:* )
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1798 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1800 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1802 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1804 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1806 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1807 ( $as_echo "## ----------------------------------------------------------- ##
1808 ## Report this to https://github.com/jedisct1/libsodium/issues ##
1809 ## ----------------------------------------------------------- ##"
1810 ) | sed "s/^/$as_me: WARNING: /" >&2
1812 esac
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 eval "$3=\$ac_header_compiler"
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 } # ac_fn_c_check_header_mongrel
1828 # ac_fn_c_try_run LINENO
1829 # ----------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1831 # that executables *can* be run.
1832 ac_fn_c_try_run ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if { { ac_try="$ac_link"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>&5
1843 ac_status=$?
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1846 { { case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_try") 2>&5
1853 ac_status=$?
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; }; }; then :
1856 ac_retval=0
1857 else
1858 $as_echo "$as_me: program exited with status $ac_status" >&5
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 ac_retval=$ac_status
1864 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1868 } # ac_fn_c_try_run
1870 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1871 # -------------------------------------------------------
1872 # Tests whether HEADER exists and can be compiled using the include files in
1873 # INCLUDES, setting the cache variable VAR accordingly.
1874 ac_fn_c_check_header_compile ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1885 #include <$2>
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888 eval "$3=yes"
1889 else
1890 eval "$3=no"
1892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_header_compile
1901 # ac_fn_c_check_func LINENO FUNC VAR
1902 # ----------------------------------
1903 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1904 ac_fn_c_check_func ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1911 else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1916 #define $2 innocuous_$2
1918 /* System header to define __stub macros and hopefully few prototypes,
1919 which can conflict with char $2 (); below.
1920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1921 <limits.h> exists even on freestanding compilers. */
1923 #ifdef __STDC__
1924 # include <limits.h>
1925 #else
1926 # include <assert.h>
1927 #endif
1929 #undef $2
1931 /* Override any GCC internal prototype to avoid an error.
1932 Use char because int might match the return type of a GCC
1933 builtin and then its argument prototype would still apply. */
1934 #ifdef __cplusplus
1935 extern "C"
1936 #endif
1937 char $2 ();
1938 /* The GNU C library defines this for functions which it implements
1939 to always fail with ENOSYS. Some functions are actually named
1940 something starting with __ and the normal name is an alias. */
1941 #if defined __stub_$2 || defined __stub___$2
1942 choke me
1943 #endif
1946 main ()
1948 return $2 ();
1950 return 0;
1952 _ACEOF
1953 if ac_fn_c_try_link "$LINENO"; then :
1954 eval "$3=yes"
1955 else
1956 eval "$3=no"
1958 rm -f core conftest.err conftest.$ac_objext \
1959 conftest$ac_exeext conftest.$ac_ext
1961 eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 } # ac_fn_c_check_func
1967 cat >config.log <<_ACEOF
1968 This file contains any messages produced by compilers while
1969 running configure, to aid debugging if configure makes a mistake.
1971 It was created by libsodium $as_me 1.0.12, which was
1972 generated by GNU Autoconf 2.69. Invocation command line was
1974 $ $0 $@
1976 _ACEOF
1977 exec 5>>config.log
1979 cat <<_ASUNAME
1980 ## --------- ##
1981 ## Platform. ##
1982 ## --------- ##
1984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1996 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2001 _ASUNAME
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 for as_dir in $PATH
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
2008 $as_echo "PATH: $as_dir"
2009 done
2010 IFS=$as_save_IFS
2012 } >&5
2014 cat >&5 <<_ACEOF
2017 ## ----------- ##
2018 ## Core tests. ##
2019 ## ----------- ##
2021 _ACEOF
2024 # Keep a trace of the command line.
2025 # Strip out --no-create and --no-recursion so they do not pile up.
2026 # Strip out --silent because we don't want to record it for future runs.
2027 # Also quote any args containing shell meta-characters.
2028 # Make two passes to allow for proper duplicate-argument suppression.
2029 ac_configure_args=
2030 ac_configure_args0=
2031 ac_configure_args1=
2032 ac_must_keep_next=false
2033 for ac_pass in 1 2
2035 for ac_arg
2037 case $ac_arg in
2038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2040 | -silent | --silent | --silen | --sile | --sil)
2041 continue ;;
2042 *\'*)
2043 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2044 esac
2045 case $ac_pass in
2046 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2048 as_fn_append ac_configure_args1 " '$ac_arg'"
2049 if test $ac_must_keep_next = true; then
2050 ac_must_keep_next=false # Got value, back to normal.
2051 else
2052 case $ac_arg in
2053 *=* | --config-cache | -C | -disable-* | --disable-* \
2054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2056 | -with-* | --with-* | -without-* | --without-* | --x)
2057 case "$ac_configure_args0 " in
2058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2059 esac
2061 -* ) ac_must_keep_next=true ;;
2062 esac
2064 as_fn_append ac_configure_args " '$ac_arg'"
2066 esac
2067 done
2068 done
2069 { ac_configure_args0=; unset ac_configure_args0;}
2070 { ac_configure_args1=; unset ac_configure_args1;}
2072 # When interrupted or exit'd, cleanup temporary files, and complete
2073 # config.log. We remove comments because anyway the quotes in there
2074 # would cause problems or look ugly.
2075 # WARNING: Use '\'' to represent an apostrophe within the trap.
2076 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2077 trap 'exit_status=$?
2078 # Save into config.log some information that might help in debugging.
2080 echo
2082 $as_echo "## ---------------- ##
2083 ## Cache variables. ##
2084 ## ---------------- ##"
2085 echo
2086 # The following way of writing the cache mishandles newlines in values,
2088 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2089 eval ac_val=\$$ac_var
2090 case $ac_val in #(
2091 *${as_nl}*)
2092 case $ac_var in #(
2093 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2094 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2095 esac
2096 case $ac_var in #(
2097 _ | IFS | as_nl) ;; #(
2098 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2099 *) { eval $ac_var=; unset $ac_var;} ;;
2100 esac ;;
2101 esac
2102 done
2103 (set) 2>&1 |
2104 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2105 *${as_nl}ac_space=\ *)
2106 sed -n \
2107 "s/'\''/'\''\\\\'\'''\''/g;
2108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2109 ;; #(
2111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2113 esac |
2114 sort
2116 echo
2118 $as_echo "## ----------------- ##
2119 ## Output variables. ##
2120 ## ----------------- ##"
2121 echo
2122 for ac_var in $ac_subst_vars
2124 eval ac_val=\$$ac_var
2125 case $ac_val in
2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 esac
2128 $as_echo "$ac_var='\''$ac_val'\''"
2129 done | sort
2130 echo
2132 if test -n "$ac_subst_files"; then
2133 $as_echo "## ------------------- ##
2134 ## File substitutions. ##
2135 ## ------------------- ##"
2136 echo
2137 for ac_var in $ac_subst_files
2139 eval ac_val=\$$ac_var
2140 case $ac_val in
2141 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 esac
2143 $as_echo "$ac_var='\''$ac_val'\''"
2144 done | sort
2145 echo
2148 if test -s confdefs.h; then
2149 $as_echo "## ----------- ##
2150 ## confdefs.h. ##
2151 ## ----------- ##"
2152 echo
2153 cat confdefs.h
2154 echo
2156 test "$ac_signal" != 0 &&
2157 $as_echo "$as_me: caught signal $ac_signal"
2158 $as_echo "$as_me: exit $exit_status"
2159 } >&5
2160 rm -f core *.core core.conftest.* &&
2161 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2162 exit $exit_status
2164 for ac_signal in 1 2 13 15; do
2165 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2166 done
2167 ac_signal=0
2169 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2170 rm -f -r conftest* confdefs.h
2172 $as_echo "/* confdefs.h */" > confdefs.h
2174 # Predefined preprocessor variables.
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_NAME "$PACKAGE_NAME"
2178 _ACEOF
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2182 _ACEOF
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2186 _ACEOF
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_STRING "$PACKAGE_STRING"
2190 _ACEOF
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2194 _ACEOF
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_URL "$PACKAGE_URL"
2198 _ACEOF
2201 # Let the site file select an alternate cache file if it wants to.
2202 # Prefer an explicitly selected file to automatically selected ones.
2203 ac_site_file1=NONE
2204 ac_site_file2=NONE
2205 if test -n "$CONFIG_SITE"; then
2206 # We do not want a PATH search for config.site.
2207 case $CONFIG_SITE in #((
2208 -*) ac_site_file1=./$CONFIG_SITE;;
2209 */*) ac_site_file1=$CONFIG_SITE;;
2210 *) ac_site_file1=./$CONFIG_SITE;;
2211 esac
2212 elif test "x$prefix" != xNONE; then
2213 ac_site_file1=$prefix/share/config.site
2214 ac_site_file2=$prefix/etc/config.site
2215 else
2216 ac_site_file1=$ac_default_prefix/share/config.site
2217 ac_site_file2=$ac_default_prefix/etc/config.site
2219 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2221 test "x$ac_site_file" = xNONE && continue
2222 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2224 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2225 sed 's/^/| /' "$ac_site_file" >&5
2226 . "$ac_site_file" \
2227 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229 as_fn_error $? "failed to load site script $ac_site_file
2230 See \`config.log' for more details" "$LINENO" 5; }
2232 done
2234 if test -r "$cache_file"; then
2235 # Some versions of bash will fail to source /dev/null (special files
2236 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2237 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2239 $as_echo "$as_me: loading cache $cache_file" >&6;}
2240 case $cache_file in
2241 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2242 *) . "./$cache_file";;
2243 esac
2245 else
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2247 $as_echo "$as_me: creating cache $cache_file" >&6;}
2248 >$cache_file
2251 # Check that the precious variables saved in the cache have kept the same
2252 # value.
2253 ac_cache_corrupted=false
2254 for ac_var in $ac_precious_vars; do
2255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2256 eval ac_new_set=\$ac_env_${ac_var}_set
2257 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2258 eval ac_new_val=\$ac_env_${ac_var}_value
2259 case $ac_old_set,$ac_new_set in
2260 set,)
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2262 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2263 ac_cache_corrupted=: ;;
2264 ,set)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,);;
2270 if test "x$ac_old_val" != "x$ac_new_val"; then
2271 # differences in whitespace do not lead to failure.
2272 ac_old_val_w=`echo x $ac_old_val`
2273 ac_new_val_w=`echo x $ac_new_val`
2274 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2276 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2277 ac_cache_corrupted=:
2278 else
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2280 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2281 eval $ac_var=\$ac_old_val
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2284 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2286 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2287 fi;;
2288 esac
2289 # Pass precious variables to config.status.
2290 if test "$ac_new_set" = set; then
2291 case $ac_new_val in
2292 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2293 *) ac_arg=$ac_var=$ac_new_val ;;
2294 esac
2295 case " $ac_configure_args " in
2296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2297 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2298 esac
2300 done
2301 if $ac_cache_corrupted; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2305 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2306 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2308 ## -------------------- ##
2309 ## Main body of script. ##
2310 ## -------------------- ##
2312 ac_ext=c
2313 ac_cpp='$CPP $CPPFLAGS'
2314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319 ac_aux_dir=
2320 for ac_dir in build-aux "$srcdir"/build-aux; do
2321 if test -f "$ac_dir/install-sh"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/install-sh -c"
2324 break
2325 elif test -f "$ac_dir/install.sh"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/install.sh -c"
2328 break
2329 elif test -f "$ac_dir/shtool"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/shtool install -c"
2332 break
2334 done
2335 if test -z "$ac_aux_dir"; then
2336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2339 # These three variables are undocumented and unsupported,
2340 # and are intended to be withdrawn in a future Autoconf release.
2341 # They can cause serious problems if a builder's source tree is in a directory
2342 # whose full name contains unusual characters.
2343 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2344 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2345 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2350 # Make sure we can run config.sub.
2351 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2352 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2355 $as_echo_n "checking build system type... " >&6; }
2356 if ${ac_cv_build+:} false; then :
2357 $as_echo_n "(cached) " >&6
2358 else
2359 ac_build_alias=$build_alias
2360 test "x$ac_build_alias" = x &&
2361 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2362 test "x$ac_build_alias" = x &&
2363 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2364 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2365 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2369 $as_echo "$ac_cv_build" >&6; }
2370 case $ac_cv_build in
2371 *-*-*) ;;
2372 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2373 esac
2374 build=$ac_cv_build
2375 ac_save_IFS=$IFS; IFS='-'
2376 set x $ac_cv_build
2377 shift
2378 build_cpu=$1
2379 build_vendor=$2
2380 shift; shift
2381 # Remember, the first character of IFS is used to create $*,
2382 # except with old shells:
2383 build_os=$*
2384 IFS=$ac_save_IFS
2385 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2389 $as_echo_n "checking host system type... " >&6; }
2390 if ${ac_cv_host+:} false; then :
2391 $as_echo_n "(cached) " >&6
2392 else
2393 if test "x$host_alias" = x; then
2394 ac_cv_host=$ac_cv_build
2395 else
2396 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2397 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2402 $as_echo "$ac_cv_host" >&6; }
2403 case $ac_cv_host in
2404 *-*-*) ;;
2405 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2406 esac
2407 host=$ac_cv_host
2408 ac_save_IFS=$IFS; IFS='-'
2409 set x $ac_cv_host
2410 shift
2411 host_cpu=$1
2412 host_vendor=$2
2413 shift; shift
2414 # Remember, the first character of IFS is used to create $*,
2415 # except with old shells:
2416 host_os=$*
2417 IFS=$ac_save_IFS
2418 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2421 am__api_version='1.15'
2423 # Find a good install program. We prefer a C program (faster),
2424 # so one script is as good as another. But avoid the broken or
2425 # incompatible versions:
2426 # SysV /etc/install, /usr/sbin/install
2427 # SunOS /usr/etc/install
2428 # IRIX /sbin/install
2429 # AIX /bin/install
2430 # AmigaOS /C/install, which installs bootblocks on floppy discs
2431 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2432 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2433 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2434 # OS/2's system install, which has a completely different semantic
2435 # ./install, which can be erroneously created by make from ./install.sh.
2436 # Reject install programs that cannot install multiple files.
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2438 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2439 if test -z "$INSTALL"; then
2440 if ${ac_cv_path_install+:} false; then :
2441 $as_echo_n "(cached) " >&6
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 # Account for people who put trailing slashes in PATH elements.
2449 case $as_dir/ in #((
2450 ./ | .// | /[cC]/* | \
2451 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2452 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2453 /usr/ucb/* ) ;;
2455 # OSF1 and SCO ODT 3.0 have their own names for install.
2456 # Don't use installbsd from OSF since it installs stuff as root
2457 # by default.
2458 for ac_prog in ginstall scoinst install; do
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2461 if test $ac_prog = install &&
2462 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2463 # AIX install. It has an incompatible calling convention.
2465 elif test $ac_prog = install &&
2466 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2467 # program-specific install script used by HP pwplus--don't use.
2469 else
2470 rm -rf conftest.one conftest.two conftest.dir
2471 echo one > conftest.one
2472 echo two > conftest.two
2473 mkdir conftest.dir
2474 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2475 test -s conftest.one && test -s conftest.two &&
2476 test -s conftest.dir/conftest.one &&
2477 test -s conftest.dir/conftest.two
2478 then
2479 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2480 break 3
2484 done
2485 done
2487 esac
2489 done
2490 IFS=$as_save_IFS
2492 rm -rf conftest.one conftest.two conftest.dir
2495 if test "${ac_cv_path_install+set}" = set; then
2496 INSTALL=$ac_cv_path_install
2497 else
2498 # As a last resort, use the slow shell script. Don't cache a
2499 # value for INSTALL within a source directory, because that will
2500 # break other packages using the cache if that directory is
2501 # removed, or if the value is a relative name.
2502 INSTALL=$ac_install_sh
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2506 $as_echo "$INSTALL" >&6; }
2508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2509 # It thinks the first close brace ends the variable substitution.
2510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2512 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2514 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2517 $as_echo_n "checking whether build environment is sane... " >&6; }
2518 # Reject unsafe characters in $srcdir or the absolute working directory
2519 # name. Accept space and tab only in the latter.
2520 am_lf='
2522 case `pwd` in
2523 *[\\\"\#\$\&\'\`$am_lf]*)
2524 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2525 esac
2526 case $srcdir in
2527 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2528 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2529 esac
2531 # Do 'set' in a subshell so we don't clobber the current shell's
2532 # arguments. Must try -L first in case configure is actually a
2533 # symlink; some systems play weird games with the mod time of symlinks
2534 # (eg FreeBSD returns the mod time of the symlink's containing
2535 # directory).
2536 if (
2537 am_has_slept=no
2538 for am_try in 1 2; do
2539 echo "timestamp, slept: $am_has_slept" > conftest.file
2540 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2541 if test "$*" = "X"; then
2542 # -L didn't work.
2543 set X `ls -t "$srcdir/configure" conftest.file`
2545 if test "$*" != "X $srcdir/configure conftest.file" \
2546 && test "$*" != "X conftest.file $srcdir/configure"; then
2548 # If neither matched, then we have a broken ls. This can happen
2549 # if, for instance, CONFIG_SHELL is bash and it inherits a
2550 # broken ls alias from the environment. This has actually
2551 # happened. Such a system could not be considered "sane".
2552 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2553 alias in your environment" "$LINENO" 5
2555 if test "$2" = conftest.file || test $am_try -eq 2; then
2556 break
2558 # Just in case.
2559 sleep 1
2560 am_has_slept=yes
2561 done
2562 test "$2" = conftest.file
2564 then
2565 # Ok.
2567 else
2568 as_fn_error $? "newly created file is older than distributed files!
2569 Check your system clock" "$LINENO" 5
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2572 $as_echo "yes" >&6; }
2573 # If we didn't sleep, we still need to ensure time stamps of config.status and
2574 # generated files are strictly newer.
2575 am_sleep_pid=
2576 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2577 ( sleep 1 ) &
2578 am_sleep_pid=$!
2581 rm -f conftest.file
2583 test "$program_prefix" != NONE &&
2584 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2585 # Use a double $ so make ignores it.
2586 test "$program_suffix" != NONE &&
2587 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2588 # Double any \ or $.
2589 # By default was `s,x,x', remove it if useless.
2590 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2591 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2593 # Expand $ac_aux_dir to an absolute path.
2594 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2596 if test x"${MISSING+set}" != xset; then
2597 case $am_aux_dir in
2598 *\ * | *\ *)
2599 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2601 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2602 esac
2604 # Use eval to expand $SHELL
2605 if eval "$MISSING --is-lightweight"; then
2606 am_missing_run="$MISSING "
2607 else
2608 am_missing_run=
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2610 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2613 if test x"${install_sh+set}" != xset; then
2614 case $am_aux_dir in
2615 *\ * | *\ *)
2616 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2618 install_sh="\${SHELL} $am_aux_dir/install-sh"
2619 esac
2622 # Installed binaries are usually stripped using 'strip' when the user
2623 # run "make install-strip". However 'strip' might not be the right
2624 # tool to use in cross-compilation environments, therefore Automake
2625 # will honor the 'STRIP' environment variable to overrule this program.
2626 if test "$cross_compiling" != no; then
2627 if test -n "$ac_tool_prefix"; then
2628 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2629 set dummy ${ac_tool_prefix}strip; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if ${ac_cv_prog_STRIP+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test -n "$STRIP"; then
2636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2645 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2649 done
2650 done
2651 IFS=$as_save_IFS
2655 STRIP=$ac_cv_prog_STRIP
2656 if test -n "$STRIP"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2658 $as_echo "$STRIP" >&6; }
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2666 if test -z "$ac_cv_prog_STRIP"; then
2667 ac_ct_STRIP=$STRIP
2668 # Extract the first word of "strip", so it can be a program name with args.
2669 set dummy strip; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2673 $as_echo_n "(cached) " >&6
2674 else
2675 if test -n "$ac_ct_STRIP"; then
2676 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_ac_ct_STRIP="strip"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2689 done
2690 done
2691 IFS=$as_save_IFS
2695 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2696 if test -n "$ac_ct_STRIP"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2698 $as_echo "$ac_ct_STRIP" >&6; }
2699 else
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2704 if test "x$ac_ct_STRIP" = x; then
2705 STRIP=":"
2706 else
2707 case $cross_compiling:$ac_tool_warned in
2708 yes:)
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2711 ac_tool_warned=yes ;;
2712 esac
2713 STRIP=$ac_ct_STRIP
2715 else
2716 STRIP="$ac_cv_prog_STRIP"
2720 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2723 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2724 if test -z "$MKDIR_P"; then
2725 if ${ac_cv_path_mkdir+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_prog in mkdir gmkdir; do
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2736 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2737 'mkdir (GNU coreutils) '* | \
2738 'mkdir (coreutils) '* | \
2739 'mkdir (fileutils) '4.1*)
2740 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2741 break 3;;
2742 esac
2743 done
2744 done
2745 done
2746 IFS=$as_save_IFS
2750 test -d ./--version && rmdir ./--version
2751 if test "${ac_cv_path_mkdir+set}" = set; then
2752 MKDIR_P="$ac_cv_path_mkdir -p"
2753 else
2754 # As a last resort, use the slow shell script. Don't cache a
2755 # value for MKDIR_P within a source directory, because that will
2756 # break other packages using the cache if that directory is
2757 # removed, or if the value is a relative name.
2758 MKDIR_P="$ac_install_sh -d"
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2762 $as_echo "$MKDIR_P" >&6; }
2764 for ac_prog in gawk mawk nawk awk
2766 # Extract the first word of "$ac_prog", so it can be a program name with args.
2767 set dummy $ac_prog; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_AWK+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test -n "$AWK"; then
2774 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_AWK="$ac_prog"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2787 done
2788 done
2789 IFS=$as_save_IFS
2793 AWK=$ac_cv_prog_AWK
2794 if test -n "$AWK"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2796 $as_echo "$AWK" >&6; }
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2803 test -n "$AWK" && break
2804 done
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2807 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2808 set x ${MAKE-make}
2809 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2810 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 cat >conftest.make <<\_ACEOF
2814 SHELL = /bin/sh
2815 all:
2816 @echo '@@@%%%=$(MAKE)=@@@%%%'
2817 _ACEOF
2818 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2819 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2820 *@@@%%%=?*=@@@%%%*)
2821 eval ac_cv_prog_make_${ac_make}_set=yes;;
2823 eval ac_cv_prog_make_${ac_make}_set=no;;
2824 esac
2825 rm -f conftest.make
2827 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829 $as_echo "yes" >&6; }
2830 SET_MAKE=
2831 else
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2834 SET_MAKE="MAKE=${MAKE-make}"
2837 rm -rf .tst 2>/dev/null
2838 mkdir .tst 2>/dev/null
2839 if test -d .tst; then
2840 am__leading_dot=.
2841 else
2842 am__leading_dot=_
2844 rmdir .tst 2>/dev/null
2846 # Check whether --enable-silent-rules was given.
2847 if test "${enable_silent_rules+set}" = set; then :
2848 enableval=$enable_silent_rules;
2851 case $enable_silent_rules in # (((
2852 yes) AM_DEFAULT_VERBOSITY=0;;
2853 no) AM_DEFAULT_VERBOSITY=1;;
2854 *) AM_DEFAULT_VERBOSITY=1;;
2855 esac
2856 am_make=${MAKE-make}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2858 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2859 if ${am_cv_make_support_nested_variables+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if $as_echo 'TRUE=$(BAR$(V))
2863 BAR0=false
2864 BAR1=true
2866 am__doit:
2867 @$(TRUE)
2868 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2869 am_cv_make_support_nested_variables=yes
2870 else
2871 am_cv_make_support_nested_variables=no
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2875 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2876 if test $am_cv_make_support_nested_variables = yes; then
2877 AM_V='$(V)'
2878 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2879 else
2880 AM_V=$AM_DEFAULT_VERBOSITY
2881 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2883 AM_BACKSLASH='\'
2885 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2886 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2887 # is not polluted with repeated "-I."
2888 am__isrc=' -I$(srcdir)'
2889 # test to see if srcdir already configured
2890 if test -f $srcdir/config.status; then
2891 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2895 # test whether we have cygpath
2896 if test -z "$CYGPATH_W"; then
2897 if (cygpath --version) >/dev/null 2>/dev/null; then
2898 CYGPATH_W='cygpath -w'
2899 else
2900 CYGPATH_W=echo
2905 # Define the identity of the package.
2906 PACKAGE='libsodium'
2907 VERSION='1.0.12'
2910 cat >>confdefs.h <<_ACEOF
2911 #define PACKAGE "$PACKAGE"
2912 _ACEOF
2915 cat >>confdefs.h <<_ACEOF
2916 #define VERSION "$VERSION"
2917 _ACEOF
2919 # Some tools Automake needs.
2921 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2924 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2927 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2930 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2933 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2935 # For better backward compatibility. To be removed once Automake 1.9.x
2936 # dies out for good. For more background, see:
2937 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2938 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2939 mkdir_p='$(MKDIR_P)'
2941 # We need awk for the "check" target (and possibly the TAP driver). The
2942 # system "awk" is bad on some platforms.
2943 # Always define AMTAR for backward compatibility. Yes, it's still used
2944 # in the wild :-( We should find a proper way to deprecate it ...
2945 AMTAR='$${TAR-tar}'
2948 # We'll loop over all known methods to create a tar archive until one works.
2949 _am_tools='gnutar plaintar pax cpio none'
2951 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
2952 # There is notably a 21 bits limit for the UID and the GID. In fact,
2953 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2954 # and bug#13588).
2955 am_max_uid=2097151 # 2^21 - 1
2956 am_max_gid=$am_max_uid
2957 # The $UID and $GID variables are not portable, so we need to resort
2958 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
2959 # below are definitely unexpected, so allow the users to see them
2960 # (that is, avoid stderr redirection).
2961 am_uid=`id -u || echo unknown`
2962 am_gid=`id -g || echo unknown`
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2964 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2965 if test $am_uid -le $am_max_uid; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967 $as_echo "yes" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 _am_tools=none
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2974 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2975 if test $am_gid -le $am_max_gid; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2977 $as_echo "yes" >&6; }
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 _am_tools=none
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2985 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2987 # Go ahead even if we have the value already cached. We do so because we
2988 # need to set the values for the 'am__tar' and 'am__untar' variables.
2989 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2991 for _am_tool in $_am_tools; do
2992 case $_am_tool in
2993 gnutar)
2994 for _am_tar in tar gnutar gtar; do
2995 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2996 ($_am_tar --version) >&5 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } && break
3000 done
3001 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3002 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3003 am__untar="$_am_tar -xf -"
3005 plaintar)
3006 # Must skip GNU tar: if it does not support --format= it doesn't create
3007 # ustar tarball either.
3008 (tar --version) >/dev/null 2>&1 && continue
3009 am__tar='tar chf - "$$tardir"'
3010 am__tar_='tar chf - "$tardir"'
3011 am__untar='tar xf -'
3013 pax)
3014 am__tar='pax -L -x ustar -w "$$tardir"'
3015 am__tar_='pax -L -x ustar -w "$tardir"'
3016 am__untar='pax -r'
3018 cpio)
3019 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3020 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3021 am__untar='cpio -i -H ustar -d'
3023 none)
3024 am__tar=false
3025 am__tar_=false
3026 am__untar=false
3028 esac
3030 # If the value was cached, stop now. We just wanted to have am__tar
3031 # and am__untar set.
3032 test -n "${am_cv_prog_tar_ustar}" && break
3034 # tar/untar a dummy directory, and stop if the command works.
3035 rm -rf conftest.dir
3036 mkdir conftest.dir
3037 echo GrepMe > conftest.dir/file
3038 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3039 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 rm -rf conftest.dir
3044 if test -s conftest.tar; then
3045 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3046 ($am__untar <conftest.tar) >&5 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }
3050 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3051 (cat conftest.dir/file) >&5 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }
3055 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3057 done
3058 rm -rf conftest.dir
3060 if ${am_cv_prog_tar_ustar+:} false; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 am_cv_prog_tar_ustar=$_am_tool
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3067 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3074 # POSIX will say in a future version that running "rm -f" with no argument
3075 # is OK; and we want to be able to make that assumption in our Makefile
3076 # recipes. So use an aggressive probe to check that the usage we want is
3077 # actually supported "in the wild" to an acceptable degree.
3078 # See automake bug#10828.
3079 # To make any issue more visible, cause the running configure to be aborted
3080 # by default if the 'rm' program in use doesn't match our expectations; the
3081 # user can still override this though.
3082 if rm -f && rm -fr && rm -rf; then : OK; else
3083 cat >&2 <<'END'
3084 Oops!
3086 Your 'rm' program seems unable to run without file operands specified
3087 on the command line, even when the '-f' option is present. This is contrary
3088 to the behaviour of most rm programs out there, and not conforming with
3089 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3091 Please tell bug-automake@gnu.org about your system, including the value
3092 of your $PATH and any error possibly output before this message. This
3093 can help us improve future automake versions.
3096 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3097 echo 'Configuration will proceed anyway, since you have set the' >&2
3098 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3099 echo >&2
3100 else
3101 cat >&2 <<'END'
3102 Aborting the configuration process, to ensure you take notice of the issue.
3104 You can download and install GNU coreutils to get an 'rm' implementation
3105 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3107 If you want to complete the configuration process using your problematic
3108 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3109 to "yes", and re-run configure.
3112 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3116 # Check whether --enable-silent-rules was given.
3117 if test "${enable_silent_rules+set}" = set; then :
3118 enableval=$enable_silent_rules;
3121 case $enable_silent_rules in # (((
3122 yes) AM_DEFAULT_VERBOSITY=0;;
3123 no) AM_DEFAULT_VERBOSITY=1;;
3124 *) AM_DEFAULT_VERBOSITY=0;;
3125 esac
3126 am_make=${MAKE-make}
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3128 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3129 if ${am_cv_make_support_nested_variables+:} false; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if $as_echo 'TRUE=$(BAR$(V))
3133 BAR0=false
3134 BAR1=true
3136 am__doit:
3137 @$(TRUE)
3138 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3139 am_cv_make_support_nested_variables=yes
3140 else
3141 am_cv_make_support_nested_variables=no
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3145 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3146 if test $am_cv_make_support_nested_variables = yes; then
3147 AM_V='$(V)'
3148 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3149 else
3150 AM_V=$AM_DEFAULT_VERBOSITY
3151 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3153 AM_BACKSLASH='\'
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3157 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3158 # Check whether --enable-maintainer-mode was given.
3159 if test "${enable_maintainer_mode+set}" = set; then :
3160 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3161 else
3162 USE_MAINTAINER_MODE=no
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3166 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3167 if test $USE_MAINTAINER_MODE = yes; then
3168 MAINTAINER_MODE_TRUE=
3169 MAINTAINER_MODE_FALSE='#'
3170 else
3171 MAINTAINER_MODE_TRUE='#'
3172 MAINTAINER_MODE_FALSE=
3175 MAINT=$MAINTAINER_MODE_TRUE
3178 # Check whether --enable-dependency-tracking was given.
3179 if test "${enable_dependency_tracking+set}" = set; then :
3180 enableval=$enable_dependency_tracking;
3183 if test "x$enable_dependency_tracking" != xno; then
3184 am_depcomp="$ac_aux_dir/depcomp"
3185 AMDEPBACKSLASH='\'
3186 am__nodep='_no'
3188 if test "x$enable_dependency_tracking" != xno; then
3189 AMDEP_TRUE=
3190 AMDEP_FALSE='#'
3191 else
3192 AMDEP_TRUE='#'
3193 AMDEP_FALSE=
3199 ISODATE=`date +%Y-%m-%d`
3202 SODIUM_LIBRARY_VERSION_MAJOR=9
3203 SODIUM_LIBRARY_VERSION_MINOR=4
3204 DLL_VERSION=8
3205 SODIUM_LIBRARY_VERSION=20:0:2
3206 # | | |
3207 # +------+ | +---+
3208 # | | |
3209 # current:revision:age
3210 # | | |
3211 # | | +- increment if interfaces have been added
3212 # | | set to zero if interfaces have been removed
3213 # | | or changed
3214 # | +- increment if source code has changed
3215 # | set to zero if current is incremented
3216 # +- increment if interfaces have been added, removed or changed
3223 LX_CFLAGS=${CFLAGS-NONE}
3226 if pwd | fgrep ' ' > /dev/null 2>&1; then :
3227 as_fn_error $? "The build directory contains whitespaces - This can cause tests/installation to fail due to limitations of some libtool versions" "$LINENO" 5
3232 # Check whether --enable-ssp was given.
3233 if test "${enable_ssp+set}" = set; then :
3234 enableval=$enable_ssp;
3235 if test "x$enableval" = "xno"; then :
3237 enable_ssp="no"
3239 else
3241 enable_ssp="yes"
3245 else
3247 enable_ssp="yes"
3252 # Check whether --enable-asm was given.
3253 if test "${enable_asm+set}" = set; then :
3254 enableval=$enable_asm;
3255 if test "x$enableval" = "xno"; then :
3257 enable_asm="no"
3259 else
3261 enable_asm="yes"
3265 else
3267 enable_asm="yes"
3272 if test "x$EMSCRIPTEN" != "x"; then :
3274 enable_asm="no"
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiling to JavaScript - asm implementations disabled" >&5
3276 $as_echo "$as_me: WARNING: compiling to JavaScript - asm implementations disabled" >&2;}
3279 if test "$host_os" = "nacl" -o "$host_os" = "pnacl"; then :
3281 enable_asm="no"
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiling to Native Client - asm implementations disabled" >&5
3283 $as_echo "$as_me: WARNING: compiling to Native Client - asm implementations disabled" >&2;}
3287 # Check whether --enable-pie was given.
3288 if test "${enable_pie+set}" = set; then :
3289 enableval=$enable_pie; enable_pie=$enableval
3290 else
3291 enable_pie="maybe"
3295 case $host_os in #(
3296 mingw*|cygwin*|msys) :
3297 enable_pie="no" ;; #(
3298 *) :
3300 esac
3302 # Check whether --enable-blocking-random was given.
3303 if test "${enable_blocking_random+set}" = set; then :
3304 enableval=$enable_blocking_random;
3305 if test "x$enableval" = "xyes"; then :
3308 $as_echo "#define USE_BLOCKING_RANDOM 1" >>confdefs.h
3316 # Check whether --enable-minimal was given.
3317 if test "${enable_minimal+set}" = set; then :
3318 enableval=$enable_minimal;
3319 if test "x$enableval" = "xyes"; then :
3321 enable_minimal="yes"
3322 SODIUM_LIBRARY_MINIMAL_DEF="#define SODIUM_LIBRARY_MINIMAL 1"
3324 $as_echo "#define MINIMAL 1" >>confdefs.h
3327 else
3329 enable_minimal="no"
3333 else
3335 enable_minimal="no"
3339 if test x$enable_minimal = xyes; then
3340 MINIMAL_TRUE=
3341 MINIMAL_FALSE='#'
3342 else
3343 MINIMAL_TRUE='#'
3344 MINIMAL_FALSE=
3350 # Check whether --with-pthreads was given.
3351 if test "${with_pthreads+set}" = set; then :
3352 withval=$with_pthreads;
3353 else
3354 withval="yes"
3358 DEPDIR="${am__leading_dot}deps"
3360 ac_config_commands="$ac_config_commands depfiles"
3363 am_make=${MAKE-make}
3364 cat > confinc << 'END'
3365 am__doit:
3366 @echo this is the am__doit target
3367 .PHONY: am__doit
3369 # If we don't find an include directive, just comment out the code.
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3371 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3372 am__include="#"
3373 am__quote=
3374 _am_result=none
3375 # First try GNU make style include.
3376 echo "include confinc" > confmf
3377 # Ignore all kinds of additional output from 'make'.
3378 case `$am_make -s -f confmf 2> /dev/null` in #(
3379 *the\ am__doit\ target*)
3380 am__include=include
3381 am__quote=
3382 _am_result=GNU
3384 esac
3385 # Now try BSD make style include.
3386 if test "$am__include" = "#"; then
3387 echo '.include "confinc"' > confmf
3388 case `$am_make -s -f confmf 2> /dev/null` in #(
3389 *the\ am__doit\ target*)
3390 am__include=.include
3391 am__quote="\""
3392 _am_result=BSD
3394 esac
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3399 $as_echo "$_am_result" >&6; }
3400 rm -f confinc confmf
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 if test -n "$ac_tool_prefix"; then
3408 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3409 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_CC+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3429 done
3430 done
3431 IFS=$as_save_IFS
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3446 if test -z "$ac_cv_prog_CC"; then
3447 ac_ct_CC=$CC
3448 # Extract the first word of "gcc", so it can be a program name with args.
3449 set dummy gcc; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 if test -n "$ac_ct_CC"; then
3456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_ac_ct_CC="gcc"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 break 2
3469 done
3470 done
3471 IFS=$as_save_IFS
3475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3476 if test -n "$ac_ct_CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3478 $as_echo "$ac_ct_CC" >&6; }
3479 else
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3484 if test "x$ac_ct_CC" = x; then
3485 CC=""
3486 else
3487 case $cross_compiling:$ac_tool_warned in
3488 yes:)
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3491 ac_tool_warned=yes ;;
3492 esac
3493 CC=$ac_ct_CC
3495 else
3496 CC="$ac_cv_prog_CC"
3499 if test -z "$CC"; then
3500 if test -n "$ac_tool_prefix"; then
3501 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3502 set dummy ${ac_tool_prefix}cc; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_CC+:} false; then :
3506 $as_echo_n "(cached) " >&6
3507 else
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC="$CC" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3514 IFS=$as_save_IFS
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_CC="${ac_tool_prefix}cc"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 break 2
3522 done
3523 done
3524 IFS=$as_save_IFS
3528 CC=$ac_cv_prog_CC
3529 if test -n "$CC"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3532 else
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3540 if test -z "$CC"; then
3541 # Extract the first word of "cc", so it can be a program name with args.
3542 set dummy cc; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if ${ac_cv_prog_CC+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3548 if test -n "$CC"; then
3549 ac_cv_prog_CC="$CC" # Let the user override the test.
3550 else
3551 ac_prog_rejected=no
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3560 ac_prog_rejected=yes
3561 continue
3563 ac_cv_prog_CC="cc"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3567 done
3568 done
3569 IFS=$as_save_IFS
3571 if test $ac_prog_rejected = yes; then
3572 # We found a bogon in the path, so make sure we never use it.
3573 set dummy $ac_cv_prog_CC
3574 shift
3575 if test $# != 0; then
3576 # We chose a different compiler from the bogus one.
3577 # However, it has the same basename, so the bogon will be chosen
3578 # first if we set CC to just the basename; use the full file name.
3579 shift
3580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3585 CC=$ac_cv_prog_CC
3586 if test -n "$CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588 $as_echo "$CC" >&6; }
3589 else
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3596 if test -z "$CC"; then
3597 if test -n "$ac_tool_prefix"; then
3598 for ac_prog in cl.exe
3600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if ${ac_cv_prog_CC+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 if test -n "$CC"; then
3608 ac_cv_prog_CC="$CC" # Let the user override the test.
3609 else
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3613 IFS=$as_save_IFS
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 break 2
3621 done
3622 done
3623 IFS=$as_save_IFS
3627 CC=$ac_cv_prog_CC
3628 if test -n "$CC"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3631 else
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3637 test -n "$CC" && break
3638 done
3640 if test -z "$CC"; then
3641 ac_ct_CC=$CC
3642 for ac_prog in cl.exe
3644 # Extract the first word of "$ac_prog", so it can be a program name with args.
3645 set dummy $ac_prog; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -n "$ac_ct_CC"; then
3652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_ac_ct_CC="$ac_prog"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3665 done
3666 done
3667 IFS=$as_save_IFS
3671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3672 if test -n "$ac_ct_CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3674 $as_echo "$ac_ct_CC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3681 test -n "$ac_ct_CC" && break
3682 done
3684 if test "x$ac_ct_CC" = x; then
3685 CC=""
3686 else
3687 case $cross_compiling:$ac_tool_warned in
3688 yes:)
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691 ac_tool_warned=yes ;;
3692 esac
3693 CC=$ac_ct_CC
3700 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error $? "no acceptable C compiler found in \$PATH
3703 See \`config.log' for more details" "$LINENO" 5; }
3705 # Provide some information about the compiler.
3706 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3707 set X $ac_compile
3708 ac_compiler=$2
3709 for ac_option in --version -v -V -qversion; do
3710 { { ac_try="$ac_compiler $ac_option >&5"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3718 ac_status=$?
3719 if test -s conftest.err; then
3720 sed '10a\
3721 ... rest of stderr output deleted ...
3722 10q' conftest.err >conftest.er1
3723 cat conftest.er1 >&5
3725 rm -f conftest.er1 conftest.err
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }
3728 done
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3734 main ()
3738 return 0;
3740 _ACEOF
3741 ac_clean_files_save=$ac_clean_files
3742 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3743 # Try to create an executable without -o first, disregard a.out.
3744 # It will help us diagnose broken compilers, and finding out an intuition
3745 # of exeext.
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3747 $as_echo_n "checking whether the C compiler works... " >&6; }
3748 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3750 # The possible output files:
3751 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3753 ac_rmfiles=
3754 for ac_file in $ac_files
3756 case $ac_file in
3757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3758 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3759 esac
3760 done
3761 rm -f $ac_rmfiles
3763 if { { ac_try="$ac_link_default"
3764 case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_link_default") 2>&5
3771 ac_status=$?
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }; then :
3774 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3775 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3776 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3777 # so that the user can short-circuit this test for compilers unknown to
3778 # Autoconf.
3779 for ac_file in $ac_files ''
3781 test -f "$ac_file" || continue
3782 case $ac_file in
3783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3785 [ab].out )
3786 # We found the default executable, but exeext='' is most
3787 # certainly right.
3788 break;;
3789 *.* )
3790 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3791 then :; else
3792 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3794 # We set ac_cv_exeext here because the later test for it is not
3795 # safe: cross compilers may not add the suffix if given an `-o'
3796 # argument, so we may need to know it at that point already.
3797 # Even if this section looks crufty: it has the advantage of
3798 # actually working.
3799 break;;
3801 break;;
3802 esac
3803 done
3804 test "$ac_cv_exeext" = no && ac_cv_exeext=
3806 else
3807 ac_file=''
3809 if test -z "$ac_file"; then :
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error 77 "C compiler cannot create executables
3818 See \`config.log' for more details" "$LINENO" 5; }
3819 else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3821 $as_echo "yes" >&6; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3824 $as_echo_n "checking for C compiler default output file name... " >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3826 $as_echo "$ac_file" >&6; }
3827 ac_exeext=$ac_cv_exeext
3829 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3830 ac_clean_files=$ac_clean_files_save
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3832 $as_echo_n "checking for suffix of executables... " >&6; }
3833 if { { ac_try="$ac_link"
3834 case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837 esac
3838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839 $as_echo "$ac_try_echo"; } >&5
3840 (eval "$ac_link") 2>&5
3841 ac_status=$?
3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }; then :
3844 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3845 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3846 # work properly (i.e., refer to `conftest.exe'), while it won't with
3847 # `rm'.
3848 for ac_file in conftest.exe conftest conftest.*; do
3849 test -f "$ac_file" || continue
3850 case $ac_file in
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3852 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3853 break;;
3854 * ) break;;
3855 esac
3856 done
3857 else
3858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3861 See \`config.log' for more details" "$LINENO" 5; }
3863 rm -f conftest conftest$ac_cv_exeext
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3865 $as_echo "$ac_cv_exeext" >&6; }
3867 rm -f conftest.$ac_ext
3868 EXEEXT=$ac_cv_exeext
3869 ac_exeext=$EXEEXT
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872 #include <stdio.h>
3874 main ()
3876 FILE *f = fopen ("conftest.out", "w");
3877 return ferror (f) || fclose (f) != 0;
3880 return 0;
3882 _ACEOF
3883 ac_clean_files="$ac_clean_files conftest.out"
3884 # Check that the compiler produces executables we can run. If not, either
3885 # the compiler is broken, or we cross compile.
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3887 $as_echo_n "checking whether we are cross compiling... " >&6; }
3888 if test "$cross_compiling" != yes; then
3889 { { ac_try="$ac_link"
3890 case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895 $as_echo "$ac_try_echo"; } >&5
3896 (eval "$ac_link") 2>&5
3897 ac_status=$?
3898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899 test $ac_status = 0; }
3900 if { ac_try='./conftest$ac_cv_exeext'
3901 { { case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_try") 2>&5
3908 ac_status=$?
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }; }; then
3911 cross_compiling=no
3912 else
3913 if test "$cross_compiling" = maybe; then
3914 cross_compiling=yes
3915 else
3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918 as_fn_error $? "cannot run C compiled programs.
3919 If you meant to cross compile, use \`--host'.
3920 See \`config.log' for more details" "$LINENO" 5; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3925 $as_echo "$cross_compiling" >&6; }
3927 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3928 ac_clean_files=$ac_clean_files_save
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3930 $as_echo_n "checking for suffix of object files... " >&6; }
3931 if ${ac_cv_objext+:} false; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3938 main ()
3942 return 0;
3944 _ACEOF
3945 rm -f conftest.o conftest.obj
3946 if { { ac_try="$ac_compile"
3947 case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950 esac
3951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952 $as_echo "$ac_try_echo"; } >&5
3953 (eval "$ac_compile") 2>&5
3954 ac_status=$?
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }; then :
3957 for ac_file in conftest.o conftest.obj conftest.*; do
3958 test -f "$ac_file" || continue;
3959 case $ac_file in
3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3961 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3962 break;;
3963 esac
3964 done
3965 else
3966 $as_echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error $? "cannot compute suffix of object files: cannot compile
3972 See \`config.log' for more details" "$LINENO" 5; }
3974 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3977 $as_echo "$ac_cv_objext" >&6; }
3978 OBJEXT=$ac_cv_objext
3979 ac_objext=$OBJEXT
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3981 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3982 if ${ac_cv_c_compiler_gnu+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3989 main ()
3991 #ifndef __GNUC__
3992 choke me
3993 #endif
3996 return 0;
3998 _ACEOF
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000 ac_compiler_gnu=yes
4001 else
4002 ac_compiler_gnu=no
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4009 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4010 if test $ac_compiler_gnu = yes; then
4011 GCC=yes
4012 else
4013 GCC=
4015 ac_test_CFLAGS=${CFLAGS+set}
4016 ac_save_CFLAGS=$CFLAGS
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4018 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4019 if ${ac_cv_prog_cc_g+:} false; then :
4020 $as_echo_n "(cached) " >&6
4021 else
4022 ac_save_c_werror_flag=$ac_c_werror_flag
4023 ac_c_werror_flag=yes
4024 ac_cv_prog_cc_g=no
4025 CFLAGS="-g"
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4030 main ()
4034 return 0;
4036 _ACEOF
4037 if ac_fn_c_try_compile "$LINENO"; then :
4038 ac_cv_prog_cc_g=yes
4039 else
4040 CFLAGS=""
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4045 main ()
4049 return 0;
4051 _ACEOF
4052 if ac_fn_c_try_compile "$LINENO"; then :
4054 else
4055 ac_c_werror_flag=$ac_save_c_werror_flag
4056 CFLAGS="-g"
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4061 main ()
4065 return 0;
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_prog_cc_g=yes
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 ac_c_werror_flag=$ac_save_c_werror_flag
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4079 $as_echo "$ac_cv_prog_cc_g" >&6; }
4080 if test "$ac_test_CFLAGS" = set; then
4081 CFLAGS=$ac_save_CFLAGS
4082 elif test $ac_cv_prog_cc_g = yes; then
4083 if test "$GCC" = yes; then
4084 CFLAGS="-g -O2"
4085 else
4086 CFLAGS="-g"
4088 else
4089 if test "$GCC" = yes; then
4090 CFLAGS="-O2"
4091 else
4092 CFLAGS=
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4096 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4097 if ${ac_cv_prog_cc_c89+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 ac_cv_prog_cc_c89=no
4101 ac_save_CC=$CC
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104 #include <stdarg.h>
4105 #include <stdio.h>
4106 struct stat;
4107 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4108 struct buf { int x; };
4109 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4110 static char *e (p, i)
4111 char **p;
4112 int i;
4114 return p[i];
4116 static char *f (char * (*g) (char **, int), char **p, ...)
4118 char *s;
4119 va_list v;
4120 va_start (v,p);
4121 s = g (p, va_arg (v,int));
4122 va_end (v);
4123 return s;
4126 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4127 function prototypes and stuff, but not '\xHH' hex character constants.
4128 These don't provoke an error unfortunately, instead are silently treated
4129 as 'x'. The following induces an error, until -std is added to get
4130 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4131 array size at least. It's necessary to write '\x00'==0 to get something
4132 that's true only with -std. */
4133 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4135 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4136 inside strings and character constants. */
4137 #define FOO(x) 'x'
4138 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4140 int test (int i, double x);
4141 struct s1 {int (*f) (int a);};
4142 struct s2 {int (*f) (double a);};
4143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4144 int argc;
4145 char **argv;
4147 main ()
4149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4151 return 0;
4153 _ACEOF
4154 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4155 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4157 CC="$ac_save_CC $ac_arg"
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_cv_prog_cc_c89=$ac_arg
4161 rm -f core conftest.err conftest.$ac_objext
4162 test "x$ac_cv_prog_cc_c89" != "xno" && break
4163 done
4164 rm -f conftest.$ac_ext
4165 CC=$ac_save_CC
4168 # AC_CACHE_VAL
4169 case "x$ac_cv_prog_cc_c89" in
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4172 $as_echo "none needed" >&6; } ;;
4173 xno)
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4175 $as_echo "unsupported" >&6; } ;;
4177 CC="$CC $ac_cv_prog_cc_c89"
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4179 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4180 esac
4181 if test "x$ac_cv_prog_cc_c89" != xno; then :
4185 ac_ext=c
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191 ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4197 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4198 if ${am_cv_prog_cc_c_o+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4205 main ()
4209 return 0;
4211 _ACEOF
4212 # Make sure it works both with $CC and with simple cc.
4213 # Following AC_PROG_CC_C_O, we do the test twice because some
4214 # compilers refuse to overwrite an existing .o file with -o,
4215 # though they will create one.
4216 am_cv_prog_cc_c_o=yes
4217 for am_i in 1 2; do
4218 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4219 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } \
4223 && test -f conftest2.$ac_objext; then
4224 : OK
4225 else
4226 am_cv_prog_cc_c_o=no
4227 break
4229 done
4230 rm -f core conftest*
4231 unset am_i
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4234 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4235 if test "$am_cv_prog_cc_c_o" != yes; then
4236 # Losing compiler, so override with the script.
4237 # FIXME: It is wrong to rewrite CC.
4238 # But if we don't then we get into trouble of one sort or another.
4239 # A longer-term fix would be to have automake use am__CC in this case,
4240 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4241 CC="$am_aux_dir/compile $CC"
4243 ac_ext=c
4244 ac_cpp='$CPP $CPPFLAGS'
4245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250 depcc="$CC" am_compiler_list=
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4253 $as_echo_n "checking dependency style of $depcc... " >&6; }
4254 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4258 # We make a subdir and do the tests there. Otherwise we can end up
4259 # making bogus files that we don't know about and never remove. For
4260 # instance it was reported that on HP-UX the gcc test will end up
4261 # making a dummy file named 'D' -- because '-MD' means "put the output
4262 # in D".
4263 rm -rf conftest.dir
4264 mkdir conftest.dir
4265 # Copy depcomp to subdir because otherwise we won't find it if we're
4266 # using a relative directory.
4267 cp "$am_depcomp" conftest.dir
4268 cd conftest.dir
4269 # We will build objects and dependencies in a subdirectory because
4270 # it helps to detect inapplicable dependency modes. For instance
4271 # both Tru64's cc and ICC support -MD to output dependencies as a
4272 # side effect of compilation, but ICC will put the dependencies in
4273 # the current directory while Tru64 will put them in the object
4274 # directory.
4275 mkdir sub
4277 am_cv_CC_dependencies_compiler_type=none
4278 if test "$am_compiler_list" = ""; then
4279 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4281 am__universal=false
4282 case " $depcc " in #(
4283 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4284 esac
4286 for depmode in $am_compiler_list; do
4287 # Setup a source with many dependencies, because some compilers
4288 # like to wrap large dependency lists on column 80 (with \), and
4289 # we should not choose a depcomp mode which is confused by this.
4291 # We need to recreate these files for each test, as the compiler may
4292 # overwrite some of them when testing with obscure command lines.
4293 # This happens at least with the AIX C compiler.
4294 : > sub/conftest.c
4295 for i in 1 2 3 4 5 6; do
4296 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4297 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4298 # Solaris 10 /bin/sh.
4299 echo '/* dummy */' > sub/conftst$i.h
4300 done
4301 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4303 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4304 # mode. It turns out that the SunPro C++ compiler does not properly
4305 # handle '-M -o', and we need to detect this. Also, some Intel
4306 # versions had trouble with output in subdirs.
4307 am__obj=sub/conftest.${OBJEXT-o}
4308 am__minus_obj="-o $am__obj"
4309 case $depmode in
4310 gcc)
4311 # This depmode causes a compiler race in universal mode.
4312 test "$am__universal" = false || continue
4314 nosideeffect)
4315 # After this tag, mechanisms are not by side-effect, so they'll
4316 # only be used when explicitly requested.
4317 if test "x$enable_dependency_tracking" = xyes; then
4318 continue
4319 else
4320 break
4323 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4324 # This compiler won't grok '-c -o', but also, the minuso test has
4325 # not run yet. These depmodes are late enough in the game, and
4326 # so weak that their functioning should not be impacted.
4327 am__obj=conftest.${OBJEXT-o}
4328 am__minus_obj=
4330 none) break ;;
4331 esac
4332 if depmode=$depmode \
4333 source=sub/conftest.c object=$am__obj \
4334 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4335 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4336 >/dev/null 2>conftest.err &&
4337 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4338 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4339 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4340 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4341 # icc doesn't choke on unknown options, it will just issue warnings
4342 # or remarks (even with -Werror). So we grep stderr for any message
4343 # that says an option was ignored or not supported.
4344 # When given -MP, icc 7.0 and 7.1 complain thusly:
4345 # icc: Command line warning: ignoring option '-M'; no argument required
4346 # The diagnosis changed in icc 8.0:
4347 # icc: Command line remark: option '-MP' not supported
4348 if (grep 'ignoring option' conftest.err ||
4349 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4350 am_cv_CC_dependencies_compiler_type=$depmode
4351 break
4354 done
4356 cd ..
4357 rm -rf conftest.dir
4358 else
4359 am_cv_CC_dependencies_compiler_type=none
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4364 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4365 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4368 test "x$enable_dependency_tracking" != xno \
4369 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4370 am__fastdepCC_TRUE=
4371 am__fastdepCC_FALSE='#'
4372 else
4373 am__fastdepCC_TRUE='#'
4374 am__fastdepCC_FALSE=
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4379 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4380 if ${ac_cv_path_SED+:} false; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4384 for ac_i in 1 2 3 4 5 6 7; do
4385 ac_script="$ac_script$as_nl$ac_script"
4386 done
4387 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4388 { ac_script=; unset ac_script;}
4389 if test -z "$SED"; then
4390 ac_path_SED_found=false
4391 # Loop through the user's path and test for each of PROGNAME-LIST
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_prog in sed gsed; do
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4400 as_fn_executable_p "$ac_path_SED" || continue
4401 # Check for GNU ac_path_SED and select it if it is found.
4402 # Check for GNU $ac_path_SED
4403 case `"$ac_path_SED" --version 2>&1` in
4404 *GNU*)
4405 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4407 ac_count=0
4408 $as_echo_n 0123456789 >"conftest.in"
4409 while :
4411 cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 mv "conftest.tmp" "conftest.in"
4413 cp "conftest.in" "conftest.nl"
4414 $as_echo '' >> "conftest.nl"
4415 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417 as_fn_arith $ac_count + 1 && ac_count=$as_val
4418 if test $ac_count -gt ${ac_path_SED_max-0}; then
4419 # Best one so far, save it but keep looking for a better one
4420 ac_cv_path_SED="$ac_path_SED"
4421 ac_path_SED_max=$ac_count
4423 # 10*(2^10) chars as input seems more than enough
4424 test $ac_count -gt 10 && break
4425 done
4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4427 esac
4429 $ac_path_SED_found && break 3
4430 done
4431 done
4432 done
4433 IFS=$as_save_IFS
4434 if test -z "$ac_cv_path_SED"; then
4435 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4437 else
4438 ac_cv_path_SED=$SED
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4443 $as_echo "$ac_cv_path_SED" >&6; }
4444 SED="$ac_cv_path_SED"
4445 rm -f conftest.sed
4448 ac_ext=c
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4455 # On Suns, sometimes $CPP names a directory.
4456 if test -n "$CPP" && test -d "$CPP"; then
4457 CPP=
4459 if test -z "$CPP"; then
4460 if ${ac_cv_prog_CPP+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 # Double quotes because CPP needs to be expanded
4464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4466 ac_preproc_ok=false
4467 for ac_c_preproc_warn_flag in '' yes
4469 # Use a header file that comes with gcc, so configuring glibc
4470 # with a fresh cross-compiler works.
4471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4472 # <limits.h> exists even on freestanding compilers.
4473 # On the NeXT, cc -E runs the code through the compiler's parser,
4474 # not just through cpp. "Syntax error" is here to catch this case.
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4477 #ifdef __STDC__
4478 # include <limits.h>
4479 #else
4480 # include <assert.h>
4481 #endif
4482 Syntax error
4483 _ACEOF
4484 if ac_fn_c_try_cpp "$LINENO"; then :
4486 else
4487 # Broken: fails on valid input.
4488 continue
4490 rm -f conftest.err conftest.i conftest.$ac_ext
4492 # OK, works on sane cases. Now check whether nonexistent headers
4493 # can be detected and how.
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #include <ac_nonexistent.h>
4497 _ACEOF
4498 if ac_fn_c_try_cpp "$LINENO"; then :
4499 # Broken: success on invalid input.
4500 continue
4501 else
4502 # Passes both tests.
4503 ac_preproc_ok=:
4504 break
4506 rm -f conftest.err conftest.i conftest.$ac_ext
4508 done
4509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4510 rm -f conftest.i conftest.err conftest.$ac_ext
4511 if $ac_preproc_ok; then :
4512 break
4515 done
4516 ac_cv_prog_CPP=$CPP
4519 CPP=$ac_cv_prog_CPP
4520 else
4521 ac_cv_prog_CPP=$CPP
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4524 $as_echo "$CPP" >&6; }
4525 ac_preproc_ok=false
4526 for ac_c_preproc_warn_flag in '' yes
4528 # Use a header file that comes with gcc, so configuring glibc
4529 # with a fresh cross-compiler works.
4530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 # <limits.h> exists even on freestanding compilers.
4532 # On the NeXT, cc -E runs the code through the compiler's parser,
4533 # not just through cpp. "Syntax error" is here to catch this case.
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536 #ifdef __STDC__
4537 # include <limits.h>
4538 #else
4539 # include <assert.h>
4540 #endif
4541 Syntax error
4542 _ACEOF
4543 if ac_fn_c_try_cpp "$LINENO"; then :
4545 else
4546 # Broken: fails on valid input.
4547 continue
4549 rm -f conftest.err conftest.i conftest.$ac_ext
4551 # OK, works on sane cases. Now check whether nonexistent headers
4552 # can be detected and how.
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #include <ac_nonexistent.h>
4556 _ACEOF
4557 if ac_fn_c_try_cpp "$LINENO"; then :
4558 # Broken: success on invalid input.
4559 continue
4560 else
4561 # Passes both tests.
4562 ac_preproc_ok=:
4563 break
4565 rm -f conftest.err conftest.i conftest.$ac_ext
4567 done
4568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4569 rm -f conftest.i conftest.err conftest.$ac_ext
4570 if $ac_preproc_ok; then :
4572 else
4573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4576 See \`config.log' for more details" "$LINENO" 5; }
4579 ac_ext=c
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4587 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4588 if ${ac_cv_path_GREP+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if test -z "$GREP"; then
4592 ac_path_GREP_found=false
4593 # Loop through the user's path and test for each of PROGNAME-LIST
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_prog in grep ggrep; do
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4602 as_fn_executable_p "$ac_path_GREP" || continue
4603 # Check for GNU ac_path_GREP and select it if it is found.
4604 # Check for GNU $ac_path_GREP
4605 case `"$ac_path_GREP" --version 2>&1` in
4606 *GNU*)
4607 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4609 ac_count=0
4610 $as_echo_n 0123456789 >"conftest.in"
4611 while :
4613 cat "conftest.in" "conftest.in" >"conftest.tmp"
4614 mv "conftest.tmp" "conftest.in"
4615 cp "conftest.in" "conftest.nl"
4616 $as_echo 'GREP' >> "conftest.nl"
4617 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4619 as_fn_arith $ac_count + 1 && ac_count=$as_val
4620 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4621 # Best one so far, save it but keep looking for a better one
4622 ac_cv_path_GREP="$ac_path_GREP"
4623 ac_path_GREP_max=$ac_count
4625 # 10*(2^10) chars as input seems more than enough
4626 test $ac_count -gt 10 && break
4627 done
4628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4629 esac
4631 $ac_path_GREP_found && break 3
4632 done
4633 done
4634 done
4635 IFS=$as_save_IFS
4636 if test -z "$ac_cv_path_GREP"; then
4637 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4639 else
4640 ac_cv_path_GREP=$GREP
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4645 $as_echo "$ac_cv_path_GREP" >&6; }
4646 GREP="$ac_cv_path_GREP"
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4650 $as_echo_n "checking for egrep... " >&6; }
4651 if ${ac_cv_path_EGREP+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4655 then ac_cv_path_EGREP="$GREP -E"
4656 else
4657 if test -z "$EGREP"; then
4658 ac_path_EGREP_found=false
4659 # Loop through the user's path and test for each of PROGNAME-LIST
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_prog in egrep; do
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4668 as_fn_executable_p "$ac_path_EGREP" || continue
4669 # Check for GNU ac_path_EGREP and select it if it is found.
4670 # Check for GNU $ac_path_EGREP
4671 case `"$ac_path_EGREP" --version 2>&1` in
4672 *GNU*)
4673 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4675 ac_count=0
4676 $as_echo_n 0123456789 >"conftest.in"
4677 while :
4679 cat "conftest.in" "conftest.in" >"conftest.tmp"
4680 mv "conftest.tmp" "conftest.in"
4681 cp "conftest.in" "conftest.nl"
4682 $as_echo 'EGREP' >> "conftest.nl"
4683 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685 as_fn_arith $ac_count + 1 && ac_count=$as_val
4686 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4687 # Best one so far, save it but keep looking for a better one
4688 ac_cv_path_EGREP="$ac_path_EGREP"
4689 ac_path_EGREP_max=$ac_count
4691 # 10*(2^10) chars as input seems more than enough
4692 test $ac_count -gt 10 && break
4693 done
4694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695 esac
4697 $ac_path_EGREP_found && break 3
4698 done
4699 done
4700 done
4701 IFS=$as_save_IFS
4702 if test -z "$ac_cv_path_EGREP"; then
4703 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4705 else
4706 ac_cv_path_EGREP=$EGREP
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4712 $as_echo "$ac_cv_path_EGREP" >&6; }
4713 EGREP="$ac_cv_path_EGREP"
4716 if test "x$withval" = "xyes"; then :
4722 ac_ext=c
4723 ac_cpp='$CPP $CPPFLAGS'
4724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4728 ax_pthread_ok=no
4730 # We used to check for pthread.h first, but this fails if pthread.h
4731 # requires special compiler flags (e.g. on Tru64 or Sequent).
4732 # It gets checked for in the link test anyway.
4734 # First of all, check if the user has set any of the PTHREAD_LIBS,
4735 # etcetera environment variables, and if threads linking works using
4736 # them:
4737 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
4738 ax_pthread_save_CC="$CC"
4739 ax_pthread_save_CFLAGS="$CFLAGS"
4740 ax_pthread_save_LIBS="$LIBS"
4741 if test "x$PTHREAD_CC" != "x"; then :
4742 CC="$PTHREAD_CC"
4744 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4745 LIBS="$PTHREAD_LIBS $LIBS"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
4747 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4751 /* Override any GCC internal prototype to avoid an error.
4752 Use char because int might match the return type of a GCC
4753 builtin and then its argument prototype would still apply. */
4754 #ifdef __cplusplus
4755 extern "C"
4756 #endif
4757 char pthread_join ();
4759 main ()
4761 return pthread_join ();
4763 return 0;
4765 _ACEOF
4766 if ac_fn_c_try_link "$LINENO"; then :
4767 ax_pthread_ok=yes
4769 rm -f core conftest.err conftest.$ac_objext \
4770 conftest$ac_exeext conftest.$ac_ext
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
4772 $as_echo "$ax_pthread_ok" >&6; }
4773 if test "x$ax_pthread_ok" = "xno"; then
4774 PTHREAD_LIBS=""
4775 PTHREAD_CFLAGS=""
4777 CC="$ax_pthread_save_CC"
4778 CFLAGS="$ax_pthread_save_CFLAGS"
4779 LIBS="$ax_pthread_save_LIBS"
4782 # We must check for the threads library under a number of different
4783 # names; the ordering is very important because some systems
4784 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4785 # libraries is broken (non-POSIX).
4787 # Create a list of thread flags to try. Items starting with a "-" are
4788 # C compiler flags, and other items are library names, except for "none"
4789 # which indicates that we try without any flags at all, and "pthread-config"
4790 # which is a program returning the flags for the Pth emulation library.
4792 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4794 # The ordering *is* (sometimes) important. Some notes on the
4795 # individual items follow:
4797 # pthreads: AIX (must check this before -lpthread)
4798 # none: in case threads are in libc; should be tried before -Kthread and
4799 # other compiler flags to prevent continual compiler warnings
4800 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4801 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
4802 # (Note: HP C rejects this with "bad form for `-t' option")
4803 # -pthreads: Solaris/gcc (Note: HP C also rejects)
4804 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4805 # doesn't hurt to check since this sometimes defines pthreads and
4806 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
4807 # is present but should not be used directly; and before -mthreads,
4808 # because the compiler interprets this as "-mt" + "-hreads")
4809 # -mthreads: Mingw32/gcc, Lynx/gcc
4810 # pthread: Linux, etcetera
4811 # --thread-safe: KAI C++
4812 # pthread-config: use pthread-config program (for GNU Pth library)
4814 case $host_os in
4816 freebsd*)
4818 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4819 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4821 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
4824 hpux*)
4826 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
4827 # multi-threading and also sets -lpthread."
4829 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
4832 openedition*)
4834 # IBM z/OS requires a feature-test macro to be defined in order to
4835 # enable POSIX threads at all, so give the user a hint if this is
4836 # not set. (We don't define these ourselves, as they can affect
4837 # other portions of the system API in unpredictable ways.)
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4842 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
4843 AX_PTHREAD_ZOS_MISSING
4844 # endif
4846 _ACEOF
4847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4848 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
4850 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
4852 rm -f conftest*
4856 solaris*)
4858 # On Solaris (at least, for some versions), libc contains stubbed
4859 # (non-functional) versions of the pthreads routines, so link-based
4860 # tests will erroneously succeed. (N.B.: The stubs are missing
4861 # pthread_cleanup_push, or rather a function called by this macro,
4862 # so we could check for that, but who knows whether they'll stub
4863 # that too in a future libc.) So we'll check first for the
4864 # standard Solaris way of linking pthreads (-mt -lpthread).
4866 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
4868 esac
4870 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
4872 if test "x$GCC" = "xyes"; then :
4873 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
4876 # The presence of a feature test macro requesting re-entrant function
4877 # definitions is, on some systems, a strong hint that pthreads support is
4878 # correctly enabled
4880 case $host_os in
4881 darwin* | hpux* | linux* | osf* | solaris*)
4882 ax_pthread_check_macro="_REENTRANT"
4885 aix*)
4886 ax_pthread_check_macro="_THREAD_SAFE"
4890 ax_pthread_check_macro="--"
4892 esac
4893 if test "x$ax_pthread_check_macro" = "x--"; then :
4894 ax_pthread_check_cond=0
4895 else
4896 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
4899 # Are we compiling with Clang?
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
4902 $as_echo_n "checking whether $CC is Clang... " >&6; }
4903 if ${ax_cv_PTHREAD_CLANG+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 ax_cv_PTHREAD_CLANG=no
4907 # Note that Autoconf sets GCC=yes for Clang as well as GCC
4908 if test "x$GCC" = "xyes"; then
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
4912 # if defined(__clang__) && defined(__llvm__)
4913 AX_PTHREAD_CC_IS_CLANG
4914 # endif
4916 _ACEOF
4917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4918 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
4919 ax_cv_PTHREAD_CLANG=yes
4921 rm -f conftest*
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
4927 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
4928 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
4930 ax_pthread_clang_warning=no
4932 # Clang needs special handling, because older versions handle the -pthread
4933 # option in a rather... idiosyncratic way
4935 if test "x$ax_pthread_clang" = "xyes"; then
4937 # Clang takes -pthread; it has never supported any other flag
4939 # (Note 1: This will need to be revisited if a system that Clang
4940 # supports has POSIX threads in a separate library. This tends not
4941 # to be the way of modern systems, but it's conceivable.)
4943 # (Note 2: On some systems, notably Darwin, -pthread is not needed
4944 # to get POSIX threads support; the API is always present and
4945 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
4946 # -pthread does define _REENTRANT, and while the Darwin headers
4947 # ignore this macro, third-party headers might not.)
4949 PTHREAD_CFLAGS="-pthread"
4950 PTHREAD_LIBS=
4952 ax_pthread_ok=yes
4954 # However, older versions of Clang make a point of warning the user
4955 # that, in an invocation where only linking and no compilation is
4956 # taking place, the -pthread option has no effect ("argument unused
4957 # during compilation"). They expect -pthread to be passed in only
4958 # when source code is being compiled.
4960 # Problem is, this is at odds with the way Automake and most other
4961 # C build frameworks function, which is that the same flags used in
4962 # compilation (CFLAGS) are also used in linking. Many systems
4963 # supported by AX_PTHREAD require exactly this for POSIX threads
4964 # support, and in fact it is often not straightforward to specify a
4965 # flag that is used only in the compilation phase and not in
4966 # linking. Such a scenario is extremely rare in practice.
4968 # Even though use of the -pthread flag in linking would only print
4969 # a warning, this can be a nuisance for well-run software projects
4970 # that build with -Werror. So if the active version of Clang has
4971 # this misfeature, we search for an option to squash it.
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
4974 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
4975 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
4979 # Create an alternate version of $ac_link that compiles and
4980 # links in two steps (.c -> .o, .o -> exe) instead of one
4981 # (.c -> exe), because the warning occurs only in the second
4982 # step
4983 ax_pthread_save_ac_link="$ac_link"
4984 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
4985 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
4986 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
4987 ax_pthread_save_CFLAGS="$CFLAGS"
4988 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
4989 if test "x$ax_pthread_try" = "xunknown"; then :
4990 break
4992 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
4993 ac_link="$ax_pthread_save_ac_link"
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 int main(void){return 0;}
4997 _ACEOF
4998 if ac_fn_c_try_link "$LINENO"; then :
4999 ac_link="$ax_pthread_2step_ac_link"
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 int main(void){return 0;}
5003 _ACEOF
5004 if ac_fn_c_try_link "$LINENO"; then :
5005 break
5007 rm -f core conftest.err conftest.$ac_objext \
5008 conftest$ac_exeext conftest.$ac_ext
5011 rm -f core conftest.err conftest.$ac_objext \
5012 conftest$ac_exeext conftest.$ac_ext
5013 done
5014 ac_link="$ax_pthread_save_ac_link"
5015 CFLAGS="$ax_pthread_save_CFLAGS"
5016 if test "x$ax_pthread_try" = "x"; then :
5017 ax_pthread_try=no
5019 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
5023 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
5025 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
5026 no | unknown) ;;
5027 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
5028 esac
5030 fi # $ax_pthread_clang = yes
5032 if test "x$ax_pthread_ok" = "xno"; then
5033 for ax_pthread_try_flag in $ax_pthread_flags; do
5035 case $ax_pthread_try_flag in
5036 none)
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5038 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
5041 -mt,pthread)
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
5043 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
5044 PTHREAD_CFLAGS="-mt"
5045 PTHREAD_LIBS="-lpthread"
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
5050 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
5051 PTHREAD_CFLAGS="$ax_pthread_try_flag"
5054 pthread-config)
5055 # Extract the first word of "pthread-config", so it can be a program name with args.
5056 set dummy pthread-config; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_prog_ax_pthread_config+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$ax_pthread_config"; then
5063 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072 ac_cv_prog_ax_pthread_config="yes"
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5076 done
5077 done
5078 IFS=$as_save_IFS
5080 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
5083 ax_pthread_config=$ac_cv_prog_ax_pthread_config
5084 if test -n "$ax_pthread_config"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
5086 $as_echo "$ax_pthread_config" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5093 if test "x$ax_pthread_config" = "xno"; then :
5094 continue
5096 PTHREAD_CFLAGS="`pthread-config --cflags`"
5097 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
5102 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
5103 PTHREAD_LIBS="-l$ax_pthread_try_flag"
5105 esac
5107 ax_pthread_save_CFLAGS="$CFLAGS"
5108 ax_pthread_save_LIBS="$LIBS"
5109 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5110 LIBS="$PTHREAD_LIBS $LIBS"
5112 # Check for various functions. We must include pthread.h,
5113 # since some functions may be macros. (On the Sequent, we
5114 # need a special flag -Kthread to make this header compile.)
5115 # We check for pthread_join because it is in -lpthread on IRIX
5116 # while pthread_create is in libc. We check for pthread_attr_init
5117 # due to DEC craziness with -lpthreads. We check for
5118 # pthread_cleanup_push because it is one of the few pthread
5119 # functions on Solaris that doesn't have a non-functional libc stub.
5120 # We try pthread_create on general principles.
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 #include <pthread.h>
5125 # if $ax_pthread_check_cond
5126 # error "$ax_pthread_check_macro must be defined"
5127 # endif
5128 static void routine(void *a) { a = 0; }
5129 static void *start_routine(void *a) { return a; }
5131 main ()
5133 pthread_t th; pthread_attr_t attr;
5134 pthread_create(&th, 0, start_routine, 0);
5135 pthread_join(th, 0);
5136 pthread_attr_init(&attr);
5137 pthread_cleanup_push(routine, 0);
5138 pthread_cleanup_pop(0) /* ; */
5140 return 0;
5142 _ACEOF
5143 if ac_fn_c_try_link "$LINENO"; then :
5144 ax_pthread_ok=yes
5146 rm -f core conftest.err conftest.$ac_objext \
5147 conftest$ac_exeext conftest.$ac_ext
5149 CFLAGS="$ax_pthread_save_CFLAGS"
5150 LIBS="$ax_pthread_save_LIBS"
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5153 $as_echo "$ax_pthread_ok" >&6; }
5154 if test "x$ax_pthread_ok" = "xyes"; then :
5155 break
5158 PTHREAD_LIBS=""
5159 PTHREAD_CFLAGS=""
5160 done
5163 # Various other checks:
5164 if test "x$ax_pthread_ok" = "xyes"; then
5165 ax_pthread_save_CFLAGS="$CFLAGS"
5166 ax_pthread_save_LIBS="$LIBS"
5167 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5168 LIBS="$PTHREAD_LIBS $LIBS"
5170 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
5172 $as_echo_n "checking for joinable pthread attribute... " >&6; }
5173 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
5177 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #include <pthread.h>
5182 main ()
5184 int attr = $ax_pthread_attr; return attr /* ; */
5186 return 0;
5188 _ACEOF
5189 if ac_fn_c_try_link "$LINENO"; then :
5190 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
5192 rm -f core conftest.err conftest.$ac_objext \
5193 conftest$ac_exeext conftest.$ac_ext
5194 done
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
5198 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
5199 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
5200 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
5201 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
5203 cat >>confdefs.h <<_ACEOF
5204 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
5205 _ACEOF
5207 ax_pthread_joinable_attr_defined=yes
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
5212 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
5213 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 ax_cv_PTHREAD_SPECIAL_FLAGS=no
5217 case $host_os in
5218 solaris*)
5219 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
5221 esac
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
5225 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
5226 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
5227 test "x$ax_pthread_special_flags_added" != "xyes"; then :
5228 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
5229 ax_pthread_special_flags_added=yes
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
5233 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
5234 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 #include <pthread.h>
5241 main ()
5243 int i = PTHREAD_PRIO_INHERIT;
5245 return 0;
5247 _ACEOF
5248 if ac_fn_c_try_link "$LINENO"; then :
5249 ax_cv_PTHREAD_PRIO_INHERIT=yes
5250 else
5251 ax_cv_PTHREAD_PRIO_INHERIT=no
5253 rm -f core conftest.err conftest.$ac_objext \
5254 conftest$ac_exeext conftest.$ac_ext
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
5258 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
5259 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
5260 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
5262 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
5264 ax_pthread_prio_inherit_defined=yes
5268 CFLAGS="$ax_pthread_save_CFLAGS"
5269 LIBS="$ax_pthread_save_LIBS"
5271 # More AIX lossage: compile with *_r variant
5272 if test "x$GCC" != "xyes"; then
5273 case $host_os in
5274 aix*)
5275 case "x/$CC" in #(
5276 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
5277 #handle absolute path differently from PATH based program lookup
5278 case "x$CC" in #(
5279 x/*) :
5280 if as_fn_executable_p ${CC}_r; then :
5281 PTHREAD_CC="${CC}_r"
5282 fi ;; #(
5283 *) :
5284 for ac_prog in ${CC}_r
5286 # Extract the first word of "$ac_prog", so it can be a program name with args.
5287 set dummy $ac_prog; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 if test -n "$PTHREAD_CC"; then
5294 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5295 else
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303 ac_cv_prog_PTHREAD_CC="$ac_prog"
5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5307 done
5308 done
5309 IFS=$as_save_IFS
5313 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5314 if test -n "$PTHREAD_CC"; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
5316 $as_echo "$PTHREAD_CC" >&6; }
5317 else
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5323 test -n "$PTHREAD_CC" && break
5324 done
5325 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
5327 esac ;; #(
5328 *) :
5330 esac
5332 esac
5336 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
5342 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5343 if test "x$ax_pthread_ok" = "xyes"; then
5346 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
5348 LIBS="$PTHREAD_LIBS $LIBS"
5349 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5350 CC="$PTHREAD_CC"
5352 else
5353 ax_pthread_ok=no
5356 ac_ext=c
5357 ac_cpp='$CPP $CPPFLAGS'
5358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5367 # Check whether --with-safecode was given.
5368 if test "${with_safecode+set}" = set; then :
5369 withval=$with_safecode; if test "x$withval" = "xyes"; then :
5372 : ${SAFECODE_HOME:=/opt/safecode}
5373 LDFLAGS="$LDFLAGS -L${SAFECODE_HOME}/lib"
5374 LIBS="$LIBS -lsc_dbg_rt -lpoolalloc_bitmap -lstdc++"
5375 CFLAGS="$CFLAGS -fmemsafety"
5382 # Check whether --enable-debug was given.
5383 if test "${enable_debug+set}" = set; then :
5384 enableval=$enable_debug;
5385 if test "x$enableval" = "xyes"; then :
5387 if test "x$LX_CFLAGS" = "xNONE"; then :
5389 nxflags=""
5390 for flag in `echo $CFLAGS`; do
5391 case $flag in #(
5392 -O*) :
5393 ;; #(
5394 -g*) :
5395 ;; #(
5396 *) :
5397 as_fn_append nxflags " $flag" ;; #(
5398 *) :
5400 esac
5401 done
5402 CFLAGS="$nxflags -O0 -g3"
5405 CPPFLAGS="$CPPFLAGS -DDEBUG=1"
5412 # Check whether --enable-opt was given.
5413 if test "${enable_opt+set}" = set; then :
5414 enableval=$enable_opt;
5415 if test "x$enableval" = "xyes"; then :
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Ofast" >&5
5418 $as_echo_n "checking whether C compiler accepts -Ofast... " >&6; }
5419 if ${ax_cv_check_cflags___Ofast+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5423 ax_check_save_flags=$CFLAGS
5424 CFLAGS="$CFLAGS -Ofast"
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 #include <stdio.h>
5429 main ()
5431 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5433 return 0;
5435 _ACEOF
5436 if ac_fn_c_try_link "$LINENO"; then :
5437 ax_cv_check_cflags___Ofast=yes
5438 else
5439 ax_cv_check_cflags___Ofast=no
5441 rm -f core conftest.err conftest.$ac_objext \
5442 conftest$ac_exeext conftest.$ac_ext
5443 CFLAGS=$ax_check_save_flags
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Ofast" >&5
5446 $as_echo "$ax_cv_check_cflags___Ofast" >&6; }
5447 if test "x$ax_cv_check_cflags___Ofast" = xyes; then :
5448 CFLAGS="$CFLAGS -Ofast"
5449 else
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=native" >&5
5454 $as_echo_n "checking whether C compiler accepts -march=native... " >&6; }
5455 if ${ax_cv_check_cflags___march_native+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5459 ax_check_save_flags=$CFLAGS
5460 CFLAGS="$CFLAGS -march=native"
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 #include <stdio.h>
5465 main ()
5467 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5469 return 0;
5471 _ACEOF
5472 if ac_fn_c_try_link "$LINENO"; then :
5473 ax_cv_check_cflags___march_native=yes
5474 else
5475 ax_cv_check_cflags___march_native=no
5477 rm -f core conftest.err conftest.$ac_objext \
5478 conftest$ac_exeext conftest.$ac_ext
5479 CFLAGS=$ax_check_save_flags
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___march_native" >&5
5482 $as_echo "$ax_cv_check_cflags___march_native" >&6; }
5483 if test "x$ax_cv_check_cflags___march_native" = xyes; then :
5484 CFLAGS="$CFLAGS -march=native"
5485 else
5498 # Check whether --enable-valgrind was given.
5499 if test "${enable_valgrind+set}" = set; then :
5500 enableval=$enable_valgrind; enable_valgrind=$enableval
5501 else
5502 enable_valgrind=no
5506 if test "$enable_valgrind" != "no"; then :
5508 # Check for Valgrind.
5509 # Extract the first word of "valgrind", so it can be a program name with args.
5510 set dummy valgrind; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_prog_VALGRIND+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 if test -n "$VALGRIND"; then
5517 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
5518 else
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526 ac_cv_prog_VALGRIND="valgrind"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5530 done
5531 done
5532 IFS=$as_save_IFS
5536 VALGRIND=$ac_cv_prog_VALGRIND
5537 if test -n "$VALGRIND"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
5539 $as_echo "$VALGRIND" >&6; }
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5546 if test "$VALGRIND" = ""; then :
5548 if test "$enable_valgrind" = "yes"; then :
5550 as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5
5552 else
5554 enable_valgrind=no
5558 else
5560 enable_valgrind=yes
5566 if test "$enable_valgrind" = "yes"; then
5567 VALGRIND_ENABLED_TRUE=
5568 VALGRIND_ENABLED_FALSE='#'
5569 else
5570 VALGRIND_ENABLED_TRUE='#'
5571 VALGRIND_ENABLED_FALSE=
5574 VALGRIND_ENABLED=$enable_valgrind
5577 # Check for Valgrind tools we care about.
5580 if test "$VALGRIND" != ""; then :
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5
5586 $as_echo_n "checking for Valgrind tool memcheck... " >&6; }
5587 if ${ax_cv_valgrind_tool_memcheck+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5591 ax_cv_valgrind_tool_memcheck=
5592 if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1`; then :
5594 ax_cv_valgrind_tool_memcheck="memcheck"
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5
5600 $as_echo "$ax_cv_valgrind_tool_memcheck" >&6; }
5602 VALGRIND_HAVE_TOOL_memcheck=$ax_cv_valgrind_tool_memcheck
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool helgrind" >&5
5608 $as_echo_n "checking for Valgrind tool helgrind... " >&6; }
5609 if ${ax_cv_valgrind_tool_helgrind+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5613 ax_cv_valgrind_tool_helgrind=
5614 if `$VALGRIND --tool=helgrind --help >/dev/null 2>&1`; then :
5616 ax_cv_valgrind_tool_helgrind="helgrind"
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_helgrind" >&5
5622 $as_echo "$ax_cv_valgrind_tool_helgrind" >&6; }
5624 VALGRIND_HAVE_TOOL_helgrind=$ax_cv_valgrind_tool_helgrind
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool drd" >&5
5630 $as_echo_n "checking for Valgrind tool drd... " >&6; }
5631 if ${ax_cv_valgrind_tool_drd+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5635 ax_cv_valgrind_tool_drd=
5636 if `$VALGRIND --tool=drd --help >/dev/null 2>&1`; then :
5638 ax_cv_valgrind_tool_drd="drd"
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_drd" >&5
5644 $as_echo "$ax_cv_valgrind_tool_drd" >&6; }
5646 VALGRIND_HAVE_TOOL_drd=$ax_cv_valgrind_tool_drd
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool exp-sgcheck" >&5
5652 $as_echo_n "checking for Valgrind tool exp-sgcheck... " >&6; }
5653 if ${ax_cv_valgrind_tool_exp_sgcheck+:} false; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5657 ax_cv_valgrind_tool_exp_sgcheck=
5658 if `$VALGRIND --tool=exp-sgcheck --help >/dev/null 2>&1`; then :
5660 ax_cv_valgrind_tool_exp_sgcheck="exp-sgcheck"
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_exp_sgcheck" >&5
5666 $as_echo "$ax_cv_valgrind_tool_exp_sgcheck" >&6; }
5668 VALGRIND_HAVE_TOOL_exp_sgcheck=$ax_cv_valgrind_tool_exp_sgcheck
5674 VALGRIND_CHECK_RULES='
5675 # Valgrind check
5677 # Optional:
5678 # - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions
5679 # files to load. (Default: empty)
5680 # - VALGRIND_FLAGS: General flags to pass to all Valgrind tools.
5681 # (Default: --num-callers=30)
5682 # - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of:
5683 # memcheck, helgrind, drd, sgcheck). (Default: various)
5685 # Optional variables
5686 VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES))
5687 VALGRIND_FLAGS ?= --num-callers=30
5688 VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no
5689 VALGRIND_helgrind_FLAGS ?= --history-level=approx
5690 VALGRIND_drd_FLAGS ?=
5691 VALGRIND_sgcheck_FLAGS ?=
5693 # Internal use
5694 valgrind_tools = memcheck helgrind drd sgcheck
5695 valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools)))
5697 valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS)
5698 valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS)
5699 valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS)
5700 valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS)
5702 valgrind_quiet = $(valgrind_quiet_$(V))
5703 valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY))
5704 valgrind_quiet_0 = --quiet
5706 # Support running with and without libtool.
5707 ifneq ($(LIBTOOL),)
5708 valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute
5709 else
5710 valgrind_lt =
5711 endif
5713 # Use recursive makes in order to ignore errors during check
5714 check-valgrind:
5715 ifeq ($(VALGRIND_ENABLED),yes)
5716 -$(foreach tool,$(valgrind_tools), \
5717 $(if $(VALGRIND_HAVE_TOOL_$(tool))$(VALGRIND_HAVE_TOOL_exp_$(tool)), \
5718 $(MAKE) $(AM_MAKEFLAGS) -k check-valgrind-tool VALGRIND_TOOL=$(tool); \
5721 else
5722 @echo "Need to reconfigure with --enable-valgrind"
5723 endif
5725 # Valgrind running
5726 VALGRIND_TESTS_ENVIRONMENT = \
5727 $(TESTS_ENVIRONMENT) \
5728 env VALGRIND=$(VALGRIND) \
5729 G_SLICE=always-malloc,debug-blocks \
5730 G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly
5732 VALGRIND_LOG_COMPILER = \
5733 $(valgrind_lt) \
5734 $(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS)
5736 check-valgrind-tool:
5737 ifeq ($(VALGRIND_ENABLED),yes)
5738 $(MAKE) check-TESTS \
5739 TESTS_ENVIRONMENT="$(VALGRIND_TESTS_ENVIRONMENT)" \
5740 LOG_COMPILER="$(VALGRIND_LOG_COMPILER)" \
5741 LOG_FLAGS="$(valgrind_$(VALGRIND_TOOL)_flags)" \
5742 TEST_SUITE_LOG=test-suite-$(VALGRIND_TOOL).log
5743 else
5744 @echo "Need to reconfigure with --enable-valgrind"
5745 endif
5747 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
5748 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind
5750 MOSTLYCLEANFILES ?=
5751 MOSTLYCLEANFILES += $(valgrind_log_files)
5753 .PHONY: check-valgrind check-valgrind-tool
5756 if test "$enable_valgrind" != "yes"; then :
5758 VALGRIND_CHECK_RULES='
5759 check-valgrind:
5760 @echo "Need to use GNU make and reconfigure with --enable-valgrind"'
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5769 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5770 if ${ac_cv_prog_cc_c99+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 ac_cv_prog_cc_c99=no
5774 ac_save_CC=$CC
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 #include <stdarg.h>
5778 #include <stdbool.h>
5779 #include <stdlib.h>
5780 #include <wchar.h>
5781 #include <stdio.h>
5783 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5784 #define debug(...) fprintf (stderr, __VA_ARGS__)
5785 #define showlist(...) puts (#__VA_ARGS__)
5786 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5787 static void
5788 test_varargs_macros (void)
5790 int x = 1234;
5791 int y = 5678;
5792 debug ("Flag");
5793 debug ("X = %d\n", x);
5794 showlist (The first, second, and third items.);
5795 report (x>y, "x is %d but y is %d", x, y);
5798 // Check long long types.
5799 #define BIG64 18446744073709551615ull
5800 #define BIG32 4294967295ul
5801 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5802 #if !BIG_OK
5803 your preprocessor is broken;
5804 #endif
5805 #if BIG_OK
5806 #else
5807 your preprocessor is broken;
5808 #endif
5809 static long long int bignum = -9223372036854775807LL;
5810 static unsigned long long int ubignum = BIG64;
5812 struct incomplete_array
5814 int datasize;
5815 double data[];
5818 struct named_init {
5819 int number;
5820 const wchar_t *name;
5821 double average;
5824 typedef const char *ccp;
5826 static inline int
5827 test_restrict (ccp restrict text)
5829 // See if C++-style comments work.
5830 // Iterate through items via the restricted pointer.
5831 // Also check for declarations in for loops.
5832 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5833 continue;
5834 return 0;
5837 // Check varargs and va_copy.
5838 static void
5839 test_varargs (const char *format, ...)
5841 va_list args;
5842 va_start (args, format);
5843 va_list args_copy;
5844 va_copy (args_copy, args);
5846 const char *str;
5847 int number;
5848 float fnumber;
5850 while (*format)
5852 switch (*format++)
5854 case 's': // string
5855 str = va_arg (args_copy, const char *);
5856 break;
5857 case 'd': // int
5858 number = va_arg (args_copy, int);
5859 break;
5860 case 'f': // float
5861 fnumber = va_arg (args_copy, double);
5862 break;
5863 default:
5864 break;
5867 va_end (args_copy);
5868 va_end (args);
5872 main ()
5875 // Check bool.
5876 _Bool success = false;
5878 // Check restrict.
5879 if (test_restrict ("String literal") == 0)
5880 success = true;
5881 char *restrict newvar = "Another string";
5883 // Check varargs.
5884 test_varargs ("s, d' f .", "string", 65, 34.234);
5885 test_varargs_macros ();
5887 // Check flexible array members.
5888 struct incomplete_array *ia =
5889 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5890 ia->datasize = 10;
5891 for (int i = 0; i < ia->datasize; ++i)
5892 ia->data[i] = i * 1.234;
5894 // Check named initializers.
5895 struct named_init ni = {
5896 .number = 34,
5897 .name = L"Test wide string",
5898 .average = 543.34343,
5901 ni.number = 58;
5903 int dynamic_array[ni.number];
5904 dynamic_array[ni.number - 1] = 543;
5906 // work around unused variable warnings
5907 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5908 || dynamic_array[ni.number - 1] != 543);
5911 return 0;
5913 _ACEOF
5914 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5916 CC="$ac_save_CC $ac_arg"
5917 if ac_fn_c_try_compile "$LINENO"; then :
5918 ac_cv_prog_cc_c99=$ac_arg
5920 rm -f core conftest.err conftest.$ac_objext
5921 test "x$ac_cv_prog_cc_c99" != "xno" && break
5922 done
5923 rm -f conftest.$ac_ext
5924 CC=$ac_save_CC
5927 # AC_CACHE_VAL
5928 case "x$ac_cv_prog_cc_c99" in
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5931 $as_echo "none needed" >&6; } ;;
5932 xno)
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5934 $as_echo "unsupported" >&6; } ;;
5936 CC="$CC $ac_cv_prog_cc_c99"
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5938 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5939 esac
5940 if test "x$ac_cv_prog_cc_c99" != xno; then :
5945 # By default we simply use the C compiler to build assembly code.
5947 test "${CCAS+set}" = set || CCAS=$CC
5948 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5952 depcc="$CCAS" am_compiler_list=
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5955 $as_echo_n "checking dependency style of $depcc... " >&6; }
5956 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5960 # We make a subdir and do the tests there. Otherwise we can end up
5961 # making bogus files that we don't know about and never remove. For
5962 # instance it was reported that on HP-UX the gcc test will end up
5963 # making a dummy file named 'D' -- because '-MD' means "put the output
5964 # in D".
5965 rm -rf conftest.dir
5966 mkdir conftest.dir
5967 # Copy depcomp to subdir because otherwise we won't find it if we're
5968 # using a relative directory.
5969 cp "$am_depcomp" conftest.dir
5970 cd conftest.dir
5971 # We will build objects and dependencies in a subdirectory because
5972 # it helps to detect inapplicable dependency modes. For instance
5973 # both Tru64's cc and ICC support -MD to output dependencies as a
5974 # side effect of compilation, but ICC will put the dependencies in
5975 # the current directory while Tru64 will put them in the object
5976 # directory.
5977 mkdir sub
5979 am_cv_CCAS_dependencies_compiler_type=none
5980 if test "$am_compiler_list" = ""; then
5981 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5983 am__universal=false
5986 for depmode in $am_compiler_list; do
5987 # Setup a source with many dependencies, because some compilers
5988 # like to wrap large dependency lists on column 80 (with \), and
5989 # we should not choose a depcomp mode which is confused by this.
5991 # We need to recreate these files for each test, as the compiler may
5992 # overwrite some of them when testing with obscure command lines.
5993 # This happens at least with the AIX C compiler.
5994 : > sub/conftest.c
5995 for i in 1 2 3 4 5 6; do
5996 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5997 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5998 # Solaris 10 /bin/sh.
5999 echo '/* dummy */' > sub/conftst$i.h
6000 done
6001 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6003 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6004 # mode. It turns out that the SunPro C++ compiler does not properly
6005 # handle '-M -o', and we need to detect this. Also, some Intel
6006 # versions had trouble with output in subdirs.
6007 am__obj=sub/conftest.${OBJEXT-o}
6008 am__minus_obj="-o $am__obj"
6009 case $depmode in
6010 gcc)
6011 # This depmode causes a compiler race in universal mode.
6012 test "$am__universal" = false || continue
6014 nosideeffect)
6015 # After this tag, mechanisms are not by side-effect, so they'll
6016 # only be used when explicitly requested.
6017 if test "x$enable_dependency_tracking" = xyes; then
6018 continue
6019 else
6020 break
6023 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6024 # This compiler won't grok '-c -o', but also, the minuso test has
6025 # not run yet. These depmodes are late enough in the game, and
6026 # so weak that their functioning should not be impacted.
6027 am__obj=conftest.${OBJEXT-o}
6028 am__minus_obj=
6030 none) break ;;
6031 esac
6032 if depmode=$depmode \
6033 source=sub/conftest.c object=$am__obj \
6034 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6035 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6036 >/dev/null 2>conftest.err &&
6037 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6038 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6039 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6040 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6041 # icc doesn't choke on unknown options, it will just issue warnings
6042 # or remarks (even with -Werror). So we grep stderr for any message
6043 # that says an option was ignored or not supported.
6044 # When given -MP, icc 7.0 and 7.1 complain thusly:
6045 # icc: Command line warning: ignoring option '-M'; no argument required
6046 # The diagnosis changed in icc 8.0:
6047 # icc: Command line remark: option '-MP' not supported
6048 if (grep 'ignoring option' conftest.err ||
6049 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6050 am_cv_CCAS_dependencies_compiler_type=$depmode
6051 break
6054 done
6056 cd ..
6057 rm -rf conftest.dir
6058 else
6059 am_cv_CCAS_dependencies_compiler_type=none
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6064 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6065 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6068 test "x$enable_dependency_tracking" != xno \
6069 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6070 am__fastdepCCAS_TRUE=
6071 am__fastdepCCAS_FALSE='#'
6072 else
6073 am__fastdepCCAS_TRUE='#'
6074 am__fastdepCCAS_FALSE=
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6079 $as_echo_n "checking for ANSI C header files... " >&6; }
6080 if ${ac_cv_header_stdc+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085 #include <stdlib.h>
6086 #include <stdarg.h>
6087 #include <string.h>
6088 #include <float.h>
6091 main ()
6095 return 0;
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"; then :
6099 ac_cv_header_stdc=yes
6100 else
6101 ac_cv_header_stdc=no
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 if test $ac_cv_header_stdc = yes; then
6106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 #include <string.h>
6111 _ACEOF
6112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6113 $EGREP "memchr" >/dev/null 2>&1; then :
6115 else
6116 ac_cv_header_stdc=no
6118 rm -f conftest*
6122 if test $ac_cv_header_stdc = yes; then
6123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #include <stdlib.h>
6128 _ACEOF
6129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6130 $EGREP "free" >/dev/null 2>&1; then :
6132 else
6133 ac_cv_header_stdc=no
6135 rm -f conftest*
6139 if test $ac_cv_header_stdc = yes; then
6140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6141 if test "$cross_compiling" = yes; then :
6143 else
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 #include <ctype.h>
6147 #include <stdlib.h>
6148 #if ((' ' & 0x0FF) == 0x020)
6149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6151 #else
6152 # define ISLOWER(c) \
6153 (('a' <= (c) && (c) <= 'i') \
6154 || ('j' <= (c) && (c) <= 'r') \
6155 || ('s' <= (c) && (c) <= 'z'))
6156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6157 #endif
6159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6161 main ()
6163 int i;
6164 for (i = 0; i < 256; i++)
6165 if (XOR (islower (i), ISLOWER (i))
6166 || toupper (i) != TOUPPER (i))
6167 return 2;
6168 return 0;
6170 _ACEOF
6171 if ac_fn_c_try_run "$LINENO"; then :
6173 else
6174 ac_cv_header_stdc=no
6176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6177 conftest.$ac_objext conftest.beam conftest.$ac_ext
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6183 $as_echo "$ac_cv_header_stdc" >&6; }
6184 if test $ac_cv_header_stdc = yes; then
6186 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6190 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6191 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6192 inttypes.h stdint.h unistd.h
6193 do :
6194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6195 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6197 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6198 cat >>confdefs.h <<_ACEOF
6199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6200 _ACEOF
6204 done
6208 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6209 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6210 MINIX=yes
6211 else
6212 MINIX=
6216 if test "$MINIX" = yes; then
6218 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6221 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6224 $as_echo "#define _MINIX 1" >>confdefs.h
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6230 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6231 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6237 # define __EXTENSIONS__ 1
6238 $ac_includes_default
6240 main ()
6244 return 0;
6246 _ACEOF
6247 if ac_fn_c_try_compile "$LINENO"; then :
6248 ac_cv_safe_to_define___extensions__=yes
6249 else
6250 ac_cv_safe_to_define___extensions__=no
6252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6255 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6256 test $ac_cv_safe_to_define___extensions__ = yes &&
6257 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6259 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6261 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6263 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6265 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __native_client__ defined" >&5
6271 $as_echo_n "checking for __native_client__ defined... " >&6; }
6272 if ${ac_cv_defined___native_client__+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6279 main ()
6282 #ifdef __native_client__
6283 int ok;
6284 #else
6285 choke me
6286 #endif
6289 return 0;
6291 _ACEOF
6292 if ac_fn_c_try_compile "$LINENO"; then :
6293 ac_cv_defined___native_client__=yes
6294 else
6295 ac_cv_defined___native_client__=no
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___native_client__" >&5
6300 $as_echo "$ac_cv_defined___native_client__" >&6; }
6301 if test $ac_cv_defined___native_client__ != "no"; then :
6302 NATIVECLIENT="yes"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE defined" >&5
6307 $as_echo_n "checking for _FORTIFY_SOURCE defined... " >&6; }
6308 if ${ac_cv_defined__FORTIFY_SOURCE+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6315 main ()
6318 #ifdef _FORTIFY_SOURCE
6319 int ok;
6320 #else
6321 choke me
6322 #endif
6325 return 0;
6327 _ACEOF
6328 if ac_fn_c_try_compile "$LINENO"; then :
6329 ac_cv_defined__FORTIFY_SOURCE=yes
6330 else
6331 ac_cv_defined__FORTIFY_SOURCE=no
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__FORTIFY_SOURCE" >&5
6336 $as_echo "$ac_cv_defined__FORTIFY_SOURCE" >&6; }
6337 if test $ac_cv_defined__FORTIFY_SOURCE != "no"; then :
6339 else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
6342 $as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
6343 if ${ax_cv_check_cflags___D_FORTIFY_SOURCE_2+:} false; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6347 ax_check_save_flags=$CFLAGS
6348 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351 #include <stdio.h>
6353 main ()
6355 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6357 return 0;
6359 _ACEOF
6360 if ac_fn_c_try_link "$LINENO"; then :
6361 ax_cv_check_cflags___D_FORTIFY_SOURCE_2=yes
6362 else
6363 ax_cv_check_cflags___D_FORTIFY_SOURCE_2=no
6365 rm -f core conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6367 CFLAGS=$ax_check_save_flags
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&5
6370 $as_echo "$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&6; }
6371 if test "x$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" = xyes; then :
6372 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
6373 else
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
6381 $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
6382 if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6386 ax_check_save_flags=$CFLAGS
6387 CFLAGS="$CFLAGS -fvisibility=hidden"
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390 #include <stdio.h>
6392 main ()
6394 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6396 return 0;
6398 _ACEOF
6399 if ac_fn_c_try_link "$LINENO"; then :
6400 ax_cv_check_cflags___fvisibility_hidden=yes
6401 else
6402 ax_cv_check_cflags___fvisibility_hidden=no
6404 rm -f core conftest.err conftest.$ac_objext \
6405 conftest$ac_exeext conftest.$ac_ext
6406 CFLAGS=$ax_check_save_flags
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
6409 $as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
6410 if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
6411 CFLAGS="$CFLAGS -fvisibility=hidden"
6412 else
6417 case $host_os in #(
6418 cygwin*|mingw*|msys|pw32*|cegcc*) :
6419 ;; #(
6420 *) :
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
6423 $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
6424 if ${ax_cv_check_cflags___fPIC+:} false; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6428 ax_check_save_flags=$CFLAGS
6429 CFLAGS="$CFLAGS -fPIC"
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432 #include <stdio.h>
6434 main ()
6436 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6438 return 0;
6440 _ACEOF
6441 if ac_fn_c_try_link "$LINENO"; then :
6442 ax_cv_check_cflags___fPIC=yes
6443 else
6444 ax_cv_check_cflags___fPIC=no
6446 rm -f core conftest.err conftest.$ac_objext \
6447 conftest$ac_exeext conftest.$ac_ext
6448 CFLAGS=$ax_check_save_flags
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
6451 $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
6452 if test "x$ax_cv_check_cflags___fPIC" = xyes; then :
6453 CFLAGS="$CFLAGS -fPIC"
6454 else
6459 esac
6461 if test "$enable_pie" != "no"; then :
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
6464 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
6465 if ${ax_cv_check_cflags___fPIE+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6469 ax_check_save_flags=$CFLAGS
6470 CFLAGS="$CFLAGS -fPIE"
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6473 #include <stdio.h>
6475 main ()
6477 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6479 return 0;
6481 _ACEOF
6482 if ac_fn_c_try_link "$LINENO"; then :
6483 ax_cv_check_cflags___fPIE=yes
6484 else
6485 ax_cv_check_cflags___fPIE=no
6487 rm -f core conftest.err conftest.$ac_objext \
6488 conftest$ac_exeext conftest.$ac_ext
6489 CFLAGS=$ax_check_save_flags
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
6492 $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
6493 if test "x$ax_cv_check_cflags___fPIE" = xyes; then :
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
6496 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
6497 if ${ax_cv_check_ldflags___pie+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6501 ax_check_save_flags=$LDFLAGS
6502 LDFLAGS="$LDFLAGS -pie"
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 #include <stdio.h>
6507 main ()
6509 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6511 return 0;
6513 _ACEOF
6514 if ac_fn_c_try_link "$LINENO"; then :
6515 ax_cv_check_ldflags___pie=yes
6516 else
6517 ax_cv_check_ldflags___pie=no
6519 rm -f core conftest.err conftest.$ac_objext \
6520 conftest$ac_exeext conftest.$ac_ext
6521 LDFLAGS=$ax_check_save_flags
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
6524 $as_echo "$ax_cv_check_ldflags___pie" >&6; }
6525 if test "x$ax_cv_check_ldflags___pie" = xyes; then :
6527 CFLAGS="$CFLAGS -fPIE"
6528 LDFLAGS="$LDFLAGS -pie"
6530 else
6535 else
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
6543 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
6544 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6548 ax_check_save_flags=$CFLAGS
6549 CFLAGS="$CFLAGS -fno-strict-aliasing"
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6552 #include <stdio.h>
6554 main ()
6556 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6558 return 0;
6560 _ACEOF
6561 if ac_fn_c_try_link "$LINENO"; then :
6562 ax_cv_check_cflags___fno_strict_aliasing=yes
6563 else
6564 ax_cv_check_cflags___fno_strict_aliasing=no
6566 rm -f core conftest.err conftest.$ac_objext \
6567 conftest$ac_exeext conftest.$ac_ext
6568 CFLAGS=$ax_check_save_flags
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
6571 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
6572 if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
6573 CFLAGS="$CFLAGS -fno-strict-aliasing"
6574 else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
6579 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
6580 if ${ax_cv_check_cflags___fno_strict_overflow+:} false; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6584 ax_check_save_flags=$CFLAGS
6585 CFLAGS="$CFLAGS -fno-strict-overflow"
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6588 #include <stdio.h>
6590 main ()
6592 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6594 return 0;
6596 _ACEOF
6597 if ac_fn_c_try_link "$LINENO"; then :
6598 ax_cv_check_cflags___fno_strict_overflow=yes
6599 else
6600 ax_cv_check_cflags___fno_strict_overflow=no
6602 rm -f core conftest.err conftest.$ac_objext \
6603 conftest$ac_exeext conftest.$ac_ext
6604 CFLAGS=$ax_check_save_flags
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
6607 $as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
6608 if test "x$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
6609 CFLAGS="$CFLAGS -fno-strict-overflow"
6610 else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
6613 $as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
6614 if ${ax_cv_check_cflags___fwrapv+:} false; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6618 ax_check_save_flags=$CFLAGS
6619 CFLAGS="$CFLAGS -fwrapv"
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 #include <stdio.h>
6624 main ()
6626 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6628 return 0;
6630 _ACEOF
6631 if ac_fn_c_try_link "$LINENO"; then :
6632 ax_cv_check_cflags___fwrapv=yes
6633 else
6634 ax_cv_check_cflags___fwrapv=no
6636 rm -f core conftest.err conftest.$ac_objext \
6637 conftest$ac_exeext conftest.$ac_ext
6638 CFLAGS=$ax_check_save_flags
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
6641 $as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
6642 if test "x$ax_cv_check_cflags___fwrapv" = xyes; then :
6643 CFLAGS="$CFLAGS -fwrapv"
6644 else
6652 if test "$GCC" = "yes" ; then :
6654 case $host_cpu in #(
6655 i?86|amd64|x86_64) :
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6660 #if !defined(__clang__) && defined(__GNUC__) && ((__GNUC__ << 8) | __GNUC_MINOR__) < 0x403
6661 # error old gcc
6662 #endif
6663 int main(void) { return 0; }
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"; then :
6668 else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flax-vector-conversions" >&5
6671 $as_echo_n "checking whether C compiler accepts -flax-vector-conversions... " >&6; }
6672 if ${ax_cv_check_cflags___flax_vector_conversions+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6676 ax_check_save_flags=$CFLAGS
6677 CFLAGS="$CFLAGS -flax-vector-conversions"
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 #include <stdio.h>
6682 main ()
6684 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6686 return 0;
6688 _ACEOF
6689 if ac_fn_c_try_link "$LINENO"; then :
6690 ax_cv_check_cflags___flax_vector_conversions=yes
6691 else
6692 ax_cv_check_cflags___flax_vector_conversions=no
6694 rm -f core conftest.err conftest.$ac_objext \
6695 conftest$ac_exeext conftest.$ac_ext
6696 CFLAGS=$ax_check_save_flags
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flax_vector_conversions" >&5
6699 $as_echo "$ax_cv_check_cflags___flax_vector_conversions" >&6; }
6700 if test "x$ax_cv_check_cflags___flax_vector_conversions" = xyes; then :
6701 CFLAGS="$CFLAGS -flax-vector-conversions"
6702 else
6708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 ;; #(
6711 *) :
6713 esac
6717 LIBTOOL_OLD_FLAGS="$LIBTOOL_EXTRA_FLAGS"
6718 LIBTOOL_EXTRA_FLAGS="$LIBTOOL_EXTRA_FLAGS -version-info $SODIUM_LIBRARY_VERSION"
6719 # Check whether --enable-soname-versions was given.
6720 if test "${enable_soname_versions+set}" = set; then :
6721 enableval=$enable_soname_versions;
6722 if test "x$enableval" = "xno"; then :
6724 LIBTOOL_EXTRA_FLAGS="$LIBTOOL_OLD_FLAGS -avoid-version"
6732 case $host_os in #(
6733 cygwin*|mingw*|msys|pw32*|cegcc*) :
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
6736 $as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
6737 if ${ax_cv_check_ldflags___Wl___dynamicbase+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6741 ax_check_save_flags=$LDFLAGS
6742 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 #include <stdio.h>
6747 main ()
6749 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6751 return 0;
6753 _ACEOF
6754 if ac_fn_c_try_link "$LINENO"; then :
6755 ax_cv_check_ldflags___Wl___dynamicbase=yes
6756 else
6757 ax_cv_check_ldflags___Wl___dynamicbase=no
6759 rm -f core conftest.err conftest.$ac_objext \
6760 conftest$ac_exeext conftest.$ac_ext
6761 LDFLAGS=$ax_check_save_flags
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
6764 $as_echo "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
6765 if test "x$ax_cv_check_ldflags___Wl___dynamicbase" = xyes; then :
6766 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
6767 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--high-entropy-va" >&5
6772 $as_echo_n "checking whether the linker accepts -Wl,--high-entropy-va... " >&6; }
6773 if ${ax_cv_check_ldflags___Wl___high_entropy_va+:} false; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6777 ax_check_save_flags=$LDFLAGS
6778 LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 #include <stdio.h>
6783 main ()
6785 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6787 return 0;
6789 _ACEOF
6790 if ac_fn_c_try_link "$LINENO"; then :
6791 ax_cv_check_ldflags___Wl___high_entropy_va=yes
6792 else
6793 ax_cv_check_ldflags___Wl___high_entropy_va=no
6795 rm -f core conftest.err conftest.$ac_objext \
6796 conftest$ac_exeext conftest.$ac_ext
6797 LDFLAGS=$ax_check_save_flags
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___high_entropy_va" >&5
6800 $as_echo "$ax_cv_check_ldflags___Wl___high_entropy_va" >&6; }
6801 if test "x$ax_cv_check_ldflags___Wl___high_entropy_va" = xyes; then :
6802 LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
6803 else
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
6808 $as_echo_n "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
6809 if ${ax_cv_check_ldflags___Wl___nxcompat+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6813 ax_check_save_flags=$LDFLAGS
6814 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817 #include <stdio.h>
6819 main ()
6821 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6823 return 0;
6825 _ACEOF
6826 if ac_fn_c_try_link "$LINENO"; then :
6827 ax_cv_check_ldflags___Wl___nxcompat=yes
6828 else
6829 ax_cv_check_ldflags___Wl___nxcompat=no
6831 rm -f core conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833 LDFLAGS=$ax_check_save_flags
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
6836 $as_echo "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
6837 if test "x$ax_cv_check_ldflags___Wl___nxcompat" = xyes; then :
6838 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
6839 else
6843 ;; #(
6844 *) :
6846 esac
6848 if test "x$enable_ssp" != "xno"; then :
6851 case $host_os in #(
6852 cygwin*|mingw*|msys|pw32*|cegcc*) :
6853 ;; #(
6854 *) :
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
6857 $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
6858 if ${ax_cv_check_cflags___fstack_protector+:} false; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6862 ax_check_save_flags=$CFLAGS
6863 CFLAGS="$CFLAGS -fstack-protector"
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 #include <stdio.h>
6868 main ()
6870 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6872 return 0;
6874 _ACEOF
6875 if ac_fn_c_try_link "$LINENO"; then :
6876 ax_cv_check_cflags___fstack_protector=yes
6877 else
6878 ax_cv_check_cflags___fstack_protector=no
6880 rm -f core conftest.err conftest.$ac_objext \
6881 conftest$ac_exeext conftest.$ac_ext
6882 CFLAGS=$ax_check_save_flags
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
6885 $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
6886 if test "x$ax_cv_check_cflags___fstack_protector" = xyes; then :
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
6889 $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
6890 if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6894 ax_check_save_flags=$LDFLAGS
6895 LDFLAGS="$LDFLAGS -fstack-protector"
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6898 #include <stdio.h>
6900 main ()
6902 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6904 return 0;
6906 _ACEOF
6907 if ac_fn_c_try_link "$LINENO"; then :
6908 ax_cv_check_ldflags___fstack_protector=yes
6909 else
6910 ax_cv_check_ldflags___fstack_protector=no
6912 rm -f core conftest.err conftest.$ac_objext \
6913 conftest$ac_exeext conftest.$ac_ext
6914 LDFLAGS=$ax_check_save_flags
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
6917 $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
6918 if test "x$ax_cv_check_ldflags___fstack_protector" = xyes; then :
6919 CFLAGS="$CFLAGS -fstack-protector"
6921 else
6926 else
6930 ;; #(
6931 *) :
6933 esac
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
6938 $as_echo_n "checking whether C compiler accepts -Wwrite-strings... " >&6; }
6939 if ${ax_cv_check_cflags___Wwrite_strings+:} false; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6943 ax_check_save_flags=$CFLAGS
6944 CFLAGS="$CFLAGS -Wwrite-strings"
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 #include <stdio.h>
6949 main ()
6951 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6953 return 0;
6955 _ACEOF
6956 if ac_fn_c_try_link "$LINENO"; then :
6957 ax_cv_check_cflags___Wwrite_strings=yes
6958 else
6959 ax_cv_check_cflags___Wwrite_strings=no
6961 rm -f core conftest.err conftest.$ac_objext \
6962 conftest$ac_exeext conftest.$ac_ext
6963 CFLAGS=$ax_check_save_flags
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
6966 $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
6967 if test "x$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
6968 CFLAGS="$CFLAGS -Wwrite-strings"
6969 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
6974 $as_echo_n "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
6975 if ${ax_cv_check_cflags___Wdiv_by_zero+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6979 ax_check_save_flags=$CFLAGS
6980 CFLAGS="$CFLAGS -Wdiv-by-zero"
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983 #include <stdio.h>
6985 main ()
6987 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6989 return 0;
6991 _ACEOF
6992 if ac_fn_c_try_link "$LINENO"; then :
6993 ax_cv_check_cflags___Wdiv_by_zero=yes
6994 else
6995 ax_cv_check_cflags___Wdiv_by_zero=no
6997 rm -f core conftest.err conftest.$ac_objext \
6998 conftest$ac_exeext conftest.$ac_ext
6999 CFLAGS=$ax_check_save_flags
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
7002 $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
7003 if test "x$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
7004 CFLAGS="$CFLAGS -Wdiv-by-zero"
7005 else
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsometimes-uninitialized" >&5
7010 $as_echo_n "checking whether C compiler accepts -Wsometimes-uninitialized... " >&6; }
7011 if ${ax_cv_check_cflags___Wsometimes_uninitialized+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7015 ax_check_save_flags=$CFLAGS
7016 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019 #include <stdio.h>
7021 main ()
7023 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7025 return 0;
7027 _ACEOF
7028 if ac_fn_c_try_link "$LINENO"; then :
7029 ax_cv_check_cflags___Wsometimes_uninitialized=yes
7030 else
7031 ax_cv_check_cflags___Wsometimes_uninitialized=no
7033 rm -f core conftest.err conftest.$ac_objext \
7034 conftest$ac_exeext conftest.$ac_ext
7035 CFLAGS=$ax_check_save_flags
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
7038 $as_echo "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
7039 if test "x$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes; then :
7040 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
7041 else
7048 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wall" | $as_tr_sh`
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wall" >&5
7050 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wall... " >&6; }
7051 if eval \${$as_CACHEVAR+:} false; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7055 ax_check_save_flags=$CFLAGS
7056 CFLAGS="$CFLAGS $CWFLAGS -Wall"
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059 #include <stdio.h>
7061 main ()
7063 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7065 return 0;
7067 _ACEOF
7068 if ac_fn_c_try_link "$LINENO"; then :
7069 eval "$as_CACHEVAR=yes"
7070 else
7071 eval "$as_CACHEVAR=no"
7073 rm -f core conftest.err conftest.$ac_objext \
7074 conftest$ac_exeext conftest.$ac_ext
7075 CFLAGS=$ax_check_save_flags
7077 eval ac_res=\$$as_CACHEVAR
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7079 $as_echo "$ac_res" >&6; }
7080 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7081 CWFLAGS="$CWFLAGS -Wall"
7082 else
7086 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wextra" | $as_tr_sh`
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wextra" >&5
7088 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wextra... " >&6; }
7089 if eval \${$as_CACHEVAR+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7093 ax_check_save_flags=$CFLAGS
7094 CFLAGS="$CFLAGS $CWFLAGS -Wextra"
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 #include <stdio.h>
7099 main ()
7101 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7103 return 0;
7105 _ACEOF
7106 if ac_fn_c_try_link "$LINENO"; then :
7107 eval "$as_CACHEVAR=yes"
7108 else
7109 eval "$as_CACHEVAR=no"
7111 rm -f core conftest.err conftest.$ac_objext \
7112 conftest$ac_exeext conftest.$ac_ext
7113 CFLAGS=$ax_check_save_flags
7115 eval ac_res=\$$as_CACHEVAR
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7117 $as_echo "$ac_res" >&6; }
7118 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7119 CWFLAGS="$CWFLAGS -Wextra"
7120 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
7126 $as_echo_n "checking for clang... " >&6; }
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7131 main ()
7134 #ifndef __clang__
7135 be sad
7136 #endif
7139 return 0;
7141 _ACEOF
7142 if ac_fn_c_try_compile "$LINENO"; then :
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144 $as_echo "yes" >&6; }
7145 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | $as_tr_sh`
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
7147 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
7148 if eval \${$as_CACHEVAR+:} false; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7152 ax_check_save_flags=$CFLAGS
7153 CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-warning-option"
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156 #include <stdio.h>
7158 main ()
7160 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7162 return 0;
7164 _ACEOF
7165 if ac_fn_c_try_link "$LINENO"; then :
7166 eval "$as_CACHEVAR=yes"
7167 else
7168 eval "$as_CACHEVAR=no"
7170 rm -f core conftest.err conftest.$ac_objext \
7171 conftest$ac_exeext conftest.$ac_ext
7172 CFLAGS=$ax_check_save_flags
7174 eval ac_res=\$$as_CACHEVAR
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7176 $as_echo "$ac_res" >&6; }
7177 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7178 CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
7179 else
7184 else
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
7193 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
7194 if eval \${$as_CACHEVAR+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7198 ax_check_save_flags=$CFLAGS
7199 CFLAGS="$CFLAGS $CWFLAGS -Wbad-function-cast"
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202 #include <stdio.h>
7204 main ()
7206 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7208 return 0;
7210 _ACEOF
7211 if ac_fn_c_try_link "$LINENO"; then :
7212 eval "$as_CACHEVAR=yes"
7213 else
7214 eval "$as_CACHEVAR=no"
7216 rm -f core conftest.err conftest.$ac_objext \
7217 conftest$ac_exeext conftest.$ac_ext
7218 CFLAGS=$ax_check_save_flags
7220 eval ac_res=\$$as_CACHEVAR
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7222 $as_echo "$ac_res" >&6; }
7223 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7224 CWFLAGS="$CWFLAGS -Wbad-function-cast"
7225 else
7229 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-align" | $as_tr_sh`
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-align" >&5
7231 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-align... " >&6; }
7232 if eval \${$as_CACHEVAR+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7236 ax_check_save_flags=$CFLAGS
7237 CFLAGS="$CFLAGS $CWFLAGS -Wcast-align"
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240 #include <stdio.h>
7242 main ()
7244 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7246 return 0;
7248 _ACEOF
7249 if ac_fn_c_try_link "$LINENO"; then :
7250 eval "$as_CACHEVAR=yes"
7251 else
7252 eval "$as_CACHEVAR=no"
7254 rm -f core conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7256 CFLAGS=$ax_check_save_flags
7258 eval ac_res=\$$as_CACHEVAR
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7260 $as_echo "$ac_res" >&6; }
7261 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7262 CWFLAGS="$CWFLAGS -Wcast-align"
7263 else
7267 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | $as_tr_sh`
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
7269 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
7270 if eval \${$as_CACHEVAR+:} false; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7274 ax_check_save_flags=$CFLAGS
7275 CFLAGS="$CFLAGS $CWFLAGS -Wcast-qual"
7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h. */
7278 #include <stdio.h>
7280 main ()
7282 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7284 return 0;
7286 _ACEOF
7287 if ac_fn_c_try_link "$LINENO"; then :
7288 eval "$as_CACHEVAR=yes"
7289 else
7290 eval "$as_CACHEVAR=no"
7292 rm -f core conftest.err conftest.$ac_objext \
7293 conftest$ac_exeext conftest.$ac_ext
7294 CFLAGS=$ax_check_save_flags
7296 eval ac_res=\$$as_CACHEVAR
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7298 $as_echo "$ac_res" >&6; }
7299 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7300 CWFLAGS="$CWFLAGS -Wcast-qual"
7301 else
7305 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wduplicated-cond" | $as_tr_sh`
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wduplicated-cond" >&5
7307 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wduplicated-cond... " >&6; }
7308 if eval \${$as_CACHEVAR+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7312 ax_check_save_flags=$CFLAGS
7313 CFLAGS="$CFLAGS $CWFLAGS -Wduplicated-cond"
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 #include <stdio.h>
7318 main ()
7320 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7322 return 0;
7324 _ACEOF
7325 if ac_fn_c_try_link "$LINENO"; then :
7326 eval "$as_CACHEVAR=yes"
7327 else
7328 eval "$as_CACHEVAR=no"
7330 rm -f core conftest.err conftest.$ac_objext \
7331 conftest$ac_exeext conftest.$ac_ext
7332 CFLAGS=$ax_check_save_flags
7334 eval ac_res=\$$as_CACHEVAR
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7336 $as_echo "$ac_res" >&6; }
7337 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7338 CWFLAGS="$CWFLAGS -Wduplicated-cond"
7339 else
7343 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | $as_tr_sh`
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
7345 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
7346 if eval \${$as_CACHEVAR+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7350 ax_check_save_flags=$CFLAGS
7351 CFLAGS="$CFLAGS $CWFLAGS -Wfloat-equal"
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354 #include <stdio.h>
7356 main ()
7358 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7360 return 0;
7362 _ACEOF
7363 if ac_fn_c_try_link "$LINENO"; then :
7364 eval "$as_CACHEVAR=yes"
7365 else
7366 eval "$as_CACHEVAR=no"
7368 rm -f core conftest.err conftest.$ac_objext \
7369 conftest$ac_exeext conftest.$ac_ext
7370 CFLAGS=$ax_check_save_flags
7372 eval ac_res=\$$as_CACHEVAR
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7374 $as_echo "$ac_res" >&6; }
7375 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7376 CWFLAGS="$CWFLAGS -Wfloat-equal"
7377 else
7381 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | $as_tr_sh`
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
7383 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
7384 if eval \${$as_CACHEVAR+:} false; then :
7385 $as_echo_n "(cached) " >&6
7386 else
7388 ax_check_save_flags=$CFLAGS
7389 CFLAGS="$CFLAGS $CWFLAGS -Wformat=2"
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 #include <stdio.h>
7394 main ()
7396 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7398 return 0;
7400 _ACEOF
7401 if ac_fn_c_try_link "$LINENO"; then :
7402 eval "$as_CACHEVAR=yes"
7403 else
7404 eval "$as_CACHEVAR=no"
7406 rm -f core conftest.err conftest.$ac_objext \
7407 conftest$ac_exeext conftest.$ac_ext
7408 CFLAGS=$ax_check_save_flags
7410 eval ac_res=\$$as_CACHEVAR
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7412 $as_echo "$ac_res" >&6; }
7413 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7414 CWFLAGS="$CWFLAGS -Wformat=2"
7415 else
7419 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-declarations" | $as_tr_sh`
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-declarations" >&5
7421 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-declarations... " >&6; }
7422 if eval \${$as_CACHEVAR+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7426 ax_check_save_flags=$CFLAGS
7427 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-declarations"
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429 /* end confdefs.h. */
7430 #include <stdio.h>
7432 main ()
7434 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7436 return 0;
7438 _ACEOF
7439 if ac_fn_c_try_link "$LINENO"; then :
7440 eval "$as_CACHEVAR=yes"
7441 else
7442 eval "$as_CACHEVAR=no"
7444 rm -f core conftest.err conftest.$ac_objext \
7445 conftest$ac_exeext conftest.$ac_ext
7446 CFLAGS=$ax_check_save_flags
7448 eval ac_res=\$$as_CACHEVAR
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7450 $as_echo "$ac_res" >&6; }
7451 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7452 CWFLAGS="$CWFLAGS -Wmissing-declarations"
7453 else
7457 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-prototypes" | $as_tr_sh`
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes" >&5
7459 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes... " >&6; }
7460 if eval \${$as_CACHEVAR+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7464 ax_check_save_flags=$CFLAGS
7465 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-prototypes"
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468 #include <stdio.h>
7470 main ()
7472 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7474 return 0;
7476 _ACEOF
7477 if ac_fn_c_try_link "$LINENO"; then :
7478 eval "$as_CACHEVAR=yes"
7479 else
7480 eval "$as_CACHEVAR=no"
7482 rm -f core conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
7484 CFLAGS=$ax_check_save_flags
7486 eval ac_res=\$$as_CACHEVAR
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7488 $as_echo "$ac_res" >&6; }
7489 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7490 CWFLAGS="$CWFLAGS -Wmissing-prototypes"
7491 else
7495 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnested-externs" | $as_tr_sh`
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnested-externs" >&5
7497 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnested-externs... " >&6; }
7498 if eval \${$as_CACHEVAR+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7502 ax_check_save_flags=$CFLAGS
7503 CFLAGS="$CFLAGS $CWFLAGS -Wnested-externs"
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506 #include <stdio.h>
7508 main ()
7510 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7512 return 0;
7514 _ACEOF
7515 if ac_fn_c_try_link "$LINENO"; then :
7516 eval "$as_CACHEVAR=yes"
7517 else
7518 eval "$as_CACHEVAR=no"
7520 rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 CFLAGS=$ax_check_save_flags
7524 eval ac_res=\$$as_CACHEVAR
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7526 $as_echo "$ac_res" >&6; }
7527 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7528 CWFLAGS="$CWFLAGS -Wnested-externs"
7529 else
7533 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-pragmas" | $as_tr_sh`
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas" >&5
7535 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas... " >&6; }
7536 if eval \${$as_CACHEVAR+:} false; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7540 ax_check_save_flags=$CFLAGS
7541 CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-pragmas"
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7544 #include <stdio.h>
7546 main ()
7548 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7550 return 0;
7552 _ACEOF
7553 if ac_fn_c_try_link "$LINENO"; then :
7554 eval "$as_CACHEVAR=yes"
7555 else
7556 eval "$as_CACHEVAR=no"
7558 rm -f core conftest.err conftest.$ac_objext \
7559 conftest$ac_exeext conftest.$ac_ext
7560 CFLAGS=$ax_check_save_flags
7562 eval ac_res=\$$as_CACHEVAR
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7564 $as_echo "$ac_res" >&6; }
7565 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7566 CWFLAGS="$CWFLAGS -Wno-unknown-pragmas"
7567 else
7571 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnormalized=id" | $as_tr_sh`
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnormalized=id" >&5
7573 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnormalized=id... " >&6; }
7574 if eval \${$as_CACHEVAR+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7578 ax_check_save_flags=$CFLAGS
7579 CFLAGS="$CFLAGS $CWFLAGS -Wnormalized=id"
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7582 #include <stdio.h>
7584 main ()
7586 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7588 return 0;
7590 _ACEOF
7591 if ac_fn_c_try_link "$LINENO"; then :
7592 eval "$as_CACHEVAR=yes"
7593 else
7594 eval "$as_CACHEVAR=no"
7596 rm -f core conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
7598 CFLAGS=$ax_check_save_flags
7600 eval ac_res=\$$as_CACHEVAR
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7602 $as_echo "$ac_res" >&6; }
7603 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7604 CWFLAGS="$CWFLAGS -Wnormalized=id"
7605 else
7609 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnull-dereference" | $as_tr_sh`
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnull-dereference" >&5
7611 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnull-dereference... " >&6; }
7612 if eval \${$as_CACHEVAR+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7616 ax_check_save_flags=$CFLAGS
7617 CFLAGS="$CFLAGS $CWFLAGS -Wnull-dereference"
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620 #include <stdio.h>
7622 main ()
7624 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7626 return 0;
7628 _ACEOF
7629 if ac_fn_c_try_link "$LINENO"; then :
7630 eval "$as_CACHEVAR=yes"
7631 else
7632 eval "$as_CACHEVAR=no"
7634 rm -f core conftest.err conftest.$ac_objext \
7635 conftest$ac_exeext conftest.$ac_ext
7636 CFLAGS=$ax_check_save_flags
7638 eval ac_res=\$$as_CACHEVAR
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7640 $as_echo "$ac_res" >&6; }
7641 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7642 CWFLAGS="$CWFLAGS -Wnull-dereference"
7643 else
7647 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wpointer-arith" | $as_tr_sh`
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wpointer-arith" >&5
7649 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wpointer-arith... " >&6; }
7650 if eval \${$as_CACHEVAR+:} false; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7654 ax_check_save_flags=$CFLAGS
7655 CFLAGS="$CFLAGS $CWFLAGS -Wpointer-arith"
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658 #include <stdio.h>
7660 main ()
7662 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7664 return 0;
7666 _ACEOF
7667 if ac_fn_c_try_link "$LINENO"; then :
7668 eval "$as_CACHEVAR=yes"
7669 else
7670 eval "$as_CACHEVAR=no"
7672 rm -f core conftest.err conftest.$ac_objext \
7673 conftest$ac_exeext conftest.$ac_ext
7674 CFLAGS=$ax_check_save_flags
7676 eval ac_res=\$$as_CACHEVAR
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7678 $as_echo "$ac_res" >&6; }
7679 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7680 CWFLAGS="$CWFLAGS -Wpointer-arith"
7681 else
7685 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wredundant-decls" | $as_tr_sh`
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wredundant-decls" >&5
7687 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wredundant-decls... " >&6; }
7688 if eval \${$as_CACHEVAR+:} false; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7692 ax_check_save_flags=$CFLAGS
7693 CFLAGS="$CFLAGS $CWFLAGS -Wredundant-decls"
7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7696 #include <stdio.h>
7698 main ()
7700 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7702 return 0;
7704 _ACEOF
7705 if ac_fn_c_try_link "$LINENO"; then :
7706 eval "$as_CACHEVAR=yes"
7707 else
7708 eval "$as_CACHEVAR=no"
7710 rm -f core conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7712 CFLAGS=$ax_check_save_flags
7714 eval ac_res=\$$as_CACHEVAR
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7716 $as_echo "$ac_res" >&6; }
7717 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7718 CWFLAGS="$CWFLAGS -Wredundant-decls"
7719 else
7723 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | $as_tr_sh`
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
7725 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
7726 if eval \${$as_CACHEVAR+:} false; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7730 ax_check_save_flags=$CFLAGS
7731 CFLAGS="$CFLAGS $CWFLAGS -Wstrict-prototypes"
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7734 #include <stdio.h>
7736 main ()
7738 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7740 return 0;
7742 _ACEOF
7743 if ac_fn_c_try_link "$LINENO"; then :
7744 eval "$as_CACHEVAR=yes"
7745 else
7746 eval "$as_CACHEVAR=no"
7748 rm -f core conftest.err conftest.$ac_objext \
7749 conftest$ac_exeext conftest.$ac_ext
7750 CFLAGS=$ax_check_save_flags
7752 eval ac_res=\$$as_CACHEVAR
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7754 $as_echo "$ac_res" >&6; }
7755 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7756 CWFLAGS="$CWFLAGS -Wstrict-prototypes"
7757 else
7761 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | $as_tr_sh`
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
7763 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
7764 if eval \${$as_CACHEVAR+:} false; then :
7765 $as_echo_n "(cached) " >&6
7766 else
7768 ax_check_save_flags=$CFLAGS
7769 CFLAGS="$CFLAGS $CWFLAGS -Wswitch-enum"
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7772 #include <stdio.h>
7774 main ()
7776 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7778 return 0;
7780 _ACEOF
7781 if ac_fn_c_try_link "$LINENO"; then :
7782 eval "$as_CACHEVAR=yes"
7783 else
7784 eval "$as_CACHEVAR=no"
7786 rm -f core conftest.err conftest.$ac_objext \
7787 conftest$ac_exeext conftest.$ac_ext
7788 CFLAGS=$ax_check_save_flags
7790 eval ac_res=\$$as_CACHEVAR
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7792 $as_echo "$ac_res" >&6; }
7793 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7794 CWFLAGS="$CWFLAGS -Wswitch-enum"
7795 else
7799 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | $as_tr_sh`
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
7801 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
7802 if eval \${$as_CACHEVAR+:} false; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7806 ax_check_save_flags=$CFLAGS
7807 CFLAGS="$CFLAGS $CWFLAGS -Wvariable-decl"
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7810 #include <stdio.h>
7812 main ()
7814 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7816 return 0;
7818 _ACEOF
7819 if ac_fn_c_try_link "$LINENO"; then :
7820 eval "$as_CACHEVAR=yes"
7821 else
7822 eval "$as_CACHEVAR=no"
7824 rm -f core conftest.err conftest.$ac_objext \
7825 conftest$ac_exeext conftest.$ac_ext
7826 CFLAGS=$ax_check_save_flags
7828 eval ac_res=\$$as_CACHEVAR
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7830 $as_echo "$ac_res" >&6; }
7831 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7832 CWFLAGS="$CWFLAGS -Wvariable-decl"
7833 else
7837 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-type-limits" | $as_tr_sh`
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-type-limits" >&5
7839 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-type-limits... " >&6; }
7840 if eval \${$as_CACHEVAR+:} false; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7844 ax_check_save_flags=$CFLAGS
7845 CFLAGS="$CFLAGS $CWFLAGS -Wno-type-limits"
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 #include <stdio.h>
7850 main ()
7852 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
7854 return 0;
7856 _ACEOF
7857 if ac_fn_c_try_link "$LINENO"; then :
7858 eval "$as_CACHEVAR=yes"
7859 else
7860 eval "$as_CACHEVAR=no"
7862 rm -f core conftest.err conftest.$ac_objext \
7863 conftest$ac_exeext conftest.$ac_ext
7864 CFLAGS=$ax_check_save_flags
7866 eval ac_res=\$$as_CACHEVAR
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7868 $as_echo "$ac_res" >&6; }
7869 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7870 CWFLAGS="$CWFLAGS -Wno-type-limits"
7871 else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
7877 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
7878 if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7882 ax_check_save_flags=$LDFLAGS
7883 LDFLAGS="$LDFLAGS -Wl,-z,relro"
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7886 #include <stdio.h>
7888 main ()
7890 char x[42U];if (fgets(x,1000,stdin)) puts(x)
7892 return 0;
7894 _ACEOF
7895 if ac_fn_c_try_link "$LINENO"; then :
7896 ax_cv_check_ldflags___Wl__z_relro=yes
7897 else
7898 ax_cv_check_ldflags___Wl__z_relro=no
7900 rm -f core conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902 LDFLAGS=$ax_check_save_flags
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
7905 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
7906 if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
7907 LDFLAGS="$LDFLAGS -Wl,-z,relro"
7908 else
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
7913 $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
7914 if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7918 ax_check_save_flags=$LDFLAGS
7919 LDFLAGS="$LDFLAGS -Wl,-z,now"
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7922 #include <stdio.h>
7924 main ()
7926 char x[42U];if (fgets(x,1000,stdin)) puts(x)
7928 return 0;
7930 _ACEOF
7931 if ac_fn_c_try_link "$LINENO"; then :
7932 ax_cv_check_ldflags___Wl__z_now=yes
7933 else
7934 ax_cv_check_ldflags___Wl__z_now=no
7936 rm -f core conftest.err conftest.$ac_objext \
7937 conftest$ac_exeext conftest.$ac_ext
7938 LDFLAGS=$ax_check_save_flags
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
7941 $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
7942 if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
7943 LDFLAGS="$LDFLAGS -Wl,-z,now"
7944 else
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
7949 $as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
7950 if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7954 ax_check_save_flags=$LDFLAGS
7955 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958 #include <stdio.h>
7960 main ()
7962 char x[42U];if (fgets(x,1000,stdin)) puts(x)
7964 return 0;
7966 _ACEOF
7967 if ac_fn_c_try_link "$LINENO"; then :
7968 ax_cv_check_ldflags___Wl__z_noexecstack=yes
7969 else
7970 ax_cv_check_ldflags___Wl__z_noexecstack=no
7972 rm -f core conftest.err conftest.$ac_objext \
7973 conftest$ac_exeext conftest.$ac_ext
7974 LDFLAGS=$ax_check_save_flags
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
7977 $as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
7978 if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
7979 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
7980 else
7985 case `pwd` in
7986 *\ * | *\ *)
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7988 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7989 esac
7993 macro_version='2.4.6'
7994 macro_revision='2.4.6'
8008 ltmain=$ac_aux_dir/ltmain.sh
8010 # Backslashify metacharacters that are still active within
8011 # double-quoted strings.
8012 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8014 # Same as above, but do not quote variable references.
8015 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8017 # Sed substitution to delay expansion of an escaped shell variable in a
8018 # double_quote_subst'ed string.
8019 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8021 # Sed substitution to delay expansion of an escaped single quote.
8022 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8024 # Sed substitution to avoid accidental globbing in evaled expressions
8025 no_glob_subst='s/\*/\\\*/g'
8027 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8028 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8029 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8032 $as_echo_n "checking how to print strings... " >&6; }
8033 # Test print first, because it will be a builtin if present.
8034 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8035 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8036 ECHO='print -r --'
8037 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8038 ECHO='printf %s\n'
8039 else
8040 # Use this function as a fallback that always works.
8041 func_fallback_echo ()
8043 eval 'cat <<_LTECHO_EOF
8045 _LTECHO_EOF'
8047 ECHO='func_fallback_echo'
8050 # func_echo_all arg...
8051 # Invoke $ECHO with all args, space-separated.
8052 func_echo_all ()
8054 $ECHO ""
8057 case $ECHO in
8058 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8059 $as_echo "printf" >&6; } ;;
8060 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8061 $as_echo "print -r" >&6; } ;;
8062 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8063 $as_echo "cat" >&6; } ;;
8064 esac
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8080 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8081 if ${ac_cv_path_SED+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8085 for ac_i in 1 2 3 4 5 6 7; do
8086 ac_script="$ac_script$as_nl$ac_script"
8087 done
8088 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8089 { ac_script=; unset ac_script;}
8090 if test -z "$SED"; then
8091 ac_path_SED_found=false
8092 # Loop through the user's path and test for each of PROGNAME-LIST
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 for as_dir in $PATH
8096 IFS=$as_save_IFS
8097 test -z "$as_dir" && as_dir=.
8098 for ac_prog in sed gsed; do
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8101 as_fn_executable_p "$ac_path_SED" || continue
8102 # Check for GNU ac_path_SED and select it if it is found.
8103 # Check for GNU $ac_path_SED
8104 case `"$ac_path_SED" --version 2>&1` in
8105 *GNU*)
8106 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8108 ac_count=0
8109 $as_echo_n 0123456789 >"conftest.in"
8110 while :
8112 cat "conftest.in" "conftest.in" >"conftest.tmp"
8113 mv "conftest.tmp" "conftest.in"
8114 cp "conftest.in" "conftest.nl"
8115 $as_echo '' >> "conftest.nl"
8116 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8118 as_fn_arith $ac_count + 1 && ac_count=$as_val
8119 if test $ac_count -gt ${ac_path_SED_max-0}; then
8120 # Best one so far, save it but keep looking for a better one
8121 ac_cv_path_SED="$ac_path_SED"
8122 ac_path_SED_max=$ac_count
8124 # 10*(2^10) chars as input seems more than enough
8125 test $ac_count -gt 10 && break
8126 done
8127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8128 esac
8130 $ac_path_SED_found && break 3
8131 done
8132 done
8133 done
8134 IFS=$as_save_IFS
8135 if test -z "$ac_cv_path_SED"; then
8136 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8138 else
8139 ac_cv_path_SED=$SED
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8144 $as_echo "$ac_cv_path_SED" >&6; }
8145 SED="$ac_cv_path_SED"
8146 rm -f conftest.sed
8148 test -z "$SED" && SED=sed
8149 Xsed="$SED -e 1s/^X//"
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8162 $as_echo_n "checking for fgrep... " >&6; }
8163 if ${ac_cv_path_FGREP+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8167 then ac_cv_path_FGREP="$GREP -F"
8168 else
8169 if test -z "$FGREP"; then
8170 ac_path_FGREP_found=false
8171 # Loop through the user's path and test for each of PROGNAME-LIST
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_prog in fgrep; do
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8180 as_fn_executable_p "$ac_path_FGREP" || continue
8181 # Check for GNU ac_path_FGREP and select it if it is found.
8182 # Check for GNU $ac_path_FGREP
8183 case `"$ac_path_FGREP" --version 2>&1` in
8184 *GNU*)
8185 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8187 ac_count=0
8188 $as_echo_n 0123456789 >"conftest.in"
8189 while :
8191 cat "conftest.in" "conftest.in" >"conftest.tmp"
8192 mv "conftest.tmp" "conftest.in"
8193 cp "conftest.in" "conftest.nl"
8194 $as_echo 'FGREP' >> "conftest.nl"
8195 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8197 as_fn_arith $ac_count + 1 && ac_count=$as_val
8198 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8199 # Best one so far, save it but keep looking for a better one
8200 ac_cv_path_FGREP="$ac_path_FGREP"
8201 ac_path_FGREP_max=$ac_count
8203 # 10*(2^10) chars as input seems more than enough
8204 test $ac_count -gt 10 && break
8205 done
8206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8207 esac
8209 $ac_path_FGREP_found && break 3
8210 done
8211 done
8212 done
8213 IFS=$as_save_IFS
8214 if test -z "$ac_cv_path_FGREP"; then
8215 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8217 else
8218 ac_cv_path_FGREP=$FGREP
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8224 $as_echo "$ac_cv_path_FGREP" >&6; }
8225 FGREP="$ac_cv_path_FGREP"
8228 test -z "$GREP" && GREP=grep
8248 # Check whether --with-gnu-ld was given.
8249 if test "${with_gnu_ld+set}" = set; then :
8250 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8251 else
8252 with_gnu_ld=no
8255 ac_prog=ld
8256 if test yes = "$GCC"; then
8257 # Check if gcc -print-prog-name=ld gives a path.
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8259 $as_echo_n "checking for ld used by $CC... " >&6; }
8260 case $host in
8261 *-*-mingw*)
8262 # gcc leaves a trailing carriage return, which upsets mingw
8263 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8265 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8266 esac
8267 case $ac_prog in
8268 # Accept absolute paths.
8269 [\\/]* | ?:[\\/]*)
8270 re_direlt='/[^/][^/]*/\.\./'
8271 # Canonicalize the pathname of ld
8272 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8273 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8274 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8275 done
8276 test -z "$LD" && LD=$ac_prog
8279 # If it fails, then pretend we aren't using GCC.
8280 ac_prog=ld
8283 # If it is relative, then search for the first ld in PATH.
8284 with_gnu_ld=unknown
8286 esac
8287 elif test yes = "$with_gnu_ld"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8289 $as_echo_n "checking for GNU ld... " >&6; }
8290 else
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8292 $as_echo_n "checking for non-GNU ld... " >&6; }
8294 if ${lt_cv_path_LD+:} false; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 if test -z "$LD"; then
8298 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8299 for ac_dir in $PATH; do
8300 IFS=$lt_save_ifs
8301 test -z "$ac_dir" && ac_dir=.
8302 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8303 lt_cv_path_LD=$ac_dir/$ac_prog
8304 # Check to see if the program is GNU ld. I'd rather use --version,
8305 # but apparently some variants of GNU ld only accept -v.
8306 # Break only if it was the GNU/non-GNU ld that we prefer.
8307 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8308 *GNU* | *'with BFD'*)
8309 test no != "$with_gnu_ld" && break
8312 test yes != "$with_gnu_ld" && break
8314 esac
8316 done
8317 IFS=$lt_save_ifs
8318 else
8319 lt_cv_path_LD=$LD # Let the user override the test with a path.
8323 LD=$lt_cv_path_LD
8324 if test -n "$LD"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8326 $as_echo "$LD" >&6; }
8327 else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8331 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8333 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8334 if ${lt_cv_prog_gnu_ld+:} false; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8338 case `$LD -v 2>&1 </dev/null` in
8339 *GNU* | *'with BFD'*)
8340 lt_cv_prog_gnu_ld=yes
8343 lt_cv_prog_gnu_ld=no
8345 esac
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8348 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8349 with_gnu_ld=$lt_cv_prog_gnu_ld
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8360 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8361 if ${lt_cv_path_NM+:} false; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 if test -n "$NM"; then
8365 # Let the user override the test.
8366 lt_cv_path_NM=$NM
8367 else
8368 lt_nm_to_check=${ac_tool_prefix}nm
8369 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8370 lt_nm_to_check="$lt_nm_to_check nm"
8372 for lt_tmp_nm in $lt_nm_to_check; do
8373 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8374 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8375 IFS=$lt_save_ifs
8376 test -z "$ac_dir" && ac_dir=.
8377 tmp_nm=$ac_dir/$lt_tmp_nm
8378 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8379 # Check to see if the nm accepts a BSD-compat flag.
8380 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8381 # nm: unknown option "B" ignored
8382 # Tru64's nm complains that /dev/null is an invalid object file
8383 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8384 case $build_os in
8385 mingw*) lt_bad_file=conftest.nm/nofile ;;
8386 *) lt_bad_file=/dev/null ;;
8387 esac
8388 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8389 *$lt_bad_file* | *'Invalid file or object type'*)
8390 lt_cv_path_NM="$tmp_nm -B"
8391 break 2
8394 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8395 */dev/null*)
8396 lt_cv_path_NM="$tmp_nm -p"
8397 break 2
8400 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8401 continue # so that we can try to find one that supports BSD flags
8403 esac
8405 esac
8407 done
8408 IFS=$lt_save_ifs
8409 done
8410 : ${lt_cv_path_NM=no}
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8414 $as_echo "$lt_cv_path_NM" >&6; }
8415 if test no != "$lt_cv_path_NM"; then
8416 NM=$lt_cv_path_NM
8417 else
8418 # Didn't find any BSD compatible name lister, look for dumpbin.
8419 if test -n "$DUMPBIN"; then :
8420 # Let the user override the test.
8421 else
8422 if test -n "$ac_tool_prefix"; then
8423 for ac_prog in dumpbin "link -dump"
8425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_prog_DUMPBIN+:} false; then :
8430 $as_echo_n "(cached) " >&6
8431 else
8432 if test -n "$DUMPBIN"; then
8433 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8438 IFS=$as_save_IFS
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444 break 2
8446 done
8447 done
8448 IFS=$as_save_IFS
8452 DUMPBIN=$ac_cv_prog_DUMPBIN
8453 if test -n "$DUMPBIN"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8455 $as_echo "$DUMPBIN" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8462 test -n "$DUMPBIN" && break
8463 done
8465 if test -z "$DUMPBIN"; then
8466 ac_ct_DUMPBIN=$DUMPBIN
8467 for ac_prog in dumpbin "link -dump"
8469 # Extract the first word of "$ac_prog", so it can be a program name with args.
8470 set dummy $ac_prog; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 if test -n "$ac_ct_DUMPBIN"; then
8477 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8486 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8490 done
8491 done
8492 IFS=$as_save_IFS
8496 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8497 if test -n "$ac_ct_DUMPBIN"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8499 $as_echo "$ac_ct_DUMPBIN" >&6; }
8500 else
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8506 test -n "$ac_ct_DUMPBIN" && break
8507 done
8509 if test "x$ac_ct_DUMPBIN" = x; then
8510 DUMPBIN=":"
8511 else
8512 case $cross_compiling:$ac_tool_warned in
8513 yes:)
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8516 ac_tool_warned=yes ;;
8517 esac
8518 DUMPBIN=$ac_ct_DUMPBIN
8522 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8523 *COFF*)
8524 DUMPBIN="$DUMPBIN -symbols -headers"
8527 DUMPBIN=:
8529 esac
8532 if test : != "$DUMPBIN"; then
8533 NM=$DUMPBIN
8536 test -z "$NM" && NM=nm
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8544 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8545 if ${lt_cv_nm_interface+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 lt_cv_nm_interface="BSD nm"
8549 echo "int some_variable = 0;" > conftest.$ac_ext
8550 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8551 (eval "$ac_compile" 2>conftest.err)
8552 cat conftest.err >&5
8553 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8554 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8555 cat conftest.err >&5
8556 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8557 cat conftest.out >&5
8558 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8559 lt_cv_nm_interface="MS dumpbin"
8561 rm -f conftest*
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8564 $as_echo "$lt_cv_nm_interface" >&6; }
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8567 $as_echo_n "checking whether ln -s works... " >&6; }
8568 LN_S=$as_ln_s
8569 if test "$LN_S" = "ln -s"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8571 $as_echo "yes" >&6; }
8572 else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8574 $as_echo "no, using $LN_S" >&6; }
8577 # find the maximum length of command line arguments
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8579 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8580 if ${lt_cv_sys_max_cmd_len+:} false; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8584 teststring=ABCD
8586 case $build_os in
8587 msdosdjgpp*)
8588 # On DJGPP, this test can blow up pretty badly due to problems in libc
8589 # (any single argument exceeding 2000 bytes causes a buffer overrun
8590 # during glob expansion). Even if it were fixed, the result of this
8591 # check would be larger than it should be.
8592 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8595 gnu*)
8596 # Under GNU Hurd, this test is not required because there is
8597 # no limit to the length of command line arguments.
8598 # Libtool will interpret -1 as no limit whatsoever
8599 lt_cv_sys_max_cmd_len=-1;
8602 cygwin* | mingw* | cegcc*)
8603 # On Win9x/ME, this test blows up -- it succeeds, but takes
8604 # about 5 minutes as the teststring grows exponentially.
8605 # Worse, since 9x/ME are not pre-emptively multitasking,
8606 # you end up with a "frozen" computer, even though with patience
8607 # the test eventually succeeds (with a max line length of 256k).
8608 # Instead, let's just punt: use the minimum linelength reported by
8609 # all of the supported platforms: 8192 (on NT/2K/XP).
8610 lt_cv_sys_max_cmd_len=8192;
8613 mint*)
8614 # On MiNT this can take a long time and run out of memory.
8615 lt_cv_sys_max_cmd_len=8192;
8618 amigaos*)
8619 # On AmigaOS with pdksh, this test takes hours, literally.
8620 # So we just punt and use a minimum line length of 8192.
8621 lt_cv_sys_max_cmd_len=8192;
8624 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8625 # This has been around since 386BSD, at least. Likely further.
8626 if test -x /sbin/sysctl; then
8627 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8628 elif test -x /usr/sbin/sysctl; then
8629 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8630 else
8631 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8633 # And add a safety zone
8634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8638 interix*)
8639 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8640 lt_cv_sys_max_cmd_len=196608
8643 os2*)
8644 # The test takes a long time on OS/2.
8645 lt_cv_sys_max_cmd_len=8192
8648 osf*)
8649 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8650 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8651 # nice to cause kernel panics so lets avoid the loop below.
8652 # First set a reasonable default.
8653 lt_cv_sys_max_cmd_len=16384
8655 if test -x /sbin/sysconfig; then
8656 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8657 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8658 esac
8661 sco3.2v5*)
8662 lt_cv_sys_max_cmd_len=102400
8664 sysv5* | sco5v6* | sysv4.2uw2*)
8665 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8666 if test -n "$kargmax"; then
8667 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8668 else
8669 lt_cv_sys_max_cmd_len=32768
8673 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8674 if test -n "$lt_cv_sys_max_cmd_len" && \
8675 test undefined != "$lt_cv_sys_max_cmd_len"; then
8676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8678 else
8679 # Make teststring a little bigger before we do anything with it.
8680 # a 1K string should be a reasonable start.
8681 for i in 1 2 3 4 5 6 7 8; do
8682 teststring=$teststring$teststring
8683 done
8684 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8685 # If test is not a shell built-in, we'll probably end up computing a
8686 # maximum length that is only half of the actual maximum length, but
8687 # we can't tell.
8688 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8689 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8690 test 17 != "$i" # 1/2 MB should be enough
8692 i=`expr $i + 1`
8693 teststring=$teststring$teststring
8694 done
8695 # Only check the string length outside the loop.
8696 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8697 teststring=
8698 # Add a significant safety factor because C++ compilers can tack on
8699 # massive amounts of additional arguments before passing them to the
8700 # linker. It appears as though 1/2 is a usable value.
8701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8704 esac
8708 if test -n "$lt_cv_sys_max_cmd_len"; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8710 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8711 else
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8713 $as_echo "none" >&6; }
8715 max_cmd_len=$lt_cv_sys_max_cmd_len
8722 : ${CP="cp -f"}
8723 : ${MV="mv -f"}
8724 : ${RM="rm -f"}
8726 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8727 lt_unset=unset
8728 else
8729 lt_unset=false
8736 # test EBCDIC or ASCII
8737 case `echo X|tr X '\101'` in
8738 A) # ASCII based system
8739 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8740 lt_SP2NL='tr \040 \012'
8741 lt_NL2SP='tr \015\012 \040\040'
8743 *) # EBCDIC based system
8744 lt_SP2NL='tr \100 \n'
8745 lt_NL2SP='tr \r\n \100\100'
8747 esac
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8758 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8759 if ${lt_cv_to_host_file_cmd+:} false; then :
8760 $as_echo_n "(cached) " >&6
8761 else
8762 case $host in
8763 *-*-mingw* )
8764 case $build in
8765 *-*-mingw* ) # actually msys
8766 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8768 *-*-cygwin* )
8769 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8771 * ) # otherwise, assume *nix
8772 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8774 esac
8776 *-*-cygwin* )
8777 case $build in
8778 *-*-mingw* ) # actually msys
8779 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8781 *-*-cygwin* )
8782 lt_cv_to_host_file_cmd=func_convert_file_noop
8784 * ) # otherwise, assume *nix
8785 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8787 esac
8789 * ) # unhandled hosts (and "normal" native builds)
8790 lt_cv_to_host_file_cmd=func_convert_file_noop
8792 esac
8796 to_host_file_cmd=$lt_cv_to_host_file_cmd
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8798 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8805 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8806 if ${lt_cv_to_tool_file_cmd+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 #assume ordinary cross tools, or native build.
8810 lt_cv_to_tool_file_cmd=func_convert_file_noop
8811 case $host in
8812 *-*-mingw* )
8813 case $build in
8814 *-*-mingw* ) # actually msys
8815 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8817 esac
8819 esac
8823 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8825 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8832 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8833 if ${lt_cv_ld_reload_flag+:} false; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 lt_cv_ld_reload_flag='-r'
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8839 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8840 reload_flag=$lt_cv_ld_reload_flag
8841 case $reload_flag in
8842 "" | " "*) ;;
8843 *) reload_flag=" $reload_flag" ;;
8844 esac
8845 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8846 case $host_os in
8847 cygwin* | mingw* | pw32* | cegcc*)
8848 if test yes != "$GCC"; then
8849 reload_cmds=false
8852 darwin*)
8853 if test yes = "$GCC"; then
8854 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8855 else
8856 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8859 esac
8869 if test -n "$ac_tool_prefix"; then
8870 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8871 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873 $as_echo_n "checking for $ac_word... " >&6; }
8874 if ${ac_cv_prog_OBJDUMP+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 if test -n "$OBJDUMP"; then
8878 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8879 else
8880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881 for as_dir in $PATH
8883 IFS=$as_save_IFS
8884 test -z "$as_dir" && as_dir=.
8885 for ac_exec_ext in '' $ac_executable_extensions; do
8886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8887 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8889 break 2
8891 done
8892 done
8893 IFS=$as_save_IFS
8897 OBJDUMP=$ac_cv_prog_OBJDUMP
8898 if test -n "$OBJDUMP"; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8900 $as_echo "$OBJDUMP" >&6; }
8901 else
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903 $as_echo "no" >&6; }
8908 if test -z "$ac_cv_prog_OBJDUMP"; then
8909 ac_ct_OBJDUMP=$OBJDUMP
8910 # Extract the first word of "objdump", so it can be a program name with args.
8911 set dummy objdump; ac_word=$2
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913 $as_echo_n "checking for $ac_word... " >&6; }
8914 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 if test -n "$ac_ct_OBJDUMP"; then
8918 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8919 else
8920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921 for as_dir in $PATH
8923 IFS=$as_save_IFS
8924 test -z "$as_dir" && as_dir=.
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8927 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 break 2
8931 done
8932 done
8933 IFS=$as_save_IFS
8937 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8938 if test -n "$ac_ct_OBJDUMP"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8940 $as_echo "$ac_ct_OBJDUMP" >&6; }
8941 else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8946 if test "x$ac_ct_OBJDUMP" = x; then
8947 OBJDUMP="false"
8948 else
8949 case $cross_compiling:$ac_tool_warned in
8950 yes:)
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8953 ac_tool_warned=yes ;;
8954 esac
8955 OBJDUMP=$ac_ct_OBJDUMP
8957 else
8958 OBJDUMP="$ac_cv_prog_OBJDUMP"
8961 test -z "$OBJDUMP" && OBJDUMP=objdump
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8972 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8973 if ${lt_cv_deplibs_check_method+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 lt_cv_file_magic_cmd='$MAGIC_CMD'
8977 lt_cv_file_magic_test_file=
8978 lt_cv_deplibs_check_method='unknown'
8979 # Need to set the preceding variable on all platforms that support
8980 # interlibrary dependencies.
8981 # 'none' -- dependencies not supported.
8982 # 'unknown' -- same as none, but documents that we really don't know.
8983 # 'pass_all' -- all dependencies passed with no checks.
8984 # 'test_compile' -- check by making test program.
8985 # 'file_magic [[regex]]' -- check by looking for files in library path
8986 # that responds to the $file_magic_cmd with a given extended regex.
8987 # If you have 'file' or equivalent on your system and you're not sure
8988 # whether 'pass_all' will *always* work, you probably want this one.
8990 case $host_os in
8991 aix[4-9]*)
8992 lt_cv_deplibs_check_method=pass_all
8995 beos*)
8996 lt_cv_deplibs_check_method=pass_all
8999 bsdi[45]*)
9000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9001 lt_cv_file_magic_cmd='/usr/bin/file -L'
9002 lt_cv_file_magic_test_file=/shlib/libc.so
9005 cygwin*)
9006 # func_win32_libid is a shell function defined in ltmain.sh
9007 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9008 lt_cv_file_magic_cmd='func_win32_libid'
9011 mingw* | pw32*)
9012 # Base MSYS/MinGW do not provide the 'file' command needed by
9013 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9014 # unless we find 'file', for example because we are cross-compiling.
9015 if ( file / ) >/dev/null 2>&1; then
9016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9017 lt_cv_file_magic_cmd='func_win32_libid'
9018 else
9019 # Keep this pattern in sync with the one in func_win32_libid.
9020 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9021 lt_cv_file_magic_cmd='$OBJDUMP -f'
9025 cegcc*)
9026 # use the weaker test based on 'objdump'. See mingw*.
9027 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9028 lt_cv_file_magic_cmd='$OBJDUMP -f'
9031 darwin* | rhapsody*)
9032 lt_cv_deplibs_check_method=pass_all
9035 freebsd* | dragonfly*)
9036 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9037 case $host_cpu in
9038 i*86 )
9039 # Not sure whether the presence of OpenBSD here was a mistake.
9040 # Let's accept both of them until this is cleared up.
9041 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9042 lt_cv_file_magic_cmd=/usr/bin/file
9043 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9045 esac
9046 else
9047 lt_cv_deplibs_check_method=pass_all
9051 haiku*)
9052 lt_cv_deplibs_check_method=pass_all
9055 hpux10.20* | hpux11*)
9056 lt_cv_file_magic_cmd=/usr/bin/file
9057 case $host_cpu in
9058 ia64*)
9059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9060 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9062 hppa*64*)
9063 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]'
9064 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9067 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9068 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9070 esac
9073 interix[3-9]*)
9074 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9078 irix5* | irix6* | nonstopux*)
9079 case $LD in
9080 *-32|*"-32 ") libmagic=32-bit;;
9081 *-n32|*"-n32 ") libmagic=N32;;
9082 *-64|*"-64 ") libmagic=64-bit;;
9083 *) libmagic=never-match;;
9084 esac
9085 lt_cv_deplibs_check_method=pass_all
9088 # This must be glibc/ELF.
9089 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9090 lt_cv_deplibs_check_method=pass_all
9093 netbsd*)
9094 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9096 else
9097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9101 newos6*)
9102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9103 lt_cv_file_magic_cmd=/usr/bin/file
9104 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9107 *nto* | *qnx*)
9108 lt_cv_deplibs_check_method=pass_all
9111 openbsd* | bitrig*)
9112 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9114 else
9115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9119 osf3* | osf4* | osf5*)
9120 lt_cv_deplibs_check_method=pass_all
9123 rdos*)
9124 lt_cv_deplibs_check_method=pass_all
9127 solaris*)
9128 lt_cv_deplibs_check_method=pass_all
9131 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9132 lt_cv_deplibs_check_method=pass_all
9135 sysv4 | sysv4.3*)
9136 case $host_vendor in
9137 motorola)
9138 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]'
9139 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9141 ncr)
9142 lt_cv_deplibs_check_method=pass_all
9144 sequent)
9145 lt_cv_file_magic_cmd='/bin/file'
9146 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9148 sni)
9149 lt_cv_file_magic_cmd='/bin/file'
9150 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9151 lt_cv_file_magic_test_file=/lib/libc.so
9153 siemens)
9154 lt_cv_deplibs_check_method=pass_all
9157 lt_cv_deplibs_check_method=pass_all
9159 esac
9162 tpf*)
9163 lt_cv_deplibs_check_method=pass_all
9165 os2*)
9166 lt_cv_deplibs_check_method=pass_all
9168 esac
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9172 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9174 file_magic_glob=
9175 want_nocaseglob=no
9176 if test "$build" = "$host"; then
9177 case $host_os in
9178 mingw* | pw32*)
9179 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9180 want_nocaseglob=yes
9181 else
9182 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9185 esac
9188 file_magic_cmd=$lt_cv_file_magic_cmd
9189 deplibs_check_method=$lt_cv_deplibs_check_method
9190 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9213 if test -n "$ac_tool_prefix"; then
9214 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9215 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217 $as_echo_n "checking for $ac_word... " >&6; }
9218 if ${ac_cv_prog_DLLTOOL+:} false; then :
9219 $as_echo_n "(cached) " >&6
9220 else
9221 if test -n "$DLLTOOL"; then
9222 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9223 else
9224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225 for as_dir in $PATH
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9231 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9233 break 2
9235 done
9236 done
9237 IFS=$as_save_IFS
9241 DLLTOOL=$ac_cv_prog_DLLTOOL
9242 if test -n "$DLLTOOL"; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9244 $as_echo "$DLLTOOL" >&6; }
9245 else
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247 $as_echo "no" >&6; }
9252 if test -z "$ac_cv_prog_DLLTOOL"; then
9253 ac_ct_DLLTOOL=$DLLTOOL
9254 # Extract the first word of "dlltool", so it can be a program name with args.
9255 set dummy dlltool; ac_word=$2
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9257 $as_echo_n "checking for $ac_word... " >&6; }
9258 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9259 $as_echo_n "(cached) " >&6
9260 else
9261 if test -n "$ac_ct_DLLTOOL"; then
9262 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9263 else
9264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265 for as_dir in $PATH
9267 IFS=$as_save_IFS
9268 test -z "$as_dir" && as_dir=.
9269 for ac_exec_ext in '' $ac_executable_extensions; do
9270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9271 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9273 break 2
9275 done
9276 done
9277 IFS=$as_save_IFS
9281 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9282 if test -n "$ac_ct_DLLTOOL"; then
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9284 $as_echo "$ac_ct_DLLTOOL" >&6; }
9285 else
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9287 $as_echo "no" >&6; }
9290 if test "x$ac_ct_DLLTOOL" = x; then
9291 DLLTOOL="false"
9292 else
9293 case $cross_compiling:$ac_tool_warned in
9294 yes:)
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9297 ac_tool_warned=yes ;;
9298 esac
9299 DLLTOOL=$ac_ct_DLLTOOL
9301 else
9302 DLLTOOL="$ac_cv_prog_DLLTOOL"
9305 test -z "$DLLTOOL" && DLLTOOL=dlltool
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9317 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9318 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 lt_cv_sharedlib_from_linklib_cmd='unknown'
9323 case $host_os in
9324 cygwin* | mingw* | pw32* | cegcc*)
9325 # two different shell functions defined in ltmain.sh;
9326 # decide which one to use based on capabilities of $DLLTOOL
9327 case `$DLLTOOL --help 2>&1` in
9328 *--identify-strict*)
9329 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9332 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9334 esac
9337 # fallback: assume linklib IS sharedlib
9338 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9340 esac
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9344 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9345 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9346 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9354 if test -n "$ac_tool_prefix"; then
9355 for ac_prog in ar
9357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360 $as_echo_n "checking for $ac_word... " >&6; }
9361 if ${ac_cv_prog_AR+:} false; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 if test -n "$AR"; then
9365 ac_cv_prog_AR="$AR" # Let the user override the test.
9366 else
9367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368 for as_dir in $PATH
9370 IFS=$as_save_IFS
9371 test -z "$as_dir" && as_dir=.
9372 for ac_exec_ext in '' $ac_executable_extensions; do
9373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9374 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9376 break 2
9378 done
9379 done
9380 IFS=$as_save_IFS
9384 AR=$ac_cv_prog_AR
9385 if test -n "$AR"; then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9387 $as_echo "$AR" >&6; }
9388 else
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390 $as_echo "no" >&6; }
9394 test -n "$AR" && break
9395 done
9397 if test -z "$AR"; then
9398 ac_ct_AR=$AR
9399 for ac_prog in ar
9401 # Extract the first word of "$ac_prog", so it can be a program name with args.
9402 set dummy $ac_prog; ac_word=$2
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9404 $as_echo_n "checking for $ac_word... " >&6; }
9405 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 if test -n "$ac_ct_AR"; then
9409 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9410 else
9411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9412 for as_dir in $PATH
9414 IFS=$as_save_IFS
9415 test -z "$as_dir" && as_dir=.
9416 for ac_exec_ext in '' $ac_executable_extensions; do
9417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9418 ac_cv_prog_ac_ct_AR="$ac_prog"
9419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9420 break 2
9422 done
9423 done
9424 IFS=$as_save_IFS
9428 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9429 if test -n "$ac_ct_AR"; then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9431 $as_echo "$ac_ct_AR" >&6; }
9432 else
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9434 $as_echo "no" >&6; }
9438 test -n "$ac_ct_AR" && break
9439 done
9441 if test "x$ac_ct_AR" = x; then
9442 AR="false"
9443 else
9444 case $cross_compiling:$ac_tool_warned in
9445 yes:)
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9448 ac_tool_warned=yes ;;
9449 esac
9450 AR=$ac_ct_AR
9454 : ${AR=ar}
9455 : ${AR_FLAGS=cru}
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9468 $as_echo_n "checking for archiver @FILE support... " >&6; }
9469 if ${lt_cv_ar_at_file+:} false; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 lt_cv_ar_at_file=no
9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h. */
9477 main ()
9481 return 0;
9483 _ACEOF
9484 if ac_fn_c_try_compile "$LINENO"; then :
9485 echo conftest.$ac_objext > conftest.lst
9486 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9488 (eval $lt_ar_try) 2>&5
9489 ac_status=$?
9490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9491 test $ac_status = 0; }
9492 if test 0 -eq "$ac_status"; then
9493 # Ensure the archiver fails upon bogus file names.
9494 rm -f conftest.$ac_objext libconftest.a
9495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9496 (eval $lt_ar_try) 2>&5
9497 ac_status=$?
9498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9499 test $ac_status = 0; }
9500 if test 0 -ne "$ac_status"; then
9501 lt_cv_ar_at_file=@
9504 rm -f conftest.* libconftest.a
9507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9511 $as_echo "$lt_cv_ar_at_file" >&6; }
9513 if test no = "$lt_cv_ar_at_file"; then
9514 archiver_list_spec=
9515 else
9516 archiver_list_spec=$lt_cv_ar_at_file
9525 if test -n "$ac_tool_prefix"; then
9526 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9527 set dummy ${ac_tool_prefix}strip; ac_word=$2
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9529 $as_echo_n "checking for $ac_word... " >&6; }
9530 if ${ac_cv_prog_STRIP+:} false; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 if test -n "$STRIP"; then
9534 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9535 else
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 for as_dir in $PATH
9539 IFS=$as_save_IFS
9540 test -z "$as_dir" && as_dir=.
9541 for ac_exec_ext in '' $ac_executable_extensions; do
9542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9543 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9545 break 2
9547 done
9548 done
9549 IFS=$as_save_IFS
9553 STRIP=$ac_cv_prog_STRIP
9554 if test -n "$STRIP"; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9556 $as_echo "$STRIP" >&6; }
9557 else
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9564 if test -z "$ac_cv_prog_STRIP"; then
9565 ac_ct_STRIP=$STRIP
9566 # Extract the first word of "strip", so it can be a program name with args.
9567 set dummy strip; ac_word=$2
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569 $as_echo_n "checking for $ac_word... " >&6; }
9570 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 if test -n "$ac_ct_STRIP"; then
9574 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9575 else
9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577 for as_dir in $PATH
9579 IFS=$as_save_IFS
9580 test -z "$as_dir" && as_dir=.
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9583 ac_cv_prog_ac_ct_STRIP="strip"
9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9585 break 2
9587 done
9588 done
9589 IFS=$as_save_IFS
9593 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9594 if test -n "$ac_ct_STRIP"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9596 $as_echo "$ac_ct_STRIP" >&6; }
9597 else
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9602 if test "x$ac_ct_STRIP" = x; then
9603 STRIP=":"
9604 else
9605 case $cross_compiling:$ac_tool_warned in
9606 yes:)
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9609 ac_tool_warned=yes ;;
9610 esac
9611 STRIP=$ac_ct_STRIP
9613 else
9614 STRIP="$ac_cv_prog_STRIP"
9617 test -z "$STRIP" && STRIP=:
9624 if test -n "$ac_tool_prefix"; then
9625 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9626 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628 $as_echo_n "checking for $ac_word... " >&6; }
9629 if ${ac_cv_prog_RANLIB+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 if test -n "$RANLIB"; then
9633 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9634 else
9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636 for as_dir in $PATH
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9642 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 break 2
9646 done
9647 done
9648 IFS=$as_save_IFS
9652 RANLIB=$ac_cv_prog_RANLIB
9653 if test -n "$RANLIB"; then
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9655 $as_echo "$RANLIB" >&6; }
9656 else
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658 $as_echo "no" >&6; }
9663 if test -z "$ac_cv_prog_RANLIB"; then
9664 ac_ct_RANLIB=$RANLIB
9665 # Extract the first word of "ranlib", so it can be a program name with args.
9666 set dummy ranlib; ac_word=$2
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9668 $as_echo_n "checking for $ac_word... " >&6; }
9669 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 if test -n "$ac_ct_RANLIB"; then
9673 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9674 else
9675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9676 for as_dir in $PATH
9678 IFS=$as_save_IFS
9679 test -z "$as_dir" && as_dir=.
9680 for ac_exec_ext in '' $ac_executable_extensions; do
9681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9682 ac_cv_prog_ac_ct_RANLIB="ranlib"
9683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9684 break 2
9686 done
9687 done
9688 IFS=$as_save_IFS
9692 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9693 if test -n "$ac_ct_RANLIB"; then
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9695 $as_echo "$ac_ct_RANLIB" >&6; }
9696 else
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9698 $as_echo "no" >&6; }
9701 if test "x$ac_ct_RANLIB" = x; then
9702 RANLIB=":"
9703 else
9704 case $cross_compiling:$ac_tool_warned in
9705 yes:)
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9708 ac_tool_warned=yes ;;
9709 esac
9710 RANLIB=$ac_ct_RANLIB
9712 else
9713 RANLIB="$ac_cv_prog_RANLIB"
9716 test -z "$RANLIB" && RANLIB=:
9723 # Determine commands to create old-style static archives.
9724 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9725 old_postinstall_cmds='chmod 644 $oldlib'
9726 old_postuninstall_cmds=
9728 if test -n "$RANLIB"; then
9729 case $host_os in
9730 bitrig* | openbsd*)
9731 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9734 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9736 esac
9737 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9740 case $host_os in
9741 darwin*)
9742 lock_old_archive_extraction=yes ;;
9744 lock_old_archive_extraction=no ;;
9745 esac
9785 # If no C compiler was specified, use CC.
9786 LTCC=${LTCC-"$CC"}
9788 # If no C compiler flags were specified, use CFLAGS.
9789 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9791 # Allow CC to be a program name with arguments.
9792 compiler=$CC
9795 # Check for command to grab the raw symbol name followed by C symbol from nm.
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9797 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9798 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9802 # These are sane defaults that work on at least a few old systems.
9803 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9805 # Character class describing NM global symbol codes.
9806 symcode='[BCDEGRST]'
9808 # Regexp to match symbols that can be accessed directly from C.
9809 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9811 # Define system-specific variables.
9812 case $host_os in
9813 aix*)
9814 symcode='[BCDT]'
9816 cygwin* | mingw* | pw32* | cegcc*)
9817 symcode='[ABCDGISTW]'
9819 hpux*)
9820 if test ia64 = "$host_cpu"; then
9821 symcode='[ABCDEGRST]'
9824 irix* | nonstopux*)
9825 symcode='[BCDEGRST]'
9827 osf*)
9828 symcode='[BCDEGQRST]'
9830 solaris*)
9831 symcode='[BDRT]'
9833 sco3.2v5*)
9834 symcode='[DT]'
9836 sysv4.2uw2*)
9837 symcode='[DT]'
9839 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9840 symcode='[ABDT]'
9842 sysv4)
9843 symcode='[DFNSTU]'
9845 esac
9847 # If we're using GNU nm, then use its standard symbol codes.
9848 case `$NM -V 2>&1` in
9849 *GNU* | *'with BFD'*)
9850 symcode='[ABCDGIRSTW]' ;;
9851 esac
9853 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9854 # Gets list of data symbols to import.
9855 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9856 # Adjust the below global symbol transforms to fixup imported variables.
9857 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9858 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9859 lt_c_name_lib_hook="\
9860 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9861 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9862 else
9863 # Disable hooks by default.
9864 lt_cv_sys_global_symbol_to_import=
9865 lt_cdecl_hook=
9866 lt_c_name_hook=
9867 lt_c_name_lib_hook=
9870 # Transform an extracted symbol line into a proper C declaration.
9871 # Some systems (esp. on ia64) link data and code symbols differently,
9872 # so use this general approach.
9873 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9874 $lt_cdecl_hook\
9875 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9876 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9878 # Transform an extracted symbol line into symbol name and symbol address
9879 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9880 $lt_c_name_hook\
9881 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9882 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9884 # Transform an extracted symbol line into symbol name with lib prefix and
9885 # symbol address.
9886 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9887 $lt_c_name_lib_hook\
9888 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9889 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9890 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9892 # Handle CRLF in mingw tool chain
9893 opt_cr=
9894 case $build_os in
9895 mingw*)
9896 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9898 esac
9900 # Try without a prefix underscore, then with it.
9901 for ac_symprfx in "" "_"; do
9903 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9904 symxfrm="\\1 $ac_symprfx\\2 \\2"
9906 # Write the raw and C identifiers.
9907 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9908 # Fake it for dumpbin and say T for any non-static function,
9909 # D for any global variable and I for any imported variable.
9910 # Also find C++ and __fastcall symbols from MSVC++,
9911 # which start with @ or ?.
9912 lt_cv_sys_global_symbol_pipe="$AWK '"\
9913 " {last_section=section; section=\$ 3};"\
9914 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9915 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9916 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9917 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9918 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9919 " \$ 0!~/External *\|/{next};"\
9920 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9921 " {if(hide[section]) next};"\
9922 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9923 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9924 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9925 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9926 " ' prfx=^$ac_symprfx"
9927 else
9928 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9930 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9932 # Check to see that the pipe works correctly.
9933 pipe_works=no
9935 rm -f conftest*
9936 cat > conftest.$ac_ext <<_LT_EOF
9937 #ifdef __cplusplus
9938 extern "C" {
9939 #endif
9940 char nm_test_var;
9941 void nm_test_func(void);
9942 void nm_test_func(void){}
9943 #ifdef __cplusplus
9945 #endif
9946 int main(){nm_test_var='a';nm_test_func();return(0);}
9947 _LT_EOF
9949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9950 (eval $ac_compile) 2>&5
9951 ac_status=$?
9952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9953 test $ac_status = 0; }; then
9954 # Now try to grab the symbols.
9955 nlist=conftest.nm
9956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9957 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9958 ac_status=$?
9959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9960 test $ac_status = 0; } && test -s "$nlist"; then
9961 # Try sorting and uniquifying the output.
9962 if sort "$nlist" | uniq > "$nlist"T; then
9963 mv -f "$nlist"T "$nlist"
9964 else
9965 rm -f "$nlist"T
9968 # Make sure that we snagged all the symbols we need.
9969 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9970 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9971 cat <<_LT_EOF > conftest.$ac_ext
9972 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9973 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9974 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9975 relocations are performed -- see ld's documentation on pseudo-relocs. */
9976 # define LT_DLSYM_CONST
9977 #elif defined __osf__
9978 /* This system does not cope well with relocations in const data. */
9979 # define LT_DLSYM_CONST
9980 #else
9981 # define LT_DLSYM_CONST const
9982 #endif
9984 #ifdef __cplusplus
9985 extern "C" {
9986 #endif
9988 _LT_EOF
9989 # Now generate the symbol file.
9990 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9992 cat <<_LT_EOF >> conftest.$ac_ext
9994 /* The mapping between symbol names and symbols. */
9995 LT_DLSYM_CONST struct {
9996 const char *name;
9997 void *address;
9999 lt__PROGRAM__LTX_preloaded_symbols[] =
10001 { "@PROGRAM@", (void *) 0 },
10002 _LT_EOF
10003 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10004 cat <<\_LT_EOF >> conftest.$ac_ext
10005 {0, (void *) 0}
10008 /* This works around a problem in FreeBSD linker */
10009 #ifdef FREEBSD_WORKAROUND
10010 static const void *lt_preloaded_setup() {
10011 return lt__PROGRAM__LTX_preloaded_symbols;
10013 #endif
10015 #ifdef __cplusplus
10017 #endif
10018 _LT_EOF
10019 # Now try linking the two files.
10020 mv conftest.$ac_objext conftstm.$ac_objext
10021 lt_globsym_save_LIBS=$LIBS
10022 lt_globsym_save_CFLAGS=$CFLAGS
10023 LIBS=conftstm.$ac_objext
10024 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10026 (eval $ac_link) 2>&5
10027 ac_status=$?
10028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10029 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10030 pipe_works=yes
10032 LIBS=$lt_globsym_save_LIBS
10033 CFLAGS=$lt_globsym_save_CFLAGS
10034 else
10035 echo "cannot find nm_test_func in $nlist" >&5
10037 else
10038 echo "cannot find nm_test_var in $nlist" >&5
10040 else
10041 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10043 else
10044 echo "$progname: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10047 rm -rf conftest* conftst*
10049 # Do not use the global_symbol_pipe unless it works.
10050 if test yes = "$pipe_works"; then
10051 break
10052 else
10053 lt_cv_sys_global_symbol_pipe=
10055 done
10059 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10060 lt_cv_sys_global_symbol_to_cdecl=
10062 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10064 $as_echo "failed" >&6; }
10065 else
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10067 $as_echo "ok" >&6; }
10070 # Response file support.
10071 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10072 nm_file_list_spec='@'
10073 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10074 nm_file_list_spec='@'
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10114 $as_echo_n "checking for sysroot... " >&6; }
10116 # Check whether --with-sysroot was given.
10117 if test "${with_sysroot+set}" = set; then :
10118 withval=$with_sysroot;
10119 else
10120 with_sysroot=no
10124 lt_sysroot=
10125 case $with_sysroot in #(
10126 yes)
10127 if test yes = "$GCC"; then
10128 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10130 ;; #(
10132 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10133 ;; #(
10134 no|'')
10135 ;; #(
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10138 $as_echo "$with_sysroot" >&6; }
10139 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10141 esac
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10144 $as_echo "${lt_sysroot:-no}" >&6; }
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10151 $as_echo_n "checking for a working dd... " >&6; }
10152 if ${ac_cv_path_lt_DD+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 printf 0123456789abcdef0123456789abcdef >conftest.i
10156 cat conftest.i conftest.i >conftest2.i
10157 : ${lt_DD:=$DD}
10158 if test -z "$lt_DD"; then
10159 ac_path_lt_DD_found=false
10160 # Loop through the user's path and test for each of PROGNAME-LIST
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10164 IFS=$as_save_IFS
10165 test -z "$as_dir" && as_dir=.
10166 for ac_prog in dd; do
10167 for ac_exec_ext in '' $ac_executable_extensions; do
10168 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10169 as_fn_executable_p "$ac_path_lt_DD" || continue
10170 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10171 cmp -s conftest.i conftest.out \
10172 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10174 $ac_path_lt_DD_found && break 3
10175 done
10176 done
10177 done
10178 IFS=$as_save_IFS
10179 if test -z "$ac_cv_path_lt_DD"; then
10182 else
10183 ac_cv_path_lt_DD=$lt_DD
10186 rm -f conftest.i conftest2.i conftest.out
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10189 $as_echo "$ac_cv_path_lt_DD" >&6; }
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10193 $as_echo_n "checking how to truncate binary pipes... " >&6; }
10194 if ${lt_cv_truncate_bin+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 printf 0123456789abcdef0123456789abcdef >conftest.i
10198 cat conftest.i conftest.i >conftest2.i
10199 lt_cv_truncate_bin=
10200 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10201 cmp -s conftest.i conftest.out \
10202 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10204 rm -f conftest.i conftest2.i conftest.out
10205 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10208 $as_echo "$lt_cv_truncate_bin" >&6; }
10216 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10217 func_cc_basename ()
10219 for cc_temp in $*""; do
10220 case $cc_temp in
10221 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10222 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10223 \-*) ;;
10224 *) break;;
10225 esac
10226 done
10227 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10230 # Check whether --enable-libtool-lock was given.
10231 if test "${enable_libtool_lock+set}" = set; then :
10232 enableval=$enable_libtool_lock;
10235 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10237 # Some flags need to be propagated to the compiler or linker for good
10238 # libtool support.
10239 case $host in
10240 ia64-*-hpux*)
10241 # Find out what ABI is being produced by ac_compile, and set mode
10242 # options accordingly.
10243 echo 'int i;' > conftest.$ac_ext
10244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10245 (eval $ac_compile) 2>&5
10246 ac_status=$?
10247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10248 test $ac_status = 0; }; then
10249 case `/usr/bin/file conftest.$ac_objext` in
10250 *ELF-32*)
10251 HPUX_IA64_MODE=32
10253 *ELF-64*)
10254 HPUX_IA64_MODE=64
10256 esac
10258 rm -rf conftest*
10260 *-*-irix6*)
10261 # Find out what ABI is being produced by ac_compile, and set linker
10262 # options accordingly.
10263 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10265 (eval $ac_compile) 2>&5
10266 ac_status=$?
10267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10268 test $ac_status = 0; }; then
10269 if test yes = "$lt_cv_prog_gnu_ld"; then
10270 case `/usr/bin/file conftest.$ac_objext` in
10271 *32-bit*)
10272 LD="${LD-ld} -melf32bsmip"
10274 *N32*)
10275 LD="${LD-ld} -melf32bmipn32"
10277 *64-bit*)
10278 LD="${LD-ld} -melf64bmip"
10280 esac
10281 else
10282 case `/usr/bin/file conftest.$ac_objext` in
10283 *32-bit*)
10284 LD="${LD-ld} -32"
10286 *N32*)
10287 LD="${LD-ld} -n32"
10289 *64-bit*)
10290 LD="${LD-ld} -64"
10292 esac
10295 rm -rf conftest*
10298 mips64*-*linux*)
10299 # Find out what ABI is being produced by ac_compile, and set linker
10300 # options accordingly.
10301 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10303 (eval $ac_compile) 2>&5
10304 ac_status=$?
10305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10306 test $ac_status = 0; }; then
10307 emul=elf
10308 case `/usr/bin/file conftest.$ac_objext` in
10309 *32-bit*)
10310 emul="${emul}32"
10312 *64-bit*)
10313 emul="${emul}64"
10315 esac
10316 case `/usr/bin/file conftest.$ac_objext` in
10317 *MSB*)
10318 emul="${emul}btsmip"
10320 *LSB*)
10321 emul="${emul}ltsmip"
10323 esac
10324 case `/usr/bin/file conftest.$ac_objext` in
10325 *N32*)
10326 emul="${emul}n32"
10328 esac
10329 LD="${LD-ld} -m $emul"
10331 rm -rf conftest*
10334 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10335 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10336 # Find out what ABI is being produced by ac_compile, and set linker
10337 # options accordingly. Note that the listed cases only cover the
10338 # situations where additional linker options are needed (such as when
10339 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10340 # vice versa); the common cases where no linker options are needed do
10341 # not appear in the list.
10342 echo 'int i;' > conftest.$ac_ext
10343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10344 (eval $ac_compile) 2>&5
10345 ac_status=$?
10346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10347 test $ac_status = 0; }; then
10348 case `/usr/bin/file conftest.o` in
10349 *32-bit*)
10350 case $host in
10351 x86_64-*kfreebsd*-gnu)
10352 LD="${LD-ld} -m elf_i386_fbsd"
10354 x86_64-*linux*)
10355 case `/usr/bin/file conftest.o` in
10356 *x86-64*)
10357 LD="${LD-ld} -m elf32_x86_64"
10360 LD="${LD-ld} -m elf_i386"
10362 esac
10364 powerpc64le-*linux*)
10365 LD="${LD-ld} -m elf32lppclinux"
10367 powerpc64-*linux*)
10368 LD="${LD-ld} -m elf32ppclinux"
10370 s390x-*linux*)
10371 LD="${LD-ld} -m elf_s390"
10373 sparc64-*linux*)
10374 LD="${LD-ld} -m elf32_sparc"
10376 esac
10378 *64-bit*)
10379 case $host in
10380 x86_64-*kfreebsd*-gnu)
10381 LD="${LD-ld} -m elf_x86_64_fbsd"
10383 x86_64-*linux*)
10384 LD="${LD-ld} -m elf_x86_64"
10386 powerpcle-*linux*)
10387 LD="${LD-ld} -m elf64lppc"
10389 powerpc-*linux*)
10390 LD="${LD-ld} -m elf64ppc"
10392 s390*-*linux*|s390*-*tpf*)
10393 LD="${LD-ld} -m elf64_s390"
10395 sparc*-*linux*)
10396 LD="${LD-ld} -m elf64_sparc"
10398 esac
10400 esac
10402 rm -rf conftest*
10405 *-*-sco3.2v5*)
10406 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10407 SAVE_CFLAGS=$CFLAGS
10408 CFLAGS="$CFLAGS -belf"
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10410 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10411 if ${lt_cv_cc_needs_belf+:} false; then :
10412 $as_echo_n "(cached) " >&6
10413 else
10414 ac_ext=c
10415 ac_cpp='$CPP $CPPFLAGS'
10416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10424 main ()
10428 return 0;
10430 _ACEOF
10431 if ac_fn_c_try_link "$LINENO"; then :
10432 lt_cv_cc_needs_belf=yes
10433 else
10434 lt_cv_cc_needs_belf=no
10436 rm -f core conftest.err conftest.$ac_objext \
10437 conftest$ac_exeext conftest.$ac_ext
10438 ac_ext=c
10439 ac_cpp='$CPP $CPPFLAGS'
10440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10446 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10447 if test yes != "$lt_cv_cc_needs_belf"; then
10448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10449 CFLAGS=$SAVE_CFLAGS
10452 *-*solaris*)
10453 # Find out what ABI is being produced by ac_compile, and set linker
10454 # options accordingly.
10455 echo 'int i;' > conftest.$ac_ext
10456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10457 (eval $ac_compile) 2>&5
10458 ac_status=$?
10459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10460 test $ac_status = 0; }; then
10461 case `/usr/bin/file conftest.o` in
10462 *64-bit*)
10463 case $lt_cv_prog_gnu_ld in
10464 yes*)
10465 case $host in
10466 i?86-*-solaris*|x86_64-*-solaris*)
10467 LD="${LD-ld} -m elf_x86_64"
10469 sparc*-*-solaris*)
10470 LD="${LD-ld} -m elf64_sparc"
10472 esac
10473 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10474 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10475 LD=${LD-ld}_sol2
10479 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10480 LD="${LD-ld} -64"
10483 esac
10485 esac
10487 rm -rf conftest*
10489 esac
10491 need_locks=$enable_libtool_lock
10493 if test -n "$ac_tool_prefix"; then
10494 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10495 set dummy ${ac_tool_prefix}mt; ac_word=$2
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10497 $as_echo_n "checking for $ac_word... " >&6; }
10498 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 if test -n "$MANIFEST_TOOL"; then
10502 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10503 else
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10515 done
10516 done
10517 IFS=$as_save_IFS
10521 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10522 if test -n "$MANIFEST_TOOL"; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10524 $as_echo "$MANIFEST_TOOL" >&6; }
10525 else
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527 $as_echo "no" >&6; }
10532 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10533 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10534 # Extract the first word of "mt", so it can be a program name with args.
10535 set dummy mt; ac_word=$2
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10537 $as_echo_n "checking for $ac_word... " >&6; }
10538 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10539 $as_echo_n "(cached) " >&6
10540 else
10541 if test -n "$ac_ct_MANIFEST_TOOL"; then
10542 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10543 else
10544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10545 for as_dir in $PATH
10547 IFS=$as_save_IFS
10548 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do
10550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10551 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 break 2
10555 done
10556 done
10557 IFS=$as_save_IFS
10561 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10562 if test -n "$ac_ct_MANIFEST_TOOL"; then
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10564 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10565 else
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567 $as_echo "no" >&6; }
10570 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10571 MANIFEST_TOOL=":"
10572 else
10573 case $cross_compiling:$ac_tool_warned in
10574 yes:)
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10577 ac_tool_warned=yes ;;
10578 esac
10579 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10581 else
10582 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10585 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10587 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10588 if ${lt_cv_path_mainfest_tool+:} false; then :
10589 $as_echo_n "(cached) " >&6
10590 else
10591 lt_cv_path_mainfest_tool=no
10592 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10593 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10594 cat conftest.err >&5
10595 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10596 lt_cv_path_mainfest_tool=yes
10598 rm -f conftest*
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10601 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10602 if test yes != "$lt_cv_path_mainfest_tool"; then
10603 MANIFEST_TOOL=:
10611 case $host_os in
10612 rhapsody* | darwin*)
10613 if test -n "$ac_tool_prefix"; then
10614 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10615 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617 $as_echo_n "checking for $ac_word... " >&6; }
10618 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 if test -n "$DSYMUTIL"; then
10622 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10623 else
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10631 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 break 2
10635 done
10636 done
10637 IFS=$as_save_IFS
10641 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10642 if test -n "$DSYMUTIL"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10644 $as_echo "$DSYMUTIL" >&6; }
10645 else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; }
10652 if test -z "$ac_cv_prog_DSYMUTIL"; then
10653 ac_ct_DSYMUTIL=$DSYMUTIL
10654 # Extract the first word of "dsymutil", so it can be a program name with args.
10655 set dummy dsymutil; ac_word=$2
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10657 $as_echo_n "checking for $ac_word... " >&6; }
10658 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10659 $as_echo_n "(cached) " >&6
10660 else
10661 if test -n "$ac_ct_DSYMUTIL"; then
10662 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10663 else
10664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665 for as_dir in $PATH
10667 IFS=$as_save_IFS
10668 test -z "$as_dir" && as_dir=.
10669 for ac_exec_ext in '' $ac_executable_extensions; do
10670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10671 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10673 break 2
10675 done
10676 done
10677 IFS=$as_save_IFS
10681 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10682 if test -n "$ac_ct_DSYMUTIL"; then
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10684 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10685 else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 $as_echo "no" >&6; }
10690 if test "x$ac_ct_DSYMUTIL" = x; then
10691 DSYMUTIL=":"
10692 else
10693 case $cross_compiling:$ac_tool_warned in
10694 yes:)
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10697 ac_tool_warned=yes ;;
10698 esac
10699 DSYMUTIL=$ac_ct_DSYMUTIL
10701 else
10702 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10705 if test -n "$ac_tool_prefix"; then
10706 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10707 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709 $as_echo_n "checking for $ac_word... " >&6; }
10710 if ${ac_cv_prog_NMEDIT+:} false; then :
10711 $as_echo_n "(cached) " >&6
10712 else
10713 if test -n "$NMEDIT"; then
10714 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10715 else
10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717 for as_dir in $PATH
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10723 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 break 2
10727 done
10728 done
10729 IFS=$as_save_IFS
10733 NMEDIT=$ac_cv_prog_NMEDIT
10734 if test -n "$NMEDIT"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10736 $as_echo "$NMEDIT" >&6; }
10737 else
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10744 if test -z "$ac_cv_prog_NMEDIT"; then
10745 ac_ct_NMEDIT=$NMEDIT
10746 # Extract the first word of "nmedit", so it can be a program name with args.
10747 set dummy nmedit; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 if test -n "$ac_ct_NMEDIT"; then
10754 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10755 else
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10767 done
10768 done
10769 IFS=$as_save_IFS
10773 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10774 if test -n "$ac_ct_NMEDIT"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10776 $as_echo "$ac_ct_NMEDIT" >&6; }
10777 else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; }
10782 if test "x$ac_ct_NMEDIT" = x; then
10783 NMEDIT=":"
10784 else
10785 case $cross_compiling:$ac_tool_warned in
10786 yes:)
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10789 ac_tool_warned=yes ;;
10790 esac
10791 NMEDIT=$ac_ct_NMEDIT
10793 else
10794 NMEDIT="$ac_cv_prog_NMEDIT"
10797 if test -n "$ac_tool_prefix"; then
10798 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10799 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10801 $as_echo_n "checking for $ac_word... " >&6; }
10802 if ${ac_cv_prog_LIPO+:} false; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10805 if test -n "$LIPO"; then
10806 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10807 else
10808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809 for as_dir in $PATH
10811 IFS=$as_save_IFS
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
10814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10815 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 break 2
10819 done
10820 done
10821 IFS=$as_save_IFS
10825 LIPO=$ac_cv_prog_LIPO
10826 if test -n "$LIPO"; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10828 $as_echo "$LIPO" >&6; }
10829 else
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; }
10836 if test -z "$ac_cv_prog_LIPO"; then
10837 ac_ct_LIPO=$LIPO
10838 # Extract the first word of "lipo", so it can be a program name with args.
10839 set dummy lipo; ac_word=$2
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10841 $as_echo_n "checking for $ac_word... " >&6; }
10842 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 if test -n "$ac_ct_LIPO"; then
10846 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10847 else
10848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10849 for as_dir in $PATH
10851 IFS=$as_save_IFS
10852 test -z "$as_dir" && as_dir=.
10853 for ac_exec_ext in '' $ac_executable_extensions; do
10854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10855 ac_cv_prog_ac_ct_LIPO="lipo"
10856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10857 break 2
10859 done
10860 done
10861 IFS=$as_save_IFS
10865 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10866 if test -n "$ac_ct_LIPO"; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10868 $as_echo "$ac_ct_LIPO" >&6; }
10869 else
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }
10874 if test "x$ac_ct_LIPO" = x; then
10875 LIPO=":"
10876 else
10877 case $cross_compiling:$ac_tool_warned in
10878 yes:)
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10881 ac_tool_warned=yes ;;
10882 esac
10883 LIPO=$ac_ct_LIPO
10885 else
10886 LIPO="$ac_cv_prog_LIPO"
10889 if test -n "$ac_tool_prefix"; then
10890 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10891 set dummy ${ac_tool_prefix}otool; ac_word=$2
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893 $as_echo_n "checking for $ac_word... " >&6; }
10894 if ${ac_cv_prog_OTOOL+:} false; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 if test -n "$OTOOL"; then
10898 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10899 else
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909 break 2
10911 done
10912 done
10913 IFS=$as_save_IFS
10917 OTOOL=$ac_cv_prog_OTOOL
10918 if test -n "$OTOOL"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10920 $as_echo "$OTOOL" >&6; }
10921 else
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923 $as_echo "no" >&6; }
10928 if test -z "$ac_cv_prog_OTOOL"; then
10929 ac_ct_OTOOL=$OTOOL
10930 # Extract the first word of "otool", so it can be a program name with args.
10931 set dummy otool; ac_word=$2
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10933 $as_echo_n "checking for $ac_word... " >&6; }
10934 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10937 if test -n "$ac_ct_OTOOL"; then
10938 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10939 else
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947 ac_cv_prog_ac_ct_OTOOL="otool"
10948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10951 done
10952 done
10953 IFS=$as_save_IFS
10957 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10958 if test -n "$ac_ct_OTOOL"; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10960 $as_echo "$ac_ct_OTOOL" >&6; }
10961 else
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 $as_echo "no" >&6; }
10966 if test "x$ac_ct_OTOOL" = x; then
10967 OTOOL=":"
10968 else
10969 case $cross_compiling:$ac_tool_warned in
10970 yes:)
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10973 ac_tool_warned=yes ;;
10974 esac
10975 OTOOL=$ac_ct_OTOOL
10977 else
10978 OTOOL="$ac_cv_prog_OTOOL"
10981 if test -n "$ac_tool_prefix"; then
10982 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10983 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985 $as_echo_n "checking for $ac_word... " >&6; }
10986 if ${ac_cv_prog_OTOOL64+:} false; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 if test -n "$OTOOL64"; then
10990 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10991 else
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $PATH
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_exec_ext in '' $ac_executable_extensions; do
10998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10999 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 break 2
11003 done
11004 done
11005 IFS=$as_save_IFS
11009 OTOOL64=$ac_cv_prog_OTOOL64
11010 if test -n "$OTOOL64"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11012 $as_echo "$OTOOL64" >&6; }
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015 $as_echo "no" >&6; }
11020 if test -z "$ac_cv_prog_OTOOL64"; then
11021 ac_ct_OTOOL64=$OTOOL64
11022 # Extract the first word of "otool64", so it can be a program name with args.
11023 set dummy otool64; ac_word=$2
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025 $as_echo_n "checking for $ac_word... " >&6; }
11026 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 if test -n "$ac_ct_OTOOL64"; then
11030 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11031 else
11032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033 for as_dir in $PATH
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11039 ac_cv_prog_ac_ct_OTOOL64="otool64"
11040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11043 done
11044 done
11045 IFS=$as_save_IFS
11049 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11050 if test -n "$ac_ct_OTOOL64"; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11052 $as_echo "$ac_ct_OTOOL64" >&6; }
11053 else
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055 $as_echo "no" >&6; }
11058 if test "x$ac_ct_OTOOL64" = x; then
11059 OTOOL64=":"
11060 else
11061 case $cross_compiling:$ac_tool_warned in
11062 yes:)
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11065 ac_tool_warned=yes ;;
11066 esac
11067 OTOOL64=$ac_ct_OTOOL64
11069 else
11070 OTOOL64="$ac_cv_prog_OTOOL64"
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11100 $as_echo_n "checking for -single_module linker flag... " >&6; }
11101 if ${lt_cv_apple_cc_single_mod+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 lt_cv_apple_cc_single_mod=no
11105 if test -z "$LT_MULTI_MODULE"; then
11106 # By default we will add the -single_module flag. You can override
11107 # by either setting the environment variable LT_MULTI_MODULE
11108 # non-empty at configure time, or by adding -multi_module to the
11109 # link flags.
11110 rm -rf libconftest.dylib*
11111 echo "int foo(void){return 1;}" > conftest.c
11112 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11113 -dynamiclib -Wl,-single_module conftest.c" >&5
11114 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11115 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11116 _lt_result=$?
11117 # If there is a non-empty error log, and "single_module"
11118 # appears in it, assume the flag caused a linker warning
11119 if test -s conftest.err && $GREP single_module conftest.err; then
11120 cat conftest.err >&5
11121 # Otherwise, if the output was created with a 0 exit code from
11122 # the compiler, it worked.
11123 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11124 lt_cv_apple_cc_single_mod=yes
11125 else
11126 cat conftest.err >&5
11128 rm -rf libconftest.dylib*
11129 rm -f conftest.*
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11133 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11136 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11137 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 lt_cv_ld_exported_symbols_list=no
11141 save_LDFLAGS=$LDFLAGS
11142 echo "_main" > conftest.sym
11143 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11148 main ()
11152 return 0;
11154 _ACEOF
11155 if ac_fn_c_try_link "$LINENO"; then :
11156 lt_cv_ld_exported_symbols_list=yes
11157 else
11158 lt_cv_ld_exported_symbols_list=no
11160 rm -f core conftest.err conftest.$ac_objext \
11161 conftest$ac_exeext conftest.$ac_ext
11162 LDFLAGS=$save_LDFLAGS
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11166 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11169 $as_echo_n "checking for -force_load linker flag... " >&6; }
11170 if ${lt_cv_ld_force_load+:} false; then :
11171 $as_echo_n "(cached) " >&6
11172 else
11173 lt_cv_ld_force_load=no
11174 cat > conftest.c << _LT_EOF
11175 int forced_loaded() { return 2;}
11176 _LT_EOF
11177 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11178 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11179 echo "$AR cru libconftest.a conftest.o" >&5
11180 $AR cru libconftest.a conftest.o 2>&5
11181 echo "$RANLIB libconftest.a" >&5
11182 $RANLIB libconftest.a 2>&5
11183 cat > conftest.c << _LT_EOF
11184 int main() { return 0;}
11185 _LT_EOF
11186 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11187 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11188 _lt_result=$?
11189 if test -s conftest.err && $GREP force_load conftest.err; then
11190 cat conftest.err >&5
11191 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11192 lt_cv_ld_force_load=yes
11193 else
11194 cat conftest.err >&5
11196 rm -f conftest.err libconftest.a conftest conftest.c
11197 rm -rf conftest.dSYM
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11201 $as_echo "$lt_cv_ld_force_load" >&6; }
11202 case $host_os in
11203 rhapsody* | darwin1.[012])
11204 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11205 darwin1.*)
11206 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11207 darwin*) # darwin 5.x on
11208 # if running on 10.5 or later, the deployment target defaults
11209 # to the OS version, if on x86, and 10.4, the deployment
11210 # target defaults to 10.4. Don't you love it?
11211 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11212 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11213 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11214 10.[012][,.]*)
11215 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11216 10.*)
11217 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11218 esac
11220 esac
11221 if test yes = "$lt_cv_apple_cc_single_mod"; then
11222 _lt_dar_single_mod='$single_module'
11224 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11225 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11226 else
11227 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11229 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11230 _lt_dsymutil='~$DSYMUTIL $lib || :'
11231 else
11232 _lt_dsymutil=
11235 esac
11237 # func_munge_path_list VARIABLE PATH
11238 # -----------------------------------
11239 # VARIABLE is name of variable containing _space_ separated list of
11240 # directories to be munged by the contents of PATH, which is string
11241 # having a format:
11242 # "DIR[:DIR]:"
11243 # string "DIR[ DIR]" will be prepended to VARIABLE
11244 # ":DIR[:DIR]"
11245 # string "DIR[ DIR]" will be appended to VARIABLE
11246 # "DIRP[:DIRP]::[DIRA:]DIRA"
11247 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11248 # "DIRA[ DIRA]" will be appended to VARIABLE
11249 # "DIR[:DIR]"
11250 # VARIABLE will be replaced by "DIR[ DIR]"
11251 func_munge_path_list ()
11253 case x$2 in
11257 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11259 x:*)
11260 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11262 *::*)
11263 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11264 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11267 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11269 esac
11272 for ac_header in dlfcn.h
11273 do :
11274 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11276 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11277 cat >>confdefs.h <<_ACEOF
11278 #define HAVE_DLFCN_H 1
11279 _ACEOF
11283 done
11289 # Set options
11293 enable_dlopen=no
11296 enable_win32_dll=no
11299 # Check whether --enable-shared was given.
11300 if test "${enable_shared+set}" = set; then :
11301 enableval=$enable_shared; p=${PACKAGE-default}
11302 case $enableval in
11303 yes) enable_shared=yes ;;
11304 no) enable_shared=no ;;
11306 enable_shared=no
11307 # Look at the argument we got. We use all the common list separators.
11308 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11309 for pkg in $enableval; do
11310 IFS=$lt_save_ifs
11311 if test "X$pkg" = "X$p"; then
11312 enable_shared=yes
11314 done
11315 IFS=$lt_save_ifs
11317 esac
11318 else
11319 enable_shared=yes
11330 # Check whether --enable-static was given.
11331 if test "${enable_static+set}" = set; then :
11332 enableval=$enable_static; p=${PACKAGE-default}
11333 case $enableval in
11334 yes) enable_static=yes ;;
11335 no) enable_static=no ;;
11337 enable_static=no
11338 # Look at the argument we got. We use all the common list separators.
11339 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11340 for pkg in $enableval; do
11341 IFS=$lt_save_ifs
11342 if test "X$pkg" = "X$p"; then
11343 enable_static=yes
11345 done
11346 IFS=$lt_save_ifs
11348 esac
11349 else
11350 enable_static=yes
11362 # Check whether --with-pic was given.
11363 if test "${with_pic+set}" = set; then :
11364 withval=$with_pic; lt_p=${PACKAGE-default}
11365 case $withval in
11366 yes|no) pic_mode=$withval ;;
11368 pic_mode=default
11369 # Look at the argument we got. We use all the common list separators.
11370 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11371 for lt_pkg in $withval; do
11372 IFS=$lt_save_ifs
11373 if test "X$lt_pkg" = "X$lt_p"; then
11374 pic_mode=yes
11376 done
11377 IFS=$lt_save_ifs
11379 esac
11380 else
11381 pic_mode=default
11391 # Check whether --enable-fast-install was given.
11392 if test "${enable_fast_install+set}" = set; then :
11393 enableval=$enable_fast_install; p=${PACKAGE-default}
11394 case $enableval in
11395 yes) enable_fast_install=yes ;;
11396 no) enable_fast_install=no ;;
11398 enable_fast_install=no
11399 # Look at the argument we got. We use all the common list separators.
11400 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11401 for pkg in $enableval; do
11402 IFS=$lt_save_ifs
11403 if test "X$pkg" = "X$p"; then
11404 enable_fast_install=yes
11406 done
11407 IFS=$lt_save_ifs
11409 esac
11410 else
11411 enable_fast_install=yes
11421 shared_archive_member_spec=
11422 case $host,$enable_shared in
11423 power*-*-aix[5-9]*,yes)
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11425 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11427 # Check whether --with-aix-soname was given.
11428 if test "${with_aix_soname+set}" = set; then :
11429 withval=$with_aix_soname; case $withval in
11430 aix|svr4|both)
11433 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11435 esac
11436 lt_cv_with_aix_soname=$with_aix_soname
11437 else
11438 if ${lt_cv_with_aix_soname+:} false; then :
11439 $as_echo_n "(cached) " >&6
11440 else
11441 lt_cv_with_aix_soname=aix
11444 with_aix_soname=$lt_cv_with_aix_soname
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11448 $as_echo "$with_aix_soname" >&6; }
11449 if test aix != "$with_aix_soname"; then
11450 # For the AIX way of multilib, we name the shared archive member
11451 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11452 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11453 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11454 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11455 if test 64 = "${OBJECT_MODE-32}"; then
11456 shared_archive_member_spec=shr_64
11457 else
11458 shared_archive_member_spec=shr
11463 with_aix_soname=aix
11465 esac
11476 # This can be used to rebuild libtool when needed
11477 LIBTOOL_DEPS=$ltmain
11479 # Always use our own libtool.
11480 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11511 test -z "$LN_S" && LN_S="ln -s"
11526 if test -n "${ZSH_VERSION+set}"; then
11527 setopt NO_GLOB_SUBST
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11531 $as_echo_n "checking for objdir... " >&6; }
11532 if ${lt_cv_objdir+:} false; then :
11533 $as_echo_n "(cached) " >&6
11534 else
11535 rm -f .libs 2>/dev/null
11536 mkdir .libs 2>/dev/null
11537 if test -d .libs; then
11538 lt_cv_objdir=.libs
11539 else
11540 # MS-DOS does not allow filenames that begin with a dot.
11541 lt_cv_objdir=_libs
11543 rmdir .libs 2>/dev/null
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11546 $as_echo "$lt_cv_objdir" >&6; }
11547 objdir=$lt_cv_objdir
11553 cat >>confdefs.h <<_ACEOF
11554 #define LT_OBJDIR "$lt_cv_objdir/"
11555 _ACEOF
11560 case $host_os in
11561 aix3*)
11562 # AIX sometimes has problems with the GCC collect2 program. For some
11563 # reason, if we set the COLLECT_NAMES environment variable, the problems
11564 # vanish in a puff of smoke.
11565 if test set != "${COLLECT_NAMES+set}"; then
11566 COLLECT_NAMES=
11567 export COLLECT_NAMES
11570 esac
11572 # Global variables:
11573 ofile=libtool
11574 can_build_shared=yes
11576 # All known linkers require a '.a' archive for static linking (except MSVC,
11577 # which needs '.lib').
11578 libext=a
11580 with_gnu_ld=$lt_cv_prog_gnu_ld
11582 old_CC=$CC
11583 old_CFLAGS=$CFLAGS
11585 # Set sane defaults for various variables
11586 test -z "$CC" && CC=cc
11587 test -z "$LTCC" && LTCC=$CC
11588 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11589 test -z "$LD" && LD=ld
11590 test -z "$ac_objext" && ac_objext=o
11592 func_cc_basename $compiler
11593 cc_basename=$func_cc_basename_result
11596 # Only perform the check for file, if the check method requires it
11597 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11598 case $deplibs_check_method in
11599 file_magic*)
11600 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11602 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11603 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 case $MAGIC_CMD in
11607 [\\/*] | ?:[\\/]*)
11608 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11611 lt_save_MAGIC_CMD=$MAGIC_CMD
11612 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11613 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11614 for ac_dir in $ac_dummy; do
11615 IFS=$lt_save_ifs
11616 test -z "$ac_dir" && ac_dir=.
11617 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11618 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11619 if test -n "$file_magic_test_file"; then
11620 case $deplibs_check_method in
11621 "file_magic "*)
11622 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11623 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11624 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11625 $EGREP "$file_magic_regex" > /dev/null; then
11627 else
11628 cat <<_LT_EOF 1>&2
11630 *** Warning: the command libtool uses to detect shared libraries,
11631 *** $file_magic_cmd, produces output that libtool cannot recognize.
11632 *** The result is that libtool may fail to recognize shared libraries
11633 *** as such. This will affect the creation of libtool libraries that
11634 *** depend on shared libraries, but programs linked with such libtool
11635 *** libraries will work regardless of this problem. Nevertheless, you
11636 *** may want to report the problem to your system manager and/or to
11637 *** bug-libtool@gnu.org
11639 _LT_EOF
11640 fi ;;
11641 esac
11643 break
11645 done
11646 IFS=$lt_save_ifs
11647 MAGIC_CMD=$lt_save_MAGIC_CMD
11649 esac
11652 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11653 if test -n "$MAGIC_CMD"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11655 $as_echo "$MAGIC_CMD" >&6; }
11656 else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11665 if test -z "$lt_cv_path_MAGIC_CMD"; then
11666 if test -n "$ac_tool_prefix"; then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11668 $as_echo_n "checking for file... " >&6; }
11669 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11670 $as_echo_n "(cached) " >&6
11671 else
11672 case $MAGIC_CMD in
11673 [\\/*] | ?:[\\/]*)
11674 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11677 lt_save_MAGIC_CMD=$MAGIC_CMD
11678 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11679 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11680 for ac_dir in $ac_dummy; do
11681 IFS=$lt_save_ifs
11682 test -z "$ac_dir" && ac_dir=.
11683 if test -f "$ac_dir/file"; then
11684 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11685 if test -n "$file_magic_test_file"; then
11686 case $deplibs_check_method in
11687 "file_magic "*)
11688 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11689 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11690 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11691 $EGREP "$file_magic_regex" > /dev/null; then
11693 else
11694 cat <<_LT_EOF 1>&2
11696 *** Warning: the command libtool uses to detect shared libraries,
11697 *** $file_magic_cmd, produces output that libtool cannot recognize.
11698 *** The result is that libtool may fail to recognize shared libraries
11699 *** as such. This will affect the creation of libtool libraries that
11700 *** depend on shared libraries, but programs linked with such libtool
11701 *** libraries will work regardless of this problem. Nevertheless, you
11702 *** may want to report the problem to your system manager and/or to
11703 *** bug-libtool@gnu.org
11705 _LT_EOF
11706 fi ;;
11707 esac
11709 break
11711 done
11712 IFS=$lt_save_ifs
11713 MAGIC_CMD=$lt_save_MAGIC_CMD
11715 esac
11718 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11719 if test -n "$MAGIC_CMD"; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11721 $as_echo "$MAGIC_CMD" >&6; }
11722 else
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724 $as_echo "no" >&6; }
11728 else
11729 MAGIC_CMD=:
11735 esac
11737 # Use C for the default configuration in the libtool script
11739 lt_save_CC=$CC
11740 ac_ext=c
11741 ac_cpp='$CPP $CPPFLAGS'
11742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11747 # Source file extension for C test sources.
11748 ac_ext=c
11750 # Object file extension for compiled C test sources.
11751 objext=o
11752 objext=$objext
11754 # Code to be used in simple compile tests
11755 lt_simple_compile_test_code="int some_variable = 0;"
11757 # Code to be used in simple link tests
11758 lt_simple_link_test_code='int main(){return(0);}'
11766 # If no C compiler was specified, use CC.
11767 LTCC=${LTCC-"$CC"}
11769 # If no C compiler flags were specified, use CFLAGS.
11770 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11772 # Allow CC to be a program name with arguments.
11773 compiler=$CC
11775 # Save the default compiler, since it gets overwritten when the other
11776 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11777 compiler_DEFAULT=$CC
11779 # save warnings/boilerplate of simple test code
11780 ac_outfile=conftest.$ac_objext
11781 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11782 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11783 _lt_compiler_boilerplate=`cat conftest.err`
11784 $RM conftest*
11786 ac_outfile=conftest.$ac_objext
11787 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11788 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11789 _lt_linker_boilerplate=`cat conftest.err`
11790 $RM -r conftest*
11793 ## CAVEAT EMPTOR:
11794 ## There is no encapsulation within the following macros, do not change
11795 ## the running order or otherwise move them around unless you know exactly
11796 ## what you are doing...
11797 if test -n "$compiler"; then
11799 lt_prog_compiler_no_builtin_flag=
11801 if test yes = "$GCC"; then
11802 case $cc_basename in
11803 nvcc*)
11804 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11806 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11807 esac
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11810 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11811 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 lt_cv_prog_compiler_rtti_exceptions=no
11815 ac_outfile=conftest.$ac_objext
11816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11817 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11818 # Insert the option either (1) after the last *FLAGS variable, or
11819 # (2) before a word containing "conftest.", or (3) at the end.
11820 # Note that $ac_compile itself does not contain backslashes and begins
11821 # with a dollar sign (not a hyphen), so the echo should work correctly.
11822 # The option is referenced via a variable to avoid confusing sed.
11823 lt_compile=`echo "$ac_compile" | $SED \
11824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11826 -e 's:$: $lt_compiler_flag:'`
11827 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11828 (eval "$lt_compile" 2>conftest.err)
11829 ac_status=$?
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 if (exit $ac_status) && test -s "$ac_outfile"; then
11833 # The compiler can only warn and ignore the option if not recognized
11834 # So say no if there are warnings other than the usual output.
11835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11838 lt_cv_prog_compiler_rtti_exceptions=yes
11841 $RM conftest*
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11845 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11847 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11848 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11849 else
11860 lt_prog_compiler_wl=
11861 lt_prog_compiler_pic=
11862 lt_prog_compiler_static=
11865 if test yes = "$GCC"; then
11866 lt_prog_compiler_wl='-Wl,'
11867 lt_prog_compiler_static='-static'
11869 case $host_os in
11870 aix*)
11871 # All AIX code is PIC.
11872 if test ia64 = "$host_cpu"; then
11873 # AIX 5 now supports IA64 processor
11874 lt_prog_compiler_static='-Bstatic'
11876 lt_prog_compiler_pic='-fPIC'
11879 amigaos*)
11880 case $host_cpu in
11881 powerpc)
11882 # see comment about AmigaOS4 .so support
11883 lt_prog_compiler_pic='-fPIC'
11885 m68k)
11886 # FIXME: we need at least 68020 code to build shared libraries, but
11887 # adding the '-m68020' flag to GCC prevents building anything better,
11888 # like '-m68040'.
11889 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11891 esac
11894 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11895 # PIC is the default for these OSes.
11898 mingw* | cygwin* | pw32* | os2* | cegcc*)
11899 # This hack is so that the source file can tell whether it is being
11900 # built for inclusion in a dll (and should export symbols for example).
11901 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11902 # (--disable-auto-import) libraries
11903 lt_prog_compiler_pic='-DDLL_EXPORT'
11904 case $host_os in
11905 os2*)
11906 lt_prog_compiler_static='$wl-static'
11908 esac
11911 darwin* | rhapsody*)
11912 # PIC is the default on this platform
11913 # Common symbols not allowed in MH_DYLIB files
11914 lt_prog_compiler_pic='-fno-common'
11917 haiku*)
11918 # PIC is the default for Haiku.
11919 # The "-static" flag exists, but is broken.
11920 lt_prog_compiler_static=
11923 hpux*)
11924 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11925 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11926 # sets the default TLS model and affects inlining.
11927 case $host_cpu in
11928 hppa*64*)
11929 # +Z the default
11932 lt_prog_compiler_pic='-fPIC'
11934 esac
11937 interix[3-9]*)
11938 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11939 # Instead, we relocate shared libraries at runtime.
11942 msdosdjgpp*)
11943 # Just because we use GCC doesn't mean we suddenly get shared libraries
11944 # on systems that don't support them.
11945 lt_prog_compiler_can_build_shared=no
11946 enable_shared=no
11949 *nto* | *qnx*)
11950 # QNX uses GNU C++, but need to define -shared option too, otherwise
11951 # it will coredump.
11952 lt_prog_compiler_pic='-fPIC -shared'
11955 sysv4*MP*)
11956 if test -d /usr/nec; then
11957 lt_prog_compiler_pic=-Kconform_pic
11962 lt_prog_compiler_pic='-fPIC'
11964 esac
11966 case $cc_basename in
11967 nvcc*) # Cuda Compiler Driver 2.2
11968 lt_prog_compiler_wl='-Xlinker '
11969 if test -n "$lt_prog_compiler_pic"; then
11970 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11973 esac
11974 else
11975 # PORTME Check for flag to pass linker flags through the system compiler.
11976 case $host_os in
11977 aix*)
11978 lt_prog_compiler_wl='-Wl,'
11979 if test ia64 = "$host_cpu"; then
11980 # AIX 5 now supports IA64 processor
11981 lt_prog_compiler_static='-Bstatic'
11982 else
11983 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11987 darwin* | rhapsody*)
11988 # PIC is the default on this platform
11989 # Common symbols not allowed in MH_DYLIB files
11990 lt_prog_compiler_pic='-fno-common'
11991 case $cc_basename in
11992 nagfor*)
11993 # NAG Fortran compiler
11994 lt_prog_compiler_wl='-Wl,-Wl,,'
11995 lt_prog_compiler_pic='-PIC'
11996 lt_prog_compiler_static='-Bstatic'
11998 esac
12001 mingw* | cygwin* | pw32* | os2* | cegcc*)
12002 # This hack is so that the source file can tell whether it is being
12003 # built for inclusion in a dll (and should export symbols for example).
12004 lt_prog_compiler_pic='-DDLL_EXPORT'
12005 case $host_os in
12006 os2*)
12007 lt_prog_compiler_static='$wl-static'
12009 esac
12012 hpux9* | hpux10* | hpux11*)
12013 lt_prog_compiler_wl='-Wl,'
12014 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12015 # not for PA HP-UX.
12016 case $host_cpu in
12017 hppa*64*|ia64*)
12018 # +Z the default
12021 lt_prog_compiler_pic='+Z'
12023 esac
12024 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12025 lt_prog_compiler_static='$wl-a ${wl}archive'
12028 irix5* | irix6* | nonstopux*)
12029 lt_prog_compiler_wl='-Wl,'
12030 # PIC (with -KPIC) is the default.
12031 lt_prog_compiler_static='-non_shared'
12034 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12035 case $cc_basename in
12036 # old Intel for x86_64, which still supported -KPIC.
12037 ecc*)
12038 lt_prog_compiler_wl='-Wl,'
12039 lt_prog_compiler_pic='-KPIC'
12040 lt_prog_compiler_static='-static'
12042 # icc used to be incompatible with GCC.
12043 # ICC 10 doesn't accept -KPIC any more.
12044 icc* | ifort*)
12045 lt_prog_compiler_wl='-Wl,'
12046 lt_prog_compiler_pic='-fPIC'
12047 lt_prog_compiler_static='-static'
12049 # Lahey Fortran 8.1.
12050 lf95*)
12051 lt_prog_compiler_wl='-Wl,'
12052 lt_prog_compiler_pic='--shared'
12053 lt_prog_compiler_static='--static'
12055 nagfor*)
12056 # NAG Fortran compiler
12057 lt_prog_compiler_wl='-Wl,-Wl,,'
12058 lt_prog_compiler_pic='-PIC'
12059 lt_prog_compiler_static='-Bstatic'
12061 tcc*)
12062 # Fabrice Bellard et al's Tiny C Compiler
12063 lt_prog_compiler_wl='-Wl,'
12064 lt_prog_compiler_pic='-fPIC'
12065 lt_prog_compiler_static='-static'
12067 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12068 # Portland Group compilers (*not* the Pentium gcc compiler,
12069 # which looks to be a dead project)
12070 lt_prog_compiler_wl='-Wl,'
12071 lt_prog_compiler_pic='-fpic'
12072 lt_prog_compiler_static='-Bstatic'
12074 ccc*)
12075 lt_prog_compiler_wl='-Wl,'
12076 # All Alpha code is PIC.
12077 lt_prog_compiler_static='-non_shared'
12079 xl* | bgxl* | bgf* | mpixl*)
12080 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12081 lt_prog_compiler_wl='-Wl,'
12082 lt_prog_compiler_pic='-qpic'
12083 lt_prog_compiler_static='-qstaticlink'
12086 case `$CC -V 2>&1 | sed 5q` in
12087 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12088 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12089 lt_prog_compiler_pic='-KPIC'
12090 lt_prog_compiler_static='-Bstatic'
12091 lt_prog_compiler_wl=''
12093 *Sun\ F* | *Sun*Fortran*)
12094 lt_prog_compiler_pic='-KPIC'
12095 lt_prog_compiler_static='-Bstatic'
12096 lt_prog_compiler_wl='-Qoption ld '
12098 *Sun\ C*)
12099 # Sun C 5.9
12100 lt_prog_compiler_pic='-KPIC'
12101 lt_prog_compiler_static='-Bstatic'
12102 lt_prog_compiler_wl='-Wl,'
12104 *Intel*\ [CF]*Compiler*)
12105 lt_prog_compiler_wl='-Wl,'
12106 lt_prog_compiler_pic='-fPIC'
12107 lt_prog_compiler_static='-static'
12109 *Portland\ Group*)
12110 lt_prog_compiler_wl='-Wl,'
12111 lt_prog_compiler_pic='-fpic'
12112 lt_prog_compiler_static='-Bstatic'
12114 esac
12116 esac
12119 newsos6)
12120 lt_prog_compiler_pic='-KPIC'
12121 lt_prog_compiler_static='-Bstatic'
12124 *nto* | *qnx*)
12125 # QNX uses GNU C++, but need to define -shared option too, otherwise
12126 # it will coredump.
12127 lt_prog_compiler_pic='-fPIC -shared'
12130 osf3* | osf4* | osf5*)
12131 lt_prog_compiler_wl='-Wl,'
12132 # All OSF/1 code is PIC.
12133 lt_prog_compiler_static='-non_shared'
12136 rdos*)
12137 lt_prog_compiler_static='-non_shared'
12140 solaris*)
12141 lt_prog_compiler_pic='-KPIC'
12142 lt_prog_compiler_static='-Bstatic'
12143 case $cc_basename in
12144 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12145 lt_prog_compiler_wl='-Qoption ld ';;
12147 lt_prog_compiler_wl='-Wl,';;
12148 esac
12151 sunos4*)
12152 lt_prog_compiler_wl='-Qoption ld '
12153 lt_prog_compiler_pic='-PIC'
12154 lt_prog_compiler_static='-Bstatic'
12157 sysv4 | sysv4.2uw2* | sysv4.3*)
12158 lt_prog_compiler_wl='-Wl,'
12159 lt_prog_compiler_pic='-KPIC'
12160 lt_prog_compiler_static='-Bstatic'
12163 sysv4*MP*)
12164 if test -d /usr/nec; then
12165 lt_prog_compiler_pic='-Kconform_pic'
12166 lt_prog_compiler_static='-Bstatic'
12170 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12171 lt_prog_compiler_wl='-Wl,'
12172 lt_prog_compiler_pic='-KPIC'
12173 lt_prog_compiler_static='-Bstatic'
12176 unicos*)
12177 lt_prog_compiler_wl='-Wl,'
12178 lt_prog_compiler_can_build_shared=no
12181 uts4*)
12182 lt_prog_compiler_pic='-pic'
12183 lt_prog_compiler_static='-Bstatic'
12187 lt_prog_compiler_can_build_shared=no
12189 esac
12192 case $host_os in
12193 # For platforms that do not support PIC, -DPIC is meaningless:
12194 *djgpp*)
12195 lt_prog_compiler_pic=
12198 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12200 esac
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12203 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12204 if ${lt_cv_prog_compiler_pic+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12210 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12211 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12214 # Check to make sure the PIC flag actually works.
12216 if test -n "$lt_prog_compiler_pic"; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12218 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12219 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222 lt_cv_prog_compiler_pic_works=no
12223 ac_outfile=conftest.$ac_objext
12224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12225 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12226 # Insert the option either (1) after the last *FLAGS variable, or
12227 # (2) before a word containing "conftest.", or (3) at the end.
12228 # Note that $ac_compile itself does not contain backslashes and begins
12229 # with a dollar sign (not a hyphen), so the echo should work correctly.
12230 # The option is referenced via a variable to avoid confusing sed.
12231 lt_compile=`echo "$ac_compile" | $SED \
12232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12234 -e 's:$: $lt_compiler_flag:'`
12235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12236 (eval "$lt_compile" 2>conftest.err)
12237 ac_status=$?
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 if (exit $ac_status) && test -s "$ac_outfile"; then
12241 # The compiler can only warn and ignore the option if not recognized
12242 # So say no if there are warnings other than the usual output.
12243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12246 lt_cv_prog_compiler_pic_works=yes
12249 $RM conftest*
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12253 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12255 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12256 case $lt_prog_compiler_pic in
12257 "" | " "*) ;;
12258 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12259 esac
12260 else
12261 lt_prog_compiler_pic=
12262 lt_prog_compiler_can_build_shared=no
12278 # Check to make sure the static flag actually works.
12280 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12282 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12283 if ${lt_cv_prog_compiler_static_works+:} false; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 lt_cv_prog_compiler_static_works=no
12287 save_LDFLAGS=$LDFLAGS
12288 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12289 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12290 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12291 # The linker can only warn and ignore the option if not recognized
12292 # So say no if there are warnings
12293 if test -s conftest.err; then
12294 # Append any errors to the config.log.
12295 cat conftest.err 1>&5
12296 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12298 if diff conftest.exp conftest.er2 >/dev/null; then
12299 lt_cv_prog_compiler_static_works=yes
12301 else
12302 lt_cv_prog_compiler_static_works=yes
12305 $RM -r conftest*
12306 LDFLAGS=$save_LDFLAGS
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12310 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12312 if test yes = "$lt_cv_prog_compiler_static_works"; then
12314 else
12315 lt_prog_compiler_static=
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12325 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12326 if ${lt_cv_prog_compiler_c_o+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 lt_cv_prog_compiler_c_o=no
12330 $RM -r conftest 2>/dev/null
12331 mkdir conftest
12332 cd conftest
12333 mkdir out
12334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12336 lt_compiler_flag="-o out/conftest2.$ac_objext"
12337 # Insert the option either (1) after the last *FLAGS variable, or
12338 # (2) before a word containing "conftest.", or (3) at the end.
12339 # Note that $ac_compile itself does not contain backslashes and begins
12340 # with a dollar sign (not a hyphen), so the echo should work correctly.
12341 lt_compile=`echo "$ac_compile" | $SED \
12342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12344 -e 's:$: $lt_compiler_flag:'`
12345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12346 (eval "$lt_compile" 2>out/conftest.err)
12347 ac_status=$?
12348 cat out/conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12351 then
12352 # The compiler can only warn and ignore the option if not recognized
12353 # So say no if there are warnings
12354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12357 lt_cv_prog_compiler_c_o=yes
12360 chmod u+w . 2>&5
12361 $RM conftest*
12362 # SGI C++ compiler will create directory out/ii_files/ for
12363 # template instantiation
12364 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12365 $RM out/* && rmdir out
12366 cd ..
12367 $RM -r conftest
12368 $RM conftest*
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12372 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12380 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12381 if ${lt_cv_prog_compiler_c_o+:} false; then :
12382 $as_echo_n "(cached) " >&6
12383 else
12384 lt_cv_prog_compiler_c_o=no
12385 $RM -r conftest 2>/dev/null
12386 mkdir conftest
12387 cd conftest
12388 mkdir out
12389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12391 lt_compiler_flag="-o out/conftest2.$ac_objext"
12392 # Insert the option either (1) after the last *FLAGS variable, or
12393 # (2) before a word containing "conftest.", or (3) at the end.
12394 # Note that $ac_compile itself does not contain backslashes and begins
12395 # with a dollar sign (not a hyphen), so the echo should work correctly.
12396 lt_compile=`echo "$ac_compile" | $SED \
12397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12399 -e 's:$: $lt_compiler_flag:'`
12400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12401 (eval "$lt_compile" 2>out/conftest.err)
12402 ac_status=$?
12403 cat out/conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12406 then
12407 # The compiler can only warn and ignore the option if not recognized
12408 # So say no if there are warnings
12409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12410 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12411 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12412 lt_cv_prog_compiler_c_o=yes
12415 chmod u+w . 2>&5
12416 $RM conftest*
12417 # SGI C++ compiler will create directory out/ii_files/ for
12418 # template instantiation
12419 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12420 $RM out/* && rmdir out
12421 cd ..
12422 $RM -r conftest
12423 $RM conftest*
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12427 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12432 hard_links=nottested
12433 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12434 # do not overwrite the value of need_locks provided by the user
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12436 $as_echo_n "checking if we can lock with hard links... " >&6; }
12437 hard_links=yes
12438 $RM conftest*
12439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12440 touch conftest.a
12441 ln conftest.a conftest.b 2>&5 || hard_links=no
12442 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12444 $as_echo "$hard_links" >&6; }
12445 if test no = "$hard_links"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12447 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12448 need_locks=warn
12450 else
12451 need_locks=no
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12460 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12462 runpath_var=
12463 allow_undefined_flag=
12464 always_export_symbols=no
12465 archive_cmds=
12466 archive_expsym_cmds=
12467 compiler_needs_object=no
12468 enable_shared_with_static_runtimes=no
12469 export_dynamic_flag_spec=
12470 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12471 hardcode_automatic=no
12472 hardcode_direct=no
12473 hardcode_direct_absolute=no
12474 hardcode_libdir_flag_spec=
12475 hardcode_libdir_separator=
12476 hardcode_minus_L=no
12477 hardcode_shlibpath_var=unsupported
12478 inherit_rpath=no
12479 link_all_deplibs=unknown
12480 module_cmds=
12481 module_expsym_cmds=
12482 old_archive_from_new_cmds=
12483 old_archive_from_expsyms_cmds=
12484 thread_safe_flag_spec=
12485 whole_archive_flag_spec=
12486 # include_expsyms should be a list of space-separated symbols to be *always*
12487 # included in the symbol list
12488 include_expsyms=
12489 # exclude_expsyms can be an extended regexp of symbols to exclude
12490 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12491 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12492 # as well as any symbol that contains 'd'.
12493 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12494 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12495 # platforms (ab)use it in PIC code, but their linkers get confused if
12496 # the symbol is explicitly referenced. Since portable code cannot
12497 # rely on this symbol name, it's probably fine to never include it in
12498 # preloaded symbol tables.
12499 # Exclude shared library initialization/finalization symbols.
12500 extract_expsyms_cmds=
12502 case $host_os in
12503 cygwin* | mingw* | pw32* | cegcc*)
12504 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12505 # When not using gcc, we currently assume that we are using
12506 # Microsoft Visual C++.
12507 if test yes != "$GCC"; then
12508 with_gnu_ld=no
12511 interix*)
12512 # we just hope/assume this is gcc and not c89 (= MSVC++)
12513 with_gnu_ld=yes
12515 openbsd* | bitrig*)
12516 with_gnu_ld=no
12518 esac
12520 ld_shlibs=yes
12522 # On some targets, GNU ld is compatible enough with the native linker
12523 # that we're better off using the native interface for both.
12524 lt_use_gnu_ld_interface=no
12525 if test yes = "$with_gnu_ld"; then
12526 case $host_os in
12527 aix*)
12528 # The AIX port of GNU ld has always aspired to compatibility
12529 # with the native linker. However, as the warning in the GNU ld
12530 # block says, versions before 2.19.5* couldn't really create working
12531 # shared libraries, regardless of the interface used.
12532 case `$LD -v 2>&1` in
12533 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12534 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12535 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12537 lt_use_gnu_ld_interface=yes
12539 esac
12542 lt_use_gnu_ld_interface=yes
12544 esac
12547 if test yes = "$lt_use_gnu_ld_interface"; then
12548 # If archive_cmds runs LD, not CC, wlarc should be empty
12549 wlarc='$wl'
12551 # Set some defaults for GNU ld with shared library support. These
12552 # are reset later if shared libraries are not supported. Putting them
12553 # here allows them to be overridden if necessary.
12554 runpath_var=LD_RUN_PATH
12555 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12556 export_dynamic_flag_spec='$wl--export-dynamic'
12557 # ancient GNU ld didn't support --whole-archive et. al.
12558 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12559 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12560 else
12561 whole_archive_flag_spec=
12563 supports_anon_versioning=no
12564 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12565 *GNU\ gold*) supports_anon_versioning=yes ;;
12566 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12567 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12568 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12569 *\ 2.11.*) ;; # other 2.11 versions
12570 *) supports_anon_versioning=yes ;;
12571 esac
12573 # See if GNU ld supports shared libraries.
12574 case $host_os in
12575 aix[3-9]*)
12576 # On AIX/PPC, the GNU linker is very broken
12577 if test ia64 != "$host_cpu"; then
12578 ld_shlibs=no
12579 cat <<_LT_EOF 1>&2
12581 *** Warning: the GNU linker, at least up to release 2.19, is reported
12582 *** to be unable to reliably create shared libraries on AIX.
12583 *** Therefore, libtool is disabling shared libraries support. If you
12584 *** really care for shared libraries, you may want to install binutils
12585 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12586 *** You will then need to restart the configuration process.
12588 _LT_EOF
12592 amigaos*)
12593 case $host_cpu in
12594 powerpc)
12595 # see comment about AmigaOS4 .so support
12596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12597 archive_expsym_cmds=''
12599 m68k)
12600 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)'
12601 hardcode_libdir_flag_spec='-L$libdir'
12602 hardcode_minus_L=yes
12604 esac
12607 beos*)
12608 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12609 allow_undefined_flag=unsupported
12610 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12611 # support --undefined. This deserves some investigation. FIXME
12612 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12613 else
12614 ld_shlibs=no
12618 cygwin* | mingw* | pw32* | cegcc*)
12619 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12620 # as there is no search path for DLLs.
12621 hardcode_libdir_flag_spec='-L$libdir'
12622 export_dynamic_flag_spec='$wl--export-all-symbols'
12623 allow_undefined_flag=unsupported
12624 always_export_symbols=no
12625 enable_shared_with_static_runtimes=yes
12626 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'
12627 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12629 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12631 # If the export-symbols file already is a .def file, use it as
12632 # is; otherwise, prepend EXPORTS...
12633 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12634 cp $export_symbols $output_objdir/$soname.def;
12635 else
12636 echo EXPORTS > $output_objdir/$soname.def;
12637 cat $export_symbols >> $output_objdir/$soname.def;
12639 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12640 else
12641 ld_shlibs=no
12645 haiku*)
12646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12647 link_all_deplibs=yes
12650 os2*)
12651 hardcode_libdir_flag_spec='-L$libdir'
12652 hardcode_minus_L=yes
12653 allow_undefined_flag=unsupported
12654 shrext_cmds=.dll
12655 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12656 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12657 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12658 $ECHO EXPORTS >> $output_objdir/$libname.def~
12659 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12660 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12661 emximp -o $lib $output_objdir/$libname.def'
12662 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12663 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12664 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12665 $ECHO EXPORTS >> $output_objdir/$libname.def~
12666 prefix_cmds="$SED"~
12667 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12668 prefix_cmds="$prefix_cmds -e 1d";
12670 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12671 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12672 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12673 emximp -o $lib $output_objdir/$libname.def'
12674 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12675 enable_shared_with_static_runtimes=yes
12678 interix[3-9]*)
12679 hardcode_direct=no
12680 hardcode_shlibpath_var=no
12681 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12682 export_dynamic_flag_spec='$wl-E'
12683 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12684 # Instead, shared libraries are loaded at an image base (0x10000000 by
12685 # default) and relocated if they conflict, which is a slow very memory
12686 # consuming and fragmenting process. To avoid this, we pick a random,
12687 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12688 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12689 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12690 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'
12693 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12694 tmp_diet=no
12695 if test linux-dietlibc = "$host_os"; then
12696 case $cc_basename in
12697 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12698 esac
12700 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12701 && test no = "$tmp_diet"
12702 then
12703 tmp_addflag=' $pic_flag'
12704 tmp_sharedflag='-shared'
12705 case $cc_basename,$host_cpu in
12706 pgcc*) # Portland Group C compiler
12707 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'
12708 tmp_addflag=' $pic_flag'
12710 pgf77* | pgf90* | pgf95* | pgfortran*)
12711 # Portland Group f77 and f90 compilers
12712 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'
12713 tmp_addflag=' $pic_flag -Mnomain' ;;
12714 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12715 tmp_addflag=' -i_dynamic' ;;
12716 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12717 tmp_addflag=' -i_dynamic -nofor_main' ;;
12718 ifc* | ifort*) # Intel Fortran compiler
12719 tmp_addflag=' -nofor_main' ;;
12720 lf95*) # Lahey Fortran 8.1
12721 whole_archive_flag_spec=
12722 tmp_sharedflag='--shared' ;;
12723 nagfor*) # NAGFOR 5.3
12724 tmp_sharedflag='-Wl,-shared' ;;
12725 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12726 tmp_sharedflag='-qmkshrobj'
12727 tmp_addflag= ;;
12728 nvcc*) # Cuda Compiler Driver 2.2
12729 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'
12730 compiler_needs_object=yes
12732 esac
12733 case `$CC -V 2>&1 | sed 5q` in
12734 *Sun\ C*) # Sun C 5.9
12735 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'
12736 compiler_needs_object=yes
12737 tmp_sharedflag='-G' ;;
12738 *Sun\ F*) # Sun Fortran 8.3
12739 tmp_sharedflag='-G' ;;
12740 esac
12741 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12743 if test yes = "$supports_anon_versioning"; then
12744 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12745 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12746 echo "local: *; };" >> $output_objdir/$libname.ver~
12747 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12750 case $cc_basename in
12751 tcc*)
12752 export_dynamic_flag_spec='-rdynamic'
12754 xlf* | bgf* | bgxlf* | mpixlf*)
12755 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12756 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12757 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12758 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12759 if test yes = "$supports_anon_versioning"; then
12760 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12762 echo "local: *; };" >> $output_objdir/$libname.ver~
12763 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12766 esac
12767 else
12768 ld_shlibs=no
12772 netbsd*)
12773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12774 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12775 wlarc=
12776 else
12777 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12778 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12782 solaris*)
12783 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12784 ld_shlibs=no
12785 cat <<_LT_EOF 1>&2
12787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12788 *** create shared libraries on Solaris systems. Therefore, libtool
12789 *** is disabling shared libraries support. We urge you to upgrade GNU
12790 *** binutils to release 2.9.1 or newer. Another option is to modify
12791 *** your PATH or compiler configuration so that the native linker is
12792 *** used, and then restart.
12794 _LT_EOF
12795 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12797 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12798 else
12799 ld_shlibs=no
12803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12804 case `$LD -v 2>&1` in
12805 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12806 ld_shlibs=no
12807 cat <<_LT_EOF 1>&2
12809 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12810 *** reliably create shared libraries on SCO systems. Therefore, libtool
12811 *** is disabling shared libraries support. We urge you to upgrade GNU
12812 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12813 *** your PATH or compiler configuration so that the native linker is
12814 *** used, and then restart.
12816 _LT_EOF
12819 # For security reasons, it is highly recommended that you always
12820 # use absolute paths for naming shared libraries, and exclude the
12821 # DT_RUNPATH tag from executables and libraries. But doing so
12822 # requires that you compile everything twice, which is a pain.
12823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12824 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12826 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12827 else
12828 ld_shlibs=no
12831 esac
12834 sunos4*)
12835 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12836 wlarc=
12837 hardcode_direct=yes
12838 hardcode_shlibpath_var=no
12842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12844 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12845 else
12846 ld_shlibs=no
12849 esac
12851 if test no = "$ld_shlibs"; then
12852 runpath_var=
12853 hardcode_libdir_flag_spec=
12854 export_dynamic_flag_spec=
12855 whole_archive_flag_spec=
12857 else
12858 # PORTME fill in a description of your system's linker (not GNU ld)
12859 case $host_os in
12860 aix3*)
12861 allow_undefined_flag=unsupported
12862 always_export_symbols=yes
12863 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'
12864 # Note: this linker hardcodes the directories in LIBPATH if there
12865 # are no directories specified by -L.
12866 hardcode_minus_L=yes
12867 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12868 # Neither direct hardcoding nor static linking is supported with a
12869 # broken collect2.
12870 hardcode_direct=unsupported
12874 aix[4-9]*)
12875 if test ia64 = "$host_cpu"; then
12876 # On IA64, the linker does run time linking by default, so we don't
12877 # have to do anything special.
12878 aix_use_runtimelinking=no
12879 exp_sym_flag='-Bexport'
12880 no_entry_flag=
12881 else
12882 # If we're using GNU nm, then we don't want the "-C" option.
12883 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12884 # Without the "-l" option, or with the "-B" option, AIX nm treats
12885 # weak defined symbols like other global defined symbols, whereas
12886 # GNU nm marks them as "W".
12887 # While the 'weak' keyword is ignored in the Export File, we need
12888 # it in the Import File for the 'aix-soname' feature, so we have
12889 # to replace the "-B" option with "-P" for AIX nm.
12890 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12891 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12892 else
12893 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12895 aix_use_runtimelinking=no
12897 # Test if we are trying to use run time linking or normal
12898 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12899 # have runtime linking enabled, and use it for executables.
12900 # For shared libraries, we enable/disable runtime linking
12901 # depending on the kind of the shared library created -
12902 # when "with_aix_soname,aix_use_runtimelinking" is:
12903 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12904 # "aix,yes" lib.so shared, rtl:yes, for executables
12905 # lib.a static archive
12906 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12907 # lib.a(lib.so.V) shared, rtl:no, for executables
12908 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12909 # lib.a(lib.so.V) shared, rtl:no
12910 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12911 # lib.a static archive
12912 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12913 for ld_flag in $LDFLAGS; do
12914 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12915 aix_use_runtimelinking=yes
12916 break
12918 done
12919 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12920 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12921 # so we don't have lib.a shared libs to link our executables.
12922 # We have to force runtime linking in this case.
12923 aix_use_runtimelinking=yes
12924 LDFLAGS="$LDFLAGS -Wl,-brtl"
12927 esac
12929 exp_sym_flag='-bexport'
12930 no_entry_flag='-bnoentry'
12933 # When large executables or shared objects are built, AIX ld can
12934 # have problems creating the table of contents. If linking a library
12935 # or program results in "error TOC overflow" add -mminimal-toc to
12936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12939 archive_cmds=''
12940 hardcode_direct=yes
12941 hardcode_direct_absolute=yes
12942 hardcode_libdir_separator=':'
12943 link_all_deplibs=yes
12944 file_list_spec='$wl-f,'
12945 case $with_aix_soname,$aix_use_runtimelinking in
12946 aix,*) ;; # traditional, no import file
12947 svr4,* | *,yes) # use import file
12948 # The Import File defines what to hardcode.
12949 hardcode_direct=no
12950 hardcode_direct_absolute=no
12952 esac
12954 if test yes = "$GCC"; then
12955 case $host_os in aix4.[012]|aix4.[012].*)
12956 # We only want to do this on AIX 4.2 and lower, the check
12957 # below for broken collect2 doesn't work under 4.3+
12958 collect2name=`$CC -print-prog-name=collect2`
12959 if test -f "$collect2name" &&
12960 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12961 then
12962 # We have reworked collect2
12964 else
12965 # We have old collect2
12966 hardcode_direct=unsupported
12967 # It fails to find uninstalled libraries when the uninstalled
12968 # path is not listed in the libpath. Setting hardcode_minus_L
12969 # to unsupported forces relinking
12970 hardcode_minus_L=yes
12971 hardcode_libdir_flag_spec='-L$libdir'
12972 hardcode_libdir_separator=
12975 esac
12976 shared_flag='-shared'
12977 if test yes = "$aix_use_runtimelinking"; then
12978 shared_flag="$shared_flag "'$wl-G'
12980 # Need to ensure runtime linking is disabled for the traditional
12981 # shared library, or the linker may eventually find shared libraries
12982 # /with/ Import File - we do not want to mix them.
12983 shared_flag_aix='-shared'
12984 shared_flag_svr4='-shared $wl-G'
12985 else
12986 # not using gcc
12987 if test ia64 = "$host_cpu"; then
12988 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12989 # chokes on -Wl,-G. The following line is correct:
12990 shared_flag='-G'
12991 else
12992 if test yes = "$aix_use_runtimelinking"; then
12993 shared_flag='$wl-G'
12994 else
12995 shared_flag='$wl-bM:SRE'
12997 shared_flag_aix='$wl-bM:SRE'
12998 shared_flag_svr4='$wl-G'
13002 export_dynamic_flag_spec='$wl-bexpall'
13003 # It seems that -bexpall does not export symbols beginning with
13004 # underscore (_), so it is better to generate a list of symbols to export.
13005 always_export_symbols=yes
13006 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13007 # Warning - without using the other runtime loading flags (-brtl),
13008 # -berok will link without error, but may produce a broken library.
13009 allow_undefined_flag='-berok'
13010 # Determine the default libpath from the value encoded in an
13011 # empty executable.
13012 if test set = "${lt_cv_aix_libpath+set}"; then
13013 aix_libpath=$lt_cv_aix_libpath
13014 else
13015 if ${lt_cv_aix_libpath_+:} false; then :
13016 $as_echo_n "(cached) " >&6
13017 else
13018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13019 /* end confdefs.h. */
13022 main ()
13026 return 0;
13028 _ACEOF
13029 if ac_fn_c_try_link "$LINENO"; then :
13031 lt_aix_libpath_sed='
13032 /Import File Strings/,/^$/ {
13033 /^0/ {
13034 s/^0 *\([^ ]*\) *$/\1/
13038 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13039 # Check for a 64-bit object if we didn't find anything.
13040 if test -z "$lt_cv_aix_libpath_"; then
13041 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13044 rm -f core conftest.err conftest.$ac_objext \
13045 conftest$ac_exeext conftest.$ac_ext
13046 if test -z "$lt_cv_aix_libpath_"; then
13047 lt_cv_aix_libpath_=/usr/lib:/lib
13052 aix_libpath=$lt_cv_aix_libpath_
13055 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13056 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13057 else
13058 if test ia64 = "$host_cpu"; then
13059 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13060 allow_undefined_flag="-z nodefs"
13061 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"
13062 else
13063 # Determine the default libpath from the value encoded in an
13064 # empty executable.
13065 if test set = "${lt_cv_aix_libpath+set}"; then
13066 aix_libpath=$lt_cv_aix_libpath
13067 else
13068 if ${lt_cv_aix_libpath_+:} false; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13075 main ()
13079 return 0;
13081 _ACEOF
13082 if ac_fn_c_try_link "$LINENO"; then :
13084 lt_aix_libpath_sed='
13085 /Import File Strings/,/^$/ {
13086 /^0/ {
13087 s/^0 *\([^ ]*\) *$/\1/
13091 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13092 # Check for a 64-bit object if we didn't find anything.
13093 if test -z "$lt_cv_aix_libpath_"; then
13094 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13097 rm -f core conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13099 if test -z "$lt_cv_aix_libpath_"; then
13100 lt_cv_aix_libpath_=/usr/lib:/lib
13105 aix_libpath=$lt_cv_aix_libpath_
13108 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13109 # Warning - without using the other run time loading flags,
13110 # -berok will link without error, but may produce a broken library.
13111 no_undefined_flag=' $wl-bernotok'
13112 allow_undefined_flag=' $wl-berok'
13113 if test yes = "$with_gnu_ld"; then
13114 # We only use this code for GNU lds that support --whole-archive.
13115 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13116 else
13117 # Exported symbols can be pulled into shared objects from archives
13118 whole_archive_flag_spec='$convenience'
13120 archive_cmds_need_lc=yes
13121 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13122 # -brtl affects multiple linker settings, -berok does not and is overridden later
13123 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13124 if test svr4 != "$with_aix_soname"; then
13125 # This is similar to how AIX traditionally builds its shared libraries.
13126 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13128 if test aix != "$with_aix_soname"; then
13129 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13130 else
13131 # used by -dlpreopen to get the symbols
13132 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13134 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13139 amigaos*)
13140 case $host_cpu in
13141 powerpc)
13142 # see comment about AmigaOS4 .so support
13143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13144 archive_expsym_cmds=''
13146 m68k)
13147 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)'
13148 hardcode_libdir_flag_spec='-L$libdir'
13149 hardcode_minus_L=yes
13151 esac
13154 bsdi[45]*)
13155 export_dynamic_flag_spec=-rdynamic
13158 cygwin* | mingw* | pw32* | cegcc*)
13159 # When not using gcc, we currently assume that we are using
13160 # Microsoft Visual C++.
13161 # hardcode_libdir_flag_spec is actually meaningless, as there is
13162 # no search path for DLLs.
13163 case $cc_basename in
13164 cl*)
13165 # Native MSVC
13166 hardcode_libdir_flag_spec=' '
13167 allow_undefined_flag=unsupported
13168 always_export_symbols=yes
13169 file_list_spec='@'
13170 # Tell ltmain to make .lib files, not .a files.
13171 libext=lib
13172 # Tell ltmain to make .dll files, not .so files.
13173 shrext_cmds=.dll
13174 # FIXME: Setting linknames here is a bad hack.
13175 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13176 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13177 cp "$export_symbols" "$output_objdir/$soname.def";
13178 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13179 else
13180 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13182 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13183 linknames='
13184 # The linker will not automatically build a static lib if we build a DLL.
13185 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13186 enable_shared_with_static_runtimes=yes
13187 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13188 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13189 # Don't use ranlib
13190 old_postinstall_cmds='chmod 644 $oldlib'
13191 postlink_cmds='lt_outputfile="@OUTPUT@"~
13192 lt_tool_outputfile="@TOOL_OUTPUT@"~
13193 case $lt_outputfile in
13194 *.exe|*.EXE) ;;
13196 lt_outputfile=$lt_outputfile.exe
13197 lt_tool_outputfile=$lt_tool_outputfile.exe
13199 esac~
13200 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13201 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13202 $RM "$lt_outputfile.manifest";
13206 # Assume MSVC wrapper
13207 hardcode_libdir_flag_spec=' '
13208 allow_undefined_flag=unsupported
13209 # Tell ltmain to make .lib files, not .a files.
13210 libext=lib
13211 # Tell ltmain to make .dll files, not .so files.
13212 shrext_cmds=.dll
13213 # FIXME: Setting linknames here is a bad hack.
13214 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13215 # The linker will automatically build a .lib file if we build a DLL.
13216 old_archive_from_new_cmds='true'
13217 # FIXME: Should let the user specify the lib program.
13218 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13219 enable_shared_with_static_runtimes=yes
13221 esac
13224 darwin* | rhapsody*)
13227 archive_cmds_need_lc=no
13228 hardcode_direct=no
13229 hardcode_automatic=yes
13230 hardcode_shlibpath_var=unsupported
13231 if test yes = "$lt_cv_ld_force_load"; then
13232 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\"`'
13234 else
13235 whole_archive_flag_spec=''
13237 link_all_deplibs=yes
13238 allow_undefined_flag=$_lt_dar_allow_undefined
13239 case $cc_basename in
13240 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13241 *) _lt_dar_can_shared=$GCC ;;
13242 esac
13243 if test yes = "$_lt_dar_can_shared"; then
13244 output_verbose_link_cmd=func_echo_all
13245 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13246 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13247 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"
13248 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"
13250 else
13251 ld_shlibs=no
13256 dgux*)
13257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13258 hardcode_libdir_flag_spec='-L$libdir'
13259 hardcode_shlibpath_var=no
13262 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13263 # support. Future versions do this automatically, but an explicit c++rt0.o
13264 # does not break anything, and helps significantly (at the cost of a little
13265 # extra space).
13266 freebsd2.2*)
13267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13268 hardcode_libdir_flag_spec='-R$libdir'
13269 hardcode_direct=yes
13270 hardcode_shlibpath_var=no
13273 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13274 freebsd2.*)
13275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13276 hardcode_direct=yes
13277 hardcode_minus_L=yes
13278 hardcode_shlibpath_var=no
13281 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13282 freebsd* | dragonfly*)
13283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13284 hardcode_libdir_flag_spec='-R$libdir'
13285 hardcode_direct=yes
13286 hardcode_shlibpath_var=no
13289 hpux9*)
13290 if test yes = "$GCC"; then
13291 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13292 else
13293 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13295 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13296 hardcode_libdir_separator=:
13297 hardcode_direct=yes
13299 # hardcode_minus_L: Not really in the search PATH,
13300 # but as the default location of the library.
13301 hardcode_minus_L=yes
13302 export_dynamic_flag_spec='$wl-E'
13305 hpux10*)
13306 if test yes,no = "$GCC,$with_gnu_ld"; then
13307 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13308 else
13309 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13311 if test no = "$with_gnu_ld"; then
13312 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13313 hardcode_libdir_separator=:
13314 hardcode_direct=yes
13315 hardcode_direct_absolute=yes
13316 export_dynamic_flag_spec='$wl-E'
13317 # hardcode_minus_L: Not really in the search PATH,
13318 # but as the default location of the library.
13319 hardcode_minus_L=yes
13323 hpux11*)
13324 if test yes,no = "$GCC,$with_gnu_ld"; then
13325 case $host_cpu in
13326 hppa*64*)
13327 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 ia64*)
13330 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13333 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13335 esac
13336 else
13337 case $host_cpu in
13338 hppa*64*)
13339 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13341 ia64*)
13342 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13346 # Older versions of the 11.00 compiler do not understand -b yet
13347 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13349 $as_echo_n "checking if $CC understands -b... " >&6; }
13350 if ${lt_cv_prog_compiler__b+:} false; then :
13351 $as_echo_n "(cached) " >&6
13352 else
13353 lt_cv_prog_compiler__b=no
13354 save_LDFLAGS=$LDFLAGS
13355 LDFLAGS="$LDFLAGS -b"
13356 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13357 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13358 # The linker can only warn and ignore the option if not recognized
13359 # So say no if there are warnings
13360 if test -s conftest.err; then
13361 # Append any errors to the config.log.
13362 cat conftest.err 1>&5
13363 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13365 if diff conftest.exp conftest.er2 >/dev/null; then
13366 lt_cv_prog_compiler__b=yes
13368 else
13369 lt_cv_prog_compiler__b=yes
13372 $RM -r conftest*
13373 LDFLAGS=$save_LDFLAGS
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13377 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13379 if test yes = "$lt_cv_prog_compiler__b"; then
13380 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13381 else
13382 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13386 esac
13388 if test no = "$with_gnu_ld"; then
13389 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13390 hardcode_libdir_separator=:
13392 case $host_cpu in
13393 hppa*64*|ia64*)
13394 hardcode_direct=no
13395 hardcode_shlibpath_var=no
13398 hardcode_direct=yes
13399 hardcode_direct_absolute=yes
13400 export_dynamic_flag_spec='$wl-E'
13402 # hardcode_minus_L: Not really in the search PATH,
13403 # but as the default location of the library.
13404 hardcode_minus_L=yes
13406 esac
13410 irix5* | irix6* | nonstopux*)
13411 if test yes = "$GCC"; then
13412 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'
13413 # Try to use the -exported_symbol ld option, if it does not
13414 # work, assume that -exports_file does not work either and
13415 # implicitly export all symbols.
13416 # This should be the same for all languages, so no per-tag cache variable.
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13418 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13419 if ${lt_cv_irix_exported_symbol+:} false; then :
13420 $as_echo_n "(cached) " >&6
13421 else
13422 save_LDFLAGS=$LDFLAGS
13423 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426 int foo (void) { return 0; }
13427 _ACEOF
13428 if ac_fn_c_try_link "$LINENO"; then :
13429 lt_cv_irix_exported_symbol=yes
13430 else
13431 lt_cv_irix_exported_symbol=no
13433 rm -f core conftest.err conftest.$ac_objext \
13434 conftest$ac_exeext conftest.$ac_ext
13435 LDFLAGS=$save_LDFLAGS
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13438 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13439 if test yes = "$lt_cv_irix_exported_symbol"; then
13440 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'
13442 else
13443 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'
13444 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'
13446 archive_cmds_need_lc='no'
13447 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13448 hardcode_libdir_separator=:
13449 inherit_rpath=yes
13450 link_all_deplibs=yes
13453 linux*)
13454 case $cc_basename in
13455 tcc*)
13456 # Fabrice Bellard et al's Tiny C Compiler
13457 ld_shlibs=yes
13458 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13460 esac
13463 netbsd*)
13464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13466 else
13467 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13469 hardcode_libdir_flag_spec='-R$libdir'
13470 hardcode_direct=yes
13471 hardcode_shlibpath_var=no
13474 newsos6)
13475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 hardcode_direct=yes
13477 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13478 hardcode_libdir_separator=:
13479 hardcode_shlibpath_var=no
13482 *nto* | *qnx*)
13485 openbsd* | bitrig*)
13486 if test -f /usr/libexec/ld.so; then
13487 hardcode_direct=yes
13488 hardcode_shlibpath_var=no
13489 hardcode_direct_absolute=yes
13490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13491 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13492 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13493 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13494 export_dynamic_flag_spec='$wl-E'
13495 else
13496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13497 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13499 else
13500 ld_shlibs=no
13504 os2*)
13505 hardcode_libdir_flag_spec='-L$libdir'
13506 hardcode_minus_L=yes
13507 allow_undefined_flag=unsupported
13508 shrext_cmds=.dll
13509 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13510 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13511 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13512 $ECHO EXPORTS >> $output_objdir/$libname.def~
13513 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13514 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13515 emximp -o $lib $output_objdir/$libname.def'
13516 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13517 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13518 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13519 $ECHO EXPORTS >> $output_objdir/$libname.def~
13520 prefix_cmds="$SED"~
13521 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13522 prefix_cmds="$prefix_cmds -e 1d";
13524 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13525 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13526 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13527 emximp -o $lib $output_objdir/$libname.def'
13528 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13529 enable_shared_with_static_runtimes=yes
13532 osf3*)
13533 if test yes = "$GCC"; then
13534 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13535 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'
13536 else
13537 allow_undefined_flag=' -expect_unresolved \*'
13538 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'
13540 archive_cmds_need_lc='no'
13541 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13542 hardcode_libdir_separator=:
13545 osf4* | osf5*) # as osf3* with the addition of -msym flag
13546 if test yes = "$GCC"; then
13547 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13548 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'
13549 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13550 else
13551 allow_undefined_flag=' -expect_unresolved \*'
13552 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'
13553 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~
13554 $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'
13556 # Both c and cxx compiler support -rpath directly
13557 hardcode_libdir_flag_spec='-rpath $libdir'
13559 archive_cmds_need_lc='no'
13560 hardcode_libdir_separator=:
13563 solaris*)
13564 no_undefined_flag=' -z defs'
13565 if test yes = "$GCC"; then
13566 wlarc='$wl'
13567 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13568 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13569 $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'
13570 else
13571 case `$CC -V 2>&1` in
13572 *"Compilers 5.0"*)
13573 wlarc=''
13574 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13575 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13576 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13579 wlarc='$wl'
13580 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13581 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13582 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13584 esac
13586 hardcode_libdir_flag_spec='-R$libdir'
13587 hardcode_shlibpath_var=no
13588 case $host_os in
13589 solaris2.[0-5] | solaris2.[0-5].*) ;;
13591 # The compiler driver will combine and reorder linker options,
13592 # but understands '-z linker_flag'. GCC discards it without '$wl',
13593 # but is careful enough not to reorder.
13594 # Supported since Solaris 2.6 (maybe 2.5.1?)
13595 if test yes = "$GCC"; then
13596 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13597 else
13598 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13601 esac
13602 link_all_deplibs=yes
13605 sunos4*)
13606 if test sequent = "$host_vendor"; then
13607 # Use $CC to link under sequent, because it throws in some extra .o
13608 # files that make .init and .fini sections work.
13609 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13610 else
13611 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13613 hardcode_libdir_flag_spec='-L$libdir'
13614 hardcode_direct=yes
13615 hardcode_minus_L=yes
13616 hardcode_shlibpath_var=no
13619 sysv4)
13620 case $host_vendor in
13621 sni)
13622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13623 hardcode_direct=yes # is this really true???
13625 siemens)
13626 ## LD is ld it makes a PLAMLIB
13627 ## CC just makes a GrossModule.
13628 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13629 reload_cmds='$CC -r -o $output$reload_objs'
13630 hardcode_direct=no
13632 motorola)
13633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13634 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13636 esac
13637 runpath_var='LD_RUN_PATH'
13638 hardcode_shlibpath_var=no
13641 sysv4.3*)
13642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13643 hardcode_shlibpath_var=no
13644 export_dynamic_flag_spec='-Bexport'
13647 sysv4*MP*)
13648 if test -d /usr/nec; then
13649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13650 hardcode_shlibpath_var=no
13651 runpath_var=LD_RUN_PATH
13652 hardcode_runpath_var=yes
13653 ld_shlibs=yes
13657 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13658 no_undefined_flag='$wl-z,text'
13659 archive_cmds_need_lc=no
13660 hardcode_shlibpath_var=no
13661 runpath_var='LD_RUN_PATH'
13663 if test yes = "$GCC"; then
13664 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13665 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13666 else
13667 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13668 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 sysv5* | sco3.2v5* | sco5v6*)
13673 # Note: We CANNOT use -z defs as we might desire, because we do not
13674 # link with -lc, and that would cause any symbols used from libc to
13675 # always be unresolved, which means just about no library would
13676 # ever link correctly. If we're not using GNU ld we use -z text
13677 # though, which does catch some bad symbols but isn't as heavy-handed
13678 # as -z defs.
13679 no_undefined_flag='$wl-z,text'
13680 allow_undefined_flag='$wl-z,nodefs'
13681 archive_cmds_need_lc=no
13682 hardcode_shlibpath_var=no
13683 hardcode_libdir_flag_spec='$wl-R,$libdir'
13684 hardcode_libdir_separator=':'
13685 link_all_deplibs=yes
13686 export_dynamic_flag_spec='$wl-Bexport'
13687 runpath_var='LD_RUN_PATH'
13689 if test yes = "$GCC"; then
13690 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13691 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13692 else
13693 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13694 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13698 uts4*)
13699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13700 hardcode_libdir_flag_spec='-L$libdir'
13701 hardcode_shlibpath_var=no
13705 ld_shlibs=no
13707 esac
13709 if test sni = "$host_vendor"; then
13710 case $host in
13711 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13712 export_dynamic_flag_spec='$wl-Blargedynsym'
13714 esac
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13719 $as_echo "$ld_shlibs" >&6; }
13720 test no = "$ld_shlibs" && can_build_shared=no
13722 with_gnu_ld=$with_gnu_ld
13739 # Do we need to explicitly link libc?
13741 case "x$archive_cmds_need_lc" in
13742 x|xyes)
13743 # Assume -lc should be added
13744 archive_cmds_need_lc=yes
13746 if test yes,yes = "$GCC,$enable_shared"; then
13747 case $archive_cmds in
13748 *'~'*)
13749 # FIXME: we may have to deal with multi-command sequences.
13751 '$CC '*)
13752 # Test whether the compiler implicitly links with -lc since on some
13753 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13754 # to ld, don't add -lc before -lgcc.
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13756 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13757 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 $RM conftest*
13761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13764 (eval $ac_compile) 2>&5
13765 ac_status=$?
13766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13767 test $ac_status = 0; } 2>conftest.err; then
13768 soname=conftest
13769 lib=conftest
13770 libobjs=conftest.$ac_objext
13771 deplibs=
13772 wl=$lt_prog_compiler_wl
13773 pic_flag=$lt_prog_compiler_pic
13774 compiler_flags=-v
13775 linker_flags=-v
13776 verstring=
13777 output_objdir=.
13778 libname=conftest
13779 lt_save_allow_undefined_flag=$allow_undefined_flag
13780 allow_undefined_flag=
13781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13782 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13783 ac_status=$?
13784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13785 test $ac_status = 0; }
13786 then
13787 lt_cv_archive_cmds_need_lc=no
13788 else
13789 lt_cv_archive_cmds_need_lc=yes
13791 allow_undefined_flag=$lt_save_allow_undefined_flag
13792 else
13793 cat conftest.err 1>&5
13795 $RM conftest*
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13799 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13800 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13802 esac
13805 esac
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13959 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13961 if test yes = "$GCC"; then
13962 case $host_os in
13963 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13964 *) lt_awk_arg='/^libraries:/' ;;
13965 esac
13966 case $host_os in
13967 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13968 *) lt_sed_strip_eq='s|=/|/|g' ;;
13969 esac
13970 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13971 case $lt_search_path_spec in
13972 *\;*)
13973 # if the path contains ";" then we assume it to be the separator
13974 # otherwise default to the standard path separator (i.e. ":") - it is
13975 # assumed that no part of a normal pathname contains ";" but that should
13976 # okay in the real world where ";" in dirpaths is itself problematic.
13977 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13980 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13982 esac
13983 # Ok, now we have the path, separated by spaces, we can step through it
13984 # and add multilib dir if necessary...
13985 lt_tmp_lt_search_path_spec=
13986 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13987 # ...but if some path component already ends with the multilib dir we assume
13988 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13989 case "$lt_multi_os_dir; $lt_search_path_spec " in
13990 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13991 lt_multi_os_dir=
13993 esac
13994 for lt_sys_path in $lt_search_path_spec; do
13995 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13996 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13997 elif test -n "$lt_multi_os_dir"; then
13998 test -d "$lt_sys_path" && \
13999 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14001 done
14002 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14003 BEGIN {RS = " "; FS = "/|\n";} {
14004 lt_foo = "";
14005 lt_count = 0;
14006 for (lt_i = NF; lt_i > 0; lt_i--) {
14007 if ($lt_i != "" && $lt_i != ".") {
14008 if ($lt_i == "..") {
14009 lt_count++;
14010 } else {
14011 if (lt_count == 0) {
14012 lt_foo = "/" $lt_i lt_foo;
14013 } else {
14014 lt_count--;
14019 if (lt_foo != "") { lt_freq[lt_foo]++; }
14020 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14022 # AWK program above erroneously prepends '/' to C:/dos/paths
14023 # for these hosts.
14024 case $host_os in
14025 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14026 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14027 esac
14028 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14029 else
14030 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14032 library_names_spec=
14033 libname_spec='lib$name'
14034 soname_spec=
14035 shrext_cmds=.so
14036 postinstall_cmds=
14037 postuninstall_cmds=
14038 finish_cmds=
14039 finish_eval=
14040 shlibpath_var=
14041 shlibpath_overrides_runpath=unknown
14042 version_type=none
14043 dynamic_linker="$host_os ld.so"
14044 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14045 need_lib_prefix=unknown
14046 hardcode_into_libs=no
14048 # when you set need_version to no, make sure it does not cause -set_version
14049 # flags to be left without arguments
14050 need_version=unknown
14054 case $host_os in
14055 aix3*)
14056 version_type=linux # correct to gnu/linux during the next big refactor
14057 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14058 shlibpath_var=LIBPATH
14060 # AIX 3 has no versioning support, so we append a major version to the name.
14061 soname_spec='$libname$release$shared_ext$major'
14064 aix[4-9]*)
14065 version_type=linux # correct to gnu/linux during the next big refactor
14066 need_lib_prefix=no
14067 need_version=no
14068 hardcode_into_libs=yes
14069 if test ia64 = "$host_cpu"; then
14070 # AIX 5 supports IA64
14071 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14072 shlibpath_var=LD_LIBRARY_PATH
14073 else
14074 # With GCC up to 2.95.x, collect2 would create an import file
14075 # for dependence libraries. The import file would start with
14076 # the line '#! .'. This would cause the generated library to
14077 # depend on '.', always an invalid library. This was fixed in
14078 # development snapshots of GCC prior to 3.0.
14079 case $host_os in
14080 aix4 | aix4.[01] | aix4.[01].*)
14081 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14082 echo ' yes '
14083 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14085 else
14086 can_build_shared=no
14089 esac
14090 # Using Import Files as archive members, it is possible to support
14091 # filename-based versioning of shared library archives on AIX. While
14092 # this would work for both with and without runtime linking, it will
14093 # prevent static linking of such archives. So we do filename-based
14094 # shared library versioning with .so extension only, which is used
14095 # when both runtime linking and shared linking is enabled.
14096 # Unfortunately, runtime linking may impact performance, so we do
14097 # not want this to be the default eventually. Also, we use the
14098 # versioned .so libs for executables only if there is the -brtl
14099 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14100 # To allow for filename-based versioning support, we need to create
14101 # libNAME.so.V as an archive file, containing:
14102 # *) an Import File, referring to the versioned filename of the
14103 # archive as well as the shared archive member, telling the
14104 # bitwidth (32 or 64) of that shared object, and providing the
14105 # list of exported symbols of that shared object, eventually
14106 # decorated with the 'weak' keyword
14107 # *) the shared object with the F_LOADONLY flag set, to really avoid
14108 # it being seen by the linker.
14109 # At run time we better use the real file rather than another symlink,
14110 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14112 case $with_aix_soname,$aix_use_runtimelinking in
14113 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14114 # soname into executable. Probably we can add versioning support to
14115 # collect2, so additional links can be useful in future.
14116 aix,yes) # traditional libtool
14117 dynamic_linker='AIX unversionable lib.so'
14118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14119 # instead of lib<name>.a to let people know that these are not
14120 # typical AIX shared libraries.
14121 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14123 aix,no) # traditional AIX only
14124 dynamic_linker='AIX lib.a(lib.so.V)'
14125 # We preserve .a as extension for shared libraries through AIX4.2
14126 # and later when we are not doing run time linking.
14127 library_names_spec='$libname$release.a $libname.a'
14128 soname_spec='$libname$release$shared_ext$major'
14130 svr4,*) # full svr4 only
14131 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14132 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14133 # We do not specify a path in Import Files, so LIBPATH fires.
14134 shlibpath_overrides_runpath=yes
14136 *,yes) # both, prefer svr4
14137 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14138 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14139 # unpreferred sharedlib libNAME.a needs extra handling
14140 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14141 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14142 # We do not specify a path in Import Files, so LIBPATH fires.
14143 shlibpath_overrides_runpath=yes
14145 *,no) # both, prefer aix
14146 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14147 library_names_spec='$libname$release.a $libname.a'
14148 soname_spec='$libname$release$shared_ext$major'
14149 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14150 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14151 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14153 esac
14154 shlibpath_var=LIBPATH
14158 amigaos*)
14159 case $host_cpu in
14160 powerpc)
14161 # Since July 2007 AmigaOS4 officially supports .so libraries.
14162 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14165 m68k)
14166 library_names_spec='$libname.ixlibrary $libname.a'
14167 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14168 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14170 esac
14173 beos*)
14174 library_names_spec='$libname$shared_ext'
14175 dynamic_linker="$host_os ld.so"
14176 shlibpath_var=LIBRARY_PATH
14179 bsdi[45]*)
14180 version_type=linux # correct to gnu/linux during the next big refactor
14181 need_version=no
14182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14183 soname_spec='$libname$release$shared_ext$major'
14184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14185 shlibpath_var=LD_LIBRARY_PATH
14186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14188 # the default ld.so.conf also contains /usr/contrib/lib and
14189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14190 # libtool to hard-code these into programs
14193 cygwin* | mingw* | pw32* | cegcc*)
14194 version_type=windows
14195 shrext_cmds=.dll
14196 need_version=no
14197 need_lib_prefix=no
14199 case $GCC,$cc_basename in
14200 yes,*)
14201 # gcc
14202 library_names_spec='$libname.dll.a'
14203 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14204 postinstall_cmds='base_file=`basename \$file`~
14205 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14206 dldir=$destdir/`dirname \$dlpath`~
14207 test -d \$dldir || mkdir -p \$dldir~
14208 $install_prog $dir/$dlname \$dldir/$dlname~
14209 chmod a+x \$dldir/$dlname~
14210 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14211 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14213 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14214 dlpath=$dir/\$dldll~
14215 $RM \$dlpath'
14216 shlibpath_overrides_runpath=yes
14218 case $host_os in
14219 cygwin*)
14220 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14221 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14223 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14225 mingw* | cegcc*)
14226 # MinGW DLLs use traditional 'lib' prefix
14227 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14229 pw32*)
14230 # pw32 DLLs use 'pw' prefix rather than 'lib'
14231 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14233 esac
14234 dynamic_linker='Win32 ld.exe'
14237 *,cl*)
14238 # Native MSVC
14239 libname_spec='$name'
14240 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14241 library_names_spec='$libname.dll.lib'
14243 case $build_os in
14244 mingw*)
14245 sys_lib_search_path_spec=
14246 lt_save_ifs=$IFS
14247 IFS=';'
14248 for lt_path in $LIB
14250 IFS=$lt_save_ifs
14251 # Let DOS variable expansion print the short 8.3 style file name.
14252 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14253 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14254 done
14255 IFS=$lt_save_ifs
14256 # Convert to MSYS style.
14257 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14259 cygwin*)
14260 # Convert to unix form, then to dos form, then back to unix form
14261 # but this time dos style (no spaces!) so that the unix form looks
14262 # like /cygdrive/c/PROGRA~1:/cygdr...
14263 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14264 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14265 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14268 sys_lib_search_path_spec=$LIB
14269 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14270 # It is most probably a Windows format PATH.
14271 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14272 else
14273 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14275 # FIXME: find the short name or the path components, as spaces are
14276 # common. (e.g. "Program Files" -> "PROGRA~1")
14278 esac
14280 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14281 postinstall_cmds='base_file=`basename \$file`~
14282 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14283 dldir=$destdir/`dirname \$dlpath`~
14284 test -d \$dldir || mkdir -p \$dldir~
14285 $install_prog $dir/$dlname \$dldir/$dlname'
14286 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14287 dlpath=$dir/\$dldll~
14288 $RM \$dlpath'
14289 shlibpath_overrides_runpath=yes
14290 dynamic_linker='Win32 link.exe'
14294 # Assume MSVC wrapper
14295 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14296 dynamic_linker='Win32 ld.exe'
14298 esac
14299 # FIXME: first we should search . and the directory the executable is in
14300 shlibpath_var=PATH
14303 darwin* | rhapsody*)
14304 dynamic_linker="$host_os dyld"
14305 version_type=darwin
14306 need_lib_prefix=no
14307 need_version=no
14308 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14309 soname_spec='$libname$release$major$shared_ext'
14310 shlibpath_overrides_runpath=yes
14311 shlibpath_var=DYLD_LIBRARY_PATH
14312 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14314 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14315 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14318 dgux*)
14319 version_type=linux # correct to gnu/linux during the next big refactor
14320 need_lib_prefix=no
14321 need_version=no
14322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14323 soname_spec='$libname$release$shared_ext$major'
14324 shlibpath_var=LD_LIBRARY_PATH
14327 freebsd* | dragonfly*)
14328 # DragonFly does not have aout. When/if they implement a new
14329 # versioning mechanism, adjust this.
14330 if test -x /usr/bin/objformat; then
14331 objformat=`/usr/bin/objformat`
14332 else
14333 case $host_os in
14334 freebsd[23].*) objformat=aout ;;
14335 *) objformat=elf ;;
14336 esac
14338 version_type=freebsd-$objformat
14339 case $version_type in
14340 freebsd-elf*)
14341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14342 soname_spec='$libname$release$shared_ext$major'
14343 need_version=no
14344 need_lib_prefix=no
14346 freebsd-*)
14347 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14348 need_version=yes
14350 esac
14351 shlibpath_var=LD_LIBRARY_PATH
14352 case $host_os in
14353 freebsd2.*)
14354 shlibpath_overrides_runpath=yes
14356 freebsd3.[01]* | freebsdelf3.[01]*)
14357 shlibpath_overrides_runpath=yes
14358 hardcode_into_libs=yes
14360 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14361 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14362 shlibpath_overrides_runpath=no
14363 hardcode_into_libs=yes
14365 *) # from 4.6 on, and DragonFly
14366 shlibpath_overrides_runpath=yes
14367 hardcode_into_libs=yes
14369 esac
14372 haiku*)
14373 version_type=linux # correct to gnu/linux during the next big refactor
14374 need_lib_prefix=no
14375 need_version=no
14376 dynamic_linker="$host_os runtime_loader"
14377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14378 soname_spec='$libname$release$shared_ext$major'
14379 shlibpath_var=LIBRARY_PATH
14380 shlibpath_overrides_runpath=no
14381 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14382 hardcode_into_libs=yes
14385 hpux9* | hpux10* | hpux11*)
14386 # Give a soname corresponding to the major version so that dld.sl refuses to
14387 # link against other versions.
14388 version_type=sunos
14389 need_lib_prefix=no
14390 need_version=no
14391 case $host_cpu in
14392 ia64*)
14393 shrext_cmds='.so'
14394 hardcode_into_libs=yes
14395 dynamic_linker="$host_os dld.so"
14396 shlibpath_var=LD_LIBRARY_PATH
14397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14399 soname_spec='$libname$release$shared_ext$major'
14400 if test 32 = "$HPUX_IA64_MODE"; then
14401 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14402 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14403 else
14404 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14405 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14408 hppa*64*)
14409 shrext_cmds='.sl'
14410 hardcode_into_libs=yes
14411 dynamic_linker="$host_os dld.sl"
14412 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14415 soname_spec='$libname$release$shared_ext$major'
14416 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14420 shrext_cmds='.sl'
14421 dynamic_linker="$host_os dld.sl"
14422 shlibpath_var=SHLIB_PATH
14423 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14425 soname_spec='$libname$release$shared_ext$major'
14427 esac
14428 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14429 postinstall_cmds='chmod 555 $lib'
14430 # or fails outright, so override atomically:
14431 install_override_mode=555
14434 interix[3-9]*)
14435 version_type=linux # correct to gnu/linux during the next big refactor
14436 need_lib_prefix=no
14437 need_version=no
14438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14439 soname_spec='$libname$release$shared_ext$major'
14440 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14441 shlibpath_var=LD_LIBRARY_PATH
14442 shlibpath_overrides_runpath=no
14443 hardcode_into_libs=yes
14446 irix5* | irix6* | nonstopux*)
14447 case $host_os in
14448 nonstopux*) version_type=nonstopux ;;
14450 if test yes = "$lt_cv_prog_gnu_ld"; then
14451 version_type=linux # correct to gnu/linux during the next big refactor
14452 else
14453 version_type=irix
14454 fi ;;
14455 esac
14456 need_lib_prefix=no
14457 need_version=no
14458 soname_spec='$libname$release$shared_ext$major'
14459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14460 case $host_os in
14461 irix5* | nonstopux*)
14462 libsuff= shlibsuff=
14465 case $LD in # libtool.m4 will add one of these switches to LD
14466 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14467 libsuff= shlibsuff= libmagic=32-bit;;
14468 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14469 libsuff=32 shlibsuff=N32 libmagic=N32;;
14470 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14471 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14472 *) libsuff= shlibsuff= libmagic=never-match;;
14473 esac
14475 esac
14476 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14477 shlibpath_overrides_runpath=no
14478 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14479 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14480 hardcode_into_libs=yes
14483 # No shared lib support for Linux oldld, aout, or coff.
14484 linux*oldld* | linux*aout* | linux*coff*)
14485 dynamic_linker=no
14488 linux*android*)
14489 version_type=none # Android doesn't support versioned libraries.
14490 need_lib_prefix=no
14491 need_version=no
14492 library_names_spec='$libname$release$shared_ext'
14493 soname_spec='$libname$release$shared_ext'
14494 finish_cmds=
14495 shlibpath_var=LD_LIBRARY_PATH
14496 shlibpath_overrides_runpath=yes
14498 # This implies no fast_install, which is unacceptable.
14499 # Some rework will be needed to allow for fast_install
14500 # before this can be enabled.
14501 hardcode_into_libs=yes
14503 dynamic_linker='Android linker'
14504 # Don't embed -rpath directories since the linker doesn't support them.
14505 hardcode_libdir_flag_spec='-L$libdir'
14508 # This must be glibc/ELF.
14509 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14510 version_type=linux # correct to gnu/linux during the next big refactor
14511 need_lib_prefix=no
14512 need_version=no
14513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14514 soname_spec='$libname$release$shared_ext$major'
14515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14516 shlibpath_var=LD_LIBRARY_PATH
14517 shlibpath_overrides_runpath=no
14519 # Some binutils ld are patched to set DT_RUNPATH
14520 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14521 $as_echo_n "(cached) " >&6
14522 else
14523 lt_cv_shlibpath_overrides_runpath=no
14524 save_LDFLAGS=$LDFLAGS
14525 save_libdir=$libdir
14526 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14527 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14532 main ()
14536 return 0;
14538 _ACEOF
14539 if ac_fn_c_try_link "$LINENO"; then :
14540 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14541 lt_cv_shlibpath_overrides_runpath=yes
14544 rm -f core conftest.err conftest.$ac_objext \
14545 conftest$ac_exeext conftest.$ac_ext
14546 LDFLAGS=$save_LDFLAGS
14547 libdir=$save_libdir
14551 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14553 # This implies no fast_install, which is unacceptable.
14554 # Some rework will be needed to allow for fast_install
14555 # before this can be enabled.
14556 hardcode_into_libs=yes
14558 # Ideally, we could use ldconfig to report *all* directores which are
14559 # searched for libraries, however this is still not possible. Aside from not
14560 # being certain /sbin/ldconfig is available, command
14561 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14562 # even though it is searched at run-time. Try to do the best guess by
14563 # appending ld.so.conf contents (and includes) to the search path.
14564 if test -f /etc/ld.so.conf; then
14565 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' ' '`
14566 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14569 # We used to test for /lib/ld.so.1 and disable shared libraries on
14570 # powerpc, because MkLinux only supported shared libraries with the
14571 # GNU dynamic linker. Since this was broken with cross compilers,
14572 # most powerpc-linux boxes support dynamic linking these days and
14573 # people can always --disable-shared, the test was removed, and we
14574 # assume the GNU/Linux dynamic linker is in use.
14575 dynamic_linker='GNU/Linux ld.so'
14578 netbsd*)
14579 version_type=sunos
14580 need_lib_prefix=no
14581 need_version=no
14582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14583 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14585 dynamic_linker='NetBSD (a.out) ld.so'
14586 else
14587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14588 soname_spec='$libname$release$shared_ext$major'
14589 dynamic_linker='NetBSD ld.elf_so'
14591 shlibpath_var=LD_LIBRARY_PATH
14592 shlibpath_overrides_runpath=yes
14593 hardcode_into_libs=yes
14596 newsos6)
14597 version_type=linux # correct to gnu/linux during the next big refactor
14598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14599 shlibpath_var=LD_LIBRARY_PATH
14600 shlibpath_overrides_runpath=yes
14603 *nto* | *qnx*)
14604 version_type=qnx
14605 need_lib_prefix=no
14606 need_version=no
14607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14608 soname_spec='$libname$release$shared_ext$major'
14609 shlibpath_var=LD_LIBRARY_PATH
14610 shlibpath_overrides_runpath=no
14611 hardcode_into_libs=yes
14612 dynamic_linker='ldqnx.so'
14615 openbsd* | bitrig*)
14616 version_type=sunos
14617 sys_lib_dlsearch_path_spec=/usr/lib
14618 need_lib_prefix=no
14619 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14620 need_version=no
14621 else
14622 need_version=yes
14624 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14626 shlibpath_var=LD_LIBRARY_PATH
14627 shlibpath_overrides_runpath=yes
14630 os2*)
14631 libname_spec='$name'
14632 version_type=windows
14633 shrext_cmds=.dll
14634 need_version=no
14635 need_lib_prefix=no
14636 # OS/2 can only load a DLL with a base name of 8 characters or less.
14637 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14638 v=$($ECHO $release$versuffix | tr -d .-);
14639 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14640 $ECHO $n$v`$shared_ext'
14641 library_names_spec='${libname}_dll.$libext'
14642 dynamic_linker='OS/2 ld.exe'
14643 shlibpath_var=BEGINLIBPATH
14644 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14646 postinstall_cmds='base_file=`basename \$file`~
14647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14648 dldir=$destdir/`dirname \$dlpath`~
14649 test -d \$dldir || mkdir -p \$dldir~
14650 $install_prog $dir/$dlname \$dldir/$dlname~
14651 chmod a+x \$dldir/$dlname~
14652 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14653 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14655 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14656 dlpath=$dir/\$dldll~
14657 $RM \$dlpath'
14660 osf3* | osf4* | osf5*)
14661 version_type=osf
14662 need_lib_prefix=no
14663 need_version=no
14664 soname_spec='$libname$release$shared_ext$major'
14665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14666 shlibpath_var=LD_LIBRARY_PATH
14667 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14671 rdos*)
14672 dynamic_linker=no
14675 solaris*)
14676 version_type=linux # correct to gnu/linux during the next big refactor
14677 need_lib_prefix=no
14678 need_version=no
14679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14680 soname_spec='$libname$release$shared_ext$major'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 shlibpath_overrides_runpath=yes
14683 hardcode_into_libs=yes
14684 # ldd complains unless libraries are executable
14685 postinstall_cmds='chmod +x $lib'
14688 sunos4*)
14689 version_type=sunos
14690 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14691 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 shlibpath_overrides_runpath=yes
14694 if test yes = "$with_gnu_ld"; then
14695 need_lib_prefix=no
14697 need_version=yes
14700 sysv4 | sysv4.3*)
14701 version_type=linux # correct to gnu/linux during the next big refactor
14702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14703 soname_spec='$libname$release$shared_ext$major'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 case $host_vendor in
14706 sni)
14707 shlibpath_overrides_runpath=no
14708 need_lib_prefix=no
14709 runpath_var=LD_RUN_PATH
14711 siemens)
14712 need_lib_prefix=no
14714 motorola)
14715 need_lib_prefix=no
14716 need_version=no
14717 shlibpath_overrides_runpath=no
14718 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14720 esac
14723 sysv4*MP*)
14724 if test -d /usr/nec; then
14725 version_type=linux # correct to gnu/linux during the next big refactor
14726 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14727 soname_spec='$libname$shared_ext.$major'
14728 shlibpath_var=LD_LIBRARY_PATH
14732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14733 version_type=sco
14734 need_lib_prefix=no
14735 need_version=no
14736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14737 soname_spec='$libname$release$shared_ext$major'
14738 shlibpath_var=LD_LIBRARY_PATH
14739 shlibpath_overrides_runpath=yes
14740 hardcode_into_libs=yes
14741 if test yes = "$with_gnu_ld"; then
14742 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14743 else
14744 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14745 case $host_os in
14746 sco3.2v5*)
14747 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14749 esac
14751 sys_lib_dlsearch_path_spec='/usr/lib'
14754 tpf*)
14755 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14756 version_type=linux # correct to gnu/linux during the next big refactor
14757 need_lib_prefix=no
14758 need_version=no
14759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14760 shlibpath_var=LD_LIBRARY_PATH
14761 shlibpath_overrides_runpath=no
14762 hardcode_into_libs=yes
14765 uts4*)
14766 version_type=linux # correct to gnu/linux during the next big refactor
14767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14768 soname_spec='$libname$release$shared_ext$major'
14769 shlibpath_var=LD_LIBRARY_PATH
14773 dynamic_linker=no
14775 esac
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14777 $as_echo "$dynamic_linker" >&6; }
14778 test no = "$dynamic_linker" && can_build_shared=no
14780 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14781 if test yes = "$GCC"; then
14782 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14785 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14786 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14789 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14790 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14793 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14794 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14796 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14797 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14799 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14800 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14899 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14900 hardcode_action=
14901 if test -n "$hardcode_libdir_flag_spec" ||
14902 test -n "$runpath_var" ||
14903 test yes = "$hardcode_automatic"; then
14905 # We can hardcode non-existent directories.
14906 if test no != "$hardcode_direct" &&
14907 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14908 # have to relink, otherwise we might link with an installed library
14909 # when we should be linking with a yet-to-be-installed one
14910 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14911 test no != "$hardcode_minus_L"; then
14912 # Linking always hardcodes the temporary library directory.
14913 hardcode_action=relink
14914 else
14915 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14916 hardcode_action=immediate
14918 else
14919 # We cannot hardcode anything, or else we can only hardcode existing
14920 # directories.
14921 hardcode_action=unsupported
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14924 $as_echo "$hardcode_action" >&6; }
14926 if test relink = "$hardcode_action" ||
14927 test yes = "$inherit_rpath"; then
14928 # Fast installation is not supported
14929 enable_fast_install=no
14930 elif test yes = "$shlibpath_overrides_runpath" ||
14931 test no = "$enable_shared"; then
14932 # Fast installation is not necessary
14933 enable_fast_install=needless
14941 if test yes != "$enable_dlopen"; then
14942 enable_dlopen=unknown
14943 enable_dlopen_self=unknown
14944 enable_dlopen_self_static=unknown
14945 else
14946 lt_cv_dlopen=no
14947 lt_cv_dlopen_libs=
14949 case $host_os in
14950 beos*)
14951 lt_cv_dlopen=load_add_on
14952 lt_cv_dlopen_libs=
14953 lt_cv_dlopen_self=yes
14956 mingw* | pw32* | cegcc*)
14957 lt_cv_dlopen=LoadLibrary
14958 lt_cv_dlopen_libs=
14961 cygwin*)
14962 lt_cv_dlopen=dlopen
14963 lt_cv_dlopen_libs=
14966 darwin*)
14967 # if libdl is installed we need to link against it
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14969 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14970 if ${ac_cv_lib_dl_dlopen+:} false; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 ac_check_lib_save_LIBS=$LIBS
14974 LIBS="-ldl $LIBS"
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14978 /* Override any GCC internal prototype to avoid an error.
14979 Use char because int might match the return type of a GCC
14980 builtin and then its argument prototype would still apply. */
14981 #ifdef __cplusplus
14982 extern "C"
14983 #endif
14984 char dlopen ();
14986 main ()
14988 return dlopen ();
14990 return 0;
14992 _ACEOF
14993 if ac_fn_c_try_link "$LINENO"; then :
14994 ac_cv_lib_dl_dlopen=yes
14995 else
14996 ac_cv_lib_dl_dlopen=no
14998 rm -f core conftest.err conftest.$ac_objext \
14999 conftest$ac_exeext conftest.$ac_ext
15000 LIBS=$ac_check_lib_save_LIBS
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15003 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15004 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15005 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15006 else
15008 lt_cv_dlopen=dyld
15009 lt_cv_dlopen_libs=
15010 lt_cv_dlopen_self=yes
15016 tpf*)
15017 # Don't try to run any link tests for TPF. We know it's impossible
15018 # because TPF is a cross-compiler, and we know how we open DSOs.
15019 lt_cv_dlopen=dlopen
15020 lt_cv_dlopen_libs=
15021 lt_cv_dlopen_self=no
15025 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15026 if test "x$ac_cv_func_shl_load" = xyes; then :
15027 lt_cv_dlopen=shl_load
15028 else
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15030 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15031 if ${ac_cv_lib_dld_shl_load+:} false; then :
15032 $as_echo_n "(cached) " >&6
15033 else
15034 ac_check_lib_save_LIBS=$LIBS
15035 LIBS="-ldld $LIBS"
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15039 /* Override any GCC internal prototype to avoid an error.
15040 Use char because int might match the return type of a GCC
15041 builtin and then its argument prototype would still apply. */
15042 #ifdef __cplusplus
15043 extern "C"
15044 #endif
15045 char shl_load ();
15047 main ()
15049 return shl_load ();
15051 return 0;
15053 _ACEOF
15054 if ac_fn_c_try_link "$LINENO"; then :
15055 ac_cv_lib_dld_shl_load=yes
15056 else
15057 ac_cv_lib_dld_shl_load=no
15059 rm -f core conftest.err conftest.$ac_objext \
15060 conftest$ac_exeext conftest.$ac_ext
15061 LIBS=$ac_check_lib_save_LIBS
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15064 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15065 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15066 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15067 else
15068 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15069 if test "x$ac_cv_func_dlopen" = xyes; then :
15070 lt_cv_dlopen=dlopen
15071 else
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15073 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15074 if ${ac_cv_lib_dl_dlopen+:} false; then :
15075 $as_echo_n "(cached) " >&6
15076 else
15077 ac_check_lib_save_LIBS=$LIBS
15078 LIBS="-ldl $LIBS"
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15082 /* Override any GCC internal prototype to avoid an error.
15083 Use char because int might match the return type of a GCC
15084 builtin and then its argument prototype would still apply. */
15085 #ifdef __cplusplus
15086 extern "C"
15087 #endif
15088 char dlopen ();
15090 main ()
15092 return dlopen ();
15094 return 0;
15096 _ACEOF
15097 if ac_fn_c_try_link "$LINENO"; then :
15098 ac_cv_lib_dl_dlopen=yes
15099 else
15100 ac_cv_lib_dl_dlopen=no
15102 rm -f core conftest.err conftest.$ac_objext \
15103 conftest$ac_exeext conftest.$ac_ext
15104 LIBS=$ac_check_lib_save_LIBS
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15107 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15108 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15109 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15110 else
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15112 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15113 if ${ac_cv_lib_svld_dlopen+:} false; then :
15114 $as_echo_n "(cached) " >&6
15115 else
15116 ac_check_lib_save_LIBS=$LIBS
15117 LIBS="-lsvld $LIBS"
15118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15119 /* end confdefs.h. */
15121 /* Override any GCC internal prototype to avoid an error.
15122 Use char because int might match the return type of a GCC
15123 builtin and then its argument prototype would still apply. */
15124 #ifdef __cplusplus
15125 extern "C"
15126 #endif
15127 char dlopen ();
15129 main ()
15131 return dlopen ();
15133 return 0;
15135 _ACEOF
15136 if ac_fn_c_try_link "$LINENO"; then :
15137 ac_cv_lib_svld_dlopen=yes
15138 else
15139 ac_cv_lib_svld_dlopen=no
15141 rm -f core conftest.err conftest.$ac_objext \
15142 conftest$ac_exeext conftest.$ac_ext
15143 LIBS=$ac_check_lib_save_LIBS
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15146 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15147 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15148 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15149 else
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15151 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15152 if ${ac_cv_lib_dld_dld_link+:} false; then :
15153 $as_echo_n "(cached) " >&6
15154 else
15155 ac_check_lib_save_LIBS=$LIBS
15156 LIBS="-ldld $LIBS"
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15160 /* Override any GCC internal prototype to avoid an error.
15161 Use char because int might match the return type of a GCC
15162 builtin and then its argument prototype would still apply. */
15163 #ifdef __cplusplus
15164 extern "C"
15165 #endif
15166 char dld_link ();
15168 main ()
15170 return dld_link ();
15172 return 0;
15174 _ACEOF
15175 if ac_fn_c_try_link "$LINENO"; then :
15176 ac_cv_lib_dld_dld_link=yes
15177 else
15178 ac_cv_lib_dld_dld_link=no
15180 rm -f core conftest.err conftest.$ac_objext \
15181 conftest$ac_exeext conftest.$ac_ext
15182 LIBS=$ac_check_lib_save_LIBS
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15185 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15186 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15187 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15206 esac
15208 if test no = "$lt_cv_dlopen"; then
15209 enable_dlopen=no
15210 else
15211 enable_dlopen=yes
15214 case $lt_cv_dlopen in
15215 dlopen)
15216 save_CPPFLAGS=$CPPFLAGS
15217 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15219 save_LDFLAGS=$LDFLAGS
15220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15222 save_LIBS=$LIBS
15223 LIBS="$lt_cv_dlopen_libs $LIBS"
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15226 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15227 if ${lt_cv_dlopen_self+:} false; then :
15228 $as_echo_n "(cached) " >&6
15229 else
15230 if test yes = "$cross_compiling"; then :
15231 lt_cv_dlopen_self=cross
15232 else
15233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15234 lt_status=$lt_dlunknown
15235 cat > conftest.$ac_ext <<_LT_EOF
15236 #line $LINENO "configure"
15237 #include "confdefs.h"
15239 #if HAVE_DLFCN_H
15240 #include <dlfcn.h>
15241 #endif
15243 #include <stdio.h>
15245 #ifdef RTLD_GLOBAL
15246 # define LT_DLGLOBAL RTLD_GLOBAL
15247 #else
15248 # ifdef DL_GLOBAL
15249 # define LT_DLGLOBAL DL_GLOBAL
15250 # else
15251 # define LT_DLGLOBAL 0
15252 # endif
15253 #endif
15255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15256 find out it does not work in some platform. */
15257 #ifndef LT_DLLAZY_OR_NOW
15258 # ifdef RTLD_LAZY
15259 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15260 # else
15261 # ifdef DL_LAZY
15262 # define LT_DLLAZY_OR_NOW DL_LAZY
15263 # else
15264 # ifdef RTLD_NOW
15265 # define LT_DLLAZY_OR_NOW RTLD_NOW
15266 # else
15267 # ifdef DL_NOW
15268 # define LT_DLLAZY_OR_NOW DL_NOW
15269 # else
15270 # define LT_DLLAZY_OR_NOW 0
15271 # endif
15272 # endif
15273 # endif
15274 # endif
15275 #endif
15277 /* When -fvisibility=hidden is used, assume the code has been annotated
15278 correspondingly for the symbols needed. */
15279 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15280 int fnord () __attribute__((visibility("default")));
15281 #endif
15283 int fnord () { return 42; }
15284 int main ()
15286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15287 int status = $lt_dlunknown;
15289 if (self)
15291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15292 else
15294 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15295 else puts (dlerror ());
15297 /* dlclose (self); */
15299 else
15300 puts (dlerror ());
15302 return status;
15304 _LT_EOF
15305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15306 (eval $ac_link) 2>&5
15307 ac_status=$?
15308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15309 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15310 (./conftest; exit; ) >&5 2>/dev/null
15311 lt_status=$?
15312 case x$lt_status in
15313 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15314 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15315 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15316 esac
15317 else :
15318 # compilation failed
15319 lt_cv_dlopen_self=no
15322 rm -fr conftest*
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15327 $as_echo "$lt_cv_dlopen_self" >&6; }
15329 if test yes = "$lt_cv_dlopen_self"; then
15330 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15332 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15333 if ${lt_cv_dlopen_self_static+:} false; then :
15334 $as_echo_n "(cached) " >&6
15335 else
15336 if test yes = "$cross_compiling"; then :
15337 lt_cv_dlopen_self_static=cross
15338 else
15339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15340 lt_status=$lt_dlunknown
15341 cat > conftest.$ac_ext <<_LT_EOF
15342 #line $LINENO "configure"
15343 #include "confdefs.h"
15345 #if HAVE_DLFCN_H
15346 #include <dlfcn.h>
15347 #endif
15349 #include <stdio.h>
15351 #ifdef RTLD_GLOBAL
15352 # define LT_DLGLOBAL RTLD_GLOBAL
15353 #else
15354 # ifdef DL_GLOBAL
15355 # define LT_DLGLOBAL DL_GLOBAL
15356 # else
15357 # define LT_DLGLOBAL 0
15358 # endif
15359 #endif
15361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15362 find out it does not work in some platform. */
15363 #ifndef LT_DLLAZY_OR_NOW
15364 # ifdef RTLD_LAZY
15365 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15366 # else
15367 # ifdef DL_LAZY
15368 # define LT_DLLAZY_OR_NOW DL_LAZY
15369 # else
15370 # ifdef RTLD_NOW
15371 # define LT_DLLAZY_OR_NOW RTLD_NOW
15372 # else
15373 # ifdef DL_NOW
15374 # define LT_DLLAZY_OR_NOW DL_NOW
15375 # else
15376 # define LT_DLLAZY_OR_NOW 0
15377 # endif
15378 # endif
15379 # endif
15380 # endif
15381 #endif
15383 /* When -fvisibility=hidden is used, assume the code has been annotated
15384 correspondingly for the symbols needed. */
15385 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15386 int fnord () __attribute__((visibility("default")));
15387 #endif
15389 int fnord () { return 42; }
15390 int main ()
15392 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15393 int status = $lt_dlunknown;
15395 if (self)
15397 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15398 else
15400 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15401 else puts (dlerror ());
15403 /* dlclose (self); */
15405 else
15406 puts (dlerror ());
15408 return status;
15410 _LT_EOF
15411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15412 (eval $ac_link) 2>&5
15413 ac_status=$?
15414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15415 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15416 (./conftest; exit; ) >&5 2>/dev/null
15417 lt_status=$?
15418 case x$lt_status in
15419 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15420 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15421 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15422 esac
15423 else :
15424 # compilation failed
15425 lt_cv_dlopen_self_static=no
15428 rm -fr conftest*
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15433 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15436 CPPFLAGS=$save_CPPFLAGS
15437 LDFLAGS=$save_LDFLAGS
15438 LIBS=$save_LIBS
15440 esac
15442 case $lt_cv_dlopen_self in
15443 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15444 *) enable_dlopen_self=unknown ;;
15445 esac
15447 case $lt_cv_dlopen_self_static in
15448 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15449 *) enable_dlopen_self_static=unknown ;;
15450 esac
15469 striplib=
15470 old_striplib=
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15472 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15473 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15474 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15475 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15477 $as_echo "yes" >&6; }
15478 else
15479 # FIXME - insert some real tests, host_os isn't really good enough
15480 case $host_os in
15481 darwin*)
15482 if test -n "$STRIP"; then
15483 striplib="$STRIP -x"
15484 old_striplib="$STRIP -S"
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15486 $as_echo "yes" >&6; }
15487 else
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15489 $as_echo "no" >&6; }
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15494 $as_echo "no" >&6; }
15496 esac
15510 # Report what library types will actually be built
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15512 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15514 $as_echo "$can_build_shared" >&6; }
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15517 $as_echo_n "checking whether to build shared libraries... " >&6; }
15518 test no = "$can_build_shared" && enable_shared=no
15520 # On AIX, shared libraries and static libraries use the same namespace, and
15521 # are all built from PIC.
15522 case $host_os in
15523 aix3*)
15524 test yes = "$enable_shared" && enable_static=no
15525 if test -n "$RANLIB"; then
15526 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15527 postinstall_cmds='$RANLIB $lib'
15531 aix[4-9]*)
15532 if test ia64 != "$host_cpu"; then
15533 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15534 yes,aix,yes) ;; # shared object as lib.so file only
15535 yes,svr4,*) ;; # shared object as lib.so archive member only
15536 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15537 esac
15540 esac
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15542 $as_echo "$enable_shared" >&6; }
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15545 $as_echo_n "checking whether to build static libraries... " >&6; }
15546 # Make sure either enable_shared or enable_static is yes.
15547 test yes = "$enable_shared" || enable_static=yes
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15549 $as_echo "$enable_static" >&6; }
15555 ac_ext=c
15556 ac_cpp='$CPP $CPPFLAGS'
15557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15561 CC=$lt_save_CC
15577 ac_config_commands="$ac_config_commands libtool"
15582 # Only expand once:
15588 if test -n "$ac_tool_prefix"; then
15589 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15590 set dummy ${ac_tool_prefix}ar; ac_word=$2
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15592 $as_echo_n "checking for $ac_word... " >&6; }
15593 if ${ac_cv_prog_AR+:} false; then :
15594 $as_echo_n "(cached) " >&6
15595 else
15596 if test -n "$AR"; then
15597 ac_cv_prog_AR="$AR" # Let the user override the test.
15598 else
15599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15600 for as_dir in $PATH
15602 IFS=$as_save_IFS
15603 test -z "$as_dir" && as_dir=.
15604 for ac_exec_ext in '' $ac_executable_extensions; do
15605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15606 ac_cv_prog_AR="${ac_tool_prefix}ar"
15607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15608 break 2
15610 done
15611 done
15612 IFS=$as_save_IFS
15616 AR=$ac_cv_prog_AR
15617 if test -n "$AR"; then
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15619 $as_echo "$AR" >&6; }
15620 else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15622 $as_echo "no" >&6; }
15627 if test -z "$ac_cv_prog_AR"; then
15628 ac_ct_AR=$AR
15629 # Extract the first word of "ar", so it can be a program name with args.
15630 set dummy ar; ac_word=$2
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15632 $as_echo_n "checking for $ac_word... " >&6; }
15633 if ${ac_cv_prog_ac_ct_AR+:} false; then :
15634 $as_echo_n "(cached) " >&6
15635 else
15636 if test -n "$ac_ct_AR"; then
15637 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15638 else
15639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15640 for as_dir in $PATH
15642 IFS=$as_save_IFS
15643 test -z "$as_dir" && as_dir=.
15644 for ac_exec_ext in '' $ac_executable_extensions; do
15645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15646 ac_cv_prog_ac_ct_AR="ar"
15647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15648 break 2
15650 done
15651 done
15652 IFS=$as_save_IFS
15656 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15657 if test -n "$ac_ct_AR"; then
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15659 $as_echo "$ac_ct_AR" >&6; }
15660 else
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15662 $as_echo "no" >&6; }
15665 if test "x$ac_ct_AR" = x; then
15666 AR="ar"
15667 else
15668 case $cross_compiling:$ac_tool_warned in
15669 yes:)
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15672 ac_tool_warned=yes ;;
15673 esac
15674 AR=$ac_ct_AR
15676 else
15677 AR="$ac_cv_prog_AR"
15682 if test "x$EMSCRIPTEN" = "x" -a "$host_os" != "pnacl"; then :
15685 oldcflags="$CFLAGS"
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
15687 $as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
15688 if ${ax_cv_check_cflags___mmmx+:} false; then :
15689 $as_echo_n "(cached) " >&6
15690 else
15692 ax_check_save_flags=$CFLAGS
15693 CFLAGS="$CFLAGS -mmmx"
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15696 #include <stdio.h>
15698 main ()
15700 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15702 return 0;
15704 _ACEOF
15705 if ac_fn_c_try_link "$LINENO"; then :
15706 ax_cv_check_cflags___mmmx=yes
15707 else
15708 ax_cv_check_cflags___mmmx=no
15710 rm -f core conftest.err conftest.$ac_objext \
15711 conftest$ac_exeext conftest.$ac_ext
15712 CFLAGS=$ax_check_save_flags
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
15715 $as_echo "$ax_cv_check_cflags___mmmx" >&6; }
15716 if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
15717 CFLAGS="$CFLAGS -mmmx"
15718 else
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMX instructions set" >&5
15723 $as_echo_n "checking for MMX instructions set... " >&6; }
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15727 #pragma GCC target("mmx")
15728 #include <mmintrin.h>
15731 main ()
15733 __m64 x = _mm_setzero_si64();
15735 return 0;
15737 _ACEOF
15738 if ac_fn_c_try_compile "$LINENO"; then :
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15740 $as_echo "yes" >&6; }
15742 $as_echo "#define HAVE_MMINTRIN_H 1" >>confdefs.h
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
15745 $as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
15746 if ${ax_cv_check_cflags___mmmx+:} false; then :
15747 $as_echo_n "(cached) " >&6
15748 else
15750 ax_check_save_flags=$CFLAGS
15751 CFLAGS="$CFLAGS -mmmx"
15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h. */
15754 #include <stdio.h>
15756 main ()
15758 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15760 return 0;
15762 _ACEOF
15763 if ac_fn_c_try_link "$LINENO"; then :
15764 ax_cv_check_cflags___mmmx=yes
15765 else
15766 ax_cv_check_cflags___mmmx=no
15768 rm -f core conftest.err conftest.$ac_objext \
15769 conftest$ac_exeext conftest.$ac_ext
15770 CFLAGS=$ax_check_save_flags
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
15773 $as_echo "$ax_cv_check_cflags___mmmx" >&6; }
15774 if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
15775 CFLAGS_MMX="-mmmx"
15776 else
15780 else
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15782 $as_echo "no" >&6; }
15784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785 CFLAGS="$oldcflags"
15787 oldcflags="$CFLAGS"
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
15789 $as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
15790 if ${ax_cv_check_cflags___msse2+:} false; then :
15791 $as_echo_n "(cached) " >&6
15792 else
15794 ax_check_save_flags=$CFLAGS
15795 CFLAGS="$CFLAGS -msse2"
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798 #include <stdio.h>
15800 main ()
15802 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15804 return 0;
15806 _ACEOF
15807 if ac_fn_c_try_link "$LINENO"; then :
15808 ax_cv_check_cflags___msse2=yes
15809 else
15810 ax_cv_check_cflags___msse2=no
15812 rm -f core conftest.err conftest.$ac_objext \
15813 conftest$ac_exeext conftest.$ac_ext
15814 CFLAGS=$ax_check_save_flags
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
15817 $as_echo "$ax_cv_check_cflags___msse2" >&6; }
15818 if test "x$ax_cv_check_cflags___msse2" = xyes; then :
15819 CFLAGS="$CFLAGS -msse2"
15820 else
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE2 instructions set" >&5
15825 $as_echo_n "checking for SSE2 instructions set... " >&6; }
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15829 #pragma GCC target("sse2")
15830 #ifndef __SSE2__
15831 # define __SSE2__
15832 #endif
15833 #include <emmintrin.h>
15836 main ()
15838 __m128d x = _mm_setzero_pd();
15839 __m128i z = _mm_srli_epi64(_mm_setzero_si128(), 26);
15841 return 0;
15843 _ACEOF
15844 if ac_fn_c_try_compile "$LINENO"; then :
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15846 $as_echo "yes" >&6; }
15848 $as_echo "#define HAVE_EMMINTRIN_H 1" >>confdefs.h
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
15851 $as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
15852 if ${ax_cv_check_cflags___msse2+:} false; then :
15853 $as_echo_n "(cached) " >&6
15854 else
15856 ax_check_save_flags=$CFLAGS
15857 CFLAGS="$CFLAGS -msse2"
15858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859 /* end confdefs.h. */
15860 #include <stdio.h>
15862 main ()
15864 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15866 return 0;
15868 _ACEOF
15869 if ac_fn_c_try_link "$LINENO"; then :
15870 ax_cv_check_cflags___msse2=yes
15871 else
15872 ax_cv_check_cflags___msse2=no
15874 rm -f core conftest.err conftest.$ac_objext \
15875 conftest$ac_exeext conftest.$ac_ext
15876 CFLAGS=$ax_check_save_flags
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
15879 $as_echo "$ax_cv_check_cflags___msse2" >&6; }
15880 if test "x$ax_cv_check_cflags___msse2" = xyes; then :
15881 CFLAGS_SSE2="-msse2"
15882 else
15886 else
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15888 $as_echo "no" >&6; }
15890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15891 CFLAGS="$oldcflags"
15893 oldcflags="$CFLAGS"
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
15895 $as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
15896 if ${ax_cv_check_cflags___msse3+:} false; then :
15897 $as_echo_n "(cached) " >&6
15898 else
15900 ax_check_save_flags=$CFLAGS
15901 CFLAGS="$CFLAGS -msse3"
15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904 #include <stdio.h>
15906 main ()
15908 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15910 return 0;
15912 _ACEOF
15913 if ac_fn_c_try_link "$LINENO"; then :
15914 ax_cv_check_cflags___msse3=yes
15915 else
15916 ax_cv_check_cflags___msse3=no
15918 rm -f core conftest.err conftest.$ac_objext \
15919 conftest$ac_exeext conftest.$ac_ext
15920 CFLAGS=$ax_check_save_flags
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
15923 $as_echo "$ax_cv_check_cflags___msse3" >&6; }
15924 if test "x$ax_cv_check_cflags___msse3" = xyes; then :
15925 CFLAGS="$CFLAGS -msse3"
15926 else
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE3 instructions set" >&5
15931 $as_echo_n "checking for SSE3 instructions set... " >&6; }
15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h. */
15935 #pragma GCC target("sse3")
15936 #include <pmmintrin.h>
15939 main ()
15941 __m128 x = _mm_addsub_ps(_mm_cvtpd_ps(_mm_setzero_pd()),
15942 _mm_cvtpd_ps(_mm_setzero_pd()));
15944 return 0;
15946 _ACEOF
15947 if ac_fn_c_try_compile "$LINENO"; then :
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15949 $as_echo "yes" >&6; }
15951 $as_echo "#define HAVE_PMMINTRIN_H 1" >>confdefs.h
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
15954 $as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
15955 if ${ax_cv_check_cflags___msse3+:} false; then :
15956 $as_echo_n "(cached) " >&6
15957 else
15959 ax_check_save_flags=$CFLAGS
15960 CFLAGS="$CFLAGS -msse3"
15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15962 /* end confdefs.h. */
15963 #include <stdio.h>
15965 main ()
15967 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
15969 return 0;
15971 _ACEOF
15972 if ac_fn_c_try_link "$LINENO"; then :
15973 ax_cv_check_cflags___msse3=yes
15974 else
15975 ax_cv_check_cflags___msse3=no
15977 rm -f core conftest.err conftest.$ac_objext \
15978 conftest$ac_exeext conftest.$ac_ext
15979 CFLAGS=$ax_check_save_flags
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
15982 $as_echo "$ax_cv_check_cflags___msse3" >&6; }
15983 if test "x$ax_cv_check_cflags___msse3" = xyes; then :
15984 CFLAGS_SSE3="-msse3"
15985 else
15989 else
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15991 $as_echo "no" >&6; }
15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 CFLAGS="$oldcflags"
15996 oldcflags="$CFLAGS"
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
15998 $as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
15999 if ${ax_cv_check_cflags___mssse3+:} false; then :
16000 $as_echo_n "(cached) " >&6
16001 else
16003 ax_check_save_flags=$CFLAGS
16004 CFLAGS="$CFLAGS -mssse3"
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007 #include <stdio.h>
16009 main ()
16011 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
16013 return 0;
16015 _ACEOF
16016 if ac_fn_c_try_link "$LINENO"; then :
16017 ax_cv_check_cflags___mssse3=yes
16018 else
16019 ax_cv_check_cflags___mssse3=no
16021 rm -f core conftest.err conftest.$ac_objext \
16022 conftest$ac_exeext conftest.$ac_ext
16023 CFLAGS=$ax_check_save_flags
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
16026 $as_echo "$ax_cv_check_cflags___mssse3" >&6; }
16027 if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
16028 CFLAGS="$CFLAGS -mssse3"
16029 else
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSSE3 instructions set" >&5
16034 $as_echo_n "checking for SSSE3 instructions set... " >&6; }
16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036 /* end confdefs.h. */
16038 #pragma GCC target("ssse3")
16039 #include <tmmintrin.h>
16042 main ()
16044 __m64 x = _mm_abs_pi32(_m_from_int(0));
16046 return 0;
16048 _ACEOF
16049 if ac_fn_c_try_compile "$LINENO"; then :
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16051 $as_echo "yes" >&6; }
16053 $as_echo "#define HAVE_TMMINTRIN_H 1" >>confdefs.h
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
16056 $as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
16057 if ${ax_cv_check_cflags___mssse3+:} false; then :
16058 $as_echo_n "(cached) " >&6
16059 else
16061 ax_check_save_flags=$CFLAGS
16062 CFLAGS="$CFLAGS -mssse3"
16063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h. */
16065 #include <stdio.h>
16067 main ()
16069 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
16071 return 0;
16073 _ACEOF
16074 if ac_fn_c_try_link "$LINENO"; then :
16075 ax_cv_check_cflags___mssse3=yes
16076 else
16077 ax_cv_check_cflags___mssse3=no
16079 rm -f core conftest.err conftest.$ac_objext \
16080 conftest$ac_exeext conftest.$ac_ext
16081 CFLAGS=$ax_check_save_flags
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
16084 $as_echo "$ax_cv_check_cflags___mssse3" >&6; }
16085 if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
16086 CFLAGS_SSSE3="-mssse3"
16087 else
16091 else
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16093 $as_echo "no" >&6; }
16095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096 CFLAGS="$oldcflags"
16098 oldcflags="$CFLAGS"
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
16100 $as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
16101 if ${ax_cv_check_cflags___msse4_1+:} false; then :
16102 $as_echo_n "(cached) " >&6
16103 else
16105 ax_check_save_flags=$CFLAGS
16106 CFLAGS="$CFLAGS -msse4.1"
16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16109 #include <stdio.h>
16111 main ()
16113 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
16115 return 0;
16117 _ACEOF
16118 if ac_fn_c_try_link "$LINENO"; then :
16119 ax_cv_check_cflags___msse4_1=yes
16120 else
16121 ax_cv_check_cflags___msse4_1=no
16123 rm -f core conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16125 CFLAGS=$ax_check_save_flags
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
16128 $as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
16129 if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
16130 CFLAGS="$CFLAGS -msse4.1"
16131 else
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.1 instructions set" >&5
16136 $as_echo_n "checking for SSE4.1 instructions set... " >&6; }
16137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h. */
16140 #pragma GCC target("sse4.1")
16141 #include <smmintrin.h>
16144 main ()
16146 __m128i x = _mm_minpos_epu16(_mm_setzero_si128());
16148 return 0;
16150 _ACEOF
16151 if ac_fn_c_try_compile "$LINENO"; then :
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16153 $as_echo "yes" >&6; }
16155 $as_echo "#define HAVE_SMMINTRIN_H 1" >>confdefs.h
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
16158 $as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
16159 if ${ax_cv_check_cflags___msse4_1+:} false; then :
16160 $as_echo_n "(cached) " >&6
16161 else
16163 ax_check_save_flags=$CFLAGS
16164 CFLAGS="$CFLAGS -msse4.1"
16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16167 #include <stdio.h>
16169 main ()
16171 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
16173 return 0;
16175 _ACEOF
16176 if ac_fn_c_try_link "$LINENO"; then :
16177 ax_cv_check_cflags___msse4_1=yes
16178 else
16179 ax_cv_check_cflags___msse4_1=no
16181 rm -f core conftest.err conftest.$ac_objext \
16182 conftest$ac_exeext conftest.$ac_ext
16183 CFLAGS=$ax_check_save_flags
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
16186 $as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
16187 if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
16188 CFLAGS_SSE41="-msse4.1"
16189 else
16193 else
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16195 $as_echo "no" >&6; }
16197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16198 CFLAGS="$oldcflags"
16200 oldcflags="$CFLAGS"
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
16202 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
16203 if ${ax_cv_check_cflags___mavx+:} false; then :
16204 $as_echo_n "(cached) " >&6
16205 else
16207 ax_check_save_flags=$CFLAGS
16208 CFLAGS="$CFLAGS -mavx"
16209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210 /* end confdefs.h. */
16211 #include <stdio.h>
16213 main ()
16215 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
16217 return 0;
16219 _ACEOF
16220 if ac_fn_c_try_link "$LINENO"; then :
16221 ax_cv_check_cflags___mavx=yes
16222 else
16223 ax_cv_check_cflags___mavx=no
16225 rm -f core conftest.err conftest.$ac_objext \
16226 conftest$ac_exeext conftest.$ac_ext
16227 CFLAGS=$ax_check_save_flags
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
16230 $as_echo "$ax_cv_check_cflags___mavx" >&6; }
16231 if test "x$ax_cv_check_cflags___mavx" = xyes; then :
16232 CFLAGS="$CFLAGS -mavx"
16233 else
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX instructions set" >&5
16238 $as_echo_n "checking for AVX instructions set... " >&6; }
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16242 #ifdef __native_client__
16243 # error NativeClient detected - Avoiding AVX opcodes
16244 #endif
16245 #pragma GCC target("avx")
16246 #include <immintrin.h>
16249 main ()
16251 _mm256_zeroall();
16253 return 0;
16255 _ACEOF
16256 if ac_fn_c_try_compile "$LINENO"; then :
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16258 $as_echo "yes" >&6; }
16260 $as_echo "#define HAVE_AVXINTRIN_H 1" >>confdefs.h
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
16263 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
16264 if ${ax_cv_check_cflags___mavx+:} false; then :
16265 $as_echo_n "(cached) " >&6
16266 else
16268 ax_check_save_flags=$CFLAGS
16269 CFLAGS="$CFLAGS -mavx"
16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271 /* end confdefs.h. */
16272 #include <stdio.h>
16274 main ()
16276 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
16278 return 0;
16280 _ACEOF
16281 if ac_fn_c_try_link "$LINENO"; then :
16282 ax_cv_check_cflags___mavx=yes
16283 else
16284 ax_cv_check_cflags___mavx=no
16286 rm -f core conftest.err conftest.$ac_objext \
16287 conftest$ac_exeext conftest.$ac_ext
16288 CFLAGS=$ax_check_save_flags
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
16291 $as_echo "$ax_cv_check_cflags___mavx" >&6; }
16292 if test "x$ax_cv_check_cflags___mavx" = xyes; then :
16293 CFLAGS_AVX="-mavx"
16294 else
16298 else
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16300 $as_echo "no" >&6; }
16302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16303 CFLAGS="$oldcflags"
16305 oldcflags="$CFLAGS"
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
16307 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
16308 if ${ax_cv_check_cflags___mavx2+:} false; then :
16309 $as_echo_n "(cached) " >&6
16310 else
16312 ax_check_save_flags=$CFLAGS
16313 CFLAGS="$CFLAGS -mavx2"
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16316 #include <stdio.h>
16318 main ()
16320 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
16322 return 0;
16324 _ACEOF
16325 if ac_fn_c_try_link "$LINENO"; then :
16326 ax_cv_check_cflags___mavx2=yes
16327 else
16328 ax_cv_check_cflags___mavx2=no
16330 rm -f core conftest.err conftest.$ac_objext \
16331 conftest$ac_exeext conftest.$ac_ext
16332 CFLAGS=$ax_check_save_flags
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
16335 $as_echo "$ax_cv_check_cflags___mavx2" >&6; }
16336 if test "x$ax_cv_check_cflags___mavx2" = xyes; then :
16337 CFLAGS="$CFLAGS -mavx2"
16338 else
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX2 instructions set" >&5
16343 $as_echo_n "checking for AVX2 instructions set... " >&6; }
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16347 #ifdef __native_client__
16348 # error NativeClient detected - Avoiding AVX2 opcodes
16349 #endif
16350 #pragma GCC target("avx2")
16351 #include <immintrin.h>
16354 main ()
16357 __m256 x = _mm256_set1_ps(3.14);
16358 __m256 y = _mm256_permutevar8x32_ps(x, _mm256_set1_epi32(42));
16359 return _mm256_movemask_ps(_mm256_cmp_ps(x, y, _CMP_NEQ_OQ));
16362 return 0;
16364 _ACEOF
16365 if ac_fn_c_try_compile "$LINENO"; then :
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16367 $as_echo "yes" >&6; }
16369 $as_echo "#define HAVE_AVX2INTRIN_H 1" >>confdefs.h
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
16372 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
16373 if ${ax_cv_check_cflags___mavx2+:} false; then :
16374 $as_echo_n "(cached) " >&6
16375 else
16377 ax_check_save_flags=$CFLAGS
16378 CFLAGS="$CFLAGS -mavx2"
16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16381 #include <stdio.h>
16383 main ()
16385 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
16387 return 0;
16389 _ACEOF
16390 if ac_fn_c_try_link "$LINENO"; then :
16391 ax_cv_check_cflags___mavx2=yes
16392 else
16393 ax_cv_check_cflags___mavx2=no
16395 rm -f core conftest.err conftest.$ac_objext \
16396 conftest$ac_exeext conftest.$ac_ext
16397 CFLAGS=$ax_check_save_flags
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
16400 $as_echo "$ax_cv_check_cflags___mavx2" >&6; }
16401 if test "x$ax_cv_check_cflags___mavx2" = xyes; then :
16402 CFLAGS_AVX2="-mavx2"
16403 else
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _mm256_broadcastsi128_si256 is correctly defined" >&5
16408 $as_echo_n "checking if _mm256_broadcastsi128_si256 is correctly defined... " >&6; }
16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h. */
16412 #ifdef __native_client__
16413 # error NativeClient detected - Avoiding AVX2 opcodes
16414 #endif
16415 #pragma GCC target("avx2")
16416 #include <immintrin.h>
16419 main ()
16421 __m256i y = _mm256_broadcastsi128_si256(_mm_setzero_si128());
16423 return 0;
16425 _ACEOF
16426 if ac_fn_c_try_compile "$LINENO"; then :
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16428 $as_echo "yes" >&6; }
16429 else
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16431 $as_echo "no" >&6; }
16433 $as_echo "#define _mm256_broadcastsi128_si256 _mm_broadcastsi128_si256" >>confdefs.h
16436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16438 else
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16440 $as_echo "no" >&6; }
16442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443 CFLAGS="$oldcflags"
16445 oldcflags="$CFLAGS"
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
16447 $as_echo_n "checking whether C compiler accepts -maes... " >&6; }
16448 if ${ax_cv_check_cflags___maes+:} false; then :
16449 $as_echo_n "(cached) " >&6
16450 else
16452 ax_check_save_flags=$CFLAGS
16453 CFLAGS="$CFLAGS -maes"
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16456 #include <stdio.h>
16458 main ()
16460 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
16462 return 0;
16464 _ACEOF
16465 if ac_fn_c_try_link "$LINENO"; then :
16466 ax_cv_check_cflags___maes=yes
16467 else
16468 ax_cv_check_cflags___maes=no
16470 rm -f core conftest.err conftest.$ac_objext \
16471 conftest$ac_exeext conftest.$ac_ext
16472 CFLAGS=$ax_check_save_flags
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
16475 $as_echo "$ax_cv_check_cflags___maes" >&6; }
16476 if test "x$ax_cv_check_cflags___maes" = xyes; then :
16477 CFLAGS="$CFLAGS -maes"
16478 else
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
16483 $as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
16484 if ${ax_cv_check_cflags___mpclmul+:} false; then :
16485 $as_echo_n "(cached) " >&6
16486 else
16488 ax_check_save_flags=$CFLAGS
16489 CFLAGS="$CFLAGS -mpclmul"
16490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491 /* end confdefs.h. */
16492 #include <stdio.h>
16494 main ()
16496 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
16498 return 0;
16500 _ACEOF
16501 if ac_fn_c_try_link "$LINENO"; then :
16502 ax_cv_check_cflags___mpclmul=yes
16503 else
16504 ax_cv_check_cflags___mpclmul=no
16506 rm -f core conftest.err conftest.$ac_objext \
16507 conftest$ac_exeext conftest.$ac_ext
16508 CFLAGS=$ax_check_save_flags
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
16511 $as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
16512 if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
16513 CFLAGS="$CFLAGS -mpclmul"
16514 else
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AESNI instructions set and PCLMULQDQ" >&5
16519 $as_echo_n "checking for AESNI instructions set and PCLMULQDQ... " >&6; }
16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521 /* end confdefs.h. */
16523 #ifdef __native_client__
16524 # error NativeClient detected - Avoiding AESNI opcodes
16525 #endif
16526 #pragma GCC target("aes")
16527 #pragma GCC target("pclmul")
16528 #include <wmmintrin.h>
16531 main ()
16533 __m128i x = _mm_aesimc_si128(_mm_setzero_si128());
16534 __m128i y = _mm_clmulepi64_si128(_mm_setzero_si128(), _mm_setzero_si128(), 0);
16536 return 0;
16538 _ACEOF
16539 if ac_fn_c_try_compile "$LINENO"; then :
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16541 $as_echo "yes" >&6; }
16543 $as_echo "#define HAVE_WMMINTRIN_H 1" >>confdefs.h
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
16546 $as_echo_n "checking whether C compiler accepts -maes... " >&6; }
16547 if ${ax_cv_check_cflags___maes+:} false; then :
16548 $as_echo_n "(cached) " >&6
16549 else
16551 ax_check_save_flags=$CFLAGS
16552 CFLAGS="$CFLAGS -maes"
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16555 #include <stdio.h>
16557 main ()
16559 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
16561 return 0;
16563 _ACEOF
16564 if ac_fn_c_try_link "$LINENO"; then :
16565 ax_cv_check_cflags___maes=yes
16566 else
16567 ax_cv_check_cflags___maes=no
16569 rm -f core conftest.err conftest.$ac_objext \
16570 conftest$ac_exeext conftest.$ac_ext
16571 CFLAGS=$ax_check_save_flags
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
16574 $as_echo "$ax_cv_check_cflags___maes" >&6; }
16575 if test "x$ax_cv_check_cflags___maes" = xyes; then :
16576 CFLAGS_AESNI="-maes"
16577 else
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
16582 $as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
16583 if ${ax_cv_check_cflags___mpclmul+:} false; then :
16584 $as_echo_n "(cached) " >&6
16585 else
16587 ax_check_save_flags=$CFLAGS
16588 CFLAGS="$CFLAGS -mpclmul"
16589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16590 /* end confdefs.h. */
16591 #include <stdio.h>
16593 main ()
16595 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
16597 return 0;
16599 _ACEOF
16600 if ac_fn_c_try_link "$LINENO"; then :
16601 ax_cv_check_cflags___mpclmul=yes
16602 else
16603 ax_cv_check_cflags___mpclmul=no
16605 rm -f core conftest.err conftest.$ac_objext \
16606 conftest$ac_exeext conftest.$ac_ext
16607 CFLAGS=$ax_check_save_flags
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
16610 $as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
16611 if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
16612 CFLAGS_PCLMUL="-mpclmul"
16613 else
16618 else
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16620 $as_echo "no" >&6; }
16622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16623 CFLAGS="$oldcflags"
16638 for ac_header in sys/mman.h intrin.h
16639 do :
16640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16641 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16642 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16643 cat >>confdefs.h <<_ACEOF
16644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16645 _ACEOF
16649 done
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _xgetbv() is available" >&5
16653 $as_echo_n "checking if _xgetbv() is available... " >&6; }
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h. */
16656 #include <intrin.h>
16658 main ()
16660 (void) _xgetbv(0)
16662 return 0;
16664 _ACEOF
16665 if ac_fn_c_try_compile "$LINENO"; then :
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16667 $as_echo "yes" >&6; }
16669 $as_echo "#define HAVE__XGETBV 1" >>confdefs.h
16671 else
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16673 $as_echo "no" >&6; }
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16679 $as_echo_n "checking for inline... " >&6; }
16680 if ${ac_cv_c_inline+:} false; then :
16681 $as_echo_n "(cached) " >&6
16682 else
16683 ac_cv_c_inline=no
16684 for ac_kw in inline __inline__ __inline; do
16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h. */
16687 #ifndef __cplusplus
16688 typedef int foo_t;
16689 static $ac_kw foo_t static_foo () {return 0; }
16690 $ac_kw foo_t foo () {return 0; }
16691 #endif
16693 _ACEOF
16694 if ac_fn_c_try_compile "$LINENO"; then :
16695 ac_cv_c_inline=$ac_kw
16697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16698 test "$ac_cv_c_inline" != no && break
16699 done
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16703 $as_echo "$ac_cv_c_inline" >&6; }
16705 case $ac_cv_c_inline in
16706 inline | yes) ;;
16708 case $ac_cv_c_inline in
16709 no) ac_val=;;
16710 *) ac_val=$ac_cv_c_inline;;
16711 esac
16712 cat >>confdefs.h <<_ACEOF
16713 #ifndef __cplusplus
16714 #define inline $ac_val
16715 #endif
16716 _ACEOF
16718 esac
16720 case $host_cpu in #(
16721 i?86|amd64|x86_64) :
16722 ac_cv_c_bigendian=no
16723 ;; #(
16724 *) :
16726 esac
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16728 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16729 if ${ac_cv_c_bigendian+:} false; then :
16730 $as_echo_n "(cached) " >&6
16731 else
16732 ac_cv_c_bigendian=unknown
16733 # See if we're dealing with a universal compiler.
16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735 /* end confdefs.h. */
16736 #ifndef __APPLE_CC__
16737 not a universal capable compiler
16738 #endif
16739 typedef int dummy;
16741 _ACEOF
16742 if ac_fn_c_try_compile "$LINENO"; then :
16744 # Check for potential -arch flags. It is not universal unless
16745 # there are at least two -arch flags with different values.
16746 ac_arch=
16747 ac_prev=
16748 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16749 if test -n "$ac_prev"; then
16750 case $ac_word in
16751 i?86 | x86_64 | ppc | ppc64)
16752 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16753 ac_arch=$ac_word
16754 else
16755 ac_cv_c_bigendian=universal
16756 break
16759 esac
16760 ac_prev=
16761 elif test "x$ac_word" = "x-arch"; then
16762 ac_prev=arch
16764 done
16766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16767 if test $ac_cv_c_bigendian = unknown; then
16768 # See if sys/param.h defines the BYTE_ORDER macro.
16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770 /* end confdefs.h. */
16771 #include <sys/types.h>
16772 #include <sys/param.h>
16775 main ()
16777 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16778 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16779 && LITTLE_ENDIAN)
16780 bogus endian macros
16781 #endif
16784 return 0;
16786 _ACEOF
16787 if ac_fn_c_try_compile "$LINENO"; then :
16788 # It does; now see whether it defined to BIG_ENDIAN or not.
16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h. */
16791 #include <sys/types.h>
16792 #include <sys/param.h>
16795 main ()
16797 #if BYTE_ORDER != BIG_ENDIAN
16798 not big endian
16799 #endif
16802 return 0;
16804 _ACEOF
16805 if ac_fn_c_try_compile "$LINENO"; then :
16806 ac_cv_c_bigendian=yes
16807 else
16808 ac_cv_c_bigendian=no
16810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16814 if test $ac_cv_c_bigendian = unknown; then
16815 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16818 #include <limits.h>
16821 main ()
16823 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16824 bogus endian macros
16825 #endif
16828 return 0;
16830 _ACEOF
16831 if ac_fn_c_try_compile "$LINENO"; then :
16832 # It does; now see whether it defined to _BIG_ENDIAN or not.
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16835 #include <limits.h>
16838 main ()
16840 #ifndef _BIG_ENDIAN
16841 not big endian
16842 #endif
16845 return 0;
16847 _ACEOF
16848 if ac_fn_c_try_compile "$LINENO"; then :
16849 ac_cv_c_bigendian=yes
16850 else
16851 ac_cv_c_bigendian=no
16853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16857 if test $ac_cv_c_bigendian = unknown; then
16858 # Compile a test program.
16859 if test "$cross_compiling" = yes; then :
16860 # Try to guess by grepping values from an object file.
16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862 /* end confdefs.h. */
16863 short int ascii_mm[] =
16864 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16865 short int ascii_ii[] =
16866 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16867 int use_ascii (int i) {
16868 return ascii_mm[i] + ascii_ii[i];
16870 short int ebcdic_ii[] =
16871 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16872 short int ebcdic_mm[] =
16873 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16874 int use_ebcdic (int i) {
16875 return ebcdic_mm[i] + ebcdic_ii[i];
16877 extern int foo;
16880 main ()
16882 return use_ascii (foo) == use_ebcdic (foo);
16884 return 0;
16886 _ACEOF
16887 if ac_fn_c_try_compile "$LINENO"; then :
16888 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16889 ac_cv_c_bigendian=yes
16891 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16892 if test "$ac_cv_c_bigendian" = unknown; then
16893 ac_cv_c_bigendian=no
16894 else
16895 # finding both strings is unlikely to happen, but who knows?
16896 ac_cv_c_bigendian=unknown
16900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901 else
16902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16903 /* end confdefs.h. */
16904 $ac_includes_default
16906 main ()
16909 /* Are we little or big endian? From Harbison&Steele. */
16910 union
16912 long int l;
16913 char c[sizeof (long int)];
16914 } u;
16915 u.l = 1;
16916 return u.c[sizeof (long int) - 1] == 1;
16919 return 0;
16921 _ACEOF
16922 if ac_fn_c_try_run "$LINENO"; then :
16923 ac_cv_c_bigendian=no
16924 else
16925 ac_cv_c_bigendian=yes
16927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16928 conftest.$ac_objext conftest.beam conftest.$ac_ext
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16934 $as_echo "$ac_cv_c_bigendian" >&6; }
16935 case $ac_cv_c_bigendian in #(
16936 yes)
16938 $as_echo "#define NATIVE_BIG_ENDIAN 1" >>confdefs.h
16939 ;; #(
16942 $as_echo "#define NATIVE_LITTLE_ENDIAN 1" >>confdefs.h
16943 ;; #(
16944 universal)
16945 as_fn_error $? "universal endianness is not supported - compile separately and use lipo(1)" "$LINENO" 5
16947 ;; #(
16949 as_fn_error $? "unknown endianness" "$LINENO" 5 ;;
16950 esac
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __STDC_LIMIT_MACROS is required" >&5
16954 $as_echo_n "checking whether __STDC_LIMIT_MACROS is required... " >&6; }
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16958 #include <limits.h>
16959 #include <stdint.h>
16962 main ()
16965 (void) SIZE_MAX;
16966 (void) UINT64_MAX;
16969 return 0;
16971 _ACEOF
16972 if ac_fn_c_try_compile "$LINENO"; then :
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16974 $as_echo "no" >&6; }
16975 else
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16977 $as_echo "yes" >&6; }
16978 CPPFLAGS="$CPPFLAGS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS"
16981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983 HAVE_AMD64_ASM_V=0
16984 if test "$enable_asm" != "no"; then :
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use x86_64 asm code" >&5
16987 $as_echo_n "checking whether we can use x86_64 asm code... " >&6; }
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16993 main ()
16996 #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
16997 # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
16998 # error Windows x86_64 calling conventions are not supported yet
16999 # endif
17000 /* neat */
17001 #else
17002 # error !x86_64
17003 #endif
17004 unsigned char i = 0, o = 0, t;
17005 __asm__ __volatile__ ("pxor %%xmm12, %%xmm6 \n"
17006 "movb (%[i]), %[t] \n"
17007 "addb %[t], (%[o]) \n"
17008 : [t] "=&r"(t)
17009 : [o] "D"(&o), [i] "S"(&i)
17010 : "memory", "flags", "cc");
17013 return 0;
17015 _ACEOF
17016 if ac_fn_c_try_compile "$LINENO"; then :
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17018 $as_echo "yes" >&6; }
17020 $as_echo "#define HAVE_AMD64_ASM 1" >>confdefs.h
17022 HAVE_AMD64_ASM_V=1
17023 else
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17025 $as_echo "no" >&6; }
17027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 if test $HAVE_AMD64_ASM_V = 1; then
17031 HAVE_AMD64_ASM_TRUE=
17032 HAVE_AMD64_ASM_FALSE='#'
17033 else
17034 HAVE_AMD64_ASM_TRUE='#'
17035 HAVE_AMD64_ASM_FALSE=
17040 HAVE_AVX_ASM_V=0
17041 if test "$enable_asm" != "no"; then :
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can assemble AVX opcodes" >&5
17044 $as_echo_n "checking whether we can assemble AVX opcodes... " >&6; }
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17050 main ()
17053 #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
17054 # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
17055 # error Windows x86_64 calling conventions are not supported yet
17056 # endif
17057 /* neat */
17058 #else
17059 # error !x86_64
17060 #endif
17061 __asm__ __volatile__ ("vpunpcklqdq %xmm0,%xmm13,%xmm0");
17064 return 0;
17066 _ACEOF
17067 if ac_fn_c_try_compile "$LINENO"; then :
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17069 $as_echo "yes" >&6; }
17071 $as_echo "#define HAVE_AVX_ASM 1" >>confdefs.h
17073 HAVE_AVX_ASM_V=1
17074 else
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17076 $as_echo "no" >&6; }
17078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17081 if test $HAVE_AVX_ASM_V = 1; then
17082 HAVE_AVX_ASM_TRUE=
17083 HAVE_AVX_ASM_FALSE='#'
17084 else
17085 HAVE_AVX_ASM_TRUE='#'
17086 HAVE_AVX_ASM_FALSE=
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit arithmetic" >&5
17092 $as_echo_n "checking for 128-bit arithmetic... " >&6; }
17093 HAVE_TI_MODE_V=0
17094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17095 /* end confdefs.h. */
17097 #if !defined(__GNUC__) && !defined(__SIZEOF_INT128__)
17098 # error mode(TI) is a gcc extension, and __int128 is not available
17099 #endif
17100 #if defined(__clang__) && !defined(__x86_64__)
17101 # error clang does not properly handle the 128-bit type on 32-bit systems
17102 #endif
17103 #ifndef NATIVE_LITTLE_ENDIAN
17104 # error libsodium currently expects a little endian CPU for the 128-bit type
17105 #endif
17106 #ifdef __EMSCRIPTEN__
17107 # error emscripten currently supports only shift operations on integers \
17108 # larger than 64 bits
17109 #endif
17110 #include <stddef.h>
17111 #include <stdint.h>
17112 #if defined(__SIZEOF_INT128__)
17113 typedef unsigned __int128 uint128_t;
17114 #else
17115 typedef unsigned uint128_t __attribute__((mode(TI)));
17116 #endif
17117 void fcontract(uint128_t *t) {
17118 *t += 0x8000000000000 - 1;
17122 main ()
17125 (void) fcontract;
17128 return 0;
17130 _ACEOF
17131 if ac_fn_c_try_compile "$LINENO"; then :
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17133 $as_echo "yes" >&6; }
17135 $as_echo "#define HAVE_TI_MODE 1" >>confdefs.h
17137 HAVE_TI_MODE_V=1
17138 else
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17140 $as_echo "no" >&6; }
17142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17143 if test $HAVE_TI_MODE_V = 1; then
17144 HAVE_TI_MODE_TRUE=
17145 HAVE_TI_MODE_FALSE='#'
17146 else
17147 HAVE_TI_MODE_TRUE='#'
17148 HAVE_TI_MODE_FALSE=
17153 HAVE_CPUID_V=0
17154 if test "$enable_asm" != "no" -o "$host_alias" = "x86_64-nacl"; then :
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpuid instruction" >&5
17157 $as_echo_n "checking for cpuid instruction... " >&6; }
17158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17159 /* end confdefs.h. */
17162 main ()
17165 unsigned int cpu_info[4];
17166 __asm__ __volatile__ ("xchgl %%ebx, %k1; cpuid; xchgl %%ebx, %k1" :
17167 "=a" (cpu_info[0]), "=&r" (cpu_info[1]),
17168 "=c" (cpu_info[2]), "=d" (cpu_info[3]) :
17169 "0" (0U), "2" (0U));
17172 return 0;
17174 _ACEOF
17175 if ac_fn_c_try_compile "$LINENO"; then :
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17177 $as_echo "yes" >&6; }
17179 $as_echo "#define HAVE_CPUID 1" >>confdefs.h
17181 HAVE_CPUID_V=1
17182 else
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17184 $as_echo "no" >&6; }
17186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17191 asm_hide_symbol="unsupported"
17192 if test "$enable_asm" != "no" -o "$host_os" = "nacl"; then :
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .private_extern asm directive is supported" >&5
17195 $as_echo_n "checking if the .private_extern asm directive is supported... " >&6; }
17196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17197 /* end confdefs.h. */
17200 main ()
17203 __asm__ __volatile__ (".private_extern dummy_symbol \n"
17204 ".private_extern _dummy_symbol \n"
17205 ".globl dummy_symbol \n"
17206 ".globl _dummy_symbol \n"
17207 "dummy_symbol: \n"
17208 "_dummy_symbol: \n"
17209 " nop \n"
17213 return 0;
17215 _ACEOF
17216 if ac_fn_c_try_link "$LINENO"; then :
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17218 $as_echo "yes" >&6; }
17219 asm_hide_symbol=".private_extern"
17220 else
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17222 $as_echo "no" >&6; }
17224 rm -f core conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .hidden asm directive is supported" >&5
17228 $as_echo_n "checking if the .hidden asm directive is supported... " >&6; }
17229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17230 /* end confdefs.h. */
17233 main ()
17236 __asm__ __volatile__ (".hidden dummy_symbol \n"
17237 ".hidden _dummy_symbol \n"
17238 ".globl dummy_symbol \n"
17239 ".globl _dummy_symbol \n"
17240 "dummy_symbol: \n"
17241 "_dummy_symbol: \n"
17242 " nop \n"
17246 return 0;
17248 _ACEOF
17249 if ac_fn_c_try_link "$LINENO"; then :
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17251 $as_echo "yes" >&6; }
17252 if test "$asm_hide_symbol" = "unsupported"; then :
17253 asm_hide_symbol=".hidden"
17254 else
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: unable to reliably tag symbols as private" >&5
17256 $as_echo "$as_me: unable to reliably tag symbols as private" >&6;}
17257 asm_hide_symbol="unsupported"
17260 else
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262 $as_echo "no" >&6; }
17264 rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17267 if test "$asm_hide_symbol" != "unsupported"; then :
17270 cat >>confdefs.h <<_ACEOF
17271 #define ASM_HIDE_SYMBOL $asm_hide_symbol
17272 _ACEOF
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if weak symbols are supported" >&5
17280 $as_echo_n "checking if weak symbols are supported... " >&6; }
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17284 #if !defined(__ELF__) && !defined(__APPLE_CC__)
17285 # error Support for weak symbols may not be available
17286 #endif
17287 __attribute__((weak)) void __dummy(void *x) { }
17288 void f(void *x) { __dummy(x); }
17291 main ()
17296 return 0;
17298 _ACEOF
17299 if ac_fn_c_try_link "$LINENO"; then :
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17301 $as_echo "yes" >&6; }
17303 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
17305 else
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17307 $as_echo "no" >&6; }
17309 rm -f core conftest.err conftest.$ac_objext \
17310 conftest$ac_exeext conftest.$ac_ext
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if data alignment is required" >&5
17313 $as_echo_n "checking if data alignment is required... " >&6; }
17314 aligned_access_required=yes
17315 case $host_cpu in #(
17316 i?86|amd64|x86_64|powerpc*|s390*) :
17317 aligned_access_required=no ;; #(
17318 arm*) :
17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320 /* end confdefs.h. */
17322 #ifndef __ARM_FEATURE_UNALIGNED
17323 # error data alignment is required
17324 #endif
17327 main ()
17331 return 0;
17333 _ACEOF
17334 if ac_fn_c_try_compile "$LINENO"; then :
17335 aligned_access_required=no
17337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17338 ;; #(
17339 *) :
17341 esac
17342 if test "x$aligned_access_required" = "xyes"; then :
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17344 $as_echo "yes" >&6; }
17345 else
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17347 $as_echo "no" >&6; }
17349 $as_echo "#define CPU_UNALIGNED_ACCESS 1" >>confdefs.h
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if atomic operations are supported" >&5
17354 $as_echo_n "checking if atomic operations are supported... " >&6; }
17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356 /* end confdefs.h. */
17359 main ()
17362 static volatile int _sodium_lock;
17363 __sync_lock_test_and_set(&_sodium_lock, 1);
17364 __sync_lock_release(&_sodium_lock);
17368 return 0;
17370 _ACEOF
17371 if ac_fn_c_try_link "$LINENO"; then :
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17373 $as_echo "yes" >&6; }
17375 $as_echo "#define HAVE_ATOMIC_OPS 1" >>confdefs.h
17377 else
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17379 $as_echo "no" >&6; }
17381 rm -f core conftest.err conftest.$ac_objext \
17382 conftest$ac_exeext conftest.$ac_ext
17385 if test "x$EMSCRIPTEN" = "x"; then :
17387 for ac_func in arc4random arc4random_buf
17388 do :
17389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17390 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17391 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17392 cat >>confdefs.h <<_ACEOF
17393 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17394 _ACEOF
17397 done
17399 for ac_func in mmap mlock madvise mprotect explicit_bzero nanosleep
17400 do :
17401 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17402 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17403 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17404 cat >>confdefs.h <<_ACEOF
17405 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17406 _ACEOF
17409 done
17413 for ac_func in posix_memalign getpid
17414 do :
17415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17416 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17417 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17418 cat >>confdefs.h <<_ACEOF
17419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17420 _ACEOF
17423 done
17428 TEST_LDFLAGS=''
17429 if test "x$EMSCRIPTEN" != "x"; then :
17431 EXEEXT=.js
17432 TEST_LDFLAGS='--memory-init-file 0 --pre-js pre.js.inc -s RESERVED_FUNCTION_POINTERS=8'
17436 if test "x$EMSCRIPTEN" != "x"; then
17437 EMSCRIPTEN_TRUE=
17438 EMSCRIPTEN_FALSE='#'
17439 else
17440 EMSCRIPTEN_TRUE='#'
17441 EMSCRIPTEN_FALSE=
17445 if test "x$NATIVECLIENT" != "x"; then
17446 NATIVECLIENT_TRUE=
17447 NATIVECLIENT_FALSE='#'
17448 else
17449 NATIVECLIENT_TRUE='#'
17450 NATIVECLIENT_FALSE=
17455 $as_echo "#define CONFIGURED 1" >>confdefs.h
17460 enable_win32_dll=yes
17462 case $host in
17463 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
17464 if test -n "$ac_tool_prefix"; then
17465 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
17466 set dummy ${ac_tool_prefix}as; ac_word=$2
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17468 $as_echo_n "checking for $ac_word... " >&6; }
17469 if ${ac_cv_prog_AS+:} false; then :
17470 $as_echo_n "(cached) " >&6
17471 else
17472 if test -n "$AS"; then
17473 ac_cv_prog_AS="$AS" # Let the user override the test.
17474 else
17475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17476 for as_dir in $PATH
17478 IFS=$as_save_IFS
17479 test -z "$as_dir" && as_dir=.
17480 for ac_exec_ext in '' $ac_executable_extensions; do
17481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17482 ac_cv_prog_AS="${ac_tool_prefix}as"
17483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17484 break 2
17486 done
17487 done
17488 IFS=$as_save_IFS
17492 AS=$ac_cv_prog_AS
17493 if test -n "$AS"; then
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
17495 $as_echo "$AS" >&6; }
17496 else
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17498 $as_echo "no" >&6; }
17503 if test -z "$ac_cv_prog_AS"; then
17504 ac_ct_AS=$AS
17505 # Extract the first word of "as", so it can be a program name with args.
17506 set dummy as; ac_word=$2
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17508 $as_echo_n "checking for $ac_word... " >&6; }
17509 if ${ac_cv_prog_ac_ct_AS+:} false; then :
17510 $as_echo_n "(cached) " >&6
17511 else
17512 if test -n "$ac_ct_AS"; then
17513 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
17514 else
17515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17516 for as_dir in $PATH
17518 IFS=$as_save_IFS
17519 test -z "$as_dir" && as_dir=.
17520 for ac_exec_ext in '' $ac_executable_extensions; do
17521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17522 ac_cv_prog_ac_ct_AS="as"
17523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17524 break 2
17526 done
17527 done
17528 IFS=$as_save_IFS
17532 ac_ct_AS=$ac_cv_prog_ac_ct_AS
17533 if test -n "$ac_ct_AS"; then
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
17535 $as_echo "$ac_ct_AS" >&6; }
17536 else
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17538 $as_echo "no" >&6; }
17541 if test "x$ac_ct_AS" = x; then
17542 AS="false"
17543 else
17544 case $cross_compiling:$ac_tool_warned in
17545 yes:)
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17548 ac_tool_warned=yes ;;
17549 esac
17550 AS=$ac_ct_AS
17552 else
17553 AS="$ac_cv_prog_AS"
17556 if test -n "$ac_tool_prefix"; then
17557 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17558 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17560 $as_echo_n "checking for $ac_word... " >&6; }
17561 if ${ac_cv_prog_DLLTOOL+:} false; then :
17562 $as_echo_n "(cached) " >&6
17563 else
17564 if test -n "$DLLTOOL"; then
17565 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17566 else
17567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17568 for as_dir in $PATH
17570 IFS=$as_save_IFS
17571 test -z "$as_dir" && as_dir=.
17572 for ac_exec_ext in '' $ac_executable_extensions; do
17573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17574 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17576 break 2
17578 done
17579 done
17580 IFS=$as_save_IFS
17584 DLLTOOL=$ac_cv_prog_DLLTOOL
17585 if test -n "$DLLTOOL"; then
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
17587 $as_echo "$DLLTOOL" >&6; }
17588 else
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17590 $as_echo "no" >&6; }
17595 if test -z "$ac_cv_prog_DLLTOOL"; then
17596 ac_ct_DLLTOOL=$DLLTOOL
17597 # Extract the first word of "dlltool", so it can be a program name with args.
17598 set dummy dlltool; ac_word=$2
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17600 $as_echo_n "checking for $ac_word... " >&6; }
17601 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
17602 $as_echo_n "(cached) " >&6
17603 else
17604 if test -n "$ac_ct_DLLTOOL"; then
17605 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17606 else
17607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17608 for as_dir in $PATH
17610 IFS=$as_save_IFS
17611 test -z "$as_dir" && as_dir=.
17612 for ac_exec_ext in '' $ac_executable_extensions; do
17613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17614 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17616 break 2
17618 done
17619 done
17620 IFS=$as_save_IFS
17624 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17625 if test -n "$ac_ct_DLLTOOL"; then
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
17627 $as_echo "$ac_ct_DLLTOOL" >&6; }
17628 else
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17630 $as_echo "no" >&6; }
17633 if test "x$ac_ct_DLLTOOL" = x; then
17634 DLLTOOL="false"
17635 else
17636 case $cross_compiling:$ac_tool_warned in
17637 yes:)
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17640 ac_tool_warned=yes ;;
17641 esac
17642 DLLTOOL=$ac_ct_DLLTOOL
17644 else
17645 DLLTOOL="$ac_cv_prog_DLLTOOL"
17648 if test -n "$ac_tool_prefix"; then
17649 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
17650 set dummy ${ac_tool_prefix}objdump; ac_word=$2
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17652 $as_echo_n "checking for $ac_word... " >&6; }
17653 if ${ac_cv_prog_OBJDUMP+:} false; then :
17654 $as_echo_n "(cached) " >&6
17655 else
17656 if test -n "$OBJDUMP"; then
17657 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
17658 else
17659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17660 for as_dir in $PATH
17662 IFS=$as_save_IFS
17663 test -z "$as_dir" && as_dir=.
17664 for ac_exec_ext in '' $ac_executable_extensions; do
17665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17666 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
17667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17668 break 2
17670 done
17671 done
17672 IFS=$as_save_IFS
17676 OBJDUMP=$ac_cv_prog_OBJDUMP
17677 if test -n "$OBJDUMP"; then
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
17679 $as_echo "$OBJDUMP" >&6; }
17680 else
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17682 $as_echo "no" >&6; }
17687 if test -z "$ac_cv_prog_OBJDUMP"; then
17688 ac_ct_OBJDUMP=$OBJDUMP
17689 # Extract the first word of "objdump", so it can be a program name with args.
17690 set dummy objdump; ac_word=$2
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17692 $as_echo_n "checking for $ac_word... " >&6; }
17693 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
17694 $as_echo_n "(cached) " >&6
17695 else
17696 if test -n "$ac_ct_OBJDUMP"; then
17697 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
17698 else
17699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17700 for as_dir in $PATH
17702 IFS=$as_save_IFS
17703 test -z "$as_dir" && as_dir=.
17704 for ac_exec_ext in '' $ac_executable_extensions; do
17705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17706 ac_cv_prog_ac_ct_OBJDUMP="objdump"
17707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17708 break 2
17710 done
17711 done
17712 IFS=$as_save_IFS
17716 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
17717 if test -n "$ac_ct_OBJDUMP"; then
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
17719 $as_echo "$ac_ct_OBJDUMP" >&6; }
17720 else
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17722 $as_echo "no" >&6; }
17725 if test "x$ac_ct_OBJDUMP" = x; then
17726 OBJDUMP="false"
17727 else
17728 case $cross_compiling:$ac_tool_warned in
17729 yes:)
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17732 ac_tool_warned=yes ;;
17733 esac
17734 OBJDUMP=$ac_ct_OBJDUMP
17736 else
17737 OBJDUMP="$ac_cv_prog_OBJDUMP"
17741 esac
17743 test -z "$AS" && AS=as
17749 test -z "$DLLTOOL" && DLLTOOL=dlltool
17752 test -z "$OBJDUMP" && OBJDUMP=objdump
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
17759 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
17760 if ${gl_cv_ld_output_def+:} false; then :
17761 $as_echo_n "(cached) " >&6
17762 else
17763 if test "$enable_shared" = no; then
17764 gl_cv_ld_output_def="not needed, shared libraries are disabled"
17765 else
17766 gl_ldflags_save=$LDFLAGS
17767 LDFLAGS="-Wl,--output-def,conftest.def"
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17772 main ()
17776 return 0;
17778 _ACEOF
17779 if ac_fn_c_try_link "$LINENO"; then :
17780 gl_cv_ld_output_def=yes
17781 else
17782 gl_cv_ld_output_def=no
17784 rm -f core conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
17786 rm -f conftest.def
17787 LDFLAGS="$gl_ldflags_save"
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
17791 $as_echo "$gl_cv_ld_output_def" >&6; }
17792 if test "x$gl_cv_ld_output_def" = "xyes"; then
17793 HAVE_LD_OUTPUT_DEF_TRUE=
17794 HAVE_LD_OUTPUT_DEF_FALSE='#'
17795 else
17796 HAVE_LD_OUTPUT_DEF_TRUE='#'
17797 HAVE_LD_OUTPUT_DEF_FALSE=
17805 ac_config_files="$ac_config_files Makefile contrib/Makefile dist-build/Makefile libsodium.pc libsodium-uninstalled.pc msvc-scripts/Makefile src/Makefile src/libsodium/Makefile src/libsodium/include/Makefile src/libsodium/include/sodium/version.h test/default/Makefile test/Makefile"
17807 cat >confcache <<\_ACEOF
17808 # This file is a shell script that caches the results of configure
17809 # tests run on this system so they can be shared between configure
17810 # scripts and configure runs, see configure's option --config-cache.
17811 # It is not useful on other systems. If it contains results you don't
17812 # want to keep, you may remove or edit it.
17814 # config.status only pays attention to the cache file if you give it
17815 # the --recheck option to rerun configure.
17817 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17818 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17819 # following values.
17821 _ACEOF
17823 # The following way of writing the cache mishandles newlines in values,
17824 # but we know of no workaround that is simple, portable, and efficient.
17825 # So, we kill variables containing newlines.
17826 # Ultrix sh set writes to stderr and can't be redirected directly,
17827 # and sets the high bit in the cache file unless we assign to the vars.
17829 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17830 eval ac_val=\$$ac_var
17831 case $ac_val in #(
17832 *${as_nl}*)
17833 case $ac_var in #(
17834 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17835 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17836 esac
17837 case $ac_var in #(
17838 _ | IFS | as_nl) ;; #(
17839 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17840 *) { eval $ac_var=; unset $ac_var;} ;;
17841 esac ;;
17842 esac
17843 done
17845 (set) 2>&1 |
17846 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17847 *${as_nl}ac_space=\ *)
17848 # `set' does not quote correctly, so add quotes: double-quote
17849 # substitution turns \\\\ into \\, and sed turns \\ into \.
17850 sed -n \
17851 "s/'/'\\\\''/g;
17852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17853 ;; #(
17855 # `set' quotes correctly as required by POSIX, so do not add quotes.
17856 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17858 esac |
17859 sort
17861 sed '
17862 /^ac_cv_env_/b end
17863 t clear
17864 :clear
17865 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17866 t end
17867 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17868 :end' >>confcache
17869 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17870 if test -w "$cache_file"; then
17871 if test "x$cache_file" != "x/dev/null"; then
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17873 $as_echo "$as_me: updating cache $cache_file" >&6;}
17874 if test ! -f "$cache_file" || test -h "$cache_file"; then
17875 cat confcache >"$cache_file"
17876 else
17877 case $cache_file in #(
17878 */* | ?:*)
17879 mv -f confcache "$cache_file"$$ &&
17880 mv -f "$cache_file"$$ "$cache_file" ;; #(
17882 mv -f confcache "$cache_file" ;;
17883 esac
17886 else
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17888 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17891 rm -f confcache
17893 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17894 # Let make expand exec_prefix.
17895 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17897 # Transform confdefs.h into DEFS.
17898 # Protect against shell expansion while executing Makefile rules.
17899 # Protect against Makefile macro expansion.
17901 # If the first sed substitution is executed (which looks for macros that
17902 # take arguments), then branch to the quote section. Otherwise,
17903 # look for a macro that doesn't take arguments.
17904 ac_script='
17905 :mline
17906 /\\$/{
17908 s,\\\n,,
17909 b mline
17911 t clear
17912 :clear
17913 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17914 t quote
17915 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17916 t quote
17917 b any
17918 :quote
17919 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17920 s/\[/\\&/g
17921 s/\]/\\&/g
17922 s/\$/$$/g
17924 :any
17927 s/^\n//
17928 s/\n/ /g
17932 DEFS=`sed -n "$ac_script" confdefs.h`
17935 ac_libobjs=
17936 ac_ltlibobjs=
17938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17939 # 1. Remove the extension, and $U if already installed.
17940 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17942 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17943 # will be set to the directory where LIBOBJS objects are built.
17944 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17945 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17946 done
17947 LIBOBJS=$ac_libobjs
17949 LTLIBOBJS=$ac_ltlibobjs
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17953 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17954 if test -n "$am_sleep_pid"; then
17955 # Hide warnings about reused PIDs.
17956 wait $am_sleep_pid 2>/dev/null
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17959 $as_echo "done" >&6; }
17960 if test -n "$EXEEXT"; then
17961 am__EXEEXT_TRUE=
17962 am__EXEEXT_FALSE='#'
17963 else
17964 am__EXEEXT_TRUE='#'
17965 am__EXEEXT_FALSE=
17968 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17969 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17972 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17973 as_fn_error $? "conditional \"AMDEP\" was never defined.
17974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17976 if test -z "${MINIMAL_TRUE}" && test -z "${MINIMAL_FALSE}"; then
17977 as_fn_error $? "conditional \"MINIMAL\" was never defined.
17978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17980 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17981 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17984 if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then
17985 as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined.
17986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17988 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17989 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17992 if test -z "${HAVE_AMD64_ASM_TRUE}" && test -z "${HAVE_AMD64_ASM_FALSE}"; then
17993 as_fn_error $? "conditional \"HAVE_AMD64_ASM\" was never defined.
17994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17996 if test -z "${HAVE_AVX_ASM_TRUE}" && test -z "${HAVE_AVX_ASM_FALSE}"; then
17997 as_fn_error $? "conditional \"HAVE_AVX_ASM\" was never defined.
17998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18000 if test -z "${HAVE_TI_MODE_TRUE}" && test -z "${HAVE_TI_MODE_FALSE}"; then
18001 as_fn_error $? "conditional \"HAVE_TI_MODE\" was never defined.
18002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18004 if test -z "${EMSCRIPTEN_TRUE}" && test -z "${EMSCRIPTEN_FALSE}"; then
18005 as_fn_error $? "conditional \"EMSCRIPTEN\" was never defined.
18006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18008 if test -z "${NATIVECLIENT_TRUE}" && test -z "${NATIVECLIENT_FALSE}"; then
18009 as_fn_error $? "conditional \"NATIVECLIENT\" was never defined.
18010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18012 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
18013 as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
18014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18017 : "${CONFIG_STATUS=./config.status}"
18018 ac_write_fail=0
18019 ac_clean_files_save=$ac_clean_files
18020 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18022 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18023 as_write_fail=0
18024 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18025 #! $SHELL
18026 # Generated by $as_me.
18027 # Run this file to recreate the current configuration.
18028 # Compiler output produced by configure, useful for debugging
18029 # configure, is in config.log if it exists.
18031 debug=false
18032 ac_cs_recheck=false
18033 ac_cs_silent=false
18035 SHELL=\${CONFIG_SHELL-$SHELL}
18036 export SHELL
18037 _ASEOF
18038 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18039 ## -------------------- ##
18040 ## M4sh Initialization. ##
18041 ## -------------------- ##
18043 # Be more Bourne compatible
18044 DUALCASE=1; export DUALCASE # for MKS sh
18045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18046 emulate sh
18047 NULLCMD=:
18048 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18049 # is contrary to our usage. Disable this feature.
18050 alias -g '${1+"$@"}'='"$@"'
18051 setopt NO_GLOB_SUBST
18052 else
18053 case `(set -o) 2>/dev/null` in #(
18054 *posix*) :
18055 set -o posix ;; #(
18056 *) :
18058 esac
18062 as_nl='
18064 export as_nl
18065 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18066 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18067 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18069 # Prefer a ksh shell builtin over an external printf program on Solaris,
18070 # but without wasting forks for bash or zsh.
18071 if test -z "$BASH_VERSION$ZSH_VERSION" \
18072 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18073 as_echo='print -r --'
18074 as_echo_n='print -rn --'
18075 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18076 as_echo='printf %s\n'
18077 as_echo_n='printf %s'
18078 else
18079 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18080 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18081 as_echo_n='/usr/ucb/echo -n'
18082 else
18083 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18084 as_echo_n_body='eval
18085 arg=$1;
18086 case $arg in #(
18087 *"$as_nl"*)
18088 expr "X$arg" : "X\\(.*\\)$as_nl";
18089 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18090 esac;
18091 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18093 export as_echo_n_body
18094 as_echo_n='sh -c $as_echo_n_body as_echo'
18096 export as_echo_body
18097 as_echo='sh -c $as_echo_body as_echo'
18100 # The user is always right.
18101 if test "${PATH_SEPARATOR+set}" != set; then
18102 PATH_SEPARATOR=:
18103 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18104 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18105 PATH_SEPARATOR=';'
18110 # IFS
18111 # We need space, tab and new line, in precisely that order. Quoting is
18112 # there to prevent editors from complaining about space-tab.
18113 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18114 # splitting by setting IFS to empty value.)
18115 IFS=" "" $as_nl"
18117 # Find who we are. Look in the path if we contain no directory separator.
18118 as_myself=
18119 case $0 in #((
18120 *[\\/]* ) as_myself=$0 ;;
18121 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18122 for as_dir in $PATH
18124 IFS=$as_save_IFS
18125 test -z "$as_dir" && as_dir=.
18126 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18127 done
18128 IFS=$as_save_IFS
18131 esac
18132 # We did not find ourselves, most probably we were run as `sh COMMAND'
18133 # in which case we are not to be found in the path.
18134 if test "x$as_myself" = x; then
18135 as_myself=$0
18137 if test ! -f "$as_myself"; then
18138 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18139 exit 1
18142 # Unset variables that we do not need and which cause bugs (e.g. in
18143 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18144 # suppresses any "Segmentation fault" message there. '((' could
18145 # trigger a bug in pdksh 5.2.14.
18146 for as_var in BASH_ENV ENV MAIL MAILPATH
18147 do eval test x\${$as_var+set} = xset \
18148 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18149 done
18150 PS1='$ '
18151 PS2='> '
18152 PS4='+ '
18154 # NLS nuisances.
18155 LC_ALL=C
18156 export LC_ALL
18157 LANGUAGE=C
18158 export LANGUAGE
18160 # CDPATH.
18161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18164 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18165 # ----------------------------------------
18166 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18167 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18168 # script with STATUS, using 1 if that was 0.
18169 as_fn_error ()
18171 as_status=$1; test $as_status -eq 0 && as_status=1
18172 if test "$4"; then
18173 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18174 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18176 $as_echo "$as_me: error: $2" >&2
18177 as_fn_exit $as_status
18178 } # as_fn_error
18181 # as_fn_set_status STATUS
18182 # -----------------------
18183 # Set $? to STATUS, without forking.
18184 as_fn_set_status ()
18186 return $1
18187 } # as_fn_set_status
18189 # as_fn_exit STATUS
18190 # -----------------
18191 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18192 as_fn_exit ()
18194 set +e
18195 as_fn_set_status $1
18196 exit $1
18197 } # as_fn_exit
18199 # as_fn_unset VAR
18200 # ---------------
18201 # Portably unset VAR.
18202 as_fn_unset ()
18204 { eval $1=; unset $1;}
18206 as_unset=as_fn_unset
18207 # as_fn_append VAR VALUE
18208 # ----------------------
18209 # Append the text in VALUE to the end of the definition contained in VAR. Take
18210 # advantage of any shell optimizations that allow amortized linear growth over
18211 # repeated appends, instead of the typical quadratic growth present in naive
18212 # implementations.
18213 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18214 eval 'as_fn_append ()
18216 eval $1+=\$2
18218 else
18219 as_fn_append ()
18221 eval $1=\$$1\$2
18223 fi # as_fn_append
18225 # as_fn_arith ARG...
18226 # ------------------
18227 # Perform arithmetic evaluation on the ARGs, and store the result in the
18228 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18229 # must be portable across $(()) and expr.
18230 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18231 eval 'as_fn_arith ()
18233 as_val=$(( $* ))
18235 else
18236 as_fn_arith ()
18238 as_val=`expr "$@" || test $? -eq 1`
18240 fi # as_fn_arith
18243 if expr a : '\(a\)' >/dev/null 2>&1 &&
18244 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18245 as_expr=expr
18246 else
18247 as_expr=false
18250 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18251 as_basename=basename
18252 else
18253 as_basename=false
18256 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18257 as_dirname=dirname
18258 else
18259 as_dirname=false
18262 as_me=`$as_basename -- "$0" ||
18263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18264 X"$0" : 'X\(//\)$' \| \
18265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18266 $as_echo X/"$0" |
18267 sed '/^.*\/\([^/][^/]*\)\/*$/{
18268 s//\1/
18271 /^X\/\(\/\/\)$/{
18272 s//\1/
18275 /^X\/\(\/\).*/{
18276 s//\1/
18279 s/.*/./; q'`
18281 # Avoid depending upon Character Ranges.
18282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18285 as_cr_digits='0123456789'
18286 as_cr_alnum=$as_cr_Letters$as_cr_digits
18288 ECHO_C= ECHO_N= ECHO_T=
18289 case `echo -n x` in #(((((
18290 -n*)
18291 case `echo 'xy\c'` in
18292 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18293 xy) ECHO_C='\c';;
18294 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18295 ECHO_T=' ';;
18296 esac;;
18298 ECHO_N='-n';;
18299 esac
18301 rm -f conf$$ conf$$.exe conf$$.file
18302 if test -d conf$$.dir; then
18303 rm -f conf$$.dir/conf$$.file
18304 else
18305 rm -f conf$$.dir
18306 mkdir conf$$.dir 2>/dev/null
18308 if (echo >conf$$.file) 2>/dev/null; then
18309 if ln -s conf$$.file conf$$ 2>/dev/null; then
18310 as_ln_s='ln -s'
18311 # ... but there are two gotchas:
18312 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18313 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18314 # In both cases, we have to default to `cp -pR'.
18315 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18316 as_ln_s='cp -pR'
18317 elif ln conf$$.file conf$$ 2>/dev/null; then
18318 as_ln_s=ln
18319 else
18320 as_ln_s='cp -pR'
18322 else
18323 as_ln_s='cp -pR'
18325 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18326 rmdir conf$$.dir 2>/dev/null
18329 # as_fn_mkdir_p
18330 # -------------
18331 # Create "$as_dir" as a directory, including parents if necessary.
18332 as_fn_mkdir_p ()
18335 case $as_dir in #(
18336 -*) as_dir=./$as_dir;;
18337 esac
18338 test -d "$as_dir" || eval $as_mkdir_p || {
18339 as_dirs=
18340 while :; do
18341 case $as_dir in #(
18342 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18343 *) as_qdir=$as_dir;;
18344 esac
18345 as_dirs="'$as_qdir' $as_dirs"
18346 as_dir=`$as_dirname -- "$as_dir" ||
18347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18348 X"$as_dir" : 'X\(//\)[^/]' \| \
18349 X"$as_dir" : 'X\(//\)$' \| \
18350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18351 $as_echo X"$as_dir" |
18352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18353 s//\1/
18356 /^X\(\/\/\)[^/].*/{
18357 s//\1/
18360 /^X\(\/\/\)$/{
18361 s//\1/
18364 /^X\(\/\).*/{
18365 s//\1/
18368 s/.*/./; q'`
18369 test -d "$as_dir" && break
18370 done
18371 test -z "$as_dirs" || eval "mkdir $as_dirs"
18372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18375 } # as_fn_mkdir_p
18376 if mkdir -p . 2>/dev/null; then
18377 as_mkdir_p='mkdir -p "$as_dir"'
18378 else
18379 test -d ./-p && rmdir ./-p
18380 as_mkdir_p=false
18384 # as_fn_executable_p FILE
18385 # -----------------------
18386 # Test if FILE is an executable regular file.
18387 as_fn_executable_p ()
18389 test -f "$1" && test -x "$1"
18390 } # as_fn_executable_p
18391 as_test_x='test -x'
18392 as_executable_p=as_fn_executable_p
18394 # Sed expression to map a string onto a valid CPP name.
18395 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18397 # Sed expression to map a string onto a valid variable name.
18398 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18401 exec 6>&1
18402 ## ----------------------------------- ##
18403 ## Main body of $CONFIG_STATUS script. ##
18404 ## ----------------------------------- ##
18405 _ASEOF
18406 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18409 # Save the log message, to keep $0 and so on meaningful, and to
18410 # report actual input values of CONFIG_FILES etc. instead of their
18411 # values after options handling.
18412 ac_log="
18413 This file was extended by libsodium $as_me 1.0.12, which was
18414 generated by GNU Autoconf 2.69. Invocation command line was
18416 CONFIG_FILES = $CONFIG_FILES
18417 CONFIG_HEADERS = $CONFIG_HEADERS
18418 CONFIG_LINKS = $CONFIG_LINKS
18419 CONFIG_COMMANDS = $CONFIG_COMMANDS
18420 $ $0 $@
18422 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18425 _ACEOF
18427 case $ac_config_files in *"
18428 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18429 esac
18433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18434 # Files that config.status was made for.
18435 config_files="$ac_config_files"
18436 config_commands="$ac_config_commands"
18438 _ACEOF
18440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18441 ac_cs_usage="\
18442 \`$as_me' instantiates files and other configuration actions
18443 from templates according to the current configuration. Unless the files
18444 and actions are specified as TAGs, all are instantiated by default.
18446 Usage: $0 [OPTION]... [TAG]...
18448 -h, --help print this help, then exit
18449 -V, --version print version number and configuration settings, then exit
18450 --config print configuration, then exit
18451 -q, --quiet, --silent
18452 do not print progress messages
18453 -d, --debug don't remove temporary files
18454 --recheck update $as_me by reconfiguring in the same conditions
18455 --file=FILE[:TEMPLATE]
18456 instantiate the configuration file FILE
18458 Configuration files:
18459 $config_files
18461 Configuration commands:
18462 $config_commands
18464 Report bugs to <https://github.com/jedisct1/libsodium/issues>.
18465 libsodium home page: <https://github.com/jedisct1/libsodium>."
18467 _ACEOF
18468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18469 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18470 ac_cs_version="\\
18471 libsodium config.status 1.0.12
18472 configured by $0, generated by GNU Autoconf 2.69,
18473 with options \\"\$ac_cs_config\\"
18475 Copyright (C) 2012 Free Software Foundation, Inc.
18476 This config.status script is free software; the Free Software Foundation
18477 gives unlimited permission to copy, distribute and modify it."
18479 ac_pwd='$ac_pwd'
18480 srcdir='$srcdir'
18481 INSTALL='$INSTALL'
18482 MKDIR_P='$MKDIR_P'
18483 AWK='$AWK'
18484 test -n "\$AWK" || AWK=awk
18485 _ACEOF
18487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18488 # The default lists apply if the user does not specify any file.
18489 ac_need_defaults=:
18490 while test $# != 0
18492 case $1 in
18493 --*=?*)
18494 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18495 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18496 ac_shift=:
18498 --*=)
18499 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18500 ac_optarg=
18501 ac_shift=:
18504 ac_option=$1
18505 ac_optarg=$2
18506 ac_shift=shift
18508 esac
18510 case $ac_option in
18511 # Handling of the options.
18512 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18513 ac_cs_recheck=: ;;
18514 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18515 $as_echo "$ac_cs_version"; exit ;;
18516 --config | --confi | --conf | --con | --co | --c )
18517 $as_echo "$ac_cs_config"; exit ;;
18518 --debug | --debu | --deb | --de | --d | -d )
18519 debug=: ;;
18520 --file | --fil | --fi | --f )
18521 $ac_shift
18522 case $ac_optarg in
18523 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18524 '') as_fn_error $? "missing file argument" ;;
18525 esac
18526 as_fn_append CONFIG_FILES " '$ac_optarg'"
18527 ac_need_defaults=false;;
18528 --he | --h | --help | --hel | -h )
18529 $as_echo "$ac_cs_usage"; exit ;;
18530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18531 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18532 ac_cs_silent=: ;;
18534 # This is an error.
18535 -*) as_fn_error $? "unrecognized option: \`$1'
18536 Try \`$0 --help' for more information." ;;
18538 *) as_fn_append ac_config_targets " $1"
18539 ac_need_defaults=false ;;
18541 esac
18542 shift
18543 done
18545 ac_configure_extra_args=
18547 if $ac_cs_silent; then
18548 exec 6>/dev/null
18549 ac_configure_extra_args="$ac_configure_extra_args --silent"
18552 _ACEOF
18553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18554 if \$ac_cs_recheck; then
18555 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18556 shift
18557 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18558 CONFIG_SHELL='$SHELL'
18559 export CONFIG_SHELL
18560 exec "\$@"
18563 _ACEOF
18564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18565 exec 5>>config.log
18567 echo
18568 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18569 ## Running $as_me. ##
18570 _ASBOX
18571 $as_echo "$ac_log"
18572 } >&5
18574 _ACEOF
18575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18577 # INIT-COMMANDS
18579 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18582 # The HP-UX ksh and POSIX shell print the target directory to stdout
18583 # if CDPATH is set.
18584 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18586 sed_quote_subst='$sed_quote_subst'
18587 double_quote_subst='$double_quote_subst'
18588 delay_variable_subst='$delay_variable_subst'
18589 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18590 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18591 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18592 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18593 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18594 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18595 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18596 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18597 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18598 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18599 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18600 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18601 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18602 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18603 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18604 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18605 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18606 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18607 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18608 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18609 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18610 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18611 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18612 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18613 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18614 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18615 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18616 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18617 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18618 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18619 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18620 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18621 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18622 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18623 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18624 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18625 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18626 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18627 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18628 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18629 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18630 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18631 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18632 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18633 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18634 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18635 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18636 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18637 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18638 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18639 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18640 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18641 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18642 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18643 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18644 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18645 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18646 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18647 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"`'
18648 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18649 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18650 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18651 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18652 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18653 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18654 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18655 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18656 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18657 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18658 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18659 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18660 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18661 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18662 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18663 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18664 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18665 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18666 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18667 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18668 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18669 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18670 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18671 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18672 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18673 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18674 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18675 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18676 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18677 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18678 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18679 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18680 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18681 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18682 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18683 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18684 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18685 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18686 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18687 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18688 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18689 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18690 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18691 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18692 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18693 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18694 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18695 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18696 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18697 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18698 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18699 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18700 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18701 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18702 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18703 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18704 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18705 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18706 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18707 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18708 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18709 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18710 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18711 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18712 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18713 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18714 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18715 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18716 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18717 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18718 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18719 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18720 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18721 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18722 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18723 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18724 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18726 LTCC='$LTCC'
18727 LTCFLAGS='$LTCFLAGS'
18728 compiler='$compiler_DEFAULT'
18730 # A function that is used when there is no print builtin or printf.
18731 func_fallback_echo ()
18733 eval 'cat <<_LTECHO_EOF
18735 _LTECHO_EOF'
18738 # Quote evaled strings.
18739 for var in SHELL \
18740 ECHO \
18741 PATH_SEPARATOR \
18742 SED \
18743 GREP \
18744 EGREP \
18745 FGREP \
18746 LD \
18747 NM \
18748 LN_S \
18749 lt_SP2NL \
18750 lt_NL2SP \
18751 reload_flag \
18752 OBJDUMP \
18753 deplibs_check_method \
18754 file_magic_cmd \
18755 file_magic_glob \
18756 want_nocaseglob \
18757 DLLTOOL \
18758 sharedlib_from_linklib_cmd \
18759 AR \
18760 AR_FLAGS \
18761 archiver_list_spec \
18762 STRIP \
18763 RANLIB \
18764 CC \
18765 CFLAGS \
18766 compiler \
18767 lt_cv_sys_global_symbol_pipe \
18768 lt_cv_sys_global_symbol_to_cdecl \
18769 lt_cv_sys_global_symbol_to_import \
18770 lt_cv_sys_global_symbol_to_c_name_address \
18771 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18772 lt_cv_nm_interface \
18773 nm_file_list_spec \
18774 lt_cv_truncate_bin \
18775 lt_prog_compiler_no_builtin_flag \
18776 lt_prog_compiler_pic \
18777 lt_prog_compiler_wl \
18778 lt_prog_compiler_static \
18779 lt_cv_prog_compiler_c_o \
18780 need_locks \
18781 MANIFEST_TOOL \
18782 DSYMUTIL \
18783 NMEDIT \
18784 LIPO \
18785 OTOOL \
18786 OTOOL64 \
18787 shrext_cmds \
18788 export_dynamic_flag_spec \
18789 whole_archive_flag_spec \
18790 compiler_needs_object \
18791 with_gnu_ld \
18792 allow_undefined_flag \
18793 no_undefined_flag \
18794 hardcode_libdir_flag_spec \
18795 hardcode_libdir_separator \
18796 exclude_expsyms \
18797 include_expsyms \
18798 file_list_spec \
18799 variables_saved_for_relink \
18800 libname_spec \
18801 library_names_spec \
18802 soname_spec \
18803 install_override_mode \
18804 finish_eval \
18805 old_striplib \
18806 striplib \
18807 AS; do
18808 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18809 *[\\\\\\\`\\"\\\$]*)
18810 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18813 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18815 esac
18816 done
18818 # Double-quote double-evaled strings.
18819 for var in reload_cmds \
18820 old_postinstall_cmds \
18821 old_postuninstall_cmds \
18822 old_archive_cmds \
18823 extract_expsyms_cmds \
18824 old_archive_from_new_cmds \
18825 old_archive_from_expsyms_cmds \
18826 archive_cmds \
18827 archive_expsym_cmds \
18828 module_cmds \
18829 module_expsym_cmds \
18830 export_symbols_cmds \
18831 prelink_cmds \
18832 postlink_cmds \
18833 postinstall_cmds \
18834 postuninstall_cmds \
18835 finish_cmds \
18836 sys_lib_search_path_spec \
18837 configure_time_dlsearch_path \
18838 configure_time_lt_sys_library_path; do
18839 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18840 *[\\\\\\\`\\"\\\$]*)
18841 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18844 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18846 esac
18847 done
18849 ac_aux_dir='$ac_aux_dir'
18851 # See if we are running on zsh, and set the options that allow our
18852 # commands through without removal of \ escapes INIT.
18853 if test -n "\${ZSH_VERSION+set}"; then
18854 setopt NO_GLOB_SUBST
18858 PACKAGE='$PACKAGE'
18859 VERSION='$VERSION'
18860 RM='$RM'
18861 ofile='$ofile'
18866 _ACEOF
18868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18870 # Handling of arguments.
18871 for ac_config_target in $ac_config_targets
18873 case $ac_config_target in
18874 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18875 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18876 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18877 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
18878 "dist-build/Makefile") CONFIG_FILES="$CONFIG_FILES dist-build/Makefile" ;;
18879 "libsodium.pc") CONFIG_FILES="$CONFIG_FILES libsodium.pc" ;;
18880 "libsodium-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libsodium-uninstalled.pc" ;;
18881 "msvc-scripts/Makefile") CONFIG_FILES="$CONFIG_FILES msvc-scripts/Makefile" ;;
18882 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18883 "src/libsodium/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/Makefile" ;;
18884 "src/libsodium/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/Makefile" ;;
18885 "src/libsodium/include/sodium/version.h") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/sodium/version.h" ;;
18886 "test/default/Makefile") CONFIG_FILES="$CONFIG_FILES test/default/Makefile" ;;
18887 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18889 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18890 esac
18891 done
18894 # If the user did not use the arguments to specify the items to instantiate,
18895 # then the envvar interface is used. Set only those that are not.
18896 # We use the long form for the default assignment because of an extremely
18897 # bizarre bug on SunOS 4.1.3.
18898 if $ac_need_defaults; then
18899 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18900 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18903 # Have a temporary directory for convenience. Make it in the build tree
18904 # simply because there is no reason against having it here, and in addition,
18905 # creating and moving files from /tmp can sometimes cause problems.
18906 # Hook for its removal unless debugging.
18907 # Note that there is a small window in which the directory will not be cleaned:
18908 # after its creation but before its name has been assigned to `$tmp'.
18909 $debug ||
18911 tmp= ac_tmp=
18912 trap 'exit_status=$?
18913 : "${ac_tmp:=$tmp}"
18914 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18916 trap 'as_fn_exit 1' 1 2 13 15
18918 # Create a (secure) tmp directory for tmp files.
18921 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18922 test -d "$tmp"
18923 } ||
18925 tmp=./conf$$-$RANDOM
18926 (umask 077 && mkdir "$tmp")
18927 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18928 ac_tmp=$tmp
18930 # Set up the scripts for CONFIG_FILES section.
18931 # No need to generate them if there are no CONFIG_FILES.
18932 # This happens for instance with `./config.status config.h'.
18933 if test -n "$CONFIG_FILES"; then
18936 ac_cr=`echo X | tr X '\015'`
18937 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18938 # But we know of no other shell where ac_cr would be empty at this
18939 # point, so we can use a bashism as a fallback.
18940 if test "x$ac_cr" = x; then
18941 eval ac_cr=\$\'\\r\'
18943 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18944 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18945 ac_cs_awk_cr='\\r'
18946 else
18947 ac_cs_awk_cr=$ac_cr
18950 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18951 _ACEOF
18955 echo "cat >conf$$subs.awk <<_ACEOF" &&
18956 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18957 echo "_ACEOF"
18958 } >conf$$subs.sh ||
18959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18960 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18961 ac_delim='%!_!# '
18962 for ac_last_try in false false false false false :; do
18963 . ./conf$$subs.sh ||
18964 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18966 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18967 if test $ac_delim_n = $ac_delim_num; then
18968 break
18969 elif $ac_last_try; then
18970 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18971 else
18972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18974 done
18975 rm -f conf$$subs.sh
18977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18978 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18979 _ACEOF
18980 sed -n '
18982 s/^/S["/; s/!.*/"]=/
18985 s/^[^!]*!//
18986 :repl
18987 t repl
18988 s/'"$ac_delim"'$//
18989 t delim
18992 s/\(.\{148\}\)..*/\1/
18993 t more1
18994 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18997 b repl
18998 :more1
18999 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19002 s/.\{148\}//
19003 t nl
19004 :delim
19006 s/\(.\{148\}\)..*/\1/
19007 t more2
19008 s/["\\]/\\&/g; s/^/"/; s/$/"/
19011 :more2
19012 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19015 s/.\{148\}//
19016 t delim
19017 ' <conf$$subs.awk | sed '
19018 /^[^""]/{
19020 s/\n//
19022 ' >>$CONFIG_STATUS || ac_write_fail=1
19023 rm -f conf$$subs.awk
19024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19025 _ACAWK
19026 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19027 for (key in S) S_is_set[key] = 1
19028 FS = "\a"
19032 line = $ 0
19033 nfields = split(line, field, "@")
19034 substed = 0
19035 len = length(field[1])
19036 for (i = 2; i < nfields; i++) {
19037 key = field[i]
19038 keylen = length(key)
19039 if (S_is_set[key]) {
19040 value = S[key]
19041 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19042 len += length(value) + length(field[++i])
19043 substed = 1
19044 } else
19045 len += 1 + keylen
19048 print line
19051 _ACAWK
19052 _ACEOF
19053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19054 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19055 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19056 else
19058 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19059 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19060 _ACEOF
19062 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19063 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19064 # trailing colons and then remove the whole line if VPATH becomes empty
19065 # (actually we leave an empty line to preserve line numbers).
19066 if test "x$srcdir" = x.; then
19067 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19069 s///
19070 s/^/:/
19071 s/[ ]*$/:/
19072 s/:\$(srcdir):/:/g
19073 s/:\${srcdir}:/:/g
19074 s/:@srcdir@:/:/g
19075 s/^:*//
19076 s/:*$//
19078 s/\(=[ ]*\).*/\1/
19080 s/\n//
19081 s/^[^=]*=[ ]*$//
19085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19086 fi # test -n "$CONFIG_FILES"
19089 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
19090 shift
19091 for ac_tag
19093 case $ac_tag in
19094 :[FHLC]) ac_mode=$ac_tag; continue;;
19095 esac
19096 case $ac_mode$ac_tag in
19097 :[FHL]*:*);;
19098 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19099 :[FH]-) ac_tag=-:-;;
19100 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19101 esac
19102 ac_save_IFS=$IFS
19103 IFS=:
19104 set x $ac_tag
19105 IFS=$ac_save_IFS
19106 shift
19107 ac_file=$1
19108 shift
19110 case $ac_mode in
19111 :L) ac_source=$1;;
19112 :[FH])
19113 ac_file_inputs=
19114 for ac_f
19116 case $ac_f in
19117 -) ac_f="$ac_tmp/stdin";;
19118 *) # Look for the file first in the build tree, then in the source tree
19119 # (if the path is not absolute). The absolute path cannot be DOS-style,
19120 # because $ac_f cannot contain `:'.
19121 test -f "$ac_f" ||
19122 case $ac_f in
19123 [\\/$]*) false;;
19124 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19125 esac ||
19126 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19127 esac
19128 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19129 as_fn_append ac_file_inputs " '$ac_f'"
19130 done
19132 # Let's still pretend it is `configure' which instantiates (i.e., don't
19133 # use $as_me), people would be surprised to read:
19134 # /* config.h. Generated by config.status. */
19135 configure_input='Generated from '`
19136 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19137 `' by configure.'
19138 if test x"$ac_file" != x-; then
19139 configure_input="$ac_file. $configure_input"
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19141 $as_echo "$as_me: creating $ac_file" >&6;}
19143 # Neutralize special characters interpreted by sed in replacement strings.
19144 case $configure_input in #(
19145 *\&* | *\|* | *\\* )
19146 ac_sed_conf_input=`$as_echo "$configure_input" |
19147 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19148 *) ac_sed_conf_input=$configure_input;;
19149 esac
19151 case $ac_tag in
19152 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19154 esac
19156 esac
19158 ac_dir=`$as_dirname -- "$ac_file" ||
19159 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19160 X"$ac_file" : 'X\(//\)[^/]' \| \
19161 X"$ac_file" : 'X\(//\)$' \| \
19162 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19163 $as_echo X"$ac_file" |
19164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19165 s//\1/
19168 /^X\(\/\/\)[^/].*/{
19169 s//\1/
19172 /^X\(\/\/\)$/{
19173 s//\1/
19176 /^X\(\/\).*/{
19177 s//\1/
19180 s/.*/./; q'`
19181 as_dir="$ac_dir"; as_fn_mkdir_p
19182 ac_builddir=.
19184 case "$ac_dir" in
19185 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19187 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19188 # A ".." for each directory in $ac_dir_suffix.
19189 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19190 case $ac_top_builddir_sub in
19191 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19192 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19193 esac ;;
19194 esac
19195 ac_abs_top_builddir=$ac_pwd
19196 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19197 # for backward compatibility:
19198 ac_top_builddir=$ac_top_build_prefix
19200 case $srcdir in
19201 .) # We are building in place.
19202 ac_srcdir=.
19203 ac_top_srcdir=$ac_top_builddir_sub
19204 ac_abs_top_srcdir=$ac_pwd ;;
19205 [\\/]* | ?:[\\/]* ) # Absolute name.
19206 ac_srcdir=$srcdir$ac_dir_suffix;
19207 ac_top_srcdir=$srcdir
19208 ac_abs_top_srcdir=$srcdir ;;
19209 *) # Relative name.
19210 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19211 ac_top_srcdir=$ac_top_build_prefix$srcdir
19212 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19213 esac
19214 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19217 case $ac_mode in
19220 # CONFIG_FILE
19223 case $INSTALL in
19224 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19225 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19226 esac
19227 ac_MKDIR_P=$MKDIR_P
19228 case $MKDIR_P in
19229 [\\/$]* | ?:[\\/]* ) ;;
19230 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19231 esac
19232 _ACEOF
19234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19235 # If the template does not know about datarootdir, expand it.
19236 # FIXME: This hack should be removed a few years after 2.60.
19237 ac_datarootdir_hack=; ac_datarootdir_seen=
19238 ac_sed_dataroot='
19239 /datarootdir/ {
19243 /@datadir@/p
19244 /@docdir@/p
19245 /@infodir@/p
19246 /@localedir@/p
19247 /@mandir@/p'
19248 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19249 *datarootdir*) ac_datarootdir_seen=yes;;
19250 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19252 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19253 _ACEOF
19254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19255 ac_datarootdir_hack='
19256 s&@datadir@&$datadir&g
19257 s&@docdir@&$docdir&g
19258 s&@infodir@&$infodir&g
19259 s&@localedir@&$localedir&g
19260 s&@mandir@&$mandir&g
19261 s&\\\${datarootdir}&$datarootdir&g' ;;
19262 esac
19263 _ACEOF
19265 # Neutralize VPATH when `$srcdir' = `.'.
19266 # Shell code in configure.ac might set extrasub.
19267 # FIXME: do we really want to maintain this feature?
19268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19269 ac_sed_extra="$ac_vpsub
19270 $extrasub
19271 _ACEOF
19272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19275 s|@configure_input@|$ac_sed_conf_input|;t t
19276 s&@top_builddir@&$ac_top_builddir_sub&;t t
19277 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19278 s&@srcdir@&$ac_srcdir&;t t
19279 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19280 s&@top_srcdir@&$ac_top_srcdir&;t t
19281 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19282 s&@builddir@&$ac_builddir&;t t
19283 s&@abs_builddir@&$ac_abs_builddir&;t t
19284 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19285 s&@INSTALL@&$ac_INSTALL&;t t
19286 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19287 $ac_datarootdir_hack
19289 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19290 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19292 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19293 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19294 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19295 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19297 which seems to be undefined. Please make sure it is defined" >&5
19298 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19299 which seems to be undefined. Please make sure it is defined" >&2;}
19301 rm -f "$ac_tmp/stdin"
19302 case $ac_file in
19303 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19304 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19305 esac \
19306 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19310 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19311 $as_echo "$as_me: executing $ac_file commands" >&6;}
19313 esac
19316 case $ac_file$ac_mode in
19317 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19318 # Older Autoconf quotes --file arguments for eval, but not when files
19319 # are listed without --file. Let's play safe and only enable the eval
19320 # if we detect the quoting.
19321 case $CONFIG_FILES in
19322 *\'*) eval set x "$CONFIG_FILES" ;;
19323 *) set x $CONFIG_FILES ;;
19324 esac
19325 shift
19326 for mf
19328 # Strip MF so we end up with the name of the file.
19329 mf=`echo "$mf" | sed -e 's/:.*$//'`
19330 # Check whether this is an Automake generated Makefile or not.
19331 # We used to match only the files named 'Makefile.in', but
19332 # some people rename them; so instead we look at the file content.
19333 # Grep'ing the first line is not enough: some people post-process
19334 # each Makefile.in and add a new line on top of each file to say so.
19335 # Grep'ing the whole file is not good either: AIX grep has a line
19336 # limit of 2048, but all sed's we know have understand at least 4000.
19337 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19338 dirpart=`$as_dirname -- "$mf" ||
19339 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19340 X"$mf" : 'X\(//\)[^/]' \| \
19341 X"$mf" : 'X\(//\)$' \| \
19342 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19343 $as_echo X"$mf" |
19344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19345 s//\1/
19348 /^X\(\/\/\)[^/].*/{
19349 s//\1/
19352 /^X\(\/\/\)$/{
19353 s//\1/
19356 /^X\(\/\).*/{
19357 s//\1/
19360 s/.*/./; q'`
19361 else
19362 continue
19364 # Extract the definition of DEPDIR, am__include, and am__quote
19365 # from the Makefile without running 'make'.
19366 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19367 test -z "$DEPDIR" && continue
19368 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19369 test -z "$am__include" && continue
19370 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19371 # Find all dependency output files, they are included files with
19372 # $(DEPDIR) in their names. We invoke sed twice because it is the
19373 # simplest approach to changing $(DEPDIR) to its actual value in the
19374 # expansion.
19375 for file in `sed -n "
19376 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19377 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19378 # Make sure the directory exists.
19379 test -f "$dirpart/$file" && continue
19380 fdir=`$as_dirname -- "$file" ||
19381 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19382 X"$file" : 'X\(//\)[^/]' \| \
19383 X"$file" : 'X\(//\)$' \| \
19384 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19385 $as_echo X"$file" |
19386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19387 s//\1/
19390 /^X\(\/\/\)[^/].*/{
19391 s//\1/
19394 /^X\(\/\/\)$/{
19395 s//\1/
19398 /^X\(\/\).*/{
19399 s//\1/
19402 s/.*/./; q'`
19403 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19404 # echo "creating $dirpart/$file"
19405 echo '# dummy' > "$dirpart/$file"
19406 done
19407 done
19410 "libtool":C)
19412 # See if we are running on zsh, and set the options that allow our
19413 # commands through without removal of \ escapes.
19414 if test -n "${ZSH_VERSION+set}"; then
19415 setopt NO_GLOB_SUBST
19418 cfgfile=${ofile}T
19419 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19420 $RM "$cfgfile"
19422 cat <<_LT_EOF >> "$cfgfile"
19423 #! $SHELL
19424 # Generated automatically by $as_me ($PACKAGE) $VERSION
19425 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19426 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19428 # Provide generalized library-building support services.
19429 # Written by Gordon Matzigkeit, 1996
19431 # Copyright (C) 2014 Free Software Foundation, Inc.
19432 # This is free software; see the source for copying conditions. There is NO
19433 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19435 # GNU Libtool is free software; you can redistribute it and/or modify
19436 # it under the terms of the GNU General Public License as published by
19437 # the Free Software Foundation; either version 2 of of the License, or
19438 # (at your option) any later version.
19440 # As a special exception to the GNU General Public License, if you
19441 # distribute this file as part of a program or library that is built
19442 # using GNU Libtool, you may include this file under the same
19443 # distribution terms that you use for the rest of that program.
19445 # GNU Libtool is distributed in the hope that it will be useful, but
19446 # WITHOUT ANY WARRANTY; without even the implied warranty of
19447 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19448 # GNU General Public License for more details.
19450 # You should have received a copy of the GNU General Public License
19451 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19454 # The names of the tagged configurations supported by this script.
19455 available_tags=''
19457 # Configured defaults for sys_lib_dlsearch_path munging.
19458 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19460 # ### BEGIN LIBTOOL CONFIG
19462 # Which release of libtool.m4 was used?
19463 macro_version=$macro_version
19464 macro_revision=$macro_revision
19466 # Whether or not to build shared libraries.
19467 build_libtool_libs=$enable_shared
19469 # Whether or not to build static libraries.
19470 build_old_libs=$enable_static
19472 # What type of objects to build.
19473 pic_mode=$pic_mode
19475 # Whether or not to optimize for fast installation.
19476 fast_install=$enable_fast_install
19478 # Shared archive member basename,for filename based shared library versioning on AIX.
19479 shared_archive_member_spec=$shared_archive_member_spec
19481 # Shell to use when invoking shell scripts.
19482 SHELL=$lt_SHELL
19484 # An echo program that protects backslashes.
19485 ECHO=$lt_ECHO
19487 # The PATH separator for the build system.
19488 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19490 # The host system.
19491 host_alias=$host_alias
19492 host=$host
19493 host_os=$host_os
19495 # The build system.
19496 build_alias=$build_alias
19497 build=$build
19498 build_os=$build_os
19500 # A sed program that does not truncate output.
19501 SED=$lt_SED
19503 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19504 Xsed="\$SED -e 1s/^X//"
19506 # A grep program that handles long lines.
19507 GREP=$lt_GREP
19509 # An ERE matcher.
19510 EGREP=$lt_EGREP
19512 # A literal string matcher.
19513 FGREP=$lt_FGREP
19515 # A BSD- or MS-compatible name lister.
19516 NM=$lt_NM
19518 # Whether we need soft or hard links.
19519 LN_S=$lt_LN_S
19521 # What is the maximum length of a command?
19522 max_cmd_len=$max_cmd_len
19524 # Object file suffix (normally "o").
19525 objext=$ac_objext
19527 # Executable file suffix (normally "").
19528 exeext=$exeext
19530 # whether the shell understands "unset".
19531 lt_unset=$lt_unset
19533 # turn spaces into newlines.
19534 SP2NL=$lt_lt_SP2NL
19536 # turn newlines into spaces.
19537 NL2SP=$lt_lt_NL2SP
19539 # convert \$build file names to \$host format.
19540 to_host_file_cmd=$lt_cv_to_host_file_cmd
19542 # convert \$build files to toolchain format.
19543 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19545 # An object symbol dumper.
19546 OBJDUMP=$lt_OBJDUMP
19548 # Method to check whether dependent libraries are shared objects.
19549 deplibs_check_method=$lt_deplibs_check_method
19551 # Command to use when deplibs_check_method = "file_magic".
19552 file_magic_cmd=$lt_file_magic_cmd
19554 # How to find potential files when deplibs_check_method = "file_magic".
19555 file_magic_glob=$lt_file_magic_glob
19557 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19558 want_nocaseglob=$lt_want_nocaseglob
19560 # DLL creation program.
19561 DLLTOOL=$lt_DLLTOOL
19563 # Command to associate shared and link libraries.
19564 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19566 # The archiver.
19567 AR=$lt_AR
19569 # Flags to create an archive.
19570 AR_FLAGS=$lt_AR_FLAGS
19572 # How to feed a file listing to the archiver.
19573 archiver_list_spec=$lt_archiver_list_spec
19575 # A symbol stripping program.
19576 STRIP=$lt_STRIP
19578 # Commands used to install an old-style archive.
19579 RANLIB=$lt_RANLIB
19580 old_postinstall_cmds=$lt_old_postinstall_cmds
19581 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19583 # Whether to use a lock for old archive extraction.
19584 lock_old_archive_extraction=$lock_old_archive_extraction
19586 # A C compiler.
19587 LTCC=$lt_CC
19589 # LTCC compiler flags.
19590 LTCFLAGS=$lt_CFLAGS
19592 # Take the output of nm and produce a listing of raw symbols and C names.
19593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19595 # Transform the output of nm in a proper C declaration.
19596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19598 # Transform the output of nm into a list of symbols to manually relocate.
19599 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19601 # Transform the output of nm in a C name address pair.
19602 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19604 # Transform the output of nm in a C name address pair when lib prefix is needed.
19605 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19607 # The name lister interface.
19608 nm_interface=$lt_lt_cv_nm_interface
19610 # Specify filename containing input files for \$NM.
19611 nm_file_list_spec=$lt_nm_file_list_spec
19613 # The root where to search for dependent libraries,and where our libraries should be installed.
19614 lt_sysroot=$lt_sysroot
19616 # Command to truncate a binary pipe.
19617 lt_truncate_bin=$lt_lt_cv_truncate_bin
19619 # The name of the directory that contains temporary libtool files.
19620 objdir=$objdir
19622 # Used to examine libraries when file_magic_cmd begins with "file".
19623 MAGIC_CMD=$MAGIC_CMD
19625 # Must we lock files when doing compilation?
19626 need_locks=$lt_need_locks
19628 # Manifest tool.
19629 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19631 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19632 DSYMUTIL=$lt_DSYMUTIL
19634 # Tool to change global to local symbols on Mac OS X.
19635 NMEDIT=$lt_NMEDIT
19637 # Tool to manipulate fat objects and archives on Mac OS X.
19638 LIPO=$lt_LIPO
19640 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19641 OTOOL=$lt_OTOOL
19643 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19644 OTOOL64=$lt_OTOOL64
19646 # Old archive suffix (normally "a").
19647 libext=$libext
19649 # Shared library suffix (normally ".so").
19650 shrext_cmds=$lt_shrext_cmds
19652 # The commands to extract the exported symbol list from a shared archive.
19653 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19655 # Variables whose values should be saved in libtool wrapper scripts and
19656 # restored at link time.
19657 variables_saved_for_relink=$lt_variables_saved_for_relink
19659 # Do we need the "lib" prefix for modules?
19660 need_lib_prefix=$need_lib_prefix
19662 # Do we need a version for libraries?
19663 need_version=$need_version
19665 # Library versioning type.
19666 version_type=$version_type
19668 # Shared library runtime path variable.
19669 runpath_var=$runpath_var
19671 # Shared library path variable.
19672 shlibpath_var=$shlibpath_var
19674 # Is shlibpath searched before the hard-coded library search path?
19675 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19677 # Format of library name prefix.
19678 libname_spec=$lt_libname_spec
19680 # List of archive names. First name is the real one, the rest are links.
19681 # The last name is the one that the linker finds with -lNAME
19682 library_names_spec=$lt_library_names_spec
19684 # The coded name of the library, if different from the real name.
19685 soname_spec=$lt_soname_spec
19687 # Permission mode override for installation of shared libraries.
19688 install_override_mode=$lt_install_override_mode
19690 # Command to use after installation of a shared archive.
19691 postinstall_cmds=$lt_postinstall_cmds
19693 # Command to use after uninstallation of a shared archive.
19694 postuninstall_cmds=$lt_postuninstall_cmds
19696 # Commands used to finish a libtool library installation in a directory.
19697 finish_cmds=$lt_finish_cmds
19699 # As "finish_cmds", except a single script fragment to be evaled but
19700 # not shown.
19701 finish_eval=$lt_finish_eval
19703 # Whether we should hardcode library paths into libraries.
19704 hardcode_into_libs=$hardcode_into_libs
19706 # Compile-time system search path for libraries.
19707 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19709 # Detected run-time system search path for libraries.
19710 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19712 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19713 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19715 # Whether dlopen is supported.
19716 dlopen_support=$enable_dlopen
19718 # Whether dlopen of programs is supported.
19719 dlopen_self=$enable_dlopen_self
19721 # Whether dlopen of statically linked programs is supported.
19722 dlopen_self_static=$enable_dlopen_self_static
19724 # Commands to strip libraries.
19725 old_striplib=$lt_old_striplib
19726 striplib=$lt_striplib
19728 # Assembler program.
19729 AS=$lt_AS
19732 # The linker used to build libraries.
19733 LD=$lt_LD
19735 # How to create reloadable object files.
19736 reload_flag=$lt_reload_flag
19737 reload_cmds=$lt_reload_cmds
19739 # Commands used to build an old-style archive.
19740 old_archive_cmds=$lt_old_archive_cmds
19742 # A language specific compiler.
19743 CC=$lt_compiler
19745 # Is the compiler the GNU compiler?
19746 with_gcc=$GCC
19748 # Compiler flag to turn off builtin functions.
19749 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19751 # Additional compiler flags for building library objects.
19752 pic_flag=$lt_lt_prog_compiler_pic
19754 # How to pass a linker flag through the compiler.
19755 wl=$lt_lt_prog_compiler_wl
19757 # Compiler flag to prevent dynamic linking.
19758 link_static_flag=$lt_lt_prog_compiler_static
19760 # Does compiler simultaneously support -c and -o options?
19761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19763 # Whether or not to add -lc for building shared libraries.
19764 build_libtool_need_lc=$archive_cmds_need_lc
19766 # Whether or not to disallow shared libs when runtime libs are static.
19767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19769 # Compiler flag to allow reflexive dlopens.
19770 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19772 # Compiler flag to generate shared objects directly from archives.
19773 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19775 # Whether the compiler copes with passing no objects directly.
19776 compiler_needs_object=$lt_compiler_needs_object
19778 # Create an old-style archive from a shared archive.
19779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19781 # Create a temporary old-style archive to link instead of a shared archive.
19782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19784 # Commands used to build a shared archive.
19785 archive_cmds=$lt_archive_cmds
19786 archive_expsym_cmds=$lt_archive_expsym_cmds
19788 # Commands used to build a loadable module if different from building
19789 # a shared archive.
19790 module_cmds=$lt_module_cmds
19791 module_expsym_cmds=$lt_module_expsym_cmds
19793 # Whether we are building with GNU ld or not.
19794 with_gnu_ld=$lt_with_gnu_ld
19796 # Flag that allows shared libraries with undefined symbols to be built.
19797 allow_undefined_flag=$lt_allow_undefined_flag
19799 # Flag that enforces no undefined symbols.
19800 no_undefined_flag=$lt_no_undefined_flag
19802 # Flag to hardcode \$libdir into a binary during linking.
19803 # This must work even if \$libdir does not exist
19804 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19806 # Whether we need a single "-rpath" flag with a separated argument.
19807 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19809 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19810 # DIR into the resulting binary.
19811 hardcode_direct=$hardcode_direct
19813 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19814 # DIR into the resulting binary and the resulting library dependency is
19815 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19816 # library is relocated.
19817 hardcode_direct_absolute=$hardcode_direct_absolute
19819 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19820 # into the resulting binary.
19821 hardcode_minus_L=$hardcode_minus_L
19823 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19824 # into the resulting binary.
19825 hardcode_shlibpath_var=$hardcode_shlibpath_var
19827 # Set to "yes" if building a shared library automatically hardcodes DIR
19828 # into the library and all subsequent libraries and executables linked
19829 # against it.
19830 hardcode_automatic=$hardcode_automatic
19832 # Set to yes if linker adds runtime paths of dependent libraries
19833 # to runtime path list.
19834 inherit_rpath=$inherit_rpath
19836 # Whether libtool must link a program against all its dependency libraries.
19837 link_all_deplibs=$link_all_deplibs
19839 # Set to "yes" if exported symbols are required.
19840 always_export_symbols=$always_export_symbols
19842 # The commands to list exported symbols.
19843 export_symbols_cmds=$lt_export_symbols_cmds
19845 # Symbols that should not be listed in the preloaded symbols.
19846 exclude_expsyms=$lt_exclude_expsyms
19848 # Symbols that must always be exported.
19849 include_expsyms=$lt_include_expsyms
19851 # Commands necessary for linking programs (against libraries) with templates.
19852 prelink_cmds=$lt_prelink_cmds
19854 # Commands necessary for finishing linking programs.
19855 postlink_cmds=$lt_postlink_cmds
19857 # Specify filename containing input files.
19858 file_list_spec=$lt_file_list_spec
19860 # How to hardcode a shared library path into an executable.
19861 hardcode_action=$hardcode_action
19863 # ### END LIBTOOL CONFIG
19865 _LT_EOF
19867 cat <<'_LT_EOF' >> "$cfgfile"
19869 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19871 # func_munge_path_list VARIABLE PATH
19872 # -----------------------------------
19873 # VARIABLE is name of variable containing _space_ separated list of
19874 # directories to be munged by the contents of PATH, which is string
19875 # having a format:
19876 # "DIR[:DIR]:"
19877 # string "DIR[ DIR]" will be prepended to VARIABLE
19878 # ":DIR[:DIR]"
19879 # string "DIR[ DIR]" will be appended to VARIABLE
19880 # "DIRP[:DIRP]::[DIRA:]DIRA"
19881 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19882 # "DIRA[ DIRA]" will be appended to VARIABLE
19883 # "DIR[:DIR]"
19884 # VARIABLE will be replaced by "DIR[ DIR]"
19885 func_munge_path_list ()
19887 case x$2 in
19891 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19893 x:*)
19894 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19896 *::*)
19897 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19898 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19901 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19903 esac
19907 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19908 func_cc_basename ()
19910 for cc_temp in $*""; do
19911 case $cc_temp in
19912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19914 \-*) ;;
19915 *) break;;
19916 esac
19917 done
19918 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19922 # ### END FUNCTIONS SHARED WITH CONFIGURE
19924 _LT_EOF
19926 case $host_os in
19927 aix3*)
19928 cat <<\_LT_EOF >> "$cfgfile"
19929 # AIX sometimes has problems with the GCC collect2 program. For some
19930 # reason, if we set the COLLECT_NAMES environment variable, the problems
19931 # vanish in a puff of smoke.
19932 if test set != "${COLLECT_NAMES+set}"; then
19933 COLLECT_NAMES=
19934 export COLLECT_NAMES
19936 _LT_EOF
19938 esac
19941 ltmain=$ac_aux_dir/ltmain.sh
19944 # We use sed instead of cat because bash on DJGPP gets confused if
19945 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19946 # text mode, it properly converts lines to CR/LF. This bash problem
19947 # is reportedly fixed, but why not run on old versions too?
19948 sed '$q' "$ltmain" >> "$cfgfile" \
19949 || (rm -f "$cfgfile"; exit 1)
19951 mv -f "$cfgfile" "$ofile" ||
19952 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19953 chmod +x "$ofile"
19957 esac
19958 done # for ac_tag
19961 as_fn_exit 0
19962 _ACEOF
19963 ac_clean_files=$ac_clean_files_save
19965 test $ac_write_fail = 0 ||
19966 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19969 # configure is writing to config.log, and then calls config.status.
19970 # config.status does its own redirection, appending to config.log.
19971 # Unfortunately, on DOS this fails, as config.log is still kept open
19972 # by configure, so config.status won't be able to write to it; its
19973 # output is simply discarded. So we exec the FD to /dev/null,
19974 # effectively closing config.log, so it can be properly (re)opened and
19975 # appended to by config.status. When coming back to configure, we
19976 # need to make the FD available again.
19977 if test "$no_create" != yes; then
19978 ac_cs_success=:
19979 ac_config_status_args=
19980 test "$silent" = yes &&
19981 ac_config_status_args="$ac_config_status_args --quiet"
19982 exec 5>/dev/null
19983 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19984 exec 5>>config.log
19985 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19986 # would make configure fail if this is the last instruction.
19987 $ac_cs_success || as_fn_exit 1
19989 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19991 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}