configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libsodium 1.0.16.
4 #
5 # Report bugs to <https://github.com/jedisct1/libsodium/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
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."
282 fi
283 exit 1
284 fi
285 fi
286 fi
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
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
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 ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
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/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
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"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
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 ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
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 ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
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 ()
420 {
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
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
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
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
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
447 fi
448
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/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
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
474
475
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 '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
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; }
498
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
509 }
510
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;;
520 *)
521 ECHO_N='-n';;
522 esac
523
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
530 fi
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'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
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
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
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'"
563
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'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
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`
577
578 #
579 # Initializations.
580 #
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=
589
590 # Identity of this package.
591 PACKAGE_NAME='libsodium'
592 PACKAGE_TARNAME='libsodium'
593 PACKAGE_VERSION='1.0.16'
594 PACKAGE_STRING='libsodium 1.0.16'
595 PACKAGE_BUGREPORT='https://github.com/jedisct1/libsodium/issues'
596 PACKAGE_URL='https://github.com/jedisct1/libsodium'
597
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"
634
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
641 AS
642 NATIVECLIENT_FALSE
643 NATIVECLIENT_TRUE
644 EMSCRIPTEN_FALSE
645 EMSCRIPTEN_TRUE
646 TEST_LDFLAGS
647 LIBTOOL_EXTRA_FLAGS
648 ALLOCA
649 HAVE_CPUID_V
650 HAVE_TI_MODE_V
651 HAVE_TI_MODE_FALSE
652 HAVE_TI_MODE_TRUE
653 HAVE_AVX_ASM_V
654 HAVE_AVX_ASM_FALSE
655 HAVE_AVX_ASM_TRUE
656 HAVE_AMD64_ASM_V
657 HAVE_AMD64_ASM_FALSE
658 HAVE_AMD64_ASM_TRUE
659 CFLAGS_RDRAND
660 CFLAGS_PCLMUL
661 CFLAGS_AESNI
662 CFLAGS_AVX512F
663 CFLAGS_AVX2
664 CFLAGS_AVX
665 CFLAGS_SSE41
666 CFLAGS_SSSE3
667 CFLAGS_SSE3
668 CFLAGS_SSE2
669 CFLAGS_MMX
670 LIBTOOL_DEPS
671 LT_SYS_LIBRARY_PATH
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 LIBTOOL
690 CWFLAGS
691 am__fastdepCCAS_FALSE
692 am__fastdepCCAS_TRUE
693 CCASDEPMODE
694 CCASFLAGS
695 CCAS
696 VALGRIND_CHECK_RULES
697 valgrind_enabled_tools
698 valgrind_tools
699 ENABLE_VALGRIND_sgcheck
700 ENABLE_VALGRIND_drd
701 ENABLE_VALGRIND_helgrind
702 ENABLE_VALGRIND_memcheck
703 VALGRIND_ENABLED
704 VALGRIND_ENABLED_FALSE
705 VALGRIND_ENABLED_TRUE
706 VALGRIND
707 SAFECODE_HOME
708 PTHREAD_CFLAGS
709 PTHREAD_LIBS
710 PTHREAD_CC
711 ax_pthread_config
712 EGREP
713 GREP
714 CPP
715 SED
716 SODIUM_LIBRARY_MINIMAL_DEF
717 MINIMAL_FALSE
718 MINIMAL_TRUE
719 am__fastdepCC_FALSE
720 am__fastdepCC_TRUE
721 CCDEPMODE
722 am__quote
723 am__include
724 DEPDIR
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 DLL_VERSION
733 SODIUM_LIBRARY_VERSION
734 SODIUM_LIBRARY_VERSION_MINOR
735 SODIUM_LIBRARY_VERSION_MAJOR
736 ISODATE
737 am__nodep
738 AMDEPBACKSLASH
739 AMDEP_FALSE
740 AMDEP_TRUE
741 MAINT
742 MAINTAINER_MODE_FALSE
743 MAINTAINER_MODE_TRUE
744 AM_BACKSLASH
745 AM_DEFAULT_VERBOSITY
746 AM_DEFAULT_V
747 AM_V
748 am__untar
749 am__tar
750 AMTAR
751 am__leading_dot
752 SET_MAKE
753 AWK
754 mkdir_p
755 MKDIR_P
756 INSTALL_STRIP_PROGRAM
757 STRIP
758 install_sh
759 MAKEINFO
760 AUTOHEADER
761 AUTOMAKE
762 AUTOCONF
763 ACLOCAL
764 VERSION
765 PACKAGE
766 CYGPATH_W
767 am__isrc
768 INSTALL_DATA
769 INSTALL_SCRIPT
770 INSTALL_PROGRAM
771 host_os
772 host_vendor
773 host_cpu
774 host
775 build_os
776 build_vendor
777 build_cpu
778 build
779 target_alias
780 host_alias
781 build_alias
782 LIBS
783 ECHO_T
784 ECHO_N
785 ECHO_C
786 DEFS
787 mandir
788 localedir
789 libdir
790 psdir
791 pdfdir
792 dvidir
793 htmldir
794 infodir
795 docdir
796 oldincludedir
797 includedir
798 localstatedir
799 sharedstatedir
800 sysconfdir
801 datadir
802 datarootdir
803 libexecdir
804 sbindir
805 bindir
806 program_transform_name
807 prefix
808 exec_prefix
809 PACKAGE_URL
810 PACKAGE_BUGREPORT
811 PACKAGE_STRING
812 PACKAGE_VERSION
813 PACKAGE_TARNAME
814 PACKAGE_NAME
815 PATH_SEPARATOR
816 SHELL'
817 ac_subst_files=''
818 ac_user_opts='
819 enable_option_checking
820 enable_silent_rules
821 enable_maintainer_mode
822 enable_dependency_tracking
823 enable_ssp
824 enable_asm
825 enable_pie
826 enable_blocking_random
827 enable_minimal
828 with_pthreads
829 with_safecode
830 with_ctgrind
831 enable_debug
832 enable_opt
833 enable_valgrind
834 enable_valgrind_memcheck
835 enable_valgrind_helgrind
836 enable_valgrind_drd
837 enable_valgrind_sgcheck
838 enable_soname_versions
839 enable_shared
840 enable_static
841 with_pic
842 enable_fast_install
843 with_aix_soname
844 with_gnu_ld
845 with_sysroot
846 enable_libtool_lock
847 '
848 ac_precious_vars='build_alias
849 host_alias
850 target_alias
851 CC
852 CFLAGS
853 LDFLAGS
854 LIBS
855 CPPFLAGS
856 CPP
857 SAFECODE_HOME
858 CCAS
859 CCASFLAGS
860 CWFLAGS
861 LT_SYS_LIBRARY_PATH
862 AR'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
905 htmldir='${docdir}'
906 dvidir='${docdir}'
907 pdfdir='${docdir}'
908 psdir='${docdir}'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
912
913 ac_prev=
914 ac_dashdash=
915 for ac_option
916 do
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\$ac_option
920 ac_prev=
921 continue
922 fi
923
924 case $ac_option in
925 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 *=) ac_optarg= ;;
927 *) ac_optarg=yes ;;
928 esac
929
930 # Accept the important Cygnus configure options, so we can diagnose typos.
931
932 case $ac_dashdash$ac_option in
933 --)
934 ac_dashdash=yes ;;
935
936 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 ac_prev=bindir ;;
938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 bindir=$ac_optarg ;;
940
941 -build | --build | --buil | --bui | --bu)
942 ac_prev=build_alias ;;
943 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944 build_alias=$ac_optarg ;;
945
946 -cache-file | --cache-file | --cache-fil | --cache-fi \
947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948 ac_prev=cache_file ;;
949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951 cache_file=$ac_optarg ;;
952
953 --config-cache | -C)
954 cache_file=config.cache ;;
955
956 -datadir | --datadir | --datadi | --datad)
957 ac_prev=datadir ;;
958 -datadir=* | --datadir=* | --datadi=* | --datad=*)
959 datadir=$ac_optarg ;;
960
961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962 | --dataroo | --dataro | --datar)
963 ac_prev=datarootdir ;;
964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966 datarootdir=$ac_optarg ;;
967
968 -disable-* | --disable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=no ;;
983
984 -docdir | --docdir | --docdi | --doc | --do)
985 ac_prev=docdir ;;
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 docdir=$ac_optarg ;;
988
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 ac_prev=dvidir ;;
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 dvidir=$ac_optarg ;;
993
994 -enable-* | --enable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=\$ac_optarg ;;
1009
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1017 exec_prefix=$ac_optarg ;;
1018
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1021 with_gas=yes ;;
1022
1023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
1029
1030 -host | --host | --hos | --ho)
1031 ac_prev=host_alias ;;
1032 -host=* | --host=* | --hos=* | --ho=*)
1033 host_alias=$ac_optarg ;;
1034
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 ac_prev=htmldir ;;
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 | --ht=*)
1039 htmldir=$ac_optarg ;;
1040
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1046 includedir=$ac_optarg ;;
1047
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 ac_prev=infodir ;;
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051 infodir=$ac_optarg ;;
1052
1053 -libdir | --libdir | --libdi | --libd)
1054 ac_prev=libdir ;;
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056 libdir=$ac_optarg ;;
1057
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1063 libexecdir=$ac_optarg ;;
1064
1065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1069
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075 localstatedir=$ac_optarg ;;
1076
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 ac_prev=mandir ;;
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080 mandir=$ac_optarg ;;
1081
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1084 with_fp=no ;;
1085
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1088 no_create=yes ;;
1089
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 no_recursion=yes ;;
1093
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101 oldincludedir=$ac_optarg ;;
1102
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 ac_prev=prefix ;;
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106 prefix=$ac_optarg ;;
1107
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113 program_prefix=$ac_optarg ;;
1114
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120 program_suffix=$ac_optarg ;;
1121
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1137 program_transform_name=$ac_optarg ;;
1138
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 ac_prev=pdfdir ;;
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1143
1144 -psdir | --psdir | --psdi | --psd | --ps)
1145 ac_prev=psdir ;;
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 psdir=$ac_optarg ;;
1148
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1151 silent=yes ;;
1152
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 ac_prev=sbindir ;;
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 | --sbi=* | --sb=*)
1157 sbindir=$ac_optarg ;;
1158
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1162 | --sha | --sh)
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 | --sha=* | --sh=*)
1168 sharedstatedir=$ac_optarg ;;
1169
1170 -site | --site | --sit)
1171 ac_prev=site ;;
1172 -site=* | --site=* | --sit=*)
1173 site=$ac_optarg ;;
1174
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 ac_prev=srcdir ;;
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1179
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1186
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1191
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 verbose=yes ;;
1194
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1197
1198 -with-* | --with-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=\$ac_optarg ;;
1213
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=no ;;
1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249 Try \`$0 --help' for more information"
1250 ;;
1251
1252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 case $ac_envvar in #(
1256 '' | [0-9]* | *[!_$as_cr_alnum]* )
1257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258 esac
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 ;;
1269
1270 esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 as_fn_error $? "missing argument to $ac_option"
1276 fi
1277
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1280 no) ;;
1281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 esac
1284 fi
1285
1286 # Check all directory arguments for consistency.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir
1291 do
1292 eval ac_val=\$$ac_var
1293 # Remove trailing slashes.
1294 case $ac_val in
1295 */ )
1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297 eval $ac_var=\$ac_val;;
1298 esac
1299 # Be sure to have absolute directory names.
1300 case $ac_val in
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 esac
1304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 done
1306
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1310 build=$build_alias
1311 host=$host_alias
1312 target=$target_alias
1313
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 elif test "x$build_alias" != "x$host_alias"; then
1319 cross_compiling=yes
1320 fi
1321 fi
1322
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326 test "$silent" = yes && exec 6>/dev/null
1327
1328
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 as_fn_error $? "pwd does not report name of working directory"
1335
1336
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$as_myself" : 'X\(//\)[^/]' \| \
1344 X"$as_myself" : 'X\(//\)$' \| \
1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 $as_echo X"$as_myself" |
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)[^/].*/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\).*/{
1360 s//\1/
1361 q
1362 }
1363 s/.*/./; q'`
1364 srcdir=$ac_confdir
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 srcdir=..
1367 fi
1368 else
1369 ac_srcdir_defaulted=no
1370 fi
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378 pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1402 cat <<_ACEOF
1403 \`configure' configures libsodium 1.0.16 to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking ...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/libsodium]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1456 _ACEOF
1457
1458 cat <<\_ACEOF
1459
1460 Program names:
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464
1465 System types:
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 _ACEOF
1469 fi
1470
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of libsodium 1.0.16:";;
1474 esac
1475 cat <<\_ACEOF
1476
1477 Optional Features:
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --enable-silent-rules less verbose build output (undo: "make V=1")
1482 --disable-silent-rules verbose build output (undo: "make V=0")
1483 --enable-maintainer-mode
1484 enable make rules and dependencies not useful (and
1485 sometimes confusing) to the casual installer
1486 --enable-dependency-tracking
1487 do not reject slow dependency extractors
1488 --disable-dependency-tracking
1489 speeds up one-time build
1490 --disable-ssp Do not compile with -fstack-protector
1491 --disable-asm Do not compile assembly code -- This disables all
1492 (including non-assembly) platform-specific
1493 optimizations on Unix systems
1494 --disable-pie Do not produce position independent executables
1495 --enable-blocking-random
1496 Enable this switch only if /dev/urandom is totally
1497 broken on the target platform
1498 --enable-minimal Only compile the minimum set of functions required
1499 for the high-level API
1500 --enable-debug For maintainers only - please do not use
1501 --enable-opt Optimize for the native CPU - The resulting library
1502 will be faster but not portable
1503 --enable-valgrind Whether to enable Valgrind on the unit tests
1504 (requires GNU make)
1505 --disable-valgrind-memcheck
1506 Whether to skip memcheck during the Valgrind tests
1507 --disable-valgrind-helgrind
1508 Whether to skip helgrind during the Valgrind tests
1509 --disable-valgrind-drd Whether to skip drd during the Valgrind tests
1510 --disable-valgrind-sgcheck
1511 Whether to skip sgcheck during the Valgrind tests
1512 --enable-soname-versions
1513 enable soname versions (must be disabled for
1514 Android) (default: enabled)
1515 --enable-shared[=PKGS] build shared libraries [default=yes]
1516 --enable-static[=PKGS] build static libraries [default=yes]
1517 --enable-fast-install[=PKGS]
1518 optimize for fast installation [default=yes]
1519 --disable-libtool-lock avoid locking (might break parallel builds)
1520
1521 Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-pthreads use pthreads library, or --without-pthreads to
1525 disable threading support.
1526 --with-safecode For maintainers only - please do not use
1527 --with-ctgrind For maintainers only - please do not use
1528 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1529 both]
1530 --with-aix-soname=aix|svr4|both
1531 shared library versioning (aka "SONAME") variant to
1532 provide on AIX, [default=aix].
1533 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1534 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1535 compiler's sysroot if not specified).
1536
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1545 CPP C preprocessor
1546 SAFECODE_HOME
1547 set to the safecode base directory
1548 CCAS assembler compiler command (defaults to CC)
1549 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1550 CWFLAGS define to compilation flags for generating extra warnings
1551 LT_SYS_LIBRARY_PATH
1552 User-defined run-time library search path.
1553 AR path to the ar utility
1554
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1557
1558 Report bugs to <https://github.com/jedisct1/libsodium/issues>.
1559 libsodium home page: <https://github.com/jedisct1/libsodium>.
1560 _ACEOF
1561 ac_status=$?
1562 fi
1563
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 continue
1570 ac_builddir=.
1571
1572 case "$ac_dir" in
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *)
1575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 esac ;;
1582 esac
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1587
1588 case $srcdir in
1589 .) # We are building in place.
1590 ac_srcdir=.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1597 *) # Relative name.
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 esac
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for guested configure.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1612 else
1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614 fi || ac_status=$?
1615 cd "$ac_pwd" || { ac_status=$?; break; }
1616 done
1617 fi
1618
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1621 cat <<\_ACEOF
1622 libsodium configure 1.0.16
1623 generated by GNU Autoconf 2.69
1624
1625 Copyright (C) 2012 Free Software Foundation, Inc.
1626 This configure script is free software; the Free Software Foundation
1627 gives unlimited permission to copy, distribute and modify it.
1628 _ACEOF
1629 exit
1630 fi
1631
1632 ## ------------------------ ##
1633 ## Autoconf initialization. ##
1634 ## ------------------------ ##
1635
1636 # ac_fn_c_try_compile LINENO
1637 # --------------------------
1638 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_compile ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext
1643 if { { ac_try="$ac_compile"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_compile") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1
1668 fi
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_compile
1673
1674 # ac_fn_c_try_link LINENO
1675 # -----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_link ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext conftest$ac_exeext
1681 if { { ac_try="$ac_link"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest$ac_exeext && {
1700 test "$cross_compiling" = yes ||
1701 test -x conftest$ac_exeext
1702 }; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709 fi
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_link
1719
1720 # ac_fn_c_try_cpp LINENO
1721 # ----------------------
1722 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_cpp ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_cpp conftest.$ac_ext"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1739 fi
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } > conftest.i && {
1742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 }; then :
1745 ac_retval=0
1746 else
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750 ac_retval=1
1751 fi
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1754
1755 } # ac_fn_c_try_cpp
1756
1757 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1758 # -------------------------------------------------------
1759 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1760 # the include files in INCLUDES and setting the cache variable VAR
1761 # accordingly.
1762 ac_fn_c_check_header_mongrel ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if eval \${$3+:} false; then :
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if eval \${$3+:} false; then :
1769 $as_echo_n "(cached) " >&6
1770 fi
1771 eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 else
1775 # Is the header compilable?
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1777 $as_echo_n "checking $2 usability... " >&6; }
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 $4
1781 #include <$2>
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784 ac_header_compiler=yes
1785 else
1786 ac_header_compiler=no
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1790 $as_echo "$ac_header_compiler" >&6; }
1791
1792 # Is the header present?
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1794 $as_echo_n "checking $2 presence... " >&6; }
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 #include <$2>
1798 _ACEOF
1799 if ac_fn_c_try_cpp "$LINENO"; then :
1800 ac_header_preproc=yes
1801 else
1802 ac_header_preproc=no
1803 fi
1804 rm -f conftest.err conftest.i conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1806 $as_echo "$ac_header_preproc" >&6; }
1807
1808 # So? What about this header?
1809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1810 yes:no: )
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1812 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1814 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 ;;
1816 no:yes:* )
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1818 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1820 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1822 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1824 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827 ( $as_echo "## ----------------------------------------------------------- ##
1828 ## Report this to https://github.com/jedisct1/libsodium/issues ##
1829 ## ----------------------------------------------------------- ##"
1830 ) | sed "s/^/$as_me: WARNING: /" >&2
1831 ;;
1832 esac
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1837 else
1838 eval "$3=\$ac_header_compiler"
1839 fi
1840 eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 fi
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846 } # ac_fn_c_check_header_mongrel
1847
1848 # ac_fn_c_try_run LINENO
1849 # ----------------------
1850 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1851 # that executables *can* be run.
1852 ac_fn_c_try_run ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_link"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_link") 2>&5
1863 ac_status=$?
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1866 { { case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_try") 2>&5
1873 ac_status=$?
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; }; }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: program exited with status $ac_status" >&5
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=$ac_status
1883 fi
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1887
1888 } # ac_fn_c_try_run
1889
1890 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1891 # -------------------------------------------------------
1892 # Tests whether HEADER exists and can be compiled using the include files in
1893 # INCLUDES, setting the cache variable VAR accordingly.
1894 ac_fn_c_check_header_compile ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $4
1905 #include <$2>
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 eval "$3=yes"
1909 else
1910 eval "$3=no"
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 fi
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918
1919 } # ac_fn_c_check_header_compile
1920
1921 # ac_fn_c_check_func LINENO FUNC VAR
1922 # ----------------------------------
1923 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1924 ac_fn_c_check_func ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1936 #define $2 innocuous_$2
1937
1938 /* System header to define __stub macros and hopefully few prototypes,
1939 which can conflict with char $2 (); below.
1940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941 <limits.h> exists even on freestanding compilers. */
1942
1943 #ifdef __STDC__
1944 # include <limits.h>
1945 #else
1946 # include <assert.h>
1947 #endif
1948
1949 #undef $2
1950
1951 /* Override any GCC internal prototype to avoid an error.
1952 Use char because int might match the return type of a GCC
1953 builtin and then its argument prototype would still apply. */
1954 #ifdef __cplusplus
1955 extern "C"
1956 #endif
1957 char $2 ();
1958 /* The GNU C library defines this for functions which it implements
1959 to always fail with ENOSYS. Some functions are actually named
1960 something starting with __ and the normal name is an alias. */
1961 #if defined __stub_$2 || defined __stub___$2
1962 choke me
1963 #endif
1964
1965 int
1966 main ()
1967 {
1968 return $2 ();
1969 ;
1970 return 0;
1971 }
1972 _ACEOF
1973 if ac_fn_c_try_link "$LINENO"; then :
1974 eval "$3=yes"
1975 else
1976 eval "$3=no"
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext \
1979 conftest$ac_exeext conftest.$ac_ext
1980 fi
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986 } # ac_fn_c_check_func
1987
1988 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1989 # -------------------------------------------
1990 # Tests whether TYPE exists after having included INCLUDES, setting cache
1991 # variable VAR accordingly.
1992 ac_fn_c_check_type ()
1993 {
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if eval \${$3+:} false; then :
1998 $as_echo_n "(cached) " >&6
1999 else
2000 eval "$3=no"
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $4
2004 int
2005 main ()
2006 {
2007 if (sizeof ($2))
2008 return 0;
2009 ;
2010 return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 $4
2017 int
2018 main ()
2019 {
2020 if (sizeof (($2)))
2021 return 0;
2022 ;
2023 return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027
2028 else
2029 eval "$3=yes"
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 fi
2035 eval ac_res=\$$3
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039
2040 } # ac_fn_c_check_type
2041 cat >config.log <<_ACEOF
2042 This file contains any messages produced by compilers while
2043 running configure, to aid debugging if configure makes a mistake.
2044
2045 It was created by libsodium $as_me 1.0.16, which was
2046 generated by GNU Autoconf 2.69. Invocation command line was
2047
2048 $ $0 $@
2049
2050 _ACEOF
2051 exec 5>>config.log
2052 {
2053 cat <<_ASUNAME
2054 ## --------- ##
2055 ## Platform. ##
2056 ## --------- ##
2057
2058 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2059 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2060 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2061 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2062 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2063
2064 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2065 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2066
2067 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2068 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2069 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2070 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2071 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2072 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2073 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2074
2075 _ASUNAME
2076
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 $as_echo "PATH: $as_dir"
2083 done
2084 IFS=$as_save_IFS
2085
2086 } >&5
2087
2088 cat >&5 <<_ACEOF
2089
2090
2091 ## ----------- ##
2092 ## Core tests. ##
2093 ## ----------- ##
2094
2095 _ACEOF
2096
2097
2098 # Keep a trace of the command line.
2099 # Strip out --no-create and --no-recursion so they do not pile up.
2100 # Strip out --silent because we don't want to record it for future runs.
2101 # Also quote any args containing shell meta-characters.
2102 # Make two passes to allow for proper duplicate-argument suppression.
2103 ac_configure_args=
2104 ac_configure_args0=
2105 ac_configure_args1=
2106 ac_must_keep_next=false
2107 for ac_pass in 1 2
2108 do
2109 for ac_arg
2110 do
2111 case $ac_arg in
2112 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2114 | -silent | --silent | --silen | --sile | --sil)
2115 continue ;;
2116 *\'*)
2117 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2118 esac
2119 case $ac_pass in
2120 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2121 2)
2122 as_fn_append ac_configure_args1 " '$ac_arg'"
2123 if test $ac_must_keep_next = true; then
2124 ac_must_keep_next=false # Got value, back to normal.
2125 else
2126 case $ac_arg in
2127 *=* | --config-cache | -C | -disable-* | --disable-* \
2128 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2129 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2130 | -with-* | --with-* | -without-* | --without-* | --x)
2131 case "$ac_configure_args0 " in
2132 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2133 esac
2134 ;;
2135 -* ) ac_must_keep_next=true ;;
2136 esac
2137 fi
2138 as_fn_append ac_configure_args " '$ac_arg'"
2139 ;;
2140 esac
2141 done
2142 done
2143 { ac_configure_args0=; unset ac_configure_args0;}
2144 { ac_configure_args1=; unset ac_configure_args1;}
2145
2146 # When interrupted or exit'd, cleanup temporary files, and complete
2147 # config.log. We remove comments because anyway the quotes in there
2148 # would cause problems or look ugly.
2149 # WARNING: Use '\'' to represent an apostrophe within the trap.
2150 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2151 trap 'exit_status=$?
2152 # Save into config.log some information that might help in debugging.
2153 {
2154 echo
2155
2156 $as_echo "## ---------------- ##
2157 ## Cache variables. ##
2158 ## ---------------- ##"
2159 echo
2160 # The following way of writing the cache mishandles newlines in values,
2161 (
2162 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2163 eval ac_val=\$$ac_var
2164 case $ac_val in #(
2165 *${as_nl}*)
2166 case $ac_var in #(
2167 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2168 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2169 esac
2170 case $ac_var in #(
2171 _ | IFS | as_nl) ;; #(
2172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2173 *) { eval $ac_var=; unset $ac_var;} ;;
2174 esac ;;
2175 esac
2176 done
2177 (set) 2>&1 |
2178 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2179 *${as_nl}ac_space=\ *)
2180 sed -n \
2181 "s/'\''/'\''\\\\'\'''\''/g;
2182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2183 ;; #(
2184 *)
2185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2186 ;;
2187 esac |
2188 sort
2189 )
2190 echo
2191
2192 $as_echo "## ----------------- ##
2193 ## Output variables. ##
2194 ## ----------------- ##"
2195 echo
2196 for ac_var in $ac_subst_vars
2197 do
2198 eval ac_val=\$$ac_var
2199 case $ac_val in
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 esac
2202 $as_echo "$ac_var='\''$ac_val'\''"
2203 done | sort
2204 echo
2205
2206 if test -n "$ac_subst_files"; then
2207 $as_echo "## ------------------- ##
2208 ## File substitutions. ##
2209 ## ------------------- ##"
2210 echo
2211 for ac_var in $ac_subst_files
2212 do
2213 eval ac_val=\$$ac_var
2214 case $ac_val in
2215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2216 esac
2217 $as_echo "$ac_var='\''$ac_val'\''"
2218 done | sort
2219 echo
2220 fi
2221
2222 if test -s confdefs.h; then
2223 $as_echo "## ----------- ##
2224 ## confdefs.h. ##
2225 ## ----------- ##"
2226 echo
2227 cat confdefs.h
2228 echo
2229 fi
2230 test "$ac_signal" != 0 &&
2231 $as_echo "$as_me: caught signal $ac_signal"
2232 $as_echo "$as_me: exit $exit_status"
2233 } >&5
2234 rm -f core *.core core.conftest.* &&
2235 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2236 exit $exit_status
2237 ' 0
2238 for ac_signal in 1 2 13 15; do
2239 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2240 done
2241 ac_signal=0
2242
2243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2244 rm -f -r conftest* confdefs.h
2245
2246 $as_echo "/* confdefs.h */" > confdefs.h
2247
2248 # Predefined preprocessor variables.
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_NAME "$PACKAGE_NAME"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_STRING "$PACKAGE_STRING"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_URL "$PACKAGE_URL"
2272 _ACEOF
2273
2274
2275 # Let the site file select an alternate cache file if it wants to.
2276 # Prefer an explicitly selected file to automatically selected ones.
2277 ac_site_file1=NONE
2278 ac_site_file2=NONE
2279 if test -n "$CONFIG_SITE"; then
2280 # We do not want a PATH search for config.site.
2281 case $CONFIG_SITE in #((
2282 -*) ac_site_file1=./$CONFIG_SITE;;
2283 */*) ac_site_file1=$CONFIG_SITE;;
2284 *) ac_site_file1=./$CONFIG_SITE;;
2285 esac
2286 elif test "x$prefix" != xNONE; then
2287 ac_site_file1=$prefix/share/config.site
2288 ac_site_file2=$prefix/etc/config.site
2289 else
2290 ac_site_file1=$ac_default_prefix/share/config.site
2291 ac_site_file2=$ac_default_prefix/etc/config.site
2292 fi
2293 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2294 do
2295 test "x$ac_site_file" = xNONE && continue
2296 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2298 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2299 sed 's/^/| /' "$ac_site_file" >&5
2300 . "$ac_site_file" \
2301 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 as_fn_error $? "failed to load site script $ac_site_file
2304 See \`config.log' for more details" "$LINENO" 5; }
2305 fi
2306 done
2307
2308 if test -r "$cache_file"; then
2309 # Some versions of bash will fail to source /dev/null (special files
2310 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2311 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2313 $as_echo "$as_me: loading cache $cache_file" >&6;}
2314 case $cache_file in
2315 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2316 *) . "./$cache_file";;
2317 esac
2318 fi
2319 else
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2321 $as_echo "$as_me: creating cache $cache_file" >&6;}
2322 >$cache_file
2323 fi
2324
2325 # Check that the precious variables saved in the cache have kept the same
2326 # value.
2327 ac_cache_corrupted=false
2328 for ac_var in $ac_precious_vars; do
2329 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2330 eval ac_new_set=\$ac_env_${ac_var}_set
2331 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2332 eval ac_new_val=\$ac_env_${ac_var}_value
2333 case $ac_old_set,$ac_new_set in
2334 set,)
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2338 ,set)
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2340 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2341 ac_cache_corrupted=: ;;
2342 ,);;
2343 *)
2344 if test "x$ac_old_val" != "x$ac_new_val"; then
2345 # differences in whitespace do not lead to failure.
2346 ac_old_val_w=`echo x $ac_old_val`
2347 ac_new_val_w=`echo x $ac_new_val`
2348 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2350 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2351 ac_cache_corrupted=:
2352 else
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2354 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2355 eval $ac_var=\$ac_old_val
2356 fi
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2358 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2360 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2361 fi;;
2362 esac
2363 # Pass precious variables to config.status.
2364 if test "$ac_new_set" = set; then
2365 case $ac_new_val in
2366 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 *) ac_arg=$ac_var=$ac_new_val ;;
2368 esac
2369 case " $ac_configure_args " in
2370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2371 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2372 esac
2373 fi
2374 done
2375 if $ac_cache_corrupted; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2379 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2380 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2381 fi
2382 ## -------------------- ##
2383 ## Main body of script. ##
2384 ## -------------------- ##
2385
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391
2392
2393 ac_aux_dir=
2394 for ac_dir in build-aux "$srcdir"/build-aux; do
2395 if test -f "$ac_dir/install-sh"; then
2396 ac_aux_dir=$ac_dir
2397 ac_install_sh="$ac_aux_dir/install-sh -c"
2398 break
2399 elif test -f "$ac_dir/install.sh"; then
2400 ac_aux_dir=$ac_dir
2401 ac_install_sh="$ac_aux_dir/install.sh -c"
2402 break
2403 elif test -f "$ac_dir/shtool"; then
2404 ac_aux_dir=$ac_dir
2405 ac_install_sh="$ac_aux_dir/shtool install -c"
2406 break
2407 fi
2408 done
2409 if test -z "$ac_aux_dir"; then
2410 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2411 fi
2412
2413 # These three variables are undocumented and unsupported,
2414 # and are intended to be withdrawn in a future Autoconf release.
2415 # They can cause serious problems if a builder's source tree is in a directory
2416 # whose full name contains unusual characters.
2417 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2418 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2419 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2420
2421
2422
2423
2424 # Make sure we can run config.sub.
2425 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2426 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2427
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2429 $as_echo_n "checking build system type... " >&6; }
2430 if ${ac_cv_build+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 ac_build_alias=$build_alias
2434 test "x$ac_build_alias" = x &&
2435 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2436 test "x$ac_build_alias" = x &&
2437 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2439 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2440
2441 fi
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2443 $as_echo "$ac_cv_build" >&6; }
2444 case $ac_cv_build in
2445 *-*-*) ;;
2446 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2447 esac
2448 build=$ac_cv_build
2449 ac_save_IFS=$IFS; IFS='-'
2450 set x $ac_cv_build
2451 shift
2452 build_cpu=$1
2453 build_vendor=$2
2454 shift; shift
2455 # Remember, the first character of IFS is used to create $*,
2456 # except with old shells:
2457 build_os=$*
2458 IFS=$ac_save_IFS
2459 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2460
2461
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2463 $as_echo_n "checking host system type... " >&6; }
2464 if ${ac_cv_host+:} false; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test "x$host_alias" = x; then
2468 ac_cv_host=$ac_cv_build
2469 else
2470 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2471 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2472 fi
2473
2474 fi
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2476 $as_echo "$ac_cv_host" >&6; }
2477 case $ac_cv_host in
2478 *-*-*) ;;
2479 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2480 esac
2481 host=$ac_cv_host
2482 ac_save_IFS=$IFS; IFS='-'
2483 set x $ac_cv_host
2484 shift
2485 host_cpu=$1
2486 host_vendor=$2
2487 shift; shift
2488 # Remember, the first character of IFS is used to create $*,
2489 # except with old shells:
2490 host_os=$*
2491 IFS=$ac_save_IFS
2492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2493
2494
2495 am__api_version='1.15'
2496
2497 # Find a good install program. We prefer a C program (faster),
2498 # so one script is as good as another. But avoid the broken or
2499 # incompatible versions:
2500 # SysV /etc/install, /usr/sbin/install
2501 # SunOS /usr/etc/install
2502 # IRIX /sbin/install
2503 # AIX /bin/install
2504 # AmigaOS /C/install, which installs bootblocks on floppy discs
2505 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2506 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2507 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2508 # OS/2's system install, which has a completely different semantic
2509 # ./install, which can be erroneously created by make from ./install.sh.
2510 # Reject install programs that cannot install multiple files.
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2512 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2513 if test -z "$INSTALL"; then
2514 if ${ac_cv_path_install+:} false; then :
2515 $as_echo_n "(cached) " >&6
2516 else
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 # Account for people who put trailing slashes in PATH elements.
2523 case $as_dir/ in #((
2524 ./ | .// | /[cC]/* | \
2525 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2526 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2527 /usr/ucb/* ) ;;
2528 *)
2529 # OSF1 and SCO ODT 3.0 have their own names for install.
2530 # Don't use installbsd from OSF since it installs stuff as root
2531 # by default.
2532 for ac_prog in ginstall scoinst install; do
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2535 if test $ac_prog = install &&
2536 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2537 # AIX install. It has an incompatible calling convention.
2538 :
2539 elif test $ac_prog = install &&
2540 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2541 # program-specific install script used by HP pwplus--don't use.
2542 :
2543 else
2544 rm -rf conftest.one conftest.two conftest.dir
2545 echo one > conftest.one
2546 echo two > conftest.two
2547 mkdir conftest.dir
2548 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2549 test -s conftest.one && test -s conftest.two &&
2550 test -s conftest.dir/conftest.one &&
2551 test -s conftest.dir/conftest.two
2552 then
2553 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2554 break 3
2555 fi
2556 fi
2557 fi
2558 done
2559 done
2560 ;;
2561 esac
2562
2563 done
2564 IFS=$as_save_IFS
2565
2566 rm -rf conftest.one conftest.two conftest.dir
2567
2568 fi
2569 if test "${ac_cv_path_install+set}" = set; then
2570 INSTALL=$ac_cv_path_install
2571 else
2572 # As a last resort, use the slow shell script. Don't cache a
2573 # value for INSTALL within a source directory, because that will
2574 # break other packages using the cache if that directory is
2575 # removed, or if the value is a relative name.
2576 INSTALL=$ac_install_sh
2577 fi
2578 fi
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2580 $as_echo "$INSTALL" >&6; }
2581
2582 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2583 # It thinks the first close brace ends the variable substitution.
2584 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2585
2586 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2587
2588 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2589
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2591 $as_echo_n "checking whether build environment is sane... " >&6; }
2592 # Reject unsafe characters in $srcdir or the absolute working directory
2593 # name. Accept space and tab only in the latter.
2594 am_lf='
2595 '
2596 case `pwd` in
2597 *[\\\"\#\$\&\'\`$am_lf]*)
2598 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2599 esac
2600 case $srcdir in
2601 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2602 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2603 esac
2604
2605 # Do 'set' in a subshell so we don't clobber the current shell's
2606 # arguments. Must try -L first in case configure is actually a
2607 # symlink; some systems play weird games with the mod time of symlinks
2608 # (eg FreeBSD returns the mod time of the symlink's containing
2609 # directory).
2610 if (
2611 am_has_slept=no
2612 for am_try in 1 2; do
2613 echo "timestamp, slept: $am_has_slept" > conftest.file
2614 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2615 if test "$*" = "X"; then
2616 # -L didn't work.
2617 set X `ls -t "$srcdir/configure" conftest.file`
2618 fi
2619 if test "$*" != "X $srcdir/configure conftest.file" \
2620 && test "$*" != "X conftest.file $srcdir/configure"; then
2621
2622 # If neither matched, then we have a broken ls. This can happen
2623 # if, for instance, CONFIG_SHELL is bash and it inherits a
2624 # broken ls alias from the environment. This has actually
2625 # happened. Such a system could not be considered "sane".
2626 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2627 alias in your environment" "$LINENO" 5
2628 fi
2629 if test "$2" = conftest.file || test $am_try -eq 2; then
2630 break
2631 fi
2632 # Just in case.
2633 sleep 1
2634 am_has_slept=yes
2635 done
2636 test "$2" = conftest.file
2637 )
2638 then
2639 # Ok.
2640 :
2641 else
2642 as_fn_error $? "newly created file is older than distributed files!
2643 Check your system clock" "$LINENO" 5
2644 fi
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646 $as_echo "yes" >&6; }
2647 # If we didn't sleep, we still need to ensure time stamps of config.status and
2648 # generated files are strictly newer.
2649 am_sleep_pid=
2650 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2651 ( sleep 1 ) &
2652 am_sleep_pid=$!
2653 fi
2654
2655 rm -f conftest.file
2656
2657 test "$program_prefix" != NONE &&
2658 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2659 # Use a double $ so make ignores it.
2660 test "$program_suffix" != NONE &&
2661 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2662 # Double any \ or $.
2663 # By default was `s,x,x', remove it if useless.
2664 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2665 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2666
2667 # Expand $ac_aux_dir to an absolute path.
2668 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2669
2670 if test x"${MISSING+set}" != xset; then
2671 case $am_aux_dir in
2672 *\ * | *\ *)
2673 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2674 *)
2675 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2676 esac
2677 fi
2678 # Use eval to expand $SHELL
2679 if eval "$MISSING --is-lightweight"; then
2680 am_missing_run="$MISSING "
2681 else
2682 am_missing_run=
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2684 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2685 fi
2686
2687 if test x"${install_sh+set}" != xset; then
2688 case $am_aux_dir in
2689 *\ * | *\ *)
2690 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2691 *)
2692 install_sh="\${SHELL} $am_aux_dir/install-sh"
2693 esac
2694 fi
2695
2696 # Installed binaries are usually stripped using 'strip' when the user
2697 # run "make install-strip". However 'strip' might not be the right
2698 # tool to use in cross-compilation environments, therefore Automake
2699 # will honor the 'STRIP' environment variable to overrule this program.
2700 if test "$cross_compiling" != no; then
2701 if test -n "$ac_tool_prefix"; then
2702 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2703 set dummy ${ac_tool_prefix}strip; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if ${ac_cv_prog_STRIP+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$STRIP"; then
2710 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723 done
2724 done
2725 IFS=$as_save_IFS
2726
2727 fi
2728 fi
2729 STRIP=$ac_cv_prog_STRIP
2730 if test -n "$STRIP"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2732 $as_echo "$STRIP" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 fi
2737
2738
2739 fi
2740 if test -z "$ac_cv_prog_STRIP"; then
2741 ac_ct_STRIP=$STRIP
2742 # Extract the first word of "strip", so it can be a program name with args.
2743 set dummy strip; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 if test -n "$ac_ct_STRIP"; then
2750 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759 ac_cv_prog_ac_ct_STRIP="strip"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2762 fi
2763 done
2764 done
2765 IFS=$as_save_IFS
2766
2767 fi
2768 fi
2769 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2770 if test -n "$ac_ct_STRIP"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2772 $as_echo "$ac_ct_STRIP" >&6; }
2773 else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2776 fi
2777
2778 if test "x$ac_ct_STRIP" = x; then
2779 STRIP=":"
2780 else
2781 case $cross_compiling:$ac_tool_warned in
2782 yes:)
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2785 ac_tool_warned=yes ;;
2786 esac
2787 STRIP=$ac_ct_STRIP
2788 fi
2789 else
2790 STRIP="$ac_cv_prog_STRIP"
2791 fi
2792
2793 fi
2794 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2797 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2798 if test -z "$MKDIR_P"; then
2799 if ${ac_cv_path_mkdir+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2804 do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_prog in mkdir gmkdir; do
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2810 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2811 'mkdir (GNU coreutils) '* | \
2812 'mkdir (coreutils) '* | \
2813 'mkdir (fileutils) '4.1*)
2814 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2815 break 3;;
2816 esac
2817 done
2818 done
2819 done
2820 IFS=$as_save_IFS
2821
2822 fi
2823
2824 test -d ./--version && rmdir ./--version
2825 if test "${ac_cv_path_mkdir+set}" = set; then
2826 MKDIR_P="$ac_cv_path_mkdir -p"
2827 else
2828 # As a last resort, use the slow shell script. Don't cache a
2829 # value for MKDIR_P within a source directory, because that will
2830 # break other packages using the cache if that directory is
2831 # removed, or if the value is a relative name.
2832 MKDIR_P="$ac_install_sh -d"
2833 fi
2834 fi
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2836 $as_echo "$MKDIR_P" >&6; }
2837
2838 for ac_prog in gawk mawk nawk awk
2839 do
2840 # Extract the first word of "$ac_prog", so it can be a program name with args.
2841 set dummy $ac_prog; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if ${ac_cv_prog_AWK+:} false; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 if test -n "$AWK"; then
2848 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857 ac_cv_prog_AWK="$ac_prog"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2860 fi
2861 done
2862 done
2863 IFS=$as_save_IFS
2864
2865 fi
2866 fi
2867 AWK=$ac_cv_prog_AWK
2868 if test -n "$AWK"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2870 $as_echo "$AWK" >&6; }
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 fi
2875
2876
2877 test -n "$AWK" && break
2878 done
2879
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2881 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2882 set x ${MAKE-make}
2883 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2884 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 cat >conftest.make <<\_ACEOF
2888 SHELL = /bin/sh
2889 all:
2890 @echo '@@@%%%=$(MAKE)=@@@%%%'
2891 _ACEOF
2892 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2893 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2894 *@@@%%%=?*=@@@%%%*)
2895 eval ac_cv_prog_make_${ac_make}_set=yes;;
2896 *)
2897 eval ac_cv_prog_make_${ac_make}_set=no;;
2898 esac
2899 rm -f conftest.make
2900 fi
2901 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2903 $as_echo "yes" >&6; }
2904 SET_MAKE=
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 SET_MAKE="MAKE=${MAKE-make}"
2909 fi
2910
2911 rm -rf .tst 2>/dev/null
2912 mkdir .tst 2>/dev/null
2913 if test -d .tst; then
2914 am__leading_dot=.
2915 else
2916 am__leading_dot=_
2917 fi
2918 rmdir .tst 2>/dev/null
2919
2920 # Check whether --enable-silent-rules was given.
2921 if test "${enable_silent_rules+set}" = set; then :
2922 enableval=$enable_silent_rules;
2923 fi
2924
2925 case $enable_silent_rules in # (((
2926 yes) AM_DEFAULT_VERBOSITY=0;;
2927 no) AM_DEFAULT_VERBOSITY=1;;
2928 *) AM_DEFAULT_VERBOSITY=1;;
2929 esac
2930 am_make=${MAKE-make}
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2932 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2933 if ${am_cv_make_support_nested_variables+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if $as_echo 'TRUE=$(BAR$(V))
2937 BAR0=false
2938 BAR1=true
2939 V=1
2940 am__doit:
2941 @$(TRUE)
2942 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2943 am_cv_make_support_nested_variables=yes
2944 else
2945 am_cv_make_support_nested_variables=no
2946 fi
2947 fi
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2949 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2950 if test $am_cv_make_support_nested_variables = yes; then
2951 AM_V='$(V)'
2952 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2953 else
2954 AM_V=$AM_DEFAULT_VERBOSITY
2955 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2956 fi
2957 AM_BACKSLASH='\'
2958
2959 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2960 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2961 # is not polluted with repeated "-I."
2962 am__isrc=' -I$(srcdir)'
2963 # test to see if srcdir already configured
2964 if test -f $srcdir/config.status; then
2965 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2966 fi
2967 fi
2968
2969 # test whether we have cygpath
2970 if test -z "$CYGPATH_W"; then
2971 if (cygpath --version) >/dev/null 2>/dev/null; then
2972 CYGPATH_W='cygpath -w'
2973 else
2974 CYGPATH_W=echo
2975 fi
2976 fi
2977
2978
2979 # Define the identity of the package.
2980 PACKAGE='libsodium'
2981 VERSION='1.0.16'
2982
2983
2984 cat >>confdefs.h <<_ACEOF
2985 #define PACKAGE "$PACKAGE"
2986 _ACEOF
2987
2988
2989 cat >>confdefs.h <<_ACEOF
2990 #define VERSION "$VERSION"
2991 _ACEOF
2992
2993 # Some tools Automake needs.
2994
2995 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2996
2997
2998 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2999
3000
3001 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3002
3003
3004 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3005
3006
3007 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3008
3009 # For better backward compatibility. To be removed once Automake 1.9.x
3010 # dies out for good. For more background, see:
3011 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3012 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3013 mkdir_p='$(MKDIR_P)'
3014
3015 # We need awk for the "check" target (and possibly the TAP driver). The
3016 # system "awk" is bad on some platforms.
3017 # Always define AMTAR for backward compatibility. Yes, it's still used
3018 # in the wild :-( We should find a proper way to deprecate it ...
3019 AMTAR='$${TAR-tar}'
3020
3021
3022 # We'll loop over all known methods to create a tar archive until one works.
3023 _am_tools='gnutar plaintar pax cpio none'
3024
3025 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3026 # There is notably a 21 bits limit for the UID and the GID. In fact,
3027 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3028 # and bug#13588).
3029 am_max_uid=2097151 # 2^21 - 1
3030 am_max_gid=$am_max_uid
3031 # The $UID and $GID variables are not portable, so we need to resort
3032 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3033 # below are definitely unexpected, so allow the users to see them
3034 # (that is, avoid stderr redirection).
3035 am_uid=`id -u || echo unknown`
3036 am_gid=`id -g || echo unknown`
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3038 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3039 if test $am_uid -le $am_max_uid; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3041 $as_echo "yes" >&6; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3045 _am_tools=none
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3048 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3049 if test $am_gid -le $am_max_gid; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3051 $as_echo "yes" >&6; }
3052 else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 _am_tools=none
3056 fi
3057
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3059 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3060
3061 # Go ahead even if we have the value already cached. We do so because we
3062 # need to set the values for the 'am__tar' and 'am__untar' variables.
3063 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3064
3065 for _am_tool in $_am_tools; do
3066 case $_am_tool in
3067 gnutar)
3068 for _am_tar in tar gnutar gtar; do
3069 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3070 ($_am_tar --version) >&5 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } && break
3074 done
3075 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3076 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3077 am__untar="$_am_tar -xf -"
3078 ;;
3079 plaintar)
3080 # Must skip GNU tar: if it does not support --format= it doesn't create
3081 # ustar tarball either.
3082 (tar --version) >/dev/null 2>&1 && continue
3083 am__tar='tar chf - "$$tardir"'
3084 am__tar_='tar chf - "$tardir"'
3085 am__untar='tar xf -'
3086 ;;
3087 pax)
3088 am__tar='pax -L -x ustar -w "$$tardir"'
3089 am__tar_='pax -L -x ustar -w "$tardir"'
3090 am__untar='pax -r'
3091 ;;
3092 cpio)
3093 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3094 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3095 am__untar='cpio -i -H ustar -d'
3096 ;;
3097 none)
3098 am__tar=false
3099 am__tar_=false
3100 am__untar=false
3101 ;;
3102 esac
3103
3104 # If the value was cached, stop now. We just wanted to have am__tar
3105 # and am__untar set.
3106 test -n "${am_cv_prog_tar_ustar}" && break
3107
3108 # tar/untar a dummy directory, and stop if the command works.
3109 rm -rf conftest.dir
3110 mkdir conftest.dir
3111 echo GrepMe > conftest.dir/file
3112 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3113 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }
3117 rm -rf conftest.dir
3118 if test -s conftest.tar; then
3119 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3120 ($am__untar <conftest.tar) >&5 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }
3124 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3125 (cat conftest.dir/file) >&5 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }
3129 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3130 fi
3131 done
3132 rm -rf conftest.dir
3133
3134 if ${am_cv_prog_tar_ustar+:} false; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 am_cv_prog_tar_ustar=$_am_tool
3138 fi
3139
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3141 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3142
3143
3144
3145
3146
3147
3148 # POSIX will say in a future version that running "rm -f" with no argument
3149 # is OK; and we want to be able to make that assumption in our Makefile
3150 # recipes. So use an aggressive probe to check that the usage we want is
3151 # actually supported "in the wild" to an acceptable degree.
3152 # See automake bug#10828.
3153 # To make any issue more visible, cause the running configure to be aborted
3154 # by default if the 'rm' program in use doesn't match our expectations; the
3155 # user can still override this though.
3156 if rm -f && rm -fr && rm -rf; then : OK; else
3157 cat >&2 <<'END'
3158 Oops!
3159
3160 Your 'rm' program seems unable to run without file operands specified
3161 on the command line, even when the '-f' option is present. This is contrary
3162 to the behaviour of most rm programs out there, and not conforming with
3163 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3164
3165 Please tell bug-automake@gnu.org about your system, including the value
3166 of your $PATH and any error possibly output before this message. This
3167 can help us improve future automake versions.
3168
3169 END
3170 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3171 echo 'Configuration will proceed anyway, since you have set the' >&2
3172 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3173 echo >&2
3174 else
3175 cat >&2 <<'END'
3176 Aborting the configuration process, to ensure you take notice of the issue.
3177
3178 You can download and install GNU coreutils to get an 'rm' implementation
3179 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3180
3181 If you want to complete the configuration process using your problematic
3182 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3183 to "yes", and re-run configure.
3184
3185 END
3186 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3187 fi
3188 fi
3189
3190 # Check whether --enable-silent-rules was given.
3191 if test "${enable_silent_rules+set}" = set; then :
3192 enableval=$enable_silent_rules;
3193 fi
3194
3195 case $enable_silent_rules in # (((
3196 yes) AM_DEFAULT_VERBOSITY=0;;
3197 no) AM_DEFAULT_VERBOSITY=1;;
3198 *) AM_DEFAULT_VERBOSITY=0;;
3199 esac
3200 am_make=${MAKE-make}
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3202 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3203 if ${am_cv_make_support_nested_variables+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 if $as_echo 'TRUE=$(BAR$(V))
3207 BAR0=false
3208 BAR1=true
3209 V=1
3210 am__doit:
3211 @$(TRUE)
3212 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3213 am_cv_make_support_nested_variables=yes
3214 else
3215 am_cv_make_support_nested_variables=no
3216 fi
3217 fi
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3219 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3220 if test $am_cv_make_support_nested_variables = yes; then
3221 AM_V='$(V)'
3222 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3223 else
3224 AM_V=$AM_DEFAULT_VERBOSITY
3225 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3226 fi
3227 AM_BACKSLASH='\'
3228
3229
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3231 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3232 # Check whether --enable-maintainer-mode was given.
3233 if test "${enable_maintainer_mode+set}" = set; then :
3234 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3235 else
3236 USE_MAINTAINER_MODE=no
3237 fi
3238
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3240 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3241 if test $USE_MAINTAINER_MODE = yes; then
3242 MAINTAINER_MODE_TRUE=
3243 MAINTAINER_MODE_FALSE='#'
3244 else
3245 MAINTAINER_MODE_TRUE='#'
3246 MAINTAINER_MODE_FALSE=
3247 fi
3248
3249 MAINT=$MAINTAINER_MODE_TRUE
3250
3251
3252 # Check whether --enable-dependency-tracking was given.
3253 if test "${enable_dependency_tracking+set}" = set; then :
3254 enableval=$enable_dependency_tracking;
3255 fi
3256
3257 if test "x$enable_dependency_tracking" != xno; then
3258 am_depcomp="$ac_aux_dir/depcomp"
3259 AMDEPBACKSLASH='\'
3260 am__nodep='_no'
3261 fi
3262 if test "x$enable_dependency_tracking" != xno; then
3263 AMDEP_TRUE=
3264 AMDEP_FALSE='#'
3265 else
3266 AMDEP_TRUE='#'
3267 AMDEP_FALSE=
3268 fi
3269
3270
3271
3272
3273 ISODATE=`date +%Y-%m-%d`
3274
3275
3276 SODIUM_LIBRARY_VERSION_MAJOR=10
3277 SODIUM_LIBRARY_VERSION_MINOR=1
3278 DLL_VERSION=8
3279 SODIUM_LIBRARY_VERSION=24:0:1
3280 # | | |
3281 # +------+ | +---+
3282 # | | |
3283 # current:revision:age
3284 # | | |
3285 # | | +- increment if interfaces have been added
3286 # | | set to zero if interfaces have been removed
3287 # | | or changed
3288 # | +- increment if source code has changed
3289 # | set to zero if current is incremented
3290 # +- increment if interfaces have been added, removed or changed
3291
3292
3293
3294
3295
3296
3297 LX_CFLAGS=${CFLAGS-NONE}
3298
3299
3300 if pwd | fgrep ' ' > /dev/null 2>&1; then :
3301 as_fn_error $? "The build directory contains whitespaces - This can cause tests/installation to fail due to limitations of some libtool versions" "$LINENO" 5
3302
3303 fi
3304
3305
3306 # Check whether --enable-ssp was given.
3307 if test "${enable_ssp+set}" = set; then :
3308 enableval=$enable_ssp;
3309 if test "x$enableval" = "xno"; then :
3310
3311 enable_ssp="no"
3312
3313 else
3314
3315 enable_ssp="yes"
3316
3317 fi
3318
3319 else
3320
3321 enable_ssp="yes"
3322
3323 fi
3324
3325
3326 # Check whether --enable-asm was given.
3327 if test "${enable_asm+set}" = set; then :
3328 enableval=$enable_asm;
3329 if test "x$enableval" = "xno"; then :
3330
3331 enable_asm="no"
3332
3333 else
3334
3335 enable_asm="yes"
3336
3337 fi
3338
3339 else
3340
3341 enable_asm="yes"
3342
3343 fi
3344
3345
3346 DEPDIR="${am__leading_dot}deps"
3347
3348 ac_config_commands="$ac_config_commands depfiles"
3349
3350
3351 am_make=${MAKE-make}
3352 cat > confinc << 'END'
3353 am__doit:
3354 @echo this is the am__doit target
3355 .PHONY: am__doit
3356 END
3357 # If we don't find an include directive, just comment out the code.
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3359 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3360 am__include="#"
3361 am__quote=
3362 _am_result=none
3363 # First try GNU make style include.
3364 echo "include confinc" > confmf
3365 # Ignore all kinds of additional output from 'make'.
3366 case `$am_make -s -f confmf 2> /dev/null` in #(
3367 *the\ am__doit\ target*)
3368 am__include=include
3369 am__quote=
3370 _am_result=GNU
3371 ;;
3372 esac
3373 # Now try BSD make style include.
3374 if test "$am__include" = "#"; then
3375 echo '.include "confinc"' > confmf
3376 case `$am_make -s -f confmf 2> /dev/null` in #(
3377 *the\ am__doit\ target*)
3378 am__include=.include
3379 am__quote="\""
3380 _am_result=BSD
3381 ;;
3382 esac
3383 fi
3384
3385
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3387 $as_echo "$_am_result" >&6; }
3388 rm -f confinc confmf
3389
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 if test -n "$ac_tool_prefix"; then
3396 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3397 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3416 fi
3417 done
3418 done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 CC=$ac_cv_prog_CC
3424 if test -n "$CC"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426 $as_echo "$CC" >&6; }
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432
3433 fi
3434 if test -z "$ac_cv_prog_CC"; then
3435 ac_ct_CC=$CC
3436 # Extract the first word of "gcc", so it can be a program name with args.
3437 set dummy gcc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 if test -n "$ac_ct_CC"; then
3444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3448 do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 ac_cv_prog_ac_ct_CC="gcc"
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3456 fi
3457 done
3458 done
3459 IFS=$as_save_IFS
3460
3461 fi
3462 fi
3463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3464 if test -n "$ac_ct_CC"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3466 $as_echo "$ac_ct_CC" >&6; }
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470 fi
3471
3472 if test "x$ac_ct_CC" = x; then
3473 CC=""
3474 else
3475 case $cross_compiling:$ac_tool_warned in
3476 yes:)
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479 ac_tool_warned=yes ;;
3480 esac
3481 CC=$ac_ct_CC
3482 fi
3483 else
3484 CC="$ac_cv_prog_CC"
3485 fi
3486
3487 if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3490 set dummy ${ac_tool_prefix}cc; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if ${ac_cv_prog_CC+:} false; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3501 do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506 ac_cv_prog_CC="${ac_tool_prefix}cc"
3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3509 fi
3510 done
3511 done
3512 IFS=$as_save_IFS
3513
3514 fi
3515 fi
3516 CC=$ac_cv_prog_CC
3517 if test -n "$CC"; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519 $as_echo "$CC" >&6; }
3520 else
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3523 fi
3524
3525
3526 fi
3527 fi
3528 if test -z "$CC"; then
3529 # Extract the first word of "cc", so it can be a program name with args.
3530 set dummy cc; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if ${ac_cv_prog_CC+:} false; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
3538 else
3539 ac_prog_rejected=no
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3548 ac_prog_rejected=yes
3549 continue
3550 fi
3551 ac_cv_prog_CC="cc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555 done
3556 done
3557 IFS=$as_save_IFS
3558
3559 if test $ac_prog_rejected = yes; then
3560 # We found a bogon in the path, so make sure we never use it.
3561 set dummy $ac_cv_prog_CC
3562 shift
3563 if test $# != 0; then
3564 # We chose a different compiler from the bogus one.
3565 # However, it has the same basename, so the bogon will be chosen
3566 # first if we set CC to just the basename; use the full file name.
3567 shift
3568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3569 fi
3570 fi
3571 fi
3572 fi
3573 CC=$ac_cv_prog_CC
3574 if test -n "$CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576 $as_echo "$CC" >&6; }
3577 else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3580 fi
3581
3582
3583 fi
3584 if test -z "$CC"; then
3585 if test -n "$ac_tool_prefix"; then
3586 for ac_prog in cl.exe
3587 do
3588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_prog_CC+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3608 fi
3609 done
3610 done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624
3625 test -n "$CC" && break
3626 done
3627 fi
3628 if test -z "$CC"; then
3629 ac_ct_CC=$CC
3630 for ac_prog in cl.exe
3631 do
3632 # Extract the first word of "$ac_prog", so it can be a program name with args.
3633 set dummy $ac_prog; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 if test -n "$ac_ct_CC"; then
3640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_ac_ct_CC="$ac_prog"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3652 fi
3653 done
3654 done
3655 IFS=$as_save_IFS
3656
3657 fi
3658 fi
3659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3660 if test -n "$ac_ct_CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3662 $as_echo "$ac_ct_CC" >&6; }
3663 else
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3666 fi
3667
3668
3669 test -n "$ac_ct_CC" && break
3670 done
3671
3672 if test "x$ac_ct_CC" = x; then
3673 CC=""
3674 else
3675 case $cross_compiling:$ac_tool_warned in
3676 yes:)
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3679 ac_tool_warned=yes ;;
3680 esac
3681 CC=$ac_ct_CC
3682 fi
3683 fi
3684
3685 fi
3686
3687
3688 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690 as_fn_error $? "no acceptable C compiler found in \$PATH
3691 See \`config.log' for more details" "$LINENO" 5; }
3692
3693 # Provide some information about the compiler.
3694 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3695 set X $ac_compile
3696 ac_compiler=$2
3697 for ac_option in --version -v -V -qversion; do
3698 { { ac_try="$ac_compiler $ac_option >&5"
3699 case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3706 ac_status=$?
3707 if test -s conftest.err; then
3708 sed '10a\
3709 ... rest of stderr output deleted ...
3710 10q' conftest.err >conftest.er1
3711 cat conftest.er1 >&5
3712 fi
3713 rm -f conftest.er1 conftest.err
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }
3716 done
3717
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3720
3721 int
3722 main ()
3723 {
3724
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 ac_clean_files_save=$ac_clean_files
3730 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3731 # Try to create an executable without -o first, disregard a.out.
3732 # It will help us diagnose broken compilers, and finding out an intuition
3733 # of exeext.
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3735 $as_echo_n "checking whether the C compiler works... " >&6; }
3736 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3737
3738 # The possible output files:
3739 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3740
3741 ac_rmfiles=
3742 for ac_file in $ac_files
3743 do
3744 case $ac_file in
3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3746 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3747 esac
3748 done
3749 rm -f $ac_rmfiles
3750
3751 if { { ac_try="$ac_link_default"
3752 case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755 esac
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758 (eval "$ac_link_default") 2>&5
3759 ac_status=$?
3760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761 test $ac_status = 0; }; then :
3762 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3763 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3764 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3765 # so that the user can short-circuit this test for compilers unknown to
3766 # Autoconf.
3767 for ac_file in $ac_files ''
3768 do
3769 test -f "$ac_file" || continue
3770 case $ac_file in
3771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3772 ;;
3773 [ab].out )
3774 # We found the default executable, but exeext='' is most
3775 # certainly right.
3776 break;;
3777 *.* )
3778 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3779 then :; else
3780 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3781 fi
3782 # We set ac_cv_exeext here because the later test for it is not
3783 # safe: cross compilers may not add the suffix if given an `-o'
3784 # argument, so we may need to know it at that point already.
3785 # Even if this section looks crufty: it has the advantage of
3786 # actually working.
3787 break;;
3788 * )
3789 break;;
3790 esac
3791 done
3792 test "$ac_cv_exeext" = no && ac_cv_exeext=
3793
3794 else
3795 ac_file=''
3796 fi
3797 if test -z "$ac_file"; then :
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3800 $as_echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error 77 "C compiler cannot create executables
3806 See \`config.log' for more details" "$LINENO" 5; }
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3809 $as_echo "yes" >&6; }
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3812 $as_echo_n "checking for C compiler default output file name... " >&6; }
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3814 $as_echo "$ac_file" >&6; }
3815 ac_exeext=$ac_cv_exeext
3816
3817 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3818 ac_clean_files=$ac_clean_files_save
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3820 $as_echo_n "checking for suffix of executables... " >&6; }
3821 if { { ac_try="$ac_link"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828 (eval "$ac_link") 2>&5
3829 ac_status=$?
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }; then :
3832 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3833 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3834 # work properly (i.e., refer to `conftest.exe'), while it won't with
3835 # `rm'.
3836 for ac_file in conftest.exe conftest conftest.*; do
3837 test -f "$ac_file" || continue
3838 case $ac_file in
3839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3840 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3841 break;;
3842 * ) break;;
3843 esac
3844 done
3845 else
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3849 See \`config.log' for more details" "$LINENO" 5; }
3850 fi
3851 rm -f conftest conftest$ac_cv_exeext
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3853 $as_echo "$ac_cv_exeext" >&6; }
3854
3855 rm -f conftest.$ac_ext
3856 EXEEXT=$ac_cv_exeext
3857 ac_exeext=$EXEEXT
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860 #include <stdio.h>
3861 int
3862 main ()
3863 {
3864 FILE *f = fopen ("conftest.out", "w");
3865 return ferror (f) || fclose (f) != 0;
3866
3867 ;
3868 return 0;
3869 }
3870 _ACEOF
3871 ac_clean_files="$ac_clean_files conftest.out"
3872 # Check that the compiler produces executables we can run. If not, either
3873 # the compiler is broken, or we cross compile.
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3875 $as_echo_n "checking whether we are cross compiling... " >&6; }
3876 if test "$cross_compiling" != yes; then
3877 { { ac_try="$ac_link"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_link") 2>&5
3885 ac_status=$?
3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }
3888 if { ac_try='./conftest$ac_cv_exeext'
3889 { { case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_try") 2>&5
3896 ac_status=$?
3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }; }; then
3899 cross_compiling=no
3900 else
3901 if test "$cross_compiling" = maybe; then
3902 cross_compiling=yes
3903 else
3904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906 as_fn_error $? "cannot run C compiled programs.
3907 If you meant to cross compile, use \`--host'.
3908 See \`config.log' for more details" "$LINENO" 5; }
3909 fi
3910 fi
3911 fi
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913 $as_echo "$cross_compiling" >&6; }
3914
3915 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3916 ac_clean_files=$ac_clean_files_save
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3918 $as_echo_n "checking for suffix of object files... " >&6; }
3919 if ${ac_cv_objext+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3924
3925 int
3926 main ()
3927 {
3928
3929 ;
3930 return 0;
3931 }
3932 _ACEOF
3933 rm -f conftest.o conftest.obj
3934 if { { ac_try="$ac_compile"
3935 case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_compile") 2>&5
3942 ac_status=$?
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }; then :
3945 for ac_file in conftest.o conftest.obj conftest.*; do
3946 test -f "$ac_file" || continue;
3947 case $ac_file in
3948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3950 break;;
3951 esac
3952 done
3953 else
3954 $as_echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3956
3957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error $? "cannot compute suffix of object files: cannot compile
3960 See \`config.log' for more details" "$LINENO" 5; }
3961 fi
3962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3965 $as_echo "$ac_cv_objext" >&6; }
3966 OBJEXT=$ac_cv_objext
3967 ac_objext=$OBJEXT
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3969 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3970 if ${ac_cv_c_compiler_gnu+:} false; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975
3976 int
3977 main ()
3978 {
3979 #ifndef __GNUC__
3980 choke me
3981 #endif
3982
3983 ;
3984 return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_compiler_gnu=yes
3989 else
3990 ac_compiler_gnu=no
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3994
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3997 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3998 if test $ac_compiler_gnu = yes; then
3999 GCC=yes
4000 else
4001 GCC=
4002 fi
4003 ac_test_CFLAGS=${CFLAGS+set}
4004 ac_save_CFLAGS=$CFLAGS
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4006 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4007 if ${ac_cv_prog_cc_g+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 ac_save_c_werror_flag=$ac_c_werror_flag
4011 ac_c_werror_flag=yes
4012 ac_cv_prog_cc_g=no
4013 CFLAGS="-g"
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4016
4017 int
4018 main ()
4019 {
4020
4021 ;
4022 return 0;
4023 }
4024 _ACEOF
4025 if ac_fn_c_try_compile "$LINENO"; then :
4026 ac_cv_prog_cc_g=yes
4027 else
4028 CFLAGS=""
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031
4032 int
4033 main ()
4034 {
4035
4036 ;
4037 return 0;
4038 }
4039 _ACEOF
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041
4042 else
4043 ac_c_werror_flag=$ac_save_c_werror_flag
4044 CFLAGS="-g"
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main ()
4050 {
4051
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_prog_cc_g=yes
4058 fi
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 fi
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_c_werror_flag=$ac_save_c_werror_flag
4065 fi
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4067 $as_echo "$ac_cv_prog_cc_g" >&6; }
4068 if test "$ac_test_CFLAGS" = set; then
4069 CFLAGS=$ac_save_CFLAGS
4070 elif test $ac_cv_prog_cc_g = yes; then
4071 if test "$GCC" = yes; then
4072 CFLAGS="-g -O2"
4073 else
4074 CFLAGS="-g"
4075 fi
4076 else
4077 if test "$GCC" = yes; then
4078 CFLAGS="-O2"
4079 else
4080 CFLAGS=
4081 fi
4082 fi
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4084 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4085 if ${ac_cv_prog_cc_c89+:} false; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 ac_cv_prog_cc_c89=no
4089 ac_save_CC=$CC
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092 #include <stdarg.h>
4093 #include <stdio.h>
4094 struct stat;
4095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4096 struct buf { int x; };
4097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4098 static char *e (p, i)
4099 char **p;
4100 int i;
4101 {
4102 return p[i];
4103 }
4104 static char *f (char * (*g) (char **, int), char **p, ...)
4105 {
4106 char *s;
4107 va_list v;
4108 va_start (v,p);
4109 s = g (p, va_arg (v,int));
4110 va_end (v);
4111 return s;
4112 }
4113
4114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4115 function prototypes and stuff, but not '\xHH' hex character constants.
4116 These don't provoke an error unfortunately, instead are silently treated
4117 as 'x'. The following induces an error, until -std is added to get
4118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4119 array size at least. It's necessary to write '\x00'==0 to get something
4120 that's true only with -std. */
4121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4122
4123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4124 inside strings and character constants. */
4125 #define FOO(x) 'x'
4126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4127
4128 int test (int i, double x);
4129 struct s1 {int (*f) (int a);};
4130 struct s2 {int (*f) (double a);};
4131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4132 int argc;
4133 char **argv;
4134 int
4135 main ()
4136 {
4137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4138 ;
4139 return 0;
4140 }
4141 _ACEOF
4142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144 do
4145 CC="$ac_save_CC $ac_arg"
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_cv_prog_cc_c89=$ac_arg
4148 fi
4149 rm -f core conftest.err conftest.$ac_objext
4150 test "x$ac_cv_prog_cc_c89" != "xno" && break
4151 done
4152 rm -f conftest.$ac_ext
4153 CC=$ac_save_CC
4154
4155 fi
4156 # AC_CACHE_VAL
4157 case "x$ac_cv_prog_cc_c89" in
4158 x)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4160 $as_echo "none needed" >&6; } ;;
4161 xno)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4163 $as_echo "unsupported" >&6; } ;;
4164 *)
4165 CC="$CC $ac_cv_prog_cc_c89"
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4167 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4168 esac
4169 if test "x$ac_cv_prog_cc_c89" != xno; then :
4170
4171 fi
4172
4173 ac_ext=c
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179 ac_ext=c
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4185 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4186 if ${am_cv_prog_cc_c_o+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191
4192 int
4193 main ()
4194 {
4195
4196 ;
4197 return 0;
4198 }
4199 _ACEOF
4200 # Make sure it works both with $CC and with simple cc.
4201 # Following AC_PROG_CC_C_O, we do the test twice because some
4202 # compilers refuse to overwrite an existing .o file with -o,
4203 # though they will create one.
4204 am_cv_prog_cc_c_o=yes
4205 for am_i in 1 2; do
4206 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4207 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } \
4211 && test -f conftest2.$ac_objext; then
4212 : OK
4213 else
4214 am_cv_prog_cc_c_o=no
4215 break
4216 fi
4217 done
4218 rm -f core conftest*
4219 unset am_i
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4222 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4223 if test "$am_cv_prog_cc_c_o" != yes; then
4224 # Losing compiler, so override with the script.
4225 # FIXME: It is wrong to rewrite CC.
4226 # But if we don't then we get into trouble of one sort or another.
4227 # A longer-term fix would be to have automake use am__CC in this case,
4228 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4229 CC="$am_aux_dir/compile $CC"
4230 fi
4231 ac_ext=c
4232 ac_cpp='$CPP $CPPFLAGS'
4233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236
4237
4238 depcc="$CC" am_compiler_list=
4239
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4241 $as_echo_n "checking dependency style of $depcc... " >&6; }
4242 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4246 # We make a subdir and do the tests there. Otherwise we can end up
4247 # making bogus files that we don't know about and never remove. For
4248 # instance it was reported that on HP-UX the gcc test will end up
4249 # making a dummy file named 'D' -- because '-MD' means "put the output
4250 # in D".
4251 rm -rf conftest.dir
4252 mkdir conftest.dir
4253 # Copy depcomp to subdir because otherwise we won't find it if we're
4254 # using a relative directory.
4255 cp "$am_depcomp" conftest.dir
4256 cd conftest.dir
4257 # We will build objects and dependencies in a subdirectory because
4258 # it helps to detect inapplicable dependency modes. For instance
4259 # both Tru64's cc and ICC support -MD to output dependencies as a
4260 # side effect of compilation, but ICC will put the dependencies in
4261 # the current directory while Tru64 will put them in the object
4262 # directory.
4263 mkdir sub
4264
4265 am_cv_CC_dependencies_compiler_type=none
4266 if test "$am_compiler_list" = ""; then
4267 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4268 fi
4269 am__universal=false
4270 case " $depcc " in #(
4271 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4272 esac
4273
4274 for depmode in $am_compiler_list; do
4275 # Setup a source with many dependencies, because some compilers
4276 # like to wrap large dependency lists on column 80 (with \), and
4277 # we should not choose a depcomp mode which is confused by this.
4278 #
4279 # We need to recreate these files for each test, as the compiler may
4280 # overwrite some of them when testing with obscure command lines.
4281 # This happens at least with the AIX C compiler.
4282 : > sub/conftest.c
4283 for i in 1 2 3 4 5 6; do
4284 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4285 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4286 # Solaris 10 /bin/sh.
4287 echo '/* dummy */' > sub/conftst$i.h
4288 done
4289 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4290
4291 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4292 # mode. It turns out that the SunPro C++ compiler does not properly
4293 # handle '-M -o', and we need to detect this. Also, some Intel
4294 # versions had trouble with output in subdirs.
4295 am__obj=sub/conftest.${OBJEXT-o}
4296 am__minus_obj="-o $am__obj"
4297 case $depmode in
4298 gcc)
4299 # This depmode causes a compiler race in universal mode.
4300 test "$am__universal" = false || continue
4301 ;;
4302 nosideeffect)
4303 # After this tag, mechanisms are not by side-effect, so they'll
4304 # only be used when explicitly requested.
4305 if test "x$enable_dependency_tracking" = xyes; then
4306 continue
4307 else
4308 break
4309 fi
4310 ;;
4311 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4312 # This compiler won't grok '-c -o', but also, the minuso test has
4313 # not run yet. These depmodes are late enough in the game, and
4314 # so weak that their functioning should not be impacted.
4315 am__obj=conftest.${OBJEXT-o}
4316 am__minus_obj=
4317 ;;
4318 none) break ;;
4319 esac
4320 if depmode=$depmode \
4321 source=sub/conftest.c object=$am__obj \
4322 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4323 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4324 >/dev/null 2>conftest.err &&
4325 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4326 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4327 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4328 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4329 # icc doesn't choke on unknown options, it will just issue warnings
4330 # or remarks (even with -Werror). So we grep stderr for any message
4331 # that says an option was ignored or not supported.
4332 # When given -MP, icc 7.0 and 7.1 complain thusly:
4333 # icc: Command line warning: ignoring option '-M'; no argument required
4334 # The diagnosis changed in icc 8.0:
4335 # icc: Command line remark: option '-MP' not supported
4336 if (grep 'ignoring option' conftest.err ||
4337 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4338 am_cv_CC_dependencies_compiler_type=$depmode
4339 break
4340 fi
4341 fi
4342 done
4343
4344 cd ..
4345 rm -rf conftest.dir
4346 else
4347 am_cv_CC_dependencies_compiler_type=none
4348 fi
4349
4350 fi
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4352 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4353 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4354
4355 if
4356 test "x$enable_dependency_tracking" != xno \
4357 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4358 am__fastdepCC_TRUE=
4359 am__fastdepCC_FALSE='#'
4360 else
4361 am__fastdepCC_TRUE='#'
4362 am__fastdepCC_FALSE=
4363 fi
4364
4365
4366
4367 if test "x$EMSCRIPTEN" != "x"; then :
4368
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -s ASSERTIONS=0" >&5
4370 $as_echo_n "checking whether C compiler accepts -s ASSERTIONS=0... " >&6; }
4371 if ${ax_cv_check_cflags___s_ASSERTIONS_0+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374
4375 ax_check_save_flags=$CFLAGS
4376 CFLAGS="$CFLAGS -s ASSERTIONS=0"
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4379 #include <time.h>
4380 int
4381 main ()
4382 {
4383 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
4384 ;
4385 return 0;
4386 }
4387 _ACEOF
4388 if ac_fn_c_try_link "$LINENO"; then :
4389 ax_cv_check_cflags___s_ASSERTIONS_0=yes
4390 else
4391 ax_cv_check_cflags___s_ASSERTIONS_0=no
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext \
4394 conftest$ac_exeext conftest.$ac_ext
4395 CFLAGS=$ax_check_save_flags
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___s_ASSERTIONS_0" >&5
4398 $as_echo "$ax_cv_check_cflags___s_ASSERTIONS_0" >&6; }
4399 if test "x$ax_cv_check_cflags___s_ASSERTIONS_0" = xyes; then :
4400
4401 enable_asm="no"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiling to JavaScript - asm implementations disabled" >&5
4403 $as_echo "$as_me: WARNING: compiling to JavaScript - asm implementations disabled" >&2;}
4404
4405 else
4406
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EMSCRIPTEN environment variable defined, but emcc doesn't appear to be used - Assuming compilation to native code" >&5
4408 $as_echo "$as_me: WARNING: EMSCRIPTEN environment variable defined, but emcc doesn't appear to be used - Assuming compilation to native code" >&2;}
4409 CFLAGS="$CFLAGS -U__EMSCRIPTEN__"
4410 unset EMSCRIPTEN
4411
4412 fi
4413
4414
4415 fi
4416 if test "$host_os" = "nacl" -o "$host_os" = "pnacl"; then :
4417
4418 enable_asm="no"
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiling to Native Client - asm implementations disabled" >&5
4420 $as_echo "$as_me: WARNING: compiling to Native Client - asm implementations disabled" >&2;}
4421
4422 fi
4423
4424 # Check whether --enable-pie was given.
4425 if test "${enable_pie+set}" = set; then :
4426 enableval=$enable_pie; enable_pie=$enableval
4427 else
4428 enable_pie="maybe"
4429 fi
4430
4431
4432 case $host_os in #(
4433 mingw*|cygwin*|msys) :
4434 enable_pie="no" ;; #(
4435 *) :
4436 ;;
4437 esac
4438
4439 # Check whether --enable-blocking-random was given.
4440 if test "${enable_blocking_random+set}" = set; then :
4441 enableval=$enable_blocking_random;
4442 if test "x$enableval" = "xyes"; then :
4443
4444
4445 $as_echo "#define USE_BLOCKING_RANDOM 1" >>confdefs.h
4446
4447
4448 fi
4449
4450 fi
4451
4452
4453 # Check whether --enable-minimal was given.
4454 if test "${enable_minimal+set}" = set; then :
4455 enableval=$enable_minimal;
4456 if test "x$enableval" = "xyes"; then :
4457
4458 enable_minimal="yes"
4459 SODIUM_LIBRARY_MINIMAL_DEF="#define SODIUM_LIBRARY_MINIMAL 1"
4460
4461 $as_echo "#define MINIMAL 1" >>confdefs.h
4462
4463
4464 else
4465
4466 enable_minimal="no"
4467
4468 fi
4469
4470 else
4471
4472 enable_minimal="no"
4473
4474 fi
4475
4476 if test x$enable_minimal = xyes; then
4477 MINIMAL_TRUE=
4478 MINIMAL_FALSE='#'
4479 else
4480 MINIMAL_TRUE='#'
4481 MINIMAL_FALSE=
4482 fi
4483
4484
4485
4486
4487 # Check whether --with-pthreads was given.
4488 if test "${with_pthreads+set}" = set; then :
4489 withval=$with_pthreads;
4490 else
4491 withval="yes"
4492 fi
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4496 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4497 if ${ac_cv_path_SED+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4501 for ac_i in 1 2 3 4 5 6 7; do
4502 ac_script="$ac_script$as_nl$ac_script"
4503 done
4504 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4505 { ac_script=; unset ac_script;}
4506 if test -z "$SED"; then
4507 ac_path_SED_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in sed gsed; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4517 as_fn_executable_p "$ac_path_SED" || continue
4518 # Check for GNU ac_path_SED and select it if it is found.
4519 # Check for GNU $ac_path_SED
4520 case `"$ac_path_SED" --version 2>&1` in
4521 *GNU*)
4522 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4523 *)
4524 ac_count=0
4525 $as_echo_n 0123456789 >"conftest.in"
4526 while :
4527 do
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo '' >> "conftest.nl"
4532 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_SED_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_SED="$ac_path_SED"
4538 ac_path_SED_max=$ac_count
4539 fi
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 esac
4545
4546 $ac_path_SED_found && break 3
4547 done
4548 done
4549 done
4550 IFS=$as_save_IFS
4551 if test -z "$ac_cv_path_SED"; then
4552 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4553 fi
4554 else
4555 ac_cv_path_SED=$SED
4556 fi
4557
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4560 $as_echo "$ac_cv_path_SED" >&6; }
4561 SED="$ac_cv_path_SED"
4562 rm -f conftest.sed
4563
4564 ac_ext=c
4565 ac_cpp='$CPP $CPPFLAGS'
4566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4570 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4571 # On Suns, sometimes $CPP names a directory.
4572 if test -n "$CPP" && test -d "$CPP"; then
4573 CPP=
4574 fi
4575 if test -z "$CPP"; then
4576 if ${ac_cv_prog_CPP+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 # Double quotes because CPP needs to be expanded
4580 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4581 do
4582 ac_preproc_ok=false
4583 for ac_c_preproc_warn_flag in '' yes
4584 do
4585 # Use a header file that comes with gcc, so configuring glibc
4586 # with a fresh cross-compiler works.
4587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4588 # <limits.h> exists even on freestanding compilers.
4589 # On the NeXT, cc -E runs the code through the compiler's parser,
4590 # not just through cpp. "Syntax error" is here to catch this case.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #ifdef __STDC__
4594 # include <limits.h>
4595 #else
4596 # include <assert.h>
4597 #endif
4598 Syntax error
4599 _ACEOF
4600 if ac_fn_c_try_cpp "$LINENO"; then :
4601
4602 else
4603 # Broken: fails on valid input.
4604 continue
4605 fi
4606 rm -f conftest.err conftest.i conftest.$ac_ext
4607
4608 # OK, works on sane cases. Now check whether nonexistent headers
4609 # can be detected and how.
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4612 #include <ac_nonexistent.h>
4613 _ACEOF
4614 if ac_fn_c_try_cpp "$LINENO"; then :
4615 # Broken: success on invalid input.
4616 continue
4617 else
4618 # Passes both tests.
4619 ac_preproc_ok=:
4620 break
4621 fi
4622 rm -f conftest.err conftest.i conftest.$ac_ext
4623
4624 done
4625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4626 rm -f conftest.i conftest.err conftest.$ac_ext
4627 if $ac_preproc_ok; then :
4628 break
4629 fi
4630
4631 done
4632 ac_cv_prog_CPP=$CPP
4633
4634 fi
4635 CPP=$ac_cv_prog_CPP
4636 else
4637 ac_cv_prog_CPP=$CPP
4638 fi
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4640 $as_echo "$CPP" >&6; }
4641 ac_preproc_ok=false
4642 for ac_c_preproc_warn_flag in '' yes
4643 do
4644 # Use a header file that comes with gcc, so configuring glibc
4645 # with a fresh cross-compiler works.
4646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4647 # <limits.h> exists even on freestanding compilers.
4648 # On the NeXT, cc -E runs the code through the compiler's parser,
4649 # not just through cpp. "Syntax error" is here to catch this case.
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 #ifdef __STDC__
4653 # include <limits.h>
4654 #else
4655 # include <assert.h>
4656 #endif
4657 Syntax error
4658 _ACEOF
4659 if ac_fn_c_try_cpp "$LINENO"; then :
4660
4661 else
4662 # Broken: fails on valid input.
4663 continue
4664 fi
4665 rm -f conftest.err conftest.i conftest.$ac_ext
4666
4667 # OK, works on sane cases. Now check whether nonexistent headers
4668 # can be detected and how.
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4671 #include <ac_nonexistent.h>
4672 _ACEOF
4673 if ac_fn_c_try_cpp "$LINENO"; then :
4674 # Broken: success on invalid input.
4675 continue
4676 else
4677 # Passes both tests.
4678 ac_preproc_ok=:
4679 break
4680 fi
4681 rm -f conftest.err conftest.i conftest.$ac_ext
4682
4683 done
4684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4685 rm -f conftest.i conftest.err conftest.$ac_ext
4686 if $ac_preproc_ok; then :
4687
4688 else
4689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4691 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4692 See \`config.log' for more details" "$LINENO" 5; }
4693 fi
4694
4695 ac_ext=c
4696 ac_cpp='$CPP $CPPFLAGS'
4697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4700
4701
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4703 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4704 if ${ac_cv_path_GREP+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -z "$GREP"; then
4708 ac_path_GREP_found=false
4709 # Loop through the user's path and test for each of PROGNAME-LIST
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4712 do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_prog in grep ggrep; do
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4718 as_fn_executable_p "$ac_path_GREP" || continue
4719 # Check for GNU ac_path_GREP and select it if it is found.
4720 # Check for GNU $ac_path_GREP
4721 case `"$ac_path_GREP" --version 2>&1` in
4722 *GNU*)
4723 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4724 *)
4725 ac_count=0
4726 $as_echo_n 0123456789 >"conftest.in"
4727 while :
4728 do
4729 cat "conftest.in" "conftest.in" >"conftest.tmp"
4730 mv "conftest.tmp" "conftest.in"
4731 cp "conftest.in" "conftest.nl"
4732 $as_echo 'GREP' >> "conftest.nl"
4733 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4735 as_fn_arith $ac_count + 1 && ac_count=$as_val
4736 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4737 # Best one so far, save it but keep looking for a better one
4738 ac_cv_path_GREP="$ac_path_GREP"
4739 ac_path_GREP_max=$ac_count
4740 fi
4741 # 10*(2^10) chars as input seems more than enough
4742 test $ac_count -gt 10 && break
4743 done
4744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4745 esac
4746
4747 $ac_path_GREP_found && break 3
4748 done
4749 done
4750 done
4751 IFS=$as_save_IFS
4752 if test -z "$ac_cv_path_GREP"; then
4753 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4754 fi
4755 else
4756 ac_cv_path_GREP=$GREP
4757 fi
4758
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4761 $as_echo "$ac_cv_path_GREP" >&6; }
4762 GREP="$ac_cv_path_GREP"
4763
4764
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4766 $as_echo_n "checking for egrep... " >&6; }
4767 if ${ac_cv_path_EGREP+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4771 then ac_cv_path_EGREP="$GREP -E"
4772 else
4773 if test -z "$EGREP"; then
4774 ac_path_EGREP_found=false
4775 # Loop through the user's path and test for each of PROGNAME-LIST
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4778 do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_prog in egrep; do
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4784 as_fn_executable_p "$ac_path_EGREP" || continue
4785 # Check for GNU ac_path_EGREP and select it if it is found.
4786 # Check for GNU $ac_path_EGREP
4787 case `"$ac_path_EGREP" --version 2>&1` in
4788 *GNU*)
4789 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4790 *)
4791 ac_count=0
4792 $as_echo_n 0123456789 >"conftest.in"
4793 while :
4794 do
4795 cat "conftest.in" "conftest.in" >"conftest.tmp"
4796 mv "conftest.tmp" "conftest.in"
4797 cp "conftest.in" "conftest.nl"
4798 $as_echo 'EGREP' >> "conftest.nl"
4799 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4801 as_fn_arith $ac_count + 1 && ac_count=$as_val
4802 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4803 # Best one so far, save it but keep looking for a better one
4804 ac_cv_path_EGREP="$ac_path_EGREP"
4805 ac_path_EGREP_max=$ac_count
4806 fi
4807 # 10*(2^10) chars as input seems more than enough
4808 test $ac_count -gt 10 && break
4809 done
4810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4811 esac
4812
4813 $ac_path_EGREP_found && break 3
4814 done
4815 done
4816 done
4817 IFS=$as_save_IFS
4818 if test -z "$ac_cv_path_EGREP"; then
4819 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4820 fi
4821 else
4822 ac_cv_path_EGREP=$EGREP
4823 fi
4824
4825 fi
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4828 $as_echo "$ac_cv_path_EGREP" >&6; }
4829 EGREP="$ac_cv_path_EGREP"
4830
4831
4832 if test "x$withval" = "xyes"; then :
4833
4834
4835
4836
4837
4838 ac_ext=c
4839 ac_cpp='$CPP $CPPFLAGS'
4840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843
4844 ax_pthread_ok=no
4845
4846 # We used to check for pthread.h first, but this fails if pthread.h
4847 # requires special compiler flags (e.g. on Tru64 or Sequent).
4848 # It gets checked for in the link test anyway.
4849
4850 # First of all, check if the user has set any of the PTHREAD_LIBS,
4851 # etcetera environment variables, and if threads linking works using
4852 # them:
4853 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
4854 ax_pthread_save_CC="$CC"
4855 ax_pthread_save_CFLAGS="$CFLAGS"
4856 ax_pthread_save_LIBS="$LIBS"
4857 if test "x$PTHREAD_CC" != "x"; then :
4858 CC="$PTHREAD_CC"
4859 fi
4860 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4861 LIBS="$PTHREAD_LIBS $LIBS"
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
4863 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866
4867 /* Override any GCC internal prototype to avoid an error.
4868 Use char because int might match the return type of a GCC
4869 builtin and then its argument prototype would still apply. */
4870 #ifdef __cplusplus
4871 extern "C"
4872 #endif
4873 char pthread_join ();
4874 int
4875 main ()
4876 {
4877 return pthread_join ();
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 if ac_fn_c_try_link "$LINENO"; then :
4883 ax_pthread_ok=yes
4884 fi
4885 rm -f core conftest.err conftest.$ac_objext \
4886 conftest$ac_exeext conftest.$ac_ext
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
4888 $as_echo "$ax_pthread_ok" >&6; }
4889 if test "x$ax_pthread_ok" = "xno"; then
4890 PTHREAD_LIBS=""
4891 PTHREAD_CFLAGS=""
4892 fi
4893 CC="$ax_pthread_save_CC"
4894 CFLAGS="$ax_pthread_save_CFLAGS"
4895 LIBS="$ax_pthread_save_LIBS"
4896 fi
4897
4898 # We must check for the threads library under a number of different
4899 # names; the ordering is very important because some systems
4900 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4901 # libraries is broken (non-POSIX).
4902
4903 # Create a list of thread flags to try. Items starting with a "-" are
4904 # C compiler flags, and other items are library names, except for "none"
4905 # which indicates that we try without any flags at all, and "pthread-config"
4906 # which is a program returning the flags for the Pth emulation library.
4907
4908 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4909
4910 # The ordering *is* (sometimes) important. Some notes on the
4911 # individual items follow:
4912
4913 # pthreads: AIX (must check this before -lpthread)
4914 # none: in case threads are in libc; should be tried before -Kthread and
4915 # other compiler flags to prevent continual compiler warnings
4916 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4917 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
4918 # (Note: HP C rejects this with "bad form for `-t' option")
4919 # -pthreads: Solaris/gcc (Note: HP C also rejects)
4920 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4921 # doesn't hurt to check since this sometimes defines pthreads and
4922 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
4923 # is present but should not be used directly; and before -mthreads,
4924 # because the compiler interprets this as "-mt" + "-hreads")
4925 # -mthreads: Mingw32/gcc, Lynx/gcc
4926 # pthread: Linux, etcetera
4927 # --thread-safe: KAI C++
4928 # pthread-config: use pthread-config program (for GNU Pth library)
4929
4930 case $host_os in
4931
4932 freebsd*)
4933
4934 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4935 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4936
4937 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
4938 ;;
4939
4940 hpux*)
4941
4942 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
4943 # multi-threading and also sets -lpthread."
4944
4945 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
4946 ;;
4947
4948 openedition*)
4949
4950 # IBM z/OS requires a feature-test macro to be defined in order to
4951 # enable POSIX threads at all, so give the user a hint if this is
4952 # not set. (We don't define these ourselves, as they can affect
4953 # other portions of the system API in unpredictable ways.)
4954
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957
4958 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
4959 AX_PTHREAD_ZOS_MISSING
4960 # endif
4961
4962 _ACEOF
4963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4964 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
4966 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
4967 fi
4968 rm -f conftest*
4969
4970 ;;
4971
4972 solaris*)
4973
4974 # On Solaris (at least, for some versions), libc contains stubbed
4975 # (non-functional) versions of the pthreads routines, so link-based
4976 # tests will erroneously succeed. (N.B.: The stubs are missing
4977 # pthread_cleanup_push, or rather a function called by this macro,
4978 # so we could check for that, but who knows whether they'll stub
4979 # that too in a future libc.) So we'll check first for the
4980 # standard Solaris way of linking pthreads (-mt -lpthread).
4981
4982 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
4983 ;;
4984 esac
4985
4986 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
4987
4988 if test "x$GCC" = "xyes"; then :
4989 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
4990 fi
4991
4992 # The presence of a feature test macro requesting re-entrant function
4993 # definitions is, on some systems, a strong hint that pthreads support is
4994 # correctly enabled
4995
4996 case $host_os in
4997 darwin* | hpux* | linux* | osf* | solaris*)
4998 ax_pthread_check_macro="_REENTRANT"
4999 ;;
5000
5001 aix*)
5002 ax_pthread_check_macro="_THREAD_SAFE"
5003 ;;
5004
5005 *)
5006 ax_pthread_check_macro="--"
5007 ;;
5008 esac
5009 if test "x$ax_pthread_check_macro" = "x--"; then :
5010 ax_pthread_check_cond=0
5011 else
5012 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
5013 fi
5014
5015 # Are we compiling with Clang?
5016
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
5018 $as_echo_n "checking whether $CC is Clang... " >&6; }
5019 if ${ax_cv_PTHREAD_CLANG+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 ax_cv_PTHREAD_CLANG=no
5023 # Note that Autoconf sets GCC=yes for Clang as well as GCC
5024 if test "x$GCC" = "xyes"; then
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h. */
5027 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
5028 # if defined(__clang__) && defined(__llvm__)
5029 AX_PTHREAD_CC_IS_CLANG
5030 # endif
5031
5032 _ACEOF
5033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
5035 ax_cv_PTHREAD_CLANG=yes
5036 fi
5037 rm -f conftest*
5038
5039 fi
5040
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
5043 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
5044 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
5045
5046 ax_pthread_clang_warning=no
5047
5048 # Clang needs special handling, because older versions handle the -pthread
5049 # option in a rather... idiosyncratic way
5050
5051 if test "x$ax_pthread_clang" = "xyes"; then
5052
5053 # Clang takes -pthread; it has never supported any other flag
5054
5055 # (Note 1: This will need to be revisited if a system that Clang
5056 # supports has POSIX threads in a separate library. This tends not
5057 # to be the way of modern systems, but it's conceivable.)
5058
5059 # (Note 2: On some systems, notably Darwin, -pthread is not needed
5060 # to get POSIX threads support; the API is always present and
5061 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
5062 # -pthread does define _REENTRANT, and while the Darwin headers
5063 # ignore this macro, third-party headers might not.)
5064
5065 PTHREAD_CFLAGS="-pthread"
5066 PTHREAD_LIBS=
5067
5068 ax_pthread_ok=yes
5069
5070 # However, older versions of Clang make a point of warning the user
5071 # that, in an invocation where only linking and no compilation is
5072 # taking place, the -pthread option has no effect ("argument unused
5073 # during compilation"). They expect -pthread to be passed in only
5074 # when source code is being compiled.
5075 #
5076 # Problem is, this is at odds with the way Automake and most other
5077 # C build frameworks function, which is that the same flags used in
5078 # compilation (CFLAGS) are also used in linking. Many systems
5079 # supported by AX_PTHREAD require exactly this for POSIX threads
5080 # support, and in fact it is often not straightforward to specify a
5081 # flag that is used only in the compilation phase and not in
5082 # linking. Such a scenario is extremely rare in practice.
5083 #
5084 # Even though use of the -pthread flag in linking would only print
5085 # a warning, this can be a nuisance for well-run software projects
5086 # that build with -Werror. So if the active version of Clang has
5087 # this misfeature, we search for an option to squash it.
5088
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
5090 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
5091 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
5095 # Create an alternate version of $ac_link that compiles and
5096 # links in two steps (.c -> .o, .o -> exe) instead of one
5097 # (.c -> exe), because the warning occurs only in the second
5098 # step
5099 ax_pthread_save_ac_link="$ac_link"
5100 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
5101 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
5102 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
5103 ax_pthread_save_CFLAGS="$CFLAGS"
5104 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
5105 if test "x$ax_pthread_try" = "xunknown"; then :
5106 break
5107 fi
5108 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
5109 ac_link="$ax_pthread_save_ac_link"
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5112 int main(void){return 0;}
5113 _ACEOF
5114 if ac_fn_c_try_link "$LINENO"; then :
5115 ac_link="$ax_pthread_2step_ac_link"
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 int main(void){return 0;}
5119 _ACEOF
5120 if ac_fn_c_try_link "$LINENO"; then :
5121 break
5122 fi
5123 rm -f core conftest.err conftest.$ac_objext \
5124 conftest$ac_exeext conftest.$ac_ext
5125
5126 fi
5127 rm -f core conftest.err conftest.$ac_objext \
5128 conftest$ac_exeext conftest.$ac_ext
5129 done
5130 ac_link="$ax_pthread_save_ac_link"
5131 CFLAGS="$ax_pthread_save_CFLAGS"
5132 if test "x$ax_pthread_try" = "x"; then :
5133 ax_pthread_try=no
5134 fi
5135 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
5136
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
5139 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
5140
5141 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
5142 no | unknown) ;;
5143 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
5144 esac
5145
5146 fi # $ax_pthread_clang = yes
5147
5148 if test "x$ax_pthread_ok" = "xno"; then
5149 for ax_pthread_try_flag in $ax_pthread_flags; do
5150
5151 case $ax_pthread_try_flag in
5152 none)
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5154 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
5155 ;;
5156
5157 -mt,pthread)
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
5159 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
5160 PTHREAD_CFLAGS="-mt"
5161 PTHREAD_LIBS="-lpthread"
5162 ;;
5163
5164 -*)
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
5166 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
5167 PTHREAD_CFLAGS="$ax_pthread_try_flag"
5168 ;;
5169
5170 pthread-config)
5171 # Extract the first word of "pthread-config", so it can be a program name with args.
5172 set dummy pthread-config; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_prog_ax_pthread_config+:} false; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$ax_pthread_config"; then
5179 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_prog_ax_pthread_config="yes"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
5197 fi
5198 fi
5199 ax_pthread_config=$ac_cv_prog_ax_pthread_config
5200 if test -n "$ax_pthread_config"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
5202 $as_echo "$ax_pthread_config" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207
5208
5209 if test "x$ax_pthread_config" = "xno"; then :
5210 continue
5211 fi
5212 PTHREAD_CFLAGS="`pthread-config --cflags`"
5213 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5214 ;;
5215
5216 *)
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
5218 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
5219 PTHREAD_LIBS="-l$ax_pthread_try_flag"
5220 ;;
5221 esac
5222
5223 ax_pthread_save_CFLAGS="$CFLAGS"
5224 ax_pthread_save_LIBS="$LIBS"
5225 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5226 LIBS="$PTHREAD_LIBS $LIBS"
5227
5228 # Check for various functions. We must include pthread.h,
5229 # since some functions may be macros. (On the Sequent, we
5230 # need a special flag -Kthread to make this header compile.)
5231 # We check for pthread_join because it is in -lpthread on IRIX
5232 # while pthread_create is in libc. We check for pthread_attr_init
5233 # due to DEC craziness with -lpthreads. We check for
5234 # pthread_cleanup_push because it is one of the few pthread
5235 # functions on Solaris that doesn't have a non-functional libc stub.
5236 # We try pthread_create on general principles.
5237
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240 #include <pthread.h>
5241 # if $ax_pthread_check_cond
5242 # error "$ax_pthread_check_macro must be defined"
5243 # endif
5244 static void routine(void *a) { a = 0; }
5245 static void *start_routine(void *a) { return a; }
5246 int
5247 main ()
5248 {
5249 pthread_t th; pthread_attr_t attr;
5250 pthread_create(&th, 0, start_routine, 0);
5251 pthread_join(th, 0);
5252 pthread_attr_init(&attr);
5253 pthread_cleanup_push(routine, 0);
5254 pthread_cleanup_pop(0) /* ; */
5255 ;
5256 return 0;
5257 }
5258 _ACEOF
5259 if ac_fn_c_try_link "$LINENO"; then :
5260 ax_pthread_ok=yes
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext \
5263 conftest$ac_exeext conftest.$ac_ext
5264
5265 CFLAGS="$ax_pthread_save_CFLAGS"
5266 LIBS="$ax_pthread_save_LIBS"
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5269 $as_echo "$ax_pthread_ok" >&6; }
5270 if test "x$ax_pthread_ok" = "xyes"; then :
5271 break
5272 fi
5273
5274 PTHREAD_LIBS=""
5275 PTHREAD_CFLAGS=""
5276 done
5277 fi
5278
5279 # Various other checks:
5280 if test "x$ax_pthread_ok" = "xyes"; then
5281 ax_pthread_save_CFLAGS="$CFLAGS"
5282 ax_pthread_save_LIBS="$LIBS"
5283 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5284 LIBS="$PTHREAD_LIBS $LIBS"
5285
5286 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
5288 $as_echo_n "checking for joinable pthread attribute... " >&6; }
5289 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
5293 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 #include <pthread.h>
5297 int
5298 main ()
5299 {
5300 int attr = $ax_pthread_attr; return attr /* ; */
5301 ;
5302 return 0;
5303 }
5304 _ACEOF
5305 if ac_fn_c_try_link "$LINENO"; then :
5306 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext \
5309 conftest$ac_exeext conftest.$ac_ext
5310 done
5311
5312 fi
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
5314 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
5315 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
5316 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
5317 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
5318
5319 cat >>confdefs.h <<_ACEOF
5320 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
5321 _ACEOF
5322
5323 ax_pthread_joinable_attr_defined=yes
5324
5325 fi
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
5328 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
5329 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 ax_cv_PTHREAD_SPECIAL_FLAGS=no
5333 case $host_os in
5334 solaris*)
5335 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
5336 ;;
5337 esac
5338
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
5341 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
5342 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
5343 test "x$ax_pthread_special_flags_added" != "xyes"; then :
5344 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
5345 ax_pthread_special_flags_added=yes
5346 fi
5347
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
5349 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
5350 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355 #include <pthread.h>
5356 int
5357 main ()
5358 {
5359 int i = PTHREAD_PRIO_INHERIT;
5360 ;
5361 return 0;
5362 }
5363 _ACEOF
5364 if ac_fn_c_try_link "$LINENO"; then :
5365 ax_cv_PTHREAD_PRIO_INHERIT=yes
5366 else
5367 ax_cv_PTHREAD_PRIO_INHERIT=no
5368 fi
5369 rm -f core conftest.err conftest.$ac_objext \
5370 conftest$ac_exeext conftest.$ac_ext
5371
5372 fi
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
5374 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
5375 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
5376 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
5377
5378 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
5379
5380 ax_pthread_prio_inherit_defined=yes
5381
5382 fi
5383
5384 CFLAGS="$ax_pthread_save_CFLAGS"
5385 LIBS="$ax_pthread_save_LIBS"
5386
5387 # More AIX lossage: compile with *_r variant
5388 if test "x$GCC" != "xyes"; then
5389 case $host_os in
5390 aix*)
5391 case "x/$CC" in #(
5392 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
5393 #handle absolute path differently from PATH based program lookup
5394 case "x$CC" in #(
5395 x/*) :
5396 if as_fn_executable_p ${CC}_r; then :
5397 PTHREAD_CC="${CC}_r"
5398 fi ;; #(
5399 *) :
5400 for ac_prog in ${CC}_r
5401 do
5402 # Extract the first word of "$ac_prog", so it can be a program name with args.
5403 set dummy $ac_prog; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 if test -n "$PTHREAD_CC"; then
5410 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5411 else
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_PTHREAD_CC="$ac_prog"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 break 2
5422 fi
5423 done
5424 done
5425 IFS=$as_save_IFS
5426
5427 fi
5428 fi
5429 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5430 if test -n "$PTHREAD_CC"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
5432 $as_echo "$PTHREAD_CC" >&6; }
5433 else
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5436 fi
5437
5438
5439 test -n "$PTHREAD_CC" && break
5440 done
5441 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
5442 ;;
5443 esac ;; #(
5444 *) :
5445 ;;
5446 esac
5447 ;;
5448 esac
5449 fi
5450 fi
5451
5452 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
5453
5454
5455
5456
5457
5458 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5459 if test "x$ax_pthread_ok" = "xyes"; then
5460
5461
5462 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
5463
5464 with_threads="yes"
5465 LIBS="$PTHREAD_LIBS $LIBS"
5466 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5467 CC="$PTHREAD_CC"
5468 :
5469 else
5470 ax_pthread_ok=no
5471
5472 fi
5473 ac_ext=c
5474 ac_cpp='$CPP $CPPFLAGS'
5475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478
5479
5480
5481 else
5482 with_threads="no"
5483 fi
5484
5485
5486 # Check whether --with-safecode was given.
5487 if test "${with_safecode+set}" = set; then :
5488 withval=$with_safecode; if test "x$withval" = "xyes"; then :
5489
5490
5491 : ${SAFECODE_HOME:=/opt/safecode}
5492 LDFLAGS="$LDFLAGS -L${SAFECODE_HOME}/lib"
5493 LIBS="$LIBS -lsc_dbg_rt -lpoolalloc_bitmap -lstdc++"
5494 CFLAGS="$CFLAGS -fmemsafety"
5495
5496 fi
5497
5498 fi
5499
5500
5501
5502 # Check whether --with-ctgrind was given.
5503 if test "${with_ctgrind+set}" = set; then :
5504 withval=$with_ctgrind; if test "x$withval" = "xyes"; then :
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_poison in -lctgrind" >&5
5507 $as_echo_n "checking for ct_poison in -lctgrind... " >&6; }
5508 if ${ac_cv_lib_ctgrind_ct_poison+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 ac_check_lib_save_LIBS=$LIBS
5512 LIBS="-lctgrind $LIBS"
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515
5516 /* Override any GCC internal prototype to avoid an error.
5517 Use char because int might match the return type of a GCC
5518 builtin and then its argument prototype would still apply. */
5519 #ifdef __cplusplus
5520 extern "C"
5521 #endif
5522 char ct_poison ();
5523 int
5524 main ()
5525 {
5526 return ct_poison ();
5527 ;
5528 return 0;
5529 }
5530 _ACEOF
5531 if ac_fn_c_try_link "$LINENO"; then :
5532 ac_cv_lib_ctgrind_ct_poison=yes
5533 else
5534 ac_cv_lib_ctgrind_ct_poison=no
5535 fi
5536 rm -f core conftest.err conftest.$ac_objext \
5537 conftest$ac_exeext conftest.$ac_ext
5538 LIBS=$ac_check_lib_save_LIBS
5539 fi
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ctgrind_ct_poison" >&5
5541 $as_echo "$ac_cv_lib_ctgrind_ct_poison" >&6; }
5542 if test "x$ac_cv_lib_ctgrind_ct_poison" = xyes; then :
5543 cat >>confdefs.h <<_ACEOF
5544 #define HAVE_LIBCTGRIND 1
5545 _ACEOF
5546
5547 LIBS="-lctgrind $LIBS"
5548
5549 fi
5550
5551
5552 fi
5553
5554 fi
5555
5556
5557 ENABLE_CWFLAGS=no
5558 # Check whether --enable-debug was given.
5559 if test "${enable_debug+set}" = set; then :
5560 enableval=$enable_debug;
5561 if test "x$enableval" = "xyes"; then :
5562
5563 if test "x$LX_CFLAGS" = "xNONE"; then :
5564
5565 nxflags=""
5566 for flag in `echo $CFLAGS`; do
5567 case $flag in #(
5568 -O*) :
5569 ;; #(
5570 -g*) :
5571 ;; #(
5572 *) :
5573 as_fn_append nxflags " $flag" ;; #(
5574 *) :
5575 ;;
5576 esac
5577 done
5578 CFLAGS="$nxflags -O -g3"
5579
5580 fi
5581 ENABLE_CWFLAGS=yes
5582 CPPFLAGS="$CPPFLAGS -DDEBUG=1 -U_FORTIFY_SOURCE"
5583
5584 fi
5585
5586 fi
5587
5588
5589 # Check whether --enable-opt was given.
5590 if test "${enable_opt+set}" = set; then :
5591 enableval=$enable_opt;
5592 if test "x$enableval" = "xyes"; then :
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Ofast" >&5
5595 $as_echo_n "checking whether C compiler accepts -Ofast... " >&6; }
5596 if ${ax_cv_check_cflags___Ofast+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599
5600 ax_check_save_flags=$CFLAGS
5601 CFLAGS="$CFLAGS -Ofast"
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604 #include <time.h>
5605 int
5606 main ()
5607 {
5608 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5609 ;
5610 return 0;
5611 }
5612 _ACEOF
5613 if ac_fn_c_try_link "$LINENO"; then :
5614 ax_cv_check_cflags___Ofast=yes
5615 else
5616 ax_cv_check_cflags___Ofast=no
5617 fi
5618 rm -f core conftest.err conftest.$ac_objext \
5619 conftest$ac_exeext conftest.$ac_ext
5620 CFLAGS=$ax_check_save_flags
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Ofast" >&5
5623 $as_echo "$ax_cv_check_cflags___Ofast" >&6; }
5624 if test "x$ax_cv_check_cflags___Ofast" = xyes; then :
5625 CFLAGS="$CFLAGS -Ofast"
5626 else
5627 :
5628 fi
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fomit-frame-pointer" >&5
5631 $as_echo_n "checking whether C compiler accepts -fomit-frame-pointer... " >&6; }
5632 if ${ax_cv_check_cflags___fomit_frame_pointer+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635
5636 ax_check_save_flags=$CFLAGS
5637 CFLAGS="$CFLAGS -fomit-frame-pointer"
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 #include <time.h>
5641 int
5642 main ()
5643 {
5644 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5645 ;
5646 return 0;
5647 }
5648 _ACEOF
5649 if ac_fn_c_try_link "$LINENO"; then :
5650 ax_cv_check_cflags___fomit_frame_pointer=yes
5651 else
5652 ax_cv_check_cflags___fomit_frame_pointer=no
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext \
5655 conftest$ac_exeext conftest.$ac_ext
5656 CFLAGS=$ax_check_save_flags
5657 fi
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fomit_frame_pointer" >&5
5659 $as_echo "$ax_cv_check_cflags___fomit_frame_pointer" >&6; }
5660 if test "x$ax_cv_check_cflags___fomit_frame_pointer" = xyes; then :
5661 CFLAGS="$CFLAGS -fomit-frame-pointer"
5662 else
5663 :
5664 fi
5665
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=native" >&5
5667 $as_echo_n "checking whether C compiler accepts -march=native... " >&6; }
5668 if ${ax_cv_check_cflags___march_native+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671
5672 ax_check_save_flags=$CFLAGS
5673 CFLAGS="$CFLAGS -march=native"
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #include <time.h>
5677 int
5678 main ()
5679 {
5680 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_link "$LINENO"; then :
5686 ax_cv_check_cflags___march_native=yes
5687 else
5688 ax_cv_check_cflags___march_native=no
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext \
5691 conftest$ac_exeext conftest.$ac_ext
5692 CFLAGS=$ax_check_save_flags
5693 fi
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___march_native" >&5
5695 $as_echo "$ax_cv_check_cflags___march_native" >&6; }
5696 if test "x$ax_cv_check_cflags___march_native" = xyes; then :
5697 CFLAGS="$CFLAGS -march=native"
5698 else
5699 :
5700 fi
5701
5702
5703 fi
5704
5705 fi
5706
5707
5708
5709
5710
5711 # Check whether --enable-valgrind was given.
5712 if test "${enable_valgrind+set}" = set; then :
5713 enableval=$enable_valgrind; enable_valgrind=$enableval
5714 else
5715 enable_valgrind=no
5716 fi
5717
5718
5719 if test "$enable_valgrind" != "no"; then :
5720
5721 # Check for Valgrind.
5722 # Extract the first word of "valgrind", so it can be a program name with args.
5723 set dummy valgrind; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if ${ac_cv_prog_VALGRIND+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if test -n "$VALGRIND"; then
5730 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
5731 else
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5734 do
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_prog_VALGRIND="valgrind"
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5742 fi
5743 done
5744 done
5745 IFS=$as_save_IFS
5746
5747 fi
5748 fi
5749 VALGRIND=$ac_cv_prog_VALGRIND
5750 if test -n "$VALGRIND"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
5752 $as_echo "$VALGRIND" >&6; }
5753 else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5756 fi
5757
5758
5759 if test "$VALGRIND" = ""; then :
5760
5761 if test "$enable_valgrind" = "yes"; then :
5762
5763 as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5
5764
5765 else
5766
5767 enable_valgrind=no
5768
5769 fi
5770
5771 else
5772
5773 enable_valgrind=yes
5774
5775 fi
5776
5777 fi
5778
5779 if test "$enable_valgrind" = "yes"; then
5780 VALGRIND_ENABLED_TRUE=
5781 VALGRIND_ENABLED_FALSE='#'
5782 else
5783 VALGRIND_ENABLED_TRUE='#'
5784 VALGRIND_ENABLED_FALSE=
5785 fi
5786
5787 VALGRIND_ENABLED=$enable_valgrind
5788
5789
5790 # Check for Valgrind tools we care about.
5791 valgrind_enabled_tools=
5792
5793 # Check whether --enable-valgrind-memcheck was given.
5794 if test "${enable_valgrind_memcheck+set}" = set; then :
5795 enableval=$enable_valgrind_memcheck; enable_valgrind_memcheck=$enableval
5796 else
5797 enable_valgrind_memcheck=
5798 fi
5799
5800 if test "$enable_valgrind" = "no"; then :
5801
5802 enable_valgrind_memcheck=no
5803 elif test "$enable_valgrind_memcheck" != "no"; then :
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5
5806 $as_echo_n "checking for Valgrind tool memcheck... " >&6; }
5807 if ${ax_cv_valgrind_tool_memcheck+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810
5811 ax_cv_valgrind_tool_memcheck=no
5812
5813 if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1`; then :
5814
5815 ax_cv_valgrind_tool_memcheck=yes
5816
5817 fi
5818
5819 fi
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5
5821 $as_echo "$ax_cv_valgrind_tool_memcheck" >&6; }
5822 if test "$ax_cv_valgrind_tool_memcheck" = "no"; then :
5823
5824 if test "$enable_valgrind_memcheck" = "yes"; then :
5825
5826 as_fn_error $? "Valgrind does not support memcheck; reconfigure with --disable-valgrind-memcheck" "$LINENO" 5
5827
5828 else
5829
5830 enable_valgrind_memcheck=no
5831
5832 fi
5833
5834 else
5835
5836 enable_valgrind_memcheck=yes
5837
5838 fi
5839
5840 fi
5841 if test "$enable_valgrind_memcheck" = "yes"; then :
5842
5843 valgrind_enabled_tools="$valgrind_enabled_tools memcheck"
5844
5845 fi
5846 ENABLE_VALGRIND_memcheck=$enable_valgrind_memcheck
5847
5848
5849 # Check whether --enable-valgrind-helgrind was given.
5850 if test "${enable_valgrind_helgrind+set}" = set; then :
5851 enableval=$enable_valgrind_helgrind; enable_valgrind_helgrind=$enableval
5852 else
5853 enable_valgrind_helgrind=
5854 fi
5855
5856 if test "$enable_valgrind" = "no"; then :
5857
5858 enable_valgrind_helgrind=no
5859 elif test "$enable_valgrind_helgrind" != "no"; then :
5860
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool helgrind" >&5
5862 $as_echo_n "checking for Valgrind tool helgrind... " >&6; }
5863 if ${ax_cv_valgrind_tool_helgrind+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866
5867 ax_cv_valgrind_tool_helgrind=no
5868
5869 if `$VALGRIND --tool=helgrind --help >/dev/null 2>&1`; then :
5870
5871 ax_cv_valgrind_tool_helgrind=yes
5872
5873 fi
5874
5875 fi
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_helgrind" >&5
5877 $as_echo "$ax_cv_valgrind_tool_helgrind" >&6; }
5878 if test "$ax_cv_valgrind_tool_helgrind" = "no"; then :
5879
5880 if test "$enable_valgrind_helgrind" = "yes"; then :
5881
5882 as_fn_error $? "Valgrind does not support helgrind; reconfigure with --disable-valgrind-helgrind" "$LINENO" 5
5883
5884 else
5885
5886 enable_valgrind_helgrind=no
5887
5888 fi
5889
5890 else
5891
5892 enable_valgrind_helgrind=yes
5893
5894 fi
5895
5896 fi
5897 if test "$enable_valgrind_helgrind" = "yes"; then :
5898
5899 valgrind_enabled_tools="$valgrind_enabled_tools helgrind"
5900
5901 fi
5902 ENABLE_VALGRIND_helgrind=$enable_valgrind_helgrind
5903
5904
5905 # Check whether --enable-valgrind-drd was given.
5906 if test "${enable_valgrind_drd+set}" = set; then :
5907 enableval=$enable_valgrind_drd; enable_valgrind_drd=$enableval
5908 else
5909 enable_valgrind_drd=
5910 fi
5911
5912 if test "$enable_valgrind" = "no"; then :
5913
5914 enable_valgrind_drd=no
5915 elif test "$enable_valgrind_drd" != "no"; then :
5916
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool drd" >&5
5918 $as_echo_n "checking for Valgrind tool drd... " >&6; }
5919 if ${ax_cv_valgrind_tool_drd+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922
5923 ax_cv_valgrind_tool_drd=no
5924
5925 if `$VALGRIND --tool=drd --help >/dev/null 2>&1`; then :
5926
5927 ax_cv_valgrind_tool_drd=yes
5928
5929 fi
5930
5931 fi
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_drd" >&5
5933 $as_echo "$ax_cv_valgrind_tool_drd" >&6; }
5934 if test "$ax_cv_valgrind_tool_drd" = "no"; then :
5935
5936 if test "$enable_valgrind_drd" = "yes"; then :
5937
5938 as_fn_error $? "Valgrind does not support drd; reconfigure with --disable-valgrind-drd" "$LINENO" 5
5939
5940 else
5941
5942 enable_valgrind_drd=no
5943
5944 fi
5945
5946 else
5947
5948 enable_valgrind_drd=yes
5949
5950 fi
5951
5952 fi
5953 if test "$enable_valgrind_drd" = "yes"; then :
5954
5955 valgrind_enabled_tools="$valgrind_enabled_tools drd"
5956
5957 fi
5958 ENABLE_VALGRIND_drd=$enable_valgrind_drd
5959
5960
5961 # Check whether --enable-valgrind-sgcheck was given.
5962 if test "${enable_valgrind_sgcheck+set}" = set; then :
5963 enableval=$enable_valgrind_sgcheck; enable_valgrind_sgcheck=$enableval
5964 else
5965 enable_valgrind_sgcheck=
5966 fi
5967
5968 if test "$enable_valgrind" = "no"; then :
5969
5970 enable_valgrind_sgcheck=no
5971 elif test "$enable_valgrind_sgcheck" != "no"; then :
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool sgcheck" >&5
5974 $as_echo_n "checking for Valgrind tool sgcheck... " >&6; }
5975 if ${ax_cv_valgrind_tool_sgcheck+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978
5979 ax_cv_valgrind_tool_sgcheck=no
5980
5981 if `$VALGRIND --tool=exp-sgcheck --help >/dev/null 2>&1`; then :
5982
5983 ax_cv_valgrind_tool_sgcheck=yes
5984
5985 fi
5986
5987 fi
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_sgcheck" >&5
5989 $as_echo "$ax_cv_valgrind_tool_sgcheck" >&6; }
5990 if test "$ax_cv_valgrind_tool_sgcheck" = "no"; then :
5991
5992 if test "$enable_valgrind_sgcheck" = "yes"; then :
5993
5994 as_fn_error $? "Valgrind does not support sgcheck; reconfigure with --disable-valgrind-sgcheck" "$LINENO" 5
5995
5996 else
5997
5998 enable_valgrind_sgcheck=no
5999
6000 fi
6001
6002 else
6003
6004 enable_valgrind_sgcheck=yes
6005
6006 fi
6007
6008 fi
6009 if test "$enable_valgrind_sgcheck" = "yes"; then :
6010
6011 valgrind_enabled_tools="$valgrind_enabled_tools sgcheck"
6012
6013 fi
6014 ENABLE_VALGRIND_sgcheck=$enable_valgrind_sgcheck
6015
6016
6017 valgrind_tools="memcheck helgrind drd sgcheck"
6018
6019 valgrind_enabled_tools=$valgrind_enabled_tools
6020
6021
6022 VALGRIND_CHECK_RULES='
6023 # Valgrind check
6024 #
6025 # Optional:
6026 # - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions
6027 # files to load. (Default: empty)
6028 # - VALGRIND_FLAGS: General flags to pass to all Valgrind tools.
6029 # (Default: --num-callers=30)
6030 # - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of:
6031 # memcheck, helgrind, drd, sgcheck). (Default: various)
6032
6033 # Optional variables
6034 VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES))
6035 VALGRIND_FLAGS ?= --num-callers=30
6036 VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no
6037 VALGRIND_helgrind_FLAGS ?= --history-level=approx
6038 VALGRIND_drd_FLAGS ?=
6039 VALGRIND_sgcheck_FLAGS ?=
6040
6041 # Internal use
6042 valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools)))
6043
6044 valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS)
6045 valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS)
6046 valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS)
6047 valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS)
6048
6049 valgrind_quiet = $(valgrind_quiet_$(V))
6050 valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY))
6051 valgrind_quiet_0 = --quiet
6052 valgrind_v_use = $(valgrind_v_use_$(V))
6053 valgrind_v_use_ = $(valgrind_v_use_$(AM_DEFAULT_VERBOSITY))
6054 valgrind_v_use_0 = @echo " USE " $(patsubst check-valgrind-%,%,$''@):;
6055
6056 # Support running with and without libtool.
6057 ifneq ($(LIBTOOL),)
6058 valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute
6059 else
6060 valgrind_lt =
6061 endif
6062
6063 # Use recursive makes in order to ignore errors during check
6064 check-valgrind:
6065 ifeq ($(VALGRIND_ENABLED),yes)
6066 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k \
6067 $(foreach tool, $(valgrind_enabled_tools), check-valgrind-$(tool))
6068 else
6069 @echo "Need to use GNU make and reconfigure with --enable-valgrind"
6070 endif
6071
6072 # Valgrind running
6073 VALGRIND_TESTS_ENVIRONMENT = \
6074 $(TESTS_ENVIRONMENT) \
6075 env VALGRIND=$(VALGRIND) \
6076 G_SLICE=always-malloc,debug-blocks \
6077 G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly
6078
6079 VALGRIND_LOG_COMPILER = \
6080 $(valgrind_lt) \
6081 $(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS)
6082
6083 define valgrind_tool_rule =
6084 check-valgrind-$(1):
6085 ifeq ($$(VALGRIND_ENABLED)-$$(ENABLE_VALGRIND_$(1)),yes-yes)
6086 $$(valgrind_v_use)$$(MAKE) check-TESTS \
6087 TESTS_ENVIRONMENT="$$(VALGRIND_TESTS_ENVIRONMENT)" \
6088 LOG_COMPILER="$$(VALGRIND_LOG_COMPILER)" \
6089 LOG_FLAGS="$$(valgrind_$(1)_flags)" \
6090 TEST_SUITE_LOG=test-suite-$(1).log
6091 else ifeq ($$(VALGRIND_ENABLED),yes)
6092 @echo "Need to reconfigure with --enable-valgrind-$(1)"
6093 else
6094 @echo "Need to reconfigure with --enable-valgrind"
6095 endif
6096 endef
6097
6098 $(foreach tool,$(valgrind_tools),$(eval $(call valgrind_tool_rule,$(tool))))
6099
6100 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
6101 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind
6102
6103 MOSTLYCLEANFILES ?=
6104 MOSTLYCLEANFILES += $(valgrind_log_files)
6105
6106 .PHONY: check-valgrind $(add-prefix check-valgrind-,$(valgrind_tools))
6107 '
6108
6109 if test "$enable_valgrind" != "yes"; then :
6110
6111 VALGRIND_CHECK_RULES='
6112 check-valgrind:
6113 @echo "Need to use GNU make and reconfigure with --enable-valgrind"'
6114
6115 fi
6116
6117
6118
6119
6120
6121
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6123 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6124 if ${ac_cv_prog_cc_c99+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 ac_cv_prog_cc_c99=no
6128 ac_save_CC=$CC
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131 #include <stdarg.h>
6132 #include <stdbool.h>
6133 #include <stdlib.h>
6134 #include <wchar.h>
6135 #include <stdio.h>
6136
6137 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6138 #define debug(...) fprintf (stderr, __VA_ARGS__)
6139 #define showlist(...) puts (#__VA_ARGS__)
6140 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6141 static void
6142 test_varargs_macros (void)
6143 {
6144 int x = 1234;
6145 int y = 5678;
6146 debug ("Flag");
6147 debug ("X = %d\n", x);
6148 showlist (The first, second, and third items.);
6149 report (x>y, "x is %d but y is %d", x, y);
6150 }
6151
6152 // Check long long types.
6153 #define BIG64 18446744073709551615ull
6154 #define BIG32 4294967295ul
6155 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6156 #if !BIG_OK
6157 your preprocessor is broken;
6158 #endif
6159 #if BIG_OK
6160 #else
6161 your preprocessor is broken;
6162 #endif
6163 static long long int bignum = -9223372036854775807LL;
6164 static unsigned long long int ubignum = BIG64;
6165
6166 struct incomplete_array
6167 {
6168 int datasize;
6169 double data[];
6170 };
6171
6172 struct named_init {
6173 int number;
6174 const wchar_t *name;
6175 double average;
6176 };
6177
6178 typedef const char *ccp;
6179
6180 static inline int
6181 test_restrict (ccp restrict text)
6182 {
6183 // See if C++-style comments work.
6184 // Iterate through items via the restricted pointer.
6185 // Also check for declarations in for loops.
6186 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6187 continue;
6188 return 0;
6189 }
6190
6191 // Check varargs and va_copy.
6192 static void
6193 test_varargs (const char *format, ...)
6194 {
6195 va_list args;
6196 va_start (args, format);
6197 va_list args_copy;
6198 va_copy (args_copy, args);
6199
6200 const char *str;
6201 int number;
6202 float fnumber;
6203
6204 while (*format)
6205 {
6206 switch (*format++)
6207 {
6208 case 's': // string
6209 str = va_arg (args_copy, const char *);
6210 break;
6211 case 'd': // int
6212 number = va_arg (args_copy, int);
6213 break;
6214 case 'f': // float
6215 fnumber = va_arg (args_copy, double);
6216 break;
6217 default:
6218 break;
6219 }
6220 }
6221 va_end (args_copy);
6222 va_end (args);
6223 }
6224
6225 int
6226 main ()
6227 {
6228
6229 // Check bool.
6230 _Bool success = false;
6231
6232 // Check restrict.
6233 if (test_restrict ("String literal") == 0)
6234 success = true;
6235 char *restrict newvar = "Another string";
6236
6237 // Check varargs.
6238 test_varargs ("s, d' f .", "string", 65, 34.234);
6239 test_varargs_macros ();
6240
6241 // Check flexible array members.
6242 struct incomplete_array *ia =
6243 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6244 ia->datasize = 10;
6245 for (int i = 0; i < ia->datasize; ++i)
6246 ia->data[i] = i * 1.234;
6247
6248 // Check named initializers.
6249 struct named_init ni = {
6250 .number = 34,
6251 .name = L"Test wide string",
6252 .average = 543.34343,
6253 };
6254
6255 ni.number = 58;
6256
6257 int dynamic_array[ni.number];
6258 dynamic_array[ni.number - 1] = 543;
6259
6260 // work around unused variable warnings
6261 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6262 || dynamic_array[ni.number - 1] != 543);
6263
6264 ;
6265 return 0;
6266 }
6267 _ACEOF
6268 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6269 do
6270 CC="$ac_save_CC $ac_arg"
6271 if ac_fn_c_try_compile "$LINENO"; then :
6272 ac_cv_prog_cc_c99=$ac_arg
6273 fi
6274 rm -f core conftest.err conftest.$ac_objext
6275 test "x$ac_cv_prog_cc_c99" != "xno" && break
6276 done
6277 rm -f conftest.$ac_ext
6278 CC=$ac_save_CC
6279
6280 fi
6281 # AC_CACHE_VAL
6282 case "x$ac_cv_prog_cc_c99" in
6283 x)
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6285 $as_echo "none needed" >&6; } ;;
6286 xno)
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6288 $as_echo "unsupported" >&6; } ;;
6289 *)
6290 CC="$CC $ac_cv_prog_cc_c99"
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6292 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6293 esac
6294 if test "x$ac_cv_prog_cc_c99" != xno; then :
6295
6296 fi
6297
6298
6299 # By default we simply use the C compiler to build assembly code.
6300
6301 test "${CCAS+set}" = set || CCAS=$CC
6302 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6303
6304
6305
6306 depcc="$CCAS" am_compiler_list=
6307
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6309 $as_echo_n "checking dependency style of $depcc... " >&6; }
6310 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6314 # We make a subdir and do the tests there. Otherwise we can end up
6315 # making bogus files that we don't know about and never remove. For
6316 # instance it was reported that on HP-UX the gcc test will end up
6317 # making a dummy file named 'D' -- because '-MD' means "put the output
6318 # in D".
6319 rm -rf conftest.dir
6320 mkdir conftest.dir
6321 # Copy depcomp to subdir because otherwise we won't find it if we're
6322 # using a relative directory.
6323 cp "$am_depcomp" conftest.dir
6324 cd conftest.dir
6325 # We will build objects and dependencies in a subdirectory because
6326 # it helps to detect inapplicable dependency modes. For instance
6327 # both Tru64's cc and ICC support -MD to output dependencies as a
6328 # side effect of compilation, but ICC will put the dependencies in
6329 # the current directory while Tru64 will put them in the object
6330 # directory.
6331 mkdir sub
6332
6333 am_cv_CCAS_dependencies_compiler_type=none
6334 if test "$am_compiler_list" = ""; then
6335 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6336 fi
6337 am__universal=false
6338
6339
6340 for depmode in $am_compiler_list; do
6341 # Setup a source with many dependencies, because some compilers
6342 # like to wrap large dependency lists on column 80 (with \), and
6343 # we should not choose a depcomp mode which is confused by this.
6344 #
6345 # We need to recreate these files for each test, as the compiler may
6346 # overwrite some of them when testing with obscure command lines.
6347 # This happens at least with the AIX C compiler.
6348 : > sub/conftest.c
6349 for i in 1 2 3 4 5 6; do
6350 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6351 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6352 # Solaris 10 /bin/sh.
6353 echo '/* dummy */' > sub/conftst$i.h
6354 done
6355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6356
6357 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6358 # mode. It turns out that the SunPro C++ compiler does not properly
6359 # handle '-M -o', and we need to detect this. Also, some Intel
6360 # versions had trouble with output in subdirs.
6361 am__obj=sub/conftest.${OBJEXT-o}
6362 am__minus_obj="-o $am__obj"
6363 case $depmode in
6364 gcc)
6365 # This depmode causes a compiler race in universal mode.
6366 test "$am__universal" = false || continue
6367 ;;
6368 nosideeffect)
6369 # After this tag, mechanisms are not by side-effect, so they'll
6370 # only be used when explicitly requested.
6371 if test "x$enable_dependency_tracking" = xyes; then
6372 continue
6373 else
6374 break
6375 fi
6376 ;;
6377 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6378 # This compiler won't grok '-c -o', but also, the minuso test has
6379 # not run yet. These depmodes are late enough in the game, and
6380 # so weak that their functioning should not be impacted.
6381 am__obj=conftest.${OBJEXT-o}
6382 am__minus_obj=
6383 ;;
6384 none) break ;;
6385 esac
6386 if depmode=$depmode \
6387 source=sub/conftest.c object=$am__obj \
6388 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6389 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6390 >/dev/null 2>conftest.err &&
6391 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6392 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6393 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6394 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6395 # icc doesn't choke on unknown options, it will just issue warnings
6396 # or remarks (even with -Werror). So we grep stderr for any message
6397 # that says an option was ignored or not supported.
6398 # When given -MP, icc 7.0 and 7.1 complain thusly:
6399 # icc: Command line warning: ignoring option '-M'; no argument required
6400 # The diagnosis changed in icc 8.0:
6401 # icc: Command line remark: option '-MP' not supported
6402 if (grep 'ignoring option' conftest.err ||
6403 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6404 am_cv_CCAS_dependencies_compiler_type=$depmode
6405 break
6406 fi
6407 fi
6408 done
6409
6410 cd ..
6411 rm -rf conftest.dir
6412 else
6413 am_cv_CCAS_dependencies_compiler_type=none
6414 fi
6415
6416 fi
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6418 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6419 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6420
6421 if
6422 test "x$enable_dependency_tracking" != xno \
6423 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6424 am__fastdepCCAS_TRUE=
6425 am__fastdepCCAS_FALSE='#'
6426 else
6427 am__fastdepCCAS_TRUE='#'
6428 am__fastdepCCAS_FALSE=
6429 fi
6430
6431
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6433 $as_echo_n "checking for ANSI C header files... " >&6; }
6434 if ${ac_cv_header_stdc+:} false; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439 #include <stdlib.h>
6440 #include <stdarg.h>
6441 #include <string.h>
6442 #include <float.h>
6443
6444 int
6445 main ()
6446 {
6447
6448 ;
6449 return 0;
6450 }
6451 _ACEOF
6452 if ac_fn_c_try_compile "$LINENO"; then :
6453 ac_cv_header_stdc=yes
6454 else
6455 ac_cv_header_stdc=no
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458
6459 if test $ac_cv_header_stdc = yes; then
6460 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463 #include <string.h>
6464
6465 _ACEOF
6466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6467 $EGREP "memchr" >/dev/null 2>&1; then :
6468
6469 else
6470 ac_cv_header_stdc=no
6471 fi
6472 rm -f conftest*
6473
6474 fi
6475
6476 if test $ac_cv_header_stdc = yes; then
6477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480 #include <stdlib.h>
6481
6482 _ACEOF
6483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 $EGREP "free" >/dev/null 2>&1; then :
6485
6486 else
6487 ac_cv_header_stdc=no
6488 fi
6489 rm -f conftest*
6490
6491 fi
6492
6493 if test $ac_cv_header_stdc = yes; then
6494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6495 if test "$cross_compiling" = yes; then :
6496 :
6497 else
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6500 #include <ctype.h>
6501 #include <stdlib.h>
6502 #if ((' ' & 0x0FF) == 0x020)
6503 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6504 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6505 #else
6506 # define ISLOWER(c) \
6507 (('a' <= (c) && (c) <= 'i') \
6508 || ('j' <= (c) && (c) <= 'r') \
6509 || ('s' <= (c) && (c) <= 'z'))
6510 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6511 #endif
6512
6513 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6514 int
6515 main ()
6516 {
6517 int i;
6518 for (i = 0; i < 256; i++)
6519 if (XOR (islower (i), ISLOWER (i))
6520 || toupper (i) != TOUPPER (i))
6521 return 2;
6522 return 0;
6523 }
6524 _ACEOF
6525 if ac_fn_c_try_run "$LINENO"; then :
6526
6527 else
6528 ac_cv_header_stdc=no
6529 fi
6530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6531 conftest.$ac_objext conftest.beam conftest.$ac_ext
6532 fi
6533
6534 fi
6535 fi
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6537 $as_echo "$ac_cv_header_stdc" >&6; }
6538 if test $ac_cv_header_stdc = yes; then
6539
6540 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6541
6542 fi
6543
6544 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6545 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6546 inttypes.h stdint.h unistd.h
6547 do :
6548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6549 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6550 "
6551 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6552 cat >>confdefs.h <<_ACEOF
6553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6554 _ACEOF
6555
6556 fi
6557
6558 done
6559
6560
6561
6562 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6563 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6564 MINIX=yes
6565 else
6566 MINIX=
6567 fi
6568
6569
6570 if test "$MINIX" = yes; then
6571
6572 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6573
6574
6575 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6576
6577
6578 $as_echo "#define _MINIX 1" >>confdefs.h
6579
6580 fi
6581
6582
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6584 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6585 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590
6591 # define __EXTENSIONS__ 1
6592 $ac_includes_default
6593 int
6594 main ()
6595 {
6596
6597 ;
6598 return 0;
6599 }
6600 _ACEOF
6601 if ac_fn_c_try_compile "$LINENO"; then :
6602 ac_cv_safe_to_define___extensions__=yes
6603 else
6604 ac_cv_safe_to_define___extensions__=no
6605 fi
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 fi
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6609 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6610 test $ac_cv_safe_to_define___extensions__ = yes &&
6611 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6612
6613 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6614
6615 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6616
6617 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6618
6619 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6620
6621
6622
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
6624 $as_echo_n "checking for variable-length arrays... " >&6; }
6625 if ${ac_cv_c_vararrays+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6630
6631 int
6632 main ()
6633 {
6634 static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0];
6635 ;
6636 return 0;
6637 }
6638 _ACEOF
6639 if ac_fn_c_try_compile "$LINENO"; then :
6640 ac_cv_c_vararrays=yes
6641 else
6642 ac_cv_c_vararrays=no
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 fi
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
6647 $as_echo "$ac_cv_c_vararrays" >&6; }
6648 if test $ac_cv_c_vararrays = yes; then
6649
6650 $as_echo "#define HAVE_C_VARARRAYS 1" >>confdefs.h
6651
6652 fi
6653
6654
6655
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __native_client__ defined" >&5
6657 $as_echo_n "checking for __native_client__ defined... " >&6; }
6658 if ${ac_cv_defined___native_client__+:} false; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663
6664 int
6665 main ()
6666 {
6667
6668 #ifdef __native_client__
6669 int ok;
6670 #else
6671 choke me
6672 #endif
6673
6674 ;
6675 return 0;
6676 }
6677 _ACEOF
6678 if ac_fn_c_try_compile "$LINENO"; then :
6679 ac_cv_defined___native_client__=yes
6680 else
6681 ac_cv_defined___native_client__=no
6682 fi
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 fi
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___native_client__" >&5
6686 $as_echo "$ac_cv_defined___native_client__" >&6; }
6687 if test $ac_cv_defined___native_client__ != "no"; then :
6688 NATIVECLIENT="yes"
6689 fi
6690
6691
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE defined" >&5
6693 $as_echo_n "checking for _FORTIFY_SOURCE defined... " >&6; }
6694 if ${ac_cv_defined__FORTIFY_SOURCE+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699
6700 int
6701 main ()
6702 {
6703
6704 #ifdef _FORTIFY_SOURCE
6705 int ok;
6706 #else
6707 choke me
6708 #endif
6709
6710 ;
6711 return 0;
6712 }
6713 _ACEOF
6714 if ac_fn_c_try_compile "$LINENO"; then :
6715 ac_cv_defined__FORTIFY_SOURCE=yes
6716 else
6717 ac_cv_defined__FORTIFY_SOURCE=no
6718 fi
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 fi
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__FORTIFY_SOURCE" >&5
6722 $as_echo "$ac_cv_defined__FORTIFY_SOURCE" >&6; }
6723 if test $ac_cv_defined__FORTIFY_SOURCE != "no"; then :
6724
6725 else
6726
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
6728 $as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
6729 if ${ax_cv_check_cflags___D_FORTIFY_SOURCE_2+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732
6733 ax_check_save_flags=$CFLAGS
6734 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737 #include <time.h>
6738 int
6739 main ()
6740 {
6741 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6742 ;
6743 return 0;
6744 }
6745 _ACEOF
6746 if ac_fn_c_try_link "$LINENO"; then :
6747 ax_cv_check_cflags___D_FORTIFY_SOURCE_2=yes
6748 else
6749 ax_cv_check_cflags___D_FORTIFY_SOURCE_2=no
6750 fi
6751 rm -f core conftest.err conftest.$ac_objext \
6752 conftest$ac_exeext conftest.$ac_ext
6753 CFLAGS=$ax_check_save_flags
6754 fi
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&5
6756 $as_echo "$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" >&6; }
6757 if test "x$ax_cv_check_cflags___D_FORTIFY_SOURCE_2" = xyes; then :
6758 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
6759 else
6760 :
6761 fi
6762
6763
6764 fi
6765
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
6767 $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
6768 if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771
6772 ax_check_save_flags=$CFLAGS
6773 CFLAGS="$CFLAGS -fvisibility=hidden"
6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6776 #include <time.h>
6777 int
6778 main ()
6779 {
6780 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6781 ;
6782 return 0;
6783 }
6784 _ACEOF
6785 if ac_fn_c_try_link "$LINENO"; then :
6786 ax_cv_check_cflags___fvisibility_hidden=yes
6787 else
6788 ax_cv_check_cflags___fvisibility_hidden=no
6789 fi
6790 rm -f core conftest.err conftest.$ac_objext \
6791 conftest$ac_exeext conftest.$ac_ext
6792 CFLAGS=$ax_check_save_flags
6793 fi
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
6795 $as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
6796 if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
6797 CFLAGS="$CFLAGS -fvisibility=hidden"
6798 else
6799 :
6800 fi
6801
6802
6803 case $host_os in #(
6804 cygwin*|mingw*|msys|pw32*|cegcc*) :
6805 ;; #(
6806 *) :
6807
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
6809 $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
6810 if ${ax_cv_check_cflags___fPIC+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813
6814 ax_check_save_flags=$CFLAGS
6815 CFLAGS="$CFLAGS -fPIC"
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 #include <time.h>
6819 int
6820 main ()
6821 {
6822 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6823 ;
6824 return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_link "$LINENO"; then :
6828 ax_cv_check_cflags___fPIC=yes
6829 else
6830 ax_cv_check_cflags___fPIC=no
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
6834 CFLAGS=$ax_check_save_flags
6835 fi
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
6837 $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
6838 if test "x$ax_cv_check_cflags___fPIC" = xyes; then :
6839 CFLAGS="$CFLAGS -fPIC"
6840 else
6841 :
6842 fi
6843
6844 ;;
6845 esac
6846
6847 if test "$enable_pie" != "no"; then :
6848
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
6850 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
6851 if ${ax_cv_check_cflags___fPIE+:} false; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854
6855 ax_check_save_flags=$CFLAGS
6856 CFLAGS="$CFLAGS -fPIE"
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <time.h>
6860 int
6861 main ()
6862 {
6863 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6864 ;
6865 return 0;
6866 }
6867 _ACEOF
6868 if ac_fn_c_try_link "$LINENO"; then :
6869 ax_cv_check_cflags___fPIE=yes
6870 else
6871 ax_cv_check_cflags___fPIE=no
6872 fi
6873 rm -f core conftest.err conftest.$ac_objext \
6874 conftest$ac_exeext conftest.$ac_ext
6875 CFLAGS=$ax_check_save_flags
6876 fi
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
6878 $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
6879 if test "x$ax_cv_check_cflags___fPIE" = xyes; then :
6880
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
6882 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
6883 if ${ax_cv_check_ldflags___pie+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886
6887 ax_check_save_flags=$LDFLAGS
6888 LDFLAGS="$LDFLAGS -pie"
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 #include <time.h>
6892 int
6893 main ()
6894 {
6895 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6896 ;
6897 return 0;
6898 }
6899 _ACEOF
6900 if ac_fn_c_try_link "$LINENO"; then :
6901 ax_cv_check_ldflags___pie=yes
6902 else
6903 ax_cv_check_ldflags___pie=no
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6907 LDFLAGS=$ax_check_save_flags
6908 fi
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
6910 $as_echo "$ax_cv_check_ldflags___pie" >&6; }
6911 if test "x$ax_cv_check_ldflags___pie" = xyes; then :
6912
6913 CFLAGS="$CFLAGS -fPIE"
6914 LDFLAGS="$LDFLAGS -pie"
6915
6916 else
6917 :
6918 fi
6919
6920
6921 else
6922 :
6923 fi
6924
6925
6926 fi
6927
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
6929 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
6930 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933
6934 ax_check_save_flags=$CFLAGS
6935 CFLAGS="$CFLAGS -fno-strict-aliasing"
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938 #include <time.h>
6939 int
6940 main ()
6941 {
6942 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6943 ;
6944 return 0;
6945 }
6946 _ACEOF
6947 if ac_fn_c_try_link "$LINENO"; then :
6948 ax_cv_check_cflags___fno_strict_aliasing=yes
6949 else
6950 ax_cv_check_cflags___fno_strict_aliasing=no
6951 fi
6952 rm -f core conftest.err conftest.$ac_objext \
6953 conftest$ac_exeext conftest.$ac_ext
6954 CFLAGS=$ax_check_save_flags
6955 fi
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
6957 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
6958 if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
6959 CFLAGS="$CFLAGS -fno-strict-aliasing"
6960 else
6961 :
6962 fi
6963
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
6965 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
6966 if ${ax_cv_check_cflags___fno_strict_overflow+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969
6970 ax_check_save_flags=$CFLAGS
6971 CFLAGS="$CFLAGS -fno-strict-overflow"
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 #include <time.h>
6975 int
6976 main ()
6977 {
6978 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
6979 ;
6980 return 0;
6981 }
6982 _ACEOF
6983 if ac_fn_c_try_link "$LINENO"; then :
6984 ax_cv_check_cflags___fno_strict_overflow=yes
6985 else
6986 ax_cv_check_cflags___fno_strict_overflow=no
6987 fi
6988 rm -f core conftest.err conftest.$ac_objext \
6989 conftest$ac_exeext conftest.$ac_ext
6990 CFLAGS=$ax_check_save_flags
6991 fi
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
6993 $as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
6994 if test "x$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
6995 CFLAGS="$CFLAGS -fno-strict-overflow"
6996 else
6997
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
6999 $as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
7000 if ${ax_cv_check_cflags___fwrapv+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003
7004 ax_check_save_flags=$CFLAGS
7005 CFLAGS="$CFLAGS -fwrapv"
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008 #include <time.h>
7009 int
7010 main ()
7011 {
7012 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7013 ;
7014 return 0;
7015 }
7016 _ACEOF
7017 if ac_fn_c_try_link "$LINENO"; then :
7018 ax_cv_check_cflags___fwrapv=yes
7019 else
7020 ax_cv_check_cflags___fwrapv=no
7021 fi
7022 rm -f core conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext
7024 CFLAGS=$ax_check_save_flags
7025 fi
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
7027 $as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
7028 if test "x$ax_cv_check_cflags___fwrapv" = xyes; then :
7029 CFLAGS="$CFLAGS -fwrapv"
7030 else
7031 :
7032 fi
7033
7034
7035 fi
7036
7037
7038 if test "$GCC" = "yes" ; then :
7039
7040 case $host_cpu in #(
7041 i?86|amd64|x86_64) :
7042
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7045
7046 #if !defined(__clang__) && defined(__GNUC__) && ((__GNUC__ << 8) | __GNUC_MINOR__) < 0x403
7047 # error old gcc
7048 #endif
7049 int main(void) { return 0; }
7050
7051 _ACEOF
7052 if ac_fn_c_try_compile "$LINENO"; then :
7053
7054 else
7055
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flax-vector-conversions" >&5
7057 $as_echo_n "checking whether C compiler accepts -flax-vector-conversions... " >&6; }
7058 if ${ax_cv_check_cflags___flax_vector_conversions+:} false; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061
7062 ax_check_save_flags=$CFLAGS
7063 CFLAGS="$CFLAGS -flax-vector-conversions"
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 #include <time.h>
7067 int
7068 main ()
7069 {
7070 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7071 ;
7072 return 0;
7073 }
7074 _ACEOF
7075 if ac_fn_c_try_link "$LINENO"; then :
7076 ax_cv_check_cflags___flax_vector_conversions=yes
7077 else
7078 ax_cv_check_cflags___flax_vector_conversions=no
7079 fi
7080 rm -f core conftest.err conftest.$ac_objext \
7081 conftest$ac_exeext conftest.$ac_ext
7082 CFLAGS=$ax_check_save_flags
7083 fi
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flax_vector_conversions" >&5
7085 $as_echo "$ax_cv_check_cflags___flax_vector_conversions" >&6; }
7086 if test "x$ax_cv_check_cflags___flax_vector_conversions" = xyes; then :
7087 CFLAGS="$CFLAGS -flax-vector-conversions"
7088 else
7089 :
7090 fi
7091
7092
7093 fi
7094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095
7096 ;; #(
7097 *) :
7098 ;;
7099 esac
7100
7101 fi
7102
7103 LIBTOOL_OLD_FLAGS="$LIBTOOL_EXTRA_FLAGS"
7104 LIBTOOL_EXTRA_FLAGS="$LIBTOOL_EXTRA_FLAGS -version-info $SODIUM_LIBRARY_VERSION"
7105 # Check whether --enable-soname-versions was given.
7106 if test "${enable_soname_versions+set}" = set; then :
7107 enableval=$enable_soname_versions;
7108 if test "x$enableval" = "xno"; then :
7109
7110 LIBTOOL_EXTRA_FLAGS="$LIBTOOL_OLD_FLAGS -avoid-version"
7111
7112 fi
7113
7114
7115 fi
7116
7117
7118 case $host_os in #(
7119 cygwin*|mingw*|msys|pw32*|cegcc*) :
7120
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
7122 $as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
7123 if ${ax_cv_check_ldflags___Wl___dynamicbase+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126
7127 ax_check_save_flags=$LDFLAGS
7128 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131 #include <time.h>
7132 int
7133 main ()
7134 {
7135 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7136 ;
7137 return 0;
7138 }
7139 _ACEOF
7140 if ac_fn_c_try_link "$LINENO"; then :
7141 ax_cv_check_ldflags___Wl___dynamicbase=yes
7142 else
7143 ax_cv_check_ldflags___Wl___dynamicbase=no
7144 fi
7145 rm -f core conftest.err conftest.$ac_objext \
7146 conftest$ac_exeext conftest.$ac_ext
7147 LDFLAGS=$ax_check_save_flags
7148 fi
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
7150 $as_echo "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
7151 if test "x$ax_cv_check_ldflags___Wl___dynamicbase" = xyes; then :
7152 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
7153 else
7154 :
7155 fi
7156
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--high-entropy-va" >&5
7158 $as_echo_n "checking whether the linker accepts -Wl,--high-entropy-va... " >&6; }
7159 if ${ax_cv_check_ldflags___Wl___high_entropy_va+:} false; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162
7163 ax_check_save_flags=$LDFLAGS
7164 LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7167 #include <time.h>
7168 int
7169 main ()
7170 {
7171 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7172 ;
7173 return 0;
7174 }
7175 _ACEOF
7176 if ac_fn_c_try_link "$LINENO"; then :
7177 ax_cv_check_ldflags___Wl___high_entropy_va=yes
7178 else
7179 ax_cv_check_ldflags___Wl___high_entropy_va=no
7180 fi
7181 rm -f core conftest.err conftest.$ac_objext \
7182 conftest$ac_exeext conftest.$ac_ext
7183 LDFLAGS=$ax_check_save_flags
7184 fi
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___high_entropy_va" >&5
7186 $as_echo "$ax_cv_check_ldflags___Wl___high_entropy_va" >&6; }
7187 if test "x$ax_cv_check_ldflags___Wl___high_entropy_va" = xyes; then :
7188 LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
7189 else
7190 :
7191 fi
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
7194 $as_echo_n "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
7195 if ${ax_cv_check_ldflags___Wl___nxcompat+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198
7199 ax_check_save_flags=$LDFLAGS
7200 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 #include <time.h>
7204 int
7205 main ()
7206 {
7207 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7208 ;
7209 return 0;
7210 }
7211 _ACEOF
7212 if ac_fn_c_try_link "$LINENO"; then :
7213 ax_cv_check_ldflags___Wl___nxcompat=yes
7214 else
7215 ax_cv_check_ldflags___Wl___nxcompat=no
7216 fi
7217 rm -f core conftest.err conftest.$ac_objext \
7218 conftest$ac_exeext conftest.$ac_ext
7219 LDFLAGS=$ax_check_save_flags
7220 fi
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
7222 $as_echo "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
7223 if test "x$ax_cv_check_ldflags___Wl___nxcompat" = xyes; then :
7224 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
7225 else
7226 :
7227 fi
7228
7229 ;; #(
7230 *) :
7231 ;;
7232 esac
7233
7234 case $host_os in #(
7235 cygwin*|mingw*|msys|pw32*|cegcc*) :
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-asynchronous-unwind-tables" >&5
7238 $as_echo_n "checking whether C compiler accepts -fno-asynchronous-unwind-tables... " >&6; }
7239 if ${ax_cv_check_cflags___fno_asynchronous_unwind_tables+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242
7243 ax_check_save_flags=$CFLAGS
7244 CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 #include <time.h>
7248 int
7249 main ()
7250 {
7251 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7252 ;
7253 return 0;
7254 }
7255 _ACEOF
7256 if ac_fn_c_try_link "$LINENO"; then :
7257 ax_cv_check_cflags___fno_asynchronous_unwind_tables=yes
7258 else
7259 ax_cv_check_cflags___fno_asynchronous_unwind_tables=no
7260 fi
7261 rm -f core conftest.err conftest.$ac_objext \
7262 conftest$ac_exeext conftest.$ac_ext
7263 CFLAGS=$ax_check_save_flags
7264 fi
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_asynchronous_unwind_tables" >&5
7266 $as_echo "$ax_cv_check_cflags___fno_asynchronous_unwind_tables" >&6; }
7267 if test "x$ax_cv_check_cflags___fno_asynchronous_unwind_tables" = xyes; then :
7268
7269 CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"
7270
7271 else
7272 :
7273 fi
7274
7275 ;; #(
7276 *) :
7277 ;;
7278 esac
7279
7280 if test "x$enable_ssp" != "xno"; then :
7281
7282
7283 case $host_os in #(
7284 cygwin*|mingw*|msys|pw32*|cegcc*) :
7285 ;; #(
7286 *) :
7287
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
7289 $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
7290 if ${ax_cv_check_cflags___fstack_protector+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293
7294 ax_check_save_flags=$CFLAGS
7295 CFLAGS="$CFLAGS -fstack-protector"
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7298 #include <time.h>
7299 int
7300 main ()
7301 {
7302 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7303 ;
7304 return 0;
7305 }
7306 _ACEOF
7307 if ac_fn_c_try_link "$LINENO"; then :
7308 ax_cv_check_cflags___fstack_protector=yes
7309 else
7310 ax_cv_check_cflags___fstack_protector=no
7311 fi
7312 rm -f core conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext conftest.$ac_ext
7314 CFLAGS=$ax_check_save_flags
7315 fi
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
7317 $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
7318 if test "x$ax_cv_check_cflags___fstack_protector" = xyes; then :
7319
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
7321 $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
7322 if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325
7326 ax_check_save_flags=$LDFLAGS
7327 LDFLAGS="$LDFLAGS -fstack-protector"
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 #include <time.h>
7331 int
7332 main ()
7333 {
7334 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7335 ;
7336 return 0;
7337 }
7338 _ACEOF
7339 if ac_fn_c_try_link "$LINENO"; then :
7340 ax_cv_check_ldflags___fstack_protector=yes
7341 else
7342 ax_cv_check_ldflags___fstack_protector=no
7343 fi
7344 rm -f core conftest.err conftest.$ac_objext \
7345 conftest$ac_exeext conftest.$ac_ext
7346 LDFLAGS=$ax_check_save_flags
7347 fi
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
7349 $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
7350 if test "x$ax_cv_check_ldflags___fstack_protector" = xyes; then :
7351 CFLAGS="$CFLAGS -fstack-protector"
7352
7353 else
7354 :
7355 fi
7356
7357
7358 else
7359 :
7360 fi
7361
7362 ;; #(
7363 *) :
7364 ;;
7365 esac
7366
7367 fi
7368
7369
7370
7371 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -Wall" | $as_tr_sh`
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -Wall" >&5
7373 $as_echo_n "checking whether C compiler accepts $CFLAGS -Wall... " >&6; }
7374 if eval \${$as_CACHEVAR+:} false; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377
7378 ax_check_save_flags=$CFLAGS
7379 CFLAGS="$CFLAGS $CFLAGS -Wall"
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7382 #include <time.h>
7383 int
7384 main ()
7385 {
7386 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7387 ;
7388 return 0;
7389 }
7390 _ACEOF
7391 if ac_fn_c_try_link "$LINENO"; then :
7392 eval "$as_CACHEVAR=yes"
7393 else
7394 eval "$as_CACHEVAR=no"
7395 fi
7396 rm -f core conftest.err conftest.$ac_objext \
7397 conftest$ac_exeext conftest.$ac_ext
7398 CFLAGS=$ax_check_save_flags
7399 fi
7400 eval ac_res=\$$as_CACHEVAR
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7402 $as_echo "$ac_res" >&6; }
7403 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7404 CWFLAGS="$CFLAGS -Wall"
7405 else
7406 :
7407 fi
7408
7409 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -Wextra" | $as_tr_sh`
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -Wextra" >&5
7411 $as_echo_n "checking whether C compiler accepts $CFLAGS -Wextra... " >&6; }
7412 if eval \${$as_CACHEVAR+:} false; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415
7416 ax_check_save_flags=$CFLAGS
7417 CFLAGS="$CFLAGS $CFLAGS -Wextra"
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7420 #include <time.h>
7421 int
7422 main ()
7423 {
7424 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7425 ;
7426 return 0;
7427 }
7428 _ACEOF
7429 if ac_fn_c_try_link "$LINENO"; then :
7430 eval "$as_CACHEVAR=yes"
7431 else
7432 eval "$as_CACHEVAR=no"
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext \
7435 conftest$ac_exeext conftest.$ac_ext
7436 CFLAGS=$ax_check_save_flags
7437 fi
7438 eval ac_res=\$$as_CACHEVAR
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7440 $as_echo "$ac_res" >&6; }
7441 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7442 CWFLAGS="$CFLAGS -Wextra"
7443 else
7444 :
7445 fi
7446
7447
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
7449 $as_echo_n "checking for clang... " >&6; }
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452
7453 int
7454 main ()
7455 {
7456
7457 #ifndef __clang__
7458 #error Not clang
7459 #endif
7460
7461 ;
7462 return 0;
7463 }
7464 _ACEOF
7465 if ac_fn_c_try_compile "$LINENO"; then :
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7467 $as_echo "yes" >&6; }
7468 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | $as_tr_sh`
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
7470 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
7471 if eval \${$as_CACHEVAR+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474
7475 ax_check_save_flags=$CFLAGS
7476 CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-warning-option"
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479 #include <time.h>
7480 int
7481 main ()
7482 {
7483 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7484 ;
7485 return 0;
7486 }
7487 _ACEOF
7488 if ac_fn_c_try_link "$LINENO"; then :
7489 eval "$as_CACHEVAR=yes"
7490 else
7491 eval "$as_CACHEVAR=no"
7492 fi
7493 rm -f core conftest.err conftest.$ac_objext \
7494 conftest$ac_exeext conftest.$ac_ext
7495 CFLAGS=$ax_check_save_flags
7496 fi
7497 eval ac_res=\$$as_CACHEVAR
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7499 $as_echo "$ac_res" >&6; }
7500 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7501 CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
7502 else
7503 :
7504 fi
7505
7506
7507 else
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510
7511 fi
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513
7514 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
7516 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
7517 if eval \${$as_CACHEVAR+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520
7521 ax_check_save_flags=$CFLAGS
7522 CFLAGS="$CFLAGS $CWFLAGS -Wbad-function-cast"
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 #include <time.h>
7526 int
7527 main ()
7528 {
7529 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7530 ;
7531 return 0;
7532 }
7533 _ACEOF
7534 if ac_fn_c_try_link "$LINENO"; then :
7535 eval "$as_CACHEVAR=yes"
7536 else
7537 eval "$as_CACHEVAR=no"
7538 fi
7539 rm -f core conftest.err conftest.$ac_objext \
7540 conftest$ac_exeext conftest.$ac_ext
7541 CFLAGS=$ax_check_save_flags
7542 fi
7543 eval ac_res=\$$as_CACHEVAR
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7545 $as_echo "$ac_res" >&6; }
7546 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7547 CWFLAGS="$CWFLAGS -Wbad-function-cast"
7548 else
7549 :
7550 fi
7551
7552 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | $as_tr_sh`
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
7554 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
7555 if eval \${$as_CACHEVAR+:} false; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558
7559 ax_check_save_flags=$CFLAGS
7560 CFLAGS="$CFLAGS $CWFLAGS -Wcast-qual"
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563 #include <time.h>
7564 int
7565 main ()
7566 {
7567 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7568 ;
7569 return 0;
7570 }
7571 _ACEOF
7572 if ac_fn_c_try_link "$LINENO"; then :
7573 eval "$as_CACHEVAR=yes"
7574 else
7575 eval "$as_CACHEVAR=no"
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext \
7578 conftest$ac_exeext conftest.$ac_ext
7579 CFLAGS=$ax_check_save_flags
7580 fi
7581 eval ac_res=\$$as_CACHEVAR
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7583 $as_echo "$ac_res" >&6; }
7584 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7585 CWFLAGS="$CWFLAGS -Wcast-qual"
7586 else
7587 :
7588 fi
7589
7590 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wdiv-by-zero" | $as_tr_sh`
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wdiv-by-zero" >&5
7592 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wdiv-by-zero... " >&6; }
7593 if eval \${$as_CACHEVAR+:} false; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596
7597 ax_check_save_flags=$CFLAGS
7598 CFLAGS="$CFLAGS $CWFLAGS -Wdiv-by-zero"
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7601 #include <time.h>
7602 int
7603 main ()
7604 {
7605 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7606 ;
7607 return 0;
7608 }
7609 _ACEOF
7610 if ac_fn_c_try_link "$LINENO"; then :
7611 eval "$as_CACHEVAR=yes"
7612 else
7613 eval "$as_CACHEVAR=no"
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext \
7616 conftest$ac_exeext conftest.$ac_ext
7617 CFLAGS=$ax_check_save_flags
7618 fi
7619 eval ac_res=\$$as_CACHEVAR
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7621 $as_echo "$ac_res" >&6; }
7622 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7623 CWFLAGS="$CWFLAGS -Wdiv-by-zero"
7624 else
7625 :
7626 fi
7627
7628 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wduplicated-branches" | $as_tr_sh`
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wduplicated-branches" >&5
7630 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wduplicated-branches... " >&6; }
7631 if eval \${$as_CACHEVAR+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634
7635 ax_check_save_flags=$CFLAGS
7636 CFLAGS="$CFLAGS $CWFLAGS -Wduplicated-branches"
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7639 #include <time.h>
7640 int
7641 main ()
7642 {
7643 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7644 ;
7645 return 0;
7646 }
7647 _ACEOF
7648 if ac_fn_c_try_link "$LINENO"; then :
7649 eval "$as_CACHEVAR=yes"
7650 else
7651 eval "$as_CACHEVAR=no"
7652 fi
7653 rm -f core conftest.err conftest.$ac_objext \
7654 conftest$ac_exeext conftest.$ac_ext
7655 CFLAGS=$ax_check_save_flags
7656 fi
7657 eval ac_res=\$$as_CACHEVAR
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7659 $as_echo "$ac_res" >&6; }
7660 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7661 CWFLAGS="$CWFLAGS -Wduplicated-branches"
7662 else
7663 :
7664 fi
7665
7666 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wduplicated-cond" | $as_tr_sh`
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wduplicated-cond" >&5
7668 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wduplicated-cond... " >&6; }
7669 if eval \${$as_CACHEVAR+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672
7673 ax_check_save_flags=$CFLAGS
7674 CFLAGS="$CFLAGS $CWFLAGS -Wduplicated-cond"
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 #include <time.h>
7678 int
7679 main ()
7680 {
7681 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7682 ;
7683 return 0;
7684 }
7685 _ACEOF
7686 if ac_fn_c_try_link "$LINENO"; then :
7687 eval "$as_CACHEVAR=yes"
7688 else
7689 eval "$as_CACHEVAR=no"
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
7693 CFLAGS=$ax_check_save_flags
7694 fi
7695 eval ac_res=\$$as_CACHEVAR
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7697 $as_echo "$ac_res" >&6; }
7698 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7699 CWFLAGS="$CWFLAGS -Wduplicated-cond"
7700 else
7701 :
7702 fi
7703
7704 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | $as_tr_sh`
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
7706 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
7707 if eval \${$as_CACHEVAR+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710
7711 ax_check_save_flags=$CFLAGS
7712 CFLAGS="$CFLAGS $CWFLAGS -Wfloat-equal"
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7715 #include <time.h>
7716 int
7717 main ()
7718 {
7719 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7720 ;
7721 return 0;
7722 }
7723 _ACEOF
7724 if ac_fn_c_try_link "$LINENO"; then :
7725 eval "$as_CACHEVAR=yes"
7726 else
7727 eval "$as_CACHEVAR=no"
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
7731 CFLAGS=$ax_check_save_flags
7732 fi
7733 eval ac_res=\$$as_CACHEVAR
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7735 $as_echo "$ac_res" >&6; }
7736 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7737 CWFLAGS="$CWFLAGS -Wfloat-equal"
7738 else
7739 :
7740 fi
7741
7742 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | $as_tr_sh`
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
7744 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
7745 if eval \${$as_CACHEVAR+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748
7749 ax_check_save_flags=$CFLAGS
7750 CFLAGS="$CFLAGS $CWFLAGS -Wformat=2"
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 #include <time.h>
7754 int
7755 main ()
7756 {
7757 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7758 ;
7759 return 0;
7760 }
7761 _ACEOF
7762 if ac_fn_c_try_link "$LINENO"; then :
7763 eval "$as_CACHEVAR=yes"
7764 else
7765 eval "$as_CACHEVAR=no"
7766 fi
7767 rm -f core conftest.err conftest.$ac_objext \
7768 conftest$ac_exeext conftest.$ac_ext
7769 CFLAGS=$ax_check_save_flags
7770 fi
7771 eval ac_res=\$$as_CACHEVAR
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7773 $as_echo "$ac_res" >&6; }
7774 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7775 CWFLAGS="$CWFLAGS -Wformat=2"
7776 else
7777 :
7778 fi
7779
7780 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wlogical-op" | $as_tr_sh`
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wlogical-op" >&5
7782 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wlogical-op... " >&6; }
7783 if eval \${$as_CACHEVAR+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786
7787 ax_check_save_flags=$CFLAGS
7788 CFLAGS="$CFLAGS $CWFLAGS -Wlogical-op"
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 #include <time.h>
7792 int
7793 main ()
7794 {
7795 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7796 ;
7797 return 0;
7798 }
7799 _ACEOF
7800 if ac_fn_c_try_link "$LINENO"; then :
7801 eval "$as_CACHEVAR=yes"
7802 else
7803 eval "$as_CACHEVAR=no"
7804 fi
7805 rm -f core conftest.err conftest.$ac_objext \
7806 conftest$ac_exeext conftest.$ac_ext
7807 CFLAGS=$ax_check_save_flags
7808 fi
7809 eval ac_res=\$$as_CACHEVAR
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7811 $as_echo "$ac_res" >&6; }
7812 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7813 CWFLAGS="$CWFLAGS -Wlogical-op"
7814 else
7815 :
7816 fi
7817
7818 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmaybe-uninitialized" | $as_tr_sh`
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmaybe-uninitialized" >&5
7820 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmaybe-uninitialized... " >&6; }
7821 if eval \${$as_CACHEVAR+:} false; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824
7825 ax_check_save_flags=$CFLAGS
7826 CFLAGS="$CFLAGS $CWFLAGS -Wmaybe-uninitialized"
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7829 #include <time.h>
7830 int
7831 main ()
7832 {
7833 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7834 ;
7835 return 0;
7836 }
7837 _ACEOF
7838 if ac_fn_c_try_link "$LINENO"; then :
7839 eval "$as_CACHEVAR=yes"
7840 else
7841 eval "$as_CACHEVAR=no"
7842 fi
7843 rm -f core conftest.err conftest.$ac_objext \
7844 conftest$ac_exeext conftest.$ac_ext
7845 CFLAGS=$ax_check_save_flags
7846 fi
7847 eval ac_res=\$$as_CACHEVAR
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7849 $as_echo "$ac_res" >&6; }
7850 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7851 CWFLAGS="$CWFLAGS -Wmaybe-uninitialized"
7852 else
7853 :
7854 fi
7855
7856 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmisleading-indentation" | $as_tr_sh`
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmisleading-indentation" >&5
7858 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmisleading-indentation... " >&6; }
7859 if eval \${$as_CACHEVAR+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862
7863 ax_check_save_flags=$CFLAGS
7864 CFLAGS="$CFLAGS $CWFLAGS -Wmisleading-indentation"
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 #include <time.h>
7868 int
7869 main ()
7870 {
7871 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7872 ;
7873 return 0;
7874 }
7875 _ACEOF
7876 if ac_fn_c_try_link "$LINENO"; then :
7877 eval "$as_CACHEVAR=yes"
7878 else
7879 eval "$as_CACHEVAR=no"
7880 fi
7881 rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883 CFLAGS=$ax_check_save_flags
7884 fi
7885 eval ac_res=\$$as_CACHEVAR
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7887 $as_echo "$ac_res" >&6; }
7888 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7889 CWFLAGS="$CWFLAGS -Wmisleading-indentation"
7890 else
7891 :
7892 fi
7893
7894 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-declarations" | $as_tr_sh`
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-declarations" >&5
7896 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-declarations... " >&6; }
7897 if eval \${$as_CACHEVAR+:} false; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900
7901 ax_check_save_flags=$CFLAGS
7902 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-declarations"
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905 #include <time.h>
7906 int
7907 main ()
7908 {
7909 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7910 ;
7911 return 0;
7912 }
7913 _ACEOF
7914 if ac_fn_c_try_link "$LINENO"; then :
7915 eval "$as_CACHEVAR=yes"
7916 else
7917 eval "$as_CACHEVAR=no"
7918 fi
7919 rm -f core conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7921 CFLAGS=$ax_check_save_flags
7922 fi
7923 eval ac_res=\$$as_CACHEVAR
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7925 $as_echo "$ac_res" >&6; }
7926 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7927 CWFLAGS="$CWFLAGS -Wmissing-declarations"
7928 else
7929 :
7930 fi
7931
7932 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-prototypes" | $as_tr_sh`
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes" >&5
7934 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes... " >&6; }
7935 if eval \${$as_CACHEVAR+:} false; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938
7939 ax_check_save_flags=$CFLAGS
7940 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-prototypes"
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 #include <time.h>
7944 int
7945 main ()
7946 {
7947 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7948 ;
7949 return 0;
7950 }
7951 _ACEOF
7952 if ac_fn_c_try_link "$LINENO"; then :
7953 eval "$as_CACHEVAR=yes"
7954 else
7955 eval "$as_CACHEVAR=no"
7956 fi
7957 rm -f core conftest.err conftest.$ac_objext \
7958 conftest$ac_exeext conftest.$ac_ext
7959 CFLAGS=$ax_check_save_flags
7960 fi
7961 eval ac_res=\$$as_CACHEVAR
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7963 $as_echo "$ac_res" >&6; }
7964 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7965 CWFLAGS="$CWFLAGS -Wmissing-prototypes"
7966 else
7967 :
7968 fi
7969
7970 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnested-externs" | $as_tr_sh`
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnested-externs" >&5
7972 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnested-externs... " >&6; }
7973 if eval \${$as_CACHEVAR+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976
7977 ax_check_save_flags=$CFLAGS
7978 CFLAGS="$CFLAGS $CWFLAGS -Wnested-externs"
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981 #include <time.h>
7982 int
7983 main ()
7984 {
7985 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
7986 ;
7987 return 0;
7988 }
7989 _ACEOF
7990 if ac_fn_c_try_link "$LINENO"; then :
7991 eval "$as_CACHEVAR=yes"
7992 else
7993 eval "$as_CACHEVAR=no"
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext \
7996 conftest$ac_exeext conftest.$ac_ext
7997 CFLAGS=$ax_check_save_flags
7998 fi
7999 eval ac_res=\$$as_CACHEVAR
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8001 $as_echo "$ac_res" >&6; }
8002 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8003 CWFLAGS="$CWFLAGS -Wnested-externs"
8004 else
8005 :
8006 fi
8007
8008 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-type-limits" | $as_tr_sh`
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-type-limits" >&5
8010 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-type-limits... " >&6; }
8011 if eval \${$as_CACHEVAR+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014
8015 ax_check_save_flags=$CFLAGS
8016 CFLAGS="$CFLAGS $CWFLAGS -Wno-type-limits"
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8019 #include <time.h>
8020 int
8021 main ()
8022 {
8023 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8024 ;
8025 return 0;
8026 }
8027 _ACEOF
8028 if ac_fn_c_try_link "$LINENO"; then :
8029 eval "$as_CACHEVAR=yes"
8030 else
8031 eval "$as_CACHEVAR=no"
8032 fi
8033 rm -f core conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 CFLAGS=$ax_check_save_flags
8036 fi
8037 eval ac_res=\$$as_CACHEVAR
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8039 $as_echo "$ac_res" >&6; }
8040 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8041 CWFLAGS="$CWFLAGS -Wno-type-limits"
8042 else
8043 :
8044 fi
8045
8046 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-pragmas" | $as_tr_sh`
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas" >&5
8048 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-pragmas... " >&6; }
8049 if eval \${$as_CACHEVAR+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051 else
8052
8053 ax_check_save_flags=$CFLAGS
8054 CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-pragmas"
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057 #include <time.h>
8058 int
8059 main ()
8060 {
8061 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8062 ;
8063 return 0;
8064 }
8065 _ACEOF
8066 if ac_fn_c_try_link "$LINENO"; then :
8067 eval "$as_CACHEVAR=yes"
8068 else
8069 eval "$as_CACHEVAR=no"
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext \
8072 conftest$ac_exeext conftest.$ac_ext
8073 CFLAGS=$ax_check_save_flags
8074 fi
8075 eval ac_res=\$$as_CACHEVAR
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8077 $as_echo "$ac_res" >&6; }
8078 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8079 CWFLAGS="$CWFLAGS -Wno-unknown-pragmas"
8080 else
8081 :
8082 fi
8083
8084 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnormalized=id" | $as_tr_sh`
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnormalized=id" >&5
8086 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnormalized=id... " >&6; }
8087 if eval \${$as_CACHEVAR+:} false; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090
8091 ax_check_save_flags=$CFLAGS
8092 CFLAGS="$CFLAGS $CWFLAGS -Wnormalized=id"
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8095 #include <time.h>
8096 int
8097 main ()
8098 {
8099 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8100 ;
8101 return 0;
8102 }
8103 _ACEOF
8104 if ac_fn_c_try_link "$LINENO"; then :
8105 eval "$as_CACHEVAR=yes"
8106 else
8107 eval "$as_CACHEVAR=no"
8108 fi
8109 rm -f core conftest.err conftest.$ac_objext \
8110 conftest$ac_exeext conftest.$ac_ext
8111 CFLAGS=$ax_check_save_flags
8112 fi
8113 eval ac_res=\$$as_CACHEVAR
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8115 $as_echo "$ac_res" >&6; }
8116 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8117 CWFLAGS="$CWFLAGS -Wnormalized=id"
8118 else
8119 :
8120 fi
8121
8122 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnull-dereference" | $as_tr_sh`
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnull-dereference" >&5
8124 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnull-dereference... " >&6; }
8125 if eval \${$as_CACHEVAR+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128
8129 ax_check_save_flags=$CFLAGS
8130 CFLAGS="$CFLAGS $CWFLAGS -Wnull-dereference"
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8133 #include <time.h>
8134 int
8135 main ()
8136 {
8137 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8138 ;
8139 return 0;
8140 }
8141 _ACEOF
8142 if ac_fn_c_try_link "$LINENO"; then :
8143 eval "$as_CACHEVAR=yes"
8144 else
8145 eval "$as_CACHEVAR=no"
8146 fi
8147 rm -f core conftest.err conftest.$ac_objext \
8148 conftest$ac_exeext conftest.$ac_ext
8149 CFLAGS=$ax_check_save_flags
8150 fi
8151 eval ac_res=\$$as_CACHEVAR
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8153 $as_echo "$ac_res" >&6; }
8154 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8155 CWFLAGS="$CWFLAGS -Wnull-dereference"
8156 else
8157 :
8158 fi
8159
8160 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wold-style-declaration" | $as_tr_sh`
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wold-style-declaration" >&5
8162 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wold-style-declaration... " >&6; }
8163 if eval \${$as_CACHEVAR+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166
8167 ax_check_save_flags=$CFLAGS
8168 CFLAGS="$CFLAGS $CWFLAGS -Wold-style-declaration"
8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8171 #include <time.h>
8172 int
8173 main ()
8174 {
8175 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8176 ;
8177 return 0;
8178 }
8179 _ACEOF
8180 if ac_fn_c_try_link "$LINENO"; then :
8181 eval "$as_CACHEVAR=yes"
8182 else
8183 eval "$as_CACHEVAR=no"
8184 fi
8185 rm -f core conftest.err conftest.$ac_objext \
8186 conftest$ac_exeext conftest.$ac_ext
8187 CFLAGS=$ax_check_save_flags
8188 fi
8189 eval ac_res=\$$as_CACHEVAR
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8191 $as_echo "$ac_res" >&6; }
8192 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8193 CWFLAGS="$CWFLAGS -Wold-style-declaration"
8194 else
8195 :
8196 fi
8197
8198 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wpointer-arith" | $as_tr_sh`
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wpointer-arith" >&5
8200 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wpointer-arith... " >&6; }
8201 if eval \${$as_CACHEVAR+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204
8205 ax_check_save_flags=$CFLAGS
8206 CFLAGS="$CFLAGS $CWFLAGS -Wpointer-arith"
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 #include <time.h>
8210 int
8211 main ()
8212 {
8213 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8214 ;
8215 return 0;
8216 }
8217 _ACEOF
8218 if ac_fn_c_try_link "$LINENO"; then :
8219 eval "$as_CACHEVAR=yes"
8220 else
8221 eval "$as_CACHEVAR=no"
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext conftest.$ac_ext
8225 CFLAGS=$ax_check_save_flags
8226 fi
8227 eval ac_res=\$$as_CACHEVAR
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8229 $as_echo "$ac_res" >&6; }
8230 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8231 CWFLAGS="$CWFLAGS -Wpointer-arith"
8232 else
8233 :
8234 fi
8235
8236 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wredundant-decls" | $as_tr_sh`
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wredundant-decls" >&5
8238 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wredundant-decls... " >&6; }
8239 if eval \${$as_CACHEVAR+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242
8243 ax_check_save_flags=$CFLAGS
8244 CFLAGS="$CFLAGS $CWFLAGS -Wredundant-decls"
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8247 #include <time.h>
8248 int
8249 main ()
8250 {
8251 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8252 ;
8253 return 0;
8254 }
8255 _ACEOF
8256 if ac_fn_c_try_link "$LINENO"; then :
8257 eval "$as_CACHEVAR=yes"
8258 else
8259 eval "$as_CACHEVAR=no"
8260 fi
8261 rm -f core conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8263 CFLAGS=$ax_check_save_flags
8264 fi
8265 eval ac_res=\$$as_CACHEVAR
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8267 $as_echo "$ac_res" >&6; }
8268 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8269 CWFLAGS="$CWFLAGS -Wredundant-decls"
8270 else
8271 :
8272 fi
8273
8274 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wrestrict" | $as_tr_sh`
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wrestrict" >&5
8276 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wrestrict... " >&6; }
8277 if eval \${$as_CACHEVAR+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280
8281 ax_check_save_flags=$CFLAGS
8282 CFLAGS="$CFLAGS $CWFLAGS -Wrestrict"
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 #include <time.h>
8286 int
8287 main ()
8288 {
8289 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8290 ;
8291 return 0;
8292 }
8293 _ACEOF
8294 if ac_fn_c_try_link "$LINENO"; then :
8295 eval "$as_CACHEVAR=yes"
8296 else
8297 eval "$as_CACHEVAR=no"
8298 fi
8299 rm -f core conftest.err conftest.$ac_objext \
8300 conftest$ac_exeext conftest.$ac_ext
8301 CFLAGS=$ax_check_save_flags
8302 fi
8303 eval ac_res=\$$as_CACHEVAR
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8305 $as_echo "$ac_res" >&6; }
8306 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8307 CWFLAGS="$CWFLAGS -Wrestrict"
8308 else
8309 :
8310 fi
8311
8312 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wshorten-64-to-32" | $as_tr_sh`
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wshorten-64-to-32" >&5
8314 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wshorten-64-to-32... " >&6; }
8315 if eval \${$as_CACHEVAR+:} false; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318
8319 ax_check_save_flags=$CFLAGS
8320 CFLAGS="$CFLAGS $CWFLAGS -Wshorten-64-to-32"
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 #include <time.h>
8324 int
8325 main ()
8326 {
8327 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8328 ;
8329 return 0;
8330 }
8331 _ACEOF
8332 if ac_fn_c_try_link "$LINENO"; then :
8333 eval "$as_CACHEVAR=yes"
8334 else
8335 eval "$as_CACHEVAR=no"
8336 fi
8337 rm -f core conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8339 CFLAGS=$ax_check_save_flags
8340 fi
8341 eval ac_res=\$$as_CACHEVAR
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8343 $as_echo "$ac_res" >&6; }
8344 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8345 CWFLAGS="$CWFLAGS -Wshorten-64-to-32"
8346 else
8347 :
8348 fi
8349
8350 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wsometimes-uninitialized" | $as_tr_sh`
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wsometimes-uninitialized" >&5
8352 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wsometimes-uninitialized... " >&6; }
8353 if eval \${$as_CACHEVAR+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356
8357 ax_check_save_flags=$CFLAGS
8358 CFLAGS="$CFLAGS $CWFLAGS -Wsometimes-uninitialized"
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8361 #include <time.h>
8362 int
8363 main ()
8364 {
8365 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8366 ;
8367 return 0;
8368 }
8369 _ACEOF
8370 if ac_fn_c_try_link "$LINENO"; then :
8371 eval "$as_CACHEVAR=yes"
8372 else
8373 eval "$as_CACHEVAR=no"
8374 fi
8375 rm -f core conftest.err conftest.$ac_objext \
8376 conftest$ac_exeext conftest.$ac_ext
8377 CFLAGS=$ax_check_save_flags
8378 fi
8379 eval ac_res=\$$as_CACHEVAR
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8381 $as_echo "$ac_res" >&6; }
8382 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8383 CWFLAGS="$CWFLAGS -Wsometimes-uninitialized"
8384 else
8385 :
8386 fi
8387
8388 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | $as_tr_sh`
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
8390 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
8391 if eval \${$as_CACHEVAR+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394
8395 ax_check_save_flags=$CFLAGS
8396 CFLAGS="$CFLAGS $CWFLAGS -Wstrict-prototypes"
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 #include <time.h>
8400 int
8401 main ()
8402 {
8403 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8404 ;
8405 return 0;
8406 }
8407 _ACEOF
8408 if ac_fn_c_try_link "$LINENO"; then :
8409 eval "$as_CACHEVAR=yes"
8410 else
8411 eval "$as_CACHEVAR=no"
8412 fi
8413 rm -f core conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8415 CFLAGS=$ax_check_save_flags
8416 fi
8417 eval ac_res=\$$as_CACHEVAR
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8419 $as_echo "$ac_res" >&6; }
8420 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8421 CWFLAGS="$CWFLAGS -Wstrict-prototypes"
8422 else
8423 :
8424 fi
8425
8426 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | $as_tr_sh`
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
8428 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
8429 if eval \${$as_CACHEVAR+:} false; then :
8430 $as_echo_n "(cached) " >&6
8431 else
8432
8433 ax_check_save_flags=$CFLAGS
8434 CFLAGS="$CFLAGS $CWFLAGS -Wswitch-enum"
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <time.h>
8438 int
8439 main ()
8440 {
8441 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8442 ;
8443 return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_link "$LINENO"; then :
8447 eval "$as_CACHEVAR=yes"
8448 else
8449 eval "$as_CACHEVAR=no"
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 CFLAGS=$ax_check_save_flags
8454 fi
8455 eval ac_res=\$$as_CACHEVAR
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8457 $as_echo "$ac_res" >&6; }
8458 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8459 CWFLAGS="$CWFLAGS -Wswitch-enum"
8460 else
8461 :
8462 fi
8463
8464 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | $as_tr_sh`
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
8466 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
8467 if eval \${$as_CACHEVAR+:} false; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470
8471 ax_check_save_flags=$CFLAGS
8472 CFLAGS="$CFLAGS $CWFLAGS -Wvariable-decl"
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 #include <time.h>
8476 int
8477 main ()
8478 {
8479 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8480 ;
8481 return 0;
8482 }
8483 _ACEOF
8484 if ac_fn_c_try_link "$LINENO"; then :
8485 eval "$as_CACHEVAR=yes"
8486 else
8487 eval "$as_CACHEVAR=no"
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext \
8490 conftest$ac_exeext conftest.$ac_ext
8491 CFLAGS=$ax_check_save_flags
8492 fi
8493 eval ac_res=\$$as_CACHEVAR
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8495 $as_echo "$ac_res" >&6; }
8496 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8497 CWFLAGS="$CWFLAGS -Wvariable-decl"
8498 else
8499 :
8500 fi
8501
8502 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wwrite-strings" | $as_tr_sh`
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wwrite-strings" >&5
8504 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wwrite-strings... " >&6; }
8505 if eval \${$as_CACHEVAR+:} false; then :
8506 $as_echo_n "(cached) " >&6
8507 else
8508
8509 ax_check_save_flags=$CFLAGS
8510 CFLAGS="$CFLAGS $CWFLAGS -Wwrite-strings"
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513 #include <time.h>
8514 int
8515 main ()
8516 {
8517 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8518 ;
8519 return 0;
8520 }
8521 _ACEOF
8522 if ac_fn_c_try_link "$LINENO"; then :
8523 eval "$as_CACHEVAR=yes"
8524 else
8525 eval "$as_CACHEVAR=no"
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext \
8528 conftest$ac_exeext conftest.$ac_ext
8529 CFLAGS=$ax_check_save_flags
8530 fi
8531 eval ac_res=\$$as_CACHEVAR
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8533 $as_echo "$ac_res" >&6; }
8534 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8535 CWFLAGS="$CWFLAGS -Wwrite-strings"
8536 else
8537 :
8538 fi
8539
8540
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
8542 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
8543 if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546
8547 ax_check_save_flags=$LDFLAGS
8548 LDFLAGS="$LDFLAGS -Wl,-z,relro"
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 #include <time.h>
8552 int
8553 main ()
8554 {
8555 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8556 ;
8557 return 0;
8558 }
8559 _ACEOF
8560 if ac_fn_c_try_link "$LINENO"; then :
8561 ax_cv_check_ldflags___Wl__z_relro=yes
8562 else
8563 ax_cv_check_ldflags___Wl__z_relro=no
8564 fi
8565 rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 LDFLAGS=$ax_check_save_flags
8568 fi
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
8570 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
8571 if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
8572 LDFLAGS="$LDFLAGS -Wl,-z,relro"
8573 else
8574 :
8575 fi
8576
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
8578 $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
8579 if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582
8583 ax_check_save_flags=$LDFLAGS
8584 LDFLAGS="$LDFLAGS -Wl,-z,now"
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 #include <time.h>
8588 int
8589 main ()
8590 {
8591 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8592 ;
8593 return 0;
8594 }
8595 _ACEOF
8596 if ac_fn_c_try_link "$LINENO"; then :
8597 ax_cv_check_ldflags___Wl__z_now=yes
8598 else
8599 ax_cv_check_ldflags___Wl__z_now=no
8600 fi
8601 rm -f core conftest.err conftest.$ac_objext \
8602 conftest$ac_exeext conftest.$ac_ext
8603 LDFLAGS=$ax_check_save_flags
8604 fi
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
8606 $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
8607 if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
8608 LDFLAGS="$LDFLAGS -Wl,-z,now"
8609 else
8610 :
8611 fi
8612
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
8614 $as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
8615 if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618
8619 ax_check_save_flags=$LDFLAGS
8620 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8623 #include <time.h>
8624 int
8625 main ()
8626 {
8627 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8628 ;
8629 return 0;
8630 }
8631 _ACEOF
8632 if ac_fn_c_try_link "$LINENO"; then :
8633 ax_cv_check_ldflags___Wl__z_noexecstack=yes
8634 else
8635 ax_cv_check_ldflags___Wl__z_noexecstack=no
8636 fi
8637 rm -f core conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8639 LDFLAGS=$ax_check_save_flags
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
8642 $as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
8643 if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
8644 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
8645 else
8646 :
8647 fi
8648
8649
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a broken clang + AVX512 combination" >&5
8651 $as_echo_n "checking for a broken clang + AVX512 combination... " >&6; }
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8654
8655 int
8656 main ()
8657 {
8658
8659 #if !(defined(__AVX512F__) && defined(__clang__) && __clang_major__ < 4)
8660 #error Not a broken clang + AVX512 combination
8661 #endif
8662
8663 ;
8664 return 0;
8665 }
8666 _ACEOF
8667 if ac_fn_c_try_compile "$LINENO"; then :
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - disabling AVX512 optimizations" >&5
8669 $as_echo "yes - disabling AVX512 optimizations" >&6; }
8670 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -mno-avx512f" | $as_tr_sh`
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -mno-avx512f" >&5
8672 $as_echo_n "checking whether C compiler accepts $CFLAGS -mno-avx512f... " >&6; }
8673 if eval \${$as_CACHEVAR+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676
8677 ax_check_save_flags=$CFLAGS
8678 CFLAGS="$CFLAGS $CFLAGS -mno-avx512f"
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 #include <time.h>
8682 int
8683 main ()
8684 {
8685 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
8686 ;
8687 return 0;
8688 }
8689 _ACEOF
8690 if ac_fn_c_try_link "$LINENO"; then :
8691 eval "$as_CACHEVAR=yes"
8692 else
8693 eval "$as_CACHEVAR=no"
8694 fi
8695 rm -f core conftest.err conftest.$ac_objext \
8696 conftest$ac_exeext conftest.$ac_ext
8697 CFLAGS=$ax_check_save_flags
8698 fi
8699 eval ac_res=\$$as_CACHEVAR
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8701 $as_echo "$ac_res" >&6; }
8702 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8703 CFLAGS="$CFLAGS -mno-avx512f"
8704 else
8705 :
8706 fi
8707
8708
8709 else
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711 $as_echo "no" >&6; }
8712
8713 fi
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715
8716
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether segmentation violations can be caught when using the C compiler" >&5
8718 $as_echo_n "checking whether segmentation violations can be caught when using the C compiler... " >&6; }
8719 if ${ax_cv_check_cCATCHABLE_SEGV+:} false; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722
8723 if test "$cross_compiling" = yes; then :
8724 ax_cv_check_cCATCHABLE_SEGV=unknown
8725
8726 else
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729
8730
8731 #include <signal.h>
8732 #include <stdlib.h>
8733 static void sig(int _) { exit(0); }
8734
8735 int
8736 main ()
8737 {
8738
8739 volatile unsigned char * volatile x = (volatile unsigned char *) malloc(8);
8740 size_t i;
8741
8742 signal(SIGSEGV, sig);
8743 signal(SIGBUS, sig);
8744 #if !defined(__SANITIZE_ADDRESS__) && !defined(__EMSCRIPTEN__)
8745 for (i = 0; i < 10000000; i += 1024) { x[-i] = x[i] = (unsigned char) i; }
8746 #endif
8747 free((void *) x);
8748 exit(1)
8749
8750 ;
8751 return 0;
8752 }
8753 _ACEOF
8754 if ac_fn_c_try_run "$LINENO"; then :
8755 ax_cv_check_cCATCHABLE_SEGV=yes
8756 else
8757 ax_cv_check_cCATCHABLE_SEGV=no
8758 fi
8759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8760 conftest.$ac_objext conftest.beam conftest.$ac_ext
8761 fi
8762
8763
8764 fi
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cCATCHABLE_SEGV" >&5
8766 $as_echo "$ax_cv_check_cCATCHABLE_SEGV" >&6; }
8767 if test "x$ax_cv_check_cCATCHABLE_SEGV" = xyes; then :
8768
8769 $as_echo "#define HAVE_CATCHABLE_SEGV 1" >>confdefs.h
8770
8771 else
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On this platform, segmentation violations cannot be caught using signal handlers. This is expected if you enabled a tool such as Address Sanitizer (-fsanitize=address), but be aware that using Address Sanitizer may also significantly reduce performance." >&5
8773 $as_echo "$as_me: WARNING: On this platform, segmentation violations cannot be caught using signal handlers. This is expected if you enabled a tool such as Address Sanitizer (-fsanitize=address), but be aware that using Address Sanitizer may also significantly reduce performance." >&2;}
8774
8775 fi
8776
8777
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SIGABRT can be caught when using the C compiler" >&5
8779 $as_echo_n "checking whether SIGABRT can be caught when using the C compiler... " >&6; }
8780 if ${ax_cv_check_cCATCHABLE_ABRT+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783
8784 if test "$cross_compiling" = yes; then :
8785 ax_cv_check_cCATCHABLE_ABRT=unknown
8786
8787 else
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8790
8791
8792 #include <signal.h>
8793 #include <stdlib.h>
8794
8795 #ifndef SIGABRT
8796 # error SIGABRT is not defined
8797 #endif
8798
8799 static void sigabrt_handler_3(int _)
8800 {
8801 exit(0);
8802 }
8803
8804 static void sigabrt_handler_2(int _)
8805 {
8806 signal(SIGABRT, sigabrt_handler_3);
8807 abort();
8808 exit(1);
8809 }
8810
8811 static void sigabrt_handler_1(int _)
8812 {
8813 signal(SIGABRT, sigabrt_handler_2);
8814 abort();
8815 exit(1);
8816 }
8817
8818 int
8819 main ()
8820 {
8821
8822 signal(SIGABRT, sigabrt_handler_1);
8823 abort();
8824 exit(1);
8825
8826 ;
8827 return 0;
8828 }
8829 _ACEOF
8830 if ac_fn_c_try_run "$LINENO"; then :
8831 ax_cv_check_cCATCHABLE_ABRT=yes
8832 else
8833 ax_cv_check_cCATCHABLE_ABRT=no
8834 fi
8835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8836 conftest.$ac_objext conftest.beam conftest.$ac_ext
8837 fi
8838
8839
8840 fi
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cCATCHABLE_ABRT" >&5
8842 $as_echo "$ax_cv_check_cCATCHABLE_ABRT" >&6; }
8843 if test "x$ax_cv_check_cCATCHABLE_ABRT" = xyes; then :
8844
8845 $as_echo "#define HAVE_CATCHABLE_ABRT 1" >>confdefs.h
8846
8847 else
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On this platform, SIGABRT cannot be caught using signal handlers." >&5
8849 $as_echo "$as_me: WARNING: On this platform, SIGABRT cannot be caught using signal handlers." >&2;}
8850
8851 fi
8852
8853
8854 if test "x$with_threads" = "xyes"; then :
8855
8856
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
8858 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
8859 if ${ac_cv_tls+:} false; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do
8863 case $ax_tls_keyword in #(
8864 none) :
8865 ac_cv_tls=none ; break ;; #(
8866 *) :
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869 #include <stdlib.h>
8870 static void
8871 foo(void) {
8872 static $ax_tls_keyword int bar;
8873 exit(1);
8874 }
8875 int
8876 main ()
8877 {
8878
8879 ;
8880 return 0;
8881 }
8882 _ACEOF
8883 if ac_fn_c_try_compile "$LINENO"; then :
8884 ac_cv_tls=$ax_tls_keyword ; break
8885 else
8886 ac_cv_tls=none
8887
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
8890 esac
8891 done
8892
8893 fi
8894
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
8896 $as_echo "$ac_cv_tls" >&6; }
8897
8898 if test "$ac_cv_tls" != "none"; then :
8899
8900 cat >>confdefs.h <<_ACEOF
8901 #define TLS $ac_cv_tls
8902 _ACEOF
8903
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: thread local storage is supported" >&5
8905 $as_echo "thread local storage is supported" >&6; }
8906 else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: thread local storage is not supported" >&5
8908 $as_echo "thread local storage is not supported" >&6; }
8909 fi
8910
8911 fi
8912
8913 case `pwd` in
8914 *\ * | *\ *)
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8916 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8917 esac
8918
8919
8920
8921 macro_version='2.4.6'
8922 macro_revision='2.4.6'
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936 ltmain=$ac_aux_dir/ltmain.sh
8937
8938 # Backslashify metacharacters that are still active within
8939 # double-quoted strings.
8940 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8941
8942 # Same as above, but do not quote variable references.
8943 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8944
8945 # Sed substitution to delay expansion of an escaped shell variable in a
8946 # double_quote_subst'ed string.
8947 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8948
8949 # Sed substitution to delay expansion of an escaped single quote.
8950 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8951
8952 # Sed substitution to avoid accidental globbing in evaled expressions
8953 no_glob_subst='s/\*/\\\*/g'
8954
8955 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8956 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8958
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8960 $as_echo_n "checking how to print strings... " >&6; }
8961 # Test print first, because it will be a builtin if present.
8962 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8963 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8964 ECHO='print -r --'
8965 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8966 ECHO='printf %s\n'
8967 else
8968 # Use this function as a fallback that always works.
8969 func_fallback_echo ()
8970 {
8971 eval 'cat <<_LTECHO_EOF
8972 $1
8973 _LTECHO_EOF'
8974 }
8975 ECHO='func_fallback_echo'
8976 fi
8977
8978 # func_echo_all arg...
8979 # Invoke $ECHO with all args, space-separated.
8980 func_echo_all ()
8981 {
8982 $ECHO ""
8983 }
8984
8985 case $ECHO in
8986 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8987 $as_echo "printf" >&6; } ;;
8988 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8989 $as_echo "print -r" >&6; } ;;
8990 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8991 $as_echo "cat" >&6; } ;;
8992 esac
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9008 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9009 if ${ac_cv_path_SED+:} false; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9013 for ac_i in 1 2 3 4 5 6 7; do
9014 ac_script="$ac_script$as_nl$ac_script"
9015 done
9016 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9017 { ac_script=; unset ac_script;}
9018 if test -z "$SED"; then
9019 ac_path_SED_found=false
9020 # Loop through the user's path and test for each of PROGNAME-LIST
9021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 for as_dir in $PATH
9023 do
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
9026 for ac_prog in sed gsed; do
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9029 as_fn_executable_p "$ac_path_SED" || continue
9030 # Check for GNU ac_path_SED and select it if it is found.
9031 # Check for GNU $ac_path_SED
9032 case `"$ac_path_SED" --version 2>&1` in
9033 *GNU*)
9034 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9035 *)
9036 ac_count=0
9037 $as_echo_n 0123456789 >"conftest.in"
9038 while :
9039 do
9040 cat "conftest.in" "conftest.in" >"conftest.tmp"
9041 mv "conftest.tmp" "conftest.in"
9042 cp "conftest.in" "conftest.nl"
9043 $as_echo '' >> "conftest.nl"
9044 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9045 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9046 as_fn_arith $ac_count + 1 && ac_count=$as_val
9047 if test $ac_count -gt ${ac_path_SED_max-0}; then
9048 # Best one so far, save it but keep looking for a better one
9049 ac_cv_path_SED="$ac_path_SED"
9050 ac_path_SED_max=$ac_count
9051 fi
9052 # 10*(2^10) chars as input seems more than enough
9053 test $ac_count -gt 10 && break
9054 done
9055 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9056 esac
9057
9058 $ac_path_SED_found && break 3
9059 done
9060 done
9061 done
9062 IFS=$as_save_IFS
9063 if test -z "$ac_cv_path_SED"; then
9064 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9065 fi
9066 else
9067 ac_cv_path_SED=$SED
9068 fi
9069
9070 fi
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9072 $as_echo "$ac_cv_path_SED" >&6; }
9073 SED="$ac_cv_path_SED"
9074 rm -f conftest.sed
9075
9076 test -z "$SED" && SED=sed
9077 Xsed="$SED -e 1s/^X//"
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9090 $as_echo_n "checking for fgrep... " >&6; }
9091 if ${ac_cv_path_FGREP+:} false; then :
9092 $as_echo_n "(cached) " >&6
9093 else
9094 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9095 then ac_cv_path_FGREP="$GREP -F"
9096 else
9097 if test -z "$FGREP"; then
9098 ac_path_FGREP_found=false
9099 # Loop through the user's path and test for each of PROGNAME-LIST
9100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9102 do
9103 IFS=$as_save_IFS
9104 test -z "$as_dir" && as_dir=.
9105 for ac_prog in fgrep; do
9106 for ac_exec_ext in '' $ac_executable_extensions; do
9107 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9108 as_fn_executable_p "$ac_path_FGREP" || continue
9109 # Check for GNU ac_path_FGREP and select it if it is found.
9110 # Check for GNU $ac_path_FGREP
9111 case `"$ac_path_FGREP" --version 2>&1` in
9112 *GNU*)
9113 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9114 *)
9115 ac_count=0
9116 $as_echo_n 0123456789 >"conftest.in"
9117 while :
9118 do
9119 cat "conftest.in" "conftest.in" >"conftest.tmp"
9120 mv "conftest.tmp" "conftest.in"
9121 cp "conftest.in" "conftest.nl"
9122 $as_echo 'FGREP' >> "conftest.nl"
9123 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9125 as_fn_arith $ac_count + 1 && ac_count=$as_val
9126 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9127 # Best one so far, save it but keep looking for a better one
9128 ac_cv_path_FGREP="$ac_path_FGREP"
9129 ac_path_FGREP_max=$ac_count
9130 fi
9131 # 10*(2^10) chars as input seems more than enough
9132 test $ac_count -gt 10 && break
9133 done
9134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9135 esac
9136
9137 $ac_path_FGREP_found && break 3
9138 done
9139 done
9140 done
9141 IFS=$as_save_IFS
9142 if test -z "$ac_cv_path_FGREP"; then
9143 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9144 fi
9145 else
9146 ac_cv_path_FGREP=$FGREP
9147 fi
9148
9149 fi
9150 fi
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9152 $as_echo "$ac_cv_path_FGREP" >&6; }
9153 FGREP="$ac_cv_path_FGREP"
9154
9155
9156 test -z "$GREP" && GREP=grep
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176 # Check whether --with-gnu-ld was given.
9177 if test "${with_gnu_ld+set}" = set; then :
9178 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9179 else
9180 with_gnu_ld=no
9181 fi
9182
9183 ac_prog=ld
9184 if test yes = "$GCC"; then
9185 # Check if gcc -print-prog-name=ld gives a path.
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9187 $as_echo_n "checking for ld used by $CC... " >&6; }
9188 case $host in
9189 *-*-mingw*)
9190 # gcc leaves a trailing carriage return, which upsets mingw
9191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9192 *)
9193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9194 esac
9195 case $ac_prog in
9196 # Accept absolute paths.
9197 [\\/]* | ?:[\\/]*)
9198 re_direlt='/[^/][^/]*/\.\./'
9199 # Canonicalize the pathname of ld
9200 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9201 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9202 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9203 done
9204 test -z "$LD" && LD=$ac_prog
9205 ;;
9206 "")
9207 # If it fails, then pretend we aren't using GCC.
9208 ac_prog=ld
9209 ;;
9210 *)
9211 # If it is relative, then search for the first ld in PATH.
9212 with_gnu_ld=unknown
9213 ;;
9214 esac
9215 elif test yes = "$with_gnu_ld"; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9217 $as_echo_n "checking for GNU ld... " >&6; }
9218 else
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9220 $as_echo_n "checking for non-GNU ld... " >&6; }
9221 fi
9222 if ${lt_cv_path_LD+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 if test -z "$LD"; then
9226 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9227 for ac_dir in $PATH; do
9228 IFS=$lt_save_ifs
9229 test -z "$ac_dir" && ac_dir=.
9230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9231 lt_cv_path_LD=$ac_dir/$ac_prog
9232 # Check to see if the program is GNU ld. I'd rather use --version,
9233 # but apparently some variants of GNU ld only accept -v.
9234 # Break only if it was the GNU/non-GNU ld that we prefer.
9235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9236 *GNU* | *'with BFD'*)
9237 test no != "$with_gnu_ld" && break
9238 ;;
9239 *)
9240 test yes != "$with_gnu_ld" && break
9241 ;;
9242 esac
9243 fi
9244 done
9245 IFS=$lt_save_ifs
9246 else
9247 lt_cv_path_LD=$LD # Let the user override the test with a path.
9248 fi
9249 fi
9250
9251 LD=$lt_cv_path_LD
9252 if test -n "$LD"; then
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9254 $as_echo "$LD" >&6; }
9255 else
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257 $as_echo "no" >&6; }
9258 fi
9259 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9261 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9262 if ${lt_cv_prog_gnu_ld+:} false; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9266 case `$LD -v 2>&1 </dev/null` in
9267 *GNU* | *'with BFD'*)
9268 lt_cv_prog_gnu_ld=yes
9269 ;;
9270 *)
9271 lt_cv_prog_gnu_ld=no
9272 ;;
9273 esac
9274 fi
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9276 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9277 with_gnu_ld=$lt_cv_prog_gnu_ld
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9288 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9289 if ${lt_cv_path_NM+:} false; then :
9290 $as_echo_n "(cached) " >&6
9291 else
9292 if test -n "$NM"; then
9293 # Let the user override the test.
9294 lt_cv_path_NM=$NM
9295 else
9296 lt_nm_to_check=${ac_tool_prefix}nm
9297 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9298 lt_nm_to_check="$lt_nm_to_check nm"
9299 fi
9300 for lt_tmp_nm in $lt_nm_to_check; do
9301 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9302 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9303 IFS=$lt_save_ifs
9304 test -z "$ac_dir" && ac_dir=.
9305 tmp_nm=$ac_dir/$lt_tmp_nm
9306 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9307 # Check to see if the nm accepts a BSD-compat flag.
9308 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9309 # nm: unknown option "B" ignored
9310 # Tru64's nm complains that /dev/null is an invalid object file
9311 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9312 case $build_os in
9313 mingw*) lt_bad_file=conftest.nm/nofile ;;
9314 *) lt_bad_file=/dev/null ;;
9315 esac
9316 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
9317 *$lt_bad_file* | *'Invalid file or object type'*)
9318 lt_cv_path_NM="$tmp_nm -B"
9319 break 2
9320 ;;
9321 *)
9322 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9323 */dev/null*)
9324 lt_cv_path_NM="$tmp_nm -p"
9325 break 2
9326 ;;
9327 *)
9328 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9329 continue # so that we can try to find one that supports BSD flags
9330 ;;
9331 esac
9332 ;;
9333 esac
9334 fi
9335 done
9336 IFS=$lt_save_ifs
9337 done
9338 : ${lt_cv_path_NM=no}
9339 fi
9340 fi
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9342 $as_echo "$lt_cv_path_NM" >&6; }
9343 if test no != "$lt_cv_path_NM"; then
9344 NM=$lt_cv_path_NM
9345 else
9346 # Didn't find any BSD compatible name lister, look for dumpbin.
9347 if test -n "$DUMPBIN"; then :
9348 # Let the user override the test.
9349 else
9350 if test -n "$ac_tool_prefix"; then
9351 for ac_prog in dumpbin "link -dump"
9352 do
9353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9356 $as_echo_n "checking for $ac_word... " >&6; }
9357 if ${ac_cv_prog_DUMPBIN+:} false; then :
9358 $as_echo_n "(cached) " >&6
9359 else
9360 if test -n "$DUMPBIN"; then
9361 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9362 else
9363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9364 for as_dir in $PATH
9365 do
9366 IFS=$as_save_IFS
9367 test -z "$as_dir" && as_dir=.
9368 for ac_exec_ext in '' $ac_executable_extensions; do
9369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9370 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9372 break 2
9373 fi
9374 done
9375 done
9376 IFS=$as_save_IFS
9377
9378 fi
9379 fi
9380 DUMPBIN=$ac_cv_prog_DUMPBIN
9381 if test -n "$DUMPBIN"; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9383 $as_echo "$DUMPBIN" >&6; }
9384 else
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9386 $as_echo "no" >&6; }
9387 fi
9388
9389
9390 test -n "$DUMPBIN" && break
9391 done
9392 fi
9393 if test -z "$DUMPBIN"; then
9394 ac_ct_DUMPBIN=$DUMPBIN
9395 for ac_prog in dumpbin "link -dump"
9396 do
9397 # Extract the first word of "$ac_prog", so it can be a program name with args.
9398 set dummy $ac_prog; ac_word=$2
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9400 $as_echo_n "checking for $ac_word... " >&6; }
9401 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9402 $as_echo_n "(cached) " >&6
9403 else
9404 if test -n "$ac_ct_DUMPBIN"; then
9405 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9406 else
9407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9408 for as_dir in $PATH
9409 do
9410 IFS=$as_save_IFS
9411 test -z "$as_dir" && as_dir=.
9412 for ac_exec_ext in '' $ac_executable_extensions; do
9413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9414 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9416 break 2
9417 fi
9418 done
9419 done
9420 IFS=$as_save_IFS
9421
9422 fi
9423 fi
9424 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9425 if test -n "$ac_ct_DUMPBIN"; then
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9427 $as_echo "$ac_ct_DUMPBIN" >&6; }
9428 else
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9430 $as_echo "no" >&6; }
9431 fi
9432
9433
9434 test -n "$ac_ct_DUMPBIN" && break
9435 done
9436
9437 if test "x$ac_ct_DUMPBIN" = x; then
9438 DUMPBIN=":"
9439 else
9440 case $cross_compiling:$ac_tool_warned in
9441 yes:)
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9444 ac_tool_warned=yes ;;
9445 esac
9446 DUMPBIN=$ac_ct_DUMPBIN
9447 fi
9448 fi
9449
9450 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
9451 *COFF*)
9452 DUMPBIN="$DUMPBIN -symbols -headers"
9453 ;;
9454 *)
9455 DUMPBIN=:
9456 ;;
9457 esac
9458 fi
9459
9460 if test : != "$DUMPBIN"; then
9461 NM=$DUMPBIN
9462 fi
9463 fi
9464 test -z "$NM" && NM=nm
9465
9466
9467
9468
9469
9470
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9472 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9473 if ${lt_cv_nm_interface+:} false; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 lt_cv_nm_interface="BSD nm"
9477 echo "int some_variable = 0;" > conftest.$ac_ext
9478 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9479 (eval "$ac_compile" 2>conftest.err)
9480 cat conftest.err >&5
9481 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9482 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9483 cat conftest.err >&5
9484 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9485 cat conftest.out >&5
9486 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9487 lt_cv_nm_interface="MS dumpbin"
9488 fi
9489 rm -f conftest*
9490 fi
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9492 $as_echo "$lt_cv_nm_interface" >&6; }
9493
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9495 $as_echo_n "checking whether ln -s works... " >&6; }
9496 LN_S=$as_ln_s
9497 if test "$LN_S" = "ln -s"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9499 $as_echo "yes" >&6; }
9500 else
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9502 $as_echo "no, using $LN_S" >&6; }
9503 fi
9504
9505 # find the maximum length of command line arguments
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9507 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9508 if ${lt_cv_sys_max_cmd_len+:} false; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 i=0
9512 teststring=ABCD
9513
9514 case $build_os in
9515 msdosdjgpp*)
9516 # On DJGPP, this test can blow up pretty badly due to problems in libc
9517 # (any single argument exceeding 2000 bytes causes a buffer overrun
9518 # during glob expansion). Even if it were fixed, the result of this
9519 # check would be larger than it should be.
9520 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9521 ;;
9522
9523 gnu*)
9524 # Under GNU Hurd, this test is not required because there is
9525 # no limit to the length of command line arguments.
9526 # Libtool will interpret -1 as no limit whatsoever
9527 lt_cv_sys_max_cmd_len=-1;
9528 ;;
9529
9530 cygwin* | mingw* | cegcc*)
9531 # On Win9x/ME, this test blows up -- it succeeds, but takes
9532 # about 5 minutes as the teststring grows exponentially.
9533 # Worse, since 9x/ME are not pre-emptively multitasking,
9534 # you end up with a "frozen" computer, even though with patience
9535 # the test eventually succeeds (with a max line length of 256k).
9536 # Instead, let's just punt: use the minimum linelength reported by
9537 # all of the supported platforms: 8192 (on NT/2K/XP).
9538 lt_cv_sys_max_cmd_len=8192;
9539 ;;
9540
9541 mint*)
9542 # On MiNT this can take a long time and run out of memory.
9543 lt_cv_sys_max_cmd_len=8192;
9544 ;;
9545
9546 amigaos*)
9547 # On AmigaOS with pdksh, this test takes hours, literally.
9548 # So we just punt and use a minimum line length of 8192.
9549 lt_cv_sys_max_cmd_len=8192;
9550 ;;
9551
9552 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
9553 # This has been around since 386BSD, at least. Likely further.
9554 if test -x /sbin/sysctl; then
9555 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9556 elif test -x /usr/sbin/sysctl; then
9557 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9558 else
9559 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9560 fi
9561 # And add a safety zone
9562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9564 ;;
9565
9566 interix*)
9567 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9568 lt_cv_sys_max_cmd_len=196608
9569 ;;
9570
9571 os2*)
9572 # The test takes a long time on OS/2.
9573 lt_cv_sys_max_cmd_len=8192
9574 ;;
9575
9576 osf*)
9577 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9578 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9579 # nice to cause kernel panics so lets avoid the loop below.
9580 # First set a reasonable default.
9581 lt_cv_sys_max_cmd_len=16384
9582 #
9583 if test -x /sbin/sysconfig; then
9584 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9585 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9586 esac
9587 fi
9588 ;;
9589 sco3.2v5*)
9590 lt_cv_sys_max_cmd_len=102400
9591 ;;
9592 sysv5* | sco5v6* | sysv4.2uw2*)
9593 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9594 if test -n "$kargmax"; then
9595 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9596 else
9597 lt_cv_sys_max_cmd_len=32768
9598 fi
9599 ;;
9600 *)
9601 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9602 if test -n "$lt_cv_sys_max_cmd_len" && \
9603 test undefined != "$lt_cv_sys_max_cmd_len"; then
9604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9606 else
9607 # Make teststring a little bigger before we do anything with it.
9608 # a 1K string should be a reasonable start.
9609 for i in 1 2 3 4 5 6 7 8; do
9610 teststring=$teststring$teststring
9611 done
9612 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9613 # If test is not a shell built-in, we'll probably end up computing a
9614 # maximum length that is only half of the actual maximum length, but
9615 # we can't tell.
9616 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9617 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9618 test 17 != "$i" # 1/2 MB should be enough
9619 do
9620 i=`expr $i + 1`
9621 teststring=$teststring$teststring
9622 done
9623 # Only check the string length outside the loop.
9624 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9625 teststring=
9626 # Add a significant safety factor because C++ compilers can tack on
9627 # massive amounts of additional arguments before passing them to the
9628 # linker. It appears as though 1/2 is a usable value.
9629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9630 fi
9631 ;;
9632 esac
9633
9634 fi
9635
9636 if test -n "$lt_cv_sys_max_cmd_len"; then
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9638 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9639 else
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9641 $as_echo "none" >&6; }
9642 fi
9643 max_cmd_len=$lt_cv_sys_max_cmd_len
9644
9645
9646
9647
9648
9649
9650 : ${CP="cp -f"}
9651 : ${MV="mv -f"}
9652 : ${RM="rm -f"}
9653
9654 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9655 lt_unset=unset
9656 else
9657 lt_unset=false
9658 fi
9659
9660
9661
9662
9663
9664 # test EBCDIC or ASCII
9665 case `echo X|tr X '\101'` in
9666 A) # ASCII based system
9667 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9668 lt_SP2NL='tr \040 \012'
9669 lt_NL2SP='tr \015\012 \040\040'
9670 ;;
9671 *) # EBCDIC based system
9672 lt_SP2NL='tr \100 \n'
9673 lt_NL2SP='tr \r\n \100\100'
9674 ;;
9675 esac
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9686 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9687 if ${lt_cv_to_host_file_cmd+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 case $host in
9691 *-*-mingw* )
9692 case $build in
9693 *-*-mingw* ) # actually msys
9694 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9695 ;;
9696 *-*-cygwin* )
9697 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9698 ;;
9699 * ) # otherwise, assume *nix
9700 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9701 ;;
9702 esac
9703 ;;
9704 *-*-cygwin* )
9705 case $build in
9706 *-*-mingw* ) # actually msys
9707 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9708 ;;
9709 *-*-cygwin* )
9710 lt_cv_to_host_file_cmd=func_convert_file_noop
9711 ;;
9712 * ) # otherwise, assume *nix
9713 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9714 ;;
9715 esac
9716 ;;
9717 * ) # unhandled hosts (and "normal" native builds)
9718 lt_cv_to_host_file_cmd=func_convert_file_noop
9719 ;;
9720 esac
9721
9722 fi
9723
9724 to_host_file_cmd=$lt_cv_to_host_file_cmd
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9726 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9727
9728
9729
9730
9731
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9733 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9734 if ${lt_cv_to_tool_file_cmd+:} false; then :
9735 $as_echo_n "(cached) " >&6
9736 else
9737 #assume ordinary cross tools, or native build.
9738 lt_cv_to_tool_file_cmd=func_convert_file_noop
9739 case $host in
9740 *-*-mingw* )
9741 case $build in
9742 *-*-mingw* ) # actually msys
9743 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9744 ;;
9745 esac
9746 ;;
9747 esac
9748
9749 fi
9750
9751 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9753 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9754
9755
9756
9757
9758
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9760 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9761 if ${lt_cv_ld_reload_flag+:} false; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 lt_cv_ld_reload_flag='-r'
9765 fi
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9767 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9768 reload_flag=$lt_cv_ld_reload_flag
9769 case $reload_flag in
9770 "" | " "*) ;;
9771 *) reload_flag=" $reload_flag" ;;
9772 esac
9773 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9774 case $host_os in
9775 cygwin* | mingw* | pw32* | cegcc*)
9776 if test yes != "$GCC"; then
9777 reload_cmds=false
9778 fi
9779 ;;
9780 darwin*)
9781 if test yes = "$GCC"; then
9782 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9783 else
9784 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9785 fi
9786 ;;
9787 esac
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797 if test -n "$ac_tool_prefix"; then
9798 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9799 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9801 $as_echo_n "checking for $ac_word... " >&6; }
9802 if ${ac_cv_prog_OBJDUMP+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 if test -n "$OBJDUMP"; then
9806 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9807 else
9808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809 for as_dir in $PATH
9810 do
9811 IFS=$as_save_IFS
9812 test -z "$as_dir" && as_dir=.
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9815 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9817 break 2
9818 fi
9819 done
9820 done
9821 IFS=$as_save_IFS
9822
9823 fi
9824 fi
9825 OBJDUMP=$ac_cv_prog_OBJDUMP
9826 if test -n "$OBJDUMP"; then
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9828 $as_echo "$OBJDUMP" >&6; }
9829 else
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9831 $as_echo "no" >&6; }
9832 fi
9833
9834
9835 fi
9836 if test -z "$ac_cv_prog_OBJDUMP"; then
9837 ac_ct_OBJDUMP=$OBJDUMP
9838 # Extract the first word of "objdump", so it can be a program name with args.
9839 set dummy objdump; ac_word=$2
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9841 $as_echo_n "checking for $ac_word... " >&6; }
9842 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 if test -n "$ac_ct_OBJDUMP"; then
9846 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9847 else
9848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849 for as_dir in $PATH
9850 do
9851 IFS=$as_save_IFS
9852 test -z "$as_dir" && as_dir=.
9853 for ac_exec_ext in '' $ac_executable_extensions; do
9854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9855 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9857 break 2
9858 fi
9859 done
9860 done
9861 IFS=$as_save_IFS
9862
9863 fi
9864 fi
9865 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9866 if test -n "$ac_ct_OBJDUMP"; then
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9868 $as_echo "$ac_ct_OBJDUMP" >&6; }
9869 else
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871 $as_echo "no" >&6; }
9872 fi
9873
9874 if test "x$ac_ct_OBJDUMP" = x; then
9875 OBJDUMP="false"
9876 else
9877 case $cross_compiling:$ac_tool_warned in
9878 yes:)
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9881 ac_tool_warned=yes ;;
9882 esac
9883 OBJDUMP=$ac_ct_OBJDUMP
9884 fi
9885 else
9886 OBJDUMP="$ac_cv_prog_OBJDUMP"
9887 fi
9888
9889 test -z "$OBJDUMP" && OBJDUMP=objdump
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9900 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9901 if ${lt_cv_deplibs_check_method+:} false; then :
9902 $as_echo_n "(cached) " >&6
9903 else
9904 lt_cv_file_magic_cmd='$MAGIC_CMD'
9905 lt_cv_file_magic_test_file=
9906 lt_cv_deplibs_check_method='unknown'
9907 # Need to set the preceding variable on all platforms that support
9908 # interlibrary dependencies.
9909 # 'none' -- dependencies not supported.
9910 # 'unknown' -- same as none, but documents that we really don't know.
9911 # 'pass_all' -- all dependencies passed with no checks.
9912 # 'test_compile' -- check by making test program.
9913 # 'file_magic [[regex]]' -- check by looking for files in library path
9914 # that responds to the $file_magic_cmd with a given extended regex.
9915 # If you have 'file' or equivalent on your system and you're not sure
9916 # whether 'pass_all' will *always* work, you probably want this one.
9917
9918 case $host_os in
9919 aix[4-9]*)
9920 lt_cv_deplibs_check_method=pass_all
9921 ;;
9922
9923 beos*)
9924 lt_cv_deplibs_check_method=pass_all
9925 ;;
9926
9927 bsdi[45]*)
9928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9929 lt_cv_file_magic_cmd='/usr/bin/file -L'
9930 lt_cv_file_magic_test_file=/shlib/libc.so
9931 ;;
9932
9933 cygwin*)
9934 # func_win32_libid is a shell function defined in ltmain.sh
9935 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9936 lt_cv_file_magic_cmd='func_win32_libid'
9937 ;;
9938
9939 mingw* | pw32*)
9940 # Base MSYS/MinGW do not provide the 'file' command needed by
9941 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9942 # unless we find 'file', for example because we are cross-compiling.
9943 if ( file / ) >/dev/null 2>&1; then
9944 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9945 lt_cv_file_magic_cmd='func_win32_libid'
9946 else
9947 # Keep this pattern in sync with the one in func_win32_libid.
9948 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9949 lt_cv_file_magic_cmd='$OBJDUMP -f'
9950 fi
9951 ;;
9952
9953 cegcc*)
9954 # use the weaker test based on 'objdump'. See mingw*.
9955 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9956 lt_cv_file_magic_cmd='$OBJDUMP -f'
9957 ;;
9958
9959 darwin* | rhapsody*)
9960 lt_cv_deplibs_check_method=pass_all
9961 ;;
9962
9963 freebsd* | dragonfly*)
9964 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9965 case $host_cpu in
9966 i*86 )
9967 # Not sure whether the presence of OpenBSD here was a mistake.
9968 # Let's accept both of them until this is cleared up.
9969 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9970 lt_cv_file_magic_cmd=/usr/bin/file
9971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9972 ;;
9973 esac
9974 else
9975 lt_cv_deplibs_check_method=pass_all
9976 fi
9977 ;;
9978
9979 haiku*)
9980 lt_cv_deplibs_check_method=pass_all
9981 ;;
9982
9983 hpux10.20* | hpux11*)
9984 lt_cv_file_magic_cmd=/usr/bin/file
9985 case $host_cpu in
9986 ia64*)
9987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9988 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9989 ;;
9990 hppa*64*)
9991 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]'
9992 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9993 ;;
9994 *)
9995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9996 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9997 ;;
9998 esac
9999 ;;
10000
10001 interix[3-9]*)
10002 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10004 ;;
10005
10006 irix5* | irix6* | nonstopux*)
10007 case $LD in
10008 *-32|*"-32 ") libmagic=32-bit;;
10009 *-n32|*"-n32 ") libmagic=N32;;
10010 *-64|*"-64 ") libmagic=64-bit;;
10011 *) libmagic=never-match;;
10012 esac
10013 lt_cv_deplibs_check_method=pass_all
10014 ;;
10015
10016 # This must be glibc/ELF.
10017 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10018 lt_cv_deplibs_check_method=pass_all
10019 ;;
10020
10021 netbsd*)
10022 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10024 else
10025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10026 fi
10027 ;;
10028
10029 newos6*)
10030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10031 lt_cv_file_magic_cmd=/usr/bin/file
10032 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10033 ;;
10034
10035 *nto* | *qnx*)
10036 lt_cv_deplibs_check_method=pass_all
10037 ;;
10038
10039 openbsd* | bitrig*)
10040 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10042 else
10043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10044 fi
10045 ;;
10046
10047 osf3* | osf4* | osf5*)
10048 lt_cv_deplibs_check_method=pass_all
10049 ;;
10050
10051 rdos*)
10052 lt_cv_deplibs_check_method=pass_all
10053 ;;
10054
10055 solaris*)
10056 lt_cv_deplibs_check_method=pass_all
10057 ;;
10058
10059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10060 lt_cv_deplibs_check_method=pass_all
10061 ;;
10062
10063 sysv4 | sysv4.3*)
10064 case $host_vendor in
10065 motorola)
10066 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]'
10067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10068 ;;
10069 ncr)
10070 lt_cv_deplibs_check_method=pass_all
10071 ;;
10072 sequent)
10073 lt_cv_file_magic_cmd='/bin/file'
10074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10075 ;;
10076 sni)
10077 lt_cv_file_magic_cmd='/bin/file'
10078 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10079 lt_cv_file_magic_test_file=/lib/libc.so
10080 ;;
10081 siemens)
10082 lt_cv_deplibs_check_method=pass_all
10083 ;;
10084 pc)
10085 lt_cv_deplibs_check_method=pass_all
10086 ;;
10087 esac
10088 ;;
10089
10090 tpf*)
10091 lt_cv_deplibs_check_method=pass_all
10092 ;;
10093 os2*)
10094 lt_cv_deplibs_check_method=pass_all
10095 ;;
10096 esac
10097
10098 fi
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10100 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10101
10102 file_magic_glob=
10103 want_nocaseglob=no
10104 if test "$build" = "$host"; then
10105 case $host_os in
10106 mingw* | pw32*)
10107 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10108 want_nocaseglob=yes
10109 else
10110 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10111 fi
10112 ;;
10113 esac
10114 fi
10115
10116 file_magic_cmd=$lt_cv_file_magic_cmd
10117 deplibs_check_method=$lt_cv_deplibs_check_method
10118 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141 if test -n "$ac_tool_prefix"; then
10142 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10143 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if ${ac_cv_prog_DLLTOOL+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 if test -n "$DLLTOOL"; then
10150 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10151 else
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10154 do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 break 2
10162 fi
10163 done
10164 done
10165 IFS=$as_save_IFS
10166
10167 fi
10168 fi
10169 DLLTOOL=$ac_cv_prog_DLLTOOL
10170 if test -n "$DLLTOOL"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10172 $as_echo "$DLLTOOL" >&6; }
10173 else
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10176 fi
10177
10178
10179 fi
10180 if test -z "$ac_cv_prog_DLLTOOL"; then
10181 ac_ct_DLLTOOL=$DLLTOOL
10182 # Extract the first word of "dlltool", so it can be a program name with args.
10183 set dummy dlltool; ac_word=$2
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185 $as_echo_n "checking for $ac_word... " >&6; }
10186 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 if test -n "$ac_ct_DLLTOOL"; then
10190 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10191 else
10192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193 for as_dir in $PATH
10194 do
10195 IFS=$as_save_IFS
10196 test -z "$as_dir" && as_dir=.
10197 for ac_exec_ext in '' $ac_executable_extensions; do
10198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10199 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201 break 2
10202 fi
10203 done
10204 done
10205 IFS=$as_save_IFS
10206
10207 fi
10208 fi
10209 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10210 if test -n "$ac_ct_DLLTOOL"; then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10212 $as_echo "$ac_ct_DLLTOOL" >&6; }
10213 else
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215 $as_echo "no" >&6; }
10216 fi
10217
10218 if test "x$ac_ct_DLLTOOL" = x; then
10219 DLLTOOL="false"
10220 else
10221 case $cross_compiling:$ac_tool_warned in
10222 yes:)
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10225 ac_tool_warned=yes ;;
10226 esac
10227 DLLTOOL=$ac_ct_DLLTOOL
10228 fi
10229 else
10230 DLLTOOL="$ac_cv_prog_DLLTOOL"
10231 fi
10232
10233 test -z "$DLLTOOL" && DLLTOOL=dlltool
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10245 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10246 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10247 $as_echo_n "(cached) " >&6
10248 else
10249 lt_cv_sharedlib_from_linklib_cmd='unknown'
10250
10251 case $host_os in
10252 cygwin* | mingw* | pw32* | cegcc*)
10253 # two different shell functions defined in ltmain.sh;
10254 # decide which one to use based on capabilities of $DLLTOOL
10255 case `$DLLTOOL --help 2>&1` in
10256 *--identify-strict*)
10257 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10258 ;;
10259 *)
10260 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10261 ;;
10262 esac
10263 ;;
10264 *)
10265 # fallback: assume linklib IS sharedlib
10266 lt_cv_sharedlib_from_linklib_cmd=$ECHO
10267 ;;
10268 esac
10269
10270 fi
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10272 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10273 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10274 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10275
10276
10277
10278
10279
10280
10281
10282 if test -n "$ac_tool_prefix"; then
10283 for ac_prog in ar
10284 do
10285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_prog_AR+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 if test -n "$AR"; then
10293 ac_cv_prog_AR="$AR" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304 break 2
10305 fi
10306 done
10307 done
10308 IFS=$as_save_IFS
10309
10310 fi
10311 fi
10312 AR=$ac_cv_prog_AR
10313 if test -n "$AR"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10315 $as_echo "$AR" >&6; }
10316 else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10319 fi
10320
10321
10322 test -n "$AR" && break
10323 done
10324 fi
10325 if test -z "$AR"; then
10326 ac_ct_AR=$AR
10327 for ac_prog in ar
10328 do
10329 # Extract the first word of "$ac_prog", so it can be a program name with args.
10330 set dummy $ac_prog; ac_word=$2
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332 $as_echo_n "checking for $ac_word... " >&6; }
10333 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 if test -n "$ac_ct_AR"; then
10337 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10338 else
10339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340 for as_dir in $PATH
10341 do
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10346 ac_cv_prog_ac_ct_AR="$ac_prog"
10347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10348 break 2
10349 fi
10350 done
10351 done
10352 IFS=$as_save_IFS
10353
10354 fi
10355 fi
10356 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10357 if test -n "$ac_ct_AR"; then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10359 $as_echo "$ac_ct_AR" >&6; }
10360 else
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; }
10363 fi
10364
10365
10366 test -n "$ac_ct_AR" && break
10367 done
10368
10369 if test "x$ac_ct_AR" = x; then
10370 AR="false"
10371 else
10372 case $cross_compiling:$ac_tool_warned in
10373 yes:)
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10376 ac_tool_warned=yes ;;
10377 esac
10378 AR=$ac_ct_AR
10379 fi
10380 fi
10381
10382 : ${AR=ar}
10383 : ${AR_FLAGS=cru}
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10396 $as_echo_n "checking for archiver @FILE support... " >&6; }
10397 if ${lt_cv_ar_at_file+:} false; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 lt_cv_ar_at_file=no
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10403
10404 int
10405 main ()
10406 {
10407
10408 ;
10409 return 0;
10410 }
10411 _ACEOF
10412 if ac_fn_c_try_compile "$LINENO"; then :
10413 echo conftest.$ac_objext > conftest.lst
10414 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10416 (eval $lt_ar_try) 2>&5
10417 ac_status=$?
10418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10419 test $ac_status = 0; }
10420 if test 0 -eq "$ac_status"; then
10421 # Ensure the archiver fails upon bogus file names.
10422 rm -f conftest.$ac_objext libconftest.a
10423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10424 (eval $lt_ar_try) 2>&5
10425 ac_status=$?
10426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10427 test $ac_status = 0; }
10428 if test 0 -ne "$ac_status"; then
10429 lt_cv_ar_at_file=@
10430 fi
10431 fi
10432 rm -f conftest.* libconftest.a
10433
10434 fi
10435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10436
10437 fi
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10439 $as_echo "$lt_cv_ar_at_file" >&6; }
10440
10441 if test no = "$lt_cv_ar_at_file"; then
10442 archiver_list_spec=
10443 else
10444 archiver_list_spec=$lt_cv_ar_at_file
10445 fi
10446
10447
10448
10449
10450
10451
10452
10453 if test -n "$ac_tool_prefix"; then
10454 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10455 set dummy ${ac_tool_prefix}strip; ac_word=$2
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457 $as_echo_n "checking for $ac_word... " >&6; }
10458 if ${ac_cv_prog_STRIP+:} false; then :
10459 $as_echo_n "(cached) " >&6
10460 else
10461 if test -n "$STRIP"; then
10462 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10463 else
10464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465 for as_dir in $PATH
10466 do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10471 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10474 fi
10475 done
10476 done
10477 IFS=$as_save_IFS
10478
10479 fi
10480 fi
10481 STRIP=$ac_cv_prog_STRIP
10482 if test -n "$STRIP"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10484 $as_echo "$STRIP" >&6; }
10485 else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487 $as_echo "no" >&6; }
10488 fi
10489
10490
10491 fi
10492 if test -z "$ac_cv_prog_STRIP"; then
10493 ac_ct_STRIP=$STRIP
10494 # Extract the first word of "strip", so it can be a program name with args.
10495 set dummy strip; 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_ac_ct_STRIP+:} false; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 if test -n "$ac_ct_STRIP"; then
10502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10503 else
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10506 do
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_ac_ct_STRIP="strip"
10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10514 fi
10515 done
10516 done
10517 IFS=$as_save_IFS
10518
10519 fi
10520 fi
10521 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10522 if test -n "$ac_ct_STRIP"; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10524 $as_echo "$ac_ct_STRIP" >&6; }
10525 else
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527 $as_echo "no" >&6; }
10528 fi
10529
10530 if test "x$ac_ct_STRIP" = x; then
10531 STRIP=":"
10532 else
10533 case $cross_compiling:$ac_tool_warned in
10534 yes:)
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10537 ac_tool_warned=yes ;;
10538 esac
10539 STRIP=$ac_ct_STRIP
10540 fi
10541 else
10542 STRIP="$ac_cv_prog_STRIP"
10543 fi
10544
10545 test -z "$STRIP" && STRIP=:
10546
10547
10548
10549
10550
10551
10552 if test -n "$ac_tool_prefix"; then
10553 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10554 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10556 $as_echo_n "checking for $ac_word... " >&6; }
10557 if ${ac_cv_prog_RANLIB+:} false; then :
10558 $as_echo_n "(cached) " >&6
10559 else
10560 if test -n "$RANLIB"; then
10561 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10562 else
10563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564 for as_dir in $PATH
10565 do
10566 IFS=$as_save_IFS
10567 test -z "$as_dir" && as_dir=.
10568 for ac_exec_ext in '' $ac_executable_extensions; do
10569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10570 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10572 break 2
10573 fi
10574 done
10575 done
10576 IFS=$as_save_IFS
10577
10578 fi
10579 fi
10580 RANLIB=$ac_cv_prog_RANLIB
10581 if test -n "$RANLIB"; then
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10583 $as_echo "$RANLIB" >&6; }
10584 else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10587 fi
10588
10589
10590 fi
10591 if test -z "$ac_cv_prog_RANLIB"; then
10592 ac_ct_RANLIB=$RANLIB
10593 # Extract the first word of "ranlib", so it can be a program name with args.
10594 set dummy ranlib; ac_word=$2
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10596 $as_echo_n "checking for $ac_word... " >&6; }
10597 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10598 $as_echo_n "(cached) " >&6
10599 else
10600 if test -n "$ac_ct_RANLIB"; then
10601 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10602 else
10603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10604 for as_dir in $PATH
10605 do
10606 IFS=$as_save_IFS
10607 test -z "$as_dir" && as_dir=.
10608 for ac_exec_ext in '' $ac_executable_extensions; do
10609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10610 ac_cv_prog_ac_ct_RANLIB="ranlib"
10611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10612 break 2
10613 fi
10614 done
10615 done
10616 IFS=$as_save_IFS
10617
10618 fi
10619 fi
10620 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10621 if test -n "$ac_ct_RANLIB"; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10623 $as_echo "$ac_ct_RANLIB" >&6; }
10624 else
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10627 fi
10628
10629 if test "x$ac_ct_RANLIB" = x; then
10630 RANLIB=":"
10631 else
10632 case $cross_compiling:$ac_tool_warned in
10633 yes:)
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10636 ac_tool_warned=yes ;;
10637 esac
10638 RANLIB=$ac_ct_RANLIB
10639 fi
10640 else
10641 RANLIB="$ac_cv_prog_RANLIB"
10642 fi
10643
10644 test -z "$RANLIB" && RANLIB=:
10645
10646
10647
10648
10649
10650
10651 # Determine commands to create old-style static archives.
10652 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10653 old_postinstall_cmds='chmod 644 $oldlib'
10654 old_postuninstall_cmds=
10655
10656 if test -n "$RANLIB"; then
10657 case $host_os in
10658 bitrig* | openbsd*)
10659 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10660 ;;
10661 *)
10662 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10663 ;;
10664 esac
10665 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10666 fi
10667
10668 case $host_os in
10669 darwin*)
10670 lock_old_archive_extraction=yes ;;
10671 *)
10672 lock_old_archive_extraction=no ;;
10673 esac
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713 # If no C compiler was specified, use CC.
10714 LTCC=${LTCC-"$CC"}
10715
10716 # If no C compiler flags were specified, use CFLAGS.
10717 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10718
10719 # Allow CC to be a program name with arguments.
10720 compiler=$CC
10721
10722
10723 # Check for command to grab the raw symbol name followed by C symbol from nm.
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10725 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10726 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10727 $as_echo_n "(cached) " >&6
10728 else
10729
10730 # These are sane defaults that work on at least a few old systems.
10731 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10732
10733 # Character class describing NM global symbol codes.
10734 symcode='[BCDEGRST]'
10735
10736 # Regexp to match symbols that can be accessed directly from C.
10737 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10738
10739 # Define system-specific variables.
10740 case $host_os in
10741 aix*)
10742 symcode='[BCDT]'
10743 ;;
10744 cygwin* | mingw* | pw32* | cegcc*)
10745 symcode='[ABCDGISTW]'
10746 ;;
10747 hpux*)
10748 if test ia64 = "$host_cpu"; then
10749 symcode='[ABCDEGRST]'
10750 fi
10751 ;;
10752 irix* | nonstopux*)
10753 symcode='[BCDEGRST]'
10754 ;;
10755 osf*)
10756 symcode='[BCDEGQRST]'
10757 ;;
10758 solaris*)
10759 symcode='[BDRT]'
10760 ;;
10761 sco3.2v5*)
10762 symcode='[DT]'
10763 ;;
10764 sysv4.2uw2*)
10765 symcode='[DT]'
10766 ;;
10767 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10768 symcode='[ABDT]'
10769 ;;
10770 sysv4)
10771 symcode='[DFNSTU]'
10772 ;;
10773 esac
10774
10775 # If we're using GNU nm, then use its standard symbol codes.
10776 case `$NM -V 2>&1` in
10777 *GNU* | *'with BFD'*)
10778 symcode='[ABCDGIRSTW]' ;;
10779 esac
10780
10781 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10782 # Gets list of data symbols to import.
10783 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10784 # Adjust the below global symbol transforms to fixup imported variables.
10785 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10786 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
10787 lt_c_name_lib_hook="\
10788 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
10789 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
10790 else
10791 # Disable hooks by default.
10792 lt_cv_sys_global_symbol_to_import=
10793 lt_cdecl_hook=
10794 lt_c_name_hook=
10795 lt_c_name_lib_hook=
10796 fi
10797
10798 # Transform an extracted symbol line into a proper C declaration.
10799 # Some systems (esp. on ia64) link data and code symbols differently,
10800 # so use this general approach.
10801 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10802 $lt_cdecl_hook\
10803 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10804 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10805
10806 # Transform an extracted symbol line into symbol name and symbol address
10807 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10808 $lt_c_name_hook\
10809 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10810 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
10811
10812 # Transform an extracted symbol line into symbol name with lib prefix and
10813 # symbol address.
10814 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10815 $lt_c_name_lib_hook\
10816 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10817 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
10818 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
10819
10820 # Handle CRLF in mingw tool chain
10821 opt_cr=
10822 case $build_os in
10823 mingw*)
10824 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10825 ;;
10826 esac
10827
10828 # Try without a prefix underscore, then with it.
10829 for ac_symprfx in "" "_"; do
10830
10831 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10832 symxfrm="\\1 $ac_symprfx\\2 \\2"
10833
10834 # Write the raw and C identifiers.
10835 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10836 # Fake it for dumpbin and say T for any non-static function,
10837 # D for any global variable and I for any imported variable.
10838 # Also find C++ and __fastcall symbols from MSVC++,
10839 # which start with @ or ?.
10840 lt_cv_sys_global_symbol_pipe="$AWK '"\
10841 " {last_section=section; section=\$ 3};"\
10842 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10843 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10844 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10845 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10846 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10847 " \$ 0!~/External *\|/{next};"\
10848 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10849 " {if(hide[section]) next};"\
10850 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10851 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10852 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10853 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10854 " ' prfx=^$ac_symprfx"
10855 else
10856 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10857 fi
10858 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10859
10860 # Check to see that the pipe works correctly.
10861 pipe_works=no
10862
10863 rm -f conftest*
10864 cat > conftest.$ac_ext <<_LT_EOF
10865 #ifdef __cplusplus
10866 extern "C" {
10867 #endif
10868 char nm_test_var;
10869 void nm_test_func(void);
10870 void nm_test_func(void){}
10871 #ifdef __cplusplus
10872 }
10873 #endif
10874 int main(){nm_test_var='a';nm_test_func();return(0);}
10875 _LT_EOF
10876
10877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10878 (eval $ac_compile) 2>&5
10879 ac_status=$?
10880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10881 test $ac_status = 0; }; then
10882 # Now try to grab the symbols.
10883 nlist=conftest.nm
10884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10885 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10886 ac_status=$?
10887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10888 test $ac_status = 0; } && test -s "$nlist"; then
10889 # Try sorting and uniquifying the output.
10890 if sort "$nlist" | uniq > "$nlist"T; then
10891 mv -f "$nlist"T "$nlist"
10892 else
10893 rm -f "$nlist"T
10894 fi
10895
10896 # Make sure that we snagged all the symbols we need.
10897 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10898 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10899 cat <<_LT_EOF > conftest.$ac_ext
10900 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10901 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10902 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10903 relocations are performed -- see ld's documentation on pseudo-relocs. */
10904 # define LT_DLSYM_CONST
10905 #elif defined __osf__
10906 /* This system does not cope well with relocations in const data. */
10907 # define LT_DLSYM_CONST
10908 #else
10909 # define LT_DLSYM_CONST const
10910 #endif
10911
10912 #ifdef __cplusplus
10913 extern "C" {
10914 #endif
10915
10916 _LT_EOF
10917 # Now generate the symbol file.
10918 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10919
10920 cat <<_LT_EOF >> conftest.$ac_ext
10921
10922 /* The mapping between symbol names and symbols. */
10923 LT_DLSYM_CONST struct {
10924 const char *name;
10925 void *address;
10926 }
10927 lt__PROGRAM__LTX_preloaded_symbols[] =
10928 {
10929 { "@PROGRAM@", (void *) 0 },
10930 _LT_EOF
10931 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10932 cat <<\_LT_EOF >> conftest.$ac_ext
10933 {0, (void *) 0}
10934 };
10935
10936 /* This works around a problem in FreeBSD linker */
10937 #ifdef FREEBSD_WORKAROUND
10938 static const void *lt_preloaded_setup() {
10939 return lt__PROGRAM__LTX_preloaded_symbols;
10940 }
10941 #endif
10942
10943 #ifdef __cplusplus
10944 }
10945 #endif
10946 _LT_EOF
10947 # Now try linking the two files.
10948 mv conftest.$ac_objext conftstm.$ac_objext
10949 lt_globsym_save_LIBS=$LIBS
10950 lt_globsym_save_CFLAGS=$CFLAGS
10951 LIBS=conftstm.$ac_objext
10952 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10954 (eval $ac_link) 2>&5
10955 ac_status=$?
10956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10957 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10958 pipe_works=yes
10959 fi
10960 LIBS=$lt_globsym_save_LIBS
10961 CFLAGS=$lt_globsym_save_CFLAGS
10962 else
10963 echo "cannot find nm_test_func in $nlist" >&5
10964 fi
10965 else
10966 echo "cannot find nm_test_var in $nlist" >&5
10967 fi
10968 else
10969 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10970 fi
10971 else
10972 echo "$progname: failed program was:" >&5
10973 cat conftest.$ac_ext >&5
10974 fi
10975 rm -rf conftest* conftst*
10976
10977 # Do not use the global_symbol_pipe unless it works.
10978 if test yes = "$pipe_works"; then
10979 break
10980 else
10981 lt_cv_sys_global_symbol_pipe=
10982 fi
10983 done
10984
10985 fi
10986
10987 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10988 lt_cv_sys_global_symbol_to_cdecl=
10989 fi
10990 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10992 $as_echo "failed" >&6; }
10993 else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10995 $as_echo "ok" >&6; }
10996 fi
10997
10998 # Response file support.
10999 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11000 nm_file_list_spec='@'
11001 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11002 nm_file_list_spec='@'
11003 fi
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11042 $as_echo_n "checking for sysroot... " >&6; }
11043
11044 # Check whether --with-sysroot was given.
11045 if test "${with_sysroot+set}" = set; then :
11046 withval=$with_sysroot;
11047 else
11048 with_sysroot=no
11049 fi
11050
11051
11052 lt_sysroot=
11053 case $with_sysroot in #(
11054 yes)
11055 if test yes = "$GCC"; then
11056 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11057 fi
11058 ;; #(
11059 /*)
11060 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11061 ;; #(
11062 no|'')
11063 ;; #(
11064 *)
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11066 $as_echo "$with_sysroot" >&6; }
11067 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11068 ;;
11069 esac
11070
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11072 $as_echo "${lt_sysroot:-no}" >&6; }
11073
11074
11075
11076
11077
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11079 $as_echo_n "checking for a working dd... " >&6; }
11080 if ${ac_cv_path_lt_DD+:} false; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 printf 0123456789abcdef0123456789abcdef >conftest.i
11084 cat conftest.i conftest.i >conftest2.i
11085 : ${lt_DD:=$DD}
11086 if test -z "$lt_DD"; then
11087 ac_path_lt_DD_found=false
11088 # Loop through the user's path and test for each of PROGNAME-LIST
11089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11090 for as_dir in $PATH
11091 do
11092 IFS=$as_save_IFS
11093 test -z "$as_dir" && as_dir=.
11094 for ac_prog in dd; do
11095 for ac_exec_ext in '' $ac_executable_extensions; do
11096 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
11097 as_fn_executable_p "$ac_path_lt_DD" || continue
11098 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11099 cmp -s conftest.i conftest.out \
11100 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11101 fi
11102 $ac_path_lt_DD_found && break 3
11103 done
11104 done
11105 done
11106 IFS=$as_save_IFS
11107 if test -z "$ac_cv_path_lt_DD"; then
11108 :
11109 fi
11110 else
11111 ac_cv_path_lt_DD=$lt_DD
11112 fi
11113
11114 rm -f conftest.i conftest2.i conftest.out
11115 fi
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11117 $as_echo "$ac_cv_path_lt_DD" >&6; }
11118
11119
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11121 $as_echo_n "checking how to truncate binary pipes... " >&6; }
11122 if ${lt_cv_truncate_bin+:} false; then :
11123 $as_echo_n "(cached) " >&6
11124 else
11125 printf 0123456789abcdef0123456789abcdef >conftest.i
11126 cat conftest.i conftest.i >conftest2.i
11127 lt_cv_truncate_bin=
11128 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11129 cmp -s conftest.i conftest.out \
11130 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11131 fi
11132 rm -f conftest.i conftest2.i conftest.out
11133 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11136 $as_echo "$lt_cv_truncate_bin" >&6; }
11137
11138
11139
11140
11141
11142
11143
11144 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
11145 func_cc_basename ()
11146 {
11147 for cc_temp in $*""; do
11148 case $cc_temp in
11149 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11150 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11151 \-*) ;;
11152 *) break;;
11153 esac
11154 done
11155 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11156 }
11157
11158 # Check whether --enable-libtool-lock was given.
11159 if test "${enable_libtool_lock+set}" = set; then :
11160 enableval=$enable_libtool_lock;
11161 fi
11162
11163 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11164
11165 # Some flags need to be propagated to the compiler or linker for good
11166 # libtool support.
11167 case $host in
11168 ia64-*-hpux*)
11169 # Find out what ABI is being produced by ac_compile, and set mode
11170 # options accordingly.
11171 echo 'int i;' > conftest.$ac_ext
11172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11173 (eval $ac_compile) 2>&5
11174 ac_status=$?
11175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11176 test $ac_status = 0; }; then
11177 case `/usr/bin/file conftest.$ac_objext` in
11178 *ELF-32*)
11179 HPUX_IA64_MODE=32
11180 ;;
11181 *ELF-64*)
11182 HPUX_IA64_MODE=64
11183 ;;
11184 esac
11185 fi
11186 rm -rf conftest*
11187 ;;
11188 *-*-irix6*)
11189 # Find out what ABI is being produced by ac_compile, and set linker
11190 # options accordingly.
11191 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11193 (eval $ac_compile) 2>&5
11194 ac_status=$?
11195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11196 test $ac_status = 0; }; then
11197 if test yes = "$lt_cv_prog_gnu_ld"; then
11198 case `/usr/bin/file conftest.$ac_objext` in
11199 *32-bit*)
11200 LD="${LD-ld} -melf32bsmip"
11201 ;;
11202 *N32*)
11203 LD="${LD-ld} -melf32bmipn32"
11204 ;;
11205 *64-bit*)
11206 LD="${LD-ld} -melf64bmip"
11207 ;;
11208 esac
11209 else
11210 case `/usr/bin/file conftest.$ac_objext` in
11211 *32-bit*)
11212 LD="${LD-ld} -32"
11213 ;;
11214 *N32*)
11215 LD="${LD-ld} -n32"
11216 ;;
11217 *64-bit*)
11218 LD="${LD-ld} -64"
11219 ;;
11220 esac
11221 fi
11222 fi
11223 rm -rf conftest*
11224 ;;
11225
11226 mips64*-*linux*)
11227 # Find out what ABI is being produced by ac_compile, and set linker
11228 # options accordingly.
11229 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11231 (eval $ac_compile) 2>&5
11232 ac_status=$?
11233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11234 test $ac_status = 0; }; then
11235 emul=elf
11236 case `/usr/bin/file conftest.$ac_objext` in
11237 *32-bit*)
11238 emul="${emul}32"
11239 ;;
11240 *64-bit*)
11241 emul="${emul}64"
11242 ;;
11243 esac
11244 case `/usr/bin/file conftest.$ac_objext` in
11245 *MSB*)
11246 emul="${emul}btsmip"
11247 ;;
11248 *LSB*)
11249 emul="${emul}ltsmip"
11250 ;;
11251 esac
11252 case `/usr/bin/file conftest.$ac_objext` in
11253 *N32*)
11254 emul="${emul}n32"
11255 ;;
11256 esac
11257 LD="${LD-ld} -m $emul"
11258 fi
11259 rm -rf conftest*
11260 ;;
11261
11262 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11263 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11264 # Find out what ABI is being produced by ac_compile, and set linker
11265 # options accordingly. Note that the listed cases only cover the
11266 # situations where additional linker options are needed (such as when
11267 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11268 # vice versa); the common cases where no linker options are needed do
11269 # not appear in the list.
11270 echo 'int i;' > conftest.$ac_ext
11271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11272 (eval $ac_compile) 2>&5
11273 ac_status=$?
11274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11275 test $ac_status = 0; }; then
11276 case `/usr/bin/file conftest.o` in
11277 *32-bit*)
11278 case $host in
11279 x86_64-*kfreebsd*-gnu)
11280 LD="${LD-ld} -m elf_i386_fbsd"
11281 ;;
11282 x86_64-*linux*)
11283 case `/usr/bin/file conftest.o` in
11284 *x86-64*)
11285 LD="${LD-ld} -m elf32_x86_64"
11286 ;;
11287 *)
11288 LD="${LD-ld} -m elf_i386"
11289 ;;
11290 esac
11291 ;;
11292 powerpc64le-*linux*)
11293 LD="${LD-ld} -m elf32lppclinux"
11294 ;;
11295 powerpc64-*linux*)
11296 LD="${LD-ld} -m elf32ppclinux"
11297 ;;
11298 s390x-*linux*)
11299 LD="${LD-ld} -m elf_s390"
11300 ;;
11301 sparc64-*linux*)
11302 LD="${LD-ld} -m elf32_sparc"
11303 ;;
11304 esac
11305 ;;
11306 *64-bit*)
11307 case $host in
11308 x86_64-*kfreebsd*-gnu)
11309 LD="${LD-ld} -m elf_x86_64_fbsd"
11310 ;;
11311 x86_64-*linux*)
11312 LD="${LD-ld} -m elf_x86_64"
11313 ;;
11314 powerpcle-*linux*)
11315 LD="${LD-ld} -m elf64lppc"
11316 ;;
11317 powerpc-*linux*)
11318 LD="${LD-ld} -m elf64ppc"
11319 ;;
11320 s390*-*linux*|s390*-*tpf*)
11321 LD="${LD-ld} -m elf64_s390"
11322 ;;
11323 sparc*-*linux*)
11324 LD="${LD-ld} -m elf64_sparc"
11325 ;;
11326 esac
11327 ;;
11328 esac
11329 fi
11330 rm -rf conftest*
11331 ;;
11332
11333 *-*-sco3.2v5*)
11334 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11335 SAVE_CFLAGS=$CFLAGS
11336 CFLAGS="$CFLAGS -belf"
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11338 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11339 if ${lt_cv_cc_needs_belf+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 ac_ext=c
11343 ac_cpp='$CPP $CPPFLAGS'
11344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11347
11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h. */
11350
11351 int
11352 main ()
11353 {
11354
11355 ;
11356 return 0;
11357 }
11358 _ACEOF
11359 if ac_fn_c_try_link "$LINENO"; then :
11360 lt_cv_cc_needs_belf=yes
11361 else
11362 lt_cv_cc_needs_belf=no
11363 fi
11364 rm -f core conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext conftest.$ac_ext
11366 ac_ext=c
11367 ac_cpp='$CPP $CPPFLAGS'
11368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11371
11372 fi
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11374 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11375 if test yes != "$lt_cv_cc_needs_belf"; then
11376 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11377 CFLAGS=$SAVE_CFLAGS
11378 fi
11379 ;;
11380 *-*solaris*)
11381 # Find out what ABI is being produced by ac_compile, and set linker
11382 # options accordingly.
11383 echo 'int i;' > conftest.$ac_ext
11384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11385 (eval $ac_compile) 2>&5
11386 ac_status=$?
11387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11388 test $ac_status = 0; }; then
11389 case `/usr/bin/file conftest.o` in
11390 *64-bit*)
11391 case $lt_cv_prog_gnu_ld in
11392 yes*)
11393 case $host in
11394 i?86-*-solaris*|x86_64-*-solaris*)
11395 LD="${LD-ld} -m elf_x86_64"
11396 ;;
11397 sparc*-*-solaris*)
11398 LD="${LD-ld} -m elf64_sparc"
11399 ;;
11400 esac
11401 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11402 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11403 LD=${LD-ld}_sol2
11404 fi
11405 ;;
11406 *)
11407 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11408 LD="${LD-ld} -64"
11409 fi
11410 ;;
11411 esac
11412 ;;
11413 esac
11414 fi
11415 rm -rf conftest*
11416 ;;
11417 esac
11418
11419 need_locks=$enable_libtool_lock
11420
11421 if test -n "$ac_tool_prefix"; then
11422 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11423 set dummy ${ac_tool_prefix}mt; ac_word=$2
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425 $as_echo_n "checking for $ac_word... " >&6; }
11426 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11429 if test -n "$MANIFEST_TOOL"; then
11430 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11431 else
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11434 do
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11439 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11441 break 2
11442 fi
11443 done
11444 done
11445 IFS=$as_save_IFS
11446
11447 fi
11448 fi
11449 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11450 if test -n "$MANIFEST_TOOL"; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11452 $as_echo "$MANIFEST_TOOL" >&6; }
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; }
11456 fi
11457
11458
11459 fi
11460 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11461 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11462 # Extract the first word of "mt", so it can be a program name with args.
11463 set dummy mt; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 if test -n "$ac_ct_MANIFEST_TOOL"; then
11470 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11471 else
11472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in $PATH
11474 do
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11479 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 break 2
11482 fi
11483 done
11484 done
11485 IFS=$as_save_IFS
11486
11487 fi
11488 fi
11489 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11490 if test -n "$ac_ct_MANIFEST_TOOL"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11492 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 $as_echo "no" >&6; }
11496 fi
11497
11498 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11499 MANIFEST_TOOL=":"
11500 else
11501 case $cross_compiling:$ac_tool_warned in
11502 yes:)
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11505 ac_tool_warned=yes ;;
11506 esac
11507 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11508 fi
11509 else
11510 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11511 fi
11512
11513 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11515 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11516 if ${lt_cv_path_mainfest_tool+:} false; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 lt_cv_path_mainfest_tool=no
11520 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11521 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11522 cat conftest.err >&5
11523 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11524 lt_cv_path_mainfest_tool=yes
11525 fi
11526 rm -f conftest*
11527 fi
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11529 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11530 if test yes != "$lt_cv_path_mainfest_tool"; then
11531 MANIFEST_TOOL=:
11532 fi
11533
11534
11535
11536
11537
11538
11539 case $host_os in
11540 rhapsody* | darwin*)
11541 if test -n "$ac_tool_prefix"; then
11542 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11543 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11545 $as_echo_n "checking for $ac_word... " >&6; }
11546 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11547 $as_echo_n "(cached) " >&6
11548 else
11549 if test -n "$DSYMUTIL"; then
11550 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11551 else
11552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553 for as_dir in $PATH
11554 do
11555 IFS=$as_save_IFS
11556 test -z "$as_dir" && as_dir=.
11557 for ac_exec_ext in '' $ac_executable_extensions; do
11558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11559 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11561 break 2
11562 fi
11563 done
11564 done
11565 IFS=$as_save_IFS
11566
11567 fi
11568 fi
11569 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11570 if test -n "$DSYMUTIL"; then
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11572 $as_echo "$DSYMUTIL" >&6; }
11573 else
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11575 $as_echo "no" >&6; }
11576 fi
11577
11578
11579 fi
11580 if test -z "$ac_cv_prog_DSYMUTIL"; then
11581 ac_ct_DSYMUTIL=$DSYMUTIL
11582 # Extract the first word of "dsymutil", so it can be a program name with args.
11583 set dummy dsymutil; ac_word=$2
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585 $as_echo_n "checking for $ac_word... " >&6; }
11586 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 if test -n "$ac_ct_DSYMUTIL"; then
11590 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11591 else
11592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593 for as_dir in $PATH
11594 do
11595 IFS=$as_save_IFS
11596 test -z "$as_dir" && as_dir=.
11597 for ac_exec_ext in '' $ac_executable_extensions; do
11598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11599 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11601 break 2
11602 fi
11603 done
11604 done
11605 IFS=$as_save_IFS
11606
11607 fi
11608 fi
11609 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11610 if test -n "$ac_ct_DSYMUTIL"; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11612 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11613 else
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; }
11616 fi
11617
11618 if test "x$ac_ct_DSYMUTIL" = x; then
11619 DSYMUTIL=":"
11620 else
11621 case $cross_compiling:$ac_tool_warned in
11622 yes:)
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11625 ac_tool_warned=yes ;;
11626 esac
11627 DSYMUTIL=$ac_ct_DSYMUTIL
11628 fi
11629 else
11630 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11631 fi
11632
11633 if test -n "$ac_tool_prefix"; then
11634 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11635 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637 $as_echo_n "checking for $ac_word... " >&6; }
11638 if ${ac_cv_prog_NMEDIT+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 if test -n "$NMEDIT"; then
11642 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11643 else
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11646 do
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
11650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11651 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11653 break 2
11654 fi
11655 done
11656 done
11657 IFS=$as_save_IFS
11658
11659 fi
11660 fi
11661 NMEDIT=$ac_cv_prog_NMEDIT
11662 if test -n "$NMEDIT"; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11664 $as_echo "$NMEDIT" >&6; }
11665 else
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 $as_echo "no" >&6; }
11668 fi
11669
11670
11671 fi
11672 if test -z "$ac_cv_prog_NMEDIT"; then
11673 ac_ct_NMEDIT=$NMEDIT
11674 # Extract the first word of "nmedit", so it can be a program name with args.
11675 set dummy nmedit; ac_word=$2
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677 $as_echo_n "checking for $ac_word... " >&6; }
11678 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11679 $as_echo_n "(cached) " >&6
11680 else
11681 if test -n "$ac_ct_NMEDIT"; then
11682 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11683 else
11684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685 for as_dir in $PATH
11686 do
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11691 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 break 2
11694 fi
11695 done
11696 done
11697 IFS=$as_save_IFS
11698
11699 fi
11700 fi
11701 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11702 if test -n "$ac_ct_NMEDIT"; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11704 $as_echo "$ac_ct_NMEDIT" >&6; }
11705 else
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11708 fi
11709
11710 if test "x$ac_ct_NMEDIT" = x; then
11711 NMEDIT=":"
11712 else
11713 case $cross_compiling:$ac_tool_warned in
11714 yes:)
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11717 ac_tool_warned=yes ;;
11718 esac
11719 NMEDIT=$ac_ct_NMEDIT
11720 fi
11721 else
11722 NMEDIT="$ac_cv_prog_NMEDIT"
11723 fi
11724
11725 if test -n "$ac_tool_prefix"; then
11726 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11727 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729 $as_echo_n "checking for $ac_word... " >&6; }
11730 if ${ac_cv_prog_LIPO+:} false; then :
11731 $as_echo_n "(cached) " >&6
11732 else
11733 if test -n "$LIPO"; then
11734 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11735 else
11736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737 for as_dir in $PATH
11738 do
11739 IFS=$as_save_IFS
11740 test -z "$as_dir" && as_dir=.
11741 for ac_exec_ext in '' $ac_executable_extensions; do
11742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11743 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745 break 2
11746 fi
11747 done
11748 done
11749 IFS=$as_save_IFS
11750
11751 fi
11752 fi
11753 LIPO=$ac_cv_prog_LIPO
11754 if test -n "$LIPO"; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11756 $as_echo "$LIPO" >&6; }
11757 else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11760 fi
11761
11762
11763 fi
11764 if test -z "$ac_cv_prog_LIPO"; then
11765 ac_ct_LIPO=$LIPO
11766 # Extract the first word of "lipo", so it can be a program name with args.
11767 set dummy lipo; ac_word=$2
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769 $as_echo_n "checking for $ac_word... " >&6; }
11770 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 if test -n "$ac_ct_LIPO"; then
11774 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11775 else
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777 for as_dir in $PATH
11778 do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11783 ac_cv_prog_ac_ct_LIPO="lipo"
11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785 break 2
11786 fi
11787 done
11788 done
11789 IFS=$as_save_IFS
11790
11791 fi
11792 fi
11793 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11794 if test -n "$ac_ct_LIPO"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11796 $as_echo "$ac_ct_LIPO" >&6; }
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11800 fi
11801
11802 if test "x$ac_ct_LIPO" = x; then
11803 LIPO=":"
11804 else
11805 case $cross_compiling:$ac_tool_warned in
11806 yes:)
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11809 ac_tool_warned=yes ;;
11810 esac
11811 LIPO=$ac_ct_LIPO
11812 fi
11813 else
11814 LIPO="$ac_cv_prog_LIPO"
11815 fi
11816
11817 if test -n "$ac_tool_prefix"; then
11818 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11819 set dummy ${ac_tool_prefix}otool; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if ${ac_cv_prog_OTOOL+:} false; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11825 if test -n "$OTOOL"; then
11826 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11827 else
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11830 do
11831 IFS=$as_save_IFS
11832 test -z "$as_dir" && as_dir=.
11833 for ac_exec_ext in '' $ac_executable_extensions; do
11834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837 break 2
11838 fi
11839 done
11840 done
11841 IFS=$as_save_IFS
11842
11843 fi
11844 fi
11845 OTOOL=$ac_cv_prog_OTOOL
11846 if test -n "$OTOOL"; then
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11848 $as_echo "$OTOOL" >&6; }
11849 else
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11852 fi
11853
11854
11855 fi
11856 if test -z "$ac_cv_prog_OTOOL"; then
11857 ac_ct_OTOOL=$OTOOL
11858 # Extract the first word of "otool", so it can be a program name with args.
11859 set dummy otool; ac_word=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 if test -n "$ac_ct_OTOOL"; then
11866 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11867 else
11868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869 for as_dir in $PATH
11870 do
11871 IFS=$as_save_IFS
11872 test -z "$as_dir" && as_dir=.
11873 for ac_exec_ext in '' $ac_executable_extensions; do
11874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11875 ac_cv_prog_ac_ct_OTOOL="otool"
11876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877 break 2
11878 fi
11879 done
11880 done
11881 IFS=$as_save_IFS
11882
11883 fi
11884 fi
11885 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11886 if test -n "$ac_ct_OTOOL"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11888 $as_echo "$ac_ct_OTOOL" >&6; }
11889 else
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11892 fi
11893
11894 if test "x$ac_ct_OTOOL" = x; then
11895 OTOOL=":"
11896 else
11897 case $cross_compiling:$ac_tool_warned in
11898 yes:)
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11901 ac_tool_warned=yes ;;
11902 esac
11903 OTOOL=$ac_ct_OTOOL
11904 fi
11905 else
11906 OTOOL="$ac_cv_prog_OTOOL"
11907 fi
11908
11909 if test -n "$ac_tool_prefix"; then
11910 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11911 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11913 $as_echo_n "checking for $ac_word... " >&6; }
11914 if ${ac_cv_prog_OTOOL64+:} false; then :
11915 $as_echo_n "(cached) " >&6
11916 else
11917 if test -n "$OTOOL64"; then
11918 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11919 else
11920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921 for as_dir in $PATH
11922 do
11923 IFS=$as_save_IFS
11924 test -z "$as_dir" && as_dir=.
11925 for ac_exec_ext in '' $ac_executable_extensions; do
11926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11927 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11929 break 2
11930 fi
11931 done
11932 done
11933 IFS=$as_save_IFS
11934
11935 fi
11936 fi
11937 OTOOL64=$ac_cv_prog_OTOOL64
11938 if test -n "$OTOOL64"; then
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11940 $as_echo "$OTOOL64" >&6; }
11941 else
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943 $as_echo "no" >&6; }
11944 fi
11945
11946
11947 fi
11948 if test -z "$ac_cv_prog_OTOOL64"; then
11949 ac_ct_OTOOL64=$OTOOL64
11950 # Extract the first word of "otool64", so it can be a program name with args.
11951 set dummy otool64; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 if test -n "$ac_ct_OTOOL64"; then
11958 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11959 else
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11962 do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967 ac_cv_prog_ac_ct_OTOOL64="otool64"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11970 fi
11971 done
11972 done
11973 IFS=$as_save_IFS
11974
11975 fi
11976 fi
11977 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11978 if test -n "$ac_ct_OTOOL64"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11980 $as_echo "$ac_ct_OTOOL64" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984 fi
11985
11986 if test "x$ac_ct_OTOOL64" = x; then
11987 OTOOL64=":"
11988 else
11989 case $cross_compiling:$ac_tool_warned in
11990 yes:)
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11993 ac_tool_warned=yes ;;
11994 esac
11995 OTOOL64=$ac_ct_OTOOL64
11996 fi
11997 else
11998 OTOOL64="$ac_cv_prog_OTOOL64"
11999 fi
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12028 $as_echo_n "checking for -single_module linker flag... " >&6; }
12029 if ${lt_cv_apple_cc_single_mod+:} false; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 lt_cv_apple_cc_single_mod=no
12033 if test -z "$LT_MULTI_MODULE"; then
12034 # By default we will add the -single_module flag. You can override
12035 # by either setting the environment variable LT_MULTI_MODULE
12036 # non-empty at configure time, or by adding -multi_module to the
12037 # link flags.
12038 rm -rf libconftest.dylib*
12039 echo "int foo(void){return 1;}" > conftest.c
12040 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12041 -dynamiclib -Wl,-single_module conftest.c" >&5
12042 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12043 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12044 _lt_result=$?
12045 # If there is a non-empty error log, and "single_module"
12046 # appears in it, assume the flag caused a linker warning
12047 if test -s conftest.err && $GREP single_module conftest.err; then
12048 cat conftest.err >&5
12049 # Otherwise, if the output was created with a 0 exit code from
12050 # the compiler, it worked.
12051 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12052 lt_cv_apple_cc_single_mod=yes
12053 else
12054 cat conftest.err >&5
12055 fi
12056 rm -rf libconftest.dylib*
12057 rm -f conftest.*
12058 fi
12059 fi
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12061 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12062
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12064 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12065 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12066 $as_echo_n "(cached) " >&6
12067 else
12068 lt_cv_ld_exported_symbols_list=no
12069 save_LDFLAGS=$LDFLAGS
12070 echo "_main" > conftest.sym
12071 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074
12075 int
12076 main ()
12077 {
12078
12079 ;
12080 return 0;
12081 }
12082 _ACEOF
12083 if ac_fn_c_try_link "$LINENO"; then :
12084 lt_cv_ld_exported_symbols_list=yes
12085 else
12086 lt_cv_ld_exported_symbols_list=no
12087 fi
12088 rm -f core conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12090 LDFLAGS=$save_LDFLAGS
12091
12092 fi
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12094 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12095
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12097 $as_echo_n "checking for -force_load linker flag... " >&6; }
12098 if ${lt_cv_ld_force_load+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 lt_cv_ld_force_load=no
12102 cat > conftest.c << _LT_EOF
12103 int forced_loaded() { return 2;}
12104 _LT_EOF
12105 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12106 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12107 echo "$AR cru libconftest.a conftest.o" >&5
12108 $AR cru libconftest.a conftest.o 2>&5
12109 echo "$RANLIB libconftest.a" >&5
12110 $RANLIB libconftest.a 2>&5
12111 cat > conftest.c << _LT_EOF
12112 int main() { return 0;}
12113 _LT_EOF
12114 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12115 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12116 _lt_result=$?
12117 if test -s conftest.err && $GREP force_load conftest.err; then
12118 cat conftest.err >&5
12119 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12120 lt_cv_ld_force_load=yes
12121 else
12122 cat conftest.err >&5
12123 fi
12124 rm -f conftest.err libconftest.a conftest conftest.c
12125 rm -rf conftest.dSYM
12126
12127 fi
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12129 $as_echo "$lt_cv_ld_force_load" >&6; }
12130 case $host_os in
12131 rhapsody* | darwin1.[012])
12132 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12133 darwin1.*)
12134 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12135 darwin*) # darwin 5.x on
12136 # if running on 10.5 or later, the deployment target defaults
12137 # to the OS version, if on x86, and 10.4, the deployment
12138 # target defaults to 10.4. Don't you love it?
12139 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12140 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12141 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12142 10.[012][,.]*)
12143 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12144 10.*)
12145 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12146 esac
12147 ;;
12148 esac
12149 if test yes = "$lt_cv_apple_cc_single_mod"; then
12150 _lt_dar_single_mod='$single_module'
12151 fi
12152 if test yes = "$lt_cv_ld_exported_symbols_list"; then
12153 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12154 else
12155 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12156 fi
12157 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12158 _lt_dsymutil='~$DSYMUTIL $lib || :'
12159 else
12160 _lt_dsymutil=
12161 fi
12162 ;;
12163 esac
12164
12165 # func_munge_path_list VARIABLE PATH
12166 # -----------------------------------
12167 # VARIABLE is name of variable containing _space_ separated list of
12168 # directories to be munged by the contents of PATH, which is string
12169 # having a format:
12170 # "DIR[:DIR]:"
12171 # string "DIR[ DIR]" will be prepended to VARIABLE
12172 # ":DIR[:DIR]"
12173 # string "DIR[ DIR]" will be appended to VARIABLE
12174 # "DIRP[:DIRP]::[DIRA:]DIRA"
12175 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12176 # "DIRA[ DIRA]" will be appended to VARIABLE
12177 # "DIR[:DIR]"
12178 # VARIABLE will be replaced by "DIR[ DIR]"
12179 func_munge_path_list ()
12180 {
12181 case x$2 in
12182 x)
12183 ;;
12184 *:)
12185 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12186 ;;
12187 x:*)
12188 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12189 ;;
12190 *::*)
12191 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12192 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12193 ;;
12194 *)
12195 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12196 ;;
12197 esac
12198 }
12199
12200 for ac_header in dlfcn.h
12201 do :
12202 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12203 "
12204 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12205 cat >>confdefs.h <<_ACEOF
12206 #define HAVE_DLFCN_H 1
12207 _ACEOF
12208
12209 fi
12210
12211 done
12212
12213
12214
12215
12216
12217 # Set options
12218
12219
12220
12221 enable_dlopen=no
12222
12223
12224 enable_win32_dll=no
12225
12226
12227 # Check whether --enable-shared was given.
12228 if test "${enable_shared+set}" = set; then :
12229 enableval=$enable_shared; p=${PACKAGE-default}
12230 case $enableval in
12231 yes) enable_shared=yes ;;
12232 no) enable_shared=no ;;
12233 *)
12234 enable_shared=no
12235 # Look at the argument we got. We use all the common list separators.
12236 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12237 for pkg in $enableval; do
12238 IFS=$lt_save_ifs
12239 if test "X$pkg" = "X$p"; then
12240 enable_shared=yes
12241 fi
12242 done
12243 IFS=$lt_save_ifs
12244 ;;
12245 esac
12246 else
12247 enable_shared=yes
12248 fi
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258 # Check whether --enable-static was given.
12259 if test "${enable_static+set}" = set; then :
12260 enableval=$enable_static; p=${PACKAGE-default}
12261 case $enableval in
12262 yes) enable_static=yes ;;
12263 no) enable_static=no ;;
12264 *)
12265 enable_static=no
12266 # Look at the argument we got. We use all the common list separators.
12267 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12268 for pkg in $enableval; do
12269 IFS=$lt_save_ifs
12270 if test "X$pkg" = "X$p"; then
12271 enable_static=yes
12272 fi
12273 done
12274 IFS=$lt_save_ifs
12275 ;;
12276 esac
12277 else
12278 enable_static=yes
12279 fi
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290 # Check whether --with-pic was given.
12291 if test "${with_pic+set}" = set; then :
12292 withval=$with_pic; lt_p=${PACKAGE-default}
12293 case $withval in
12294 yes|no) pic_mode=$withval ;;
12295 *)
12296 pic_mode=default
12297 # Look at the argument we got. We use all the common list separators.
12298 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12299 for lt_pkg in $withval; do
12300 IFS=$lt_save_ifs
12301 if test "X$lt_pkg" = "X$lt_p"; then
12302 pic_mode=yes
12303 fi
12304 done
12305 IFS=$lt_save_ifs
12306 ;;
12307 esac
12308 else
12309 pic_mode=default
12310 fi
12311
12312
12313
12314
12315
12316
12317
12318
12319 # Check whether --enable-fast-install was given.
12320 if test "${enable_fast_install+set}" = set; then :
12321 enableval=$enable_fast_install; p=${PACKAGE-default}
12322 case $enableval in
12323 yes) enable_fast_install=yes ;;
12324 no) enable_fast_install=no ;;
12325 *)
12326 enable_fast_install=no
12327 # Look at the argument we got. We use all the common list separators.
12328 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12329 for pkg in $enableval; do
12330 IFS=$lt_save_ifs
12331 if test "X$pkg" = "X$p"; then
12332 enable_fast_install=yes
12333 fi
12334 done
12335 IFS=$lt_save_ifs
12336 ;;
12337 esac
12338 else
12339 enable_fast_install=yes
12340 fi
12341
12342
12343
12344
12345
12346
12347
12348
12349 shared_archive_member_spec=
12350 case $host,$enable_shared in
12351 power*-*-aix[5-9]*,yes)
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12353 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
12354
12355 # Check whether --with-aix-soname was given.
12356 if test "${with_aix_soname+set}" = set; then :
12357 withval=$with_aix_soname; case $withval in
12358 aix|svr4|both)
12359 ;;
12360 *)
12361 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12362 ;;
12363 esac
12364 lt_cv_with_aix_soname=$with_aix_soname
12365 else
12366 if ${lt_cv_with_aix_soname+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 lt_cv_with_aix_soname=aix
12370 fi
12371
12372 with_aix_soname=$lt_cv_with_aix_soname
12373 fi
12374
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12376 $as_echo "$with_aix_soname" >&6; }
12377 if test aix != "$with_aix_soname"; then
12378 # For the AIX way of multilib, we name the shared archive member
12379 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12380 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12381 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12382 # the AIX toolchain works better with OBJECT_MODE set (default 32).
12383 if test 64 = "${OBJECT_MODE-32}"; then
12384 shared_archive_member_spec=shr_64
12385 else
12386 shared_archive_member_spec=shr
12387 fi
12388 fi
12389 ;;
12390 *)
12391 with_aix_soname=aix
12392 ;;
12393 esac
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404 # This can be used to rebuild libtool when needed
12405 LIBTOOL_DEPS=$ltmain
12406
12407 # Always use our own libtool.
12408 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439 test -z "$LN_S" && LN_S="ln -s"
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454 if test -n "${ZSH_VERSION+set}"; then
12455 setopt NO_GLOB_SUBST
12456 fi
12457
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12459 $as_echo_n "checking for objdir... " >&6; }
12460 if ${lt_cv_objdir+:} false; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 rm -f .libs 2>/dev/null
12464 mkdir .libs 2>/dev/null
12465 if test -d .libs; then
12466 lt_cv_objdir=.libs
12467 else
12468 # MS-DOS does not allow filenames that begin with a dot.
12469 lt_cv_objdir=_libs
12470 fi
12471 rmdir .libs 2>/dev/null
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12474 $as_echo "$lt_cv_objdir" >&6; }
12475 objdir=$lt_cv_objdir
12476
12477
12478
12479
12480
12481 cat >>confdefs.h <<_ACEOF
12482 #define LT_OBJDIR "$lt_cv_objdir/"
12483 _ACEOF
12484
12485
12486
12487
12488 case $host_os in
12489 aix3*)
12490 # AIX sometimes has problems with the GCC collect2 program. For some
12491 # reason, if we set the COLLECT_NAMES environment variable, the problems
12492 # vanish in a puff of smoke.
12493 if test set != "${COLLECT_NAMES+set}"; then
12494 COLLECT_NAMES=
12495 export COLLECT_NAMES
12496 fi
12497 ;;
12498 esac
12499
12500 # Global variables:
12501 ofile=libtool
12502 can_build_shared=yes
12503
12504 # All known linkers require a '.a' archive for static linking (except MSVC,
12505 # which needs '.lib').
12506 libext=a
12507
12508 with_gnu_ld=$lt_cv_prog_gnu_ld
12509
12510 old_CC=$CC
12511 old_CFLAGS=$CFLAGS
12512
12513 # Set sane defaults for various variables
12514 test -z "$CC" && CC=cc
12515 test -z "$LTCC" && LTCC=$CC
12516 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12517 test -z "$LD" && LD=ld
12518 test -z "$ac_objext" && ac_objext=o
12519
12520 func_cc_basename $compiler
12521 cc_basename=$func_cc_basename_result
12522
12523
12524 # Only perform the check for file, if the check method requires it
12525 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12526 case $deplibs_check_method in
12527 file_magic*)
12528 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12530 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12531 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12532 $as_echo_n "(cached) " >&6
12533 else
12534 case $MAGIC_CMD in
12535 [\\/*] | ?:[\\/]*)
12536 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12537 ;;
12538 *)
12539 lt_save_MAGIC_CMD=$MAGIC_CMD
12540 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12541 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12542 for ac_dir in $ac_dummy; do
12543 IFS=$lt_save_ifs
12544 test -z "$ac_dir" && ac_dir=.
12545 if test -f "$ac_dir/${ac_tool_prefix}file"; then
12546 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12547 if test -n "$file_magic_test_file"; then
12548 case $deplibs_check_method in
12549 "file_magic "*)
12550 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12551 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12552 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12553 $EGREP "$file_magic_regex" > /dev/null; then
12554 :
12555 else
12556 cat <<_LT_EOF 1>&2
12557
12558 *** Warning: the command libtool uses to detect shared libraries,
12559 *** $file_magic_cmd, produces output that libtool cannot recognize.
12560 *** The result is that libtool may fail to recognize shared libraries
12561 *** as such. This will affect the creation of libtool libraries that
12562 *** depend on shared libraries, but programs linked with such libtool
12563 *** libraries will work regardless of this problem. Nevertheless, you
12564 *** may want to report the problem to your system manager and/or to
12565 *** bug-libtool (at] gnu.org
12566
12567 _LT_EOF
12568 fi ;;
12569 esac
12570 fi
12571 break
12572 fi
12573 done
12574 IFS=$lt_save_ifs
12575 MAGIC_CMD=$lt_save_MAGIC_CMD
12576 ;;
12577 esac
12578 fi
12579
12580 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12581 if test -n "$MAGIC_CMD"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12583 $as_echo "$MAGIC_CMD" >&6; }
12584 else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12587 fi
12588
12589
12590
12591
12592
12593 if test -z "$lt_cv_path_MAGIC_CMD"; then
12594 if test -n "$ac_tool_prefix"; then
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12596 $as_echo_n "checking for file... " >&6; }
12597 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 case $MAGIC_CMD in
12601 [\\/*] | ?:[\\/]*)
12602 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12603 ;;
12604 *)
12605 lt_save_MAGIC_CMD=$MAGIC_CMD
12606 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12607 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12608 for ac_dir in $ac_dummy; do
12609 IFS=$lt_save_ifs
12610 test -z "$ac_dir" && ac_dir=.
12611 if test -f "$ac_dir/file"; then
12612 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12613 if test -n "$file_magic_test_file"; then
12614 case $deplibs_check_method in
12615 "file_magic "*)
12616 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12617 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12618 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12619 $EGREP "$file_magic_regex" > /dev/null; then
12620 :
12621 else
12622 cat <<_LT_EOF 1>&2
12623
12624 *** Warning: the command libtool uses to detect shared libraries,
12625 *** $file_magic_cmd, produces output that libtool cannot recognize.
12626 *** The result is that libtool may fail to recognize shared libraries
12627 *** as such. This will affect the creation of libtool libraries that
12628 *** depend on shared libraries, but programs linked with such libtool
12629 *** libraries will work regardless of this problem. Nevertheless, you
12630 *** may want to report the problem to your system manager and/or to
12631 *** bug-libtool (at] gnu.org
12632
12633 _LT_EOF
12634 fi ;;
12635 esac
12636 fi
12637 break
12638 fi
12639 done
12640 IFS=$lt_save_ifs
12641 MAGIC_CMD=$lt_save_MAGIC_CMD
12642 ;;
12643 esac
12644 fi
12645
12646 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12647 if test -n "$MAGIC_CMD"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12649 $as_echo "$MAGIC_CMD" >&6; }
12650 else
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12653 fi
12654
12655
12656 else
12657 MAGIC_CMD=:
12658 fi
12659 fi
12660
12661 fi
12662 ;;
12663 esac
12664
12665 # Use C for the default configuration in the libtool script
12666
12667 lt_save_CC=$CC
12668 ac_ext=c
12669 ac_cpp='$CPP $CPPFLAGS'
12670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673
12674
12675 # Source file extension for C test sources.
12676 ac_ext=c
12677
12678 # Object file extension for compiled C test sources.
12679 objext=o
12680 objext=$objext
12681
12682 # Code to be used in simple compile tests
12683 lt_simple_compile_test_code="int some_variable = 0;"
12684
12685 # Code to be used in simple link tests
12686 lt_simple_link_test_code='int main(){return(0);}'
12687
12688
12689
12690
12691
12692
12693
12694 # If no C compiler was specified, use CC.
12695 LTCC=${LTCC-"$CC"}
12696
12697 # If no C compiler flags were specified, use CFLAGS.
12698 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12699
12700 # Allow CC to be a program name with arguments.
12701 compiler=$CC
12702
12703 # Save the default compiler, since it gets overwritten when the other
12704 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12705 compiler_DEFAULT=$CC
12706
12707 # save warnings/boilerplate of simple test code
12708 ac_outfile=conftest.$ac_objext
12709 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12710 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12711 _lt_compiler_boilerplate=`cat conftest.err`
12712 $RM conftest*
12713
12714 ac_outfile=conftest.$ac_objext
12715 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12716 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12717 _lt_linker_boilerplate=`cat conftest.err`
12718 $RM -r conftest*
12719
12720
12721 ## CAVEAT EMPTOR:
12722 ## There is no encapsulation within the following macros, do not change
12723 ## the running order or otherwise move them around unless you know exactly
12724 ## what you are doing...
12725 if test -n "$compiler"; then
12726
12727 lt_prog_compiler_no_builtin_flag=
12728
12729 if test yes = "$GCC"; then
12730 case $cc_basename in
12731 nvcc*)
12732 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12733 *)
12734 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12735 esac
12736
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12738 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12739 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12740 $as_echo_n "(cached) " >&6
12741 else
12742 lt_cv_prog_compiler_rtti_exceptions=no
12743 ac_outfile=conftest.$ac_objext
12744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12745 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12746 # Insert the option either (1) after the last *FLAGS variable, or
12747 # (2) before a word containing "conftest.", or (3) at the end.
12748 # Note that $ac_compile itself does not contain backslashes and begins
12749 # with a dollar sign (not a hyphen), so the echo should work correctly.
12750 # The option is referenced via a variable to avoid confusing sed.
12751 lt_compile=`echo "$ac_compile" | $SED \
12752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12754 -e 's:$: $lt_compiler_flag:'`
12755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12756 (eval "$lt_compile" 2>conftest.err)
12757 ac_status=$?
12758 cat conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 if (exit $ac_status) && test -s "$ac_outfile"; then
12761 # The compiler can only warn and ignore the option if not recognized
12762 # So say no if there are warnings other than the usual output.
12763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12765 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12766 lt_cv_prog_compiler_rtti_exceptions=yes
12767 fi
12768 fi
12769 $RM conftest*
12770
12771 fi
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12773 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12774
12775 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12776 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12777 else
12778 :
12779 fi
12780
12781 fi
12782
12783
12784
12785
12786
12787
12788 lt_prog_compiler_wl=
12789 lt_prog_compiler_pic=
12790 lt_prog_compiler_static=
12791
12792
12793 if test yes = "$GCC"; then
12794 lt_prog_compiler_wl='-Wl,'
12795 lt_prog_compiler_static='-static'
12796
12797 case $host_os in
12798 aix*)
12799 # All AIX code is PIC.
12800 if test ia64 = "$host_cpu"; then
12801 # AIX 5 now supports IA64 processor
12802 lt_prog_compiler_static='-Bstatic'
12803 fi
12804 lt_prog_compiler_pic='-fPIC'
12805 ;;
12806
12807 amigaos*)
12808 case $host_cpu in
12809 powerpc)
12810 # see comment about AmigaOS4 .so support
12811 lt_prog_compiler_pic='-fPIC'
12812 ;;
12813 m68k)
12814 # FIXME: we need at least 68020 code to build shared libraries, but
12815 # adding the '-m68020' flag to GCC prevents building anything better,
12816 # like '-m68040'.
12817 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12818 ;;
12819 esac
12820 ;;
12821
12822 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12823 # PIC is the default for these OSes.
12824 ;;
12825
12826 mingw* | cygwin* | pw32* | os2* | cegcc*)
12827 # This hack is so that the source file can tell whether it is being
12828 # built for inclusion in a dll (and should export symbols for example).
12829 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12830 # (--disable-auto-import) libraries
12831 lt_prog_compiler_pic='-DDLL_EXPORT'
12832 case $host_os in
12833 os2*)
12834 lt_prog_compiler_static='$wl-static'
12835 ;;
12836 esac
12837 ;;
12838
12839 darwin* | rhapsody*)
12840 # PIC is the default on this platform
12841 # Common symbols not allowed in MH_DYLIB files
12842 lt_prog_compiler_pic='-fno-common'
12843 ;;
12844
12845 haiku*)
12846 # PIC is the default for Haiku.
12847 # The "-static" flag exists, but is broken.
12848 lt_prog_compiler_static=
12849 ;;
12850
12851 hpux*)
12852 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12853 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12854 # sets the default TLS model and affects inlining.
12855 case $host_cpu in
12856 hppa*64*)
12857 # +Z the default
12858 ;;
12859 *)
12860 lt_prog_compiler_pic='-fPIC'
12861 ;;
12862 esac
12863 ;;
12864
12865 interix[3-9]*)
12866 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12867 # Instead, we relocate shared libraries at runtime.
12868 ;;
12869
12870 msdosdjgpp*)
12871 # Just because we use GCC doesn't mean we suddenly get shared libraries
12872 # on systems that don't support them.
12873 lt_prog_compiler_can_build_shared=no
12874 enable_shared=no
12875 ;;
12876
12877 *nto* | *qnx*)
12878 # QNX uses GNU C++, but need to define -shared option too, otherwise
12879 # it will coredump.
12880 lt_prog_compiler_pic='-fPIC -shared'
12881 ;;
12882
12883 sysv4*MP*)
12884 if test -d /usr/nec; then
12885 lt_prog_compiler_pic=-Kconform_pic
12886 fi
12887 ;;
12888
12889 *)
12890 lt_prog_compiler_pic='-fPIC'
12891 ;;
12892 esac
12893
12894 case $cc_basename in
12895 nvcc*) # Cuda Compiler Driver 2.2
12896 lt_prog_compiler_wl='-Xlinker '
12897 if test -n "$lt_prog_compiler_pic"; then
12898 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12899 fi
12900 ;;
12901 esac
12902 else
12903 # PORTME Check for flag to pass linker flags through the system compiler.
12904 case $host_os in
12905 aix*)
12906 lt_prog_compiler_wl='-Wl,'
12907 if test ia64 = "$host_cpu"; then
12908 # AIX 5 now supports IA64 processor
12909 lt_prog_compiler_static='-Bstatic'
12910 else
12911 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12912 fi
12913 ;;
12914
12915 darwin* | rhapsody*)
12916 # PIC is the default on this platform
12917 # Common symbols not allowed in MH_DYLIB files
12918 lt_prog_compiler_pic='-fno-common'
12919 case $cc_basename in
12920 nagfor*)
12921 # NAG Fortran compiler
12922 lt_prog_compiler_wl='-Wl,-Wl,,'
12923 lt_prog_compiler_pic='-PIC'
12924 lt_prog_compiler_static='-Bstatic'
12925 ;;
12926 esac
12927 ;;
12928
12929 mingw* | cygwin* | pw32* | os2* | cegcc*)
12930 # This hack is so that the source file can tell whether it is being
12931 # built for inclusion in a dll (and should export symbols for example).
12932 lt_prog_compiler_pic='-DDLL_EXPORT'
12933 case $host_os in
12934 os2*)
12935 lt_prog_compiler_static='$wl-static'
12936 ;;
12937 esac
12938 ;;
12939
12940 hpux9* | hpux10* | hpux11*)
12941 lt_prog_compiler_wl='-Wl,'
12942 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12943 # not for PA HP-UX.
12944 case $host_cpu in
12945 hppa*64*|ia64*)
12946 # +Z the default
12947 ;;
12948 *)
12949 lt_prog_compiler_pic='+Z'
12950 ;;
12951 esac
12952 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12953 lt_prog_compiler_static='$wl-a ${wl}archive'
12954 ;;
12955
12956 irix5* | irix6* | nonstopux*)
12957 lt_prog_compiler_wl='-Wl,'
12958 # PIC (with -KPIC) is the default.
12959 lt_prog_compiler_static='-non_shared'
12960 ;;
12961
12962 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12963 case $cc_basename in
12964 # old Intel for x86_64, which still supported -KPIC.
12965 ecc*)
12966 lt_prog_compiler_wl='-Wl,'
12967 lt_prog_compiler_pic='-KPIC'
12968 lt_prog_compiler_static='-static'
12969 ;;
12970 # icc used to be incompatible with GCC.
12971 # ICC 10 doesn't accept -KPIC any more.
12972 icc* | ifort*)
12973 lt_prog_compiler_wl='-Wl,'
12974 lt_prog_compiler_pic='-fPIC'
12975 lt_prog_compiler_static='-static'
12976 ;;
12977 # Lahey Fortran 8.1.
12978 lf95*)
12979 lt_prog_compiler_wl='-Wl,'
12980 lt_prog_compiler_pic='--shared'
12981 lt_prog_compiler_static='--static'
12982 ;;
12983 nagfor*)
12984 # NAG Fortran compiler
12985 lt_prog_compiler_wl='-Wl,-Wl,,'
12986 lt_prog_compiler_pic='-PIC'
12987 lt_prog_compiler_static='-Bstatic'
12988 ;;
12989 tcc*)
12990 # Fabrice Bellard et al's Tiny C Compiler
12991 lt_prog_compiler_wl='-Wl,'
12992 lt_prog_compiler_pic='-fPIC'
12993 lt_prog_compiler_static='-static'
12994 ;;
12995 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12996 # Portland Group compilers (*not* the Pentium gcc compiler,
12997 # which looks to be a dead project)
12998 lt_prog_compiler_wl='-Wl,'
12999 lt_prog_compiler_pic='-fpic'
13000 lt_prog_compiler_static='-Bstatic'
13001 ;;
13002 ccc*)
13003 lt_prog_compiler_wl='-Wl,'
13004 # All Alpha code is PIC.
13005 lt_prog_compiler_static='-non_shared'
13006 ;;
13007 xl* | bgxl* | bgf* | mpixl*)
13008 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13009 lt_prog_compiler_wl='-Wl,'
13010 lt_prog_compiler_pic='-qpic'
13011 lt_prog_compiler_static='-qstaticlink'
13012 ;;
13013 *)
13014 case `$CC -V 2>&1 | sed 5q` in
13015 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13016 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13017 lt_prog_compiler_pic='-KPIC'
13018 lt_prog_compiler_static='-Bstatic'
13019 lt_prog_compiler_wl=''
13020 ;;
13021 *Sun\ F* | *Sun*Fortran*)
13022 lt_prog_compiler_pic='-KPIC'
13023 lt_prog_compiler_static='-Bstatic'
13024 lt_prog_compiler_wl='-Qoption ld '
13025 ;;
13026 *Sun\ C*)
13027 # Sun C 5.9
13028 lt_prog_compiler_pic='-KPIC'
13029 lt_prog_compiler_static='-Bstatic'
13030 lt_prog_compiler_wl='-Wl,'
13031 ;;
13032 *Intel*\ [CF]*Compiler*)
13033 lt_prog_compiler_wl='-Wl,'
13034 lt_prog_compiler_pic='-fPIC'
13035 lt_prog_compiler_static='-static'
13036 ;;
13037 *Portland\ Group*)
13038 lt_prog_compiler_wl='-Wl,'
13039 lt_prog_compiler_pic='-fpic'
13040 lt_prog_compiler_static='-Bstatic'
13041 ;;
13042 esac
13043 ;;
13044 esac
13045 ;;
13046
13047 newsos6)
13048 lt_prog_compiler_pic='-KPIC'
13049 lt_prog_compiler_static='-Bstatic'
13050 ;;
13051
13052 *nto* | *qnx*)
13053 # QNX uses GNU C++, but need to define -shared option too, otherwise
13054 # it will coredump.
13055 lt_prog_compiler_pic='-fPIC -shared'
13056 ;;
13057
13058 osf3* | osf4* | osf5*)
13059 lt_prog_compiler_wl='-Wl,'
13060 # All OSF/1 code is PIC.
13061 lt_prog_compiler_static='-non_shared'
13062 ;;
13063
13064 rdos*)
13065 lt_prog_compiler_static='-non_shared'
13066 ;;
13067
13068 solaris*)
13069 lt_prog_compiler_pic='-KPIC'
13070 lt_prog_compiler_static='-Bstatic'
13071 case $cc_basename in
13072 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13073 lt_prog_compiler_wl='-Qoption ld ';;
13074 *)
13075 lt_prog_compiler_wl='-Wl,';;
13076 esac
13077 ;;
13078
13079 sunos4*)
13080 lt_prog_compiler_wl='-Qoption ld '
13081 lt_prog_compiler_pic='-PIC'
13082 lt_prog_compiler_static='-Bstatic'
13083 ;;
13084
13085 sysv4 | sysv4.2uw2* | sysv4.3*)
13086 lt_prog_compiler_wl='-Wl,'
13087 lt_prog_compiler_pic='-KPIC'
13088 lt_prog_compiler_static='-Bstatic'
13089 ;;
13090
13091 sysv4*MP*)
13092 if test -d /usr/nec; then
13093 lt_prog_compiler_pic='-Kconform_pic'
13094 lt_prog_compiler_static='-Bstatic'
13095 fi
13096 ;;
13097
13098 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13099 lt_prog_compiler_wl='-Wl,'
13100 lt_prog_compiler_pic='-KPIC'
13101 lt_prog_compiler_static='-Bstatic'
13102 ;;
13103
13104 unicos*)
13105 lt_prog_compiler_wl='-Wl,'
13106 lt_prog_compiler_can_build_shared=no
13107 ;;
13108
13109 uts4*)
13110 lt_prog_compiler_pic='-pic'
13111 lt_prog_compiler_static='-Bstatic'
13112 ;;
13113
13114 *)
13115 lt_prog_compiler_can_build_shared=no
13116 ;;
13117 esac
13118 fi
13119
13120 case $host_os in
13121 # For platforms that do not support PIC, -DPIC is meaningless:
13122 *djgpp*)
13123 lt_prog_compiler_pic=
13124 ;;
13125 *)
13126 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13127 ;;
13128 esac
13129
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13131 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13132 if ${lt_cv_prog_compiler_pic+:} false; then :
13133 $as_echo_n "(cached) " >&6
13134 else
13135 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13136 fi
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13138 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13139 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13140
13141 #
13142 # Check to make sure the PIC flag actually works.
13143 #
13144 if test -n "$lt_prog_compiler_pic"; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13146 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13147 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 lt_cv_prog_compiler_pic_works=no
13151 ac_outfile=conftest.$ac_objext
13152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13153 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13154 # Insert the option either (1) after the last *FLAGS variable, or
13155 # (2) before a word containing "conftest.", or (3) at the end.
13156 # Note that $ac_compile itself does not contain backslashes and begins
13157 # with a dollar sign (not a hyphen), so the echo should work correctly.
13158 # The option is referenced via a variable to avoid confusing sed.
13159 lt_compile=`echo "$ac_compile" | $SED \
13160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13162 -e 's:$: $lt_compiler_flag:'`
13163 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13164 (eval "$lt_compile" 2>conftest.err)
13165 ac_status=$?
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 if (exit $ac_status) && test -s "$ac_outfile"; then
13169 # The compiler can only warn and ignore the option if not recognized
13170 # So say no if there are warnings other than the usual output.
13171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13173 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13174 lt_cv_prog_compiler_pic_works=yes
13175 fi
13176 fi
13177 $RM conftest*
13178
13179 fi
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13181 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13182
13183 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13184 case $lt_prog_compiler_pic in
13185 "" | " "*) ;;
13186 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13187 esac
13188 else
13189 lt_prog_compiler_pic=
13190 lt_prog_compiler_can_build_shared=no
13191 fi
13192
13193 fi
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205 #
13206 # Check to make sure the static flag actually works.
13207 #
13208 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13210 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13211 if ${lt_cv_prog_compiler_static_works+:} false; then :
13212 $as_echo_n "(cached) " >&6
13213 else
13214 lt_cv_prog_compiler_static_works=no
13215 save_LDFLAGS=$LDFLAGS
13216 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13217 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13218 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13219 # The linker can only warn and ignore the option if not recognized
13220 # So say no if there are warnings
13221 if test -s conftest.err; then
13222 # Append any errors to the config.log.
13223 cat conftest.err 1>&5
13224 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13226 if diff conftest.exp conftest.er2 >/dev/null; then
13227 lt_cv_prog_compiler_static_works=yes
13228 fi
13229 else
13230 lt_cv_prog_compiler_static_works=yes
13231 fi
13232 fi
13233 $RM -r conftest*
13234 LDFLAGS=$save_LDFLAGS
13235
13236 fi
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13238 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13239
13240 if test yes = "$lt_cv_prog_compiler_static_works"; then
13241 :
13242 else
13243 lt_prog_compiler_static=
13244 fi
13245
13246
13247
13248
13249
13250
13251
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13253 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13254 if ${lt_cv_prog_compiler_c_o+:} false; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 lt_cv_prog_compiler_c_o=no
13258 $RM -r conftest 2>/dev/null
13259 mkdir conftest
13260 cd conftest
13261 mkdir out
13262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13263
13264 lt_compiler_flag="-o out/conftest2.$ac_objext"
13265 # Insert the option either (1) after the last *FLAGS variable, or
13266 # (2) before a word containing "conftest.", or (3) at the end.
13267 # Note that $ac_compile itself does not contain backslashes and begins
13268 # with a dollar sign (not a hyphen), so the echo should work correctly.
13269 lt_compile=`echo "$ac_compile" | $SED \
13270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13272 -e 's:$: $lt_compiler_flag:'`
13273 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13274 (eval "$lt_compile" 2>out/conftest.err)
13275 ac_status=$?
13276 cat out/conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13279 then
13280 # The compiler can only warn and ignore the option if not recognized
13281 # So say no if there are warnings
13282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13283 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13284 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13285 lt_cv_prog_compiler_c_o=yes
13286 fi
13287 fi
13288 chmod u+w . 2>&5
13289 $RM conftest*
13290 # SGI C++ compiler will create directory out/ii_files/ for
13291 # template instantiation
13292 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13293 $RM out/* && rmdir out
13294 cd ..
13295 $RM -r conftest
13296 $RM conftest*
13297
13298 fi
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13300 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13301
13302
13303
13304
13305
13306
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13308 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13309 if ${lt_cv_prog_compiler_c_o+:} false; then :
13310 $as_echo_n "(cached) " >&6
13311 else
13312 lt_cv_prog_compiler_c_o=no
13313 $RM -r conftest 2>/dev/null
13314 mkdir conftest
13315 cd conftest
13316 mkdir out
13317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13318
13319 lt_compiler_flag="-o out/conftest2.$ac_objext"
13320 # Insert the option either (1) after the last *FLAGS variable, or
13321 # (2) before a word containing "conftest.", or (3) at the end.
13322 # Note that $ac_compile itself does not contain backslashes and begins
13323 # with a dollar sign (not a hyphen), so the echo should work correctly.
13324 lt_compile=`echo "$ac_compile" | $SED \
13325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13327 -e 's:$: $lt_compiler_flag:'`
13328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13329 (eval "$lt_compile" 2>out/conftest.err)
13330 ac_status=$?
13331 cat out/conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13334 then
13335 # The compiler can only warn and ignore the option if not recognized
13336 # So say no if there are warnings
13337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13338 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13339 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13340 lt_cv_prog_compiler_c_o=yes
13341 fi
13342 fi
13343 chmod u+w . 2>&5
13344 $RM conftest*
13345 # SGI C++ compiler will create directory out/ii_files/ for
13346 # template instantiation
13347 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13348 $RM out/* && rmdir out
13349 cd ..
13350 $RM -r conftest
13351 $RM conftest*
13352
13353 fi
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13355 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13356
13357
13358
13359
13360 hard_links=nottested
13361 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13362 # do not overwrite the value of need_locks provided by the user
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13364 $as_echo_n "checking if we can lock with hard links... " >&6; }
13365 hard_links=yes
13366 $RM conftest*
13367 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13368 touch conftest.a
13369 ln conftest.a conftest.b 2>&5 || hard_links=no
13370 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13372 $as_echo "$hard_links" >&6; }
13373 if test no = "$hard_links"; then
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13375 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13376 need_locks=warn
13377 fi
13378 else
13379 need_locks=no
13380 fi
13381
13382
13383
13384
13385
13386
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13388 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13389
13390 runpath_var=
13391 allow_undefined_flag=
13392 always_export_symbols=no
13393 archive_cmds=
13394 archive_expsym_cmds=
13395 compiler_needs_object=no
13396 enable_shared_with_static_runtimes=no
13397 export_dynamic_flag_spec=
13398 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13399 hardcode_automatic=no
13400 hardcode_direct=no
13401 hardcode_direct_absolute=no
13402 hardcode_libdir_flag_spec=
13403 hardcode_libdir_separator=
13404 hardcode_minus_L=no
13405 hardcode_shlibpath_var=unsupported
13406 inherit_rpath=no
13407 link_all_deplibs=unknown
13408 module_cmds=
13409 module_expsym_cmds=
13410 old_archive_from_new_cmds=
13411 old_archive_from_expsyms_cmds=
13412 thread_safe_flag_spec=
13413 whole_archive_flag_spec=
13414 # include_expsyms should be a list of space-separated symbols to be *always*
13415 # included in the symbol list
13416 include_expsyms=
13417 # exclude_expsyms can be an extended regexp of symbols to exclude
13418 # it will be wrapped by ' (' and ')$', so one must not match beginning or
13419 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13420 # as well as any symbol that contains 'd'.
13421 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13422 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13423 # platforms (ab)use it in PIC code, but their linkers get confused if
13424 # the symbol is explicitly referenced. Since portable code cannot
13425 # rely on this symbol name, it's probably fine to never include it in
13426 # preloaded symbol tables.
13427 # Exclude shared library initialization/finalization symbols.
13428 extract_expsyms_cmds=
13429
13430 case $host_os in
13431 cygwin* | mingw* | pw32* | cegcc*)
13432 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13433 # When not using gcc, we currently assume that we are using
13434 # Microsoft Visual C++.
13435 if test yes != "$GCC"; then
13436 with_gnu_ld=no
13437 fi
13438 ;;
13439 interix*)
13440 # we just hope/assume this is gcc and not c89 (= MSVC++)
13441 with_gnu_ld=yes
13442 ;;
13443 openbsd* | bitrig*)
13444 with_gnu_ld=no
13445 ;;
13446 esac
13447
13448 ld_shlibs=yes
13449
13450 # On some targets, GNU ld is compatible enough with the native linker
13451 # that we're better off using the native interface for both.
13452 lt_use_gnu_ld_interface=no
13453 if test yes = "$with_gnu_ld"; then
13454 case $host_os in
13455 aix*)
13456 # The AIX port of GNU ld has always aspired to compatibility
13457 # with the native linker. However, as the warning in the GNU ld
13458 # block says, versions before 2.19.5* couldn't really create working
13459 # shared libraries, regardless of the interface used.
13460 case `$LD -v 2>&1` in
13461 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13462 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13463 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13464 *)
13465 lt_use_gnu_ld_interface=yes
13466 ;;
13467 esac
13468 ;;
13469 *)
13470 lt_use_gnu_ld_interface=yes
13471 ;;
13472 esac
13473 fi
13474
13475 if test yes = "$lt_use_gnu_ld_interface"; then
13476 # If archive_cmds runs LD, not CC, wlarc should be empty
13477 wlarc='$wl'
13478
13479 # Set some defaults for GNU ld with shared library support. These
13480 # are reset later if shared libraries are not supported. Putting them
13481 # here allows them to be overridden if necessary.
13482 runpath_var=LD_RUN_PATH
13483 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13484 export_dynamic_flag_spec='$wl--export-dynamic'
13485 # ancient GNU ld didn't support --whole-archive et. al.
13486 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13487 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13488 else
13489 whole_archive_flag_spec=
13490 fi
13491 supports_anon_versioning=no
13492 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
13493 *GNU\ gold*) supports_anon_versioning=yes ;;
13494 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13495 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13496 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13497 *\ 2.11.*) ;; # other 2.11 versions
13498 *) supports_anon_versioning=yes ;;
13499 esac
13500
13501 # See if GNU ld supports shared libraries.
13502 case $host_os in
13503 aix[3-9]*)
13504 # On AIX/PPC, the GNU linker is very broken
13505 if test ia64 != "$host_cpu"; then
13506 ld_shlibs=no
13507 cat <<_LT_EOF 1>&2
13508
13509 *** Warning: the GNU linker, at least up to release 2.19, is reported
13510 *** to be unable to reliably create shared libraries on AIX.
13511 *** Therefore, libtool is disabling shared libraries support. If you
13512 *** really care for shared libraries, you may want to install binutils
13513 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13514 *** You will then need to restart the configuration process.
13515
13516 _LT_EOF
13517 fi
13518 ;;
13519
13520 amigaos*)
13521 case $host_cpu in
13522 powerpc)
13523 # see comment about AmigaOS4 .so support
13524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13525 archive_expsym_cmds=''
13526 ;;
13527 m68k)
13528 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)'
13529 hardcode_libdir_flag_spec='-L$libdir'
13530 hardcode_minus_L=yes
13531 ;;
13532 esac
13533 ;;
13534
13535 beos*)
13536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13537 allow_undefined_flag=unsupported
13538 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
13539 # support --undefined. This deserves some investigation. FIXME
13540 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13541 else
13542 ld_shlibs=no
13543 fi
13544 ;;
13545
13546 cygwin* | mingw* | pw32* | cegcc*)
13547 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13548 # as there is no search path for DLLs.
13549 hardcode_libdir_flag_spec='-L$libdir'
13550 export_dynamic_flag_spec='$wl--export-all-symbols'
13551 allow_undefined_flag=unsupported
13552 always_export_symbols=no
13553 enable_shared_with_static_runtimes=yes
13554 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'
13555 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13556
13557 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13559 # If the export-symbols file already is a .def file, use it as
13560 # is; otherwise, prepend EXPORTS...
13561 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13562 cp $export_symbols $output_objdir/$soname.def;
13563 else
13564 echo EXPORTS > $output_objdir/$soname.def;
13565 cat $export_symbols >> $output_objdir/$soname.def;
13566 fi~
13567 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13568 else
13569 ld_shlibs=no
13570 fi
13571 ;;
13572
13573 haiku*)
13574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13575 link_all_deplibs=yes
13576 ;;
13577
13578 os2*)
13579 hardcode_libdir_flag_spec='-L$libdir'
13580 hardcode_minus_L=yes
13581 allow_undefined_flag=unsupported
13582 shrext_cmds=.dll
13583 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13584 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13585 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13586 $ECHO EXPORTS >> $output_objdir/$libname.def~
13587 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13588 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13589 emximp -o $lib $output_objdir/$libname.def'
13590 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13591 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13592 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13593 $ECHO EXPORTS >> $output_objdir/$libname.def~
13594 prefix_cmds="$SED"~
13595 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13596 prefix_cmds="$prefix_cmds -e 1d";
13597 fi~
13598 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13599 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13600 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13601 emximp -o $lib $output_objdir/$libname.def'
13602 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13603 enable_shared_with_static_runtimes=yes
13604 ;;
13605
13606 interix[3-9]*)
13607 hardcode_direct=no
13608 hardcode_shlibpath_var=no
13609 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13610 export_dynamic_flag_spec='$wl-E'
13611 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13612 # Instead, shared libraries are loaded at an image base (0x10000000 by
13613 # default) and relocated if they conflict, which is a slow very memory
13614 # consuming and fragmenting process. To avoid this, we pick a random,
13615 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13616 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13617 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13618 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'
13619 ;;
13620
13621 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13622 tmp_diet=no
13623 if test linux-dietlibc = "$host_os"; then
13624 case $cc_basename in
13625 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13626 esac
13627 fi
13628 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13629 && test no = "$tmp_diet"
13630 then
13631 tmp_addflag=' $pic_flag'
13632 tmp_sharedflag='-shared'
13633 case $cc_basename,$host_cpu in
13634 pgcc*) # Portland Group C compiler
13635 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'
13636 tmp_addflag=' $pic_flag'
13637 ;;
13638 pgf77* | pgf90* | pgf95* | pgfortran*)
13639 # Portland Group f77 and f90 compilers
13640 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'
13641 tmp_addflag=' $pic_flag -Mnomain' ;;
13642 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13643 tmp_addflag=' -i_dynamic' ;;
13644 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13645 tmp_addflag=' -i_dynamic -nofor_main' ;;
13646 ifc* | ifort*) # Intel Fortran compiler
13647 tmp_addflag=' -nofor_main' ;;
13648 lf95*) # Lahey Fortran 8.1
13649 whole_archive_flag_spec=
13650 tmp_sharedflag='--shared' ;;
13651 nagfor*) # NAGFOR 5.3
13652 tmp_sharedflag='-Wl,-shared' ;;
13653 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13654 tmp_sharedflag='-qmkshrobj'
13655 tmp_addflag= ;;
13656 nvcc*) # Cuda Compiler Driver 2.2
13657 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'
13658 compiler_needs_object=yes
13659 ;;
13660 esac
13661 case `$CC -V 2>&1 | sed 5q` in
13662 *Sun\ C*) # Sun C 5.9
13663 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'
13664 compiler_needs_object=yes
13665 tmp_sharedflag='-G' ;;
13666 *Sun\ F*) # Sun Fortran 8.3
13667 tmp_sharedflag='-G' ;;
13668 esac
13669 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13670
13671 if test yes = "$supports_anon_versioning"; then
13672 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13673 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13674 echo "local: *; };" >> $output_objdir/$libname.ver~
13675 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13676 fi
13677
13678 case $cc_basename in
13679 tcc*)
13680 export_dynamic_flag_spec='-rdynamic'
13681 ;;
13682 xlf* | bgf* | bgxlf* | mpixlf*)
13683 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13684 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13685 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13686 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13687 if test yes = "$supports_anon_versioning"; then
13688 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13690 echo "local: *; };" >> $output_objdir/$libname.ver~
13691 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13692 fi
13693 ;;
13694 esac
13695 else
13696 ld_shlibs=no
13697 fi
13698 ;;
13699
13700 netbsd*)
13701 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13702 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13703 wlarc=
13704 else
13705 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13706 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13707 fi
13708 ;;
13709
13710 solaris*)
13711 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13712 ld_shlibs=no
13713 cat <<_LT_EOF 1>&2
13714
13715 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13716 *** create shared libraries on Solaris systems. Therefore, libtool
13717 *** is disabling shared libraries support. We urge you to upgrade GNU
13718 *** binutils to release 2.9.1 or newer. Another option is to modify
13719 *** your PATH or compiler configuration so that the native linker is
13720 *** used, and then restart.
13721
13722 _LT_EOF
13723 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13725 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13726 else
13727 ld_shlibs=no
13728 fi
13729 ;;
13730
13731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13732 case `$LD -v 2>&1` in
13733 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13734 ld_shlibs=no
13735 cat <<_LT_EOF 1>&2
13736
13737 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13738 *** reliably create shared libraries on SCO systems. Therefore, libtool
13739 *** is disabling shared libraries support. We urge you to upgrade GNU
13740 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13741 *** your PATH or compiler configuration so that the native linker is
13742 *** used, and then restart.
13743
13744 _LT_EOF
13745 ;;
13746 *)
13747 # For security reasons, it is highly recommended that you always
13748 # use absolute paths for naming shared libraries, and exclude the
13749 # DT_RUNPATH tag from executables and libraries. But doing so
13750 # requires that you compile everything twice, which is a pain.
13751 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13754 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13755 else
13756 ld_shlibs=no
13757 fi
13758 ;;
13759 esac
13760 ;;
13761
13762 sunos4*)
13763 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13764 wlarc=
13765 hardcode_direct=yes
13766 hardcode_shlibpath_var=no
13767 ;;
13768
13769 *)
13770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13771 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13772 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13773 else
13774 ld_shlibs=no
13775 fi
13776 ;;
13777 esac
13778
13779 if test no = "$ld_shlibs"; then
13780 runpath_var=
13781 hardcode_libdir_flag_spec=
13782 export_dynamic_flag_spec=
13783 whole_archive_flag_spec=
13784 fi
13785 else
13786 # PORTME fill in a description of your system's linker (not GNU ld)
13787 case $host_os in
13788 aix3*)
13789 allow_undefined_flag=unsupported
13790 always_export_symbols=yes
13791 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'
13792 # Note: this linker hardcodes the directories in LIBPATH if there
13793 # are no directories specified by -L.
13794 hardcode_minus_L=yes
13795 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13796 # Neither direct hardcoding nor static linking is supported with a
13797 # broken collect2.
13798 hardcode_direct=unsupported
13799 fi
13800 ;;
13801
13802 aix[4-9]*)
13803 if test ia64 = "$host_cpu"; then
13804 # On IA64, the linker does run time linking by default, so we don't
13805 # have to do anything special.
13806 aix_use_runtimelinking=no
13807 exp_sym_flag='-Bexport'
13808 no_entry_flag=
13809 else
13810 # If we're using GNU nm, then we don't want the "-C" option.
13811 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13812 # Without the "-l" option, or with the "-B" option, AIX nm treats
13813 # weak defined symbols like other global defined symbols, whereas
13814 # GNU nm marks them as "W".
13815 # While the 'weak' keyword is ignored in the Export File, we need
13816 # it in the Import File for the 'aix-soname' feature, so we have
13817 # to replace the "-B" option with "-P" for AIX nm.
13818 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13819 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'
13820 else
13821 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'
13822 fi
13823 aix_use_runtimelinking=no
13824
13825 # Test if we are trying to use run time linking or normal
13826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13827 # have runtime linking enabled, and use it for executables.
13828 # For shared libraries, we enable/disable runtime linking
13829 # depending on the kind of the shared library created -
13830 # when "with_aix_soname,aix_use_runtimelinking" is:
13831 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13832 # "aix,yes" lib.so shared, rtl:yes, for executables
13833 # lib.a static archive
13834 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13835 # lib.a(lib.so.V) shared, rtl:no, for executables
13836 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13837 # lib.a(lib.so.V) shared, rtl:no
13838 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13839 # lib.a static archive
13840 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13841 for ld_flag in $LDFLAGS; do
13842 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13843 aix_use_runtimelinking=yes
13844 break
13845 fi
13846 done
13847 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13848 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13849 # so we don't have lib.a shared libs to link our executables.
13850 # We have to force runtime linking in this case.
13851 aix_use_runtimelinking=yes
13852 LDFLAGS="$LDFLAGS -Wl,-brtl"
13853 fi
13854 ;;
13855 esac
13856
13857 exp_sym_flag='-bexport'
13858 no_entry_flag='-bnoentry'
13859 fi
13860
13861 # When large executables or shared objects are built, AIX ld can
13862 # have problems creating the table of contents. If linking a library
13863 # or program results in "error TOC overflow" add -mminimal-toc to
13864 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13865 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13866
13867 archive_cmds=''
13868 hardcode_direct=yes
13869 hardcode_direct_absolute=yes
13870 hardcode_libdir_separator=':'
13871 link_all_deplibs=yes
13872 file_list_spec='$wl-f,'
13873 case $with_aix_soname,$aix_use_runtimelinking in
13874 aix,*) ;; # traditional, no import file
13875 svr4,* | *,yes) # use import file
13876 # The Import File defines what to hardcode.
13877 hardcode_direct=no
13878 hardcode_direct_absolute=no
13879 ;;
13880 esac
13881
13882 if test yes = "$GCC"; then
13883 case $host_os in aix4.[012]|aix4.[012].*)
13884 # We only want to do this on AIX 4.2 and lower, the check
13885 # below for broken collect2 doesn't work under 4.3+
13886 collect2name=`$CC -print-prog-name=collect2`
13887 if test -f "$collect2name" &&
13888 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13889 then
13890 # We have reworked collect2
13891 :
13892 else
13893 # We have old collect2
13894 hardcode_direct=unsupported
13895 # It fails to find uninstalled libraries when the uninstalled
13896 # path is not listed in the libpath. Setting hardcode_minus_L
13897 # to unsupported forces relinking
13898 hardcode_minus_L=yes
13899 hardcode_libdir_flag_spec='-L$libdir'
13900 hardcode_libdir_separator=
13901 fi
13902 ;;
13903 esac
13904 shared_flag='-shared'
13905 if test yes = "$aix_use_runtimelinking"; then
13906 shared_flag="$shared_flag "'$wl-G'
13907 fi
13908 # Need to ensure runtime linking is disabled for the traditional
13909 # shared library, or the linker may eventually find shared libraries
13910 # /with/ Import File - we do not want to mix them.
13911 shared_flag_aix='-shared'
13912 shared_flag_svr4='-shared $wl-G'
13913 else
13914 # not using gcc
13915 if test ia64 = "$host_cpu"; then
13916 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13917 # chokes on -Wl,-G. The following line is correct:
13918 shared_flag='-G'
13919 else
13920 if test yes = "$aix_use_runtimelinking"; then
13921 shared_flag='$wl-G'
13922 else
13923 shared_flag='$wl-bM:SRE'
13924 fi
13925 shared_flag_aix='$wl-bM:SRE'
13926 shared_flag_svr4='$wl-G'
13927 fi
13928 fi
13929
13930 export_dynamic_flag_spec='$wl-bexpall'
13931 # It seems that -bexpall does not export symbols beginning with
13932 # underscore (_), so it is better to generate a list of symbols to export.
13933 always_export_symbols=yes
13934 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13935 # Warning - without using the other runtime loading flags (-brtl),
13936 # -berok will link without error, but may produce a broken library.
13937 allow_undefined_flag='-berok'
13938 # Determine the default libpath from the value encoded in an
13939 # empty executable.
13940 if test set = "${lt_cv_aix_libpath+set}"; then
13941 aix_libpath=$lt_cv_aix_libpath
13942 else
13943 if ${lt_cv_aix_libpath_+:} false; then :
13944 $as_echo_n "(cached) " >&6
13945 else
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13948
13949 int
13950 main ()
13951 {
13952
13953 ;
13954 return 0;
13955 }
13956 _ACEOF
13957 if ac_fn_c_try_link "$LINENO"; then :
13958
13959 lt_aix_libpath_sed='
13960 /Import File Strings/,/^$/ {
13961 /^0/ {
13962 s/^0 *\([^ ]*\) *$/\1/
13963 p
13964 }
13965 }'
13966 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13967 # Check for a 64-bit object if we didn't find anything.
13968 if test -z "$lt_cv_aix_libpath_"; then
13969 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13970 fi
13971 fi
13972 rm -f core conftest.err conftest.$ac_objext \
13973 conftest$ac_exeext conftest.$ac_ext
13974 if test -z "$lt_cv_aix_libpath_"; then
13975 lt_cv_aix_libpath_=/usr/lib:/lib
13976 fi
13977
13978 fi
13979
13980 aix_libpath=$lt_cv_aix_libpath_
13981 fi
13982
13983 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13984 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
13985 else
13986 if test ia64 = "$host_cpu"; then
13987 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13988 allow_undefined_flag="-z nodefs"
13989 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"
13990 else
13991 # Determine the default libpath from the value encoded in an
13992 # empty executable.
13993 if test set = "${lt_cv_aix_libpath+set}"; then
13994 aix_libpath=$lt_cv_aix_libpath
13995 else
13996 if ${lt_cv_aix_libpath_+:} false; then :
13997 $as_echo_n "(cached) " >&6
13998 else
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14001
14002 int
14003 main ()
14004 {
14005
14006 ;
14007 return 0;
14008 }
14009 _ACEOF
14010 if ac_fn_c_try_link "$LINENO"; then :
14011
14012 lt_aix_libpath_sed='
14013 /Import File Strings/,/^$/ {
14014 /^0/ {
14015 s/^0 *\([^ ]*\) *$/\1/
14016 p
14017 }
14018 }'
14019 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14020 # Check for a 64-bit object if we didn't find anything.
14021 if test -z "$lt_cv_aix_libpath_"; then
14022 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14023 fi
14024 fi
14025 rm -f core conftest.err conftest.$ac_objext \
14026 conftest$ac_exeext conftest.$ac_ext
14027 if test -z "$lt_cv_aix_libpath_"; then
14028 lt_cv_aix_libpath_=/usr/lib:/lib
14029 fi
14030
14031 fi
14032
14033 aix_libpath=$lt_cv_aix_libpath_
14034 fi
14035
14036 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14037 # Warning - without using the other run time loading flags,
14038 # -berok will link without error, but may produce a broken library.
14039 no_undefined_flag=' $wl-bernotok'
14040 allow_undefined_flag=' $wl-berok'
14041 if test yes = "$with_gnu_ld"; then
14042 # We only use this code for GNU lds that support --whole-archive.
14043 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14044 else
14045 # Exported symbols can be pulled into shared objects from archives
14046 whole_archive_flag_spec='$convenience'
14047 fi
14048 archive_cmds_need_lc=yes
14049 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14050 # -brtl affects multiple linker settings, -berok does not and is overridden later
14051 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14052 if test svr4 != "$with_aix_soname"; then
14053 # This is similar to how AIX traditionally builds its shared libraries.
14054 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'
14055 fi
14056 if test aix != "$with_aix_soname"; then
14057 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'
14058 else
14059 # used by -dlpreopen to get the symbols
14060 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14061 fi
14062 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14063 fi
14064 fi
14065 ;;
14066
14067 amigaos*)
14068 case $host_cpu in
14069 powerpc)
14070 # see comment about AmigaOS4 .so support
14071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14072 archive_expsym_cmds=''
14073 ;;
14074 m68k)
14075 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)'
14076 hardcode_libdir_flag_spec='-L$libdir'
14077 hardcode_minus_L=yes
14078 ;;
14079 esac
14080 ;;
14081
14082 bsdi[45]*)
14083 export_dynamic_flag_spec=-rdynamic
14084 ;;
14085
14086 cygwin* | mingw* | pw32* | cegcc*)
14087 # When not using gcc, we currently assume that we are using
14088 # Microsoft Visual C++.
14089 # hardcode_libdir_flag_spec is actually meaningless, as there is
14090 # no search path for DLLs.
14091 case $cc_basename in
14092 cl*)
14093 # Native MSVC
14094 hardcode_libdir_flag_spec=' '
14095 allow_undefined_flag=unsupported
14096 always_export_symbols=yes
14097 file_list_spec='@'
14098 # Tell ltmain to make .lib files, not .a files.
14099 libext=lib
14100 # Tell ltmain to make .dll files, not .so files.
14101 shrext_cmds=.dll
14102 # FIXME: Setting linknames here is a bad hack.
14103 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14104 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14105 cp "$export_symbols" "$output_objdir/$soname.def";
14106 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14107 else
14108 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14109 fi~
14110 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14111 linknames='
14112 # The linker will not automatically build a static lib if we build a DLL.
14113 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14114 enable_shared_with_static_runtimes=yes
14115 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14116 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14117 # Don't use ranlib
14118 old_postinstall_cmds='chmod 644 $oldlib'
14119 postlink_cmds='lt_outputfile="@OUTPUT@"~
14120 lt_tool_outputfile="@TOOL_OUTPUT@"~
14121 case $lt_outputfile in
14122 *.exe|*.EXE) ;;
14123 *)
14124 lt_outputfile=$lt_outputfile.exe
14125 lt_tool_outputfile=$lt_tool_outputfile.exe
14126 ;;
14127 esac~
14128 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14129 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14130 $RM "$lt_outputfile.manifest";
14131 fi'
14132 ;;
14133 *)
14134 # Assume MSVC wrapper
14135 hardcode_libdir_flag_spec=' '
14136 allow_undefined_flag=unsupported
14137 # Tell ltmain to make .lib files, not .a files.
14138 libext=lib
14139 # Tell ltmain to make .dll files, not .so files.
14140 shrext_cmds=.dll
14141 # FIXME: Setting linknames here is a bad hack.
14142 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14143 # The linker will automatically build a .lib file if we build a DLL.
14144 old_archive_from_new_cmds='true'
14145 # FIXME: Should let the user specify the lib program.
14146 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14147 enable_shared_with_static_runtimes=yes
14148 ;;
14149 esac
14150 ;;
14151
14152 darwin* | rhapsody*)
14153
14154
14155 archive_cmds_need_lc=no
14156 hardcode_direct=no
14157 hardcode_automatic=yes
14158 hardcode_shlibpath_var=unsupported
14159 if test yes = "$lt_cv_ld_force_load"; then
14160 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\"`'
14161
14162 else
14163 whole_archive_flag_spec=''
14164 fi
14165 link_all_deplibs=yes
14166 allow_undefined_flag=$_lt_dar_allow_undefined
14167 case $cc_basename in
14168 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14169 *) _lt_dar_can_shared=$GCC ;;
14170 esac
14171 if test yes = "$_lt_dar_can_shared"; then
14172 output_verbose_link_cmd=func_echo_all
14173 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14174 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14175 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"
14176 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"
14177
14178 else
14179 ld_shlibs=no
14180 fi
14181
14182 ;;
14183
14184 dgux*)
14185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14186 hardcode_libdir_flag_spec='-L$libdir'
14187 hardcode_shlibpath_var=no
14188 ;;
14189
14190 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14191 # support. Future versions do this automatically, but an explicit c++rt0.o
14192 # does not break anything, and helps significantly (at the cost of a little
14193 # extra space).
14194 freebsd2.2*)
14195 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14196 hardcode_libdir_flag_spec='-R$libdir'
14197 hardcode_direct=yes
14198 hardcode_shlibpath_var=no
14199 ;;
14200
14201 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14202 freebsd2.*)
14203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14204 hardcode_direct=yes
14205 hardcode_minus_L=yes
14206 hardcode_shlibpath_var=no
14207 ;;
14208
14209 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14210 freebsd* | dragonfly*)
14211 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14212 hardcode_libdir_flag_spec='-R$libdir'
14213 hardcode_direct=yes
14214 hardcode_shlibpath_var=no
14215 ;;
14216
14217 hpux9*)
14218 if test yes = "$GCC"; then
14219 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'
14220 else
14221 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'
14222 fi
14223 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14224 hardcode_libdir_separator=:
14225 hardcode_direct=yes
14226
14227 # hardcode_minus_L: Not really in the search PATH,
14228 # but as the default location of the library.
14229 hardcode_minus_L=yes
14230 export_dynamic_flag_spec='$wl-E'
14231 ;;
14232
14233 hpux10*)
14234 if test yes,no = "$GCC,$with_gnu_ld"; then
14235 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14236 else
14237 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14238 fi
14239 if test no = "$with_gnu_ld"; then
14240 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14241 hardcode_libdir_separator=:
14242 hardcode_direct=yes
14243 hardcode_direct_absolute=yes
14244 export_dynamic_flag_spec='$wl-E'
14245 # hardcode_minus_L: Not really in the search PATH,
14246 # but as the default location of the library.
14247 hardcode_minus_L=yes
14248 fi
14249 ;;
14250
14251 hpux11*)
14252 if test yes,no = "$GCC,$with_gnu_ld"; then
14253 case $host_cpu in
14254 hppa*64*)
14255 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14256 ;;
14257 ia64*)
14258 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14259 ;;
14260 *)
14261 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14262 ;;
14263 esac
14264 else
14265 case $host_cpu in
14266 hppa*64*)
14267 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14268 ;;
14269 ia64*)
14270 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14271 ;;
14272 *)
14273
14274 # Older versions of the 11.00 compiler do not understand -b yet
14275 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14277 $as_echo_n "checking if $CC understands -b... " >&6; }
14278 if ${lt_cv_prog_compiler__b+:} false; then :
14279 $as_echo_n "(cached) " >&6
14280 else
14281 lt_cv_prog_compiler__b=no
14282 save_LDFLAGS=$LDFLAGS
14283 LDFLAGS="$LDFLAGS -b"
14284 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14285 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14286 # The linker can only warn and ignore the option if not recognized
14287 # So say no if there are warnings
14288 if test -s conftest.err; then
14289 # Append any errors to the config.log.
14290 cat conftest.err 1>&5
14291 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14293 if diff conftest.exp conftest.er2 >/dev/null; then
14294 lt_cv_prog_compiler__b=yes
14295 fi
14296 else
14297 lt_cv_prog_compiler__b=yes
14298 fi
14299 fi
14300 $RM -r conftest*
14301 LDFLAGS=$save_LDFLAGS
14302
14303 fi
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14305 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14306
14307 if test yes = "$lt_cv_prog_compiler__b"; then
14308 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14309 else
14310 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14311 fi
14312
14313 ;;
14314 esac
14315 fi
14316 if test no = "$with_gnu_ld"; then
14317 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14318 hardcode_libdir_separator=:
14319
14320 case $host_cpu in
14321 hppa*64*|ia64*)
14322 hardcode_direct=no
14323 hardcode_shlibpath_var=no
14324 ;;
14325 *)
14326 hardcode_direct=yes
14327 hardcode_direct_absolute=yes
14328 export_dynamic_flag_spec='$wl-E'
14329
14330 # hardcode_minus_L: Not really in the search PATH,
14331 # but as the default location of the library.
14332 hardcode_minus_L=yes
14333 ;;
14334 esac
14335 fi
14336 ;;
14337
14338 irix5* | irix6* | nonstopux*)
14339 if test yes = "$GCC"; then
14340 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'
14341 # Try to use the -exported_symbol ld option, if it does not
14342 # work, assume that -exports_file does not work either and
14343 # implicitly export all symbols.
14344 # This should be the same for all languages, so no per-tag cache variable.
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14346 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14347 if ${lt_cv_irix_exported_symbol+:} false; then :
14348 $as_echo_n "(cached) " >&6
14349 else
14350 save_LDFLAGS=$LDFLAGS
14351 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h. */
14354 int foo (void) { return 0; }
14355 _ACEOF
14356 if ac_fn_c_try_link "$LINENO"; then :
14357 lt_cv_irix_exported_symbol=yes
14358 else
14359 lt_cv_irix_exported_symbol=no
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14363 LDFLAGS=$save_LDFLAGS
14364 fi
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14366 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14367 if test yes = "$lt_cv_irix_exported_symbol"; then
14368 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'
14369 fi
14370 else
14371 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'
14372 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'
14373 fi
14374 archive_cmds_need_lc='no'
14375 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14376 hardcode_libdir_separator=:
14377 inherit_rpath=yes
14378 link_all_deplibs=yes
14379 ;;
14380
14381 linux*)
14382 case $cc_basename in
14383 tcc*)
14384 # Fabrice Bellard et al's Tiny C Compiler
14385 ld_shlibs=yes
14386 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14387 ;;
14388 esac
14389 ;;
14390
14391 netbsd*)
14392 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14394 else
14395 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14396 fi
14397 hardcode_libdir_flag_spec='-R$libdir'
14398 hardcode_direct=yes
14399 hardcode_shlibpath_var=no
14400 ;;
14401
14402 newsos6)
14403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14404 hardcode_direct=yes
14405 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14406 hardcode_libdir_separator=:
14407 hardcode_shlibpath_var=no
14408 ;;
14409
14410 *nto* | *qnx*)
14411 ;;
14412
14413 openbsd* | bitrig*)
14414 if test -f /usr/libexec/ld.so; then
14415 hardcode_direct=yes
14416 hardcode_shlibpath_var=no
14417 hardcode_direct_absolute=yes
14418 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14419 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14420 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14421 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14422 export_dynamic_flag_spec='$wl-E'
14423 else
14424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14425 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14426 fi
14427 else
14428 ld_shlibs=no
14429 fi
14430 ;;
14431
14432 os2*)
14433 hardcode_libdir_flag_spec='-L$libdir'
14434 hardcode_minus_L=yes
14435 allow_undefined_flag=unsupported
14436 shrext_cmds=.dll
14437 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14438 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14439 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14440 $ECHO EXPORTS >> $output_objdir/$libname.def~
14441 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14442 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14443 emximp -o $lib $output_objdir/$libname.def'
14444 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14445 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14446 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14447 $ECHO EXPORTS >> $output_objdir/$libname.def~
14448 prefix_cmds="$SED"~
14449 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14450 prefix_cmds="$prefix_cmds -e 1d";
14451 fi~
14452 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14453 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14454 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14455 emximp -o $lib $output_objdir/$libname.def'
14456 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14457 enable_shared_with_static_runtimes=yes
14458 ;;
14459
14460 osf3*)
14461 if test yes = "$GCC"; then
14462 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14463 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'
14464 else
14465 allow_undefined_flag=' -expect_unresolved \*'
14466 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'
14467 fi
14468 archive_cmds_need_lc='no'
14469 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14470 hardcode_libdir_separator=:
14471 ;;
14472
14473 osf4* | osf5*) # as osf3* with the addition of -msym flag
14474 if test yes = "$GCC"; then
14475 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14476 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'
14477 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14478 else
14479 allow_undefined_flag=' -expect_unresolved \*'
14480 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'
14481 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~
14482 $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'
14483
14484 # Both c and cxx compiler support -rpath directly
14485 hardcode_libdir_flag_spec='-rpath $libdir'
14486 fi
14487 archive_cmds_need_lc='no'
14488 hardcode_libdir_separator=:
14489 ;;
14490
14491 solaris*)
14492 no_undefined_flag=' -z defs'
14493 if test yes = "$GCC"; then
14494 wlarc='$wl'
14495 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14496 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14497 $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'
14498 else
14499 case `$CC -V 2>&1` in
14500 *"Compilers 5.0"*)
14501 wlarc=''
14502 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14503 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14504 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14505 ;;
14506 *)
14507 wlarc='$wl'
14508 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14509 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14510 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14511 ;;
14512 esac
14513 fi
14514 hardcode_libdir_flag_spec='-R$libdir'
14515 hardcode_shlibpath_var=no
14516 case $host_os in
14517 solaris2.[0-5] | solaris2.[0-5].*) ;;
14518 *)
14519 # The compiler driver will combine and reorder linker options,
14520 # but understands '-z linker_flag'. GCC discards it without '$wl',
14521 # but is careful enough not to reorder.
14522 # Supported since Solaris 2.6 (maybe 2.5.1?)
14523 if test yes = "$GCC"; then
14524 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14525 else
14526 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14527 fi
14528 ;;
14529 esac
14530 link_all_deplibs=yes
14531 ;;
14532
14533 sunos4*)
14534 if test sequent = "$host_vendor"; then
14535 # Use $CC to link under sequent, because it throws in some extra .o
14536 # files that make .init and .fini sections work.
14537 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14538 else
14539 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14540 fi
14541 hardcode_libdir_flag_spec='-L$libdir'
14542 hardcode_direct=yes
14543 hardcode_minus_L=yes
14544 hardcode_shlibpath_var=no
14545 ;;
14546
14547 sysv4)
14548 case $host_vendor in
14549 sni)
14550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14551 hardcode_direct=yes # is this really true???
14552 ;;
14553 siemens)
14554 ## LD is ld it makes a PLAMLIB
14555 ## CC just makes a GrossModule.
14556 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14557 reload_cmds='$CC -r -o $output$reload_objs'
14558 hardcode_direct=no
14559 ;;
14560 motorola)
14561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14562 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14563 ;;
14564 esac
14565 runpath_var='LD_RUN_PATH'
14566 hardcode_shlibpath_var=no
14567 ;;
14568
14569 sysv4.3*)
14570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14571 hardcode_shlibpath_var=no
14572 export_dynamic_flag_spec='-Bexport'
14573 ;;
14574
14575 sysv4*MP*)
14576 if test -d /usr/nec; then
14577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14578 hardcode_shlibpath_var=no
14579 runpath_var=LD_RUN_PATH
14580 hardcode_runpath_var=yes
14581 ld_shlibs=yes
14582 fi
14583 ;;
14584
14585 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14586 no_undefined_flag='$wl-z,text'
14587 archive_cmds_need_lc=no
14588 hardcode_shlibpath_var=no
14589 runpath_var='LD_RUN_PATH'
14590
14591 if test yes = "$GCC"; then
14592 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14593 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14594 else
14595 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14596 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14597 fi
14598 ;;
14599
14600 sysv5* | sco3.2v5* | sco5v6*)
14601 # Note: We CANNOT use -z defs as we might desire, because we do not
14602 # link with -lc, and that would cause any symbols used from libc to
14603 # always be unresolved, which means just about no library would
14604 # ever link correctly. If we're not using GNU ld we use -z text
14605 # though, which does catch some bad symbols but isn't as heavy-handed
14606 # as -z defs.
14607 no_undefined_flag='$wl-z,text'
14608 allow_undefined_flag='$wl-z,nodefs'
14609 archive_cmds_need_lc=no
14610 hardcode_shlibpath_var=no
14611 hardcode_libdir_flag_spec='$wl-R,$libdir'
14612 hardcode_libdir_separator=':'
14613 link_all_deplibs=yes
14614 export_dynamic_flag_spec='$wl-Bexport'
14615 runpath_var='LD_RUN_PATH'
14616
14617 if test yes = "$GCC"; then
14618 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14619 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14620 else
14621 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14622 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14623 fi
14624 ;;
14625
14626 uts4*)
14627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14628 hardcode_libdir_flag_spec='-L$libdir'
14629 hardcode_shlibpath_var=no
14630 ;;
14631
14632 *)
14633 ld_shlibs=no
14634 ;;
14635 esac
14636
14637 if test sni = "$host_vendor"; then
14638 case $host in
14639 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14640 export_dynamic_flag_spec='$wl-Blargedynsym'
14641 ;;
14642 esac
14643 fi
14644 fi
14645
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14647 $as_echo "$ld_shlibs" >&6; }
14648 test no = "$ld_shlibs" && can_build_shared=no
14649
14650 with_gnu_ld=$with_gnu_ld
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666 #
14667 # Do we need to explicitly link libc?
14668 #
14669 case "x$archive_cmds_need_lc" in
14670 x|xyes)
14671 # Assume -lc should be added
14672 archive_cmds_need_lc=yes
14673
14674 if test yes,yes = "$GCC,$enable_shared"; then
14675 case $archive_cmds in
14676 *'~'*)
14677 # FIXME: we may have to deal with multi-command sequences.
14678 ;;
14679 '$CC '*)
14680 # Test whether the compiler implicitly links with -lc since on some
14681 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14682 # to ld, don't add -lc before -lgcc.
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14684 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14685 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14686 $as_echo_n "(cached) " >&6
14687 else
14688 $RM conftest*
14689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14690
14691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14692 (eval $ac_compile) 2>&5
14693 ac_status=$?
14694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14695 test $ac_status = 0; } 2>conftest.err; then
14696 soname=conftest
14697 lib=conftest
14698 libobjs=conftest.$ac_objext
14699 deplibs=
14700 wl=$lt_prog_compiler_wl
14701 pic_flag=$lt_prog_compiler_pic
14702 compiler_flags=-v
14703 linker_flags=-v
14704 verstring=
14705 output_objdir=.
14706 libname=conftest
14707 lt_save_allow_undefined_flag=$allow_undefined_flag
14708 allow_undefined_flag=
14709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14710 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14711 ac_status=$?
14712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14713 test $ac_status = 0; }
14714 then
14715 lt_cv_archive_cmds_need_lc=no
14716 else
14717 lt_cv_archive_cmds_need_lc=yes
14718 fi
14719 allow_undefined_flag=$lt_save_allow_undefined_flag
14720 else
14721 cat conftest.err 1>&5
14722 fi
14723 $RM conftest*
14724
14725 fi
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14727 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14728 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14729 ;;
14730 esac
14731 fi
14732 ;;
14733 esac
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14887 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14888
14889 if test yes = "$GCC"; then
14890 case $host_os in
14891 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14892 *) lt_awk_arg='/^libraries:/' ;;
14893 esac
14894 case $host_os in
14895 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14896 *) lt_sed_strip_eq='s|=/|/|g' ;;
14897 esac
14898 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14899 case $lt_search_path_spec in
14900 *\;*)
14901 # if the path contains ";" then we assume it to be the separator
14902 # otherwise default to the standard path separator (i.e. ":") - it is
14903 # assumed that no part of a normal pathname contains ";" but that should
14904 # okay in the real world where ";" in dirpaths is itself problematic.
14905 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14906 ;;
14907 *)
14908 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14909 ;;
14910 esac
14911 # Ok, now we have the path, separated by spaces, we can step through it
14912 # and add multilib dir if necessary...
14913 lt_tmp_lt_search_path_spec=
14914 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14915 # ...but if some path component already ends with the multilib dir we assume
14916 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14917 case "$lt_multi_os_dir; $lt_search_path_spec " in
14918 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14919 lt_multi_os_dir=
14920 ;;
14921 esac
14922 for lt_sys_path in $lt_search_path_spec; do
14923 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14924 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14925 elif test -n "$lt_multi_os_dir"; then
14926 test -d "$lt_sys_path" && \
14927 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14928 fi
14929 done
14930 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14931 BEGIN {RS = " "; FS = "/|\n";} {
14932 lt_foo = "";
14933 lt_count = 0;
14934 for (lt_i = NF; lt_i > 0; lt_i--) {
14935 if ($lt_i != "" && $lt_i != ".") {
14936 if ($lt_i == "..") {
14937 lt_count++;
14938 } else {
14939 if (lt_count == 0) {
14940 lt_foo = "/" $lt_i lt_foo;
14941 } else {
14942 lt_count--;
14943 }
14944 }
14945 }
14946 }
14947 if (lt_foo != "") { lt_freq[lt_foo]++; }
14948 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14949 }'`
14950 # AWK program above erroneously prepends '/' to C:/dos/paths
14951 # for these hosts.
14952 case $host_os in
14953 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14954 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14955 esac
14956 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14957 else
14958 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14959 fi
14960 library_names_spec=
14961 libname_spec='lib$name'
14962 soname_spec=
14963 shrext_cmds=.so
14964 postinstall_cmds=
14965 postuninstall_cmds=
14966 finish_cmds=
14967 finish_eval=
14968 shlibpath_var=
14969 shlibpath_overrides_runpath=unknown
14970 version_type=none
14971 dynamic_linker="$host_os ld.so"
14972 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14973 need_lib_prefix=unknown
14974 hardcode_into_libs=no
14975
14976 # when you set need_version to no, make sure it does not cause -set_version
14977 # flags to be left without arguments
14978 need_version=unknown
14979
14980
14981
14982 case $host_os in
14983 aix3*)
14984 version_type=linux # correct to gnu/linux during the next big refactor
14985 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14986 shlibpath_var=LIBPATH
14987
14988 # AIX 3 has no versioning support, so we append a major version to the name.
14989 soname_spec='$libname$release$shared_ext$major'
14990 ;;
14991
14992 aix[4-9]*)
14993 version_type=linux # correct to gnu/linux during the next big refactor
14994 need_lib_prefix=no
14995 need_version=no
14996 hardcode_into_libs=yes
14997 if test ia64 = "$host_cpu"; then
14998 # AIX 5 supports IA64
14999 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15000 shlibpath_var=LD_LIBRARY_PATH
15001 else
15002 # With GCC up to 2.95.x, collect2 would create an import file
15003 # for dependence libraries. The import file would start with
15004 # the line '#! .'. This would cause the generated library to
15005 # depend on '.', always an invalid library. This was fixed in
15006 # development snapshots of GCC prior to 3.0.
15007 case $host_os in
15008 aix4 | aix4.[01] | aix4.[01].*)
15009 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15010 echo ' yes '
15011 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15012 :
15013 else
15014 can_build_shared=no
15015 fi
15016 ;;
15017 esac
15018 # Using Import Files as archive members, it is possible to support
15019 # filename-based versioning of shared library archives on AIX. While
15020 # this would work for both with and without runtime linking, it will
15021 # prevent static linking of such archives. So we do filename-based
15022 # shared library versioning with .so extension only, which is used
15023 # when both runtime linking and shared linking is enabled.
15024 # Unfortunately, runtime linking may impact performance, so we do
15025 # not want this to be the default eventually. Also, we use the
15026 # versioned .so libs for executables only if there is the -brtl
15027 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15028 # To allow for filename-based versioning support, we need to create
15029 # libNAME.so.V as an archive file, containing:
15030 # *) an Import File, referring to the versioned filename of the
15031 # archive as well as the shared archive member, telling the
15032 # bitwidth (32 or 64) of that shared object, and providing the
15033 # list of exported symbols of that shared object, eventually
15034 # decorated with the 'weak' keyword
15035 # *) the shared object with the F_LOADONLY flag set, to really avoid
15036 # it being seen by the linker.
15037 # At run time we better use the real file rather than another symlink,
15038 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15039
15040 case $with_aix_soname,$aix_use_runtimelinking in
15041 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15042 # soname into executable. Probably we can add versioning support to
15043 # collect2, so additional links can be useful in future.
15044 aix,yes) # traditional libtool
15045 dynamic_linker='AIX unversionable lib.so'
15046 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15047 # instead of lib<name>.a to let people know that these are not
15048 # typical AIX shared libraries.
15049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15050 ;;
15051 aix,no) # traditional AIX only
15052 dynamic_linker='AIX lib.a(lib.so.V)'
15053 # We preserve .a as extension for shared libraries through AIX4.2
15054 # and later when we are not doing run time linking.
15055 library_names_spec='$libname$release.a $libname.a'
15056 soname_spec='$libname$release$shared_ext$major'
15057 ;;
15058 svr4,*) # full svr4 only
15059 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15060 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15061 # We do not specify a path in Import Files, so LIBPATH fires.
15062 shlibpath_overrides_runpath=yes
15063 ;;
15064 *,yes) # both, prefer svr4
15065 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15066 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15067 # unpreferred sharedlib libNAME.a needs extra handling
15068 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"'
15069 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"'
15070 # We do not specify a path in Import Files, so LIBPATH fires.
15071 shlibpath_overrides_runpath=yes
15072 ;;
15073 *,no) # both, prefer aix
15074 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15075 library_names_spec='$libname$release.a $libname.a'
15076 soname_spec='$libname$release$shared_ext$major'
15077 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15078 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)'
15079 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"'
15080 ;;
15081 esac
15082 shlibpath_var=LIBPATH
15083 fi
15084 ;;
15085
15086 amigaos*)
15087 case $host_cpu in
15088 powerpc)
15089 # Since July 2007 AmigaOS4 officially supports .so libraries.
15090 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15092 ;;
15093 m68k)
15094 library_names_spec='$libname.ixlibrary $libname.a'
15095 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15096 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'
15097 ;;
15098 esac
15099 ;;
15100
15101 beos*)
15102 library_names_spec='$libname$shared_ext'
15103 dynamic_linker="$host_os ld.so"
15104 shlibpath_var=LIBRARY_PATH
15105 ;;
15106
15107 bsdi[45]*)
15108 version_type=linux # correct to gnu/linux during the next big refactor
15109 need_version=no
15110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15111 soname_spec='$libname$release$shared_ext$major'
15112 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15113 shlibpath_var=LD_LIBRARY_PATH
15114 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15115 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15116 # the default ld.so.conf also contains /usr/contrib/lib and
15117 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15118 # libtool to hard-code these into programs
15119 ;;
15120
15121 cygwin* | mingw* | pw32* | cegcc*)
15122 version_type=windows
15123 shrext_cmds=.dll
15124 need_version=no
15125 need_lib_prefix=no
15126
15127 case $GCC,$cc_basename in
15128 yes,*)
15129 # gcc
15130 library_names_spec='$libname.dll.a'
15131 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15132 postinstall_cmds='base_file=`basename \$file`~
15133 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15134 dldir=$destdir/`dirname \$dlpath`~
15135 test -d \$dldir || mkdir -p \$dldir~
15136 $install_prog $dir/$dlname \$dldir/$dlname~
15137 chmod a+x \$dldir/$dlname~
15138 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15139 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15140 fi'
15141 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15142 dlpath=$dir/\$dldll~
15143 $RM \$dlpath'
15144 shlibpath_overrides_runpath=yes
15145
15146 case $host_os in
15147 cygwin*)
15148 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15149 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15150
15151 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15152 ;;
15153 mingw* | cegcc*)
15154 # MinGW DLLs use traditional 'lib' prefix
15155 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15156 ;;
15157 pw32*)
15158 # pw32 DLLs use 'pw' prefix rather than 'lib'
15159 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15160 ;;
15161 esac
15162 dynamic_linker='Win32 ld.exe'
15163 ;;
15164
15165 *,cl*)
15166 # Native MSVC
15167 libname_spec='$name'
15168 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15169 library_names_spec='$libname.dll.lib'
15170
15171 case $build_os in
15172 mingw*)
15173 sys_lib_search_path_spec=
15174 lt_save_ifs=$IFS
15175 IFS=';'
15176 for lt_path in $LIB
15177 do
15178 IFS=$lt_save_ifs
15179 # Let DOS variable expansion print the short 8.3 style file name.
15180 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15181 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15182 done
15183 IFS=$lt_save_ifs
15184 # Convert to MSYS style.
15185 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15186 ;;
15187 cygwin*)
15188 # Convert to unix form, then to dos form, then back to unix form
15189 # but this time dos style (no spaces!) so that the unix form looks
15190 # like /cygdrive/c/PROGRA~1:/cygdr...
15191 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15192 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15193 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15194 ;;
15195 *)
15196 sys_lib_search_path_spec=$LIB
15197 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15198 # It is most probably a Windows format PATH.
15199 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15200 else
15201 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15202 fi
15203 # FIXME: find the short name or the path components, as spaces are
15204 # common. (e.g. "Program Files" -> "PROGRA~1")
15205 ;;
15206 esac
15207
15208 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15209 postinstall_cmds='base_file=`basename \$file`~
15210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15211 dldir=$destdir/`dirname \$dlpath`~
15212 test -d \$dldir || mkdir -p \$dldir~
15213 $install_prog $dir/$dlname \$dldir/$dlname'
15214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15215 dlpath=$dir/\$dldll~
15216 $RM \$dlpath'
15217 shlibpath_overrides_runpath=yes
15218 dynamic_linker='Win32 link.exe'
15219 ;;
15220
15221 *)
15222 # Assume MSVC wrapper
15223 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15224 dynamic_linker='Win32 ld.exe'
15225 ;;
15226 esac
15227 # FIXME: first we should search . and the directory the executable is in
15228 shlibpath_var=PATH
15229 ;;
15230
15231 darwin* | rhapsody*)
15232 dynamic_linker="$host_os dyld"
15233 version_type=darwin
15234 need_lib_prefix=no
15235 need_version=no
15236 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15237 soname_spec='$libname$release$major$shared_ext'
15238 shlibpath_overrides_runpath=yes
15239 shlibpath_var=DYLD_LIBRARY_PATH
15240 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15241
15242 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15243 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15244 ;;
15245
15246 dgux*)
15247 version_type=linux # correct to gnu/linux during the next big refactor
15248 need_lib_prefix=no
15249 need_version=no
15250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15251 soname_spec='$libname$release$shared_ext$major'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 ;;
15254
15255 freebsd* | dragonfly*)
15256 # DragonFly does not have aout. When/if they implement a new
15257 # versioning mechanism, adjust this.
15258 if test -x /usr/bin/objformat; then
15259 objformat=`/usr/bin/objformat`
15260 else
15261 case $host_os in
15262 freebsd[23].*) objformat=aout ;;
15263 *) objformat=elf ;;
15264 esac
15265 fi
15266 version_type=freebsd-$objformat
15267 case $version_type in
15268 freebsd-elf*)
15269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15270 soname_spec='$libname$release$shared_ext$major'
15271 need_version=no
15272 need_lib_prefix=no
15273 ;;
15274 freebsd-*)
15275 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15276 need_version=yes
15277 ;;
15278 esac
15279 shlibpath_var=LD_LIBRARY_PATH
15280 case $host_os in
15281 freebsd2.*)
15282 shlibpath_overrides_runpath=yes
15283 ;;
15284 freebsd3.[01]* | freebsdelf3.[01]*)
15285 shlibpath_overrides_runpath=yes
15286 hardcode_into_libs=yes
15287 ;;
15288 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15289 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15290 shlibpath_overrides_runpath=no
15291 hardcode_into_libs=yes
15292 ;;
15293 *) # from 4.6 on, and DragonFly
15294 shlibpath_overrides_runpath=yes
15295 hardcode_into_libs=yes
15296 ;;
15297 esac
15298 ;;
15299
15300 haiku*)
15301 version_type=linux # correct to gnu/linux during the next big refactor
15302 need_lib_prefix=no
15303 need_version=no
15304 dynamic_linker="$host_os runtime_loader"
15305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15306 soname_spec='$libname$release$shared_ext$major'
15307 shlibpath_var=LIBRARY_PATH
15308 shlibpath_overrides_runpath=no
15309 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15310 hardcode_into_libs=yes
15311 ;;
15312
15313 hpux9* | hpux10* | hpux11*)
15314 # Give a soname corresponding to the major version so that dld.sl refuses to
15315 # link against other versions.
15316 version_type=sunos
15317 need_lib_prefix=no
15318 need_version=no
15319 case $host_cpu in
15320 ia64*)
15321 shrext_cmds='.so'
15322 hardcode_into_libs=yes
15323 dynamic_linker="$host_os dld.so"
15324 shlibpath_var=LD_LIBRARY_PATH
15325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15327 soname_spec='$libname$release$shared_ext$major'
15328 if test 32 = "$HPUX_IA64_MODE"; then
15329 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15330 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15331 else
15332 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15333 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15334 fi
15335 ;;
15336 hppa*64*)
15337 shrext_cmds='.sl'
15338 hardcode_into_libs=yes
15339 dynamic_linker="$host_os dld.sl"
15340 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15343 soname_spec='$libname$release$shared_ext$major'
15344 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15346 ;;
15347 *)
15348 shrext_cmds='.sl'
15349 dynamic_linker="$host_os dld.sl"
15350 shlibpath_var=SHLIB_PATH
15351 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15353 soname_spec='$libname$release$shared_ext$major'
15354 ;;
15355 esac
15356 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15357 postinstall_cmds='chmod 555 $lib'
15358 # or fails outright, so override atomically:
15359 install_override_mode=555
15360 ;;
15361
15362 interix[3-9]*)
15363 version_type=linux # correct to gnu/linux during the next big refactor
15364 need_lib_prefix=no
15365 need_version=no
15366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15367 soname_spec='$libname$release$shared_ext$major'
15368 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15369 shlibpath_var=LD_LIBRARY_PATH
15370 shlibpath_overrides_runpath=no
15371 hardcode_into_libs=yes
15372 ;;
15373
15374 irix5* | irix6* | nonstopux*)
15375 case $host_os in
15376 nonstopux*) version_type=nonstopux ;;
15377 *)
15378 if test yes = "$lt_cv_prog_gnu_ld"; then
15379 version_type=linux # correct to gnu/linux during the next big refactor
15380 else
15381 version_type=irix
15382 fi ;;
15383 esac
15384 need_lib_prefix=no
15385 need_version=no
15386 soname_spec='$libname$release$shared_ext$major'
15387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15388 case $host_os in
15389 irix5* | nonstopux*)
15390 libsuff= shlibsuff=
15391 ;;
15392 *)
15393 case $LD in # libtool.m4 will add one of these switches to LD
15394 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15395 libsuff= shlibsuff= libmagic=32-bit;;
15396 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15397 libsuff=32 shlibsuff=N32 libmagic=N32;;
15398 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15399 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15400 *) libsuff= shlibsuff= libmagic=never-match;;
15401 esac
15402 ;;
15403 esac
15404 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15405 shlibpath_overrides_runpath=no
15406 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15407 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15408 hardcode_into_libs=yes
15409 ;;
15410
15411 # No shared lib support for Linux oldld, aout, or coff.
15412 linux*oldld* | linux*aout* | linux*coff*)
15413 dynamic_linker=no
15414 ;;
15415
15416 linux*android*)
15417 version_type=none # Android doesn't support versioned libraries.
15418 need_lib_prefix=no
15419 need_version=no
15420 library_names_spec='$libname$release$shared_ext'
15421 soname_spec='$libname$release$shared_ext'
15422 finish_cmds=
15423 shlibpath_var=LD_LIBRARY_PATH
15424 shlibpath_overrides_runpath=yes
15425
15426 # This implies no fast_install, which is unacceptable.
15427 # Some rework will be needed to allow for fast_install
15428 # before this can be enabled.
15429 hardcode_into_libs=yes
15430
15431 dynamic_linker='Android linker'
15432 # Don't embed -rpath directories since the linker doesn't support them.
15433 hardcode_libdir_flag_spec='-L$libdir'
15434 ;;
15435
15436 # This must be glibc/ELF.
15437 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15438 version_type=linux # correct to gnu/linux during the next big refactor
15439 need_lib_prefix=no
15440 need_version=no
15441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15442 soname_spec='$libname$release$shared_ext$major'
15443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15444 shlibpath_var=LD_LIBRARY_PATH
15445 shlibpath_overrides_runpath=no
15446
15447 # Some binutils ld are patched to set DT_RUNPATH
15448 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15449 $as_echo_n "(cached) " >&6
15450 else
15451 lt_cv_shlibpath_overrides_runpath=no
15452 save_LDFLAGS=$LDFLAGS
15453 save_libdir=$libdir
15454 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15455 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15458
15459 int
15460 main ()
15461 {
15462
15463 ;
15464 return 0;
15465 }
15466 _ACEOF
15467 if ac_fn_c_try_link "$LINENO"; then :
15468 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15469 lt_cv_shlibpath_overrides_runpath=yes
15470 fi
15471 fi
15472 rm -f core conftest.err conftest.$ac_objext \
15473 conftest$ac_exeext conftest.$ac_ext
15474 LDFLAGS=$save_LDFLAGS
15475 libdir=$save_libdir
15476
15477 fi
15478
15479 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15480
15481 # This implies no fast_install, which is unacceptable.
15482 # Some rework will be needed to allow for fast_install
15483 # before this can be enabled.
15484 hardcode_into_libs=yes
15485
15486 # Ideally, we could use ldconfig to report *all* directores which are
15487 # searched for libraries, however this is still not possible. Aside from not
15488 # being certain /sbin/ldconfig is available, command
15489 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15490 # even though it is searched at run-time. Try to do the best guess by
15491 # appending ld.so.conf contents (and includes) to the search path.
15492 if test -f /etc/ld.so.conf; then
15493 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' ' '`
15494 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15495 fi
15496
15497 # We used to test for /lib/ld.so.1 and disable shared libraries on
15498 # powerpc, because MkLinux only supported shared libraries with the
15499 # GNU dynamic linker. Since this was broken with cross compilers,
15500 # most powerpc-linux boxes support dynamic linking these days and
15501 # people can always --disable-shared, the test was removed, and we
15502 # assume the GNU/Linux dynamic linker is in use.
15503 dynamic_linker='GNU/Linux ld.so'
15504 ;;
15505
15506 netbsd*)
15507 version_type=sunos
15508 need_lib_prefix=no
15509 need_version=no
15510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15511 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15513 dynamic_linker='NetBSD (a.out) ld.so'
15514 else
15515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15516 soname_spec='$libname$release$shared_ext$major'
15517 dynamic_linker='NetBSD ld.elf_so'
15518 fi
15519 shlibpath_var=LD_LIBRARY_PATH
15520 shlibpath_overrides_runpath=yes
15521 hardcode_into_libs=yes
15522 ;;
15523
15524 newsos6)
15525 version_type=linux # correct to gnu/linux during the next big refactor
15526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 shlibpath_overrides_runpath=yes
15529 ;;
15530
15531 *nto* | *qnx*)
15532 version_type=qnx
15533 need_lib_prefix=no
15534 need_version=no
15535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15536 soname_spec='$libname$release$shared_ext$major'
15537 shlibpath_var=LD_LIBRARY_PATH
15538 shlibpath_overrides_runpath=no
15539 hardcode_into_libs=yes
15540 dynamic_linker='ldqnx.so'
15541 ;;
15542
15543 openbsd* | bitrig*)
15544 version_type=sunos
15545 sys_lib_dlsearch_path_spec=/usr/lib
15546 need_lib_prefix=no
15547 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15548 need_version=no
15549 else
15550 need_version=yes
15551 fi
15552 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15554 shlibpath_var=LD_LIBRARY_PATH
15555 shlibpath_overrides_runpath=yes
15556 ;;
15557
15558 os2*)
15559 libname_spec='$name'
15560 version_type=windows
15561 shrext_cmds=.dll
15562 need_version=no
15563 need_lib_prefix=no
15564 # OS/2 can only load a DLL with a base name of 8 characters or less.
15565 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15566 v=$($ECHO $release$versuffix | tr -d .-);
15567 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15568 $ECHO $n$v`$shared_ext'
15569 library_names_spec='${libname}_dll.$libext'
15570 dynamic_linker='OS/2 ld.exe'
15571 shlibpath_var=BEGINLIBPATH
15572 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15574 postinstall_cmds='base_file=`basename \$file`~
15575 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15576 dldir=$destdir/`dirname \$dlpath`~
15577 test -d \$dldir || mkdir -p \$dldir~
15578 $install_prog $dir/$dlname \$dldir/$dlname~
15579 chmod a+x \$dldir/$dlname~
15580 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15581 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15582 fi'
15583 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15584 dlpath=$dir/\$dldll~
15585 $RM \$dlpath'
15586 ;;
15587
15588 osf3* | osf4* | osf5*)
15589 version_type=osf
15590 need_lib_prefix=no
15591 need_version=no
15592 soname_spec='$libname$release$shared_ext$major'
15593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15594 shlibpath_var=LD_LIBRARY_PATH
15595 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15596 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15597 ;;
15598
15599 rdos*)
15600 dynamic_linker=no
15601 ;;
15602
15603 solaris*)
15604 version_type=linux # correct to gnu/linux during the next big refactor
15605 need_lib_prefix=no
15606 need_version=no
15607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15608 soname_spec='$libname$release$shared_ext$major'
15609 shlibpath_var=LD_LIBRARY_PATH
15610 shlibpath_overrides_runpath=yes
15611 hardcode_into_libs=yes
15612 # ldd complains unless libraries are executable
15613 postinstall_cmds='chmod +x $lib'
15614 ;;
15615
15616 sunos4*)
15617 version_type=sunos
15618 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15619 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 shlibpath_overrides_runpath=yes
15622 if test yes = "$with_gnu_ld"; then
15623 need_lib_prefix=no
15624 fi
15625 need_version=yes
15626 ;;
15627
15628 sysv4 | sysv4.3*)
15629 version_type=linux # correct to gnu/linux during the next big refactor
15630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15631 soname_spec='$libname$release$shared_ext$major'
15632 shlibpath_var=LD_LIBRARY_PATH
15633 case $host_vendor in
15634 sni)
15635 shlibpath_overrides_runpath=no
15636 need_lib_prefix=no
15637 runpath_var=LD_RUN_PATH
15638 ;;
15639 siemens)
15640 need_lib_prefix=no
15641 ;;
15642 motorola)
15643 need_lib_prefix=no
15644 need_version=no
15645 shlibpath_overrides_runpath=no
15646 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15647 ;;
15648 esac
15649 ;;
15650
15651 sysv4*MP*)
15652 if test -d /usr/nec; then
15653 version_type=linux # correct to gnu/linux during the next big refactor
15654 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15655 soname_spec='$libname$shared_ext.$major'
15656 shlibpath_var=LD_LIBRARY_PATH
15657 fi
15658 ;;
15659
15660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15661 version_type=sco
15662 need_lib_prefix=no
15663 need_version=no
15664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15665 soname_spec='$libname$release$shared_ext$major'
15666 shlibpath_var=LD_LIBRARY_PATH
15667 shlibpath_overrides_runpath=yes
15668 hardcode_into_libs=yes
15669 if test yes = "$with_gnu_ld"; then
15670 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15671 else
15672 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15673 case $host_os in
15674 sco3.2v5*)
15675 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15676 ;;
15677 esac
15678 fi
15679 sys_lib_dlsearch_path_spec='/usr/lib'
15680 ;;
15681
15682 tpf*)
15683 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15684 version_type=linux # correct to gnu/linux during the next big refactor
15685 need_lib_prefix=no
15686 need_version=no
15687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15688 shlibpath_var=LD_LIBRARY_PATH
15689 shlibpath_overrides_runpath=no
15690 hardcode_into_libs=yes
15691 ;;
15692
15693 uts4*)
15694 version_type=linux # correct to gnu/linux during the next big refactor
15695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15696 soname_spec='$libname$release$shared_ext$major'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 ;;
15699
15700 *)
15701 dynamic_linker=no
15702 ;;
15703 esac
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15705 $as_echo "$dynamic_linker" >&6; }
15706 test no = "$dynamic_linker" && can_build_shared=no
15707
15708 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15709 if test yes = "$GCC"; then
15710 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15711 fi
15712
15713 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15714 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15715 fi
15716
15717 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15718 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15719 fi
15720
15721 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15722 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15723
15724 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15725 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15726
15727 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15728 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15827 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15828 hardcode_action=
15829 if test -n "$hardcode_libdir_flag_spec" ||
15830 test -n "$runpath_var" ||
15831 test yes = "$hardcode_automatic"; then
15832
15833 # We can hardcode non-existent directories.
15834 if test no != "$hardcode_direct" &&
15835 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15836 # have to relink, otherwise we might link with an installed library
15837 # when we should be linking with a yet-to-be-installed one
15838 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15839 test no != "$hardcode_minus_L"; then
15840 # Linking always hardcodes the temporary library directory.
15841 hardcode_action=relink
15842 else
15843 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15844 hardcode_action=immediate
15845 fi
15846 else
15847 # We cannot hardcode anything, or else we can only hardcode existing
15848 # directories.
15849 hardcode_action=unsupported
15850 fi
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15852 $as_echo "$hardcode_action" >&6; }
15853
15854 if test relink = "$hardcode_action" ||
15855 test yes = "$inherit_rpath"; then
15856 # Fast installation is not supported
15857 enable_fast_install=no
15858 elif test yes = "$shlibpath_overrides_runpath" ||
15859 test no = "$enable_shared"; then
15860 # Fast installation is not necessary
15861 enable_fast_install=needless
15862 fi
15863
15864
15865
15866
15867
15868
15869 if test yes != "$enable_dlopen"; then
15870 enable_dlopen=unknown
15871 enable_dlopen_self=unknown
15872 enable_dlopen_self_static=unknown
15873 else
15874 lt_cv_dlopen=no
15875 lt_cv_dlopen_libs=
15876
15877 case $host_os in
15878 beos*)
15879 lt_cv_dlopen=load_add_on
15880 lt_cv_dlopen_libs=
15881 lt_cv_dlopen_self=yes
15882 ;;
15883
15884 mingw* | pw32* | cegcc*)
15885 lt_cv_dlopen=LoadLibrary
15886 lt_cv_dlopen_libs=
15887 ;;
15888
15889 cygwin*)
15890 lt_cv_dlopen=dlopen
15891 lt_cv_dlopen_libs=
15892 ;;
15893
15894 darwin*)
15895 # if libdl is installed we need to link against it
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15897 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15898 if ${ac_cv_lib_dl_dlopen+:} false; then :
15899 $as_echo_n "(cached) " >&6
15900 else
15901 ac_check_lib_save_LIBS=$LIBS
15902 LIBS="-ldl $LIBS"
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15905
15906 /* Override any GCC internal prototype to avoid an error.
15907 Use char because int might match the return type of a GCC
15908 builtin and then its argument prototype would still apply. */
15909 #ifdef __cplusplus
15910 extern "C"
15911 #endif
15912 char dlopen ();
15913 int
15914 main ()
15915 {
15916 return dlopen ();
15917 ;
15918 return 0;
15919 }
15920 _ACEOF
15921 if ac_fn_c_try_link "$LINENO"; then :
15922 ac_cv_lib_dl_dlopen=yes
15923 else
15924 ac_cv_lib_dl_dlopen=no
15925 fi
15926 rm -f core conftest.err conftest.$ac_objext \
15927 conftest$ac_exeext conftest.$ac_ext
15928 LIBS=$ac_check_lib_save_LIBS
15929 fi
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15931 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15932 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15933 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15934 else
15935
15936 lt_cv_dlopen=dyld
15937 lt_cv_dlopen_libs=
15938 lt_cv_dlopen_self=yes
15939
15940 fi
15941
15942 ;;
15943
15944 tpf*)
15945 # Don't try to run any link tests for TPF. We know it's impossible
15946 # because TPF is a cross-compiler, and we know how we open DSOs.
15947 lt_cv_dlopen=dlopen
15948 lt_cv_dlopen_libs=
15949 lt_cv_dlopen_self=no
15950 ;;
15951
15952 *)
15953 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15954 if test "x$ac_cv_func_shl_load" = xyes; then :
15955 lt_cv_dlopen=shl_load
15956 else
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15958 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15959 if ${ac_cv_lib_dld_shl_load+:} false; then :
15960 $as_echo_n "(cached) " >&6
15961 else
15962 ac_check_lib_save_LIBS=$LIBS
15963 LIBS="-ldld $LIBS"
15964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965 /* end confdefs.h. */
15966
15967 /* Override any GCC internal prototype to avoid an error.
15968 Use char because int might match the return type of a GCC
15969 builtin and then its argument prototype would still apply. */
15970 #ifdef __cplusplus
15971 extern "C"
15972 #endif
15973 char shl_load ();
15974 int
15975 main ()
15976 {
15977 return shl_load ();
15978 ;
15979 return 0;
15980 }
15981 _ACEOF
15982 if ac_fn_c_try_link "$LINENO"; then :
15983 ac_cv_lib_dld_shl_load=yes
15984 else
15985 ac_cv_lib_dld_shl_load=no
15986 fi
15987 rm -f core conftest.err conftest.$ac_objext \
15988 conftest$ac_exeext conftest.$ac_ext
15989 LIBS=$ac_check_lib_save_LIBS
15990 fi
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15992 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15993 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15994 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15995 else
15996 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15997 if test "x$ac_cv_func_dlopen" = xyes; then :
15998 lt_cv_dlopen=dlopen
15999 else
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16001 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16002 if ${ac_cv_lib_dl_dlopen+:} false; then :
16003 $as_echo_n "(cached) " >&6
16004 else
16005 ac_check_lib_save_LIBS=$LIBS
16006 LIBS="-ldl $LIBS"
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16009
16010 /* Override any GCC internal prototype to avoid an error.
16011 Use char because int might match the return type of a GCC
16012 builtin and then its argument prototype would still apply. */
16013 #ifdef __cplusplus
16014 extern "C"
16015 #endif
16016 char dlopen ();
16017 int
16018 main ()
16019 {
16020 return dlopen ();
16021 ;
16022 return 0;
16023 }
16024 _ACEOF
16025 if ac_fn_c_try_link "$LINENO"; then :
16026 ac_cv_lib_dl_dlopen=yes
16027 else
16028 ac_cv_lib_dl_dlopen=no
16029 fi
16030 rm -f core conftest.err conftest.$ac_objext \
16031 conftest$ac_exeext conftest.$ac_ext
16032 LIBS=$ac_check_lib_save_LIBS
16033 fi
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16035 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16036 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16037 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16038 else
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16040 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16041 if ${ac_cv_lib_svld_dlopen+:} false; then :
16042 $as_echo_n "(cached) " >&6
16043 else
16044 ac_check_lib_save_LIBS=$LIBS
16045 LIBS="-lsvld $LIBS"
16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h. */
16048
16049 /* Override any GCC internal prototype to avoid an error.
16050 Use char because int might match the return type of a GCC
16051 builtin and then its argument prototype would still apply. */
16052 #ifdef __cplusplus
16053 extern "C"
16054 #endif
16055 char dlopen ();
16056 int
16057 main ()
16058 {
16059 return dlopen ();
16060 ;
16061 return 0;
16062 }
16063 _ACEOF
16064 if ac_fn_c_try_link "$LINENO"; then :
16065 ac_cv_lib_svld_dlopen=yes
16066 else
16067 ac_cv_lib_svld_dlopen=no
16068 fi
16069 rm -f core conftest.err conftest.$ac_objext \
16070 conftest$ac_exeext conftest.$ac_ext
16071 LIBS=$ac_check_lib_save_LIBS
16072 fi
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16074 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16075 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16076 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16077 else
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16079 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16080 if ${ac_cv_lib_dld_dld_link+:} false; then :
16081 $as_echo_n "(cached) " >&6
16082 else
16083 ac_check_lib_save_LIBS=$LIBS
16084 LIBS="-ldld $LIBS"
16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086 /* end confdefs.h. */
16087
16088 /* Override any GCC internal prototype to avoid an error.
16089 Use char because int might match the return type of a GCC
16090 builtin and then its argument prototype would still apply. */
16091 #ifdef __cplusplus
16092 extern "C"
16093 #endif
16094 char dld_link ();
16095 int
16096 main ()
16097 {
16098 return dld_link ();
16099 ;
16100 return 0;
16101 }
16102 _ACEOF
16103 if ac_fn_c_try_link "$LINENO"; then :
16104 ac_cv_lib_dld_dld_link=yes
16105 else
16106 ac_cv_lib_dld_dld_link=no
16107 fi
16108 rm -f core conftest.err conftest.$ac_objext \
16109 conftest$ac_exeext conftest.$ac_ext
16110 LIBS=$ac_check_lib_save_LIBS
16111 fi
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16113 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16114 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16115 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16116 fi
16117
16118
16119 fi
16120
16121
16122 fi
16123
16124
16125 fi
16126
16127
16128 fi
16129
16130
16131 fi
16132
16133 ;;
16134 esac
16135
16136 if test no = "$lt_cv_dlopen"; then
16137 enable_dlopen=no
16138 else
16139 enable_dlopen=yes
16140 fi
16141
16142 case $lt_cv_dlopen in
16143 dlopen)
16144 save_CPPFLAGS=$CPPFLAGS
16145 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16146
16147 save_LDFLAGS=$LDFLAGS
16148 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16149
16150 save_LIBS=$LIBS
16151 LIBS="$lt_cv_dlopen_libs $LIBS"
16152
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16154 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16155 if ${lt_cv_dlopen_self+:} false; then :
16156 $as_echo_n "(cached) " >&6
16157 else
16158 if test yes = "$cross_compiling"; then :
16159 lt_cv_dlopen_self=cross
16160 else
16161 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16162 lt_status=$lt_dlunknown
16163 cat > conftest.$ac_ext <<_LT_EOF
16164 #line $LINENO "configure"
16165 #include "confdefs.h"
16166
16167 #if HAVE_DLFCN_H
16168 #include <dlfcn.h>
16169 #endif
16170
16171 #include <stdio.h>
16172
16173 #ifdef RTLD_GLOBAL
16174 # define LT_DLGLOBAL RTLD_GLOBAL
16175 #else
16176 # ifdef DL_GLOBAL
16177 # define LT_DLGLOBAL DL_GLOBAL
16178 # else
16179 # define LT_DLGLOBAL 0
16180 # endif
16181 #endif
16182
16183 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16184 find out it does not work in some platform. */
16185 #ifndef LT_DLLAZY_OR_NOW
16186 # ifdef RTLD_LAZY
16187 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16188 # else
16189 # ifdef DL_LAZY
16190 # define LT_DLLAZY_OR_NOW DL_LAZY
16191 # else
16192 # ifdef RTLD_NOW
16193 # define LT_DLLAZY_OR_NOW RTLD_NOW
16194 # else
16195 # ifdef DL_NOW
16196 # define LT_DLLAZY_OR_NOW DL_NOW
16197 # else
16198 # define LT_DLLAZY_OR_NOW 0
16199 # endif
16200 # endif
16201 # endif
16202 # endif
16203 #endif
16204
16205 /* When -fvisibility=hidden is used, assume the code has been annotated
16206 correspondingly for the symbols needed. */
16207 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16208 int fnord () __attribute__((visibility("default")));
16209 #endif
16210
16211 int fnord () { return 42; }
16212 int main ()
16213 {
16214 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16215 int status = $lt_dlunknown;
16216
16217 if (self)
16218 {
16219 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16220 else
16221 {
16222 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16223 else puts (dlerror ());
16224 }
16225 /* dlclose (self); */
16226 }
16227 else
16228 puts (dlerror ());
16229
16230 return status;
16231 }
16232 _LT_EOF
16233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16234 (eval $ac_link) 2>&5
16235 ac_status=$?
16236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16237 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16238 (./conftest; exit; ) >&5 2>/dev/null
16239 lt_status=$?
16240 case x$lt_status in
16241 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16242 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16243 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16244 esac
16245 else :
16246 # compilation failed
16247 lt_cv_dlopen_self=no
16248 fi
16249 fi
16250 rm -fr conftest*
16251
16252
16253 fi
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16255 $as_echo "$lt_cv_dlopen_self" >&6; }
16256
16257 if test yes = "$lt_cv_dlopen_self"; then
16258 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16260 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16261 if ${lt_cv_dlopen_self_static+:} false; then :
16262 $as_echo_n "(cached) " >&6
16263 else
16264 if test yes = "$cross_compiling"; then :
16265 lt_cv_dlopen_self_static=cross
16266 else
16267 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16268 lt_status=$lt_dlunknown
16269 cat > conftest.$ac_ext <<_LT_EOF
16270 #line $LINENO "configure"
16271 #include "confdefs.h"
16272
16273 #if HAVE_DLFCN_H
16274 #include <dlfcn.h>
16275 #endif
16276
16277 #include <stdio.h>
16278
16279 #ifdef RTLD_GLOBAL
16280 # define LT_DLGLOBAL RTLD_GLOBAL
16281 #else
16282 # ifdef DL_GLOBAL
16283 # define LT_DLGLOBAL DL_GLOBAL
16284 # else
16285 # define LT_DLGLOBAL 0
16286 # endif
16287 #endif
16288
16289 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16290 find out it does not work in some platform. */
16291 #ifndef LT_DLLAZY_OR_NOW
16292 # ifdef RTLD_LAZY
16293 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16294 # else
16295 # ifdef DL_LAZY
16296 # define LT_DLLAZY_OR_NOW DL_LAZY
16297 # else
16298 # ifdef RTLD_NOW
16299 # define LT_DLLAZY_OR_NOW RTLD_NOW
16300 # else
16301 # ifdef DL_NOW
16302 # define LT_DLLAZY_OR_NOW DL_NOW
16303 # else
16304 # define LT_DLLAZY_OR_NOW 0
16305 # endif
16306 # endif
16307 # endif
16308 # endif
16309 #endif
16310
16311 /* When -fvisibility=hidden is used, assume the code has been annotated
16312 correspondingly for the symbols needed. */
16313 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16314 int fnord () __attribute__((visibility("default")));
16315 #endif
16316
16317 int fnord () { return 42; }
16318 int main ()
16319 {
16320 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16321 int status = $lt_dlunknown;
16322
16323 if (self)
16324 {
16325 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16326 else
16327 {
16328 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16329 else puts (dlerror ());
16330 }
16331 /* dlclose (self); */
16332 }
16333 else
16334 puts (dlerror ());
16335
16336 return status;
16337 }
16338 _LT_EOF
16339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16340 (eval $ac_link) 2>&5
16341 ac_status=$?
16342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16343 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16344 (./conftest; exit; ) >&5 2>/dev/null
16345 lt_status=$?
16346 case x$lt_status in
16347 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16348 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16349 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16350 esac
16351 else :
16352 # compilation failed
16353 lt_cv_dlopen_self_static=no
16354 fi
16355 fi
16356 rm -fr conftest*
16357
16358
16359 fi
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16361 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16362 fi
16363
16364 CPPFLAGS=$save_CPPFLAGS
16365 LDFLAGS=$save_LDFLAGS
16366 LIBS=$save_LIBS
16367 ;;
16368 esac
16369
16370 case $lt_cv_dlopen_self in
16371 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16372 *) enable_dlopen_self=unknown ;;
16373 esac
16374
16375 case $lt_cv_dlopen_self_static in
16376 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16377 *) enable_dlopen_self_static=unknown ;;
16378 esac
16379 fi
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397 striplib=
16398 old_striplib=
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16400 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16401 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16402 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16403 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16405 $as_echo "yes" >&6; }
16406 else
16407 # FIXME - insert some real tests, host_os isn't really good enough
16408 case $host_os in
16409 darwin*)
16410 if test -n "$STRIP"; then
16411 striplib="$STRIP -x"
16412 old_striplib="$STRIP -S"
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16414 $as_echo "yes" >&6; }
16415 else
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16417 $as_echo "no" >&6; }
16418 fi
16419 ;;
16420 *)
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16422 $as_echo "no" >&6; }
16423 ;;
16424 esac
16425 fi
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438 # Report what library types will actually be built
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16440 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16442 $as_echo "$can_build_shared" >&6; }
16443
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16445 $as_echo_n "checking whether to build shared libraries... " >&6; }
16446 test no = "$can_build_shared" && enable_shared=no
16447
16448 # On AIX, shared libraries and static libraries use the same namespace, and
16449 # are all built from PIC.
16450 case $host_os in
16451 aix3*)
16452 test yes = "$enable_shared" && enable_static=no
16453 if test -n "$RANLIB"; then
16454 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16455 postinstall_cmds='$RANLIB $lib'
16456 fi
16457 ;;
16458
16459 aix[4-9]*)
16460 if test ia64 != "$host_cpu"; then
16461 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16462 yes,aix,yes) ;; # shared object as lib.so file only
16463 yes,svr4,*) ;; # shared object as lib.so archive member only
16464 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16465 esac
16466 fi
16467 ;;
16468 esac
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16470 $as_echo "$enable_shared" >&6; }
16471
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16473 $as_echo_n "checking whether to build static libraries... " >&6; }
16474 # Make sure either enable_shared or enable_static is yes.
16475 test yes = "$enable_shared" || enable_static=yes
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16477 $as_echo "$enable_static" >&6; }
16478
16479
16480
16481
16482 fi
16483 ac_ext=c
16484 ac_cpp='$CPP $CPPFLAGS'
16485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16488
16489 CC=$lt_save_CC
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505 ac_config_commands="$ac_config_commands libtool"
16506
16507
16508
16509
16510 # Only expand once:
16511
16512
16513
16514
16515
16516 if test -n "$ac_tool_prefix"; then
16517 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16518 set dummy ${ac_tool_prefix}ar; ac_word=$2
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16520 $as_echo_n "checking for $ac_word... " >&6; }
16521 if ${ac_cv_prog_AR+:} false; then :
16522 $as_echo_n "(cached) " >&6
16523 else
16524 if test -n "$AR"; then
16525 ac_cv_prog_AR="$AR" # Let the user override the test.
16526 else
16527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16528 for as_dir in $PATH
16529 do
16530 IFS=$as_save_IFS
16531 test -z "$as_dir" && as_dir=.
16532 for ac_exec_ext in '' $ac_executable_extensions; do
16533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16534 ac_cv_prog_AR="${ac_tool_prefix}ar"
16535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16536 break 2
16537 fi
16538 done
16539 done
16540 IFS=$as_save_IFS
16541
16542 fi
16543 fi
16544 AR=$ac_cv_prog_AR
16545 if test -n "$AR"; then
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16547 $as_echo "$AR" >&6; }
16548 else
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550 $as_echo "no" >&6; }
16551 fi
16552
16553
16554 fi
16555 if test -z "$ac_cv_prog_AR"; then
16556 ac_ct_AR=$AR
16557 # Extract the first word of "ar", so it can be a program name with args.
16558 set dummy ar; ac_word=$2
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16560 $as_echo_n "checking for $ac_word... " >&6; }
16561 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16562 $as_echo_n "(cached) " >&6
16563 else
16564 if test -n "$ac_ct_AR"; then
16565 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16566 else
16567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16568 for as_dir in $PATH
16569 do
16570 IFS=$as_save_IFS
16571 test -z "$as_dir" && as_dir=.
16572 for ac_exec_ext in '' $ac_executable_extensions; do
16573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16574 ac_cv_prog_ac_ct_AR="ar"
16575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16576 break 2
16577 fi
16578 done
16579 done
16580 IFS=$as_save_IFS
16581
16582 fi
16583 fi
16584 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16585 if test -n "$ac_ct_AR"; then
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16587 $as_echo "$ac_ct_AR" >&6; }
16588 else
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16590 $as_echo "no" >&6; }
16591 fi
16592
16593 if test "x$ac_ct_AR" = x; then
16594 AR="ar"
16595 else
16596 case $cross_compiling:$ac_tool_warned in
16597 yes:)
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16600 ac_tool_warned=yes ;;
16601 esac
16602 AR=$ac_ct_AR
16603 fi
16604 else
16605 AR="$ac_cv_prog_AR"
16606 fi
16607
16608
16609
16610 if test "x$EMSCRIPTEN" = "x" -a "$host_os" != "pnacl"; then :
16611
16612
16613 oldcflags="$CFLAGS"
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
16615 $as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
16616 if ${ax_cv_check_cflags___mmmx+:} false; then :
16617 $as_echo_n "(cached) " >&6
16618 else
16619
16620 ax_check_save_flags=$CFLAGS
16621 CFLAGS="$CFLAGS -mmmx"
16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623 /* end confdefs.h. */
16624 #include <time.h>
16625 int
16626 main ()
16627 {
16628 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16629 ;
16630 return 0;
16631 }
16632 _ACEOF
16633 if ac_fn_c_try_link "$LINENO"; then :
16634 ax_cv_check_cflags___mmmx=yes
16635 else
16636 ax_cv_check_cflags___mmmx=no
16637 fi
16638 rm -f core conftest.err conftest.$ac_objext \
16639 conftest$ac_exeext conftest.$ac_ext
16640 CFLAGS=$ax_check_save_flags
16641 fi
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
16643 $as_echo "$ax_cv_check_cflags___mmmx" >&6; }
16644 if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
16645 CFLAGS="$CFLAGS -mmmx"
16646 else
16647 :
16648 fi
16649
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMX instructions set" >&5
16651 $as_echo_n "checking for MMX instructions set... " >&6; }
16652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653 /* end confdefs.h. */
16654
16655 #pragma GCC target("mmx")
16656 #include <mmintrin.h>
16657
16658 int
16659 main ()
16660 {
16661 __m64 x = _mm_setzero_si64();
16662 ;
16663 return 0;
16664 }
16665 _ACEOF
16666 if ac_fn_c_try_compile "$LINENO"; then :
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16668 $as_echo "yes" >&6; }
16669
16670 $as_echo "#define HAVE_MMINTRIN_H 1" >>confdefs.h
16671
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmmx" >&5
16673 $as_echo_n "checking whether C compiler accepts -mmmx... " >&6; }
16674 if ${ax_cv_check_cflags___mmmx+:} false; then :
16675 $as_echo_n "(cached) " >&6
16676 else
16677
16678 ax_check_save_flags=$CFLAGS
16679 CFLAGS="$CFLAGS -mmmx"
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681 /* end confdefs.h. */
16682 #include <time.h>
16683 int
16684 main ()
16685 {
16686 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16687 ;
16688 return 0;
16689 }
16690 _ACEOF
16691 if ac_fn_c_try_link "$LINENO"; then :
16692 ax_cv_check_cflags___mmmx=yes
16693 else
16694 ax_cv_check_cflags___mmmx=no
16695 fi
16696 rm -f core conftest.err conftest.$ac_objext \
16697 conftest$ac_exeext conftest.$ac_ext
16698 CFLAGS=$ax_check_save_flags
16699 fi
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mmmx" >&5
16701 $as_echo "$ax_cv_check_cflags___mmmx" >&6; }
16702 if test "x$ax_cv_check_cflags___mmmx" = xyes; then :
16703 CFLAGS_MMX="-mmmx"
16704 else
16705 :
16706 fi
16707
16708 else
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16710 $as_echo "no" >&6; }
16711 fi
16712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713 CFLAGS="$oldcflags"
16714
16715 oldcflags="$CFLAGS"
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
16717 $as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
16718 if ${ax_cv_check_cflags___msse2+:} false; then :
16719 $as_echo_n "(cached) " >&6
16720 else
16721
16722 ax_check_save_flags=$CFLAGS
16723 CFLAGS="$CFLAGS -msse2"
16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16726 #include <time.h>
16727 int
16728 main ()
16729 {
16730 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16731 ;
16732 return 0;
16733 }
16734 _ACEOF
16735 if ac_fn_c_try_link "$LINENO"; then :
16736 ax_cv_check_cflags___msse2=yes
16737 else
16738 ax_cv_check_cflags___msse2=no
16739 fi
16740 rm -f core conftest.err conftest.$ac_objext \
16741 conftest$ac_exeext conftest.$ac_ext
16742 CFLAGS=$ax_check_save_flags
16743 fi
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
16745 $as_echo "$ax_cv_check_cflags___msse2" >&6; }
16746 if test "x$ax_cv_check_cflags___msse2" = xyes; then :
16747 CFLAGS="$CFLAGS -msse2"
16748 else
16749 :
16750 fi
16751
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE2 instructions set" >&5
16753 $as_echo_n "checking for SSE2 instructions set... " >&6; }
16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16756
16757 #pragma GCC target("sse2")
16758 #ifndef __SSE2__
16759 # define __SSE2__
16760 #endif
16761 #include <emmintrin.h>
16762
16763 int
16764 main ()
16765 {
16766 __m128d x = _mm_setzero_pd();
16767 __m128i z = _mm_srli_epi64(_mm_setzero_si128(), 26);
16768 ;
16769 return 0;
16770 }
16771 _ACEOF
16772 if ac_fn_c_try_compile "$LINENO"; then :
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16774 $as_echo "yes" >&6; }
16775
16776 $as_echo "#define HAVE_EMMINTRIN_H 1" >>confdefs.h
16777
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5
16779 $as_echo_n "checking whether C compiler accepts -msse2... " >&6; }
16780 if ${ax_cv_check_cflags___msse2+:} false; then :
16781 $as_echo_n "(cached) " >&6
16782 else
16783
16784 ax_check_save_flags=$CFLAGS
16785 CFLAGS="$CFLAGS -msse2"
16786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16787 /* end confdefs.h. */
16788 #include <time.h>
16789 int
16790 main ()
16791 {
16792 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16793 ;
16794 return 0;
16795 }
16796 _ACEOF
16797 if ac_fn_c_try_link "$LINENO"; then :
16798 ax_cv_check_cflags___msse2=yes
16799 else
16800 ax_cv_check_cflags___msse2=no
16801 fi
16802 rm -f core conftest.err conftest.$ac_objext \
16803 conftest$ac_exeext conftest.$ac_ext
16804 CFLAGS=$ax_check_save_flags
16805 fi
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse2" >&5
16807 $as_echo "$ax_cv_check_cflags___msse2" >&6; }
16808 if test "x$ax_cv_check_cflags___msse2" = xyes; then :
16809 CFLAGS_SSE2="-msse2"
16810 else
16811 :
16812 fi
16813
16814 else
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16816 $as_echo "no" >&6; }
16817 fi
16818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819 CFLAGS="$oldcflags"
16820
16821 oldcflags="$CFLAGS"
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
16823 $as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
16824 if ${ax_cv_check_cflags___msse3+:} false; then :
16825 $as_echo_n "(cached) " >&6
16826 else
16827
16828 ax_check_save_flags=$CFLAGS
16829 CFLAGS="$CFLAGS -msse3"
16830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16831 /* end confdefs.h. */
16832 #include <time.h>
16833 int
16834 main ()
16835 {
16836 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16837 ;
16838 return 0;
16839 }
16840 _ACEOF
16841 if ac_fn_c_try_link "$LINENO"; then :
16842 ax_cv_check_cflags___msse3=yes
16843 else
16844 ax_cv_check_cflags___msse3=no
16845 fi
16846 rm -f core conftest.err conftest.$ac_objext \
16847 conftest$ac_exeext conftest.$ac_ext
16848 CFLAGS=$ax_check_save_flags
16849 fi
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
16851 $as_echo "$ax_cv_check_cflags___msse3" >&6; }
16852 if test "x$ax_cv_check_cflags___msse3" = xyes; then :
16853 CFLAGS="$CFLAGS -msse3"
16854 else
16855 :
16856 fi
16857
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE3 instructions set" >&5
16859 $as_echo_n "checking for SSE3 instructions set... " >&6; }
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16862
16863 #pragma GCC target("sse3")
16864 #include <pmmintrin.h>
16865
16866 int
16867 main ()
16868 {
16869 __m128 x = _mm_addsub_ps(_mm_cvtpd_ps(_mm_setzero_pd()),
16870 _mm_cvtpd_ps(_mm_setzero_pd()));
16871 ;
16872 return 0;
16873 }
16874 _ACEOF
16875 if ac_fn_c_try_compile "$LINENO"; then :
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16877 $as_echo "yes" >&6; }
16878
16879 $as_echo "#define HAVE_PMMINTRIN_H 1" >>confdefs.h
16880
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse3" >&5
16882 $as_echo_n "checking whether C compiler accepts -msse3... " >&6; }
16883 if ${ax_cv_check_cflags___msse3+:} false; then :
16884 $as_echo_n "(cached) " >&6
16885 else
16886
16887 ax_check_save_flags=$CFLAGS
16888 CFLAGS="$CFLAGS -msse3"
16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890 /* end confdefs.h. */
16891 #include <time.h>
16892 int
16893 main ()
16894 {
16895 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16896 ;
16897 return 0;
16898 }
16899 _ACEOF
16900 if ac_fn_c_try_link "$LINENO"; then :
16901 ax_cv_check_cflags___msse3=yes
16902 else
16903 ax_cv_check_cflags___msse3=no
16904 fi
16905 rm -f core conftest.err conftest.$ac_objext \
16906 conftest$ac_exeext conftest.$ac_ext
16907 CFLAGS=$ax_check_save_flags
16908 fi
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse3" >&5
16910 $as_echo "$ax_cv_check_cflags___msse3" >&6; }
16911 if test "x$ax_cv_check_cflags___msse3" = xyes; then :
16912 CFLAGS_SSE3="-msse3"
16913 else
16914 :
16915 fi
16916
16917 else
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16919 $as_echo "no" >&6; }
16920 fi
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922 CFLAGS="$oldcflags"
16923
16924 oldcflags="$CFLAGS"
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
16926 $as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
16927 if ${ax_cv_check_cflags___mssse3+:} false; then :
16928 $as_echo_n "(cached) " >&6
16929 else
16930
16931 ax_check_save_flags=$CFLAGS
16932 CFLAGS="$CFLAGS -mssse3"
16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934 /* end confdefs.h. */
16935 #include <time.h>
16936 int
16937 main ()
16938 {
16939 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16940 ;
16941 return 0;
16942 }
16943 _ACEOF
16944 if ac_fn_c_try_link "$LINENO"; then :
16945 ax_cv_check_cflags___mssse3=yes
16946 else
16947 ax_cv_check_cflags___mssse3=no
16948 fi
16949 rm -f core conftest.err conftest.$ac_objext \
16950 conftest$ac_exeext conftest.$ac_ext
16951 CFLAGS=$ax_check_save_flags
16952 fi
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
16954 $as_echo "$ax_cv_check_cflags___mssse3" >&6; }
16955 if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
16956 CFLAGS="$CFLAGS -mssse3"
16957 else
16958 :
16959 fi
16960
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSSE3 instructions set" >&5
16962 $as_echo_n "checking for SSSE3 instructions set... " >&6; }
16963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964 /* end confdefs.h. */
16965
16966 #pragma GCC target("ssse3")
16967 #include <tmmintrin.h>
16968
16969 int
16970 main ()
16971 {
16972 __m64 x = _mm_abs_pi32(_m_from_int(0));
16973 ;
16974 return 0;
16975 }
16976 _ACEOF
16977 if ac_fn_c_try_compile "$LINENO"; then :
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16979 $as_echo "yes" >&6; }
16980
16981 $as_echo "#define HAVE_TMMINTRIN_H 1" >>confdefs.h
16982
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mssse3" >&5
16984 $as_echo_n "checking whether C compiler accepts -mssse3... " >&6; }
16985 if ${ax_cv_check_cflags___mssse3+:} false; then :
16986 $as_echo_n "(cached) " >&6
16987 else
16988
16989 ax_check_save_flags=$CFLAGS
16990 CFLAGS="$CFLAGS -mssse3"
16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992 /* end confdefs.h. */
16993 #include <time.h>
16994 int
16995 main ()
16996 {
16997 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
16998 ;
16999 return 0;
17000 }
17001 _ACEOF
17002 if ac_fn_c_try_link "$LINENO"; then :
17003 ax_cv_check_cflags___mssse3=yes
17004 else
17005 ax_cv_check_cflags___mssse3=no
17006 fi
17007 rm -f core conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17009 CFLAGS=$ax_check_save_flags
17010 fi
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mssse3" >&5
17012 $as_echo "$ax_cv_check_cflags___mssse3" >&6; }
17013 if test "x$ax_cv_check_cflags___mssse3" = xyes; then :
17014 CFLAGS_SSSE3="-mssse3"
17015 else
17016 :
17017 fi
17018
17019 else
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17021 $as_echo "no" >&6; }
17022 fi
17023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17024 CFLAGS="$oldcflags"
17025
17026 oldcflags="$CFLAGS"
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
17028 $as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
17029 if ${ax_cv_check_cflags___msse4_1+:} false; then :
17030 $as_echo_n "(cached) " >&6
17031 else
17032
17033 ax_check_save_flags=$CFLAGS
17034 CFLAGS="$CFLAGS -msse4.1"
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17037 #include <time.h>
17038 int
17039 main ()
17040 {
17041 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17042 ;
17043 return 0;
17044 }
17045 _ACEOF
17046 if ac_fn_c_try_link "$LINENO"; then :
17047 ax_cv_check_cflags___msse4_1=yes
17048 else
17049 ax_cv_check_cflags___msse4_1=no
17050 fi
17051 rm -f core conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext conftest.$ac_ext
17053 CFLAGS=$ax_check_save_flags
17054 fi
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
17056 $as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
17057 if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
17058 CFLAGS="$CFLAGS -msse4.1"
17059 else
17060 :
17061 fi
17062
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.1 instructions set" >&5
17064 $as_echo_n "checking for SSE4.1 instructions set... " >&6; }
17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066 /* end confdefs.h. */
17067
17068 #pragma GCC target("sse4.1")
17069 #include <smmintrin.h>
17070
17071 int
17072 main ()
17073 {
17074 __m128i x = _mm_minpos_epu16(_mm_setzero_si128());
17075 ;
17076 return 0;
17077 }
17078 _ACEOF
17079 if ac_fn_c_try_compile "$LINENO"; then :
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17081 $as_echo "yes" >&6; }
17082
17083 $as_echo "#define HAVE_SMMINTRIN_H 1" >>confdefs.h
17084
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
17086 $as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
17087 if ${ax_cv_check_cflags___msse4_1+:} false; then :
17088 $as_echo_n "(cached) " >&6
17089 else
17090
17091 ax_check_save_flags=$CFLAGS
17092 CFLAGS="$CFLAGS -msse4.1"
17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17095 #include <time.h>
17096 int
17097 main ()
17098 {
17099 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17100 ;
17101 return 0;
17102 }
17103 _ACEOF
17104 if ac_fn_c_try_link "$LINENO"; then :
17105 ax_cv_check_cflags___msse4_1=yes
17106 else
17107 ax_cv_check_cflags___msse4_1=no
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17111 CFLAGS=$ax_check_save_flags
17112 fi
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
17114 $as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
17115 if test "x$ax_cv_check_cflags___msse4_1" = xyes; then :
17116 CFLAGS_SSE41="-msse4.1"
17117 else
17118 :
17119 fi
17120
17121 else
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17123 $as_echo "no" >&6; }
17124 fi
17125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126 CFLAGS="$oldcflags"
17127
17128 oldcflags="$CFLAGS"
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
17130 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
17131 if ${ax_cv_check_cflags___mavx+:} false; then :
17132 $as_echo_n "(cached) " >&6
17133 else
17134
17135 ax_check_save_flags=$CFLAGS
17136 CFLAGS="$CFLAGS -mavx"
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h. */
17139 #include <time.h>
17140 int
17141 main ()
17142 {
17143 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17144 ;
17145 return 0;
17146 }
17147 _ACEOF
17148 if ac_fn_c_try_link "$LINENO"; then :
17149 ax_cv_check_cflags___mavx=yes
17150 else
17151 ax_cv_check_cflags___mavx=no
17152 fi
17153 rm -f core conftest.err conftest.$ac_objext \
17154 conftest$ac_exeext conftest.$ac_ext
17155 CFLAGS=$ax_check_save_flags
17156 fi
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
17158 $as_echo "$ax_cv_check_cflags___mavx" >&6; }
17159 if test "x$ax_cv_check_cflags___mavx" = xyes; then :
17160 CFLAGS="$CFLAGS -mavx"
17161 else
17162 :
17163 fi
17164
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX instructions set" >&5
17166 $as_echo_n "checking for AVX instructions set... " >&6; }
17167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168 /* end confdefs.h. */
17169
17170 #ifdef __native_client__
17171 # error NativeClient detected - Avoiding AVX opcodes
17172 #endif
17173 #pragma GCC target("avx")
17174 #include <immintrin.h>
17175
17176 int
17177 main ()
17178 {
17179 _mm256_zeroall();
17180 ;
17181 return 0;
17182 }
17183 _ACEOF
17184 if ac_fn_c_try_compile "$LINENO"; then :
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17186 $as_echo "yes" >&6; }
17187
17188 $as_echo "#define HAVE_AVXINTRIN_H 1" >>confdefs.h
17189
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
17191 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
17192 if ${ax_cv_check_cflags___mavx+:} false; then :
17193 $as_echo_n "(cached) " >&6
17194 else
17195
17196 ax_check_save_flags=$CFLAGS
17197 CFLAGS="$CFLAGS -mavx"
17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199 /* end confdefs.h. */
17200 #include <time.h>
17201 int
17202 main ()
17203 {
17204 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17205 ;
17206 return 0;
17207 }
17208 _ACEOF
17209 if ac_fn_c_try_link "$LINENO"; then :
17210 ax_cv_check_cflags___mavx=yes
17211 else
17212 ax_cv_check_cflags___mavx=no
17213 fi
17214 rm -f core conftest.err conftest.$ac_objext \
17215 conftest$ac_exeext conftest.$ac_ext
17216 CFLAGS=$ax_check_save_flags
17217 fi
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx" >&5
17219 $as_echo "$ax_cv_check_cflags___mavx" >&6; }
17220 if test "x$ax_cv_check_cflags___mavx" = xyes; then :
17221 CFLAGS_AVX="-mavx"
17222 else
17223 :
17224 fi
17225
17226 else
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17228 $as_echo "no" >&6; }
17229 fi
17230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17231 CFLAGS="$oldcflags"
17232
17233 oldcflags="$CFLAGS"
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
17235 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
17236 if ${ax_cv_check_cflags___mavx2+:} false; then :
17237 $as_echo_n "(cached) " >&6
17238 else
17239
17240 ax_check_save_flags=$CFLAGS
17241 CFLAGS="$CFLAGS -mavx2"
17242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243 /* end confdefs.h. */
17244 #include <time.h>
17245 int
17246 main ()
17247 {
17248 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17249 ;
17250 return 0;
17251 }
17252 _ACEOF
17253 if ac_fn_c_try_link "$LINENO"; then :
17254 ax_cv_check_cflags___mavx2=yes
17255 else
17256 ax_cv_check_cflags___mavx2=no
17257 fi
17258 rm -f core conftest.err conftest.$ac_objext \
17259 conftest$ac_exeext conftest.$ac_ext
17260 CFLAGS=$ax_check_save_flags
17261 fi
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
17263 $as_echo "$ax_cv_check_cflags___mavx2" >&6; }
17264 if test "x$ax_cv_check_cflags___mavx2" = xyes; then :
17265 CFLAGS="$CFLAGS -mavx2"
17266 else
17267 :
17268 fi
17269
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX2 instructions set" >&5
17271 $as_echo_n "checking for AVX2 instructions set... " >&6; }
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h. */
17274
17275 #ifdef __native_client__
17276 # error NativeClient detected - Avoiding AVX2 opcodes
17277 #endif
17278 #pragma GCC target("avx2")
17279 #include <immintrin.h>
17280
17281 int
17282 main ()
17283 {
17284
17285 __m256 x = _mm256_set1_ps(3.14);
17286 __m256 y = _mm256_permutevar8x32_ps(x, _mm256_set1_epi32(42));
17287 return _mm256_movemask_ps(_mm256_cmp_ps(x, y, _CMP_NEQ_OQ));
17288
17289 ;
17290 return 0;
17291 }
17292 _ACEOF
17293 if ac_fn_c_try_compile "$LINENO"; then :
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17295 $as_echo "yes" >&6; }
17296
17297 $as_echo "#define HAVE_AVX2INTRIN_H 1" >>confdefs.h
17298
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
17300 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
17301 if ${ax_cv_check_cflags___mavx2+:} false; then :
17302 $as_echo_n "(cached) " >&6
17303 else
17304
17305 ax_check_save_flags=$CFLAGS
17306 CFLAGS="$CFLAGS -mavx2"
17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h. */
17309 #include <time.h>
17310 int
17311 main ()
17312 {
17313 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17314 ;
17315 return 0;
17316 }
17317 _ACEOF
17318 if ac_fn_c_try_link "$LINENO"; then :
17319 ax_cv_check_cflags___mavx2=yes
17320 else
17321 ax_cv_check_cflags___mavx2=no
17322 fi
17323 rm -f core conftest.err conftest.$ac_objext \
17324 conftest$ac_exeext conftest.$ac_ext
17325 CFLAGS=$ax_check_save_flags
17326 fi
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx2" >&5
17328 $as_echo "$ax_cv_check_cflags___mavx2" >&6; }
17329 if test "x$ax_cv_check_cflags___mavx2" = xyes; then :
17330 CFLAGS_AVX2="-mavx2"
17331 else
17332 :
17333 fi
17334
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _mm256_broadcastsi128_si256 is correctly defined" >&5
17336 $as_echo_n "checking if _mm256_broadcastsi128_si256 is correctly defined... " >&6; }
17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338 /* end confdefs.h. */
17339
17340 #ifdef __native_client__
17341 # error NativeClient detected - Avoiding AVX2 opcodes
17342 #endif
17343 #pragma GCC target("avx2")
17344 #include <immintrin.h>
17345
17346 int
17347 main ()
17348 {
17349 __m256i y = _mm256_broadcastsi128_si256(_mm_setzero_si128());
17350 ;
17351 return 0;
17352 }
17353 _ACEOF
17354 if ac_fn_c_try_compile "$LINENO"; then :
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17356 $as_echo "yes" >&6; }
17357 else
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17359 $as_echo "no" >&6; }
17360
17361 $as_echo "#define _mm256_broadcastsi128_si256 _mm_broadcastsi128_si256" >>confdefs.h
17362
17363 fi
17364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17365
17366 else
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368 $as_echo "no" >&6; }
17369 fi
17370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17371 CFLAGS="$oldcflags"
17372
17373 oldcflags="$CFLAGS"
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
17375 $as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; }
17376 if ${ax_cv_check_cflags___mavx512f+:} false; then :
17377 $as_echo_n "(cached) " >&6
17378 else
17379
17380 ax_check_save_flags=$CFLAGS
17381 CFLAGS="$CFLAGS -mavx512f"
17382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383 /* end confdefs.h. */
17384 #include <time.h>
17385 int
17386 main ()
17387 {
17388 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17389 ;
17390 return 0;
17391 }
17392 _ACEOF
17393 if ac_fn_c_try_link "$LINENO"; then :
17394 ax_cv_check_cflags___mavx512f=yes
17395 else
17396 ax_cv_check_cflags___mavx512f=no
17397 fi
17398 rm -f core conftest.err conftest.$ac_objext \
17399 conftest$ac_exeext conftest.$ac_ext
17400 CFLAGS=$ax_check_save_flags
17401 fi
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx512f" >&5
17403 $as_echo "$ax_cv_check_cflags___mavx512f" >&6; }
17404 if test "x$ax_cv_check_cflags___mavx512f" = xyes; then :
17405 CFLAGS="$CFLAGS -mavx512f"
17406 else
17407 :
17408 fi
17409
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512F instructions set" >&5
17411 $as_echo_n "checking for AVX512F instructions set... " >&6; }
17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17414
17415 #ifdef __native_client__
17416 # error NativeClient detected - Avoiding AVX512F opcodes
17417 #endif
17418 #pragma GCC target("avx512f")
17419 #include <immintrin.h>
17420
17421 int
17422 main ()
17423 {
17424
17425 __m512i x = _mm512_setzero_epi32();
17426 __m512i y = _mm512_permutexvar_epi64(_mm512_setr_epi64(0, 1, 4, 5, 2, 3, 6, 7), x);
17427
17428 ;
17429 return 0;
17430 }
17431 _ACEOF
17432 if ac_fn_c_try_compile "$LINENO"; then :
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17434 $as_echo "yes" >&6; }
17435
17436 $as_echo "#define HAVE_AVX512FINTRIN_H 1" >>confdefs.h
17437
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
17439 $as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; }
17440 if ${ax_cv_check_cflags___mavx512f+:} false; then :
17441 $as_echo_n "(cached) " >&6
17442 else
17443
17444 ax_check_save_flags=$CFLAGS
17445 CFLAGS="$CFLAGS -mavx512f"
17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447 /* end confdefs.h. */
17448 #include <time.h>
17449 int
17450 main ()
17451 {
17452 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17453 ;
17454 return 0;
17455 }
17456 _ACEOF
17457 if ac_fn_c_try_link "$LINENO"; then :
17458 ax_cv_check_cflags___mavx512f=yes
17459 else
17460 ax_cv_check_cflags___mavx512f=no
17461 fi
17462 rm -f core conftest.err conftest.$ac_objext \
17463 conftest$ac_exeext conftest.$ac_ext
17464 CFLAGS=$ax_check_save_flags
17465 fi
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mavx512f" >&5
17467 $as_echo "$ax_cv_check_cflags___mavx512f" >&6; }
17468 if test "x$ax_cv_check_cflags___mavx512f" = xyes; then :
17469 CFLAGS_AVX512F="-mavx512f"
17470 else
17471 :
17472 fi
17473
17474 else
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17476 $as_echo "no" >&6; }
17477 fi
17478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479 CFLAGS="$oldcflags"
17480
17481 oldcflags="$CFLAGS"
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
17483 $as_echo_n "checking whether C compiler accepts -maes... " >&6; }
17484 if ${ax_cv_check_cflags___maes+:} false; then :
17485 $as_echo_n "(cached) " >&6
17486 else
17487
17488 ax_check_save_flags=$CFLAGS
17489 CFLAGS="$CFLAGS -maes"
17490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491 /* end confdefs.h. */
17492 #include <time.h>
17493 int
17494 main ()
17495 {
17496 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17497 ;
17498 return 0;
17499 }
17500 _ACEOF
17501 if ac_fn_c_try_link "$LINENO"; then :
17502 ax_cv_check_cflags___maes=yes
17503 else
17504 ax_cv_check_cflags___maes=no
17505 fi
17506 rm -f core conftest.err conftest.$ac_objext \
17507 conftest$ac_exeext conftest.$ac_ext
17508 CFLAGS=$ax_check_save_flags
17509 fi
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
17511 $as_echo "$ax_cv_check_cflags___maes" >&6; }
17512 if test "x$ax_cv_check_cflags___maes" = xyes; then :
17513 CFLAGS="$CFLAGS -maes"
17514 else
17515 :
17516 fi
17517
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
17519 $as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
17520 if ${ax_cv_check_cflags___mpclmul+:} false; then :
17521 $as_echo_n "(cached) " >&6
17522 else
17523
17524 ax_check_save_flags=$CFLAGS
17525 CFLAGS="$CFLAGS -mpclmul"
17526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527 /* end confdefs.h. */
17528 #include <time.h>
17529 int
17530 main ()
17531 {
17532 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17533 ;
17534 return 0;
17535 }
17536 _ACEOF
17537 if ac_fn_c_try_link "$LINENO"; then :
17538 ax_cv_check_cflags___mpclmul=yes
17539 else
17540 ax_cv_check_cflags___mpclmul=no
17541 fi
17542 rm -f core conftest.err conftest.$ac_objext \
17543 conftest$ac_exeext conftest.$ac_ext
17544 CFLAGS=$ax_check_save_flags
17545 fi
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
17547 $as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
17548 if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
17549 CFLAGS="$CFLAGS -mpclmul"
17550 else
17551 :
17552 fi
17553
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AESNI instructions set and PCLMULQDQ" >&5
17555 $as_echo_n "checking for AESNI instructions set and PCLMULQDQ... " >&6; }
17556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17557 /* end confdefs.h. */
17558
17559 #ifdef __native_client__
17560 # error NativeClient detected - Avoiding AESNI opcodes
17561 #endif
17562 #pragma GCC target("aes")
17563 #pragma GCC target("pclmul")
17564 #include <wmmintrin.h>
17565
17566 int
17567 main ()
17568 {
17569 __m128i x = _mm_aesimc_si128(_mm_setzero_si128());
17570 __m128i y = _mm_clmulepi64_si128(_mm_setzero_si128(), _mm_setzero_si128(), 0);
17571 ;
17572 return 0;
17573 }
17574 _ACEOF
17575 if ac_fn_c_try_compile "$LINENO"; then :
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17577 $as_echo "yes" >&6; }
17578
17579 $as_echo "#define HAVE_WMMINTRIN_H 1" >>confdefs.h
17580
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maes" >&5
17582 $as_echo_n "checking whether C compiler accepts -maes... " >&6; }
17583 if ${ax_cv_check_cflags___maes+:} false; then :
17584 $as_echo_n "(cached) " >&6
17585 else
17586
17587 ax_check_save_flags=$CFLAGS
17588 CFLAGS="$CFLAGS -maes"
17589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590 /* end confdefs.h. */
17591 #include <time.h>
17592 int
17593 main ()
17594 {
17595 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17596 ;
17597 return 0;
17598 }
17599 _ACEOF
17600 if ac_fn_c_try_link "$LINENO"; then :
17601 ax_cv_check_cflags___maes=yes
17602 else
17603 ax_cv_check_cflags___maes=no
17604 fi
17605 rm -f core conftest.err conftest.$ac_objext \
17606 conftest$ac_exeext conftest.$ac_ext
17607 CFLAGS=$ax_check_save_flags
17608 fi
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maes" >&5
17610 $as_echo "$ax_cv_check_cflags___maes" >&6; }
17611 if test "x$ax_cv_check_cflags___maes" = xyes; then :
17612 CFLAGS_AESNI="-maes"
17613 else
17614 :
17615 fi
17616
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpclmul" >&5
17618 $as_echo_n "checking whether C compiler accepts -mpclmul... " >&6; }
17619 if ${ax_cv_check_cflags___mpclmul+:} false; then :
17620 $as_echo_n "(cached) " >&6
17621 else
17622
17623 ax_check_save_flags=$CFLAGS
17624 CFLAGS="$CFLAGS -mpclmul"
17625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17627 #include <time.h>
17628 int
17629 main ()
17630 {
17631 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17632 ;
17633 return 0;
17634 }
17635 _ACEOF
17636 if ac_fn_c_try_link "$LINENO"; then :
17637 ax_cv_check_cflags___mpclmul=yes
17638 else
17639 ax_cv_check_cflags___mpclmul=no
17640 fi
17641 rm -f core conftest.err conftest.$ac_objext \
17642 conftest$ac_exeext conftest.$ac_ext
17643 CFLAGS=$ax_check_save_flags
17644 fi
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mpclmul" >&5
17646 $as_echo "$ax_cv_check_cflags___mpclmul" >&6; }
17647 if test "x$ax_cv_check_cflags___mpclmul" = xyes; then :
17648 CFLAGS_PCLMUL="-mpclmul"
17649 else
17650 :
17651 fi
17652
17653
17654 else
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17656 $as_echo "no" >&6; }
17657 fi
17658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17659 CFLAGS="$oldcflags"
17660
17661 oldcflags="$CFLAGS"
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mrdrnd" >&5
17663 $as_echo_n "checking whether C compiler accepts -mrdrnd... " >&6; }
17664 if ${ax_cv_check_cflags___mrdrnd+:} false; then :
17665 $as_echo_n "(cached) " >&6
17666 else
17667
17668 ax_check_save_flags=$CFLAGS
17669 CFLAGS="$CFLAGS -mrdrnd"
17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671 /* end confdefs.h. */
17672 #include <time.h>
17673 int
17674 main ()
17675 {
17676 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17677 ;
17678 return 0;
17679 }
17680 _ACEOF
17681 if ac_fn_c_try_link "$LINENO"; then :
17682 ax_cv_check_cflags___mrdrnd=yes
17683 else
17684 ax_cv_check_cflags___mrdrnd=no
17685 fi
17686 rm -f core conftest.err conftest.$ac_objext \
17687 conftest$ac_exeext conftest.$ac_ext
17688 CFLAGS=$ax_check_save_flags
17689 fi
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mrdrnd" >&5
17691 $as_echo "$ax_cv_check_cflags___mrdrnd" >&6; }
17692 if test "x$ax_cv_check_cflags___mrdrnd" = xyes; then :
17693 CFLAGS="$CFLAGS -mrdrnd"
17694 else
17695 :
17696 fi
17697
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RDRAND" >&5
17699 $as_echo_n "checking for RDRAND... " >&6; }
17700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17701 /* end confdefs.h. */
17702
17703 #ifdef __native_client__
17704 # error NativeClient detected - Avoiding RDRAND opcodes
17705 #endif
17706 #pragma GCC target("rdrnd")
17707 #include <immintrin.h>
17708
17709 int
17710 main ()
17711 {
17712 unsigned long long x; _rdrand64_step(&x);
17713 ;
17714 return 0;
17715 }
17716 _ACEOF
17717 if ac_fn_c_try_compile "$LINENO"; then :
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17719 $as_echo "yes" >&6; }
17720
17721 $as_echo "#define HAVE_RDRAND 1" >>confdefs.h
17722
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mrdrnd" >&5
17724 $as_echo_n "checking whether C compiler accepts -mrdrnd... " >&6; }
17725 if ${ax_cv_check_cflags___mrdrnd+:} false; then :
17726 $as_echo_n "(cached) " >&6
17727 else
17728
17729 ax_check_save_flags=$CFLAGS
17730 CFLAGS="$CFLAGS -mrdrnd"
17731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732 /* end confdefs.h. */
17733 #include <time.h>
17734 int
17735 main ()
17736 {
17737 time_t x; int fodder = 0; if (fodder > -1000 && time(&x)) return (int) x
17738 ;
17739 return 0;
17740 }
17741 _ACEOF
17742 if ac_fn_c_try_link "$LINENO"; then :
17743 ax_cv_check_cflags___mrdrnd=yes
17744 else
17745 ax_cv_check_cflags___mrdrnd=no
17746 fi
17747 rm -f core conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17749 CFLAGS=$ax_check_save_flags
17750 fi
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mrdrnd" >&5
17752 $as_echo "$ax_cv_check_cflags___mrdrnd" >&6; }
17753 if test "x$ax_cv_check_cflags___mrdrnd" = xyes; then :
17754 CFLAGS_RDRAND="-mrdrnd"
17755 else
17756 :
17757 fi
17758
17759
17760 else
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17762 $as_echo "no" >&6; }
17763 fi
17764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765 CFLAGS="$oldcflags"
17766
17767
17768 fi
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782 for ac_header in sys/mman.h intrin.h
17783 do :
17784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17785 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17786 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17787 cat >>confdefs.h <<_ACEOF
17788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17789 _ACEOF
17790
17791 fi
17792
17793 done
17794
17795
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _xgetbv() is available" >&5
17797 $as_echo_n "checking if _xgetbv() is available... " >&6; }
17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17800 #include <intrin.h>
17801 int
17802 main ()
17803 {
17804 (void) _xgetbv(0)
17805 ;
17806 return 0;
17807 }
17808 _ACEOF
17809 if ac_fn_c_try_link "$LINENO"; then :
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17811 $as_echo "yes" >&6; }
17812
17813 $as_echo "#define HAVE__XGETBV 1" >>confdefs.h
17814
17815 else
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17817 $as_echo "no" >&6; }
17818 fi
17819 rm -f core conftest.err conftest.$ac_objext \
17820 conftest$ac_exeext conftest.$ac_ext
17821
17822
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17824 $as_echo_n "checking for inline... " >&6; }
17825 if ${ac_cv_c_inline+:} false; then :
17826 $as_echo_n "(cached) " >&6
17827 else
17828 ac_cv_c_inline=no
17829 for ac_kw in inline __inline__ __inline; do
17830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17831 /* end confdefs.h. */
17832 #ifndef __cplusplus
17833 typedef int foo_t;
17834 static $ac_kw foo_t static_foo () {return 0; }
17835 $ac_kw foo_t foo () {return 0; }
17836 #endif
17837
17838 _ACEOF
17839 if ac_fn_c_try_compile "$LINENO"; then :
17840 ac_cv_c_inline=$ac_kw
17841 fi
17842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17843 test "$ac_cv_c_inline" != no && break
17844 done
17845
17846 fi
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17848 $as_echo "$ac_cv_c_inline" >&6; }
17849
17850 case $ac_cv_c_inline in
17851 inline | yes) ;;
17852 *)
17853 case $ac_cv_c_inline in
17854 no) ac_val=;;
17855 *) ac_val=$ac_cv_c_inline;;
17856 esac
17857 cat >>confdefs.h <<_ACEOF
17858 #ifndef __cplusplus
17859 #define inline $ac_val
17860 #endif
17861 _ACEOF
17862 ;;
17863 esac
17864
17865 case $host_cpu in #(
17866 i?86|amd64|x86_64) :
17867 ac_cv_c_bigendian=no
17868 ;; #(
17869 *) :
17870 ;;
17871 esac
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17873 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17874 if ${ac_cv_c_bigendian+:} false; then :
17875 $as_echo_n "(cached) " >&6
17876 else
17877 ac_cv_c_bigendian=unknown
17878 # See if we're dealing with a universal compiler.
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h. */
17881 #ifndef __APPLE_CC__
17882 not a universal capable compiler
17883 #endif
17884 typedef int dummy;
17885
17886 _ACEOF
17887 if ac_fn_c_try_compile "$LINENO"; then :
17888
17889 # Check for potential -arch flags. It is not universal unless
17890 # there are at least two -arch flags with different values.
17891 ac_arch=
17892 ac_prev=
17893 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17894 if test -n "$ac_prev"; then
17895 case $ac_word in
17896 i?86 | x86_64 | ppc | ppc64)
17897 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17898 ac_arch=$ac_word
17899 else
17900 ac_cv_c_bigendian=universal
17901 break
17902 fi
17903 ;;
17904 esac
17905 ac_prev=
17906 elif test "x$ac_word" = "x-arch"; then
17907 ac_prev=arch
17908 fi
17909 done
17910 fi
17911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17912 if test $ac_cv_c_bigendian = unknown; then
17913 # See if sys/param.h defines the BYTE_ORDER macro.
17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h. */
17916 #include <sys/types.h>
17917 #include <sys/param.h>
17918
17919 int
17920 main ()
17921 {
17922 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17923 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17924 && LITTLE_ENDIAN)
17925 bogus endian macros
17926 #endif
17927
17928 ;
17929 return 0;
17930 }
17931 _ACEOF
17932 if ac_fn_c_try_compile "$LINENO"; then :
17933 # It does; now see whether it defined to BIG_ENDIAN or not.
17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935 /* end confdefs.h. */
17936 #include <sys/types.h>
17937 #include <sys/param.h>
17938
17939 int
17940 main ()
17941 {
17942 #if BYTE_ORDER != BIG_ENDIAN
17943 not big endian
17944 #endif
17945
17946 ;
17947 return 0;
17948 }
17949 _ACEOF
17950 if ac_fn_c_try_compile "$LINENO"; then :
17951 ac_cv_c_bigendian=yes
17952 else
17953 ac_cv_c_bigendian=no
17954 fi
17955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956 fi
17957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17958 fi
17959 if test $ac_cv_c_bigendian = unknown; then
17960 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17962 /* end confdefs.h. */
17963 #include <limits.h>
17964
17965 int
17966 main ()
17967 {
17968 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17969 bogus endian macros
17970 #endif
17971
17972 ;
17973 return 0;
17974 }
17975 _ACEOF
17976 if ac_fn_c_try_compile "$LINENO"; then :
17977 # It does; now see whether it defined to _BIG_ENDIAN or not.
17978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979 /* end confdefs.h. */
17980 #include <limits.h>
17981
17982 int
17983 main ()
17984 {
17985 #ifndef _BIG_ENDIAN
17986 not big endian
17987 #endif
17988
17989 ;
17990 return 0;
17991 }
17992 _ACEOF
17993 if ac_fn_c_try_compile "$LINENO"; then :
17994 ac_cv_c_bigendian=yes
17995 else
17996 ac_cv_c_bigendian=no
17997 fi
17998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17999 fi
18000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18001 fi
18002 if test $ac_cv_c_bigendian = unknown; then
18003 # Compile a test program.
18004 if test "$cross_compiling" = yes; then :
18005 # Try to guess by grepping values from an object file.
18006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18007 /* end confdefs.h. */
18008 short int ascii_mm[] =
18009 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18010 short int ascii_ii[] =
18011 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18012 int use_ascii (int i) {
18013 return ascii_mm[i] + ascii_ii[i];
18014 }
18015 short int ebcdic_ii[] =
18016 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18017 short int ebcdic_mm[] =
18018 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18019 int use_ebcdic (int i) {
18020 return ebcdic_mm[i] + ebcdic_ii[i];
18021 }
18022 extern int foo;
18023
18024 int
18025 main ()
18026 {
18027 return use_ascii (foo) == use_ebcdic (foo);
18028 ;
18029 return 0;
18030 }
18031 _ACEOF
18032 if ac_fn_c_try_compile "$LINENO"; then :
18033 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18034 ac_cv_c_bigendian=yes
18035 fi
18036 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18037 if test "$ac_cv_c_bigendian" = unknown; then
18038 ac_cv_c_bigendian=no
18039 else
18040 # finding both strings is unlikely to happen, but who knows?
18041 ac_cv_c_bigendian=unknown
18042 fi
18043 fi
18044 fi
18045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18046 else
18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18049 $ac_includes_default
18050 int
18051 main ()
18052 {
18053
18054 /* Are we little or big endian? From Harbison&Steele. */
18055 union
18056 {
18057 long int l;
18058 char c[sizeof (long int)];
18059 } u;
18060 u.l = 1;
18061 return u.c[sizeof (long int) - 1] == 1;
18062
18063 ;
18064 return 0;
18065 }
18066 _ACEOF
18067 if ac_fn_c_try_run "$LINENO"; then :
18068 ac_cv_c_bigendian=no
18069 else
18070 ac_cv_c_bigendian=yes
18071 fi
18072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18073 conftest.$ac_objext conftest.beam conftest.$ac_ext
18074 fi
18075
18076 fi
18077 fi
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18079 $as_echo "$ac_cv_c_bigendian" >&6; }
18080 case $ac_cv_c_bigendian in #(
18081 yes)
18082
18083 $as_echo "#define NATIVE_BIG_ENDIAN 1" >>confdefs.h
18084 ;; #(
18085 no)
18086
18087 $as_echo "#define NATIVE_LITTLE_ENDIAN 1" >>confdefs.h
18088 ;; #(
18089 universal)
18090 as_fn_error $? "universal endianness is not supported - compile separately and use lipo(1)" "$LINENO" 5
18091
18092 ;; #(
18093 *)
18094 as_fn_error $? "unknown endianness" "$LINENO" 5 ;;
18095 esac
18096
18097
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __STDC_LIMIT_MACROS is required" >&5
18099 $as_echo_n "checking whether __STDC_LIMIT_MACROS is required... " >&6; }
18100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18101 /* end confdefs.h. */
18102
18103 #include <limits.h>
18104 #include <stdint.h>
18105
18106 int
18107 main ()
18108 {
18109
18110 (void) SIZE_MAX;
18111 (void) UINT64_MAX;
18112
18113 ;
18114 return 0;
18115 }
18116 _ACEOF
18117 if ac_fn_c_try_compile "$LINENO"; then :
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18119 $as_echo "no" >&6; }
18120 else
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18122 $as_echo "yes" >&6; }
18123 CPPFLAGS="$CPPFLAGS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS"
18124
18125 fi
18126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18127
18128 HAVE_AMD64_ASM_V=0
18129 if test "$enable_asm" != "no"; then :
18130
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use x86_64 asm code" >&5
18132 $as_echo_n "checking whether we can use x86_64 asm code... " >&6; }
18133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134 /* end confdefs.h. */
18135
18136
18137 int
18138 main ()
18139 {
18140
18141 #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
18142 # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
18143 # error Windows x86_64 calling conventions are not supported yet
18144 # endif
18145 /* neat */
18146 #else
18147 # error !x86_64
18148 #endif
18149 unsigned char i = 0, o = 0, t;
18150 __asm__ __volatile__ ("pxor %%xmm12, %%xmm6 \n"
18151 "movb (%[i]), %[t] \n"
18152 "addb %[t], (%[o]) \n"
18153 : [t] "=&r"(t)
18154 : [o] "D"(&o), [i] "S"(&i)
18155 : "memory", "flags", "cc");
18156
18157 ;
18158 return 0;
18159 }
18160 _ACEOF
18161 if ac_fn_c_try_compile "$LINENO"; then :
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18163 $as_echo "yes" >&6; }
18164
18165 $as_echo "#define HAVE_AMD64_ASM 1" >>confdefs.h
18166
18167 HAVE_AMD64_ASM_V=1
18168 else
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18170 $as_echo "no" >&6; }
18171 fi
18172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18173
18174 fi
18175 if test $HAVE_AMD64_ASM_V = 1; then
18176 HAVE_AMD64_ASM_TRUE=
18177 HAVE_AMD64_ASM_FALSE='#'
18178 else
18179 HAVE_AMD64_ASM_TRUE='#'
18180 HAVE_AMD64_ASM_FALSE=
18181 fi
18182
18183
18184
18185 HAVE_AVX_ASM_V=0
18186 if test "$enable_asm" != "no"; then :
18187
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can assemble AVX opcodes" >&5
18189 $as_echo_n "checking whether we can assemble AVX opcodes... " >&6; }
18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18192
18193
18194 int
18195 main ()
18196 {
18197
18198 #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
18199 # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
18200 # error Windows x86_64 calling conventions are not supported yet
18201 # endif
18202 /* neat */
18203 #else
18204 # error !x86_64
18205 #endif
18206 __asm__ __volatile__ ("vpunpcklqdq %xmm0,%xmm13,%xmm0");
18207
18208 ;
18209 return 0;
18210 }
18211 _ACEOF
18212 if ac_fn_c_try_compile "$LINENO"; then :
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18214 $as_echo "yes" >&6; }
18215
18216 $as_echo "#define HAVE_AVX_ASM 1" >>confdefs.h
18217
18218 HAVE_AVX_ASM_V=1
18219 else
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18221 $as_echo "no" >&6; }
18222 fi
18223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18224
18225 fi
18226 if test $HAVE_AVX_ASM_V = 1; then
18227 HAVE_AVX_ASM_TRUE=
18228 HAVE_AVX_ASM_FALSE='#'
18229 else
18230 HAVE_AVX_ASM_TRUE='#'
18231 HAVE_AVX_ASM_FALSE=
18232 fi
18233
18234
18235
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit arithmetic" >&5
18237 $as_echo_n "checking for 128-bit arithmetic... " >&6; }
18238 HAVE_TI_MODE_V=0
18239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h. */
18241
18242 #if !defined(__GNUC__) && !defined(__SIZEOF_INT128__)
18243 # error mode(TI) is a gcc extension, and __int128 is not available
18244 #endif
18245 #if defined(__clang__) && !defined(__x86_64__)
18246 # error clang does not properly handle the 128-bit type on 32-bit systems
18247 #endif
18248 #ifndef NATIVE_LITTLE_ENDIAN
18249 # error libsodium currently expects a little endian CPU for the 128-bit type
18250 #endif
18251 #ifdef __EMSCRIPTEN__
18252 # error emscripten currently supports only shift operations on integers \
18253 # larger than 64 bits
18254 #endif
18255 #include <stddef.h>
18256 #include <stdint.h>
18257 #if defined(__SIZEOF_INT128__)
18258 typedef unsigned __int128 uint128_t;
18259 #else
18260 typedef unsigned uint128_t __attribute__((mode(TI)));
18261 #endif
18262 void fcontract(uint128_t *t) {
18263 *t += 0x8000000000000 - 1;
18264 }
18265
18266 int
18267 main ()
18268 {
18269
18270 (void) fcontract;
18271
18272 ;
18273 return 0;
18274 }
18275 _ACEOF
18276 if ac_fn_c_try_compile "$LINENO"; then :
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18278 $as_echo "yes" >&6; }
18279
18280 $as_echo "#define HAVE_TI_MODE 1" >>confdefs.h
18281
18282 HAVE_TI_MODE_V=1
18283 else
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18285 $as_echo "no" >&6; }
18286 fi
18287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18288 if test $HAVE_TI_MODE_V = 1; then
18289 HAVE_TI_MODE_TRUE=
18290 HAVE_TI_MODE_FALSE='#'
18291 else
18292 HAVE_TI_MODE_TRUE='#'
18293 HAVE_TI_MODE_FALSE=
18294 fi
18295
18296
18297
18298 HAVE_CPUID_V=0
18299 if test "$enable_asm" != "no" -o "$host_alias" = "x86_64-nacl"; then :
18300
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpuid instruction" >&5
18302 $as_echo_n "checking for cpuid instruction... " >&6; }
18303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18304 /* end confdefs.h. */
18305
18306 int
18307 main ()
18308 {
18309
18310 unsigned int cpu_info[4];
18311 __asm__ __volatile__ ("xchgl %%ebx, %k1; cpuid; xchgl %%ebx, %k1" :
18312 "=a" (cpu_info[0]), "=&r" (cpu_info[1]),
18313 "=c" (cpu_info[2]), "=d" (cpu_info[3]) :
18314 "0" (0U), "2" (0U));
18315
18316 ;
18317 return 0;
18318 }
18319 _ACEOF
18320 if ac_fn_c_try_compile "$LINENO"; then :
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18322 $as_echo "yes" >&6; }
18323
18324 $as_echo "#define HAVE_CPUID 1" >>confdefs.h
18325
18326 HAVE_CPUID_V=1
18327 else
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18329 $as_echo "no" >&6; }
18330 fi
18331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18332
18333 fi
18334
18335
18336 asm_hide_symbol="unsupported"
18337 if test "$enable_asm" != "no" -o "$host_os" = "nacl"; then :
18338
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .private_extern asm directive is supported" >&5
18340 $as_echo_n "checking if the .private_extern asm directive is supported... " >&6; }
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18343
18344 int
18345 main ()
18346 {
18347
18348 __asm__ __volatile__ (".private_extern dummy_symbol \n"
18349 ".private_extern _dummy_symbol \n"
18350 ".globl dummy_symbol \n"
18351 ".globl _dummy_symbol \n"
18352 "dummy_symbol: \n"
18353 "_dummy_symbol: \n"
18354 " nop \n"
18355 );
18356
18357 ;
18358 return 0;
18359 }
18360 _ACEOF
18361 if ac_fn_c_try_link "$LINENO"; then :
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18363 $as_echo "yes" >&6; }
18364 asm_hide_symbol=".private_extern"
18365 else
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18367 $as_echo "no" >&6; }
18368 fi
18369 rm -f core conftest.err conftest.$ac_objext \
18370 conftest$ac_exeext conftest.$ac_ext
18371
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .hidden asm directive is supported" >&5
18373 $as_echo_n "checking if the .hidden asm directive is supported... " >&6; }
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18376
18377 int
18378 main ()
18379 {
18380
18381 __asm__ __volatile__ (".hidden dummy_symbol \n"
18382 ".hidden _dummy_symbol \n"
18383 ".globl dummy_symbol \n"
18384 ".globl _dummy_symbol \n"
18385 "dummy_symbol: \n"
18386 "_dummy_symbol: \n"
18387 " nop \n"
18388 );
18389
18390 ;
18391 return 0;
18392 }
18393 _ACEOF
18394 if ac_fn_c_try_link "$LINENO"; then :
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18396 $as_echo "yes" >&6; }
18397 if test "$asm_hide_symbol" = "unsupported"; then :
18398 asm_hide_symbol=".hidden"
18399 else
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: unable to reliably tag symbols as private" >&5
18401 $as_echo "$as_me: unable to reliably tag symbols as private" >&6;}
18402 asm_hide_symbol="unsupported"
18403 fi
18404
18405 else
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18407 $as_echo "no" >&6; }
18408 fi
18409 rm -f core conftest.err conftest.$ac_objext \
18410 conftest$ac_exeext conftest.$ac_ext
18411
18412 if test "$asm_hide_symbol" != "unsupported"; then :
18413
18414
18415 cat >>confdefs.h <<_ACEOF
18416 #define ASM_HIDE_SYMBOL $asm_hide_symbol
18417 _ACEOF
18418
18419
18420 fi
18421
18422 fi
18423
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if weak symbols are supported" >&5
18425 $as_echo_n "checking if weak symbols are supported... " >&6; }
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428
18429 #if !defined(__ELF__) && !defined(__APPLE_CC__)
18430 # error Support for weak symbols may not be available
18431 #endif
18432 __attribute__((weak)) void __dummy(void *x) { }
18433 void f(void *x) { __dummy(x); }
18434
18435 int
18436 main ()
18437 {
18438
18439
18440 ;
18441 return 0;
18442 }
18443 _ACEOF
18444 if ac_fn_c_try_link "$LINENO"; then :
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18446 $as_echo "yes" >&6; }
18447
18448 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
18449
18450 else
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18452 $as_echo "no" >&6; }
18453 fi
18454 rm -f core conftest.err conftest.$ac_objext \
18455 conftest$ac_exeext conftest.$ac_ext
18456
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if data alignment is required" >&5
18458 $as_echo_n "checking if data alignment is required... " >&6; }
18459 aligned_access_required=yes
18460 case $host_cpu in #(
18461 i?86|amd64|x86_64|powerpc*|s390*) :
18462 aligned_access_required=no ;; #(
18463 arm*) :
18464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18465 /* end confdefs.h. */
18466
18467 #ifndef __ARM_FEATURE_UNALIGNED
18468 # error data alignment is required
18469 #endif
18470
18471 int
18472 main ()
18473 {
18474
18475 ;
18476 return 0;
18477 }
18478 _ACEOF
18479 if ac_fn_c_try_compile "$LINENO"; then :
18480 aligned_access_required=no
18481 fi
18482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18483 ;; #(
18484 *) :
18485 ;;
18486 esac
18487 if test "x$aligned_access_required" = "xyes"; then :
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18489 $as_echo "yes" >&6; }
18490 else
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492 $as_echo "no" >&6; }
18493
18494 $as_echo "#define CPU_UNALIGNED_ACCESS 1" >>confdefs.h
18495
18496 fi
18497
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if atomic operations are supported" >&5
18499 $as_echo_n "checking if atomic operations are supported... " >&6; }
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18502
18503 int
18504 main ()
18505 {
18506
18507 static volatile int _sodium_lock;
18508 __sync_lock_test_and_set(&_sodium_lock, 1);
18509 __sync_lock_release(&_sodium_lock);
18510
18511
18512 ;
18513 return 0;
18514 }
18515 _ACEOF
18516 if ac_fn_c_try_link "$LINENO"; then :
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18518 $as_echo "yes" >&6; }
18519
18520 $as_echo "#define HAVE_ATOMIC_OPS 1" >>confdefs.h
18521
18522 else
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18524 $as_echo "no" >&6; }
18525 fi
18526 rm -f core conftest.err conftest.$ac_objext \
18527 conftest$ac_exeext conftest.$ac_ext
18528
18529
18530 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18531 if test "x$ac_cv_type_size_t" = xyes; then :
18532
18533 else
18534
18535 cat >>confdefs.h <<_ACEOF
18536 #define size_t unsigned int
18537 _ACEOF
18538
18539 fi
18540
18541 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18542 # for constant arguments. Useless!
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18544 $as_echo_n "checking for working alloca.h... " >&6; }
18545 if ${ac_cv_working_alloca_h+:} false; then :
18546 $as_echo_n "(cached) " >&6
18547 else
18548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18549 /* end confdefs.h. */
18550 #include <alloca.h>
18551 int
18552 main ()
18553 {
18554 char *p = (char *) alloca (2 * sizeof (int));
18555 if (p) return 0;
18556 ;
18557 return 0;
18558 }
18559 _ACEOF
18560 if ac_fn_c_try_link "$LINENO"; then :
18561 ac_cv_working_alloca_h=yes
18562 else
18563 ac_cv_working_alloca_h=no
18564 fi
18565 rm -f core conftest.err conftest.$ac_objext \
18566 conftest$ac_exeext conftest.$ac_ext
18567 fi
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18569 $as_echo "$ac_cv_working_alloca_h" >&6; }
18570 if test $ac_cv_working_alloca_h = yes; then
18571
18572 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18573
18574 fi
18575
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18577 $as_echo_n "checking for alloca... " >&6; }
18578 if ${ac_cv_func_alloca_works+:} false; then :
18579 $as_echo_n "(cached) " >&6
18580 else
18581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18582 /* end confdefs.h. */
18583 #ifdef __GNUC__
18584 # define alloca __builtin_alloca
18585 #else
18586 # ifdef _MSC_VER
18587 # include <malloc.h>
18588 # define alloca _alloca
18589 # else
18590 # ifdef HAVE_ALLOCA_H
18591 # include <alloca.h>
18592 # else
18593 # ifdef _AIX
18594 #pragma alloca
18595 # else
18596 # ifndef alloca /* predefined by HP cc +Olibcalls */
18597 void *alloca (size_t);
18598 # endif
18599 # endif
18600 # endif
18601 # endif
18602 #endif
18603
18604 int
18605 main ()
18606 {
18607 char *p = (char *) alloca (1);
18608 if (p) return 0;
18609 ;
18610 return 0;
18611 }
18612 _ACEOF
18613 if ac_fn_c_try_link "$LINENO"; then :
18614 ac_cv_func_alloca_works=yes
18615 else
18616 ac_cv_func_alloca_works=no
18617 fi
18618 rm -f core conftest.err conftest.$ac_objext \
18619 conftest$ac_exeext conftest.$ac_ext
18620 fi
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18622 $as_echo "$ac_cv_func_alloca_works" >&6; }
18623
18624 if test $ac_cv_func_alloca_works = yes; then
18625
18626 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18627
18628 else
18629 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18630 # that cause trouble. Some versions do not even contain alloca or
18631 # contain a buggy version. If you still want to use their alloca,
18632 # use ar to extract alloca.o from them instead of compiling alloca.c.
18633
18634 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18635
18636 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18637
18638
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18640 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18641 if ${ac_cv_os_cray+:} false; then :
18642 $as_echo_n "(cached) " >&6
18643 else
18644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645 /* end confdefs.h. */
18646 #if defined CRAY && ! defined CRAY2
18647 webecray
18648 #else
18649 wenotbecray
18650 #endif
18651
18652 _ACEOF
18653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18654 $EGREP "webecray" >/dev/null 2>&1; then :
18655 ac_cv_os_cray=yes
18656 else
18657 ac_cv_os_cray=no
18658 fi
18659 rm -f conftest*
18660
18661 fi
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18663 $as_echo "$ac_cv_os_cray" >&6; }
18664 if test $ac_cv_os_cray = yes; then
18665 for ac_func in _getb67 GETB67 getb67; do
18666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18667 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18668 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18669
18670 cat >>confdefs.h <<_ACEOF
18671 #define CRAY_STACKSEG_END $ac_func
18672 _ACEOF
18673
18674 break
18675 fi
18676
18677 done
18678 fi
18679
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18681 $as_echo_n "checking stack direction for C alloca... " >&6; }
18682 if ${ac_cv_c_stack_direction+:} false; then :
18683 $as_echo_n "(cached) " >&6
18684 else
18685 if test "$cross_compiling" = yes; then :
18686 ac_cv_c_stack_direction=0
18687 else
18688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18689 /* end confdefs.h. */
18690 $ac_includes_default
18691 int
18692 find_stack_direction (int *addr, int depth)
18693 {
18694 int dir, dummy = 0;
18695 if (! addr)
18696 addr = &dummy;
18697 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18698 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18699 return dir + dummy;
18700 }
18701
18702 int
18703 main (int argc, char **argv)
18704 {
18705 return find_stack_direction (0, argc + !argv + 20) < 0;
18706 }
18707 _ACEOF
18708 if ac_fn_c_try_run "$LINENO"; then :
18709 ac_cv_c_stack_direction=1
18710 else
18711 ac_cv_c_stack_direction=-1
18712 fi
18713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18714 conftest.$ac_objext conftest.beam conftest.$ac_ext
18715 fi
18716
18717 fi
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18719 $as_echo "$ac_cv_c_stack_direction" >&6; }
18720 cat >>confdefs.h <<_ACEOF
18721 #define STACK_DIRECTION $ac_cv_c_stack_direction
18722 _ACEOF
18723
18724
18725 fi
18726
18727 if test "x$EMSCRIPTEN" = "x"; then :
18728
18729 for ac_func in arc4random arc4random_buf
18730 do :
18731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18733 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18734 cat >>confdefs.h <<_ACEOF
18735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18736 _ACEOF
18737
18738 fi
18739 done
18740
18741 for ac_func in mmap mlock madvise mprotect memset_s explicit_bzero nanosleep
18742 do :
18743 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18744 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18745 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18746 cat >>confdefs.h <<_ACEOF
18747 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18748 _ACEOF
18749
18750 fi
18751 done
18752
18753
18754 fi
18755 for ac_func in posix_memalign getpid
18756 do :
18757 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18758 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18759 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18760 cat >>confdefs.h <<_ACEOF
18761 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18762 _ACEOF
18763
18764 fi
18765 done
18766
18767
18768
18769
18770 TEST_LDFLAGS=''
18771 if test "x$EMSCRIPTEN" != "x"; then :
18772
18773 EXEEXT=.js
18774 TEST_LDFLAGS='--memory-init-file 0 --pre-js pre.js.inc -s RESERVED_FUNCTION_POINTERS=8'
18775
18776 fi
18777
18778 if test "x$EMSCRIPTEN" != "x"; then
18779 EMSCRIPTEN_TRUE=
18780 EMSCRIPTEN_FALSE='#'
18781 else
18782 EMSCRIPTEN_TRUE='#'
18783 EMSCRIPTEN_FALSE=
18784 fi
18785
18786
18787 if test "x$NATIVECLIENT" != "x"; then
18788 NATIVECLIENT_TRUE=
18789 NATIVECLIENT_FALSE='#'
18790 else
18791 NATIVECLIENT_TRUE='#'
18792 NATIVECLIENT_FALSE=
18793 fi
18794
18795
18796
18797 $as_echo "#define CONFIGURED 1" >>confdefs.h
18798
18799
18800
18801
18802 enable_win32_dll=yes
18803
18804 case $host in
18805 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
18806 if test -n "$ac_tool_prefix"; then
18807 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
18808 set dummy ${ac_tool_prefix}as; ac_word=$2
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18810 $as_echo_n "checking for $ac_word... " >&6; }
18811 if ${ac_cv_prog_AS+:} false; then :
18812 $as_echo_n "(cached) " >&6
18813 else
18814 if test -n "$AS"; then
18815 ac_cv_prog_AS="$AS" # Let the user override the test.
18816 else
18817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18818 for as_dir in $PATH
18819 do
18820 IFS=$as_save_IFS
18821 test -z "$as_dir" && as_dir=.
18822 for ac_exec_ext in '' $ac_executable_extensions; do
18823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18824 ac_cv_prog_AS="${ac_tool_prefix}as"
18825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18826 break 2
18827 fi
18828 done
18829 done
18830 IFS=$as_save_IFS
18831
18832 fi
18833 fi
18834 AS=$ac_cv_prog_AS
18835 if test -n "$AS"; then
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
18837 $as_echo "$AS" >&6; }
18838 else
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18840 $as_echo "no" >&6; }
18841 fi
18842
18843
18844 fi
18845 if test -z "$ac_cv_prog_AS"; then
18846 ac_ct_AS=$AS
18847 # Extract the first word of "as", so it can be a program name with args.
18848 set dummy as; ac_word=$2
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18850 $as_echo_n "checking for $ac_word... " >&6; }
18851 if ${ac_cv_prog_ac_ct_AS+:} false; then :
18852 $as_echo_n "(cached) " >&6
18853 else
18854 if test -n "$ac_ct_AS"; then
18855 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
18856 else
18857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18858 for as_dir in $PATH
18859 do
18860 IFS=$as_save_IFS
18861 test -z "$as_dir" && as_dir=.
18862 for ac_exec_ext in '' $ac_executable_extensions; do
18863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18864 ac_cv_prog_ac_ct_AS="as"
18865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18866 break 2
18867 fi
18868 done
18869 done
18870 IFS=$as_save_IFS
18871
18872 fi
18873 fi
18874 ac_ct_AS=$ac_cv_prog_ac_ct_AS
18875 if test -n "$ac_ct_AS"; then
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
18877 $as_echo "$ac_ct_AS" >&6; }
18878 else
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18880 $as_echo "no" >&6; }
18881 fi
18882
18883 if test "x$ac_ct_AS" = x; then
18884 AS="false"
18885 else
18886 case $cross_compiling:$ac_tool_warned in
18887 yes:)
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18890 ac_tool_warned=yes ;;
18891 esac
18892 AS=$ac_ct_AS
18893 fi
18894 else
18895 AS="$ac_cv_prog_AS"
18896 fi
18897
18898 if test -n "$ac_tool_prefix"; then
18899 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
18900 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18902 $as_echo_n "checking for $ac_word... " >&6; }
18903 if ${ac_cv_prog_DLLTOOL+:} false; then :
18904 $as_echo_n "(cached) " >&6
18905 else
18906 if test -n "$DLLTOOL"; then
18907 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
18908 else
18909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18910 for as_dir in $PATH
18911 do
18912 IFS=$as_save_IFS
18913 test -z "$as_dir" && as_dir=.
18914 for ac_exec_ext in '' $ac_executable_extensions; do
18915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18916 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
18917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18918 break 2
18919 fi
18920 done
18921 done
18922 IFS=$as_save_IFS
18923
18924 fi
18925 fi
18926 DLLTOOL=$ac_cv_prog_DLLTOOL
18927 if test -n "$DLLTOOL"; then
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
18929 $as_echo "$DLLTOOL" >&6; }
18930 else
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18932 $as_echo "no" >&6; }
18933 fi
18934
18935
18936 fi
18937 if test -z "$ac_cv_prog_DLLTOOL"; then
18938 ac_ct_DLLTOOL=$DLLTOOL
18939 # Extract the first word of "dlltool", so it can be a program name with args.
18940 set dummy dlltool; ac_word=$2
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18942 $as_echo_n "checking for $ac_word... " >&6; }
18943 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
18944 $as_echo_n "(cached) " >&6
18945 else
18946 if test -n "$ac_ct_DLLTOOL"; then
18947 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
18948 else
18949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18950 for as_dir in $PATH
18951 do
18952 IFS=$as_save_IFS
18953 test -z "$as_dir" && as_dir=.
18954 for ac_exec_ext in '' $ac_executable_extensions; do
18955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18956 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
18957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18958 break 2
18959 fi
18960 done
18961 done
18962 IFS=$as_save_IFS
18963
18964 fi
18965 fi
18966 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
18967 if test -n "$ac_ct_DLLTOOL"; then
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
18969 $as_echo "$ac_ct_DLLTOOL" >&6; }
18970 else
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18972 $as_echo "no" >&6; }
18973 fi
18974
18975 if test "x$ac_ct_DLLTOOL" = x; then
18976 DLLTOOL="false"
18977 else
18978 case $cross_compiling:$ac_tool_warned in
18979 yes:)
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18982 ac_tool_warned=yes ;;
18983 esac
18984 DLLTOOL=$ac_ct_DLLTOOL
18985 fi
18986 else
18987 DLLTOOL="$ac_cv_prog_DLLTOOL"
18988 fi
18989
18990 if test -n "$ac_tool_prefix"; then
18991 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
18992 set dummy ${ac_tool_prefix}objdump; ac_word=$2
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18994 $as_echo_n "checking for $ac_word... " >&6; }
18995 if ${ac_cv_prog_OBJDUMP+:} false; then :
18996 $as_echo_n "(cached) " >&6
18997 else
18998 if test -n "$OBJDUMP"; then
18999 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
19000 else
19001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19002 for as_dir in $PATH
19003 do
19004 IFS=$as_save_IFS
19005 test -z "$as_dir" && as_dir=.
19006 for ac_exec_ext in '' $ac_executable_extensions; do
19007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19008 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
19009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19010 break 2
19011 fi
19012 done
19013 done
19014 IFS=$as_save_IFS
19015
19016 fi
19017 fi
19018 OBJDUMP=$ac_cv_prog_OBJDUMP
19019 if test -n "$OBJDUMP"; then
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
19021 $as_echo "$OBJDUMP" >&6; }
19022 else
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19024 $as_echo "no" >&6; }
19025 fi
19026
19027
19028 fi
19029 if test -z "$ac_cv_prog_OBJDUMP"; then
19030 ac_ct_OBJDUMP=$OBJDUMP
19031 # Extract the first word of "objdump", so it can be a program name with args.
19032 set dummy objdump; ac_word=$2
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19034 $as_echo_n "checking for $ac_word... " >&6; }
19035 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
19036 $as_echo_n "(cached) " >&6
19037 else
19038 if test -n "$ac_ct_OBJDUMP"; then
19039 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
19040 else
19041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19042 for as_dir in $PATH
19043 do
19044 IFS=$as_save_IFS
19045 test -z "$as_dir" && as_dir=.
19046 for ac_exec_ext in '' $ac_executable_extensions; do
19047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19048 ac_cv_prog_ac_ct_OBJDUMP="objdump"
19049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19050 break 2
19051 fi
19052 done
19053 done
19054 IFS=$as_save_IFS
19055
19056 fi
19057 fi
19058 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
19059 if test -n "$ac_ct_OBJDUMP"; then
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
19061 $as_echo "$ac_ct_OBJDUMP" >&6; }
19062 else
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19064 $as_echo "no" >&6; }
19065 fi
19066
19067 if test "x$ac_ct_OBJDUMP" = x; then
19068 OBJDUMP="false"
19069 else
19070 case $cross_compiling:$ac_tool_warned in
19071 yes:)
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19074 ac_tool_warned=yes ;;
19075 esac
19076 OBJDUMP=$ac_ct_OBJDUMP
19077 fi
19078 else
19079 OBJDUMP="$ac_cv_prog_OBJDUMP"
19080 fi
19081
19082 ;;
19083 esac
19084
19085 test -z "$AS" && AS=as
19086
19087
19088
19089
19090
19091 test -z "$DLLTOOL" && DLLTOOL=dlltool
19092
19093
19094 test -z "$OBJDUMP" && OBJDUMP=objdump
19095
19096
19097
19098
19099
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
19101 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
19102 if ${gl_cv_ld_output_def+:} false; then :
19103 $as_echo_n "(cached) " >&6
19104 else
19105 if test "$enable_shared" = no; then
19106 gl_cv_ld_output_def="not needed, shared libraries are disabled"
19107 else
19108 gl_ldflags_save=$LDFLAGS
19109 LDFLAGS="-Wl,--output-def,conftest.def"
19110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h. */
19112
19113 int
19114 main ()
19115 {
19116
19117 ;
19118 return 0;
19119 }
19120 _ACEOF
19121 if ac_fn_c_try_link "$LINENO"; then :
19122 gl_cv_ld_output_def=yes
19123 else
19124 gl_cv_ld_output_def=no
19125 fi
19126 rm -f core conftest.err conftest.$ac_objext \
19127 conftest$ac_exeext conftest.$ac_ext
19128 rm -f conftest.def
19129 LDFLAGS="$gl_ldflags_save"
19130 fi
19131 fi
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
19133 $as_echo "$gl_cv_ld_output_def" >&6; }
19134 if test "x$gl_cv_ld_output_def" = "xyes"; then
19135 HAVE_LD_OUTPUT_DEF_TRUE=
19136 HAVE_LD_OUTPUT_DEF_FALSE='#'
19137 else
19138 HAVE_LD_OUTPUT_DEF_TRUE='#'
19139 HAVE_LD_OUTPUT_DEF_FALSE=
19140 fi
19141
19142
19143
19144
19145
19146
19147 if test "x$ENABLE_CWFLAGS" = "xyes"; then :
19148
19149 CFLAGS="$CFLAGS $CWFLAGS"
19150
19151 fi
19152
19153 ac_config_files="$ac_config_files Makefile builds/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"
19154
19155 cat >confcache <<\_ACEOF
19156 # This file is a shell script that caches the results of configure
19157 # tests run on this system so they can be shared between configure
19158 # scripts and configure runs, see configure's option --config-cache.
19159 # It is not useful on other systems. If it contains results you don't
19160 # want to keep, you may remove or edit it.
19161 #
19162 # config.status only pays attention to the cache file if you give it
19163 # the --recheck option to rerun configure.
19164 #
19165 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19166 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19167 # following values.
19168
19169 _ACEOF
19170
19171 # The following way of writing the cache mishandles newlines in values,
19172 # but we know of no workaround that is simple, portable, and efficient.
19173 # So, we kill variables containing newlines.
19174 # Ultrix sh set writes to stderr and can't be redirected directly,
19175 # and sets the high bit in the cache file unless we assign to the vars.
19176 (
19177 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19178 eval ac_val=\$$ac_var
19179 case $ac_val in #(
19180 *${as_nl}*)
19181 case $ac_var in #(
19182 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19183 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19184 esac
19185 case $ac_var in #(
19186 _ | IFS | as_nl) ;; #(
19187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19188 *) { eval $ac_var=; unset $ac_var;} ;;
19189 esac ;;
19190 esac
19191 done
19192
19193 (set) 2>&1 |
19194 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19195 *${as_nl}ac_space=\ *)
19196 # `set' does not quote correctly, so add quotes: double-quote
19197 # substitution turns \\\\ into \\, and sed turns \\ into \.
19198 sed -n \
19199 "s/'/'\\\\''/g;
19200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19201 ;; #(
19202 *)
19203 # `set' quotes correctly as required by POSIX, so do not add quotes.
19204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19205 ;;
19206 esac |
19207 sort
19208 ) |
19209 sed '
19210 /^ac_cv_env_/b end
19211 t clear
19212 :clear
19213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19214 t end
19215 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19216 :end' >>confcache
19217 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19218 if test -w "$cache_file"; then
19219 if test "x$cache_file" != "x/dev/null"; then
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19221 $as_echo "$as_me: updating cache $cache_file" >&6;}
19222 if test ! -f "$cache_file" || test -h "$cache_file"; then
19223 cat confcache >"$cache_file"
19224 else
19225 case $cache_file in #(
19226 */* | ?:*)
19227 mv -f confcache "$cache_file"$$ &&
19228 mv -f "$cache_file"$$ "$cache_file" ;; #(
19229 *)
19230 mv -f confcache "$cache_file" ;;
19231 esac
19232 fi
19233 fi
19234 else
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19236 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19237 fi
19238 fi
19239 rm -f confcache
19240
19241 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19242 # Let make expand exec_prefix.
19243 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19244
19245 # Transform confdefs.h into DEFS.
19246 # Protect against shell expansion while executing Makefile rules.
19247 # Protect against Makefile macro expansion.
19248 #
19249 # If the first sed substitution is executed (which looks for macros that
19250 # take arguments), then branch to the quote section. Otherwise,
19251 # look for a macro that doesn't take arguments.
19252 ac_script='
19253 :mline
19254 /\\$/{
19255 N
19256 s,\\\n,,
19257 b mline
19258 }
19259 t clear
19260 :clear
19261 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19262 t quote
19263 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19264 t quote
19265 b any
19266 :quote
19267 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19268 s/\[/\\&/g
19269 s/\]/\\&/g
19270 s/\$/$$/g
19271 H
19272 :any
19273 ${
19274 g
19275 s/^\n//
19276 s/\n/ /g
19277 p
19278 }
19279 '
19280 DEFS=`sed -n "$ac_script" confdefs.h`
19281
19282
19283 ac_libobjs=
19284 ac_ltlibobjs=
19285 U=
19286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19287 # 1. Remove the extension, and $U if already installed.
19288 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19289 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19291 # will be set to the directory where LIBOBJS objects are built.
19292 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19293 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19294 done
19295 LIBOBJS=$ac_libobjs
19296
19297 LTLIBOBJS=$ac_ltlibobjs
19298
19299
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19301 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19302 if test -n "$am_sleep_pid"; then
19303 # Hide warnings about reused PIDs.
19304 wait $am_sleep_pid 2>/dev/null
19305 fi
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19307 $as_echo "done" >&6; }
19308 if test -n "$EXEEXT"; then
19309 am__EXEEXT_TRUE=
19310 am__EXEEXT_FALSE='#'
19311 else
19312 am__EXEEXT_TRUE='#'
19313 am__EXEEXT_FALSE=
19314 fi
19315
19316 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19317 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19319 fi
19320 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19321 as_fn_error $? "conditional \"AMDEP\" was never defined.
19322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19323 fi
19324 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19325 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19327 fi
19328 if test -z "${MINIMAL_TRUE}" && test -z "${MINIMAL_FALSE}"; then
19329 as_fn_error $? "conditional \"MINIMAL\" was never defined.
19330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19331 fi
19332 if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then
19333 as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined.
19334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19335 fi
19336 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19337 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19339 fi
19340 if test -z "${HAVE_AMD64_ASM_TRUE}" && test -z "${HAVE_AMD64_ASM_FALSE}"; then
19341 as_fn_error $? "conditional \"HAVE_AMD64_ASM\" was never defined.
19342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19343 fi
19344 if test -z "${HAVE_AVX_ASM_TRUE}" && test -z "${HAVE_AVX_ASM_FALSE}"; then
19345 as_fn_error $? "conditional \"HAVE_AVX_ASM\" was never defined.
19346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19347 fi
19348 if test -z "${HAVE_TI_MODE_TRUE}" && test -z "${HAVE_TI_MODE_FALSE}"; then
19349 as_fn_error $? "conditional \"HAVE_TI_MODE\" was never defined.
19350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19351 fi
19352 if test -z "${EMSCRIPTEN_TRUE}" && test -z "${EMSCRIPTEN_FALSE}"; then
19353 as_fn_error $? "conditional \"EMSCRIPTEN\" was never defined.
19354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19355 fi
19356 if test -z "${NATIVECLIENT_TRUE}" && test -z "${NATIVECLIENT_FALSE}"; then
19357 as_fn_error $? "conditional \"NATIVECLIENT\" was never defined.
19358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19359 fi
19360 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
19361 as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
19362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19363 fi
19364
19365 : "${CONFIG_STATUS=./config.status}"
19366 ac_write_fail=0
19367 ac_clean_files_save=$ac_clean_files
19368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19370 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19371 as_write_fail=0
19372 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19373 #! $SHELL
19374 # Generated by $as_me.
19375 # Run this file to recreate the current configuration.
19376 # Compiler output produced by configure, useful for debugging
19377 # configure, is in config.log if it exists.
19378
19379 debug=false
19380 ac_cs_recheck=false
19381 ac_cs_silent=false
19382
19383 SHELL=\${CONFIG_SHELL-$SHELL}
19384 export SHELL
19385 _ASEOF
19386 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19387 ## -------------------- ##
19388 ## M4sh Initialization. ##
19389 ## -------------------- ##
19390
19391 # Be more Bourne compatible
19392 DUALCASE=1; export DUALCASE # for MKS sh
19393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19394 emulate sh
19395 NULLCMD=:
19396 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19397 # is contrary to our usage. Disable this feature.
19398 alias -g '${1+"$@"}'='"$@"'
19399 setopt NO_GLOB_SUBST
19400 else
19401 case `(set -o) 2>/dev/null` in #(
19402 *posix*) :
19403 set -o posix ;; #(
19404 *) :
19405 ;;
19406 esac
19407 fi
19408
19409
19410 as_nl='
19411 '
19412 export as_nl
19413 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19414 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19415 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19417 # Prefer a ksh shell builtin over an external printf program on Solaris,
19418 # but without wasting forks for bash or zsh.
19419 if test -z "$BASH_VERSION$ZSH_VERSION" \
19420 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19421 as_echo='print -r --'
19422 as_echo_n='print -rn --'
19423 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19424 as_echo='printf %s\n'
19425 as_echo_n='printf %s'
19426 else
19427 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19428 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19429 as_echo_n='/usr/ucb/echo -n'
19430 else
19431 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19432 as_echo_n_body='eval
19433 arg=$1;
19434 case $arg in #(
19435 *"$as_nl"*)
19436 expr "X$arg" : "X\\(.*\\)$as_nl";
19437 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19438 esac;
19439 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19440 '
19441 export as_echo_n_body
19442 as_echo_n='sh -c $as_echo_n_body as_echo'
19443 fi
19444 export as_echo_body
19445 as_echo='sh -c $as_echo_body as_echo'
19446 fi
19447
19448 # The user is always right.
19449 if test "${PATH_SEPARATOR+set}" != set; then
19450 PATH_SEPARATOR=:
19451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19452 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19453 PATH_SEPARATOR=';'
19454 }
19455 fi
19456
19457
19458 # IFS
19459 # We need space, tab and new line, in precisely that order. Quoting is
19460 # there to prevent editors from complaining about space-tab.
19461 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19462 # splitting by setting IFS to empty value.)
19463 IFS=" "" $as_nl"
19464
19465 # Find who we are. Look in the path if we contain no directory separator.
19466 as_myself=
19467 case $0 in #((
19468 *[\\/]* ) as_myself=$0 ;;
19469 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19470 for as_dir in $PATH
19471 do
19472 IFS=$as_save_IFS
19473 test -z "$as_dir" && as_dir=.
19474 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19475 done
19476 IFS=$as_save_IFS
19477
19478 ;;
19479 esac
19480 # We did not find ourselves, most probably we were run as `sh COMMAND'
19481 # in which case we are not to be found in the path.
19482 if test "x$as_myself" = x; then
19483 as_myself=$0
19484 fi
19485 if test ! -f "$as_myself"; then
19486 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19487 exit 1
19488 fi
19489
19490 # Unset variables that we do not need and which cause bugs (e.g. in
19491 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19492 # suppresses any "Segmentation fault" message there. '((' could
19493 # trigger a bug in pdksh 5.2.14.
19494 for as_var in BASH_ENV ENV MAIL MAILPATH
19495 do eval test x\${$as_var+set} = xset \
19496 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19497 done
19498 PS1='$ '
19499 PS2='> '
19500 PS4='+ '
19501
19502 # NLS nuisances.
19503 LC_ALL=C
19504 export LC_ALL
19505 LANGUAGE=C
19506 export LANGUAGE
19507
19508 # CDPATH.
19509 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19510
19511
19512 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19513 # ----------------------------------------
19514 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19515 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19516 # script with STATUS, using 1 if that was 0.
19517 as_fn_error ()
19518 {
19519 as_status=$1; test $as_status -eq 0 && as_status=1
19520 if test "$4"; then
19521 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19522 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19523 fi
19524 $as_echo "$as_me: error: $2" >&2
19525 as_fn_exit $as_status
19526 } # as_fn_error
19527
19528
19529 # as_fn_set_status STATUS
19530 # -----------------------
19531 # Set $? to STATUS, without forking.
19532 as_fn_set_status ()
19533 {
19534 return $1
19535 } # as_fn_set_status
19536
19537 # as_fn_exit STATUS
19538 # -----------------
19539 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19540 as_fn_exit ()
19541 {
19542 set +e
19543 as_fn_set_status $1
19544 exit $1
19545 } # as_fn_exit
19546
19547 # as_fn_unset VAR
19548 # ---------------
19549 # Portably unset VAR.
19550 as_fn_unset ()
19551 {
19552 { eval $1=; unset $1;}
19553 }
19554 as_unset=as_fn_unset
19555 # as_fn_append VAR VALUE
19556 # ----------------------
19557 # Append the text in VALUE to the end of the definition contained in VAR. Take
19558 # advantage of any shell optimizations that allow amortized linear growth over
19559 # repeated appends, instead of the typical quadratic growth present in naive
19560 # implementations.
19561 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19562 eval 'as_fn_append ()
19563 {
19564 eval $1+=\$2
19565 }'
19566 else
19567 as_fn_append ()
19568 {
19569 eval $1=\$$1\$2
19570 }
19571 fi # as_fn_append
19572
19573 # as_fn_arith ARG...
19574 # ------------------
19575 # Perform arithmetic evaluation on the ARGs, and store the result in the
19576 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19577 # must be portable across $(()) and expr.
19578 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19579 eval 'as_fn_arith ()
19580 {
19581 as_val=$(( $* ))
19582 }'
19583 else
19584 as_fn_arith ()
19585 {
19586 as_val=`expr "$@" || test $? -eq 1`
19587 }
19588 fi # as_fn_arith
19589
19590
19591 if expr a : '\(a\)' >/dev/null 2>&1 &&
19592 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19593 as_expr=expr
19594 else
19595 as_expr=false
19596 fi
19597
19598 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19599 as_basename=basename
19600 else
19601 as_basename=false
19602 fi
19603
19604 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19605 as_dirname=dirname
19606 else
19607 as_dirname=false
19608 fi
19609
19610 as_me=`$as_basename -- "$0" ||
19611 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19612 X"$0" : 'X\(//\)$' \| \
19613 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19614 $as_echo X/"$0" |
19615 sed '/^.*\/\([^/][^/]*\)\/*$/{
19616 s//\1/
19617 q
19618 }
19619 /^X\/\(\/\/\)$/{
19620 s//\1/
19621 q
19622 }
19623 /^X\/\(\/\).*/{
19624 s//\1/
19625 q
19626 }
19627 s/.*/./; q'`
19628
19629 # Avoid depending upon Character Ranges.
19630 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19631 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19632 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19633 as_cr_digits='0123456789'
19634 as_cr_alnum=$as_cr_Letters$as_cr_digits
19635
19636 ECHO_C= ECHO_N= ECHO_T=
19637 case `echo -n x` in #(((((
19638 -n*)
19639 case `echo 'xy\c'` in
19640 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19641 xy) ECHO_C='\c';;
19642 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19643 ECHO_T=' ';;
19644 esac;;
19645 *)
19646 ECHO_N='-n';;
19647 esac
19648
19649 rm -f conf$$ conf$$.exe conf$$.file
19650 if test -d conf$$.dir; then
19651 rm -f conf$$.dir/conf$$.file
19652 else
19653 rm -f conf$$.dir
19654 mkdir conf$$.dir 2>/dev/null
19655 fi
19656 if (echo >conf$$.file) 2>/dev/null; then
19657 if ln -s conf$$.file conf$$ 2>/dev/null; then
19658 as_ln_s='ln -s'
19659 # ... but there are two gotchas:
19660 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19661 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19662 # In both cases, we have to default to `cp -pR'.
19663 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19664 as_ln_s='cp -pR'
19665 elif ln conf$$.file conf$$ 2>/dev/null; then
19666 as_ln_s=ln
19667 else
19668 as_ln_s='cp -pR'
19669 fi
19670 else
19671 as_ln_s='cp -pR'
19672 fi
19673 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19674 rmdir conf$$.dir 2>/dev/null
19675
19676
19677 # as_fn_mkdir_p
19678 # -------------
19679 # Create "$as_dir" as a directory, including parents if necessary.
19680 as_fn_mkdir_p ()
19681 {
19682
19683 case $as_dir in #(
19684 -*) as_dir=./$as_dir;;
19685 esac
19686 test -d "$as_dir" || eval $as_mkdir_p || {
19687 as_dirs=
19688 while :; do
19689 case $as_dir in #(
19690 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19691 *) as_qdir=$as_dir;;
19692 esac
19693 as_dirs="'$as_qdir' $as_dirs"
19694 as_dir=`$as_dirname -- "$as_dir" ||
19695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19696 X"$as_dir" : 'X\(//\)[^/]' \| \
19697 X"$as_dir" : 'X\(//\)$' \| \
19698 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19699 $as_echo X"$as_dir" |
19700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19701 s//\1/
19702 q
19703 }
19704 /^X\(\/\/\)[^/].*/{
19705 s//\1/
19706 q
19707 }
19708 /^X\(\/\/\)$/{
19709 s//\1/
19710 q
19711 }
19712 /^X\(\/\).*/{
19713 s//\1/
19714 q
19715 }
19716 s/.*/./; q'`
19717 test -d "$as_dir" && break
19718 done
19719 test -z "$as_dirs" || eval "mkdir $as_dirs"
19720 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19721
19722
19723 } # as_fn_mkdir_p
19724 if mkdir -p . 2>/dev/null; then
19725 as_mkdir_p='mkdir -p "$as_dir"'
19726 else
19727 test -d ./-p && rmdir ./-p
19728 as_mkdir_p=false
19729 fi
19730
19731
19732 # as_fn_executable_p FILE
19733 # -----------------------
19734 # Test if FILE is an executable regular file.
19735 as_fn_executable_p ()
19736 {
19737 test -f "$1" && test -x "$1"
19738 } # as_fn_executable_p
19739 as_test_x='test -x'
19740 as_executable_p=as_fn_executable_p
19741
19742 # Sed expression to map a string onto a valid CPP name.
19743 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19744
19745 # Sed expression to map a string onto a valid variable name.
19746 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19747
19748
19749 exec 6>&1
19750 ## ----------------------------------- ##
19751 ## Main body of $CONFIG_STATUS script. ##
19752 ## ----------------------------------- ##
19753 _ASEOF
19754 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19755
19756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19757 # Save the log message, to keep $0 and so on meaningful, and to
19758 # report actual input values of CONFIG_FILES etc. instead of their
19759 # values after options handling.
19760 ac_log="
19761 This file was extended by libsodium $as_me 1.0.16, which was
19762 generated by GNU Autoconf 2.69. Invocation command line was
19763
19764 CONFIG_FILES = $CONFIG_FILES
19765 CONFIG_HEADERS = $CONFIG_HEADERS
19766 CONFIG_LINKS = $CONFIG_LINKS
19767 CONFIG_COMMANDS = $CONFIG_COMMANDS
19768 $ $0 $@
19769
19770 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19771 "
19772
19773 _ACEOF
19774
19775 case $ac_config_files in *"
19776 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19777 esac
19778
19779
19780
19781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19782 # Files that config.status was made for.
19783 config_files="$ac_config_files"
19784 config_commands="$ac_config_commands"
19785
19786 _ACEOF
19787
19788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19789 ac_cs_usage="\
19790 \`$as_me' instantiates files and other configuration actions
19791 from templates according to the current configuration. Unless the files
19792 and actions are specified as TAGs, all are instantiated by default.
19793
19794 Usage: $0 [OPTION]... [TAG]...
19795
19796 -h, --help print this help, then exit
19797 -V, --version print version number and configuration settings, then exit
19798 --config print configuration, then exit
19799 -q, --quiet, --silent
19800 do not print progress messages
19801 -d, --debug don't remove temporary files
19802 --recheck update $as_me by reconfiguring in the same conditions
19803 --file=FILE[:TEMPLATE]
19804 instantiate the configuration file FILE
19805
19806 Configuration files:
19807 $config_files
19808
19809 Configuration commands:
19810 $config_commands
19811
19812 Report bugs to <https://github.com/jedisct1/libsodium/issues>.
19813 libsodium home page: <https://github.com/jedisct1/libsodium>."
19814
19815 _ACEOF
19816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19817 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19818 ac_cs_version="\\
19819 libsodium config.status 1.0.16
19820 configured by $0, generated by GNU Autoconf 2.69,
19821 with options \\"\$ac_cs_config\\"
19822
19823 Copyright (C) 2012 Free Software Foundation, Inc.
19824 This config.status script is free software; the Free Software Foundation
19825 gives unlimited permission to copy, distribute and modify it."
19826
19827 ac_pwd='$ac_pwd'
19828 srcdir='$srcdir'
19829 INSTALL='$INSTALL'
19830 MKDIR_P='$MKDIR_P'
19831 AWK='$AWK'
19832 test -n "\$AWK" || AWK=awk
19833 _ACEOF
19834
19835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19836 # The default lists apply if the user does not specify any file.
19837 ac_need_defaults=:
19838 while test $# != 0
19839 do
19840 case $1 in
19841 --*=?*)
19842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19844 ac_shift=:
19845 ;;
19846 --*=)
19847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19848 ac_optarg=
19849 ac_shift=:
19850 ;;
19851 *)
19852 ac_option=$1
19853 ac_optarg=$2
19854 ac_shift=shift
19855 ;;
19856 esac
19857
19858 case $ac_option in
19859 # Handling of the options.
19860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19861 ac_cs_recheck=: ;;
19862 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19863 $as_echo "$ac_cs_version"; exit ;;
19864 --config | --confi | --conf | --con | --co | --c )
19865 $as_echo "$ac_cs_config"; exit ;;
19866 --debug | --debu | --deb | --de | --d | -d )
19867 debug=: ;;
19868 --file | --fil | --fi | --f )
19869 $ac_shift
19870 case $ac_optarg in
19871 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19872 '') as_fn_error $? "missing file argument" ;;
19873 esac
19874 as_fn_append CONFIG_FILES " '$ac_optarg'"
19875 ac_need_defaults=false;;
19876 --he | --h | --help | --hel | -h )
19877 $as_echo "$ac_cs_usage"; exit ;;
19878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19879 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19880 ac_cs_silent=: ;;
19881
19882 # This is an error.
19883 -*) as_fn_error $? "unrecognized option: \`$1'
19884 Try \`$0 --help' for more information." ;;
19885
19886 *) as_fn_append ac_config_targets " $1"
19887 ac_need_defaults=false ;;
19888
19889 esac
19890 shift
19891 done
19892
19893 ac_configure_extra_args=
19894
19895 if $ac_cs_silent; then
19896 exec 6>/dev/null
19897 ac_configure_extra_args="$ac_configure_extra_args --silent"
19898 fi
19899
19900 _ACEOF
19901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19902 if \$ac_cs_recheck; then
19903 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19904 shift
19905 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19906 CONFIG_SHELL='$SHELL'
19907 export CONFIG_SHELL
19908 exec "\$@"
19909 fi
19910
19911 _ACEOF
19912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19913 exec 5>>config.log
19914 {
19915 echo
19916 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19917 ## Running $as_me. ##
19918 _ASBOX
19919 $as_echo "$ac_log"
19920 } >&5
19921
19922 _ACEOF
19923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19924 #
19925 # INIT-COMMANDS
19926 #
19927 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19928
19929
19930 # The HP-UX ksh and POSIX shell print the target directory to stdout
19931 # if CDPATH is set.
19932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19933
19934 sed_quote_subst='$sed_quote_subst'
19935 double_quote_subst='$double_quote_subst'
19936 delay_variable_subst='$delay_variable_subst'
19937 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19938 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19939 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19940 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19941 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19942 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19943 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19944 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19945 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19946 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19947 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19948 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19949 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19950 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19951 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19952 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19953 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19954 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19955 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19956 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19957 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19958 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19959 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19960 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19961 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19962 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19963 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19964 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19965 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19966 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19967 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19968 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19969 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19970 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19971 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19972 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19973 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19974 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19975 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19976 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19977 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19978 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19979 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19980 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19981 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19982 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19983 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19984 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19985 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19986 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19987 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19988 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19989 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19990 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19991 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19992 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19993 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19994 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19995 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"`'
19996 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19997 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19998 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19999 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20000 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20001 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20002 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20003 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20004 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20005 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20006 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20007 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20008 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20009 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20010 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20011 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20012 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20013 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20014 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20015 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20016 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20017 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20018 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20019 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20020 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20021 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20022 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20023 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20024 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20025 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20026 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20027 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20028 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20029 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20030 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20031 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20032 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20033 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20034 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20035 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20036 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20037 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20038 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20039 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20040 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20041 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20042 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20043 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20044 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20045 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20046 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20047 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20048 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20049 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20050 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20051 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20052 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20053 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20054 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20055 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20056 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20057 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20058 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20059 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20060 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20061 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20062 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20063 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20064 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20065 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20066 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20067 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20068 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20069 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20070 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20071 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20072 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20073
20074 LTCC='$LTCC'
20075 LTCFLAGS='$LTCFLAGS'
20076 compiler='$compiler_DEFAULT'
20077
20078 # A function that is used when there is no print builtin or printf.
20079 func_fallback_echo ()
20080 {
20081 eval 'cat <<_LTECHO_EOF
20082 \$1
20083 _LTECHO_EOF'
20084 }
20085
20086 # Quote evaled strings.
20087 for var in SHELL \
20088 ECHO \
20089 PATH_SEPARATOR \
20090 SED \
20091 GREP \
20092 EGREP \
20093 FGREP \
20094 LD \
20095 NM \
20096 LN_S \
20097 lt_SP2NL \
20098 lt_NL2SP \
20099 reload_flag \
20100 OBJDUMP \
20101 deplibs_check_method \
20102 file_magic_cmd \
20103 file_magic_glob \
20104 want_nocaseglob \
20105 DLLTOOL \
20106 sharedlib_from_linklib_cmd \
20107 AR \
20108 AR_FLAGS \
20109 archiver_list_spec \
20110 STRIP \
20111 RANLIB \
20112 CC \
20113 CFLAGS \
20114 compiler \
20115 lt_cv_sys_global_symbol_pipe \
20116 lt_cv_sys_global_symbol_to_cdecl \
20117 lt_cv_sys_global_symbol_to_import \
20118 lt_cv_sys_global_symbol_to_c_name_address \
20119 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20120 lt_cv_nm_interface \
20121 nm_file_list_spec \
20122 lt_cv_truncate_bin \
20123 lt_prog_compiler_no_builtin_flag \
20124 lt_prog_compiler_pic \
20125 lt_prog_compiler_wl \
20126 lt_prog_compiler_static \
20127 lt_cv_prog_compiler_c_o \
20128 need_locks \
20129 MANIFEST_TOOL \
20130 DSYMUTIL \
20131 NMEDIT \
20132 LIPO \
20133 OTOOL \
20134 OTOOL64 \
20135 shrext_cmds \
20136 export_dynamic_flag_spec \
20137 whole_archive_flag_spec \
20138 compiler_needs_object \
20139 with_gnu_ld \
20140 allow_undefined_flag \
20141 no_undefined_flag \
20142 hardcode_libdir_flag_spec \
20143 hardcode_libdir_separator \
20144 exclude_expsyms \
20145 include_expsyms \
20146 file_list_spec \
20147 variables_saved_for_relink \
20148 libname_spec \
20149 library_names_spec \
20150 soname_spec \
20151 install_override_mode \
20152 finish_eval \
20153 old_striplib \
20154 striplib \
20155 AS; do
20156 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20157 *[\\\\\\\`\\"\\\$]*)
20158 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20159 ;;
20160 *)
20161 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20162 ;;
20163 esac
20164 done
20165
20166 # Double-quote double-evaled strings.
20167 for var in reload_cmds \
20168 old_postinstall_cmds \
20169 old_postuninstall_cmds \
20170 old_archive_cmds \
20171 extract_expsyms_cmds \
20172 old_archive_from_new_cmds \
20173 old_archive_from_expsyms_cmds \
20174 archive_cmds \
20175 archive_expsym_cmds \
20176 module_cmds \
20177 module_expsym_cmds \
20178 export_symbols_cmds \
20179 prelink_cmds \
20180 postlink_cmds \
20181 postinstall_cmds \
20182 postuninstall_cmds \
20183 finish_cmds \
20184 sys_lib_search_path_spec \
20185 configure_time_dlsearch_path \
20186 configure_time_lt_sys_library_path; do
20187 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20188 *[\\\\\\\`\\"\\\$]*)
20189 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20190 ;;
20191 *)
20192 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20193 ;;
20194 esac
20195 done
20196
20197 ac_aux_dir='$ac_aux_dir'
20198
20199 # See if we are running on zsh, and set the options that allow our
20200 # commands through without removal of \ escapes INIT.
20201 if test -n "\${ZSH_VERSION+set}"; then
20202 setopt NO_GLOB_SUBST
20203 fi
20204
20205
20206 PACKAGE='$PACKAGE'
20207 VERSION='$VERSION'
20208 RM='$RM'
20209 ofile='$ofile'
20210
20211
20212
20213
20214 _ACEOF
20215
20216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20217
20218 # Handling of arguments.
20219 for ac_config_target in $ac_config_targets
20220 do
20221 case $ac_config_target in
20222 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20223 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20224 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20225 "builds/Makefile") CONFIG_FILES="$CONFIG_FILES builds/Makefile" ;;
20226 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
20227 "dist-build/Makefile") CONFIG_FILES="$CONFIG_FILES dist-build/Makefile" ;;
20228 "libsodium.pc") CONFIG_FILES="$CONFIG_FILES libsodium.pc" ;;
20229 "libsodium-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libsodium-uninstalled.pc" ;;
20230 "msvc-scripts/Makefile") CONFIG_FILES="$CONFIG_FILES msvc-scripts/Makefile" ;;
20231 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20232 "src/libsodium/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/Makefile" ;;
20233 "src/libsodium/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/Makefile" ;;
20234 "src/libsodium/include/sodium/version.h") CONFIG_FILES="$CONFIG_FILES src/libsodium/include/sodium/version.h" ;;
20235 "test/default/Makefile") CONFIG_FILES="$CONFIG_FILES test/default/Makefile" ;;
20236 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20237
20238 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20239 esac
20240 done
20241
20242
20243 # If the user did not use the arguments to specify the items to instantiate,
20244 # then the envvar interface is used. Set only those that are not.
20245 # We use the long form for the default assignment because of an extremely
20246 # bizarre bug on SunOS 4.1.3.
20247 if $ac_need_defaults; then
20248 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20249 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20250 fi
20251
20252 # Have a temporary directory for convenience. Make it in the build tree
20253 # simply because there is no reason against having it here, and in addition,
20254 # creating and moving files from /tmp can sometimes cause problems.
20255 # Hook for its removal unless debugging.
20256 # Note that there is a small window in which the directory will not be cleaned:
20257 # after its creation but before its name has been assigned to `$tmp'.
20258 $debug ||
20259 {
20260 tmp= ac_tmp=
20261 trap 'exit_status=$?
20262 : "${ac_tmp:=$tmp}"
20263 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20264 ' 0
20265 trap 'as_fn_exit 1' 1 2 13 15
20266 }
20267 # Create a (secure) tmp directory for tmp files.
20268
20269 {
20270 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20271 test -d "$tmp"
20272 } ||
20273 {
20274 tmp=./conf$$-$RANDOM
20275 (umask 077 && mkdir "$tmp")
20276 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20277 ac_tmp=$tmp
20278
20279 # Set up the scripts for CONFIG_FILES section.
20280 # No need to generate them if there are no CONFIG_FILES.
20281 # This happens for instance with `./config.status config.h'.
20282 if test -n "$CONFIG_FILES"; then
20283
20284
20285 ac_cr=`echo X | tr X '\015'`
20286 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20287 # But we know of no other shell where ac_cr would be empty at this
20288 # point, so we can use a bashism as a fallback.
20289 if test "x$ac_cr" = x; then
20290 eval ac_cr=\$\'\\r\'
20291 fi
20292 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20293 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20294 ac_cs_awk_cr='\\r'
20295 else
20296 ac_cs_awk_cr=$ac_cr
20297 fi
20298
20299 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20300 _ACEOF
20301
20302
20303 {
20304 echo "cat >conf$$subs.awk <<_ACEOF" &&
20305 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20306 echo "_ACEOF"
20307 } >conf$$subs.sh ||
20308 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20309 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20310 ac_delim='%!_!# '
20311 for ac_last_try in false false false false false :; do
20312 . ./conf$$subs.sh ||
20313 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20314
20315 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20316 if test $ac_delim_n = $ac_delim_num; then
20317 break
20318 elif $ac_last_try; then
20319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20320 else
20321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20322 fi
20323 done
20324 rm -f conf$$subs.sh
20325
20326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20327 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20328 _ACEOF
20329 sed -n '
20330 h
20331 s/^/S["/; s/!.*/"]=/
20332 p
20333 g
20334 s/^[^!]*!//
20335 :repl
20336 t repl
20337 s/'"$ac_delim"'$//
20338 t delim
20339 :nl
20340 h
20341 s/\(.\{148\}\)..*/\1/
20342 t more1
20343 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20344 p
20345 n
20346 b repl
20347 :more1
20348 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20349 p
20350 g
20351 s/.\{148\}//
20352 t nl
20353 :delim
20354 h
20355 s/\(.\{148\}\)..*/\1/
20356 t more2
20357 s/["\\]/\\&/g; s/^/"/; s/$/"/
20358 p
20359 b
20360 :more2
20361 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20362 p
20363 g
20364 s/.\{148\}//
20365 t delim
20366 ' <conf$$subs.awk | sed '
20367 /^[^""]/{
20368 N
20369 s/\n//
20370 }
20371 ' >>$CONFIG_STATUS || ac_write_fail=1
20372 rm -f conf$$subs.awk
20373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20374 _ACAWK
20375 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20376 for (key in S) S_is_set[key] = 1
20377 FS = ""
20378
20379 }
20380 {
20381 line = $ 0
20382 nfields = split(line, field, "@")
20383 substed = 0
20384 len = length(field[1])
20385 for (i = 2; i < nfields; i++) {
20386 key = field[i]
20387 keylen = length(key)
20388 if (S_is_set[key]) {
20389 value = S[key]
20390 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20391 len += length(value) + length(field[++i])
20392 substed = 1
20393 } else
20394 len += 1 + keylen
20395 }
20396
20397 print line
20398 }
20399
20400 _ACAWK
20401 _ACEOF
20402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20403 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20404 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20405 else
20406 cat
20407 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20408 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20409 _ACEOF
20410
20411 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20412 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20413 # trailing colons and then remove the whole line if VPATH becomes empty
20414 # (actually we leave an empty line to preserve line numbers).
20415 if test "x$srcdir" = x.; then
20416 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20417 h
20418 s///
20419 s/^/:/
20420 s/[ ]*$/:/
20421 s/:\$(srcdir):/:/g
20422 s/:\${srcdir}:/:/g
20423 s/:@srcdir@:/:/g
20424 s/^:*//
20425 s/:*$//
20426 x
20427 s/\(=[ ]*\).*/\1/
20428 G
20429 s/\n//
20430 s/^[^=]*=[ ]*$//
20431 }'
20432 fi
20433
20434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20435 fi # test -n "$CONFIG_FILES"
20436
20437
20438 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
20439 shift
20440 for ac_tag
20441 do
20442 case $ac_tag in
20443 :[FHLC]) ac_mode=$ac_tag; continue;;
20444 esac
20445 case $ac_mode$ac_tag in
20446 :[FHL]*:*);;
20447 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20448 :[FH]-) ac_tag=-:-;;
20449 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20450 esac
20451 ac_save_IFS=$IFS
20452 IFS=:
20453 set x $ac_tag
20454 IFS=$ac_save_IFS
20455 shift
20456 ac_file=$1
20457 shift
20458
20459 case $ac_mode in
20460 :L) ac_source=$1;;
20461 :[FH])
20462 ac_file_inputs=
20463 for ac_f
20464 do
20465 case $ac_f in
20466 -) ac_f="$ac_tmp/stdin";;
20467 *) # Look for the file first in the build tree, then in the source tree
20468 # (if the path is not absolute). The absolute path cannot be DOS-style,
20469 # because $ac_f cannot contain `:'.
20470 test -f "$ac_f" ||
20471 case $ac_f in
20472 [\\/$]*) false;;
20473 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20474 esac ||
20475 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20476 esac
20477 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20478 as_fn_append ac_file_inputs " '$ac_f'"
20479 done
20480
20481 # Let's still pretend it is `configure' which instantiates (i.e., don't
20482 # use $as_me), people would be surprised to read:
20483 # /* config.h. Generated by config.status. */
20484 configure_input='Generated from '`
20485 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20486 `' by configure.'
20487 if test x"$ac_file" != x-; then
20488 configure_input="$ac_file. $configure_input"
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20490 $as_echo "$as_me: creating $ac_file" >&6;}
20491 fi
20492 # Neutralize special characters interpreted by sed in replacement strings.
20493 case $configure_input in #(
20494 *\&* | *\|* | *\\* )
20495 ac_sed_conf_input=`$as_echo "$configure_input" |
20496 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20497 *) ac_sed_conf_input=$configure_input;;
20498 esac
20499
20500 case $ac_tag in
20501 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20503 esac
20504 ;;
20505 esac
20506
20507 ac_dir=`$as_dirname -- "$ac_file" ||
20508 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20509 X"$ac_file" : 'X\(//\)[^/]' \| \
20510 X"$ac_file" : 'X\(//\)$' \| \
20511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20512 $as_echo X"$ac_file" |
20513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20514 s//\1/
20515 q
20516 }
20517 /^X\(\/\/\)[^/].*/{
20518 s//\1/
20519 q
20520 }
20521 /^X\(\/\/\)$/{
20522 s//\1/
20523 q
20524 }
20525 /^X\(\/\).*/{
20526 s//\1/
20527 q
20528 }
20529 s/.*/./; q'`
20530 as_dir="$ac_dir"; as_fn_mkdir_p
20531 ac_builddir=.
20532
20533 case "$ac_dir" in
20534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20535 *)
20536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20537 # A ".." for each directory in $ac_dir_suffix.
20538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20539 case $ac_top_builddir_sub in
20540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20542 esac ;;
20543 esac
20544 ac_abs_top_builddir=$ac_pwd
20545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20546 # for backward compatibility:
20547 ac_top_builddir=$ac_top_build_prefix
20548
20549 case $srcdir in
20550 .) # We are building in place.
20551 ac_srcdir=.
20552 ac_top_srcdir=$ac_top_builddir_sub
20553 ac_abs_top_srcdir=$ac_pwd ;;
20554 [\\/]* | ?:[\\/]* ) # Absolute name.
20555 ac_srcdir=$srcdir$ac_dir_suffix;
20556 ac_top_srcdir=$srcdir
20557 ac_abs_top_srcdir=$srcdir ;;
20558 *) # Relative name.
20559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20560 ac_top_srcdir=$ac_top_build_prefix$srcdir
20561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20562 esac
20563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20564
20565
20566 case $ac_mode in
20567 :F)
20568 #
20569 # CONFIG_FILE
20570 #
20571
20572 case $INSTALL in
20573 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20574 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20575 esac
20576 ac_MKDIR_P=$MKDIR_P
20577 case $MKDIR_P in
20578 [\\/$]* | ?:[\\/]* ) ;;
20579 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20580 esac
20581 _ACEOF
20582
20583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20584 # If the template does not know about datarootdir, expand it.
20585 # FIXME: This hack should be removed a few years after 2.60.
20586 ac_datarootdir_hack=; ac_datarootdir_seen=
20587 ac_sed_dataroot='
20588 /datarootdir/ {
20589 p
20590 q
20591 }
20592 /@datadir@/p
20593 /@docdir@/p
20594 /@infodir@/p
20595 /@localedir@/p
20596 /@mandir@/p'
20597 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20598 *datarootdir*) ac_datarootdir_seen=yes;;
20599 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20601 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20602 _ACEOF
20603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20604 ac_datarootdir_hack='
20605 s&@datadir@&$datadir&g
20606 s&@docdir@&$docdir&g
20607 s&@infodir@&$infodir&g
20608 s&@localedir@&$localedir&g
20609 s&@mandir@&$mandir&g
20610 s&\\\${datarootdir}&$datarootdir&g' ;;
20611 esac
20612 _ACEOF
20613
20614 # Neutralize VPATH when `$srcdir' = `.'.
20615 # Shell code in configure.ac might set extrasub.
20616 # FIXME: do we really want to maintain this feature?
20617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20618 ac_sed_extra="$ac_vpsub
20619 $extrasub
20620 _ACEOF
20621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20622 :t
20623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20624 s|@configure_input@|$ac_sed_conf_input|;t t
20625 s&@top_builddir@&$ac_top_builddir_sub&;t t
20626 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20627 s&@srcdir@&$ac_srcdir&;t t
20628 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20629 s&@top_srcdir@&$ac_top_srcdir&;t t
20630 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20631 s&@builddir@&$ac_builddir&;t t
20632 s&@abs_builddir@&$ac_abs_builddir&;t t
20633 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20634 s&@INSTALL@&$ac_INSTALL&;t t
20635 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20636 $ac_datarootdir_hack
20637 "
20638 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20639 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20640
20641 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20642 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20643 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20644 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20646 which seems to be undefined. Please make sure it is defined" >&5
20647 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20648 which seems to be undefined. Please make sure it is defined" >&2;}
20649
20650 rm -f "$ac_tmp/stdin"
20651 case $ac_file in
20652 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20653 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20654 esac \
20655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20656 ;;
20657
20658
20659 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20660 $as_echo "$as_me: executing $ac_file commands" >&6;}
20661 ;;
20662 esac
20663
20664
20665 case $ac_file$ac_mode in
20666 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20667 # Older Autoconf quotes --file arguments for eval, but not when files
20668 # are listed without --file. Let's play safe and only enable the eval
20669 # if we detect the quoting.
20670 case $CONFIG_FILES in
20671 *\'*) eval set x "$CONFIG_FILES" ;;
20672 *) set x $CONFIG_FILES ;;
20673 esac
20674 shift
20675 for mf
20676 do
20677 # Strip MF so we end up with the name of the file.
20678 mf=`echo "$mf" | sed -e 's/:.*$//'`
20679 # Check whether this is an Automake generated Makefile or not.
20680 # We used to match only the files named 'Makefile.in', but
20681 # some people rename them; so instead we look at the file content.
20682 # Grep'ing the first line is not enough: some people post-process
20683 # each Makefile.in and add a new line on top of each file to say so.
20684 # Grep'ing the whole file is not good either: AIX grep has a line
20685 # limit of 2048, but all sed's we know have understand at least 4000.
20686 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20687 dirpart=`$as_dirname -- "$mf" ||
20688 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20689 X"$mf" : 'X\(//\)[^/]' \| \
20690 X"$mf" : 'X\(//\)$' \| \
20691 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20692 $as_echo X"$mf" |
20693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20694 s//\1/
20695 q
20696 }
20697 /^X\(\/\/\)[^/].*/{
20698 s//\1/
20699 q
20700 }
20701 /^X\(\/\/\)$/{
20702 s//\1/
20703 q
20704 }
20705 /^X\(\/\).*/{
20706 s//\1/
20707 q
20708 }
20709 s/.*/./; q'`
20710 else
20711 continue
20712 fi
20713 # Extract the definition of DEPDIR, am__include, and am__quote
20714 # from the Makefile without running 'make'.
20715 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20716 test -z "$DEPDIR" && continue
20717 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20718 test -z "$am__include" && continue
20719 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20720 # Find all dependency output files, they are included files with
20721 # $(DEPDIR) in their names. We invoke sed twice because it is the
20722 # simplest approach to changing $(DEPDIR) to its actual value in the
20723 # expansion.
20724 for file in `sed -n "
20725 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20726 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20727 # Make sure the directory exists.
20728 test -f "$dirpart/$file" && continue
20729 fdir=`$as_dirname -- "$file" ||
20730 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20731 X"$file" : 'X\(//\)[^/]' \| \
20732 X"$file" : 'X\(//\)$' \| \
20733 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20734 $as_echo X"$file" |
20735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20736 s//\1/
20737 q
20738 }
20739 /^X\(\/\/\)[^/].*/{
20740 s//\1/
20741 q
20742 }
20743 /^X\(\/\/\)$/{
20744 s//\1/
20745 q
20746 }
20747 /^X\(\/\).*/{
20748 s//\1/
20749 q
20750 }
20751 s/.*/./; q'`
20752 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20753 # echo "creating $dirpart/$file"
20754 echo '# dummy' > "$dirpart/$file"
20755 done
20756 done
20757 }
20758 ;;
20759 "libtool":C)
20760
20761 # See if we are running on zsh, and set the options that allow our
20762 # commands through without removal of \ escapes.
20763 if test -n "${ZSH_VERSION+set}"; then
20764 setopt NO_GLOB_SUBST
20765 fi
20766
20767 cfgfile=${ofile}T
20768 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20769 $RM "$cfgfile"
20770
20771 cat <<_LT_EOF >> "$cfgfile"
20772 #! $SHELL
20773 # Generated automatically by $as_me ($PACKAGE) $VERSION
20774 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20775 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20776
20777 # Provide generalized library-building support services.
20778 # Written by Gordon Matzigkeit, 1996
20779
20780 # Copyright (C) 2014 Free Software Foundation, Inc.
20781 # This is free software; see the source for copying conditions. There is NO
20782 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20783
20784 # GNU Libtool is free software; you can redistribute it and/or modify
20785 # it under the terms of the GNU General Public License as published by
20786 # the Free Software Foundation; either version 2 of of the License, or
20787 # (at your option) any later version.
20788 #
20789 # As a special exception to the GNU General Public License, if you
20790 # distribute this file as part of a program or library that is built
20791 # using GNU Libtool, you may include this file under the same
20792 # distribution terms that you use for the rest of that program.
20793 #
20794 # GNU Libtool is distributed in the hope that it will be useful, but
20795 # WITHOUT ANY WARRANTY; without even the implied warranty of
20796 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20797 # GNU General Public License for more details.
20798 #
20799 # You should have received a copy of the GNU General Public License
20800 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20801
20802
20803 # The names of the tagged configurations supported by this script.
20804 available_tags=''
20805
20806 # Configured defaults for sys_lib_dlsearch_path munging.
20807 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20808
20809 # ### BEGIN LIBTOOL CONFIG
20810
20811 # Which release of libtool.m4 was used?
20812 macro_version=$macro_version
20813 macro_revision=$macro_revision
20814
20815 # Whether or not to build shared libraries.
20816 build_libtool_libs=$enable_shared
20817
20818 # Whether or not to build static libraries.
20819 build_old_libs=$enable_static
20820
20821 # What type of objects to build.
20822 pic_mode=$pic_mode
20823
20824 # Whether or not to optimize for fast installation.
20825 fast_install=$enable_fast_install
20826
20827 # Shared archive member basename,for filename based shared library versioning on AIX.
20828 shared_archive_member_spec=$shared_archive_member_spec
20829
20830 # Shell to use when invoking shell scripts.
20831 SHELL=$lt_SHELL
20832
20833 # An echo program that protects backslashes.
20834 ECHO=$lt_ECHO
20835
20836 # The PATH separator for the build system.
20837 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20838
20839 # The host system.
20840 host_alias=$host_alias
20841 host=$host
20842 host_os=$host_os
20843
20844 # The build system.
20845 build_alias=$build_alias
20846 build=$build
20847 build_os=$build_os
20848
20849 # A sed program that does not truncate output.
20850 SED=$lt_SED
20851
20852 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20853 Xsed="\$SED -e 1s/^X//"
20854
20855 # A grep program that handles long lines.
20856 GREP=$lt_GREP
20857
20858 # An ERE matcher.
20859 EGREP=$lt_EGREP
20860
20861 # A literal string matcher.
20862 FGREP=$lt_FGREP
20863
20864 # A BSD- or MS-compatible name lister.
20865 NM=$lt_NM
20866
20867 # Whether we need soft or hard links.
20868 LN_S=$lt_LN_S
20869
20870 # What is the maximum length of a command?
20871 max_cmd_len=$max_cmd_len
20872
20873 # Object file suffix (normally "o").
20874 objext=$ac_objext
20875
20876 # Executable file suffix (normally "").
20877 exeext=$exeext
20878
20879 # whether the shell understands "unset".
20880 lt_unset=$lt_unset
20881
20882 # turn spaces into newlines.
20883 SP2NL=$lt_lt_SP2NL
20884
20885 # turn newlines into spaces.
20886 NL2SP=$lt_lt_NL2SP
20887
20888 # convert \$build file names to \$host format.
20889 to_host_file_cmd=$lt_cv_to_host_file_cmd
20890
20891 # convert \$build files to toolchain format.
20892 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20893
20894 # An object symbol dumper.
20895 OBJDUMP=$lt_OBJDUMP
20896
20897 # Method to check whether dependent libraries are shared objects.
20898 deplibs_check_method=$lt_deplibs_check_method
20899
20900 # Command to use when deplibs_check_method = "file_magic".
20901 file_magic_cmd=$lt_file_magic_cmd
20902
20903 # How to find potential files when deplibs_check_method = "file_magic".
20904 file_magic_glob=$lt_file_magic_glob
20905
20906 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20907 want_nocaseglob=$lt_want_nocaseglob
20908
20909 # DLL creation program.
20910 DLLTOOL=$lt_DLLTOOL
20911
20912 # Command to associate shared and link libraries.
20913 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20914
20915 # The archiver.
20916 AR=$lt_AR
20917
20918 # Flags to create an archive.
20919 AR_FLAGS=$lt_AR_FLAGS
20920
20921 # How to feed a file listing to the archiver.
20922 archiver_list_spec=$lt_archiver_list_spec
20923
20924 # A symbol stripping program.
20925 STRIP=$lt_STRIP
20926
20927 # Commands used to install an old-style archive.
20928 RANLIB=$lt_RANLIB
20929 old_postinstall_cmds=$lt_old_postinstall_cmds
20930 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20931
20932 # Whether to use a lock for old archive extraction.
20933 lock_old_archive_extraction=$lock_old_archive_extraction
20934
20935 # A C compiler.
20936 LTCC=$lt_CC
20937
20938 # LTCC compiler flags.
20939 LTCFLAGS=$lt_CFLAGS
20940
20941 # Take the output of nm and produce a listing of raw symbols and C names.
20942 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20943
20944 # Transform the output of nm in a proper C declaration.
20945 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20946
20947 # Transform the output of nm into a list of symbols to manually relocate.
20948 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20949
20950 # Transform the output of nm in a C name address pair.
20951 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20952
20953 # Transform the output of nm in a C name address pair when lib prefix is needed.
20954 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20955
20956 # The name lister interface.
20957 nm_interface=$lt_lt_cv_nm_interface
20958
20959 # Specify filename containing input files for \$NM.
20960 nm_file_list_spec=$lt_nm_file_list_spec
20961
20962 # The root where to search for dependent libraries,and where our libraries should be installed.
20963 lt_sysroot=$lt_sysroot
20964
20965 # Command to truncate a binary pipe.
20966 lt_truncate_bin=$lt_lt_cv_truncate_bin
20967
20968 # The name of the directory that contains temporary libtool files.
20969 objdir=$objdir
20970
20971 # Used to examine libraries when file_magic_cmd begins with "file".
20972 MAGIC_CMD=$MAGIC_CMD
20973
20974 # Must we lock files when doing compilation?
20975 need_locks=$lt_need_locks
20976
20977 # Manifest tool.
20978 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20979
20980 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20981 DSYMUTIL=$lt_DSYMUTIL
20982
20983 # Tool to change global to local symbols on Mac OS X.
20984 NMEDIT=$lt_NMEDIT
20985
20986 # Tool to manipulate fat objects and archives on Mac OS X.
20987 LIPO=$lt_LIPO
20988
20989 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20990 OTOOL=$lt_OTOOL
20991
20992 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20993 OTOOL64=$lt_OTOOL64
20994
20995 # Old archive suffix (normally "a").
20996 libext=$libext
20997
20998 # Shared library suffix (normally ".so").
20999 shrext_cmds=$lt_shrext_cmds
21000
21001 # The commands to extract the exported symbol list from a shared archive.
21002 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21003
21004 # Variables whose values should be saved in libtool wrapper scripts and
21005 # restored at link time.
21006 variables_saved_for_relink=$lt_variables_saved_for_relink
21007
21008 # Do we need the "lib" prefix for modules?
21009 need_lib_prefix=$need_lib_prefix
21010
21011 # Do we need a version for libraries?
21012 need_version=$need_version
21013
21014 # Library versioning type.
21015 version_type=$version_type
21016
21017 # Shared library runtime path variable.
21018 runpath_var=$runpath_var
21019
21020 # Shared library path variable.
21021 shlibpath_var=$shlibpath_var
21022
21023 # Is shlibpath searched before the hard-coded library search path?
21024 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21025
21026 # Format of library name prefix.
21027 libname_spec=$lt_libname_spec
21028
21029 # List of archive names. First name is the real one, the rest are links.
21030 # The last name is the one that the linker finds with -lNAME
21031 library_names_spec=$lt_library_names_spec
21032
21033 # The coded name of the library, if different from the real name.
21034 soname_spec=$lt_soname_spec
21035
21036 # Permission mode override for installation of shared libraries.
21037 install_override_mode=$lt_install_override_mode
21038
21039 # Command to use after installation of a shared archive.
21040 postinstall_cmds=$lt_postinstall_cmds
21041
21042 # Command to use after uninstallation of a shared archive.
21043 postuninstall_cmds=$lt_postuninstall_cmds
21044
21045 # Commands used to finish a libtool library installation in a directory.
21046 finish_cmds=$lt_finish_cmds
21047
21048 # As "finish_cmds", except a single script fragment to be evaled but
21049 # not shown.
21050 finish_eval=$lt_finish_eval
21051
21052 # Whether we should hardcode library paths into libraries.
21053 hardcode_into_libs=$hardcode_into_libs
21054
21055 # Compile-time system search path for libraries.
21056 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21057
21058 # Detected run-time system search path for libraries.
21059 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21060
21061 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21062 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21063
21064 # Whether dlopen is supported.
21065 dlopen_support=$enable_dlopen
21066
21067 # Whether dlopen of programs is supported.
21068 dlopen_self=$enable_dlopen_self
21069
21070 # Whether dlopen of statically linked programs is supported.
21071 dlopen_self_static=$enable_dlopen_self_static
21072
21073 # Commands to strip libraries.
21074 old_striplib=$lt_old_striplib
21075 striplib=$lt_striplib
21076
21077 # Assembler program.
21078 AS=$lt_AS
21079
21080
21081 # The linker used to build libraries.
21082 LD=$lt_LD
21083
21084 # How to create reloadable object files.
21085 reload_flag=$lt_reload_flag
21086 reload_cmds=$lt_reload_cmds
21087
21088 # Commands used to build an old-style archive.
21089 old_archive_cmds=$lt_old_archive_cmds
21090
21091 # A language specific compiler.
21092 CC=$lt_compiler
21093
21094 # Is the compiler the GNU compiler?
21095 with_gcc=$GCC
21096
21097 # Compiler flag to turn off builtin functions.
21098 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21099
21100 # Additional compiler flags for building library objects.
21101 pic_flag=$lt_lt_prog_compiler_pic
21102
21103 # How to pass a linker flag through the compiler.
21104 wl=$lt_lt_prog_compiler_wl
21105
21106 # Compiler flag to prevent dynamic linking.
21107 link_static_flag=$lt_lt_prog_compiler_static
21108
21109 # Does compiler simultaneously support -c and -o options?
21110 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21111
21112 # Whether or not to add -lc for building shared libraries.
21113 build_libtool_need_lc=$archive_cmds_need_lc
21114
21115 # Whether or not to disallow shared libs when runtime libs are static.
21116 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21117
21118 # Compiler flag to allow reflexive dlopens.
21119 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21120
21121 # Compiler flag to generate shared objects directly from archives.
21122 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21123
21124 # Whether the compiler copes with passing no objects directly.
21125 compiler_needs_object=$lt_compiler_needs_object
21126
21127 # Create an old-style archive from a shared archive.
21128 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21129
21130 # Create a temporary old-style archive to link instead of a shared archive.
21131 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21132
21133 # Commands used to build a shared archive.
21134 archive_cmds=$lt_archive_cmds
21135 archive_expsym_cmds=$lt_archive_expsym_cmds
21136
21137 # Commands used to build a loadable module if different from building
21138 # a shared archive.
21139 module_cmds=$lt_module_cmds
21140 module_expsym_cmds=$lt_module_expsym_cmds
21141
21142 # Whether we are building with GNU ld or not.
21143 with_gnu_ld=$lt_with_gnu_ld
21144
21145 # Flag that allows shared libraries with undefined symbols to be built.
21146 allow_undefined_flag=$lt_allow_undefined_flag
21147
21148 # Flag that enforces no undefined symbols.
21149 no_undefined_flag=$lt_no_undefined_flag
21150
21151 # Flag to hardcode \$libdir into a binary during linking.
21152 # This must work even if \$libdir does not exist
21153 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21154
21155 # Whether we need a single "-rpath" flag with a separated argument.
21156 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21157
21158 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21159 # DIR into the resulting binary.
21160 hardcode_direct=$hardcode_direct
21161
21162 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21163 # DIR into the resulting binary and the resulting library dependency is
21164 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21165 # library is relocated.
21166 hardcode_direct_absolute=$hardcode_direct_absolute
21167
21168 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21169 # into the resulting binary.
21170 hardcode_minus_L=$hardcode_minus_L
21171
21172 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21173 # into the resulting binary.
21174 hardcode_shlibpath_var=$hardcode_shlibpath_var
21175
21176 # Set to "yes" if building a shared library automatically hardcodes DIR
21177 # into the library and all subsequent libraries and executables linked
21178 # against it.
21179 hardcode_automatic=$hardcode_automatic
21180
21181 # Set to yes if linker adds runtime paths of dependent libraries
21182 # to runtime path list.
21183 inherit_rpath=$inherit_rpath
21184
21185 # Whether libtool must link a program against all its dependency libraries.
21186 link_all_deplibs=$link_all_deplibs
21187
21188 # Set to "yes" if exported symbols are required.
21189 always_export_symbols=$always_export_symbols
21190
21191 # The commands to list exported symbols.
21192 export_symbols_cmds=$lt_export_symbols_cmds
21193
21194 # Symbols that should not be listed in the preloaded symbols.
21195 exclude_expsyms=$lt_exclude_expsyms
21196
21197 # Symbols that must always be exported.
21198 include_expsyms=$lt_include_expsyms
21199
21200 # Commands necessary for linking programs (against libraries) with templates.
21201 prelink_cmds=$lt_prelink_cmds
21202
21203 # Commands necessary for finishing linking programs.
21204 postlink_cmds=$lt_postlink_cmds
21205
21206 # Specify filename containing input files.
21207 file_list_spec=$lt_file_list_spec
21208
21209 # How to hardcode a shared library path into an executable.
21210 hardcode_action=$hardcode_action
21211
21212 # ### END LIBTOOL CONFIG
21213
21214 _LT_EOF
21215
21216 cat <<'_LT_EOF' >> "$cfgfile"
21217
21218 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21219
21220 # func_munge_path_list VARIABLE PATH
21221 # -----------------------------------
21222 # VARIABLE is name of variable containing _space_ separated list of
21223 # directories to be munged by the contents of PATH, which is string
21224 # having a format:
21225 # "DIR[:DIR]:"
21226 # string "DIR[ DIR]" will be prepended to VARIABLE
21227 # ":DIR[:DIR]"
21228 # string "DIR[ DIR]" will be appended to VARIABLE
21229 # "DIRP[:DIRP]::[DIRA:]DIRA"
21230 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21231 # "DIRA[ DIRA]" will be appended to VARIABLE
21232 # "DIR[:DIR]"
21233 # VARIABLE will be replaced by "DIR[ DIR]"
21234 func_munge_path_list ()
21235 {
21236 case x$2 in
21237 x)
21238 ;;
21239 *:)
21240 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21241 ;;
21242 x:*)
21243 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21244 ;;
21245 *::*)
21246 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21247 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21248 ;;
21249 *)
21250 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21251 ;;
21252 esac
21253 }
21254
21255
21256 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21257 func_cc_basename ()
21258 {
21259 for cc_temp in $*""; do
21260 case $cc_temp in
21261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21263 \-*) ;;
21264 *) break;;
21265 esac
21266 done
21267 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21268 }
21269
21270
21271 # ### END FUNCTIONS SHARED WITH CONFIGURE
21272
21273 _LT_EOF
21274
21275 case $host_os in
21276 aix3*)
21277 cat <<\_LT_EOF >> "$cfgfile"
21278 # AIX sometimes has problems with the GCC collect2 program. For some
21279 # reason, if we set the COLLECT_NAMES environment variable, the problems
21280 # vanish in a puff of smoke.
21281 if test set != "${COLLECT_NAMES+set}"; then
21282 COLLECT_NAMES=
21283 export COLLECT_NAMES
21284 fi
21285 _LT_EOF
21286 ;;
21287 esac
21288
21289
21290 ltmain=$ac_aux_dir/ltmain.sh
21291
21292
21293 # We use sed instead of cat because bash on DJGPP gets confused if
21294 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21295 # text mode, it properly converts lines to CR/LF. This bash problem
21296 # is reportedly fixed, but why not run on old versions too?
21297 sed '$q' "$ltmain" >> "$cfgfile" \
21298 || (rm -f "$cfgfile"; exit 1)
21299
21300 mv -f "$cfgfile" "$ofile" ||
21301 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21302 chmod +x "$ofile"
21303
21304 ;;
21305
21306 esac
21307 done # for ac_tag
21308
21309
21310 as_fn_exit 0
21311 _ACEOF
21312 ac_clean_files=$ac_clean_files_save
21313
21314 test $ac_write_fail = 0 ||
21315 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21316
21317
21318 # configure is writing to config.log, and then calls config.status.
21319 # config.status does its own redirection, appending to config.log.
21320 # Unfortunately, on DOS this fails, as config.log is still kept open
21321 # by configure, so config.status won't be able to write to it; its
21322 # output is simply discarded. So we exec the FD to /dev/null,
21323 # effectively closing config.log, so it can be properly (re)opened and
21324 # appended to by config.status. When coming back to configure, we
21325 # need to make the FD available again.
21326 if test "$no_create" != yes; then
21327 ac_cs_success=:
21328 ac_config_status_args=
21329 test "$silent" = yes &&
21330 ac_config_status_args="$ac_config_status_args --quiet"
21331 exec 5>/dev/null
21332 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21333 exec 5>>config.log
21334 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21335 # would make configure fail if this is the last instruction.
21336 $ac_cs_success || as_fn_exit 1
21337 fi
21338 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21340 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21341 fi
21342
21343