RISC-V: Make stack_save_restore tests more robust
[official-gcc.git] / libquadmath / configure
blob0b145a644c301910bf1061ab98ac9e51aad89011
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GCC Quad-precision Math Library 0.1.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='GCC Quad-precision Math Library'
589 PACKAGE_TARNAME='libquadmath'
590 PACKAGE_VERSION='0.1'
591 PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 get_gcc_base_ver
636 GENINSRC_FALSE
637 GENINSRC_TRUE
638 XCFLAGS
639 BUILD_LIBQUADMATH_FALSE
640 BUILD_LIBQUADMATH_TRUE
641 LIBQUAD_USE_SYMVER_SUN_FALSE
642 LIBQUAD_USE_SYMVER_SUN_TRUE
643 LIBQUAD_USE_SYMVER_GNU_FALSE
644 LIBQUAD_USE_SYMVER_GNU_TRUE
645 LIBQUAD_USE_SYMVER_FALSE
646 LIBQUAD_USE_SYMVER_TRUE
647 toolexeclibdir
648 toolexecdir
649 MAINT
650 MAINTAINER_MODE_FALSE
651 MAINTAINER_MODE_TRUE
652 enable_static
653 enable_shared
654 lt_host_flags
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 RANLIB
662 OBJDUMP
663 LN_S
665 ac_ct_DUMPBIN
666 DUMPBIN
668 FGREP
670 LIBTOOL
671 REPORT_BUGS_TEXI
672 REPORT_BUGS_TO
673 BUILD_INFO_FALSE
674 BUILD_INFO_TRUE
675 EGREP
676 GREP
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 am__nodep
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
695 AM_BACKSLASH
696 AM_DEFAULT_VERBOSITY
697 AM_DEFAULT_V
698 AM_V
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 multi_basedir
723 target_noncanonical
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_multilib
778 enable_silent_rules
779 enable_version_specific_runtime_libs
780 enable_dependency_tracking
781 with_bugurl
782 enable_shared
783 enable_static
784 with_pic
785 enable_fast_install
786 with_gnu_ld
787 enable_libtool_lock
788 enable_maintainer_mode
789 with_toolexeclibdir
790 enable_symvers
791 enable_cet
792 enable_generated_files_in_srcdir
793 with_gcc_major_version_only
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
803 CPP'
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
854 ac_prev=
855 ac_dashdash=
856 for ac_option
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
865 case $ac_option in
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
869 esac
871 # Accept the important Cygnus configure options, so we can diagnose typos.
873 case $ac_dashdash$ac_option in
875 ac_dashdash=yes ;;
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
894 --config-cache | -C)
895 cache_file=config.cache ;;
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1139 -with-* | --with-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=no ;;
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199 esac
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1211 esac
1212 done
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 esac
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1235 case $ac_val in
1236 */ )
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1239 esac
1240 # Be sure to have absolute directory names.
1241 case $ac_val in
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 esac
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267 test "$silent" = yes && exec 6>/dev/null
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1296 /^X\(\/\/\)$/{
1297 s//\1/
1300 /^X\(\/\).*/{
1301 s//\1/
1304 s/.*/./; q'`
1305 srcdir=$ac_confdir
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 srcdir=..
1309 else
1310 ac_srcdir_defaulted=no
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319 pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1338 # Report the --help message.
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
1344 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1351 Defaults for the options are specified in brackets.
1353 Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1375 For better control, use the options below.
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397 _ACEOF
1399 cat <<\_ACEOF
1401 Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1406 System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 --target=TARGET configure for building compilers for TARGET [HOST]
1410 _ACEOF
1413 if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1416 esac
1417 cat <<\_ACEOF
1419 Optional Features:
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-multilib build many library versions (default)
1424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
1426 --enable-version-specific-runtime-libs
1427 specify that runtime libraries should be installed
1428 in a compiler-specific directory
1429 --enable-dependency-tracking
1430 do not reject slow dependency extractors
1431 --disable-dependency-tracking
1432 speeds up one-time build
1433 --enable-shared[=PKGS] build shared libraries [default=yes]
1434 --enable-static[=PKGS] build static libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
1438 --enable-maintainer-mode
1439 enable make rules and dependencies not useful (and
1440 sometimes confusing) to the casual installer
1441 --disable-symvers disable symbol versioning for libquadmath
1442 --enable-cet enable Intel CET in target libraries [default=auto]
1443 --enable-generated-files-in-srcdir
1444 put copies of generated files in source dir intended
1445 for creating source tarballs for users without
1446 texinfo bison or flex
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-bugurl=URL Direct users to URL to report a bug
1452 --with-pic try to use only PIC/non-PIC objects [default=use
1453 both]
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455 --with-toolexeclibdir=DIR
1456 install libraries built with a cross compiler within
1458 --with-gcc-major-version-only
1459 use only GCC major number in filesystem paths
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 LIBS libraries to pass to the linker, e.g. -l<library>
1467 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1469 CPP C preprocessor
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1474 Report bugs to the package provider.
1475 _ACEOF
1476 ac_status=$?
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 GCC Quad-precision Math Library configure 0.1
1538 generated by GNU Autoconf 2.69
1540 Copyright (C) 2012 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544 exit
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext
1558 if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1582 ac_retval=1
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1587 } # ac_fn_c_try_compile
1589 # ac_fn_c_try_cpp LINENO
1590 # ----------------------
1591 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_cpp ()
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if { { ac_try="$ac_cpp conftest.$ac_ext"
1596 case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } > conftest.i && {
1611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 }; then :
1614 ac_retval=0
1615 else
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1619 ac_retval=1
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1624 } # ac_fn_c_try_cpp
1626 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1629 # the include files in INCLUDES and setting the cache variable VAR
1630 # accordingly.
1631 ac_fn_c_check_header_mongrel ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if eval \${$3+:} false; then :
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638 $as_echo_n "(cached) " >&6
1640 eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1643 else
1644 # Is the header compilable?
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1646 $as_echo_n "checking $2 usability... " >&6; }
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_compile "$LINENO"; then :
1653 ac_header_compiler=yes
1654 else
1655 ac_header_compiler=no
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1659 $as_echo "$ac_header_compiler" >&6; }
1661 # Is the header present?
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1663 $as_echo_n "checking $2 presence... " >&6; }
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_cpp "$LINENO"; then :
1669 ac_header_preproc=yes
1670 else
1671 ac_header_preproc=no
1673 rm -f conftest.err conftest.i conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1675 $as_echo "$ac_header_preproc" >&6; }
1677 # So? What about this header?
1678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1679 yes:no: )
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1681 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1685 no:yes:* )
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1687 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1689 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1691 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1693 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1695 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1697 esac
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701 $as_echo_n "(cached) " >&6
1702 else
1703 eval "$3=\$ac_header_compiler"
1705 eval ac_res=\$$3
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 } # ac_fn_c_check_header_mongrel
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=$ac_status
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1753 } # ac_fn_c_try_run
1755 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists and can be compiled using the include files in
1758 # INCLUDES, setting the cache variable VAR accordingly.
1759 ac_fn_c_check_header_compile ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766 else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"; then :
1773 eval "$3=yes"
1774 else
1775 eval "$3=no"
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 } # ac_fn_c_check_header_compile
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_link ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 test -x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1830 } # ac_fn_c_try_link
1832 # ac_fn_c_check_func LINENO FUNC VAR
1833 # ----------------------------------
1834 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1835 ac_fn_c_check_func ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 if test x$gcc_no_link = xyes; then
1844 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850 #define $2 innocuous_$2
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1857 #ifdef __STDC__
1858 # include <limits.h>
1859 #else
1860 # include <assert.h>
1861 #endif
1863 #undef $2
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1880 main ()
1882 return $2 ();
1884 return 0;
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889 else
1890 eval "$3=no"
1892 rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 } # ac_fn_c_check_func
1901 cat >config.log <<_ACEOF
1902 This file contains any messages produced by compilers while
1903 running configure, to aid debugging if configure makes a mistake.
1905 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1906 generated by GNU Autoconf 2.69. Invocation command line was
1908 $ $0 $@
1910 _ACEOF
1911 exec 5>>config.log
1913 cat <<_ASUNAME
1914 ## --------- ##
1915 ## Platform. ##
1916 ## --------- ##
1918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1927 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1935 _ASUNAME
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 $as_echo "PATH: $as_dir"
1943 done
1944 IFS=$as_save_IFS
1946 } >&5
1948 cat >&5 <<_ACEOF
1951 ## ----------- ##
1952 ## Core tests. ##
1953 ## ----------- ##
1955 _ACEOF
1958 # Keep a trace of the command line.
1959 # Strip out --no-create and --no-recursion so they do not pile up.
1960 # Strip out --silent because we don't want to record it for future runs.
1961 # Also quote any args containing shell meta-characters.
1962 # Make two passes to allow for proper duplicate-argument suppression.
1963 ac_configure_args=
1964 ac_configure_args0=
1965 ac_configure_args1=
1966 ac_must_keep_next=false
1967 for ac_pass in 1 2
1969 for ac_arg
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
1976 *\'*)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 esac
1979 case $ac_pass in
1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1985 else
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1995 -* ) ac_must_keep_next=true ;;
1996 esac
1998 as_fn_append ac_configure_args " '$ac_arg'"
2000 esac
2001 done
2002 done
2003 { ac_configure_args0=; unset ac_configure_args0;}
2004 { ac_configure_args1=; unset ac_configure_args1;}
2006 # When interrupted or exit'd, cleanup temporary files, and complete
2007 # config.log. We remove comments because anyway the quotes in there
2008 # would cause problems or look ugly.
2009 # WARNING: Use '\'' to represent an apostrophe within the trap.
2010 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011 trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2014 echo
2016 $as_echo "## ---------------- ##
2017 ## Cache variables. ##
2018 ## ---------------- ##"
2019 echo
2020 # The following way of writing the cache mishandles newlines in values,
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in #(
2025 *${as_nl}*)
2026 case $ac_var in #(
2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 esac
2030 case $ac_var in #(
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2034 esac ;;
2035 esac
2036 done
2037 (set) 2>&1 |
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
2040 sed -n \
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 ;; #(
2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2047 esac |
2048 sort
2050 echo
2052 $as_echo "## ----------------- ##
2053 ## Output variables. ##
2054 ## ----------------- ##"
2055 echo
2056 for ac_var in $ac_subst_vars
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2066 if test -n "$ac_subst_files"; then
2067 $as_echo "## ------------------- ##
2068 ## File substitutions. ##
2069 ## ------------------- ##"
2070 echo
2071 for ac_var in $ac_subst_files
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
2078 done | sort
2079 echo
2082 if test -s confdefs.h; then
2083 $as_echo "## ----------- ##
2084 ## confdefs.h. ##
2085 ## ----------- ##"
2086 echo
2087 cat confdefs.h
2088 echo
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2093 } >&5
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 exit $exit_status
2098 for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100 done
2101 ac_signal=0
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest* confdefs.h
2106 $as_echo "/* confdefs.h */" > confdefs.h
2108 # Predefined preprocessor variables.
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_NAME "$PACKAGE_NAME"
2112 _ACEOF
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116 _ACEOF
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2120 _ACEOF
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_STRING "$PACKAGE_STRING"
2124 _ACEOF
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128 _ACEOF
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_URL "$PACKAGE_URL"
2132 _ACEOF
2135 # Let the site file select an alternate cache file if it wants to.
2136 # Prefer an explicitly selected file to automatically selected ones.
2137 ac_site_file1=NONE
2138 ac_site_file2=NONE
2139 if test -n "$CONFIG_SITE"; then
2140 # We do not want a PATH search for config.site.
2141 case $CONFIG_SITE in #((
2142 -*) ac_site_file1=./$CONFIG_SITE;;
2143 */*) ac_site_file1=$CONFIG_SITE;;
2144 *) ac_site_file1=./$CONFIG_SITE;;
2145 esac
2146 elif test "x$prefix" != xNONE; then
2147 ac_site_file1=$prefix/share/config.site
2148 ac_site_file2=$prefix/etc/config.site
2149 else
2150 ac_site_file1=$ac_default_prefix/share/config.site
2151 ac_site_file2=$ac_default_prefix/etc/config.site
2153 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2155 test "x$ac_site_file" = xNONE && continue
2156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159 sed 's/^/| /' "$ac_site_file" >&5
2160 . "$ac_site_file" \
2161 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163 as_fn_error $? "failed to load site script $ac_site_file
2164 See \`config.log' for more details" "$LINENO" 5; }
2166 done
2168 if test -r "$cache_file"; then
2169 # Some versions of bash will fail to source /dev/null (special files
2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2171 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173 $as_echo "$as_me: loading cache $cache_file" >&6;}
2174 case $cache_file in
2175 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176 *) . "./$cache_file";;
2177 esac
2179 else
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181 $as_echo "$as_me: creating cache $cache_file" >&6;}
2182 >$cache_file
2185 # Check that the precious variables saved in the cache have kept the same
2186 # value.
2187 ac_cache_corrupted=false
2188 for ac_var in $ac_precious_vars; do
2189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2190 eval ac_new_set=\$ac_env_${ac_var}_set
2191 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2192 eval ac_new_val=\$ac_env_${ac_var}_value
2193 case $ac_old_set,$ac_new_set in
2194 set,)
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2198 ,set)
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2202 ,);;
2204 if test "x$ac_old_val" != "x$ac_new_val"; then
2205 # differences in whitespace do not lead to failure.
2206 ac_old_val_w=`echo x $ac_old_val`
2207 ac_new_val_w=`echo x $ac_new_val`
2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211 ac_cache_corrupted=:
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215 eval $ac_var=\$ac_old_val
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2218 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2220 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2221 fi;;
2222 esac
2223 # Pass precious variables to config.status.
2224 if test "$ac_new_set" = set; then
2225 case $ac_new_val in
2226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 *) ac_arg=$ac_var=$ac_new_val ;;
2228 esac
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2231 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2232 esac
2234 done
2235 if $ac_cache_corrupted; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2240 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2242 ## -------------------- ##
2243 ## Main body of script. ##
2244 ## -------------------- ##
2246 ac_ext=c
2247 ac_cpp='$CPP $CPPFLAGS'
2248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256 ac_config_headers="$ac_config_headers config.h"
2259 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2261 # You will slowly go insane if you do not grok the following fact: when
2262 # building this library, the top-level /target/ becomes the library's /host/.
2264 # configure then causes --target to default to --host, exactly like any
2265 # other package using autoconf. Therefore, 'target' and 'host' will
2266 # always be the same. This makes sense both for native and cross compilers
2267 # just think about it for a little while. :-)
2269 # Also, if this library is being configured as part of a cross compiler, the
2270 # top-level configure script will pass the "real" host as $with_cross_host.
2272 # Do not delete or change the following two lines. For why, see
2273 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2274 ac_aux_dir=
2275 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 if test -f "$ac_dir/install-sh"; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/install-sh -c"
2279 break
2280 elif test -f "$ac_dir/install.sh"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/install.sh -c"
2283 break
2284 elif test -f "$ac_dir/shtool"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/shtool install -c"
2287 break
2289 done
2290 if test -z "$ac_aux_dir"; then
2291 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2294 # These three variables are undocumented and unsupported,
2295 # and are intended to be withdrawn in a future Autoconf release.
2296 # They can cause serious problems if a builder's source tree is in a directory
2297 # whose full name contains unusual characters.
2298 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2299 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2300 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2303 # Make sure we can run config.sub.
2304 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2305 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2308 $as_echo_n "checking build system type... " >&6; }
2309 if ${ac_cv_build+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 ac_build_alias=$build_alias
2313 test "x$ac_build_alias" = x &&
2314 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2315 test "x$ac_build_alias" = x &&
2316 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2317 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2318 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2322 $as_echo "$ac_cv_build" >&6; }
2323 case $ac_cv_build in
2324 *-*-*) ;;
2325 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2326 esac
2327 build=$ac_cv_build
2328 ac_save_IFS=$IFS; IFS='-'
2329 set x $ac_cv_build
2330 shift
2331 build_cpu=$1
2332 build_vendor=$2
2333 shift; shift
2334 # Remember, the first character of IFS is used to create $*,
2335 # except with old shells:
2336 build_os=$*
2337 IFS=$ac_save_IFS
2338 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2342 $as_echo_n "checking host system type... " >&6; }
2343 if ${ac_cv_host+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 if test "x$host_alias" = x; then
2347 ac_cv_host=$ac_cv_build
2348 else
2349 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2350 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2355 $as_echo "$ac_cv_host" >&6; }
2356 case $ac_cv_host in
2357 *-*-*) ;;
2358 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2359 esac
2360 host=$ac_cv_host
2361 ac_save_IFS=$IFS; IFS='-'
2362 set x $ac_cv_host
2363 shift
2364 host_cpu=$1
2365 host_vendor=$2
2366 shift; shift
2367 # Remember, the first character of IFS is used to create $*,
2368 # except with old shells:
2369 host_os=$*
2370 IFS=$ac_save_IFS
2371 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2375 $as_echo_n "checking target system type... " >&6; }
2376 if ${ac_cv_target+:} false; then :
2377 $as_echo_n "(cached) " >&6
2378 else
2379 if test "x$target_alias" = x; then
2380 ac_cv_target=$ac_cv_host
2381 else
2382 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2383 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2388 $as_echo "$ac_cv_target" >&6; }
2389 case $ac_cv_target in
2390 *-*-*) ;;
2391 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2392 esac
2393 target=$ac_cv_target
2394 ac_save_IFS=$IFS; IFS='-'
2395 set x $ac_cv_target
2396 shift
2397 target_cpu=$1
2398 target_vendor=$2
2399 shift; shift
2400 # Remember, the first character of IFS is used to create $*,
2401 # except with old shells:
2402 target_os=$*
2403 IFS=$ac_save_IFS
2404 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2407 # The aliases save the names the user supplied, while $host etc.
2408 # will get canonicalized.
2409 test -n "$target_alias" &&
2410 test "$program_prefix$program_suffix$program_transform_name" = \
2411 NONENONEs,x,x, &&
2412 program_prefix=${target_alias}-
2414 case ${build_alias} in
2415 "") build_noncanonical=${build} ;;
2416 *) build_noncanonical=${build_alias} ;;
2417 esac
2419 case ${host_alias} in
2420 "") host_noncanonical=${build_noncanonical} ;;
2421 *) host_noncanonical=${host_alias} ;;
2422 esac
2424 case ${target_alias} in
2425 "") target_noncanonical=${host_noncanonical} ;;
2426 *) target_noncanonical=${target_alias} ;;
2427 esac
2432 # Default to --enable-multilib
2433 # Check whether --enable-multilib was given.
2434 if test "${enable_multilib+set}" = set; then :
2435 enableval=$enable_multilib; case "$enableval" in
2436 yes) multilib=yes ;;
2437 no) multilib=no ;;
2438 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2439 esac
2440 else
2441 multilib=yes
2445 # We may get other options which we leave undocumented:
2446 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2447 # See config-ml.in if you want the gory details.
2449 if test "$srcdir" = "."; then
2450 if test "$with_target_subdir" != "."; then
2451 multi_basedir="$srcdir/$with_multisrctop../.."
2452 else
2453 multi_basedir="$srcdir/$with_multisrctop.."
2455 else
2456 multi_basedir="$srcdir/.."
2460 # Even if the default multilib is not a cross compilation,
2461 # it may be that some of the other multilibs are.
2462 if test $cross_compiling = no && test $multilib = yes \
2463 && test "x${with_multisubdir}" != x ; then
2464 cross_compiling=maybe
2467 ac_config_commands="$ac_config_commands default-1"
2470 target_alias=${target_alias-$host_alias}
2473 am__api_version='1.15'
2475 # Find a good install program. We prefer a C program (faster),
2476 # so one script is as good as another. But avoid the broken or
2477 # incompatible versions:
2478 # SysV /etc/install, /usr/sbin/install
2479 # SunOS /usr/etc/install
2480 # IRIX /sbin/install
2481 # AIX /bin/install
2482 # AmigaOS /C/install, which installs bootblocks on floppy discs
2483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2486 # OS/2's system install, which has a completely different semantic
2487 # ./install, which can be erroneously created by make from ./install.sh.
2488 # Reject install programs that cannot install multiple files.
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2490 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2491 if test -z "$INSTALL"; then
2492 if ${ac_cv_path_install+:} false; then :
2493 $as_echo_n "(cached) " >&6
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 # Account for people who put trailing slashes in PATH elements.
2501 case $as_dir/ in #((
2502 ./ | .// | /[cC]/* | \
2503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2504 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2505 /usr/ucb/* ) ;;
2507 # OSF1 and SCO ODT 3.0 have their own names for install.
2508 # Don't use installbsd from OSF since it installs stuff as root
2509 # by default.
2510 for ac_prog in ginstall scoinst install; do
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2513 if test $ac_prog = install &&
2514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2515 # AIX install. It has an incompatible calling convention.
2517 elif test $ac_prog = install &&
2518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2519 # program-specific install script used by HP pwplus--don't use.
2521 else
2522 rm -rf conftest.one conftest.two conftest.dir
2523 echo one > conftest.one
2524 echo two > conftest.two
2525 mkdir conftest.dir
2526 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2527 test -s conftest.one && test -s conftest.two &&
2528 test -s conftest.dir/conftest.one &&
2529 test -s conftest.dir/conftest.two
2530 then
2531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2532 break 3
2536 done
2537 done
2539 esac
2541 done
2542 IFS=$as_save_IFS
2544 rm -rf conftest.one conftest.two conftest.dir
2547 if test "${ac_cv_path_install+set}" = set; then
2548 INSTALL=$ac_cv_path_install
2549 else
2550 # As a last resort, use the slow shell script. Don't cache a
2551 # value for INSTALL within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the value is a relative name.
2554 INSTALL=$ac_install_sh
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2558 $as_echo "$INSTALL" >&6; }
2560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561 # It thinks the first close brace ends the variable substitution.
2562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2569 $as_echo_n "checking whether build environment is sane... " >&6; }
2570 # Reject unsafe characters in $srcdir or the absolute working directory
2571 # name. Accept space and tab only in the latter.
2572 am_lf='
2574 case `pwd` in
2575 *[\\\"\#\$\&\'\`$am_lf]*)
2576 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2577 esac
2578 case $srcdir in
2579 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2580 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2581 esac
2583 # Do 'set' in a subshell so we don't clobber the current shell's
2584 # arguments. Must try -L first in case configure is actually a
2585 # symlink; some systems play weird games with the mod time of symlinks
2586 # (eg FreeBSD returns the mod time of the symlink's containing
2587 # directory).
2588 if (
2589 am_has_slept=no
2590 for am_try in 1 2; do
2591 echo "timestamp, slept: $am_has_slept" > conftest.file
2592 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2593 if test "$*" = "X"; then
2594 # -L didn't work.
2595 set X `ls -t "$srcdir/configure" conftest.file`
2597 if test "$*" != "X $srcdir/configure conftest.file" \
2598 && test "$*" != "X conftest.file $srcdir/configure"; then
2600 # If neither matched, then we have a broken ls. This can happen
2601 # if, for instance, CONFIG_SHELL is bash and it inherits a
2602 # broken ls alias from the environment. This has actually
2603 # happened. Such a system could not be considered "sane".
2604 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2605 alias in your environment" "$LINENO" 5
2607 if test "$2" = conftest.file || test $am_try -eq 2; then
2608 break
2610 # Just in case.
2611 sleep 1
2612 am_has_slept=yes
2613 done
2614 test "$2" = conftest.file
2616 then
2617 # Ok.
2619 else
2620 as_fn_error $? "newly created file is older than distributed files!
2621 Check your system clock" "$LINENO" 5
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624 $as_echo "yes" >&6; }
2625 # If we didn't sleep, we still need to ensure time stamps of config.status and
2626 # generated files are strictly newer.
2627 am_sleep_pid=
2628 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2629 ( sleep 1 ) &
2630 am_sleep_pid=$!
2633 rm -f conftest.file
2635 test "$program_prefix" != NONE &&
2636 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2637 # Use a double $ so make ignores it.
2638 test "$program_suffix" != NONE &&
2639 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2640 # Double any \ or $.
2641 # By default was `s,x,x', remove it if useless.
2642 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2643 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2645 # Expand $ac_aux_dir to an absolute path.
2646 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2648 if test x"${MISSING+set}" != xset; then
2649 case $am_aux_dir in
2650 *\ * | *\ *)
2651 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2653 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2654 esac
2656 # Use eval to expand $SHELL
2657 if eval "$MISSING --is-lightweight"; then
2658 am_missing_run="$MISSING "
2659 else
2660 am_missing_run=
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2662 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2665 if test x"${install_sh+set}" != xset; then
2666 case $am_aux_dir in
2667 *\ * | *\ *)
2668 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2670 install_sh="\${SHELL} $am_aux_dir/install-sh"
2671 esac
2674 # Installed binaries are usually stripped using 'strip' when the user
2675 # run "make install-strip". However 'strip' might not be the right
2676 # tool to use in cross-compilation environments, therefore Automake
2677 # will honor the 'STRIP' environment variable to overrule this program.
2678 if test "$cross_compiling" != no; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}strip; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_prog_STRIP+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 if test -n "$STRIP"; then
2688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2701 done
2702 done
2703 IFS=$as_save_IFS
2707 STRIP=$ac_cv_prog_STRIP
2708 if test -n "$STRIP"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2710 $as_echo "$STRIP" >&6; }
2711 else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2718 if test -z "$ac_cv_prog_STRIP"; then
2719 ac_ct_STRIP=$STRIP
2720 # Extract the first word of "strip", so it can be a program name with args.
2721 set dummy strip; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$ac_ct_STRIP"; then
2728 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_ac_ct_STRIP="strip"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2743 IFS=$as_save_IFS
2747 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2748 if test -n "$ac_ct_STRIP"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2750 $as_echo "$ac_ct_STRIP" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2756 if test "x$ac_ct_STRIP" = x; then
2757 STRIP=":"
2758 else
2759 case $cross_compiling:$ac_tool_warned in
2760 yes:)
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763 ac_tool_warned=yes ;;
2764 esac
2765 STRIP=$ac_ct_STRIP
2767 else
2768 STRIP="$ac_cv_prog_STRIP"
2772 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2775 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2776 if test -z "$MKDIR_P"; then
2777 if ${ac_cv_path_mkdir+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_prog in mkdir gmkdir; do
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2788 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2789 'mkdir (GNU coreutils) '* | \
2790 'mkdir (coreutils) '* | \
2791 'mkdir (fileutils) '4.1*)
2792 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2793 break 3;;
2794 esac
2795 done
2796 done
2797 done
2798 IFS=$as_save_IFS
2802 test -d ./--version && rmdir ./--version
2803 if test "${ac_cv_path_mkdir+set}" = set; then
2804 MKDIR_P="$ac_cv_path_mkdir -p"
2805 else
2806 # As a last resort, use the slow shell script. Don't cache a
2807 # value for MKDIR_P within a source directory, because that will
2808 # break other packages using the cache if that directory is
2809 # removed, or if the value is a relative name.
2810 MKDIR_P="$ac_install_sh -d"
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2814 $as_echo "$MKDIR_P" >&6; }
2816 for ac_prog in gawk mawk nawk awk
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_AWK+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$AWK"; then
2826 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_AWK="$ac_prog"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2839 done
2840 done
2841 IFS=$as_save_IFS
2845 AWK=$ac_cv_prog_AWK
2846 if test -n "$AWK"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2848 $as_echo "$AWK" >&6; }
2849 else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2855 test -n "$AWK" && break
2856 done
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2859 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2860 set x ${MAKE-make}
2861 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2862 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 cat >conftest.make <<\_ACEOF
2866 SHELL = /bin/sh
2867 all:
2868 @echo '@@@%%%=$(MAKE)=@@@%%%'
2869 _ACEOF
2870 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2871 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2872 *@@@%%%=?*=@@@%%%*)
2873 eval ac_cv_prog_make_${ac_make}_set=yes;;
2875 eval ac_cv_prog_make_${ac_make}_set=no;;
2876 esac
2877 rm -f conftest.make
2879 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2882 SET_MAKE=
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 SET_MAKE="MAKE=${MAKE-make}"
2889 rm -rf .tst 2>/dev/null
2890 mkdir .tst 2>/dev/null
2891 if test -d .tst; then
2892 am__leading_dot=.
2893 else
2894 am__leading_dot=_
2896 rmdir .tst 2>/dev/null
2898 # Check whether --enable-silent-rules was given.
2899 if test "${enable_silent_rules+set}" = set; then :
2900 enableval=$enable_silent_rules;
2903 case $enable_silent_rules in # (((
2904 yes) AM_DEFAULT_VERBOSITY=0;;
2905 no) AM_DEFAULT_VERBOSITY=1;;
2906 *) AM_DEFAULT_VERBOSITY=1;;
2907 esac
2908 am_make=${MAKE-make}
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2910 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2911 if ${am_cv_make_support_nested_variables+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if $as_echo 'TRUE=$(BAR$(V))
2915 BAR0=false
2916 BAR1=true
2918 am__doit:
2919 @$(TRUE)
2920 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2921 am_cv_make_support_nested_variables=yes
2922 else
2923 am_cv_make_support_nested_variables=no
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2927 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2928 if test $am_cv_make_support_nested_variables = yes; then
2929 AM_V='$(V)'
2930 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2931 else
2932 AM_V=$AM_DEFAULT_VERBOSITY
2933 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2935 AM_BACKSLASH='\'
2937 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2938 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2939 # is not polluted with repeated "-I."
2940 am__isrc=' -I$(srcdir)'
2941 # test to see if srcdir already configured
2942 if test -f $srcdir/config.status; then
2943 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2947 # test whether we have cygpath
2948 if test -z "$CYGPATH_W"; then
2949 if (cygpath --version) >/dev/null 2>/dev/null; then
2950 CYGPATH_W='cygpath -w'
2951 else
2952 CYGPATH_W=echo
2957 # Define the identity of the package.
2958 PACKAGE='libquadmath'
2959 VERSION='0.1'
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE "$PACKAGE"
2964 _ACEOF
2967 cat >>confdefs.h <<_ACEOF
2968 #define VERSION "$VERSION"
2969 _ACEOF
2971 # Some tools Automake needs.
2973 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2976 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2979 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2982 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2985 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2987 # For better backward compatibility. To be removed once Automake 1.9.x
2988 # dies out for good. For more background, see:
2989 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2990 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2991 mkdir_p='$(MKDIR_P)'
2993 # We need awk for the "check" target (and possibly the TAP driver). The
2994 # system "awk" is bad on some platforms.
2995 # Always define AMTAR for backward compatibility. Yes, it's still used
2996 # in the wild :-( We should find a proper way to deprecate it ...
2997 AMTAR='$${TAR-tar}'
3000 # We'll loop over all known methods to create a tar archive until one works.
3001 _am_tools='gnutar pax cpio none'
3003 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3010 # POSIX will say in a future version that running "rm -f" with no argument
3011 # is OK; and we want to be able to make that assumption in our Makefile
3012 # recipes. So use an aggressive probe to check that the usage we want is
3013 # actually supported "in the wild" to an acceptable degree.
3014 # See automake bug#10828.
3015 # To make any issue more visible, cause the running configure to be aborted
3016 # by default if the 'rm' program in use doesn't match our expectations; the
3017 # user can still override this though.
3018 if rm -f && rm -fr && rm -rf; then : OK; else
3019 cat >&2 <<'END'
3020 Oops!
3022 Your 'rm' program seems unable to run without file operands specified
3023 on the command line, even when the '-f' option is present. This is contrary
3024 to the behaviour of most rm programs out there, and not conforming with
3025 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3027 Please tell bug-automake@gnu.org about your system, including the value
3028 of your $PATH and any error possibly output before this message. This
3029 can help us improve future automake versions.
3032 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3033 echo 'Configuration will proceed anyway, since you have set the' >&2
3034 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3035 echo >&2
3036 else
3037 cat >&2 <<'END'
3038 Aborting the configuration process, to ensure you take notice of the issue.
3040 You can download and install GNU coreutils to get an 'rm' implementation
3041 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3043 If you want to complete the configuration process using your problematic
3044 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3045 to "yes", and re-run configure.
3048 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
3054 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
3055 # Check whether --enable-version-specific-runtime-libs was given.
3056 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3057 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3058 yes) version_specific_libs=yes ;;
3059 no) version_specific_libs=no ;;
3060 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3061 esac
3062 else
3063 version_specific_libs=no
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
3067 $as_echo "$version_specific_libs" >&6; }
3071 DEPDIR="${am__leading_dot}deps"
3073 ac_config_commands="$ac_config_commands depfiles"
3076 am_make=${MAKE-make}
3077 cat > confinc << 'END'
3078 am__doit:
3079 @echo this is the am__doit target
3080 .PHONY: am__doit
3082 # If we don't find an include directive, just comment out the code.
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3084 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3085 am__include="#"
3086 am__quote=
3087 _am_result=none
3088 # First try GNU make style include.
3089 echo "include confinc" > confmf
3090 # Ignore all kinds of additional output from 'make'.
3091 case `$am_make -s -f confmf 2> /dev/null` in #(
3092 *the\ am__doit\ target*)
3093 am__include=include
3094 am__quote=
3095 _am_result=GNU
3097 esac
3098 # Now try BSD make style include.
3099 if test "$am__include" = "#"; then
3100 echo '.include "confinc"' > confmf
3101 case `$am_make -s -f confmf 2> /dev/null` in #(
3102 *the\ am__doit\ target*)
3103 am__include=.include
3104 am__quote="\""
3105 _am_result=BSD
3107 esac
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3112 $as_echo "$_am_result" >&6; }
3113 rm -f confinc confmf
3115 # Check whether --enable-dependency-tracking was given.
3116 if test "${enable_dependency_tracking+set}" = set; then :
3117 enableval=$enable_dependency_tracking;
3120 if test "x$enable_dependency_tracking" != xno; then
3121 am_depcomp="$ac_aux_dir/depcomp"
3122 AMDEPBACKSLASH='\'
3123 am__nodep='_no'
3125 if test "x$enable_dependency_tracking" != xno; then
3126 AMDEP_TRUE=
3127 AMDEP_FALSE='#'
3128 else
3129 AMDEP_TRUE='#'
3130 AMDEP_FALSE=
3134 ac_ext=c
3135 ac_cpp='$CPP $CPPFLAGS'
3136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_CC+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3163 IFS=$as_save_IFS
3167 CC=$ac_cv_prog_CC
3168 if test -n "$CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170 $as_echo "$CC" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3178 if test -z "$ac_cv_prog_CC"; then
3179 ac_ct_CC=$CC
3180 # Extract the first word of "gcc", so it can be a program name with args.
3181 set dummy gcc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$ac_ct_CC"; then
3188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_ac_ct_CC="gcc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3201 done
3202 done
3203 IFS=$as_save_IFS
3207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208 if test -n "$ac_ct_CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3210 $as_echo "$ac_ct_CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3216 if test "x$ac_ct_CC" = x; then
3217 CC=""
3218 else
3219 case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225 CC=$ac_ct_CC
3227 else
3228 CC="$ac_cv_prog_CC"
3231 if test -z "$CC"; then
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}cc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_CC="${ac_tool_prefix}cc"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3254 done
3255 done
3256 IFS=$as_save_IFS
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3272 if test -z "$CC"; then
3273 # Extract the first word of "cc", so it can be a program name with args.
3274 set dummy cc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 ac_prog_rejected=no
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3292 ac_prog_rejected=yes
3293 continue
3295 ac_cv_prog_CC="cc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3299 done
3300 done
3301 IFS=$as_save_IFS
3303 if test $ac_prog_rejected = yes; then
3304 # We found a bogon in the path, so make sure we never use it.
3305 set dummy $ac_cv_prog_CC
3306 shift
3307 if test $# != 0; then
3308 # We chose a different compiler from the bogus one.
3309 # However, it has the same basename, so the bogon will be chosen
3310 # first if we set CC to just the basename; use the full file name.
3311 shift
3312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 $as_echo "$CC" >&6; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3328 if test -z "$CC"; then
3329 if test -n "$ac_tool_prefix"; then
3330 for ac_prog in cl.exe
3332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3353 done
3354 done
3355 IFS=$as_save_IFS
3359 CC=$ac_cv_prog_CC
3360 if test -n "$CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362 $as_echo "$CC" >&6; }
3363 else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3369 test -n "$CC" && break
3370 done
3372 if test -z "$CC"; then
3373 ac_ct_CC=$CC
3374 for ac_prog in cl.exe
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if test -n "$ac_ct_CC"; then
3384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_ac_ct_CC="$ac_prog"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3397 done
3398 done
3399 IFS=$as_save_IFS
3403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404 if test -n "$ac_ct_CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3406 $as_echo "$ac_ct_CC" >&6; }
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3413 test -n "$ac_ct_CC" && break
3414 done
3416 if test "x$ac_ct_CC" = x; then
3417 CC=""
3418 else
3419 case $cross_compiling:$ac_tool_warned in
3420 yes:)
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423 ac_tool_warned=yes ;;
3424 esac
3425 CC=$ac_ct_CC
3432 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $? "no acceptable C compiler found in \$PATH
3435 See \`config.log' for more details" "$LINENO" 5; }
3437 # Provide some information about the compiler.
3438 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439 set X $ac_compile
3440 ac_compiler=$2
3441 for ac_option in --version -v -V -qversion; do
3442 { { ac_try="$ac_compiler $ac_option >&5"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3450 ac_status=$?
3451 if test -s conftest.err; then
3452 sed '10a\
3453 ... rest of stderr output deleted ...
3454 10q' conftest.err >conftest.er1
3455 cat conftest.er1 >&5
3457 rm -f conftest.er1 conftest.err
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }
3460 done
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464 #include <stdio.h>
3466 main ()
3468 printf ("hello world\n");
3470 return 0;
3472 _ACEOF
3473 # FIXME: Cleanup?
3474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3475 (eval $ac_link) 2>&5
3476 ac_status=$?
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }; then :
3479 gcc_no_link=no
3480 else
3481 gcc_no_link=yes
3483 if test x$gcc_no_link = xyes; then
3484 # Setting cross_compile will disable run tests; it will
3485 # also disable AC_CHECK_FILE but that's generally
3486 # correct if we can't link.
3487 cross_compiling=yes
3488 EXEEXT=
3489 else
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3494 main ()
3498 return 0;
3500 _ACEOF
3501 ac_clean_files_save=$ac_clean_files
3502 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3503 # Try to create an executable without -o first, disregard a.out.
3504 # It will help us diagnose broken compilers, and finding out an intuition
3505 # of exeext.
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3507 $as_echo_n "checking whether the C compiler works... " >&6; }
3508 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3510 # The possible output files:
3511 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3513 ac_rmfiles=
3514 for ac_file in $ac_files
3516 case $ac_file in
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3519 esac
3520 done
3521 rm -f $ac_rmfiles
3523 if { { ac_try="$ac_link_default"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_link_default") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; then :
3534 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3535 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3536 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3537 # so that the user can short-circuit this test for compilers unknown to
3538 # Autoconf.
3539 for ac_file in $ac_files ''
3541 test -f "$ac_file" || continue
3542 case $ac_file in
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3545 [ab].out )
3546 # We found the default executable, but exeext='' is most
3547 # certainly right.
3548 break;;
3549 *.* )
3550 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3551 then :; else
3552 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3554 # We set ac_cv_exeext here because the later test for it is not
3555 # safe: cross compilers may not add the suffix if given an `-o'
3556 # argument, so we may need to know it at that point already.
3557 # Even if this section looks crufty: it has the advantage of
3558 # actually working.
3559 break;;
3561 break;;
3562 esac
3563 done
3564 test "$ac_cv_exeext" = no && ac_cv_exeext=
3566 else
3567 ac_file=''
3569 if test -z "$ac_file"; then :
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3572 $as_echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 as_fn_error 77 "C compiler cannot create executables
3578 See \`config.log' for more details" "$LINENO" 5; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3581 $as_echo "yes" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3584 $as_echo_n "checking for C compiler default output file name... " >&6; }
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3586 $as_echo "$ac_file" >&6; }
3587 ac_exeext=$ac_cv_exeext
3589 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3590 ac_clean_files=$ac_clean_files_save
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3592 $as_echo_n "checking for suffix of executables... " >&6; }
3593 if { { ac_try="$ac_link"
3594 case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_link") 2>&5
3601 ac_status=$?
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; then :
3604 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3605 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3606 # work properly (i.e., refer to `conftest.exe'), while it won't with
3607 # `rm'.
3608 for ac_file in conftest.exe conftest conftest.*; do
3609 test -f "$ac_file" || continue
3610 case $ac_file in
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3612 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613 break;;
3614 * ) break;;
3615 esac
3616 done
3617 else
3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3621 See \`config.log' for more details" "$LINENO" 5; }
3623 rm -f conftest conftest$ac_cv_exeext
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3625 $as_echo "$ac_cv_exeext" >&6; }
3627 rm -f conftest.$ac_ext
3628 EXEEXT=$ac_cv_exeext
3629 ac_exeext=$EXEEXT
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3632 #include <stdio.h>
3634 main ()
3636 FILE *f = fopen ("conftest.out", "w");
3637 return ferror (f) || fclose (f) != 0;
3640 return 0;
3642 _ACEOF
3643 ac_clean_files="$ac_clean_files conftest.out"
3644 # Check that the compiler produces executables we can run. If not, either
3645 # the compiler is broken, or we cross compile.
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3647 $as_echo_n "checking whether we are cross compiling... " >&6; }
3648 if test "$cross_compiling" != yes; then
3649 { { ac_try="$ac_link"
3650 case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655 $as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_link") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }
3660 if { ac_try='./conftest$ac_cv_exeext'
3661 { { case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_try") 2>&5
3668 ac_status=$?
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }; }; then
3671 cross_compiling=no
3672 else
3673 if test "$cross_compiling" = maybe; then
3674 cross_compiling=yes
3675 else
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $? "cannot run C compiled programs.
3679 If you meant to cross compile, use \`--host'.
3680 See \`config.log' for more details" "$LINENO" 5; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3685 $as_echo "$cross_compiling" >&6; }
3687 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3688 ac_clean_files=$ac_clean_files_save
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3691 $as_echo_n "checking for suffix of object files... " >&6; }
3692 if ${ac_cv_objext+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3699 main ()
3703 return 0;
3705 _ACEOF
3706 rm -f conftest.o conftest.obj
3707 if { { ac_try="$ac_compile"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_compile") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; then :
3718 for ac_file in conftest.o conftest.obj conftest.*; do
3719 test -f "$ac_file" || continue;
3720 case $ac_file in
3721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3723 break;;
3724 esac
3725 done
3726 else
3727 $as_echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732 as_fn_error $? "cannot compute suffix of object files: cannot compile
3733 See \`config.log' for more details" "$LINENO" 5; }
3735 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3738 $as_echo "$ac_cv_objext" >&6; }
3739 OBJEXT=$ac_cv_objext
3740 ac_objext=$OBJEXT
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3742 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3743 if ${ac_cv_c_compiler_gnu+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3750 main ()
3752 #ifndef __GNUC__
3753 choke me
3754 #endif
3757 return 0;
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_compiler_gnu=yes
3762 else
3763 ac_compiler_gnu=no
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3770 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3771 if test $ac_compiler_gnu = yes; then
3772 GCC=yes
3773 else
3774 GCC=
3776 ac_test_CFLAGS=${CFLAGS+set}
3777 ac_save_CFLAGS=$CFLAGS
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3779 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3780 if ${ac_cv_prog_cc_g+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 ac_save_c_werror_flag=$ac_c_werror_flag
3784 ac_c_werror_flag=yes
3785 ac_cv_prog_cc_g=no
3786 CFLAGS="-g"
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3791 main ()
3795 return 0;
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_g=yes
3800 else
3801 CFLAGS=""
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3806 main ()
3810 return 0;
3812 _ACEOF
3813 if ac_fn_c_try_compile "$LINENO"; then :
3815 else
3816 ac_c_werror_flag=$ac_save_c_werror_flag
3817 CFLAGS="-g"
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3822 main ()
3826 return 0;
3828 _ACEOF
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_g=yes
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_c_werror_flag=$ac_save_c_werror_flag
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3840 $as_echo "$ac_cv_prog_cc_g" >&6; }
3841 if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843 elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
3846 else
3847 CFLAGS="-g"
3849 else
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
3852 else
3853 CFLAGS=
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3857 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3858 if ${ac_cv_prog_cc_c89+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 ac_cv_prog_cc_c89=no
3862 ac_save_CC=$CC
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865 #include <stdarg.h>
3866 #include <stdio.h>
3867 struct stat;
3868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3869 struct buf { int x; };
3870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3871 static char *e (p, i)
3872 char **p;
3873 int i;
3875 return p[i];
3877 static char *f (char * (*g) (char **, int), char **p, ...)
3879 char *s;
3880 va_list v;
3881 va_start (v,p);
3882 s = g (p, va_arg (v,int));
3883 va_end (v);
3884 return s;
3887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3888 function prototypes and stuff, but not '\xHH' hex character constants.
3889 These don't provoke an error unfortunately, instead are silently treated
3890 as 'x'. The following induces an error, until -std is added to get
3891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3892 array size at least. It's necessary to write '\x00'==0 to get something
3893 that's true only with -std. */
3894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3896 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3897 inside strings and character constants. */
3898 #define FOO(x) 'x'
3899 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3901 int test (int i, double x);
3902 struct s1 {int (*f) (int a);};
3903 struct s2 {int (*f) (double a);};
3904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3905 int argc;
3906 char **argv;
3908 main ()
3910 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3912 return 0;
3914 _ACEOF
3915 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3918 CC="$ac_save_CC $ac_arg"
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_prog_cc_c89=$ac_arg
3922 rm -f core conftest.err conftest.$ac_objext
3923 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924 done
3925 rm -f conftest.$ac_ext
3926 CC=$ac_save_CC
3929 # AC_CACHE_VAL
3930 case "x$ac_cv_prog_cc_c89" in
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3933 $as_echo "none needed" >&6; } ;;
3934 xno)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3936 $as_echo "unsupported" >&6; } ;;
3938 CC="$CC $ac_cv_prog_cc_c89"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941 esac
3942 if test "x$ac_cv_prog_cc_c89" != xno; then :
3946 ac_ext=c
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 ac_ext=c
3953 ac_cpp='$CPP $CPPFLAGS'
3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3958 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3959 if ${am_cv_prog_cc_c_o+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3966 main ()
3970 return 0;
3972 _ACEOF
3973 # Make sure it works both with $CC and with simple cc.
3974 # Following AC_PROG_CC_C_O, we do the test twice because some
3975 # compilers refuse to overwrite an existing .o file with -o,
3976 # though they will create one.
3977 am_cv_prog_cc_c_o=yes
3978 for am_i in 1 2; do
3979 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3980 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } \
3984 && test -f conftest2.$ac_objext; then
3985 : OK
3986 else
3987 am_cv_prog_cc_c_o=no
3988 break
3990 done
3991 rm -f core conftest*
3992 unset am_i
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3995 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3996 if test "$am_cv_prog_cc_c_o" != yes; then
3997 # Losing compiler, so override with the script.
3998 # FIXME: It is wrong to rewrite CC.
3999 # But if we don't then we get into trouble of one sort or another.
4000 # A longer-term fix would be to have automake use am__CC in this case,
4001 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4002 CC="$am_aux_dir/compile $CC"
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 depcc="$CC" am_compiler_list=
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4014 $as_echo_n "checking dependency style of $depcc... " >&6; }
4015 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4019 # We make a subdir and do the tests there. Otherwise we can end up
4020 # making bogus files that we don't know about and never remove. For
4021 # instance it was reported that on HP-UX the gcc test will end up
4022 # making a dummy file named 'D' -- because '-MD' means "put the output
4023 # in D".
4024 rm -rf conftest.dir
4025 mkdir conftest.dir
4026 # Copy depcomp to subdir because otherwise we won't find it if we're
4027 # using a relative directory.
4028 cp "$am_depcomp" conftest.dir
4029 cd conftest.dir
4030 # We will build objects and dependencies in a subdirectory because
4031 # it helps to detect inapplicable dependency modes. For instance
4032 # both Tru64's cc and ICC support -MD to output dependencies as a
4033 # side effect of compilation, but ICC will put the dependencies in
4034 # the current directory while Tru64 will put them in the object
4035 # directory.
4036 mkdir sub
4038 am_cv_CC_dependencies_compiler_type=none
4039 if test "$am_compiler_list" = ""; then
4040 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4042 am__universal=false
4043 case " $depcc " in #(
4044 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4045 esac
4047 for depmode in $am_compiler_list; do
4048 # Setup a source with many dependencies, because some compilers
4049 # like to wrap large dependency lists on column 80 (with \), and
4050 # we should not choose a depcomp mode which is confused by this.
4052 # We need to recreate these files for each test, as the compiler may
4053 # overwrite some of them when testing with obscure command lines.
4054 # This happens at least with the AIX C compiler.
4055 : > sub/conftest.c
4056 for i in 1 2 3 4 5 6; do
4057 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4058 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4059 # Solaris 10 /bin/sh.
4060 echo '/* dummy */' > sub/conftst$i.h
4061 done
4062 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4064 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4065 # mode. It turns out that the SunPro C++ compiler does not properly
4066 # handle '-M -o', and we need to detect this. Also, some Intel
4067 # versions had trouble with output in subdirs.
4068 am__obj=sub/conftest.${OBJEXT-o}
4069 am__minus_obj="-o $am__obj"
4070 case $depmode in
4071 gcc)
4072 # This depmode causes a compiler race in universal mode.
4073 test "$am__universal" = false || continue
4075 nosideeffect)
4076 # After this tag, mechanisms are not by side-effect, so they'll
4077 # only be used when explicitly requested.
4078 if test "x$enable_dependency_tracking" = xyes; then
4079 continue
4080 else
4081 break
4084 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4085 # This compiler won't grok '-c -o', but also, the minuso test has
4086 # not run yet. These depmodes are late enough in the game, and
4087 # so weak that their functioning should not be impacted.
4088 am__obj=conftest.${OBJEXT-o}
4089 am__minus_obj=
4091 none) break ;;
4092 esac
4093 if depmode=$depmode \
4094 source=sub/conftest.c object=$am__obj \
4095 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4096 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4097 >/dev/null 2>conftest.err &&
4098 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4099 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4100 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4101 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4102 # icc doesn't choke on unknown options, it will just issue warnings
4103 # or remarks (even with -Werror). So we grep stderr for any message
4104 # that says an option was ignored or not supported.
4105 # When given -MP, icc 7.0 and 7.1 complain thusly:
4106 # icc: Command line warning: ignoring option '-M'; no argument required
4107 # The diagnosis changed in icc 8.0:
4108 # icc: Command line remark: option '-MP' not supported
4109 if (grep 'ignoring option' conftest.err ||
4110 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4111 am_cv_CC_dependencies_compiler_type=$depmode
4112 break
4115 done
4117 cd ..
4118 rm -rf conftest.dir
4119 else
4120 am_cv_CC_dependencies_compiler_type=none
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4125 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4126 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4129 test "x$enable_dependency_tracking" != xno \
4130 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4131 am__fastdepCC_TRUE=
4132 am__fastdepCC_FALSE='#'
4133 else
4134 am__fastdepCC_TRUE='#'
4135 am__fastdepCC_FALSE=
4140 ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4146 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4147 # On Suns, sometimes $CPP names a directory.
4148 if test -n "$CPP" && test -d "$CPP"; then
4149 CPP=
4151 if test -z "$CPP"; then
4152 if ${ac_cv_prog_CPP+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 # Double quotes because CPP needs to be expanded
4156 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4158 ac_preproc_ok=false
4159 for ac_c_preproc_warn_flag in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #ifdef __STDC__
4170 # include <limits.h>
4171 #else
4172 # include <assert.h>
4173 #endif
4174 Syntax error
4175 _ACEOF
4176 if ac_fn_c_try_cpp "$LINENO"; then :
4178 else
4179 # Broken: fails on valid input.
4180 continue
4182 rm -f conftest.err conftest.i conftest.$ac_ext
4184 # OK, works on sane cases. Now check whether nonexistent headers
4185 # can be detected and how.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <ac_nonexistent.h>
4189 _ACEOF
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4191 # Broken: success on invalid input.
4192 continue
4193 else
4194 # Passes both tests.
4195 ac_preproc_ok=:
4196 break
4198 rm -f conftest.err conftest.i conftest.$ac_ext
4200 done
4201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4202 rm -f conftest.i conftest.err conftest.$ac_ext
4203 if $ac_preproc_ok; then :
4204 break
4207 done
4208 ac_cv_prog_CPP=$CPP
4211 CPP=$ac_cv_prog_CPP
4212 else
4213 ac_cv_prog_CPP=$CPP
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4216 $as_echo "$CPP" >&6; }
4217 ac_preproc_ok=false
4218 for ac_c_preproc_warn_flag in '' yes
4220 # Use a header file that comes with gcc, so configuring glibc
4221 # with a fresh cross-compiler works.
4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4223 # <limits.h> exists even on freestanding compilers.
4224 # On the NeXT, cc -E runs the code through the compiler's parser,
4225 # not just through cpp. "Syntax error" is here to catch this case.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #ifdef __STDC__
4229 # include <limits.h>
4230 #else
4231 # include <assert.h>
4232 #endif
4233 Syntax error
4234 _ACEOF
4235 if ac_fn_c_try_cpp "$LINENO"; then :
4237 else
4238 # Broken: fails on valid input.
4239 continue
4241 rm -f conftest.err conftest.i conftest.$ac_ext
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4248 _ACEOF
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4250 # Broken: success on invalid input.
4251 continue
4252 else
4253 # Passes both tests.
4254 ac_preproc_ok=:
4255 break
4257 rm -f conftest.err conftest.i conftest.$ac_ext
4259 done
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.i conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then :
4264 else
4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details" "$LINENO" 5; }
4271 ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4279 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4280 if ${ac_cv_path_GREP+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -z "$GREP"; then
4284 ac_path_GREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in grep ggrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4294 as_fn_executable_p "$ac_path_GREP" || continue
4295 # Check for GNU ac_path_GREP and select it if it is found.
4296 # Check for GNU $ac_path_GREP
4297 case `"$ac_path_GREP" --version 2>&1` in
4298 *GNU*)
4299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'GREP' >> "conftest.nl"
4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_GREP="$ac_path_GREP"
4315 ac_path_GREP_max=$ac_count
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 esac
4323 $ac_path_GREP_found && break 3
4324 done
4325 done
4326 done
4327 IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_GREP"; then
4329 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331 else
4332 ac_cv_path_GREP=$GREP
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4337 $as_echo "$ac_cv_path_GREP" >&6; }
4338 GREP="$ac_cv_path_GREP"
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4342 $as_echo_n "checking for egrep... " >&6; }
4343 if ${ac_cv_path_EGREP+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347 then ac_cv_path_EGREP="$GREP -E"
4348 else
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in egrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4360 as_fn_executable_p "$ac_path_EGREP" || continue
4361 # Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363 case `"$ac_path_EGREP" --version 2>&1` in
4364 *GNU*)
4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 as_fn_arith $ac_count + 1 && ac_count=$as_val
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP="$ac_path_EGREP"
4381 ac_path_EGREP_max=$ac_count
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387 esac
4389 $ac_path_EGREP_found && break 3
4390 done
4391 done
4392 done
4393 IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_EGREP"; then
4395 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397 else
4398 ac_cv_path_EGREP=$EGREP
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4404 $as_echo "$ac_cv_path_EGREP" >&6; }
4405 EGREP="$ac_cv_path_EGREP"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4409 $as_echo_n "checking for ANSI C header files... " >&6; }
4410 if ${ac_cv_header_stdc+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 #include <stdlib.h>
4416 #include <stdarg.h>
4417 #include <string.h>
4418 #include <float.h>
4421 main ()
4425 return 0;
4427 _ACEOF
4428 if ac_fn_c_try_compile "$LINENO"; then :
4429 ac_cv_header_stdc=yes
4430 else
4431 ac_cv_header_stdc=no
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 if test $ac_cv_header_stdc = yes; then
4436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <string.h>
4441 _ACEOF
4442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4443 $EGREP "memchr" >/dev/null 2>&1; then :
4445 else
4446 ac_cv_header_stdc=no
4448 rm -f conftest*
4452 if test $ac_cv_header_stdc = yes; then
4453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 #include <stdlib.h>
4458 _ACEOF
4459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460 $EGREP "free" >/dev/null 2>&1; then :
4462 else
4463 ac_cv_header_stdc=no
4465 rm -f conftest*
4469 if test $ac_cv_header_stdc = yes; then
4470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4471 if test "$cross_compiling" = yes; then :
4473 else
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 #include <ctype.h>
4477 #include <stdlib.h>
4478 #if ((' ' & 0x0FF) == 0x020)
4479 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4480 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4481 #else
4482 # define ISLOWER(c) \
4483 (('a' <= (c) && (c) <= 'i') \
4484 || ('j' <= (c) && (c) <= 'r') \
4485 || ('s' <= (c) && (c) <= 'z'))
4486 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4487 #endif
4489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4491 main ()
4493 int i;
4494 for (i = 0; i < 256; i++)
4495 if (XOR (islower (i), ISLOWER (i))
4496 || toupper (i) != TOUPPER (i))
4497 return 2;
4498 return 0;
4500 _ACEOF
4501 if ac_fn_c_try_run "$LINENO"; then :
4503 else
4504 ac_cv_header_stdc=no
4506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4507 conftest.$ac_objext conftest.beam conftest.$ac_ext
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4513 $as_echo "$ac_cv_header_stdc" >&6; }
4514 if test $ac_cv_header_stdc = yes; then
4516 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4521 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4522 inttypes.h stdint.h unistd.h
4523 do :
4524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4525 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4527 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4528 cat >>confdefs.h <<_ACEOF
4529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4530 _ACEOF
4534 done
4538 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4539 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4540 MINIX=yes
4541 else
4542 MINIX=
4546 if test "$MINIX" = yes; then
4548 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4551 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4554 $as_echo "#define _MINIX 1" >>confdefs.h
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4560 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4561 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4567 # define __EXTENSIONS__ 1
4568 $ac_includes_default
4570 main ()
4574 return 0;
4576 _ACEOF
4577 if ac_fn_c_try_compile "$LINENO"; then :
4578 ac_cv_safe_to_define___extensions__=yes
4579 else
4580 ac_cv_safe_to_define___extensions__=no
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4585 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4586 test $ac_cv_safe_to_define___extensions__ = yes &&
4587 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4589 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4591 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4593 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4595 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4599 # See if makeinfo has been installed and is modern enough
4600 # that we can use it.
4602 # Extract the first word of "makeinfo", so it can be a program name with args.
4603 set dummy makeinfo; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if ${ac_cv_prog_MAKEINFO+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$MAKEINFO"; then
4610 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_MAKEINFO="makeinfo"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4623 done
4624 done
4625 IFS=$as_save_IFS
4629 MAKEINFO=$ac_cv_prog_MAKEINFO
4630 if test -n "$MAKEINFO"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4632 $as_echo "$MAKEINFO" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4639 if test -n "$MAKEINFO"; then
4640 # Found it, now check the version.
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4642 $as_echo_n "checking for modern makeinfo... " >&6; }
4643 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4647 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4649 case $ac_prog_version in
4650 '') gcc_cv_prog_makeinfo_modern=no;;
4651 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4652 *) gcc_cv_prog_makeinfo_modern=no;;
4653 esac
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4657 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4658 else
4659 gcc_cv_prog_makeinfo_modern=no
4661 if test $gcc_cv_prog_makeinfo_modern = no; then
4662 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4665 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4666 BUILD_INFO_TRUE=
4667 BUILD_INFO_FALSE='#'
4668 else
4669 BUILD_INFO_TRUE='#'
4670 BUILD_INFO_FALSE=
4676 # Check whether --with-bugurl was given.
4677 if test "${with_bugurl+set}" = set; then :
4678 withval=$with_bugurl; case "$withval" in
4679 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
4680 no) BUGURL=
4682 *) BUGURL="$withval"
4684 esac
4685 else
4686 BUGURL="https://gcc.gnu.org/bugs/"
4690 case ${BUGURL} in
4692 REPORT_BUGS_TO=
4693 REPORT_BUGS_TEXI=
4696 REPORT_BUGS_TO="<$BUGURL>"
4697 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4699 esac;
4704 # Configure libtool
4705 case `pwd` in
4706 *\ * | *\ *)
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4708 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4709 esac
4713 macro_version='2.2.7a'
4714 macro_revision='1.3134'
4728 ltmain="$ac_aux_dir/ltmain.sh"
4730 # Backslashify metacharacters that are still active within
4731 # double-quoted strings.
4732 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4734 # Same as above, but do not quote variable references.
4735 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4737 # Sed substitution to delay expansion of an escaped shell variable in a
4738 # double_quote_subst'ed string.
4739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4741 # Sed substitution to delay expansion of an escaped single quote.
4742 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4744 # Sed substitution to avoid accidental globbing in evaled expressions
4745 no_glob_subst='s/\*/\\\*/g'
4747 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4749 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4752 $as_echo_n "checking how to print strings... " >&6; }
4753 # Test print first, because it will be a builtin if present.
4754 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4756 ECHO='print -r --'
4757 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4758 ECHO='printf %s\n'
4759 else
4760 # Use this function as a fallback that always works.
4761 func_fallback_echo ()
4763 eval 'cat <<_LTECHO_EOF
4765 _LTECHO_EOF'
4767 ECHO='func_fallback_echo'
4770 # func_echo_all arg...
4771 # Invoke $ECHO with all args, space-separated.
4772 func_echo_all ()
4774 $ECHO ""
4777 case "$ECHO" in
4778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4779 $as_echo "printf" >&6; } ;;
4780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4781 $as_echo "print -r" >&6; } ;;
4782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4783 $as_echo "cat" >&6; } ;;
4784 esac
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4800 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4801 if ${ac_cv_path_SED+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4805 for ac_i in 1 2 3 4 5 6 7; do
4806 ac_script="$ac_script$as_nl$ac_script"
4807 done
4808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4809 { ac_script=; unset ac_script;}
4810 if test -z "$SED"; then
4811 ac_path_SED_found=false
4812 # Loop through the user's path and test for each of PROGNAME-LIST
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_prog in sed gsed; do
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4821 as_fn_executable_p "$ac_path_SED" || continue
4822 # Check for GNU ac_path_SED and select it if it is found.
4823 # Check for GNU $ac_path_SED
4824 case `"$ac_path_SED" --version 2>&1` in
4825 *GNU*)
4826 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4828 ac_count=0
4829 $as_echo_n 0123456789 >"conftest.in"
4830 while :
4832 cat "conftest.in" "conftest.in" >"conftest.tmp"
4833 mv "conftest.tmp" "conftest.in"
4834 cp "conftest.in" "conftest.nl"
4835 $as_echo '' >> "conftest.nl"
4836 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838 as_fn_arith $ac_count + 1 && ac_count=$as_val
4839 if test $ac_count -gt ${ac_path_SED_max-0}; then
4840 # Best one so far, save it but keep looking for a better one
4841 ac_cv_path_SED="$ac_path_SED"
4842 ac_path_SED_max=$ac_count
4844 # 10*(2^10) chars as input seems more than enough
4845 test $ac_count -gt 10 && break
4846 done
4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4848 esac
4850 $ac_path_SED_found && break 3
4851 done
4852 done
4853 done
4854 IFS=$as_save_IFS
4855 if test -z "$ac_cv_path_SED"; then
4856 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4858 else
4859 ac_cv_path_SED=$SED
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4864 $as_echo "$ac_cv_path_SED" >&6; }
4865 SED="$ac_cv_path_SED"
4866 rm -f conftest.sed
4868 test -z "$SED" && SED=sed
4869 Xsed="$SED -e 1s/^X//"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4882 $as_echo_n "checking for fgrep... " >&6; }
4883 if ${ac_cv_path_FGREP+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4887 then ac_cv_path_FGREP="$GREP -F"
4888 else
4889 if test -z "$FGREP"; then
4890 ac_path_FGREP_found=false
4891 # Loop through the user's path and test for each of PROGNAME-LIST
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_prog in fgrep; do
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4900 as_fn_executable_p "$ac_path_FGREP" || continue
4901 # Check for GNU ac_path_FGREP and select it if it is found.
4902 # Check for GNU $ac_path_FGREP
4903 case `"$ac_path_FGREP" --version 2>&1` in
4904 *GNU*)
4905 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4907 ac_count=0
4908 $as_echo_n 0123456789 >"conftest.in"
4909 while :
4911 cat "conftest.in" "conftest.in" >"conftest.tmp"
4912 mv "conftest.tmp" "conftest.in"
4913 cp "conftest.in" "conftest.nl"
4914 $as_echo 'FGREP' >> "conftest.nl"
4915 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4917 as_fn_arith $ac_count + 1 && ac_count=$as_val
4918 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4919 # Best one so far, save it but keep looking for a better one
4920 ac_cv_path_FGREP="$ac_path_FGREP"
4921 ac_path_FGREP_max=$ac_count
4923 # 10*(2^10) chars as input seems more than enough
4924 test $ac_count -gt 10 && break
4925 done
4926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4927 esac
4929 $ac_path_FGREP_found && break 3
4930 done
4931 done
4932 done
4933 IFS=$as_save_IFS
4934 if test -z "$ac_cv_path_FGREP"; then
4935 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4937 else
4938 ac_cv_path_FGREP=$FGREP
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4944 $as_echo "$ac_cv_path_FGREP" >&6; }
4945 FGREP="$ac_cv_path_FGREP"
4948 test -z "$GREP" && GREP=grep
4968 # Check whether --with-gnu-ld was given.
4969 if test "${with_gnu_ld+set}" = set; then :
4970 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4971 else
4972 with_gnu_ld=no
4975 ac_prog=ld
4976 if test "$GCC" = yes; then
4977 # Check if gcc -print-prog-name=ld gives a path.
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4979 $as_echo_n "checking for ld used by $CC... " >&6; }
4980 case $host in
4981 *-*-mingw*)
4982 # gcc leaves a trailing carriage return which upsets mingw
4983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4986 esac
4987 case $ac_prog in
4988 # Accept absolute paths.
4989 [\\/]* | ?:[\\/]*)
4990 re_direlt='/[^/][^/]*/\.\./'
4991 # Canonicalize the pathname of ld
4992 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4993 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4994 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4995 done
4996 test -z "$LD" && LD="$ac_prog"
4999 # If it fails, then pretend we aren't using GCC.
5000 ac_prog=ld
5003 # If it is relative, then search for the first ld in PATH.
5004 with_gnu_ld=unknown
5006 esac
5007 elif test "$with_gnu_ld" = yes; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5009 $as_echo_n "checking for GNU ld... " >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5012 $as_echo_n "checking for non-GNU ld... " >&6; }
5014 if ${lt_cv_path_LD+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -z "$LD"; then
5018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5019 for ac_dir in $PATH; do
5020 IFS="$lt_save_ifs"
5021 test -z "$ac_dir" && ac_dir=.
5022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5023 lt_cv_path_LD="$ac_dir/$ac_prog"
5024 # Check to see if the program is GNU ld. I'd rather use --version,
5025 # but apparently some variants of GNU ld only accept -v.
5026 # Break only if it was the GNU/non-GNU ld that we prefer.
5027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5028 *GNU* | *'with BFD'*)
5029 test "$with_gnu_ld" != no && break
5032 test "$with_gnu_ld" != yes && break
5034 esac
5036 done
5037 IFS="$lt_save_ifs"
5038 else
5039 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5043 LD="$lt_cv_path_LD"
5044 if test -n "$LD"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5046 $as_echo "$LD" >&6; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5051 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5053 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5054 if ${lt_cv_prog_gnu_ld+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5058 case `$LD -v 2>&1 </dev/null` in
5059 *GNU* | *'with BFD'*)
5060 lt_cv_prog_gnu_ld=yes
5063 lt_cv_prog_gnu_ld=no
5065 esac
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5068 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5069 with_gnu_ld=$lt_cv_prog_gnu_ld
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5080 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5081 if ${lt_cv_path_NM+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -n "$NM"; then
5085 # Let the user override the nm to test.
5086 lt_nm_to_check="$NM"
5087 else
5088 lt_nm_to_check="${ac_tool_prefix}nm"
5089 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5090 lt_nm_to_check="$lt_nm_to_check nm"
5093 for lt_tmp_nm in "$lt_nm_to_check"; do
5094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5095 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5096 IFS="$lt_save_ifs"
5097 test -z "$ac_dir" && ac_dir=.
5098 # Strip out any user-provided options from the nm to test twice,
5099 # the first time to test to see if nm (rather than its options) has
5100 # an explicit path, the second time to yield a file which can be
5101 # nm'ed itself.
5102 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5103 case "$tmp_nm_path" in
5104 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5105 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5106 esac
5107 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5108 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5109 # Check to see if the nm accepts a BSD-compat flag.
5110 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5111 # nm: unknown option "B" ignored
5112 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5113 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5114 break
5117 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5118 *$tmp_nm*)
5119 lt_cv_path_NM="$tmp_nm -p"
5120 break
5123 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5124 continue # so that we can try to find one that supports BSD flags
5126 esac
5128 esac
5130 done
5131 IFS="$lt_save_ifs"
5132 done
5133 : ${lt_cv_path_NM=no}
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5136 $as_echo "$lt_cv_path_NM" >&6; }
5137 if test "$lt_cv_path_NM" != "no"; then
5138 NM="$lt_cv_path_NM"
5139 else
5140 # Didn't find any BSD compatible name lister, look for dumpbin.
5141 if test -n "$DUMPBIN"; then :
5142 # Let the user override the test.
5143 else
5144 if test -n "$ac_tool_prefix"; then
5145 for ac_prog in dumpbin "link -dump"
5147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_DUMPBIN+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 if test -n "$DUMPBIN"; then
5155 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5168 done
5169 done
5170 IFS=$as_save_IFS
5174 DUMPBIN=$ac_cv_prog_DUMPBIN
5175 if test -n "$DUMPBIN"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5177 $as_echo "$DUMPBIN" >&6; }
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5184 test -n "$DUMPBIN" && break
5185 done
5187 if test -z "$DUMPBIN"; then
5188 ac_ct_DUMPBIN=$DUMPBIN
5189 for ac_prog in dumpbin "link -dump"
5191 # Extract the first word of "$ac_prog", so it can be a program name with args.
5192 set dummy $ac_prog; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test -n "$ac_ct_DUMPBIN"; then
5199 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5212 done
5213 done
5214 IFS=$as_save_IFS
5218 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5219 if test -n "$ac_ct_DUMPBIN"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5221 $as_echo "$ac_ct_DUMPBIN" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5228 test -n "$ac_ct_DUMPBIN" && break
5229 done
5231 if test "x$ac_ct_DUMPBIN" = x; then
5232 DUMPBIN=":"
5233 else
5234 case $cross_compiling:$ac_tool_warned in
5235 yes:)
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5238 ac_tool_warned=yes ;;
5239 esac
5240 DUMPBIN=$ac_ct_DUMPBIN
5244 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5245 *COFF*)
5246 DUMPBIN="$DUMPBIN -symbols"
5249 DUMPBIN=:
5251 esac
5254 if test "$DUMPBIN" != ":"; then
5255 NM="$DUMPBIN"
5258 test -z "$NM" && NM=nm
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5266 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5267 if ${lt_cv_nm_interface+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 lt_cv_nm_interface="BSD nm"
5271 echo "int some_variable = 0;" > conftest.$ac_ext
5272 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5273 (eval "$ac_compile" 2>conftest.err)
5274 cat conftest.err >&5
5275 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5276 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5277 cat conftest.err >&5
5278 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5279 cat conftest.out >&5
5280 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5281 lt_cv_nm_interface="MS dumpbin"
5283 rm -f conftest*
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5286 $as_echo "$lt_cv_nm_interface" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5289 $as_echo_n "checking whether ln -s works... " >&6; }
5290 LN_S=$as_ln_s
5291 if test "$LN_S" = "ln -s"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5293 $as_echo "yes" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5296 $as_echo "no, using $LN_S" >&6; }
5299 # find the maximum length of command line arguments
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5301 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5302 if ${lt_cv_sys_max_cmd_len+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5306 teststring="ABCD"
5308 case $build_os in
5309 msdosdjgpp*)
5310 # On DJGPP, this test can blow up pretty badly due to problems in libc
5311 # (any single argument exceeding 2000 bytes causes a buffer overrun
5312 # during glob expansion). Even if it were fixed, the result of this
5313 # check would be larger than it should be.
5314 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5317 gnu*)
5318 # Under GNU Hurd, this test is not required because there is
5319 # no limit to the length of command line arguments.
5320 # Libtool will interpret -1 as no limit whatsoever
5321 lt_cv_sys_max_cmd_len=-1;
5324 cygwin* | mingw* | cegcc*)
5325 # On Win9x/ME, this test blows up -- it succeeds, but takes
5326 # about 5 minutes as the teststring grows exponentially.
5327 # Worse, since 9x/ME are not pre-emptively multitasking,
5328 # you end up with a "frozen" computer, even though with patience
5329 # the test eventually succeeds (with a max line length of 256k).
5330 # Instead, let's just punt: use the minimum linelength reported by
5331 # all of the supported platforms: 8192 (on NT/2K/XP).
5332 lt_cv_sys_max_cmd_len=8192;
5335 mint*)
5336 # On MiNT this can take a long time and run out of memory.
5337 lt_cv_sys_max_cmd_len=8192;
5340 amigaos*)
5341 # On AmigaOS with pdksh, this test takes hours, literally.
5342 # So we just punt and use a minimum line length of 8192.
5343 lt_cv_sys_max_cmd_len=8192;
5346 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5347 # This has been around since 386BSD, at least. Likely further.
5348 if test -x /sbin/sysctl; then
5349 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5350 elif test -x /usr/sbin/sysctl; then
5351 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5352 else
5353 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5355 # And add a safety zone
5356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5360 interix*)
5361 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5362 lt_cv_sys_max_cmd_len=196608
5365 osf*)
5366 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5367 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5368 # nice to cause kernel panics so lets avoid the loop below.
5369 # First set a reasonable default.
5370 lt_cv_sys_max_cmd_len=16384
5372 if test -x /sbin/sysconfig; then
5373 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5374 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5375 esac
5378 sco3.2v5*)
5379 lt_cv_sys_max_cmd_len=102400
5381 sysv5* | sco5v6* | sysv4.2uw2*)
5382 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5383 if test -n "$kargmax"; then
5384 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5385 else
5386 lt_cv_sys_max_cmd_len=32768
5390 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5391 if test -n "$lt_cv_sys_max_cmd_len"; then
5392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5394 else
5395 # Make teststring a little bigger before we do anything with it.
5396 # a 1K string should be a reasonable start.
5397 for i in 1 2 3 4 5 6 7 8 ; do
5398 teststring=$teststring$teststring
5399 done
5400 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5401 # If test is not a shell built-in, we'll probably end up computing a
5402 # maximum length that is only half of the actual maximum length, but
5403 # we can't tell.
5404 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5405 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5406 test $i != 17 # 1/2 MB should be enough
5408 i=`expr $i + 1`
5409 teststring=$teststring$teststring
5410 done
5411 # Only check the string length outside the loop.
5412 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5413 teststring=
5414 # Add a significant safety factor because C++ compilers can tack on
5415 # massive amounts of additional arguments before passing them to the
5416 # linker. It appears as though 1/2 is a usable value.
5417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5420 esac
5424 if test -n $lt_cv_sys_max_cmd_len ; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5426 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5427 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5429 $as_echo "none" >&6; }
5431 max_cmd_len=$lt_cv_sys_max_cmd_len
5438 : ${CP="cp -f"}
5439 : ${MV="mv -f"}
5440 : ${RM="rm -f"}
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5443 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5444 # Try some XSI features
5445 xsi_shell=no
5446 ( _lt_dummy="a/b/c"
5447 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5448 = c,a/b,, \
5449 && eval 'test $(( 1 + 1 )) -eq 2 \
5450 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5451 && xsi_shell=yes
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5453 $as_echo "$xsi_shell" >&6; }
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5457 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5458 lt_shell_append=no
5459 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5460 >/dev/null 2>&1 \
5461 && lt_shell_append=yes
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5463 $as_echo "$lt_shell_append" >&6; }
5466 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5467 lt_unset=unset
5468 else
5469 lt_unset=false
5476 # test EBCDIC or ASCII
5477 case `echo X|tr X '\101'` in
5478 A) # ASCII based system
5479 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5480 lt_SP2NL='tr \040 \012'
5481 lt_NL2SP='tr \015\012 \040\040'
5483 *) # EBCDIC based system
5484 lt_SP2NL='tr \100 \n'
5485 lt_NL2SP='tr \r\n \100\100'
5487 esac
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5498 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5499 if ${lt_cv_ld_reload_flag+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 lt_cv_ld_reload_flag='-r'
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5505 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5506 reload_flag=$lt_cv_ld_reload_flag
5507 case $reload_flag in
5508 "" | " "*) ;;
5509 *) reload_flag=" $reload_flag" ;;
5510 esac
5511 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5512 case $host_os in
5513 darwin*)
5514 if test "$GCC" = yes; then
5515 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5516 else
5517 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5520 esac
5530 if test -n "$ac_tool_prefix"; then
5531 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5532 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_OBJDUMP+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$OBJDUMP"; then
5539 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5552 done
5553 done
5554 IFS=$as_save_IFS
5558 OBJDUMP=$ac_cv_prog_OBJDUMP
5559 if test -n "$OBJDUMP"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5561 $as_echo "$OBJDUMP" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5569 if test -z "$ac_cv_prog_OBJDUMP"; then
5570 ac_ct_OBJDUMP=$OBJDUMP
5571 # Extract the first word of "objdump", so it can be a program name with args.
5572 set dummy objdump; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 if test -n "$ac_ct_OBJDUMP"; then
5579 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 break 2
5592 done
5593 done
5594 IFS=$as_save_IFS
5598 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5599 if test -n "$ac_ct_OBJDUMP"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5601 $as_echo "$ac_ct_OBJDUMP" >&6; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5607 if test "x$ac_ct_OBJDUMP" = x; then
5608 OBJDUMP="false"
5609 else
5610 case $cross_compiling:$ac_tool_warned in
5611 yes:)
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5614 ac_tool_warned=yes ;;
5615 esac
5616 OBJDUMP=$ac_ct_OBJDUMP
5618 else
5619 OBJDUMP="$ac_cv_prog_OBJDUMP"
5622 test -z "$OBJDUMP" && OBJDUMP=objdump
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5633 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5634 if ${lt_cv_deplibs_check_method+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 lt_cv_file_magic_cmd='$MAGIC_CMD'
5638 lt_cv_file_magic_test_file=
5639 lt_cv_deplibs_check_method='unknown'
5640 # Need to set the preceding variable on all platforms that support
5641 # interlibrary dependencies.
5642 # 'none' -- dependencies not supported.
5643 # `unknown' -- same as none, but documents that we really don't know.
5644 # 'pass_all' -- all dependencies passed with no checks.
5645 # 'test_compile' -- check by making test program.
5646 # 'file_magic [[regex]]' -- check by looking for files in library path
5647 # which responds to the $file_magic_cmd with a given extended regex.
5648 # If you have `file' or equivalent on your system and you're not sure
5649 # whether `pass_all' will *always* work, you probably want this one.
5651 case $host_os in
5652 aix[4-9]*)
5653 lt_cv_deplibs_check_method=pass_all
5656 beos*)
5657 lt_cv_deplibs_check_method=pass_all
5660 bsdi[45]*)
5661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5662 lt_cv_file_magic_cmd='/usr/bin/file -L'
5663 lt_cv_file_magic_test_file=/shlib/libc.so
5666 cygwin*)
5667 # func_win32_libid is a shell function defined in ltmain.sh
5668 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5669 lt_cv_file_magic_cmd='func_win32_libid'
5672 mingw* | pw32*)
5673 # Base MSYS/MinGW do not provide the 'file' command needed by
5674 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5675 # unless we find 'file', for example because we are cross-compiling.
5676 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5677 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5679 lt_cv_file_magic_cmd='func_win32_libid'
5680 else
5681 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5682 lt_cv_file_magic_cmd='$OBJDUMP -f'
5686 cegcc*)
5687 # use the weaker test based on 'objdump'. See mingw*.
5688 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5689 lt_cv_file_magic_cmd='$OBJDUMP -f'
5692 darwin* | rhapsody*)
5693 lt_cv_deplibs_check_method=pass_all
5696 freebsd* | dragonfly*)
5697 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5698 case $host_cpu in
5699 i*86 )
5700 # Not sure whether the presence of OpenBSD here was a mistake.
5701 # Let's accept both of them until this is cleared up.
5702 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5703 lt_cv_file_magic_cmd=/usr/bin/file
5704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5706 esac
5707 else
5708 lt_cv_deplibs_check_method=pass_all
5712 gnu*)
5713 lt_cv_deplibs_check_method=pass_all
5716 haiku*)
5717 lt_cv_deplibs_check_method=pass_all
5720 hpux10.20* | hpux11*)
5721 lt_cv_file_magic_cmd=/usr/bin/file
5722 case $host_cpu in
5723 ia64*)
5724 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5725 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5727 hppa*64*)
5728 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]'
5729 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5732 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5733 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5735 esac
5738 interix[3-9]*)
5739 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5743 irix5* | irix6* | nonstopux*)
5744 case $LD in
5745 *-32|*"-32 ") libmagic=32-bit;;
5746 *-n32|*"-n32 ") libmagic=N32;;
5747 *-64|*"-64 ") libmagic=64-bit;;
5748 *) libmagic=never-match;;
5749 esac
5750 lt_cv_deplibs_check_method=pass_all
5753 # This must be Linux ELF.
5754 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5755 lt_cv_deplibs_check_method=pass_all
5758 netbsd*)
5759 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5761 else
5762 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5766 newos6*)
5767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5768 lt_cv_file_magic_cmd=/usr/bin/file
5769 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5772 *nto* | *qnx*)
5773 lt_cv_deplibs_check_method=pass_all
5776 openbsd*)
5777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5779 else
5780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5784 osf3* | osf4* | osf5*)
5785 lt_cv_deplibs_check_method=pass_all
5788 rdos*)
5789 lt_cv_deplibs_check_method=pass_all
5792 solaris*)
5793 lt_cv_deplibs_check_method=pass_all
5796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5797 lt_cv_deplibs_check_method=pass_all
5800 sysv4 | sysv4.3*)
5801 case $host_vendor in
5802 motorola)
5803 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]'
5804 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5806 ncr)
5807 lt_cv_deplibs_check_method=pass_all
5809 sequent)
5810 lt_cv_file_magic_cmd='/bin/file'
5811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5813 sni)
5814 lt_cv_file_magic_cmd='/bin/file'
5815 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5816 lt_cv_file_magic_test_file=/lib/libc.so
5818 siemens)
5819 lt_cv_deplibs_check_method=pass_all
5822 lt_cv_deplibs_check_method=pass_all
5824 esac
5827 tpf*)
5828 lt_cv_deplibs_check_method=pass_all
5830 vxworks*)
5831 # Assume VxWorks cross toolchains are built on Linux, possibly
5832 # as canadian for Windows hosts.
5833 lt_cv_deplibs_check_method=pass_all
5835 esac
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5839 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5840 file_magic_cmd=$lt_cv_file_magic_cmd
5841 deplibs_check_method=$lt_cv_deplibs_check_method
5842 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5855 plugin_option=
5856 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5857 for plugin in $plugin_names; do
5858 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5859 if test x$plugin_so = x$plugin; then
5860 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5862 if test x$plugin_so != x$plugin; then
5863 plugin_option="--plugin $plugin_so"
5864 break
5866 done
5868 if test -n "$ac_tool_prefix"; then
5869 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5870 set dummy ${ac_tool_prefix}ar; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if ${ac_cv_prog_AR+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 if test -n "$AR"; then
5877 ac_cv_prog_AR="$AR" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886 ac_cv_prog_AR="${ac_tool_prefix}ar"
5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 break 2
5890 done
5891 done
5892 IFS=$as_save_IFS
5896 AR=$ac_cv_prog_AR
5897 if test -n "$AR"; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5899 $as_echo "$AR" >&6; }
5900 else
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5907 if test -z "$ac_cv_prog_AR"; then
5908 ac_ct_AR=$AR
5909 # Extract the first word of "ar", so it can be a program name with args.
5910 set dummy ar; ac_word=$2
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912 $as_echo_n "checking for $ac_word... " >&6; }
5913 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 if test -n "$ac_ct_AR"; then
5917 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5918 else
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926 ac_cv_prog_ac_ct_AR="ar"
5927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 break 2
5930 done
5931 done
5932 IFS=$as_save_IFS
5936 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5937 if test -n "$ac_ct_AR"; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5939 $as_echo "$ac_ct_AR" >&6; }
5940 else
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5945 if test "x$ac_ct_AR" = x; then
5946 AR="false"
5947 else
5948 case $cross_compiling:$ac_tool_warned in
5949 yes:)
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5952 ac_tool_warned=yes ;;
5953 esac
5954 AR=$ac_ct_AR
5956 else
5957 AR="$ac_cv_prog_AR"
5960 test -z "$AR" && AR=ar
5961 if test -n "$plugin_option"; then
5962 if $AR --help 2>&1 | grep -q "\--plugin"; then
5963 touch conftest.c
5964 $AR $plugin_option rc conftest.a conftest.c
5965 if test "$?" != 0; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5967 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5968 else
5969 AR="$AR $plugin_option"
5971 rm -f conftest.*
5974 test -z "$AR_FLAGS" && AR_FLAGS=cru
5986 if test -n "$ac_tool_prefix"; then
5987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5988 set dummy ${ac_tool_prefix}strip; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if ${ac_cv_prog_STRIP+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if test -n "$STRIP"; then
5995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6004 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6008 done
6009 done
6010 IFS=$as_save_IFS
6014 STRIP=$ac_cv_prog_STRIP
6015 if test -n "$STRIP"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6017 $as_echo "$STRIP" >&6; }
6018 else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6025 if test -z "$ac_cv_prog_STRIP"; then
6026 ac_ct_STRIP=$STRIP
6027 # Extract the first word of "strip", so it can be a program name with args.
6028 set dummy strip; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034 if test -n "$ac_ct_STRIP"; then
6035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044 ac_cv_prog_ac_ct_STRIP="strip"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 break 2
6048 done
6049 done
6050 IFS=$as_save_IFS
6054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6055 if test -n "$ac_ct_STRIP"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6057 $as_echo "$ac_ct_STRIP" >&6; }
6058 else
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6063 if test "x$ac_ct_STRIP" = x; then
6064 STRIP=":"
6065 else
6066 case $cross_compiling:$ac_tool_warned in
6067 yes:)
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6070 ac_tool_warned=yes ;;
6071 esac
6072 STRIP=$ac_ct_STRIP
6074 else
6075 STRIP="$ac_cv_prog_STRIP"
6078 test -z "$STRIP" && STRIP=:
6085 if test -n "$ac_tool_prefix"; then
6086 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6087 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if ${ac_cv_prog_RANLIB+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 if test -n "$RANLIB"; then
6094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6107 done
6108 done
6109 IFS=$as_save_IFS
6113 RANLIB=$ac_cv_prog_RANLIB
6114 if test -n "$RANLIB"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6116 $as_echo "$RANLIB" >&6; }
6117 else
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6124 if test -z "$ac_cv_prog_RANLIB"; then
6125 ac_ct_RANLIB=$RANLIB
6126 # Extract the first word of "ranlib", so it can be a program name with args.
6127 set dummy ranlib; ac_word=$2
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129 $as_echo_n "checking for $ac_word... " >&6; }
6130 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6131 $as_echo_n "(cached) " >&6
6132 else
6133 if test -n "$ac_ct_RANLIB"; then
6134 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6135 else
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143 ac_cv_prog_ac_ct_RANLIB="ranlib"
6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 break 2
6147 done
6148 done
6149 IFS=$as_save_IFS
6153 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6154 if test -n "$ac_ct_RANLIB"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6156 $as_echo "$ac_ct_RANLIB" >&6; }
6157 else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159 $as_echo "no" >&6; }
6162 if test "x$ac_ct_RANLIB" = x; then
6163 RANLIB=":"
6164 else
6165 case $cross_compiling:$ac_tool_warned in
6166 yes:)
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169 ac_tool_warned=yes ;;
6170 esac
6171 RANLIB=$ac_ct_RANLIB
6173 else
6174 RANLIB="$ac_cv_prog_RANLIB"
6177 test -z "$RANLIB" && RANLIB=:
6178 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6179 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6180 RANLIB="$RANLIB $plugin_option"
6189 # Determine commands to create old-style static archives.
6190 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6191 old_postinstall_cmds='chmod 644 $oldlib'
6192 old_postuninstall_cmds=
6194 if test -n "$RANLIB"; then
6195 case $host_os in
6196 openbsd*)
6197 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6200 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6202 esac
6203 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6206 case $host_os in
6207 darwin*)
6208 lock_old_archive_extraction=yes ;;
6210 lock_old_archive_extraction=no ;;
6211 esac
6251 # If no C compiler was specified, use CC.
6252 LTCC=${LTCC-"$CC"}
6254 # If no C compiler flags were specified, use CFLAGS.
6255 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6257 # Allow CC to be a program name with arguments.
6258 compiler=$CC
6261 # Check for command to grab the raw symbol name followed by C symbol from nm.
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6263 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6264 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6268 # These are sane defaults that work on at least a few old systems.
6269 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6271 # Character class describing NM global symbol codes.
6272 symcode='[BCDEGRST]'
6274 # Regexp to match symbols that can be accessed directly from C.
6275 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6277 # Define system-specific variables.
6278 case $host_os in
6279 aix*)
6280 symcode='[BCDT]'
6282 cygwin* | mingw* | pw32* | cegcc*)
6283 symcode='[ABCDGISTW]'
6285 hpux*)
6286 if test "$host_cpu" = ia64; then
6287 symcode='[ABCDEGRST]'
6290 irix* | nonstopux*)
6291 symcode='[BCDEGRST]'
6293 osf*)
6294 symcode='[BCDEGQRST]'
6296 solaris*)
6297 symcode='[BCDRT]'
6299 sco3.2v5*)
6300 symcode='[DT]'
6302 sysv4.2uw2*)
6303 symcode='[DT]'
6305 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6306 symcode='[ABDT]'
6308 sysv4)
6309 symcode='[DFNSTU]'
6311 esac
6313 # If we're using GNU nm, then use its standard symbol codes.
6314 case `$NM -V 2>&1` in
6315 *GNU* | *'with BFD'*)
6316 symcode='[ABCDGIRSTW]' ;;
6317 esac
6319 # Transform an extracted symbol line into a proper C declaration.
6320 # Some systems (esp. on ia64) link data and code symbols differently,
6321 # so use this general approach.
6322 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6324 # Transform an extracted symbol line into symbol name and symbol address
6325 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6326 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6328 # Handle CRLF in mingw tool chain
6329 opt_cr=
6330 case $build_os in
6331 mingw*)
6332 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6334 esac
6336 # Try without a prefix underscore, then with it.
6337 for ac_symprfx in "" "_"; do
6339 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6340 symxfrm="\\1 $ac_symprfx\\2 \\2"
6342 # Write the raw and C identifiers.
6343 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6344 # Fake it for dumpbin and say T for any non-static function
6345 # and D for any global variable.
6346 # Also find C++ and __fastcall symbols from MSVC++,
6347 # which start with @ or ?.
6348 lt_cv_sys_global_symbol_pipe="$AWK '"\
6349 " {last_section=section; section=\$ 3};"\
6350 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6351 " \$ 0!~/External *\|/{next};"\
6352 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6353 " {if(hide[section]) next};"\
6354 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6355 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6356 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6357 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6358 " ' prfx=^$ac_symprfx"
6359 else
6360 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6363 # Check to see that the pipe works correctly.
6364 pipe_works=no
6366 rm -f conftest*
6367 cat > conftest.$ac_ext <<_LT_EOF
6368 #ifdef __cplusplus
6369 extern "C" {
6370 #endif
6371 char nm_test_var;
6372 void nm_test_func(void);
6373 void nm_test_func(void){}
6374 #ifdef __cplusplus
6376 #endif
6377 int main(){nm_test_var='a';nm_test_func();return(0);}
6378 _LT_EOF
6380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6381 (eval $ac_compile) 2>&5
6382 ac_status=$?
6383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6384 test $ac_status = 0; }; then
6385 # Now try to grab the symbols.
6386 nlist=conftest.nm
6387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6388 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6389 ac_status=$?
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; } && test -s "$nlist"; then
6392 # Try sorting and uniquifying the output.
6393 if sort "$nlist" | uniq > "$nlist"T; then
6394 mv -f "$nlist"T "$nlist"
6395 else
6396 rm -f "$nlist"T
6399 # Make sure that we snagged all the symbols we need.
6400 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6401 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6402 cat <<_LT_EOF > conftest.$ac_ext
6403 #ifdef __cplusplus
6404 extern "C" {
6405 #endif
6407 _LT_EOF
6408 # Now generate the symbol file.
6409 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6411 cat <<_LT_EOF >> conftest.$ac_ext
6413 /* The mapping between symbol names and symbols. */
6414 const struct {
6415 const char *name;
6416 void *address;
6418 lt__PROGRAM__LTX_preloaded_symbols[] =
6420 { "@PROGRAM@", (void *) 0 },
6421 _LT_EOF
6422 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6423 cat <<\_LT_EOF >> conftest.$ac_ext
6424 {0, (void *) 0}
6427 /* This works around a problem in FreeBSD linker */
6428 #ifdef FREEBSD_WORKAROUND
6429 static const void *lt_preloaded_setup() {
6430 return lt__PROGRAM__LTX_preloaded_symbols;
6432 #endif
6434 #ifdef __cplusplus
6436 #endif
6437 _LT_EOF
6438 # Now try linking the two files.
6439 mv conftest.$ac_objext conftstm.$ac_objext
6440 lt_save_LIBS="$LIBS"
6441 lt_save_CFLAGS="$CFLAGS"
6442 LIBS="conftstm.$ac_objext"
6443 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6445 (eval $ac_link) 2>&5
6446 ac_status=$?
6447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6449 pipe_works=yes
6451 LIBS="$lt_save_LIBS"
6452 CFLAGS="$lt_save_CFLAGS"
6453 else
6454 echo "cannot find nm_test_func in $nlist" >&5
6456 else
6457 echo "cannot find nm_test_var in $nlist" >&5
6459 else
6460 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6462 else
6463 echo "$progname: failed program was:" >&5
6464 cat conftest.$ac_ext >&5
6466 rm -rf conftest* conftst*
6468 # Do not use the global_symbol_pipe unless it works.
6469 if test "$pipe_works" = yes; then
6470 break
6471 else
6472 lt_cv_sys_global_symbol_pipe=
6474 done
6478 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6479 lt_cv_sys_global_symbol_to_cdecl=
6481 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6483 $as_echo "failed" >&6; }
6484 else
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6486 $as_echo "ok" >&6; }
6510 # Check whether --enable-libtool-lock was given.
6511 if test "${enable_libtool_lock+set}" = set; then :
6512 enableval=$enable_libtool_lock;
6515 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6517 # Some flags need to be propagated to the compiler or linker for good
6518 # libtool support.
6519 case $host in
6520 ia64-*-hpux*)
6521 # Find out which ABI we are using.
6522 echo 'int i;' > conftest.$ac_ext
6523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6524 (eval $ac_compile) 2>&5
6525 ac_status=$?
6526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527 test $ac_status = 0; }; then
6528 case `/usr/bin/file conftest.$ac_objext` in
6529 *ELF-32*)
6530 HPUX_IA64_MODE="32"
6532 *ELF-64*)
6533 HPUX_IA64_MODE="64"
6535 esac
6537 rm -rf conftest*
6539 *-*-irix6*)
6540 # Find out which ABI we are using.
6541 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6543 (eval $ac_compile) 2>&5
6544 ac_status=$?
6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546 test $ac_status = 0; }; then
6547 if test "$lt_cv_prog_gnu_ld" = yes; then
6548 case `/usr/bin/file conftest.$ac_objext` in
6549 *32-bit*)
6550 LD="${LD-ld} -melf32bsmip"
6552 *N32*)
6553 LD="${LD-ld} -melf32bmipn32"
6555 *64-bit*)
6556 LD="${LD-ld} -melf64bmip"
6558 esac
6559 else
6560 case `/usr/bin/file conftest.$ac_objext` in
6561 *32-bit*)
6562 LD="${LD-ld} -32"
6564 *N32*)
6565 LD="${LD-ld} -n32"
6567 *64-bit*)
6568 LD="${LD-ld} -64"
6570 esac
6573 rm -rf conftest*
6576 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6577 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6578 # Find out which ABI we are using.
6579 echo 'int i;' > conftest.$ac_ext
6580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6581 (eval $ac_compile) 2>&5
6582 ac_status=$?
6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584 test $ac_status = 0; }; then
6585 case `/usr/bin/file conftest.o` in
6586 *32-bit*)
6587 case $host in
6588 x86_64-*kfreebsd*-gnu)
6589 LD="${LD-ld} -m elf_i386_fbsd"
6591 x86_64-*linux*)
6592 case `/usr/bin/file conftest.o` in
6593 *x86-64*)
6594 LD="${LD-ld} -m elf32_x86_64"
6597 LD="${LD-ld} -m elf_i386"
6599 esac
6601 powerpc64le-*linux*)
6602 LD="${LD-ld} -m elf32lppclinux"
6604 powerpc64-*linux*)
6605 LD="${LD-ld} -m elf32ppclinux"
6607 s390x-*linux*)
6608 LD="${LD-ld} -m elf_s390"
6610 sparc64-*linux*)
6611 LD="${LD-ld} -m elf32_sparc"
6613 esac
6615 *64-bit*)
6616 case $host in
6617 x86_64-*kfreebsd*-gnu)
6618 LD="${LD-ld} -m elf_x86_64_fbsd"
6620 x86_64-*linux*)
6621 LD="${LD-ld} -m elf_x86_64"
6623 powerpcle-*linux*)
6624 LD="${LD-ld} -m elf64lppc"
6626 powerpc-*linux*)
6627 LD="${LD-ld} -m elf64ppc"
6629 s390*-*linux*|s390*-*tpf*)
6630 LD="${LD-ld} -m elf64_s390"
6632 sparc*-*linux*)
6633 LD="${LD-ld} -m elf64_sparc"
6635 esac
6637 esac
6639 rm -rf conftest*
6642 *-*-sco3.2v5*)
6643 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6644 SAVE_CFLAGS="$CFLAGS"
6645 CFLAGS="$CFLAGS -belf"
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6647 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6648 if ${lt_cv_cc_needs_belf+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 ac_ext=c
6652 ac_cpp='$CPP $CPPFLAGS'
6653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6657 if test x$gcc_no_link = xyes; then
6658 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6664 main ()
6668 return 0;
6670 _ACEOF
6671 if ac_fn_c_try_link "$LINENO"; then :
6672 lt_cv_cc_needs_belf=yes
6673 else
6674 lt_cv_cc_needs_belf=no
6676 rm -f core conftest.err conftest.$ac_objext \
6677 conftest$ac_exeext conftest.$ac_ext
6678 ac_ext=c
6679 ac_cpp='$CPP $CPPFLAGS'
6680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6686 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6687 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6688 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6689 CFLAGS="$SAVE_CFLAGS"
6692 sparc*-*solaris*)
6693 # Find out which ABI we are using.
6694 echo 'int i;' > conftest.$ac_ext
6695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6696 (eval $ac_compile) 2>&5
6697 ac_status=$?
6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6699 test $ac_status = 0; }; then
6700 case `/usr/bin/file conftest.o` in
6701 *64-bit*)
6702 case $lt_cv_prog_gnu_ld in
6703 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6705 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6706 LD="${LD-ld} -64"
6709 esac
6711 esac
6713 rm -rf conftest*
6715 esac
6717 need_locks="$enable_libtool_lock"
6720 case $host_os in
6721 rhapsody* | darwin*)
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 if test -n "$DSYMUTIL"; then
6731 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6740 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6744 done
6745 done
6746 IFS=$as_save_IFS
6750 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6751 if test -n "$DSYMUTIL"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6753 $as_echo "$DSYMUTIL" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6761 if test -z "$ac_cv_prog_DSYMUTIL"; then
6762 ac_ct_DSYMUTIL=$DSYMUTIL
6763 # Extract the first word of "dsymutil", so it can be a program name with args.
6764 set dummy dsymutil; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 if test -n "$ac_ct_DSYMUTIL"; then
6771 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6784 done
6785 done
6786 IFS=$as_save_IFS
6790 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6791 if test -n "$ac_ct_DSYMUTIL"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6793 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6799 if test "x$ac_ct_DSYMUTIL" = x; then
6800 DSYMUTIL=":"
6801 else
6802 case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808 DSYMUTIL=$ac_ct_DSYMUTIL
6810 else
6811 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if ${ac_cv_prog_NMEDIT+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 if test -n "$NMEDIT"; then
6823 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6832 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6836 done
6837 done
6838 IFS=$as_save_IFS
6842 NMEDIT=$ac_cv_prog_NMEDIT
6843 if test -n "$NMEDIT"; then
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6845 $as_echo "$NMEDIT" >&6; }
6846 else
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6853 if test -z "$ac_cv_prog_NMEDIT"; then
6854 ac_ct_NMEDIT=$NMEDIT
6855 # Extract the first word of "nmedit", so it can be a program name with args.
6856 set dummy nmedit; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 if test -n "$ac_ct_NMEDIT"; then
6863 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6876 done
6877 done
6878 IFS=$as_save_IFS
6882 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6883 if test -n "$ac_ct_NMEDIT"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6885 $as_echo "$ac_ct_NMEDIT" >&6; }
6886 else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6891 if test "x$ac_ct_NMEDIT" = x; then
6892 NMEDIT=":"
6893 else
6894 case $cross_compiling:$ac_tool_warned in
6895 yes:)
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6898 ac_tool_warned=yes ;;
6899 esac
6900 NMEDIT=$ac_ct_NMEDIT
6902 else
6903 NMEDIT="$ac_cv_prog_NMEDIT"
6906 if test -n "$ac_tool_prefix"; then
6907 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6908 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if ${ac_cv_prog_LIPO+:} false; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 if test -n "$LIPO"; then
6915 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6928 done
6929 done
6930 IFS=$as_save_IFS
6934 LIPO=$ac_cv_prog_LIPO
6935 if test -n "$LIPO"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6937 $as_echo "$LIPO" >&6; }
6938 else
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6945 if test -z "$ac_cv_prog_LIPO"; then
6946 ac_ct_LIPO=$LIPO
6947 # Extract the first word of "lipo", so it can be a program name with args.
6948 set dummy lipo; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 if test -n "$ac_ct_LIPO"; then
6955 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964 ac_cv_prog_ac_ct_LIPO="lipo"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6968 done
6969 done
6970 IFS=$as_save_IFS
6974 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6975 if test -n "$ac_ct_LIPO"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6977 $as_echo "$ac_ct_LIPO" >&6; }
6978 else
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6983 if test "x$ac_ct_LIPO" = x; then
6984 LIPO=":"
6985 else
6986 case $cross_compiling:$ac_tool_warned in
6987 yes:)
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990 ac_tool_warned=yes ;;
6991 esac
6992 LIPO=$ac_ct_LIPO
6994 else
6995 LIPO="$ac_cv_prog_LIPO"
6998 if test -n "$ac_tool_prefix"; then
6999 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7000 set dummy ${ac_tool_prefix}otool; ac_word=$2
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002 $as_echo_n "checking for $ac_word... " >&6; }
7003 if ${ac_cv_prog_OTOOL+:} false; then :
7004 $as_echo_n "(cached) " >&6
7005 else
7006 if test -n "$OTOOL"; then
7007 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7008 else
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7012 IFS=$as_save_IFS
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7016 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 break 2
7020 done
7021 done
7022 IFS=$as_save_IFS
7026 OTOOL=$ac_cv_prog_OTOOL
7027 if test -n "$OTOOL"; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7029 $as_echo "$OTOOL" >&6; }
7030 else
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032 $as_echo "no" >&6; }
7037 if test -z "$ac_cv_prog_OTOOL"; then
7038 ac_ct_OTOOL=$OTOOL
7039 # Extract the first word of "otool", so it can be a program name with args.
7040 set dummy otool; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 if test -n "$ac_ct_OTOOL"; then
7047 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7048 else
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056 ac_cv_prog_ac_ct_OTOOL="otool"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7060 done
7061 done
7062 IFS=$as_save_IFS
7066 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7067 if test -n "$ac_ct_OTOOL"; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7069 $as_echo "$ac_ct_OTOOL" >&6; }
7070 else
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7075 if test "x$ac_ct_OTOOL" = x; then
7076 OTOOL=":"
7077 else
7078 case $cross_compiling:$ac_tool_warned in
7079 yes:)
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7082 ac_tool_warned=yes ;;
7083 esac
7084 OTOOL=$ac_ct_OTOOL
7086 else
7087 OTOOL="$ac_cv_prog_OTOOL"
7090 if test -n "$ac_tool_prefix"; then
7091 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7092 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094 $as_echo_n "checking for $ac_word... " >&6; }
7095 if ${ac_cv_prog_OTOOL64+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 if test -n "$OTOOL64"; then
7099 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7112 done
7113 done
7114 IFS=$as_save_IFS
7118 OTOOL64=$ac_cv_prog_OTOOL64
7119 if test -n "$OTOOL64"; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7121 $as_echo "$OTOOL64" >&6; }
7122 else
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124 $as_echo "no" >&6; }
7129 if test -z "$ac_cv_prog_OTOOL64"; then
7130 ac_ct_OTOOL64=$OTOOL64
7131 # Extract the first word of "otool64", so it can be a program name with args.
7132 set dummy otool64; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 if test -n "$ac_ct_OTOOL64"; then
7139 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_ac_ct_OTOOL64="otool64"
7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7152 done
7153 done
7154 IFS=$as_save_IFS
7158 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7159 if test -n "$ac_ct_OTOOL64"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7161 $as_echo "$ac_ct_OTOOL64" >&6; }
7162 else
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7167 if test "x$ac_ct_OTOOL64" = x; then
7168 OTOOL64=":"
7169 else
7170 case $cross_compiling:$ac_tool_warned in
7171 yes:)
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7174 ac_tool_warned=yes ;;
7175 esac
7176 OTOOL64=$ac_ct_OTOOL64
7178 else
7179 OTOOL64="$ac_cv_prog_OTOOL64"
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7209 $as_echo_n "checking for -single_module linker flag... " >&6; }
7210 if ${lt_cv_apple_cc_single_mod+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 lt_cv_apple_cc_single_mod=no
7214 if test -z "${LT_MULTI_MODULE}"; then
7215 # By default we will add the -single_module flag. You can override
7216 # by either setting the environment variable LT_MULTI_MODULE
7217 # non-empty at configure time, or by adding -multi_module to the
7218 # link flags.
7219 rm -rf libconftest.dylib*
7220 echo "int foo(void){return 1;}" > conftest.c
7221 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7222 -dynamiclib -Wl,-single_module conftest.c" >&5
7223 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7224 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7225 _lt_result=$?
7226 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7227 lt_cv_apple_cc_single_mod=yes
7228 else
7229 cat conftest.err >&5
7231 rm -rf libconftest.dylib*
7232 rm -f conftest.*
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7236 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7238 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7239 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 lt_cv_ld_exported_symbols_list=no
7243 save_LDFLAGS=$LDFLAGS
7244 echo "_main" > conftest.sym
7245 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7246 if test x$gcc_no_link = xyes; then
7247 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7253 main ()
7257 return 0;
7259 _ACEOF
7260 if ac_fn_c_try_link "$LINENO"; then :
7261 lt_cv_ld_exported_symbols_list=yes
7262 else
7263 lt_cv_ld_exported_symbols_list=no
7265 rm -f core conftest.err conftest.$ac_objext \
7266 conftest$ac_exeext conftest.$ac_ext
7267 LDFLAGS="$save_LDFLAGS"
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7271 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7273 $as_echo_n "checking for -force_load linker flag... " >&6; }
7274 if ${lt_cv_ld_force_load+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 lt_cv_ld_force_load=no
7278 cat > conftest.c << _LT_EOF
7279 int forced_loaded() { return 2;}
7280 _LT_EOF
7281 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7282 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7283 echo "$AR cru libconftest.a conftest.o" >&5
7284 $AR cru libconftest.a conftest.o 2>&5
7285 cat > conftest.c << _LT_EOF
7286 int main() { return 0;}
7287 _LT_EOF
7288 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7289 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7290 _lt_result=$?
7291 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7292 lt_cv_ld_force_load=yes
7293 else
7294 cat conftest.err >&5
7296 rm -f conftest.err libconftest.a conftest conftest.c
7297 rm -rf conftest.dSYM
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7301 $as_echo "$lt_cv_ld_force_load" >&6; }
7302 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7303 # build without first building modern cctools / linker.
7304 case $host_cpu-$host_os in
7305 *-rhapsody* | *-darwin1.[012])
7306 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7307 *-darwin1.*)
7308 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7309 *-darwin*)
7310 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7311 # deployment target is forced to an earlier version.
7312 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7313 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7315 10.[012][,.]*)
7316 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7320 esac
7322 esac
7323 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7324 _lt_dar_single_mod='$single_module'
7326 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7327 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7328 else
7329 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7331 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7332 _lt_dsymutil='~$DSYMUTIL $lib || :'
7333 else
7334 _lt_dsymutil=
7337 esac
7339 for ac_header in dlfcn.h
7340 do :
7341 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7343 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7344 cat >>confdefs.h <<_ACEOF
7345 #define HAVE_DLFCN_H 1
7346 _ACEOF
7350 done
7356 # Set options
7360 enable_dlopen=no
7363 enable_win32_dll=no
7366 # Check whether --enable-shared was given.
7367 if test "${enable_shared+set}" = set; then :
7368 enableval=$enable_shared; p=${PACKAGE-default}
7369 case $enableval in
7370 yes) enable_shared=yes ;;
7371 no) enable_shared=no ;;
7373 enable_shared=no
7374 # Look at the argument we got. We use all the common list separators.
7375 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7376 for pkg in $enableval; do
7377 IFS="$lt_save_ifs"
7378 if test "X$pkg" = "X$p"; then
7379 enable_shared=yes
7381 done
7382 IFS="$lt_save_ifs"
7384 esac
7385 else
7386 enable_shared=yes
7397 # Check whether --enable-static was given.
7398 if test "${enable_static+set}" = set; then :
7399 enableval=$enable_static; p=${PACKAGE-default}
7400 case $enableval in
7401 yes) enable_static=yes ;;
7402 no) enable_static=no ;;
7404 enable_static=no
7405 # Look at the argument we got. We use all the common list separators.
7406 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7407 for pkg in $enableval; do
7408 IFS="$lt_save_ifs"
7409 if test "X$pkg" = "X$p"; then
7410 enable_static=yes
7412 done
7413 IFS="$lt_save_ifs"
7415 esac
7416 else
7417 enable_static=yes
7429 # Check whether --with-pic was given.
7430 if test "${with_pic+set}" = set; then :
7431 withval=$with_pic; pic_mode="$withval"
7432 else
7433 pic_mode=default
7437 test -z "$pic_mode" && pic_mode=default
7445 # Check whether --enable-fast-install was given.
7446 if test "${enable_fast_install+set}" = set; then :
7447 enableval=$enable_fast_install; p=${PACKAGE-default}
7448 case $enableval in
7449 yes) enable_fast_install=yes ;;
7450 no) enable_fast_install=no ;;
7452 enable_fast_install=no
7453 # Look at the argument we got. We use all the common list separators.
7454 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7455 for pkg in $enableval; do
7456 IFS="$lt_save_ifs"
7457 if test "X$pkg" = "X$p"; then
7458 enable_fast_install=yes
7460 done
7461 IFS="$lt_save_ifs"
7463 esac
7464 else
7465 enable_fast_install=yes
7478 # This can be used to rebuild libtool when needed
7479 LIBTOOL_DEPS="$ltmain"
7481 # Always use our own libtool.
7482 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7509 test -z "$LN_S" && LN_S="ln -s"
7524 if test -n "${ZSH_VERSION+set}" ; then
7525 setopt NO_GLOB_SUBST
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7529 $as_echo_n "checking for objdir... " >&6; }
7530 if ${lt_cv_objdir+:} false; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 rm -f .libs 2>/dev/null
7534 mkdir .libs 2>/dev/null
7535 if test -d .libs; then
7536 lt_cv_objdir=.libs
7537 else
7538 # MS-DOS does not allow filenames that begin with a dot.
7539 lt_cv_objdir=_libs
7541 rmdir .libs 2>/dev/null
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7544 $as_echo "$lt_cv_objdir" >&6; }
7545 objdir=$lt_cv_objdir
7551 cat >>confdefs.h <<_ACEOF
7552 #define LT_OBJDIR "$lt_cv_objdir/"
7553 _ACEOF
7558 case $host_os in
7559 aix3*)
7560 # AIX sometimes has problems with the GCC collect2 program. For some
7561 # reason, if we set the COLLECT_NAMES environment variable, the problems
7562 # vanish in a puff of smoke.
7563 if test "X${COLLECT_NAMES+set}" != Xset; then
7564 COLLECT_NAMES=
7565 export COLLECT_NAMES
7568 esac
7570 # Global variables:
7571 ofile=libtool
7572 can_build_shared=yes
7574 # All known linkers require a `.a' archive for static linking (except MSVC,
7575 # which needs '.lib').
7576 libext=a
7578 with_gnu_ld="$lt_cv_prog_gnu_ld"
7580 old_CC="$CC"
7581 old_CFLAGS="$CFLAGS"
7583 # Set sane defaults for various variables
7584 test -z "$CC" && CC=cc
7585 test -z "$LTCC" && LTCC=$CC
7586 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7587 test -z "$LD" && LD=ld
7588 test -z "$ac_objext" && ac_objext=o
7590 for cc_temp in $compiler""; do
7591 case $cc_temp in
7592 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7593 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7594 \-*) ;;
7595 *) break;;
7596 esac
7597 done
7598 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7601 # Only perform the check for file, if the check method requires it
7602 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7603 case $deplibs_check_method in
7604 file_magic*)
7605 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7607 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7608 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 case $MAGIC_CMD in
7612 [\\/*] | ?:[\\/]*)
7613 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7616 lt_save_MAGIC_CMD="$MAGIC_CMD"
7617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7618 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7619 for ac_dir in $ac_dummy; do
7620 IFS="$lt_save_ifs"
7621 test -z "$ac_dir" && ac_dir=.
7622 if test -f $ac_dir/${ac_tool_prefix}file; then
7623 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7624 if test -n "$file_magic_test_file"; then
7625 case $deplibs_check_method in
7626 "file_magic "*)
7627 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7630 $EGREP "$file_magic_regex" > /dev/null; then
7632 else
7633 cat <<_LT_EOF 1>&2
7635 *** Warning: the command libtool uses to detect shared libraries,
7636 *** $file_magic_cmd, produces output that libtool cannot recognize.
7637 *** The result is that libtool may fail to recognize shared libraries
7638 *** as such. This will affect the creation of libtool libraries that
7639 *** depend on shared libraries, but programs linked with such libtool
7640 *** libraries will work regardless of this problem. Nevertheless, you
7641 *** may want to report the problem to your system manager and/or to
7642 *** bug-libtool@gnu.org
7644 _LT_EOF
7645 fi ;;
7646 esac
7648 break
7650 done
7651 IFS="$lt_save_ifs"
7652 MAGIC_CMD="$lt_save_MAGIC_CMD"
7654 esac
7657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7658 if test -n "$MAGIC_CMD"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7660 $as_echo "$MAGIC_CMD" >&6; }
7661 else
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7670 if test -z "$lt_cv_path_MAGIC_CMD"; then
7671 if test -n "$ac_tool_prefix"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7673 $as_echo_n "checking for file... " >&6; }
7674 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 case $MAGIC_CMD in
7678 [\\/*] | ?:[\\/]*)
7679 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7682 lt_save_MAGIC_CMD="$MAGIC_CMD"
7683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7684 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7685 for ac_dir in $ac_dummy; do
7686 IFS="$lt_save_ifs"
7687 test -z "$ac_dir" && ac_dir=.
7688 if test -f $ac_dir/file; then
7689 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7690 if test -n "$file_magic_test_file"; then
7691 case $deplibs_check_method in
7692 "file_magic "*)
7693 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7696 $EGREP "$file_magic_regex" > /dev/null; then
7698 else
7699 cat <<_LT_EOF 1>&2
7701 *** Warning: the command libtool uses to detect shared libraries,
7702 *** $file_magic_cmd, produces output that libtool cannot recognize.
7703 *** The result is that libtool may fail to recognize shared libraries
7704 *** as such. This will affect the creation of libtool libraries that
7705 *** depend on shared libraries, but programs linked with such libtool
7706 *** libraries will work regardless of this problem. Nevertheless, you
7707 *** may want to report the problem to your system manager and/or to
7708 *** bug-libtool@gnu.org
7710 _LT_EOF
7711 fi ;;
7712 esac
7714 break
7716 done
7717 IFS="$lt_save_ifs"
7718 MAGIC_CMD="$lt_save_MAGIC_CMD"
7720 esac
7723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7724 if test -n "$MAGIC_CMD"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7726 $as_echo "$MAGIC_CMD" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7733 else
7734 MAGIC_CMD=:
7740 esac
7742 # Use C for the default configuration in the libtool script
7744 lt_save_CC="$CC"
7745 ac_ext=c
7746 ac_cpp='$CPP $CPPFLAGS'
7747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7752 # Source file extension for C test sources.
7753 ac_ext=c
7755 # Object file extension for compiled C test sources.
7756 objext=o
7757 objext=$objext
7759 # Code to be used in simple compile tests
7760 lt_simple_compile_test_code="int some_variable = 0;"
7762 # Code to be used in simple link tests
7763 lt_simple_link_test_code='int main(){return(0);}'
7771 # If no C compiler was specified, use CC.
7772 LTCC=${LTCC-"$CC"}
7774 # If no C compiler flags were specified, use CFLAGS.
7775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7777 # Allow CC to be a program name with arguments.
7778 compiler=$CC
7780 # Save the default compiler, since it gets overwritten when the other
7781 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7782 compiler_DEFAULT=$CC
7784 # save warnings/boilerplate of simple test code
7785 ac_outfile=conftest.$ac_objext
7786 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7787 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7788 _lt_compiler_boilerplate=`cat conftest.err`
7789 $RM conftest*
7791 ac_outfile=conftest.$ac_objext
7792 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7793 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7794 _lt_linker_boilerplate=`cat conftest.err`
7795 $RM -r conftest*
7798 ## CAVEAT EMPTOR:
7799 ## There is no encapsulation within the following macros, do not change
7800 ## the running order or otherwise move them around unless you know exactly
7801 ## what you are doing...
7802 if test -n "$compiler"; then
7804 lt_prog_compiler_no_builtin_flag=
7806 if test "$GCC" = yes; then
7807 case $cc_basename in
7808 nvcc*)
7809 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7811 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7812 esac
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7815 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7816 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 lt_cv_prog_compiler_rtti_exceptions=no
7820 ac_outfile=conftest.$ac_objext
7821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7822 lt_compiler_flag="-fno-rtti -fno-exceptions"
7823 # Insert the option either (1) after the last *FLAGS variable, or
7824 # (2) before a word containing "conftest.", or (3) at the end.
7825 # Note that $ac_compile itself does not contain backslashes and begins
7826 # with a dollar sign (not a hyphen), so the echo should work correctly.
7827 # The option is referenced via a variable to avoid confusing sed.
7828 lt_compile=`echo "$ac_compile" | $SED \
7829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7831 -e 's:$: $lt_compiler_flag:'`
7832 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7833 (eval "$lt_compile" 2>conftest.err)
7834 ac_status=$?
7835 cat conftest.err >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 if (exit $ac_status) && test -s "$ac_outfile"; then
7838 # The compiler can only warn and ignore the option if not recognized
7839 # So say no if there are warnings other than the usual output.
7840 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7843 lt_cv_prog_compiler_rtti_exceptions=yes
7846 $RM conftest*
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7850 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7852 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7853 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7854 else
7865 lt_prog_compiler_wl=
7866 lt_prog_compiler_pic=
7867 lt_prog_compiler_static=
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7870 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7872 if test "$GCC" = yes; then
7873 lt_prog_compiler_wl='-Wl,'
7874 lt_prog_compiler_static='-static'
7876 case $host_os in
7877 aix*)
7878 # All AIX code is PIC.
7879 if test "$host_cpu" = ia64; then
7880 # AIX 5 now supports IA64 processor
7881 lt_prog_compiler_static='-Bstatic'
7883 lt_prog_compiler_pic='-fPIC'
7886 amigaos*)
7887 case $host_cpu in
7888 powerpc)
7889 # see comment about AmigaOS4 .so support
7890 lt_prog_compiler_pic='-fPIC'
7892 m68k)
7893 # FIXME: we need at least 68020 code to build shared libraries, but
7894 # adding the `-m68020' flag to GCC prevents building anything better,
7895 # like `-m68040'.
7896 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7898 esac
7901 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7902 # PIC is the default for these OSes.
7905 mingw* | cygwin* | pw32* | os2* | cegcc*)
7906 # This hack is so that the source file can tell whether it is being
7907 # built for inclusion in a dll (and should export symbols for example).
7908 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7909 # (--disable-auto-import) libraries
7910 lt_prog_compiler_pic='-DDLL_EXPORT'
7913 darwin* | rhapsody*)
7914 # PIC is the default on this platform
7915 # Common symbols not allowed in MH_DYLIB files
7916 lt_prog_compiler_pic='-fno-common'
7919 haiku*)
7920 # PIC is the default for Haiku.
7921 # The "-static" flag exists, but is broken.
7922 lt_prog_compiler_static=
7925 hpux*)
7926 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7927 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7928 # sets the default TLS model and affects inlining.
7929 case $host_cpu in
7930 hppa*64*)
7931 # +Z the default
7934 lt_prog_compiler_pic='-fPIC'
7936 esac
7939 interix[3-9]*)
7940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7941 # Instead, we relocate shared libraries at runtime.
7944 msdosdjgpp*)
7945 # Just because we use GCC doesn't mean we suddenly get shared libraries
7946 # on systems that don't support them.
7947 lt_prog_compiler_can_build_shared=no
7948 enable_shared=no
7951 *nto* | *qnx*)
7952 # QNX uses GNU C++, but need to define -shared option too, otherwise
7953 # it will coredump.
7954 lt_prog_compiler_pic='-fPIC -shared'
7957 sysv4*MP*)
7958 if test -d /usr/nec; then
7959 lt_prog_compiler_pic=-Kconform_pic
7964 lt_prog_compiler_pic='-fPIC'
7966 esac
7968 case $cc_basename in
7969 nvcc*) # Cuda Compiler Driver 2.2
7970 lt_prog_compiler_wl='-Xlinker '
7971 lt_prog_compiler_pic='-Xcompiler -fPIC'
7973 esac
7974 else
7975 # PORTME Check for flag to pass linker flags through the system compiler.
7976 case $host_os in
7977 aix*)
7978 lt_prog_compiler_wl='-Wl,'
7979 if test "$host_cpu" = ia64; then
7980 # AIX 5 now supports IA64 processor
7981 lt_prog_compiler_static='-Bstatic'
7982 else
7983 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7987 mingw* | cygwin* | pw32* | os2* | cegcc*)
7988 # This hack is so that the source file can tell whether it is being
7989 # built for inclusion in a dll (and should export symbols for example).
7990 lt_prog_compiler_pic='-DDLL_EXPORT'
7993 hpux9* | hpux10* | hpux11*)
7994 lt_prog_compiler_wl='-Wl,'
7995 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7996 # not for PA HP-UX.
7997 case $host_cpu in
7998 hppa*64*|ia64*)
7999 # +Z the default
8002 lt_prog_compiler_pic='+Z'
8004 esac
8005 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8006 lt_prog_compiler_static='${wl}-a ${wl}archive'
8009 irix5* | irix6* | nonstopux*)
8010 lt_prog_compiler_wl='-Wl,'
8011 # PIC (with -KPIC) is the default.
8012 lt_prog_compiler_static='-non_shared'
8015 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8016 case $cc_basename in
8017 # old Intel for x86_64 which still supported -KPIC.
8018 ecc*)
8019 lt_prog_compiler_wl='-Wl,'
8020 lt_prog_compiler_pic='-KPIC'
8021 lt_prog_compiler_static='-static'
8023 # icc used to be incompatible with GCC.
8024 # ICC 10 doesn't accept -KPIC any more.
8025 icc* | ifort*)
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_pic='-fPIC'
8028 lt_prog_compiler_static='-static'
8030 # Lahey Fortran 8.1.
8031 lf95*)
8032 lt_prog_compiler_wl='-Wl,'
8033 lt_prog_compiler_pic='--shared'
8034 lt_prog_compiler_static='--static'
8036 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8037 # Portland Group compilers (*not* the Pentium gcc compiler,
8038 # which looks to be a dead project)
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='-fpic'
8041 lt_prog_compiler_static='-Bstatic'
8043 ccc*)
8044 lt_prog_compiler_wl='-Wl,'
8045 # All Alpha code is PIC.
8046 lt_prog_compiler_static='-non_shared'
8048 xl* | bgxl* | bgf* | mpixl*)
8049 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8050 lt_prog_compiler_wl='-Wl,'
8051 lt_prog_compiler_pic='-qpic'
8052 lt_prog_compiler_static='-qstaticlink'
8055 case `$CC -V 2>&1 | sed 5q` in
8056 *Sun\ F* | *Sun*Fortran*)
8057 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8058 lt_prog_compiler_pic='-KPIC'
8059 lt_prog_compiler_static='-Bstatic'
8060 lt_prog_compiler_wl=''
8062 *Sun\ C*)
8063 # Sun C 5.9
8064 lt_prog_compiler_pic='-KPIC'
8065 lt_prog_compiler_static='-Bstatic'
8066 lt_prog_compiler_wl='-Wl,'
8068 esac
8070 esac
8073 newsos6)
8074 lt_prog_compiler_pic='-KPIC'
8075 lt_prog_compiler_static='-Bstatic'
8078 *nto* | *qnx*)
8079 # QNX uses GNU C++, but need to define -shared option too, otherwise
8080 # it will coredump.
8081 lt_prog_compiler_pic='-fPIC -shared'
8084 osf3* | osf4* | osf5*)
8085 lt_prog_compiler_wl='-Wl,'
8086 # All OSF/1 code is PIC.
8087 lt_prog_compiler_static='-non_shared'
8090 rdos*)
8091 lt_prog_compiler_static='-non_shared'
8094 solaris*)
8095 lt_prog_compiler_pic='-KPIC'
8096 lt_prog_compiler_static='-Bstatic'
8097 case $cc_basename in
8098 f77* | f90* | f95*)
8099 lt_prog_compiler_wl='-Qoption ld ';;
8101 lt_prog_compiler_wl='-Wl,';;
8102 esac
8105 sunos4*)
8106 lt_prog_compiler_wl='-Qoption ld '
8107 lt_prog_compiler_pic='-PIC'
8108 lt_prog_compiler_static='-Bstatic'
8111 sysv4 | sysv4.2uw2* | sysv4.3*)
8112 lt_prog_compiler_wl='-Wl,'
8113 lt_prog_compiler_pic='-KPIC'
8114 lt_prog_compiler_static='-Bstatic'
8117 sysv4*MP*)
8118 if test -d /usr/nec ;then
8119 lt_prog_compiler_pic='-Kconform_pic'
8120 lt_prog_compiler_static='-Bstatic'
8124 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8125 lt_prog_compiler_wl='-Wl,'
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-Bstatic'
8130 unicos*)
8131 lt_prog_compiler_wl='-Wl,'
8132 lt_prog_compiler_can_build_shared=no
8135 uts4*)
8136 lt_prog_compiler_pic='-pic'
8137 lt_prog_compiler_static='-Bstatic'
8141 lt_prog_compiler_can_build_shared=no
8143 esac
8146 case $host_os in
8147 # For platforms which do not support PIC, -DPIC is meaningless:
8148 *djgpp*)
8149 lt_prog_compiler_pic=
8152 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8154 esac
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8156 $as_echo "$lt_prog_compiler_pic" >&6; }
8164 # Check to make sure the PIC flag actually works.
8166 if test -n "$lt_prog_compiler_pic"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8168 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8169 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 lt_cv_prog_compiler_pic_works=no
8173 ac_outfile=conftest.$ac_objext
8174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8175 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8176 # Insert the option either (1) after the last *FLAGS variable, or
8177 # (2) before a word containing "conftest.", or (3) at the end.
8178 # Note that $ac_compile itself does not contain backslashes and begins
8179 # with a dollar sign (not a hyphen), so the echo should work correctly.
8180 # The option is referenced via a variable to avoid confusing sed.
8181 lt_compile=`echo "$ac_compile" | $SED \
8182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8184 -e 's:$: $lt_compiler_flag:'`
8185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8186 (eval "$lt_compile" 2>conftest.err)
8187 ac_status=$?
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 if (exit $ac_status) && test -s "$ac_outfile"; then
8191 # The compiler can only warn and ignore the option if not recognized
8192 # So say no if there are warnings other than the usual output.
8193 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8195 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8196 lt_cv_prog_compiler_pic_works=yes
8199 $RM conftest*
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8203 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8205 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8206 case $lt_prog_compiler_pic in
8207 "" | " "*) ;;
8208 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8209 esac
8210 else
8211 lt_prog_compiler_pic=
8212 lt_prog_compiler_can_build_shared=no
8223 # Check to make sure the static flag actually works.
8225 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8227 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8228 if ${lt_cv_prog_compiler_static_works+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 lt_cv_prog_compiler_static_works=no
8232 save_LDFLAGS="$LDFLAGS"
8233 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8234 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8236 # The linker can only warn and ignore the option if not recognized
8237 # So say no if there are warnings
8238 if test -s conftest.err; then
8239 # Append any errors to the config.log.
8240 cat conftest.err 1>&5
8241 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8243 if diff conftest.exp conftest.er2 >/dev/null; then
8244 lt_cv_prog_compiler_static_works=yes
8246 else
8247 lt_cv_prog_compiler_static_works=yes
8250 $RM -r conftest*
8251 LDFLAGS="$save_LDFLAGS"
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8255 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8257 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8259 else
8260 lt_prog_compiler_static=
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8270 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8271 if ${lt_cv_prog_compiler_c_o+:} false; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 lt_cv_prog_compiler_c_o=no
8275 $RM -r conftest 2>/dev/null
8276 mkdir conftest
8277 cd conftest
8278 mkdir out
8279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8281 lt_compiler_flag="-o out/conftest2.$ac_objext"
8282 # Insert the option either (1) after the last *FLAGS variable, or
8283 # (2) before a word containing "conftest.", or (3) at the end.
8284 # Note that $ac_compile itself does not contain backslashes and begins
8285 # with a dollar sign (not a hyphen), so the echo should work correctly.
8286 lt_compile=`echo "$ac_compile" | $SED \
8287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8289 -e 's:$: $lt_compiler_flag:'`
8290 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8291 (eval "$lt_compile" 2>out/conftest.err)
8292 ac_status=$?
8293 cat out/conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8296 then
8297 # The compiler can only warn and ignore the option if not recognized
8298 # So say no if there are warnings
8299 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8300 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8301 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8302 lt_cv_prog_compiler_c_o=yes
8305 chmod u+w . 2>&5
8306 $RM conftest*
8307 # SGI C++ compiler will create directory out/ii_files/ for
8308 # template instantiation
8309 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8310 $RM out/* && rmdir out
8311 cd ..
8312 $RM -r conftest
8313 $RM conftest*
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8317 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8325 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8326 if ${lt_cv_prog_compiler_c_o+:} false; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 lt_cv_prog_compiler_c_o=no
8330 $RM -r conftest 2>/dev/null
8331 mkdir conftest
8332 cd conftest
8333 mkdir out
8334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8336 lt_compiler_flag="-o out/conftest2.$ac_objext"
8337 # Insert the option either (1) after the last *FLAGS variable, or
8338 # (2) before a word containing "conftest.", or (3) at the end.
8339 # Note that $ac_compile itself does not contain backslashes and begins
8340 # with a dollar sign (not a hyphen), so the echo should work correctly.
8341 lt_compile=`echo "$ac_compile" | $SED \
8342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8344 -e 's:$: $lt_compiler_flag:'`
8345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8346 (eval "$lt_compile" 2>out/conftest.err)
8347 ac_status=$?
8348 cat out/conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8351 then
8352 # The compiler can only warn and ignore the option if not recognized
8353 # So say no if there are warnings
8354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8357 lt_cv_prog_compiler_c_o=yes
8360 chmod u+w . 2>&5
8361 $RM conftest*
8362 # SGI C++ compiler will create directory out/ii_files/ for
8363 # template instantiation
8364 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8365 $RM out/* && rmdir out
8366 cd ..
8367 $RM -r conftest
8368 $RM conftest*
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8372 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8377 hard_links="nottested"
8378 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8379 # do not overwrite the value of need_locks provided by the user
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8381 $as_echo_n "checking if we can lock with hard links... " >&6; }
8382 hard_links=yes
8383 $RM conftest*
8384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8385 touch conftest.a
8386 ln conftest.a conftest.b 2>&5 || hard_links=no
8387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8389 $as_echo "$hard_links" >&6; }
8390 if test "$hard_links" = no; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8392 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8393 need_locks=warn
8395 else
8396 need_locks=no
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8405 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8407 runpath_var=
8408 allow_undefined_flag=
8409 always_export_symbols=no
8410 archive_cmds=
8411 archive_expsym_cmds=
8412 compiler_needs_object=no
8413 enable_shared_with_static_runtimes=no
8414 export_dynamic_flag_spec=
8415 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8416 hardcode_automatic=no
8417 hardcode_direct=no
8418 hardcode_direct_absolute=no
8419 hardcode_libdir_flag_spec=
8420 hardcode_libdir_flag_spec_ld=
8421 hardcode_libdir_separator=
8422 hardcode_minus_L=no
8423 hardcode_shlibpath_var=unsupported
8424 inherit_rpath=no
8425 link_all_deplibs=unknown
8426 module_cmds=
8427 module_expsym_cmds=
8428 old_archive_from_new_cmds=
8429 old_archive_from_expsyms_cmds=
8430 thread_safe_flag_spec=
8431 whole_archive_flag_spec=
8432 # include_expsyms should be a list of space-separated symbols to be *always*
8433 # included in the symbol list
8434 include_expsyms=
8435 # exclude_expsyms can be an extended regexp of symbols to exclude
8436 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8437 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8438 # as well as any symbol that contains `d'.
8439 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8440 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8441 # platforms (ab)use it in PIC code, but their linkers get confused if
8442 # the symbol is explicitly referenced. Since portable code cannot
8443 # rely on this symbol name, it's probably fine to never include it in
8444 # preloaded symbol tables.
8445 # Exclude shared library initialization/finalization symbols.
8446 extract_expsyms_cmds=
8448 case $host_os in
8449 cygwin* | mingw* | pw32* | cegcc*)
8450 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8451 # When not using gcc, we currently assume that we are using
8452 # Microsoft Visual C++.
8453 if test "$GCC" != yes; then
8454 with_gnu_ld=no
8457 interix*)
8458 # we just hope/assume this is gcc and not c89 (= MSVC++)
8459 with_gnu_ld=yes
8461 openbsd*)
8462 with_gnu_ld=no
8464 esac
8466 ld_shlibs=yes
8468 # On some targets, GNU ld is compatible enough with the native linker
8469 # that we're better off using the native interface for both.
8470 lt_use_gnu_ld_interface=no
8471 if test "$with_gnu_ld" = yes; then
8472 case $host_os in
8473 aix*)
8474 # The AIX port of GNU ld has always aspired to compatibility
8475 # with the native linker. However, as the warning in the GNU ld
8476 # block says, versions before 2.19.5* couldn't really create working
8477 # shared libraries, regardless of the interface used.
8478 case `$LD -v 2>&1` in
8479 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8480 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8481 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8483 lt_use_gnu_ld_interface=yes
8485 esac
8488 lt_use_gnu_ld_interface=yes
8490 esac
8493 if test "$lt_use_gnu_ld_interface" = yes; then
8494 # If archive_cmds runs LD, not CC, wlarc should be empty
8495 wlarc='${wl}'
8497 # Set some defaults for GNU ld with shared library support. These
8498 # are reset later if shared libraries are not supported. Putting them
8499 # here allows them to be overridden if necessary.
8500 runpath_var=LD_RUN_PATH
8501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8502 export_dynamic_flag_spec='${wl}--export-dynamic'
8503 # ancient GNU ld didn't support --whole-archive et. al.
8504 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8505 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8506 else
8507 whole_archive_flag_spec=
8509 supports_anon_versioning=no
8510 case `$LD -v 2>&1` in
8511 *GNU\ gold*) supports_anon_versioning=yes ;;
8512 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8513 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8514 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8515 *\ 2.11.*) ;; # other 2.11 versions
8516 *) supports_anon_versioning=yes ;;
8517 esac
8519 # See if GNU ld supports shared libraries.
8520 case $host_os in
8521 aix[3-9]*)
8522 # On AIX/PPC, the GNU linker is very broken
8523 if test "$host_cpu" != ia64; then
8524 ld_shlibs=no
8525 cat <<_LT_EOF 1>&2
8527 *** Warning: the GNU linker, at least up to release 2.19, is reported
8528 *** to be unable to reliably create shared libraries on AIX.
8529 *** Therefore, libtool is disabling shared libraries support. If you
8530 *** really care for shared libraries, you may want to install binutils
8531 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8532 *** You will then need to restart the configuration process.
8534 _LT_EOF
8538 amigaos*)
8539 case $host_cpu in
8540 powerpc)
8541 # see comment about AmigaOS4 .so support
8542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543 archive_expsym_cmds=''
8545 m68k)
8546 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)'
8547 hardcode_libdir_flag_spec='-L$libdir'
8548 hardcode_minus_L=yes
8550 esac
8553 beos*)
8554 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8555 allow_undefined_flag=unsupported
8556 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8557 # support --undefined. This deserves some investigation. FIXME
8558 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8559 else
8560 ld_shlibs=no
8564 cygwin* | mingw* | pw32* | cegcc*)
8565 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8566 # as there is no search path for DLLs.
8567 hardcode_libdir_flag_spec='-L$libdir'
8568 export_dynamic_flag_spec='${wl}--export-all-symbols'
8569 allow_undefined_flag=unsupported
8570 always_export_symbols=no
8571 enable_shared_with_static_runtimes=yes
8572 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8574 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8576 # If the export-symbols file already is a .def file (1st line
8577 # is EXPORTS), use it as is; otherwise, prepend...
8578 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8579 cp $export_symbols $output_objdir/$soname.def;
8580 else
8581 echo EXPORTS > $output_objdir/$soname.def;
8582 cat $export_symbols >> $output_objdir/$soname.def;
8584 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8585 else
8586 ld_shlibs=no
8590 haiku*)
8591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592 link_all_deplibs=yes
8595 interix[3-9]*)
8596 hardcode_direct=no
8597 hardcode_shlibpath_var=no
8598 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8599 export_dynamic_flag_spec='${wl}-E'
8600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8601 # Instead, shared libraries are loaded at an image base (0x10000000 by
8602 # default) and relocated if they conflict, which is a slow very memory
8603 # consuming and fragmenting process. To avoid this, we pick a random,
8604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8605 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8607 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'
8610 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8611 tmp_diet=no
8612 if test "$host_os" = linux-dietlibc; then
8613 case $cc_basename in
8614 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8615 esac
8617 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8618 && test "$tmp_diet" = no
8619 then
8620 tmp_addflag=' $pic_flag'
8621 tmp_sharedflag='-shared'
8622 case $cc_basename,$host_cpu in
8623 pgcc*) # Portland Group C compiler
8624 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'
8625 tmp_addflag=' $pic_flag'
8627 pgf77* | pgf90* | pgf95* | pgfortran*)
8628 # Portland Group f77 and f90 compilers
8629 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'
8630 tmp_addflag=' $pic_flag -Mnomain' ;;
8631 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8632 tmp_addflag=' -i_dynamic' ;;
8633 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8634 tmp_addflag=' -i_dynamic -nofor_main' ;;
8635 ifc* | ifort*) # Intel Fortran compiler
8636 tmp_addflag=' -nofor_main' ;;
8637 lf95*) # Lahey Fortran 8.1
8638 whole_archive_flag_spec=
8639 tmp_sharedflag='--shared' ;;
8640 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8641 tmp_sharedflag='-qmkshrobj'
8642 tmp_addflag= ;;
8643 nvcc*) # Cuda Compiler Driver 2.2
8644 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'
8645 compiler_needs_object=yes
8647 esac
8648 case `$CC -V 2>&1 | sed 5q` in
8649 *Sun\ C*) # Sun C 5.9
8650 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'
8651 compiler_needs_object=yes
8652 tmp_sharedflag='-G' ;;
8653 *Sun\ F*) # Sun Fortran 8.3
8654 tmp_sharedflag='-G' ;;
8655 esac
8656 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658 if test "x$supports_anon_versioning" = xyes; then
8659 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8660 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8661 echo "local: *; };" >> $output_objdir/$libname.ver~
8662 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8665 case $cc_basename in
8666 xlf* | bgf* | bgxlf* | mpixlf*)
8667 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8668 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8669 hardcode_libdir_flag_spec=
8670 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8671 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8672 if test "x$supports_anon_versioning" = xyes; then
8673 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8674 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8675 echo "local: *; };" >> $output_objdir/$libname.ver~
8676 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8679 esac
8680 else
8681 ld_shlibs=no
8685 netbsd*)
8686 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8687 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8688 wlarc=
8689 else
8690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8695 solaris*)
8696 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8697 ld_shlibs=no
8698 cat <<_LT_EOF 1>&2
8700 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8701 *** create shared libraries on Solaris systems. Therefore, libtool
8702 *** is disabling shared libraries support. We urge you to upgrade GNU
8703 *** binutils to release 2.9.1 or newer. Another option is to modify
8704 *** your PATH or compiler configuration so that the native linker is
8705 *** used, and then restart.
8707 _LT_EOF
8708 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8711 else
8712 ld_shlibs=no
8716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8717 case `$LD -v 2>&1` in
8718 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8719 ld_shlibs=no
8720 cat <<_LT_EOF 1>&2
8722 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8723 *** reliably create shared libraries on SCO systems. Therefore, libtool
8724 *** is disabling shared libraries support. We urge you to upgrade GNU
8725 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8726 *** your PATH or compiler configuration so that the native linker is
8727 *** used, and then restart.
8729 _LT_EOF
8732 # For security reasons, it is highly recommended that you always
8733 # use absolute paths for naming shared libraries, and exclude the
8734 # DT_RUNPATH tag from executables and libraries. But doing so
8735 # requires that you compile everything twice, which is a pain.
8736 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8740 else
8741 ld_shlibs=no
8744 esac
8747 sunos4*)
8748 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8749 wlarc=
8750 hardcode_direct=yes
8751 hardcode_shlibpath_var=no
8755 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8758 else
8759 ld_shlibs=no
8762 esac
8764 if test "$ld_shlibs" = no; then
8765 runpath_var=
8766 hardcode_libdir_flag_spec=
8767 export_dynamic_flag_spec=
8768 whole_archive_flag_spec=
8770 else
8771 # PORTME fill in a description of your system's linker (not GNU ld)
8772 case $host_os in
8773 aix3*)
8774 allow_undefined_flag=unsupported
8775 always_export_symbols=yes
8776 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'
8777 # Note: this linker hardcodes the directories in LIBPATH if there
8778 # are no directories specified by -L.
8779 hardcode_minus_L=yes
8780 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8781 # Neither direct hardcoding nor static linking is supported with a
8782 # broken collect2.
8783 hardcode_direct=unsupported
8787 aix[4-9]*)
8788 if test "$host_cpu" = ia64; then
8789 # On IA64, the linker does run time linking by default, so we don't
8790 # have to do anything special.
8791 aix_use_runtimelinking=no
8792 exp_sym_flag='-Bexport'
8793 no_entry_flag=""
8794 else
8795 # If we're using GNU nm, then we don't want the "-C" option.
8796 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8797 # Also, AIX nm treats weak defined symbols like other global
8798 # defined symbols, whereas GNU nm marks them as "W".
8799 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8800 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8801 else
8802 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8804 aix_use_runtimelinking=no
8806 # Test if we are trying to use run time linking or normal
8807 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8808 # need to do runtime linking.
8809 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8810 for ld_flag in $LDFLAGS; do
8811 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8812 aix_use_runtimelinking=yes
8813 break
8815 done
8817 esac
8819 exp_sym_flag='-bexport'
8820 no_entry_flag='-bnoentry'
8823 # When large executables or shared objects are built, AIX ld can
8824 # have problems creating the table of contents. If linking a library
8825 # or program results in "error TOC overflow" add -mminimal-toc to
8826 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8827 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8829 archive_cmds=''
8830 hardcode_direct=yes
8831 hardcode_direct_absolute=yes
8832 hardcode_libdir_separator=':'
8833 link_all_deplibs=yes
8834 file_list_spec='${wl}-f,'
8836 if test "$GCC" = yes; then
8837 case $host_os in aix4.[012]|aix4.[012].*)
8838 # We only want to do this on AIX 4.2 and lower, the check
8839 # below for broken collect2 doesn't work under 4.3+
8840 collect2name=`${CC} -print-prog-name=collect2`
8841 if test -f "$collect2name" &&
8842 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8843 then
8844 # We have reworked collect2
8846 else
8847 # We have old collect2
8848 hardcode_direct=unsupported
8849 # It fails to find uninstalled libraries when the uninstalled
8850 # path is not listed in the libpath. Setting hardcode_minus_L
8851 # to unsupported forces relinking
8852 hardcode_minus_L=yes
8853 hardcode_libdir_flag_spec='-L$libdir'
8854 hardcode_libdir_separator=
8857 esac
8858 shared_flag='-shared'
8859 if test "$aix_use_runtimelinking" = yes; then
8860 shared_flag="$shared_flag "'${wl}-G'
8862 else
8863 # not using gcc
8864 if test "$host_cpu" = ia64; then
8865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8866 # chokes on -Wl,-G. The following line is correct:
8867 shared_flag='-G'
8868 else
8869 if test "$aix_use_runtimelinking" = yes; then
8870 shared_flag='${wl}-G'
8871 else
8872 shared_flag='${wl}-bM:SRE'
8877 export_dynamic_flag_spec='${wl}-bexpall'
8878 # It seems that -bexpall does not export symbols beginning with
8879 # underscore (_), so it is better to generate a list of symbols to export.
8880 always_export_symbols=yes
8881 if test "$aix_use_runtimelinking" = yes; then
8882 # Warning - without using the other runtime loading flags (-brtl),
8883 # -berok will link without error, but may produce a broken library.
8884 allow_undefined_flag='-berok'
8885 # Determine the default libpath from the value encoded in an
8886 # empty executable.
8887 if test x$gcc_no_link = xyes; then
8888 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8894 main ()
8898 return 0;
8900 _ACEOF
8901 if ac_fn_c_try_link "$LINENO"; then :
8903 lt_aix_libpath_sed='
8904 /Import File Strings/,/^$/ {
8905 /^0/ {
8906 s/^0 *\(.*\)$/\1/
8910 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8911 # Check for a 64-bit object if we didn't find anything.
8912 if test -z "$aix_libpath"; then
8913 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8916 rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8920 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8921 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8922 else
8923 if test "$host_cpu" = ia64; then
8924 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8925 allow_undefined_flag="-z nodefs"
8926 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"
8927 else
8928 # Determine the default libpath from the value encoded in an
8929 # empty executable.
8930 if test x$gcc_no_link = xyes; then
8931 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8937 main ()
8941 return 0;
8943 _ACEOF
8944 if ac_fn_c_try_link "$LINENO"; then :
8946 lt_aix_libpath_sed='
8947 /Import File Strings/,/^$/ {
8948 /^0/ {
8949 s/^0 *\(.*\)$/\1/
8953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8954 # Check for a 64-bit object if we didn't find anything.
8955 if test -z "$aix_libpath"; then
8956 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8959 rm -f core conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext conftest.$ac_ext
8961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8963 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8964 # Warning - without using the other run time loading flags,
8965 # -berok will link without error, but may produce a broken library.
8966 no_undefined_flag=' ${wl}-bernotok'
8967 allow_undefined_flag=' ${wl}-berok'
8968 if test "$with_gnu_ld" = yes; then
8969 # We only use this code for GNU lds that support --whole-archive.
8970 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8971 else
8972 # Exported symbols can be pulled into shared objects from archives
8973 whole_archive_flag_spec='$convenience'
8975 archive_cmds_need_lc=yes
8976 # This is similar to how AIX traditionally builds its shared libraries.
8977 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8982 amigaos*)
8983 case $host_cpu in
8984 powerpc)
8985 # see comment about AmigaOS4 .so support
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds=''
8989 m68k)
8990 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)'
8991 hardcode_libdir_flag_spec='-L$libdir'
8992 hardcode_minus_L=yes
8994 esac
8997 bsdi[45]*)
8998 export_dynamic_flag_spec=-rdynamic
9001 cygwin* | mingw* | pw32* | cegcc*)
9002 # When not using gcc, we currently assume that we are using
9003 # Microsoft Visual C++.
9004 # hardcode_libdir_flag_spec is actually meaningless, as there is
9005 # no search path for DLLs.
9006 hardcode_libdir_flag_spec=' '
9007 allow_undefined_flag=unsupported
9008 # Tell ltmain to make .lib files, not .a files.
9009 libext=lib
9010 # Tell ltmain to make .dll files, not .so files.
9011 shrext_cmds=".dll"
9012 # FIXME: Setting linknames here is a bad hack.
9013 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9014 # The linker will automatically build a .lib file if we build a DLL.
9015 old_archive_from_new_cmds='true'
9016 # FIXME: Should let the user specify the lib program.
9017 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9018 fix_srcfile_path='`cygpath -w "$srcfile"`'
9019 enable_shared_with_static_runtimes=yes
9022 darwin* | rhapsody*)
9025 archive_cmds_need_lc=no
9026 hardcode_direct=no
9027 hardcode_automatic=yes
9028 hardcode_shlibpath_var=unsupported
9029 if test "$lt_cv_ld_force_load" = "yes"; then
9030 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\"`'
9031 else
9032 whole_archive_flag_spec=''
9034 link_all_deplibs=yes
9035 allow_undefined_flag="$_lt_dar_allow_undefined"
9036 case $cc_basename in
9037 ifort*) _lt_dar_can_shared=yes ;;
9038 *) _lt_dar_can_shared=$GCC ;;
9039 esac
9040 if test "$_lt_dar_can_shared" = "yes"; then
9041 output_verbose_link_cmd=func_echo_all
9042 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9043 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9044 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}"
9045 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}"
9047 else
9048 ld_shlibs=no
9053 dgux*)
9054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055 hardcode_libdir_flag_spec='-L$libdir'
9056 hardcode_shlibpath_var=no
9059 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9060 # support. Future versions do this automatically, but an explicit c++rt0.o
9061 # does not break anything, and helps significantly (at the cost of a little
9062 # extra space).
9063 freebsd2.2*)
9064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9065 hardcode_libdir_flag_spec='-R$libdir'
9066 hardcode_direct=yes
9067 hardcode_shlibpath_var=no
9070 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9071 freebsd2.*)
9072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9073 hardcode_direct=yes
9074 hardcode_minus_L=yes
9075 hardcode_shlibpath_var=no
9078 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9079 freebsd* | dragonfly*)
9080 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9081 hardcode_libdir_flag_spec='-R$libdir'
9082 hardcode_direct=yes
9083 hardcode_shlibpath_var=no
9086 hpux9*)
9087 if test "$GCC" = yes; then
9088 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9089 else
9090 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9092 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9093 hardcode_libdir_separator=:
9094 hardcode_direct=yes
9096 # hardcode_minus_L: Not really in the search PATH,
9097 # but as the default location of the library.
9098 hardcode_minus_L=yes
9099 export_dynamic_flag_spec='${wl}-E'
9102 hpux10*)
9103 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9104 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9105 else
9106 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9108 if test "$with_gnu_ld" = no; then
9109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110 hardcode_libdir_flag_spec_ld='+b $libdir'
9111 hardcode_libdir_separator=:
9112 hardcode_direct=yes
9113 hardcode_direct_absolute=yes
9114 export_dynamic_flag_spec='${wl}-E'
9115 # hardcode_minus_L: Not really in the search PATH,
9116 # but as the default location of the library.
9117 hardcode_minus_L=yes
9121 hpux11*)
9122 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9123 case $host_cpu in
9124 hppa*64*)
9125 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9127 ia64*)
9128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9131 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9133 esac
9134 else
9135 case $host_cpu in
9136 hppa*64*)
9137 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9139 ia64*)
9140 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9144 # Older versions of the 11.00 compiler do not understand -b yet
9145 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9147 $as_echo_n "checking if $CC understands -b... " >&6; }
9148 if ${lt_cv_prog_compiler__b+:} false; then :
9149 $as_echo_n "(cached) " >&6
9150 else
9151 lt_cv_prog_compiler__b=no
9152 save_LDFLAGS="$LDFLAGS"
9153 LDFLAGS="$LDFLAGS -b"
9154 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9155 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9156 # The linker can only warn and ignore the option if not recognized
9157 # So say no if there are warnings
9158 if test -s conftest.err; then
9159 # Append any errors to the config.log.
9160 cat conftest.err 1>&5
9161 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9163 if diff conftest.exp conftest.er2 >/dev/null; then
9164 lt_cv_prog_compiler__b=yes
9166 else
9167 lt_cv_prog_compiler__b=yes
9170 $RM -r conftest*
9171 LDFLAGS="$save_LDFLAGS"
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9175 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9177 if test x"$lt_cv_prog_compiler__b" = xyes; then
9178 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9179 else
9180 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9184 esac
9186 if test "$with_gnu_ld" = no; then
9187 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9188 hardcode_libdir_separator=:
9190 case $host_cpu in
9191 hppa*64*|ia64*)
9192 hardcode_direct=no
9193 hardcode_shlibpath_var=no
9196 hardcode_direct=yes
9197 hardcode_direct_absolute=yes
9198 export_dynamic_flag_spec='${wl}-E'
9200 # hardcode_minus_L: Not really in the search PATH,
9201 # but as the default location of the library.
9202 hardcode_minus_L=yes
9204 esac
9208 irix5* | irix6* | nonstopux*)
9209 if test "$GCC" = yes; then
9210 archive_cmds='$CC -shared $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'
9211 # Try to use the -exported_symbol ld option, if it does not
9212 # work, assume that -exports_file does not work either and
9213 # implicitly export all symbols.
9214 save_LDFLAGS="$LDFLAGS"
9215 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9216 if test x$gcc_no_link = xyes; then
9217 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221 int foo(void) {}
9222 _ACEOF
9223 if ac_fn_c_try_link "$LINENO"; then :
9224 archive_expsym_cmds='$CC -shared $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'
9227 rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
9229 LDFLAGS="$save_LDFLAGS"
9230 else
9231 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'
9232 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'
9234 archive_cmds_need_lc='no'
9235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236 hardcode_libdir_separator=:
9237 inherit_rpath=yes
9238 link_all_deplibs=yes
9241 netbsd*)
9242 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9243 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9244 else
9245 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9247 hardcode_libdir_flag_spec='-R$libdir'
9248 hardcode_direct=yes
9249 hardcode_shlibpath_var=no
9252 newsos6)
9253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9254 hardcode_direct=yes
9255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9256 hardcode_libdir_separator=:
9257 hardcode_shlibpath_var=no
9260 *nto* | *qnx*)
9263 openbsd*)
9264 if test -f /usr/libexec/ld.so; then
9265 hardcode_direct=yes
9266 hardcode_shlibpath_var=no
9267 hardcode_direct_absolute=yes
9268 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9269 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9270 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9271 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9272 export_dynamic_flag_spec='${wl}-E'
9273 else
9274 case $host_os in
9275 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9277 hardcode_libdir_flag_spec='-R$libdir'
9280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9281 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9283 esac
9285 else
9286 ld_shlibs=no
9290 os2*)
9291 hardcode_libdir_flag_spec='-L$libdir'
9292 hardcode_minus_L=yes
9293 allow_undefined_flag=unsupported
9294 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9295 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9298 osf3*)
9299 if test "$GCC" = yes; then
9300 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9301 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'
9302 else
9303 allow_undefined_flag=' -expect_unresolved \*'
9304 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'
9306 archive_cmds_need_lc='no'
9307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9308 hardcode_libdir_separator=:
9311 osf4* | osf5*) # as osf3* with the addition of -msym flag
9312 if test "$GCC" = yes; then
9313 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9314 archive_cmds='$CC -shared${allow_undefined_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'
9315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316 else
9317 allow_undefined_flag=' -expect_unresolved \*'
9318 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'
9319 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~
9320 $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'
9322 # Both c and cxx compiler support -rpath directly
9323 hardcode_libdir_flag_spec='-rpath $libdir'
9325 archive_cmds_need_lc='no'
9326 hardcode_libdir_separator=:
9329 solaris*)
9330 no_undefined_flag=' -z defs'
9331 if test "$GCC" = yes; then
9332 wlarc='${wl}'
9333 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9334 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9335 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9336 else
9337 case `$CC -V 2>&1` in
9338 *"Compilers 5.0"*)
9339 wlarc=''
9340 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9342 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9345 wlarc='${wl}'
9346 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9347 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9348 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9350 esac
9352 hardcode_libdir_flag_spec='-R$libdir'
9353 hardcode_shlibpath_var=no
9354 case $host_os in
9355 solaris2.[0-5] | solaris2.[0-5].*) ;;
9357 # The compiler driver will combine and reorder linker options,
9358 # but understands `-z linker_flag'. GCC discards it without `$wl',
9359 # but is careful enough not to reorder.
9360 # Supported since Solaris 2.6 (maybe 2.5.1?)
9361 if test "$GCC" = yes; then
9362 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9363 else
9364 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9367 esac
9368 link_all_deplibs=yes
9371 sunos4*)
9372 if test "x$host_vendor" = xsequent; then
9373 # Use $CC to link under sequent, because it throws in some extra .o
9374 # files that make .init and .fini sections work.
9375 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9376 else
9377 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9379 hardcode_libdir_flag_spec='-L$libdir'
9380 hardcode_direct=yes
9381 hardcode_minus_L=yes
9382 hardcode_shlibpath_var=no
9385 sysv4)
9386 case $host_vendor in
9387 sni)
9388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_direct=yes # is this really true???
9391 siemens)
9392 ## LD is ld it makes a PLAMLIB
9393 ## CC just makes a GrossModule.
9394 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9395 reload_cmds='$CC -r -o $output$reload_objs'
9396 hardcode_direct=no
9398 motorola)
9399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9400 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9402 esac
9403 runpath_var='LD_RUN_PATH'
9404 hardcode_shlibpath_var=no
9407 sysv4.3*)
9408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_shlibpath_var=no
9410 export_dynamic_flag_spec='-Bexport'
9413 sysv4*MP*)
9414 if test -d /usr/nec; then
9415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416 hardcode_shlibpath_var=no
9417 runpath_var=LD_RUN_PATH
9418 hardcode_runpath_var=yes
9419 ld_shlibs=yes
9423 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9424 no_undefined_flag='${wl}-z,text'
9425 archive_cmds_need_lc=no
9426 hardcode_shlibpath_var=no
9427 runpath_var='LD_RUN_PATH'
9429 if test "$GCC" = yes; then
9430 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 else
9433 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 sysv5* | sco3.2v5* | sco5v6*)
9439 # Note: We can NOT use -z defs as we might desire, because we do not
9440 # link with -lc, and that would cause any symbols used from libc to
9441 # always be unresolved, which means just about no library would
9442 # ever link correctly. If we're not using GNU ld we use -z text
9443 # though, which does catch some bad symbols but isn't as heavy-handed
9444 # as -z defs.
9445 no_undefined_flag='${wl}-z,text'
9446 allow_undefined_flag='${wl}-z,nodefs'
9447 archive_cmds_need_lc=no
9448 hardcode_shlibpath_var=no
9449 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9450 hardcode_libdir_separator=':'
9451 link_all_deplibs=yes
9452 export_dynamic_flag_spec='${wl}-Bexport'
9453 runpath_var='LD_RUN_PATH'
9455 if test "$GCC" = yes; then
9456 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 else
9459 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9460 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 uts4*)
9465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9466 hardcode_libdir_flag_spec='-L$libdir'
9467 hardcode_shlibpath_var=no
9471 ld_shlibs=no
9473 esac
9475 if test x$host_vendor = xsni; then
9476 case $host in
9477 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9478 export_dynamic_flag_spec='${wl}-Blargedynsym'
9480 esac
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9485 $as_echo "$ld_shlibs" >&6; }
9486 test "$ld_shlibs" = no && can_build_shared=no
9488 with_gnu_ld=$with_gnu_ld
9505 # Do we need to explicitly link libc?
9507 case "x$archive_cmds_need_lc" in
9508 x|xyes)
9509 # Assume -lc should be added
9510 archive_cmds_need_lc=yes
9512 if test "$enable_shared" = yes && test "$GCC" = yes; then
9513 case $archive_cmds in
9514 *'~'*)
9515 # FIXME: we may have to deal with multi-command sequences.
9517 '$CC '*)
9518 # Test whether the compiler implicitly links with -lc since on some
9519 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9520 # to ld, don't add -lc before -lgcc.
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9522 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9523 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 $RM conftest*
9527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9530 (eval $ac_compile) 2>&5
9531 ac_status=$?
9532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9533 test $ac_status = 0; } 2>conftest.err; then
9534 soname=conftest
9535 lib=conftest
9536 libobjs=conftest.$ac_objext
9537 deplibs=
9538 wl=$lt_prog_compiler_wl
9539 pic_flag=$lt_prog_compiler_pic
9540 compiler_flags=-v
9541 linker_flags=-v
9542 verstring=
9543 output_objdir=.
9544 libname=conftest
9545 lt_save_allow_undefined_flag=$allow_undefined_flag
9546 allow_undefined_flag=
9547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9548 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9549 ac_status=$?
9550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9551 test $ac_status = 0; }
9552 then
9553 lt_cv_archive_cmds_need_lc=no
9554 else
9555 lt_cv_archive_cmds_need_lc=yes
9557 allow_undefined_flag=$lt_save_allow_undefined_flag
9558 else
9559 cat conftest.err 1>&5
9561 $RM conftest*
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9565 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9566 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9568 esac
9571 esac
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9730 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9732 if test "$GCC" = yes; then
9733 case $host_os in
9734 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9735 *) lt_awk_arg="/^libraries:/" ;;
9736 esac
9737 case $host_os in
9738 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9739 *) lt_sed_strip_eq="s,=/,/,g" ;;
9740 esac
9741 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9742 case $lt_search_path_spec in
9743 *\;*)
9744 # if the path contains ";" then we assume it to be the separator
9745 # otherwise default to the standard path separator (i.e. ":") - it is
9746 # assumed that no part of a normal pathname contains ";" but that should
9747 # okay in the real world where ";" in dirpaths is itself problematic.
9748 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9751 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9753 esac
9754 # Ok, now we have the path, separated by spaces, we can step through it
9755 # and add multilib dir if necessary.
9756 lt_tmp_lt_search_path_spec=
9757 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9758 for lt_sys_path in $lt_search_path_spec; do
9759 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9760 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9761 else
9762 test -d "$lt_sys_path" && \
9763 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9765 done
9766 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9767 BEGIN {RS=" "; FS="/|\n";} {
9768 lt_foo="";
9769 lt_count=0;
9770 for (lt_i = NF; lt_i > 0; lt_i--) {
9771 if ($lt_i != "" && $lt_i != ".") {
9772 if ($lt_i == "..") {
9773 lt_count++;
9774 } else {
9775 if (lt_count == 0) {
9776 lt_foo="/" $lt_i lt_foo;
9777 } else {
9778 lt_count--;
9783 if (lt_foo != "") { lt_freq[lt_foo]++; }
9784 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9786 # AWK program above erroneously prepends '/' to C:/dos/paths
9787 # for these hosts.
9788 case $host_os in
9789 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9790 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9791 esac
9792 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9793 else
9794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9796 library_names_spec=
9797 libname_spec='lib$name'
9798 soname_spec=
9799 shrext_cmds=".so"
9800 postinstall_cmds=
9801 postuninstall_cmds=
9802 finish_cmds=
9803 finish_eval=
9804 shlibpath_var=
9805 shlibpath_overrides_runpath=unknown
9806 version_type=none
9807 dynamic_linker="$host_os ld.so"
9808 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9809 need_lib_prefix=unknown
9810 hardcode_into_libs=no
9812 # when you set need_version to no, make sure it does not cause -set_version
9813 # flags to be left without arguments
9814 need_version=unknown
9816 case $host_os in
9817 aix3*)
9818 version_type=linux
9819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9820 shlibpath_var=LIBPATH
9822 # AIX 3 has no versioning support, so we append a major version to the name.
9823 soname_spec='${libname}${release}${shared_ext}$major'
9826 aix[4-9]*)
9827 version_type=linux
9828 need_lib_prefix=no
9829 need_version=no
9830 hardcode_into_libs=yes
9831 if test "$host_cpu" = ia64; then
9832 # AIX 5 supports IA64
9833 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9834 shlibpath_var=LD_LIBRARY_PATH
9835 else
9836 # With GCC up to 2.95.x, collect2 would create an import file
9837 # for dependence libraries. The import file would start with
9838 # the line `#! .'. This would cause the generated library to
9839 # depend on `.', always an invalid library. This was fixed in
9840 # development snapshots of GCC prior to 3.0.
9841 case $host_os in
9842 aix4 | aix4.[01] | aix4.[01].*)
9843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9844 echo ' yes '
9845 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9847 else
9848 can_build_shared=no
9851 esac
9852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9853 # soname into executable. Probably we can add versioning support to
9854 # collect2, so additional links can be useful in future.
9855 if test "$aix_use_runtimelinking" = yes; then
9856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9857 # instead of lib<name>.a to let people know that these are not
9858 # typical AIX shared libraries.
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860 else
9861 # We preserve .a as extension for shared libraries through AIX4.2
9862 # and later when we are not doing run time linking.
9863 library_names_spec='${libname}${release}.a $libname.a'
9864 soname_spec='${libname}${release}${shared_ext}$major'
9866 shlibpath_var=LIBPATH
9870 amigaos*)
9871 case $host_cpu in
9872 powerpc)
9873 # Since July 2007 AmigaOS4 officially supports .so libraries.
9874 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877 m68k)
9878 library_names_spec='$libname.ixlibrary $libname.a'
9879 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9880 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9882 esac
9885 beos*)
9886 library_names_spec='${libname}${shared_ext}'
9887 dynamic_linker="$host_os ld.so"
9888 shlibpath_var=LIBRARY_PATH
9891 bsdi[45]*)
9892 version_type=linux
9893 need_version=no
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9895 soname_spec='${libname}${release}${shared_ext}$major'
9896 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9897 shlibpath_var=LD_LIBRARY_PATH
9898 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9899 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9900 # the default ld.so.conf also contains /usr/contrib/lib and
9901 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9902 # libtool to hard-code these into programs
9905 cygwin* | mingw* | pw32* | cegcc*)
9906 version_type=windows
9907 shrext_cmds=".dll"
9908 need_version=no
9909 need_lib_prefix=no
9911 case $GCC,$host_os in
9912 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9913 library_names_spec='$libname.dll.a'
9914 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9915 postinstall_cmds='base_file=`basename \${file}`~
9916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9917 dldir=$destdir/`dirname \$dlpath`~
9918 test -d \$dldir || mkdir -p \$dldir~
9919 $install_prog $dir/$dlname \$dldir/$dlname~
9920 chmod a+x \$dldir/$dlname~
9921 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9922 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9925 dlpath=$dir/\$dldll~
9926 $RM \$dlpath'
9927 shlibpath_overrides_runpath=yes
9929 case $host_os in
9930 cygwin*)
9931 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9932 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9936 mingw* | cegcc*)
9937 # MinGW DLLs use traditional 'lib' prefix
9938 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9940 pw32*)
9941 # pw32 DLLs use 'pw' prefix rather than 'lib'
9942 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9944 esac
9948 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9950 esac
9951 dynamic_linker='Win32 ld.exe'
9952 # FIXME: first we should search . and the directory the executable is in
9953 shlibpath_var=PATH
9956 darwin* | rhapsody*)
9957 dynamic_linker="$host_os dyld"
9958 version_type=darwin
9959 need_lib_prefix=no
9960 need_version=no
9961 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9962 soname_spec='${libname}${release}${major}$shared_ext'
9963 shlibpath_overrides_runpath=yes
9964 shlibpath_var=DYLD_LIBRARY_PATH
9965 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9967 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9968 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9971 dgux*)
9972 version_type=linux
9973 need_lib_prefix=no
9974 need_version=no
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 shlibpath_var=LD_LIBRARY_PATH
9980 freebsd* | dragonfly*)
9981 # DragonFly does not have aout. When/if they implement a new
9982 # versioning mechanism, adjust this.
9983 if test -x /usr/bin/objformat; then
9984 objformat=`/usr/bin/objformat`
9985 else
9986 case $host_os in
9987 freebsd[23].*) objformat=aout ;;
9988 *) objformat=elf ;;
9989 esac
9991 version_type=freebsd-$objformat
9992 case $version_type in
9993 freebsd-elf*)
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9995 need_version=no
9996 need_lib_prefix=no
9998 freebsd-*)
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10000 need_version=yes
10002 esac
10003 shlibpath_var=LD_LIBRARY_PATH
10004 case $host_os in
10005 freebsd2.*)
10006 shlibpath_overrides_runpath=yes
10008 freebsd3.[01]* | freebsdelf3.[01]*)
10009 shlibpath_overrides_runpath=yes
10010 hardcode_into_libs=yes
10012 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10013 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10014 shlibpath_overrides_runpath=no
10015 hardcode_into_libs=yes
10017 *) # from 4.6 on, and DragonFly
10018 shlibpath_overrides_runpath=yes
10019 hardcode_into_libs=yes
10021 esac
10024 haiku*)
10025 version_type=linux
10026 need_lib_prefix=no
10027 need_version=no
10028 dynamic_linker="$host_os runtime_loader"
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 shlibpath_var=LIBRARY_PATH
10032 shlibpath_overrides_runpath=yes
10033 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10034 hardcode_into_libs=yes
10037 hpux9* | hpux10* | hpux11*)
10038 # Give a soname corresponding to the major version so that dld.sl refuses to
10039 # link against other versions.
10040 version_type=sunos
10041 need_lib_prefix=no
10042 need_version=no
10043 case $host_cpu in
10044 ia64*)
10045 shrext_cmds='.so'
10046 hardcode_into_libs=yes
10047 dynamic_linker="$host_os dld.so"
10048 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 if test "X$HPUX_IA64_MODE" = X32; then
10053 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10054 else
10055 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10059 hppa*64*)
10060 shrext_cmds='.sl'
10061 hardcode_into_libs=yes
10062 dynamic_linker="$host_os dld.sl"
10063 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066 soname_spec='${libname}${release}${shared_ext}$major'
10067 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10071 shrext_cmds='.sl'
10072 dynamic_linker="$host_os dld.sl"
10073 shlibpath_var=SHLIB_PATH
10074 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10078 esac
10079 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10080 postinstall_cmds='chmod 555 $lib'
10081 # or fails outright, so override atomically:
10082 install_override_mode=555
10085 interix[3-9]*)
10086 version_type=linux
10087 need_lib_prefix=no
10088 need_version=no
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10090 soname_spec='${libname}${release}${shared_ext}$major'
10091 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 shlibpath_overrides_runpath=no
10094 hardcode_into_libs=yes
10097 irix5* | irix6* | nonstopux*)
10098 case $host_os in
10099 nonstopux*) version_type=nonstopux ;;
10101 if test "$lt_cv_prog_gnu_ld" = yes; then
10102 version_type=linux
10103 else
10104 version_type=irix
10105 fi ;;
10106 esac
10107 need_lib_prefix=no
10108 need_version=no
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10111 case $host_os in
10112 irix5* | nonstopux*)
10113 libsuff= shlibsuff=
10116 case $LD in # libtool.m4 will add one of these switches to LD
10117 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10118 libsuff= shlibsuff= libmagic=32-bit;;
10119 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10120 libsuff=32 shlibsuff=N32 libmagic=N32;;
10121 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10122 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10123 *) libsuff= shlibsuff= libmagic=never-match;;
10124 esac
10126 esac
10127 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10128 shlibpath_overrides_runpath=no
10129 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10130 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10131 hardcode_into_libs=yes
10134 # No shared lib support for Linux oldld, aout, or coff.
10135 linux*oldld* | linux*aout* | linux*coff*)
10136 dynamic_linker=no
10139 # This must be Linux ELF.
10141 # uclinux* changes (here and below) have been submitted to the libtool
10142 # project, but have not yet been accepted: they are GCC-local changes
10143 # for the time being. (See
10144 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10145 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10146 version_type=linux
10147 need_lib_prefix=no
10148 need_version=no
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150 soname_spec='${libname}${release}${shared_ext}$major'
10151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10152 shlibpath_var=LD_LIBRARY_PATH
10153 shlibpath_overrides_runpath=no
10155 # Some binutils ld are patched to set DT_RUNPATH
10156 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 lt_cv_shlibpath_overrides_runpath=no
10160 save_LDFLAGS=$LDFLAGS
10161 save_libdir=$libdir
10162 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10163 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10164 if test x$gcc_no_link = xyes; then
10165 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10171 main ()
10175 return 0;
10177 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"; then :
10179 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10180 lt_cv_shlibpath_overrides_runpath=yes
10183 rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10185 LDFLAGS=$save_LDFLAGS
10186 libdir=$save_libdir
10190 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10192 # This implies no fast_install, which is unacceptable.
10193 # Some rework will be needed to allow for fast_install
10194 # before this can be enabled.
10195 hardcode_into_libs=yes
10197 # Append ld.so.conf contents to the search path
10198 if test -f /etc/ld.so.conf; then
10199 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' ' '`
10200 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10203 # We used to test for /lib/ld.so.1 and disable shared libraries on
10204 # powerpc, because MkLinux only supported shared libraries with the
10205 # GNU dynamic linker. Since this was broken with cross compilers,
10206 # most powerpc-linux boxes support dynamic linking these days and
10207 # people can always --disable-shared, the test was removed, and we
10208 # assume the GNU/Linux dynamic linker is in use.
10209 dynamic_linker='GNU/Linux ld.so'
10212 netbsd*)
10213 version_type=sunos
10214 need_lib_prefix=no
10215 need_version=no
10216 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10219 dynamic_linker='NetBSD (a.out) ld.so'
10220 else
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10222 soname_spec='${libname}${release}${shared_ext}$major'
10223 dynamic_linker='NetBSD ld.elf_so'
10225 shlibpath_var=LD_LIBRARY_PATH
10226 shlibpath_overrides_runpath=yes
10227 hardcode_into_libs=yes
10230 newsos6)
10231 version_type=linux
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=yes
10237 *nto* | *qnx*)
10238 version_type=qnx
10239 need_lib_prefix=no
10240 need_version=no
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 shlibpath_overrides_runpath=no
10245 hardcode_into_libs=yes
10246 dynamic_linker='ldqnx.so'
10249 openbsd*)
10250 version_type=sunos
10251 sys_lib_dlsearch_path_spec="/usr/lib"
10252 need_lib_prefix=no
10253 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10254 case $host_os in
10255 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10256 *) need_version=no ;;
10257 esac
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10260 shlibpath_var=LD_LIBRARY_PATH
10261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10262 case $host_os in
10263 openbsd2.[89] | openbsd2.[89].*)
10264 shlibpath_overrides_runpath=no
10267 shlibpath_overrides_runpath=yes
10269 esac
10270 else
10271 shlibpath_overrides_runpath=yes
10275 os2*)
10276 libname_spec='$name'
10277 shrext_cmds=".dll"
10278 need_lib_prefix=no
10279 library_names_spec='$libname${shared_ext} $libname.a'
10280 dynamic_linker='OS/2 ld.exe'
10281 shlibpath_var=LIBPATH
10284 osf3* | osf4* | osf5*)
10285 version_type=osf
10286 need_lib_prefix=no
10287 need_version=no
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10292 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10295 rdos*)
10296 dynamic_linker=no
10299 solaris*)
10300 version_type=linux
10301 need_lib_prefix=no
10302 need_version=no
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 hardcode_into_libs=yes
10308 # ldd complains unless libraries are executable
10309 postinstall_cmds='chmod +x $lib'
10312 sunos4*)
10313 version_type=sunos
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10315 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 shlibpath_overrides_runpath=yes
10318 if test "$with_gnu_ld" = yes; then
10319 need_lib_prefix=no
10321 need_version=yes
10324 sysv4 | sysv4.3*)
10325 version_type=linux
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 shlibpath_var=LD_LIBRARY_PATH
10329 case $host_vendor in
10330 sni)
10331 shlibpath_overrides_runpath=no
10332 need_lib_prefix=no
10333 runpath_var=LD_RUN_PATH
10335 siemens)
10336 need_lib_prefix=no
10338 motorola)
10339 need_lib_prefix=no
10340 need_version=no
10341 shlibpath_overrides_runpath=no
10342 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10344 esac
10347 sysv4*MP*)
10348 if test -d /usr/nec ;then
10349 version_type=linux
10350 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10351 soname_spec='$libname${shared_ext}.$major'
10352 shlibpath_var=LD_LIBRARY_PATH
10356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10357 version_type=freebsd-elf
10358 need_lib_prefix=no
10359 need_version=no
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 hardcode_into_libs=yes
10365 if test "$with_gnu_ld" = yes; then
10366 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10367 else
10368 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10369 case $host_os in
10370 sco3.2v5*)
10371 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10373 esac
10375 sys_lib_dlsearch_path_spec='/usr/lib'
10378 tpf*)
10379 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10380 version_type=linux
10381 need_lib_prefix=no
10382 need_version=no
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=no
10386 hardcode_into_libs=yes
10389 uts4*)
10390 version_type=linux
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 shlibpath_var=LD_LIBRARY_PATH
10396 # Shared libraries for VwWorks, >= 7 only at this stage
10397 # and (fpic) still incompatible with "large" code models
10398 # in a few configurations. Only for RTP mode in any case,
10399 # and upon explicit request at configure time.
10400 vxworks7*)
10401 dynamic_linker=no
10402 case ${with_multisubdir}-${enable_shared} in
10403 *large*)
10405 *mrtp*-yes)
10406 version_type=linux
10407 need_lib_prefix=no
10408 need_version=no
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 dynamic_linker="$host_os module_loader"
10413 esac
10416 dynamic_linker=no
10418 esac
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10420 $as_echo "$dynamic_linker" >&6; }
10421 test "$dynamic_linker" = no && can_build_shared=no
10423 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10424 if test "$GCC" = yes; then
10425 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10428 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10429 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10431 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10432 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10527 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10528 hardcode_action=
10529 if test -n "$hardcode_libdir_flag_spec" ||
10530 test -n "$runpath_var" ||
10531 test "X$hardcode_automatic" = "Xyes" ; then
10533 # We can hardcode non-existent directories.
10534 if test "$hardcode_direct" != no &&
10535 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10536 # have to relink, otherwise we might link with an installed library
10537 # when we should be linking with a yet-to-be-installed one
10538 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10539 test "$hardcode_minus_L" != no; then
10540 # Linking always hardcodes the temporary library directory.
10541 hardcode_action=relink
10542 else
10543 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10544 hardcode_action=immediate
10546 else
10547 # We cannot hardcode anything, or else we can only hardcode existing
10548 # directories.
10549 hardcode_action=unsupported
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10552 $as_echo "$hardcode_action" >&6; }
10554 if test "$hardcode_action" = relink ||
10555 test "$inherit_rpath" = yes; then
10556 # Fast installation is not supported
10557 enable_fast_install=no
10558 elif test "$shlibpath_overrides_runpath" = yes ||
10559 test "$enable_shared" = no; then
10560 # Fast installation is not necessary
10561 enable_fast_install=needless
10569 if test "x$enable_dlopen" != xyes; then
10570 enable_dlopen=unknown
10571 enable_dlopen_self=unknown
10572 enable_dlopen_self_static=unknown
10573 else
10574 lt_cv_dlopen=no
10575 lt_cv_dlopen_libs=
10577 case $host_os in
10578 beos*)
10579 lt_cv_dlopen="load_add_on"
10580 lt_cv_dlopen_libs=
10581 lt_cv_dlopen_self=yes
10584 mingw* | pw32* | cegcc*)
10585 lt_cv_dlopen="LoadLibrary"
10586 lt_cv_dlopen_libs=
10589 cygwin*)
10590 lt_cv_dlopen="dlopen"
10591 lt_cv_dlopen_libs=
10594 darwin*)
10595 # if libdl is installed we need to link against it
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10597 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10598 if ${ac_cv_lib_dl_dlopen+:} false; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601 ac_check_lib_save_LIBS=$LIBS
10602 LIBS="-ldl $LIBS"
10603 if test x$gcc_no_link = xyes; then
10604 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10609 /* Override any GCC internal prototype to avoid an error.
10610 Use char because int might match the return type of a GCC
10611 builtin and then its argument prototype would still apply. */
10612 #ifdef __cplusplus
10613 extern "C"
10614 #endif
10615 char dlopen ();
10617 main ()
10619 return dlopen ();
10621 return 0;
10623 _ACEOF
10624 if ac_fn_c_try_link "$LINENO"; then :
10625 ac_cv_lib_dl_dlopen=yes
10626 else
10627 ac_cv_lib_dl_dlopen=no
10629 rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10634 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10635 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10636 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10637 else
10639 lt_cv_dlopen="dyld"
10640 lt_cv_dlopen_libs=
10641 lt_cv_dlopen_self=yes
10648 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10649 if test "x$ac_cv_func_shl_load" = xyes; then :
10650 lt_cv_dlopen="shl_load"
10651 else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10653 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10654 if ${ac_cv_lib_dld_shl_load+:} false; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10657 ac_check_lib_save_LIBS=$LIBS
10658 LIBS="-ldld $LIBS"
10659 if test x$gcc_no_link = xyes; then
10660 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10665 /* Override any GCC internal prototype to avoid an error.
10666 Use char because int might match the return type of a GCC
10667 builtin and then its argument prototype would still apply. */
10668 #ifdef __cplusplus
10669 extern "C"
10670 #endif
10671 char shl_load ();
10673 main ()
10675 return shl_load ();
10677 return 0;
10679 _ACEOF
10680 if ac_fn_c_try_link "$LINENO"; then :
10681 ac_cv_lib_dld_shl_load=yes
10682 else
10683 ac_cv_lib_dld_shl_load=no
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10690 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10691 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10692 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10693 else
10694 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10695 if test "x$ac_cv_func_dlopen" = xyes; then :
10696 lt_cv_dlopen="dlopen"
10697 else
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10699 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10700 if ${ac_cv_lib_dl_dlopen+:} false; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 ac_check_lib_save_LIBS=$LIBS
10704 LIBS="-ldl $LIBS"
10705 if test x$gcc_no_link = xyes; then
10706 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10711 /* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10714 #ifdef __cplusplus
10715 extern "C"
10716 #endif
10717 char dlopen ();
10719 main ()
10721 return dlopen ();
10723 return 0;
10725 _ACEOF
10726 if ac_fn_c_try_link "$LINENO"; then :
10727 ac_cv_lib_dl_dlopen=yes
10728 else
10729 ac_cv_lib_dl_dlopen=no
10731 rm -f core conftest.err conftest.$ac_objext \
10732 conftest$ac_exeext conftest.$ac_ext
10733 LIBS=$ac_check_lib_save_LIBS
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10736 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10737 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10739 else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10741 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10742 if ${ac_cv_lib_svld_dlopen+:} false; then :
10743 $as_echo_n "(cached) " >&6
10744 else
10745 ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-lsvld $LIBS"
10747 if test x$gcc_no_link = xyes; then
10748 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10753 /* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
10756 #ifdef __cplusplus
10757 extern "C"
10758 #endif
10759 char dlopen ();
10761 main ()
10763 return dlopen ();
10765 return 0;
10767 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"; then :
10769 ac_cv_lib_svld_dlopen=yes
10770 else
10771 ac_cv_lib_svld_dlopen=no
10773 rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10778 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10779 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10781 else
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10783 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10784 if ${ac_cv_lib_dld_dld_link+:} false; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 ac_check_lib_save_LIBS=$LIBS
10788 LIBS="-ldld $LIBS"
10789 if test x$gcc_no_link = xyes; then
10790 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10795 /* Override any GCC internal prototype to avoid an error.
10796 Use char because int might match the return type of a GCC
10797 builtin and then its argument prototype would still apply. */
10798 #ifdef __cplusplus
10799 extern "C"
10800 #endif
10801 char dld_link ();
10803 main ()
10805 return dld_link ();
10807 return 0;
10809 _ACEOF
10810 if ac_fn_c_try_link "$LINENO"; then :
10811 ac_cv_lib_dld_dld_link=yes
10812 else
10813 ac_cv_lib_dld_dld_link=no
10815 rm -f core conftest.err conftest.$ac_objext \
10816 conftest$ac_exeext conftest.$ac_ext
10817 LIBS=$ac_check_lib_save_LIBS
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10820 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10821 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10822 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10841 esac
10843 if test "x$lt_cv_dlopen" != xno; then
10844 enable_dlopen=yes
10845 else
10846 enable_dlopen=no
10849 case $lt_cv_dlopen in
10850 dlopen)
10851 save_CPPFLAGS="$CPPFLAGS"
10852 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10854 save_LDFLAGS="$LDFLAGS"
10855 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10857 save_LIBS="$LIBS"
10858 LIBS="$lt_cv_dlopen_libs $LIBS"
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10861 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10862 if ${lt_cv_dlopen_self+:} false; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 if test "$cross_compiling" = yes; then :
10866 lt_cv_dlopen_self=cross
10867 else
10868 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10869 lt_status=$lt_dlunknown
10870 cat > conftest.$ac_ext <<_LT_EOF
10871 #line 10871 "configure"
10872 #include "confdefs.h"
10874 #if HAVE_DLFCN_H
10875 #include <dlfcn.h>
10876 #endif
10878 #include <stdio.h>
10880 #ifdef RTLD_GLOBAL
10881 # define LT_DLGLOBAL RTLD_GLOBAL
10882 #else
10883 # ifdef DL_GLOBAL
10884 # define LT_DLGLOBAL DL_GLOBAL
10885 # else
10886 # define LT_DLGLOBAL 0
10887 # endif
10888 #endif
10890 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10891 find out it does not work in some platform. */
10892 #ifndef LT_DLLAZY_OR_NOW
10893 # ifdef RTLD_LAZY
10894 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10895 # else
10896 # ifdef DL_LAZY
10897 # define LT_DLLAZY_OR_NOW DL_LAZY
10898 # else
10899 # ifdef RTLD_NOW
10900 # define LT_DLLAZY_OR_NOW RTLD_NOW
10901 # else
10902 # ifdef DL_NOW
10903 # define LT_DLLAZY_OR_NOW DL_NOW
10904 # else
10905 # define LT_DLLAZY_OR_NOW 0
10906 # endif
10907 # endif
10908 # endif
10909 # endif
10910 #endif
10912 /* When -fvisbility=hidden is used, assume the code has been annotated
10913 correspondingly for the symbols needed. */
10914 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10915 void fnord () __attribute__((visibility("default")));
10916 #endif
10918 void fnord () { int i=42; }
10919 int main ()
10921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10922 int status = $lt_dlunknown;
10924 if (self)
10926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10927 else
10929 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10930 else puts (dlerror ());
10932 /* dlclose (self); */
10934 else
10935 puts (dlerror ());
10937 return status;
10939 _LT_EOF
10940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10941 (eval $ac_link) 2>&5
10942 ac_status=$?
10943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10944 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10945 (./conftest; exit; ) >&5 2>/dev/null
10946 lt_status=$?
10947 case x$lt_status in
10948 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10949 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10950 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10951 esac
10952 else :
10953 # compilation failed
10954 lt_cv_dlopen_self=no
10957 rm -fr conftest*
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10962 $as_echo "$lt_cv_dlopen_self" >&6; }
10964 if test "x$lt_cv_dlopen_self" = xyes; then
10965 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10967 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10968 if ${lt_cv_dlopen_self_static+:} false; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 if test "$cross_compiling" = yes; then :
10972 lt_cv_dlopen_self_static=cross
10973 else
10974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10975 lt_status=$lt_dlunknown
10976 cat > conftest.$ac_ext <<_LT_EOF
10977 #line 10977 "configure"
10978 #include "confdefs.h"
10980 #if HAVE_DLFCN_H
10981 #include <dlfcn.h>
10982 #endif
10984 #include <stdio.h>
10986 #ifdef RTLD_GLOBAL
10987 # define LT_DLGLOBAL RTLD_GLOBAL
10988 #else
10989 # ifdef DL_GLOBAL
10990 # define LT_DLGLOBAL DL_GLOBAL
10991 # else
10992 # define LT_DLGLOBAL 0
10993 # endif
10994 #endif
10996 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10997 find out it does not work in some platform. */
10998 #ifndef LT_DLLAZY_OR_NOW
10999 # ifdef RTLD_LAZY
11000 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11001 # else
11002 # ifdef DL_LAZY
11003 # define LT_DLLAZY_OR_NOW DL_LAZY
11004 # else
11005 # ifdef RTLD_NOW
11006 # define LT_DLLAZY_OR_NOW RTLD_NOW
11007 # else
11008 # ifdef DL_NOW
11009 # define LT_DLLAZY_OR_NOW DL_NOW
11010 # else
11011 # define LT_DLLAZY_OR_NOW 0
11012 # endif
11013 # endif
11014 # endif
11015 # endif
11016 #endif
11018 /* When -fvisbility=hidden is used, assume the code has been annotated
11019 correspondingly for the symbols needed. */
11020 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11021 void fnord () __attribute__((visibility("default")));
11022 #endif
11024 void fnord () { int i=42; }
11025 int main ()
11027 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11028 int status = $lt_dlunknown;
11030 if (self)
11032 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11033 else
11035 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11036 else puts (dlerror ());
11038 /* dlclose (self); */
11040 else
11041 puts (dlerror ());
11043 return status;
11045 _LT_EOF
11046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11047 (eval $ac_link) 2>&5
11048 ac_status=$?
11049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11050 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11051 (./conftest; exit; ) >&5 2>/dev/null
11052 lt_status=$?
11053 case x$lt_status in
11054 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11055 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11056 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11057 esac
11058 else :
11059 # compilation failed
11060 lt_cv_dlopen_self_static=no
11063 rm -fr conftest*
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11068 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11071 CPPFLAGS="$save_CPPFLAGS"
11072 LDFLAGS="$save_LDFLAGS"
11073 LIBS="$save_LIBS"
11075 esac
11077 case $lt_cv_dlopen_self in
11078 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11079 *) enable_dlopen_self=unknown ;;
11080 esac
11082 case $lt_cv_dlopen_self_static in
11083 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11084 *) enable_dlopen_self_static=unknown ;;
11085 esac
11104 striplib=
11105 old_striplib=
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11107 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11108 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11109 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11110 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11112 $as_echo "yes" >&6; }
11113 else
11114 # FIXME - insert some real tests, host_os isn't really good enough
11115 case $host_os in
11116 darwin*)
11117 if test -n "$STRIP" ; then
11118 striplib="$STRIP -x"
11119 old_striplib="$STRIP -S"
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11121 $as_echo "yes" >&6; }
11122 else
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 $as_echo "no" >&6; }
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11131 esac
11145 # Report which library types will actually be built
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11147 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11149 $as_echo "$can_build_shared" >&6; }
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11152 $as_echo_n "checking whether to build shared libraries... " >&6; }
11153 test "$can_build_shared" = "no" && enable_shared=no
11155 # On AIX, shared libraries and static libraries use the same namespace, and
11156 # are all built from PIC.
11157 case $host_os in
11158 aix3*)
11159 test "$enable_shared" = yes && enable_static=no
11160 if test -n "$RANLIB"; then
11161 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11162 postinstall_cmds='$RANLIB $lib'
11166 aix[4-9]*)
11167 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11168 test "$enable_shared" = yes && enable_static=no
11171 esac
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11173 $as_echo "$enable_shared" >&6; }
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11176 $as_echo_n "checking whether to build static libraries... " >&6; }
11177 # Make sure either enable_shared or enable_static is yes.
11178 test "$enable_shared" = yes || enable_static=yes
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11180 $as_echo "$enable_static" >&6; }
11186 ac_ext=c
11187 ac_cpp='$CPP $CPPFLAGS'
11188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11192 CC="$lt_save_CC"
11206 ac_config_commands="$ac_config_commands libtool"
11211 # Only expand once:
11217 case $host in
11218 *-cygwin* | *-mingw*)
11219 # 'host' will be top-level target in the case of a target lib,
11220 # we must compare to with_cross_host to decide if this is a native
11221 # or cross-compiler and select where to install dlls appropriately.
11222 if test -n "$with_cross_host" &&
11223 test x"$with_cross_host" != x"no"; then
11224 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11225 else
11226 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11230 lt_host_flags=
11232 esac
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11241 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11242 # Check whether --enable-maintainer-mode was given.
11243 if test "${enable_maintainer_mode+set}" = set; then :
11244 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11245 else
11246 USE_MAINTAINER_MODE=no
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11250 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11251 if test $USE_MAINTAINER_MODE = yes; then
11252 MAINTAINER_MODE_TRUE=
11253 MAINTAINER_MODE_FALSE='#'
11254 else
11255 MAINTAINER_MODE_TRUE='#'
11256 MAINTAINER_MODE_FALSE=
11259 MAINT=$MAINTAINER_MODE_TRUE
11263 ac_ext=c
11264 ac_cpp='$CPP $CPPFLAGS'
11265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11269 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
11270 # We must force CC to /not/ be precious variables; otherwise
11271 # the wrong, non-multilib-adjusted value will be used in multilibs.
11272 # As a side effect, we have to subst CFLAGS ourselves.
11276 ac_ext=c
11277 ac_cpp='$CPP $CPPFLAGS'
11278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11281 if test -n "$ac_tool_prefix"; then
11282 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11283 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11285 $as_echo_n "checking for $ac_word... " >&6; }
11286 if ${ac_cv_prog_CC+:} false; then :
11287 $as_echo_n "(cached) " >&6
11288 else
11289 if test -n "$CC"; then
11290 ac_cv_prog_CC="$CC" # Let the user override the test.
11291 else
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $PATH
11295 IFS=$as_save_IFS
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11299 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11301 break 2
11303 done
11304 done
11305 IFS=$as_save_IFS
11309 CC=$ac_cv_prog_CC
11310 if test -n "$CC"; then
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11312 $as_echo "$CC" >&6; }
11313 else
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11320 if test -z "$ac_cv_prog_CC"; then
11321 ac_ct_CC=$CC
11322 # Extract the first word of "gcc", so it can be a program name with args.
11323 set dummy gcc; ac_word=$2
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11325 $as_echo_n "checking for $ac_word... " >&6; }
11326 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 if test -n "$ac_ct_CC"; then
11330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11331 else
11332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in $PATH
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11339 ac_cv_prog_ac_ct_CC="gcc"
11340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 break 2
11343 done
11344 done
11345 IFS=$as_save_IFS
11349 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11350 if test -n "$ac_ct_CC"; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11352 $as_echo "$ac_ct_CC" >&6; }
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11358 if test "x$ac_ct_CC" = x; then
11359 CC=""
11360 else
11361 case $cross_compiling:$ac_tool_warned in
11362 yes:)
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11365 ac_tool_warned=yes ;;
11366 esac
11367 CC=$ac_ct_CC
11369 else
11370 CC="$ac_cv_prog_CC"
11373 if test -z "$CC"; then
11374 if test -n "$ac_tool_prefix"; then
11375 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11376 set dummy ${ac_tool_prefix}cc; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if ${ac_cv_prog_CC+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 if test -n "$CC"; then
11383 ac_cv_prog_CC="$CC" # Let the user override the test.
11384 else
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11388 IFS=$as_save_IFS
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11392 ac_cv_prog_CC="${ac_tool_prefix}cc"
11393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11394 break 2
11396 done
11397 done
11398 IFS=$as_save_IFS
11402 CC=$ac_cv_prog_CC
11403 if test -n "$CC"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11405 $as_echo "$CC" >&6; }
11406 else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11414 if test -z "$CC"; then
11415 # Extract the first word of "cc", so it can be a program name with args.
11416 set dummy cc; ac_word=$2
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418 $as_echo_n "checking for $ac_word... " >&6; }
11419 if ${ac_cv_prog_CC+:} false; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11422 if test -n "$CC"; then
11423 ac_cv_prog_CC="$CC" # Let the user override the test.
11424 else
11425 ac_prog_rejected=no
11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427 for as_dir in $PATH
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11434 ac_prog_rejected=yes
11435 continue
11437 ac_cv_prog_CC="cc"
11438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11439 break 2
11441 done
11442 done
11443 IFS=$as_save_IFS
11445 if test $ac_prog_rejected = yes; then
11446 # We found a bogon in the path, so make sure we never use it.
11447 set dummy $ac_cv_prog_CC
11448 shift
11449 if test $# != 0; then
11450 # We chose a different compiler from the bogus one.
11451 # However, it has the same basename, so the bogon will be chosen
11452 # first if we set CC to just the basename; use the full file name.
11453 shift
11454 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11459 CC=$ac_cv_prog_CC
11460 if test -n "$CC"; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11462 $as_echo "$CC" >&6; }
11463 else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11470 if test -z "$CC"; then
11471 if test -n "$ac_tool_prefix"; then
11472 for ac_prog in cl.exe
11474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11477 $as_echo_n "checking for $ac_word... " >&6; }
11478 if ${ac_cv_prog_CC+:} false; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 if test -n "$CC"; then
11482 ac_cv_prog_CC="$CC" # Let the user override the test.
11483 else
11484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11485 for as_dir in $PATH
11487 IFS=$as_save_IFS
11488 test -z "$as_dir" && as_dir=.
11489 for ac_exec_ext in '' $ac_executable_extensions; do
11490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11491 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11493 break 2
11495 done
11496 done
11497 IFS=$as_save_IFS
11501 CC=$ac_cv_prog_CC
11502 if test -n "$CC"; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11504 $as_echo "$CC" >&6; }
11505 else
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11507 $as_echo "no" >&6; }
11511 test -n "$CC" && break
11512 done
11514 if test -z "$CC"; then
11515 ac_ct_CC=$CC
11516 for ac_prog in cl.exe
11518 # Extract the first word of "$ac_prog", so it can be a program name with args.
11519 set dummy $ac_prog; ac_word=$2
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11521 $as_echo_n "checking for $ac_word... " >&6; }
11522 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11523 $as_echo_n "(cached) " >&6
11524 else
11525 if test -n "$ac_ct_CC"; then
11526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11527 else
11528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529 for as_dir in $PATH
11531 IFS=$as_save_IFS
11532 test -z "$as_dir" && as_dir=.
11533 for ac_exec_ext in '' $ac_executable_extensions; do
11534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11535 ac_cv_prog_ac_ct_CC="$ac_prog"
11536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11537 break 2
11539 done
11540 done
11541 IFS=$as_save_IFS
11545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11546 if test -n "$ac_ct_CC"; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11548 $as_echo "$ac_ct_CC" >&6; }
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11555 test -n "$ac_ct_CC" && break
11556 done
11558 if test "x$ac_ct_CC" = x; then
11559 CC=""
11560 else
11561 case $cross_compiling:$ac_tool_warned in
11562 yes:)
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11565 ac_tool_warned=yes ;;
11566 esac
11567 CC=$ac_ct_CC
11574 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11576 as_fn_error $? "no acceptable C compiler found in \$PATH
11577 See \`config.log' for more details" "$LINENO" 5; }
11579 # Provide some information about the compiler.
11580 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11581 set X $ac_compile
11582 ac_compiler=$2
11583 for ac_option in --version -v -V -qversion; do
11584 { { ac_try="$ac_compiler $ac_option >&5"
11585 case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588 esac
11589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11590 $as_echo "$ac_try_echo"; } >&5
11591 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11592 ac_status=$?
11593 if test -s conftest.err; then
11594 sed '10a\
11595 ... rest of stderr output deleted ...
11596 10q' conftest.err >conftest.er1
11597 cat conftest.er1 >&5
11599 rm -f conftest.er1 conftest.err
11600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11601 test $ac_status = 0; }
11602 done
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11605 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11606 if ${ac_cv_c_compiler_gnu+:} false; then :
11607 $as_echo_n "(cached) " >&6
11608 else
11609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h. */
11613 main ()
11615 #ifndef __GNUC__
11616 choke me
11617 #endif
11620 return 0;
11622 _ACEOF
11623 if ac_fn_c_try_compile "$LINENO"; then :
11624 ac_compiler_gnu=yes
11625 else
11626 ac_compiler_gnu=no
11628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11633 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11634 if test $ac_compiler_gnu = yes; then
11635 GCC=yes
11636 else
11637 GCC=
11639 ac_test_CFLAGS=${CFLAGS+set}
11640 ac_save_CFLAGS=$CFLAGS
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11642 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11643 if ${ac_cv_prog_cc_g+:} false; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 ac_save_c_werror_flag=$ac_c_werror_flag
11647 ac_c_werror_flag=yes
11648 ac_cv_prog_cc_g=no
11649 CFLAGS="-g"
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11654 main ()
11658 return 0;
11660 _ACEOF
11661 if ac_fn_c_try_compile "$LINENO"; then :
11662 ac_cv_prog_cc_g=yes
11663 else
11664 CFLAGS=""
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11669 main ()
11673 return 0;
11675 _ACEOF
11676 if ac_fn_c_try_compile "$LINENO"; then :
11678 else
11679 ac_c_werror_flag=$ac_save_c_werror_flag
11680 CFLAGS="-g"
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11685 main ()
11689 return 0;
11691 _ACEOF
11692 if ac_fn_c_try_compile "$LINENO"; then :
11693 ac_cv_prog_cc_g=yes
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11700 ac_c_werror_flag=$ac_save_c_werror_flag
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11703 $as_echo "$ac_cv_prog_cc_g" >&6; }
11704 if test "$ac_test_CFLAGS" = set; then
11705 CFLAGS=$ac_save_CFLAGS
11706 elif test $ac_cv_prog_cc_g = yes; then
11707 if test "$GCC" = yes; then
11708 CFLAGS="-g -O2"
11709 else
11710 CFLAGS="-g"
11712 else
11713 if test "$GCC" = yes; then
11714 CFLAGS="-O2"
11715 else
11716 CFLAGS=
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11720 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11721 if ${ac_cv_prog_cc_c89+:} false; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 ac_cv_prog_cc_c89=no
11725 ac_save_CC=$CC
11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h. */
11728 #include <stdarg.h>
11729 #include <stdio.h>
11730 struct stat;
11731 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11732 struct buf { int x; };
11733 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11734 static char *e (p, i)
11735 char **p;
11736 int i;
11738 return p[i];
11740 static char *f (char * (*g) (char **, int), char **p, ...)
11742 char *s;
11743 va_list v;
11744 va_start (v,p);
11745 s = g (p, va_arg (v,int));
11746 va_end (v);
11747 return s;
11750 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11751 function prototypes and stuff, but not '\xHH' hex character constants.
11752 These don't provoke an error unfortunately, instead are silently treated
11753 as 'x'. The following induces an error, until -std is added to get
11754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11755 array size at least. It's necessary to write '\x00'==0 to get something
11756 that's true only with -std. */
11757 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11759 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11760 inside strings and character constants. */
11761 #define FOO(x) 'x'
11762 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11764 int test (int i, double x);
11765 struct s1 {int (*f) (int a);};
11766 struct s2 {int (*f) (double a);};
11767 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11768 int argc;
11769 char **argv;
11771 main ()
11773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11775 return 0;
11777 _ACEOF
11778 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11779 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11781 CC="$ac_save_CC $ac_arg"
11782 if ac_fn_c_try_compile "$LINENO"; then :
11783 ac_cv_prog_cc_c89=$ac_arg
11785 rm -f core conftest.err conftest.$ac_objext
11786 test "x$ac_cv_prog_cc_c89" != "xno" && break
11787 done
11788 rm -f conftest.$ac_ext
11789 CC=$ac_save_CC
11792 # AC_CACHE_VAL
11793 case "x$ac_cv_prog_cc_c89" in
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11796 $as_echo "none needed" >&6; } ;;
11797 xno)
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11799 $as_echo "unsupported" >&6; } ;;
11801 CC="$CC $ac_cv_prog_cc_c89"
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11803 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11804 esac
11805 if test "x$ac_cv_prog_cc_c89" != xno; then :
11809 ac_ext=c
11810 ac_cpp='$CPP $CPPFLAGS'
11811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11815 ac_ext=c
11816 ac_cpp='$CPP $CPPFLAGS'
11817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
11821 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
11822 if ${am_cv_prog_cc_c_o+:} false; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11829 main ()
11833 return 0;
11835 _ACEOF
11836 # Make sure it works both with $CC and with simple cc.
11837 # Following AC_PROG_CC_C_O, we do the test twice because some
11838 # compilers refuse to overwrite an existing .o file with -o,
11839 # though they will create one.
11840 am_cv_prog_cc_c_o=yes
11841 for am_i in 1 2; do
11842 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
11843 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } \
11847 && test -f conftest2.$ac_objext; then
11848 : OK
11849 else
11850 am_cv_prog_cc_c_o=no
11851 break
11853 done
11854 rm -f core conftest*
11855 unset am_i
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
11858 $as_echo "$am_cv_prog_cc_c_o" >&6; }
11859 if test "$am_cv_prog_cc_c_o" != yes; then
11860 # Losing compiler, so override with the script.
11861 # FIXME: It is wrong to rewrite CC.
11862 # But if we don't then we get into trouble of one sort or another.
11863 # A longer-term fix would be to have automake use am__CC in this case,
11864 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11865 CC="$am_aux_dir/compile $CC"
11867 ac_ext=c
11868 ac_cpp='$CPP $CPPFLAGS'
11869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11874 depcc="$CC" am_compiler_list=
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11877 $as_echo_n "checking dependency style of $depcc... " >&6; }
11878 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11879 $as_echo_n "(cached) " >&6
11880 else
11881 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11882 # We make a subdir and do the tests there. Otherwise we can end up
11883 # making bogus files that we don't know about and never remove. For
11884 # instance it was reported that on HP-UX the gcc test will end up
11885 # making a dummy file named 'D' -- because '-MD' means "put the output
11886 # in D".
11887 rm -rf conftest.dir
11888 mkdir conftest.dir
11889 # Copy depcomp to subdir because otherwise we won't find it if we're
11890 # using a relative directory.
11891 cp "$am_depcomp" conftest.dir
11892 cd conftest.dir
11893 # We will build objects and dependencies in a subdirectory because
11894 # it helps to detect inapplicable dependency modes. For instance
11895 # both Tru64's cc and ICC support -MD to output dependencies as a
11896 # side effect of compilation, but ICC will put the dependencies in
11897 # the current directory while Tru64 will put them in the object
11898 # directory.
11899 mkdir sub
11901 am_cv_CC_dependencies_compiler_type=none
11902 if test "$am_compiler_list" = ""; then
11903 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11905 am__universal=false
11906 case " $depcc " in #(
11907 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11908 esac
11910 for depmode in $am_compiler_list; do
11911 # Setup a source with many dependencies, because some compilers
11912 # like to wrap large dependency lists on column 80 (with \), and
11913 # we should not choose a depcomp mode which is confused by this.
11915 # We need to recreate these files for each test, as the compiler may
11916 # overwrite some of them when testing with obscure command lines.
11917 # This happens at least with the AIX C compiler.
11918 : > sub/conftest.c
11919 for i in 1 2 3 4 5 6; do
11920 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11921 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11922 # Solaris 10 /bin/sh.
11923 echo '/* dummy */' > sub/conftst$i.h
11924 done
11925 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11927 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11928 # mode. It turns out that the SunPro C++ compiler does not properly
11929 # handle '-M -o', and we need to detect this. Also, some Intel
11930 # versions had trouble with output in subdirs.
11931 am__obj=sub/conftest.${OBJEXT-o}
11932 am__minus_obj="-o $am__obj"
11933 case $depmode in
11934 gcc)
11935 # This depmode causes a compiler race in universal mode.
11936 test "$am__universal" = false || continue
11938 nosideeffect)
11939 # After this tag, mechanisms are not by side-effect, so they'll
11940 # only be used when explicitly requested.
11941 if test "x$enable_dependency_tracking" = xyes; then
11942 continue
11943 else
11944 break
11947 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11948 # This compiler won't grok '-c -o', but also, the minuso test has
11949 # not run yet. These depmodes are late enough in the game, and
11950 # so weak that their functioning should not be impacted.
11951 am__obj=conftest.${OBJEXT-o}
11952 am__minus_obj=
11954 none) break ;;
11955 esac
11956 if depmode=$depmode \
11957 source=sub/conftest.c object=$am__obj \
11958 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11959 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11960 >/dev/null 2>conftest.err &&
11961 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11962 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11963 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11964 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11965 # icc doesn't choke on unknown options, it will just issue warnings
11966 # or remarks (even with -Werror). So we grep stderr for any message
11967 # that says an option was ignored or not supported.
11968 # When given -MP, icc 7.0 and 7.1 complain thusly:
11969 # icc: Command line warning: ignoring option '-M'; no argument required
11970 # The diagnosis changed in icc 8.0:
11971 # icc: Command line remark: option '-MP' not supported
11972 if (grep 'ignoring option' conftest.err ||
11973 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11974 am_cv_CC_dependencies_compiler_type=$depmode
11975 break
11978 done
11980 cd ..
11981 rm -rf conftest.dir
11982 else
11983 am_cv_CC_dependencies_compiler_type=none
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11988 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11989 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11992 test "x$enable_dependency_tracking" != xno \
11993 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11994 am__fastdepCC_TRUE=
11995 am__fastdepCC_FALSE='#'
11996 else
11997 am__fastdepCC_TRUE='#'
11998 am__fastdepCC_FALSE=
12008 if test "x$GCC" != "xyes"; then
12009 as_fn_error $? "libquadmath must be built with GCC" "$LINENO" 5
12011 ac_ext=c
12012 ac_cpp='$CPP $CPPFLAGS'
12013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12017 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12018 # On Suns, sometimes $CPP names a directory.
12019 if test -n "$CPP" && test -d "$CPP"; then
12020 CPP=
12022 if test -z "$CPP"; then
12023 if ${ac_cv_prog_CPP+:} false; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 # Double quotes because CPP needs to be expanded
12027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12029 ac_preproc_ok=false
12030 for ac_c_preproc_warn_flag in '' yes
12032 # Use a header file that comes with gcc, so configuring glibc
12033 # with a fresh cross-compiler works.
12034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035 # <limits.h> exists even on freestanding compilers.
12036 # On the NeXT, cc -E runs the code through the compiler's parser,
12037 # not just through cpp. "Syntax error" is here to catch this case.
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040 #ifdef __STDC__
12041 # include <limits.h>
12042 #else
12043 # include <assert.h>
12044 #endif
12045 Syntax error
12046 _ACEOF
12047 if ac_fn_c_try_cpp "$LINENO"; then :
12049 else
12050 # Broken: fails on valid input.
12051 continue
12053 rm -f conftest.err conftest.i conftest.$ac_ext
12055 # OK, works on sane cases. Now check whether nonexistent headers
12056 # can be detected and how.
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059 #include <ac_nonexistent.h>
12060 _ACEOF
12061 if ac_fn_c_try_cpp "$LINENO"; then :
12062 # Broken: success on invalid input.
12063 continue
12064 else
12065 # Passes both tests.
12066 ac_preproc_ok=:
12067 break
12069 rm -f conftest.err conftest.i conftest.$ac_ext
12071 done
12072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12073 rm -f conftest.i conftest.err conftest.$ac_ext
12074 if $ac_preproc_ok; then :
12075 break
12078 done
12079 ac_cv_prog_CPP=$CPP
12082 CPP=$ac_cv_prog_CPP
12083 else
12084 ac_cv_prog_CPP=$CPP
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12087 $as_echo "$CPP" >&6; }
12088 ac_preproc_ok=false
12089 for ac_c_preproc_warn_flag in '' yes
12091 # Use a header file that comes with gcc, so configuring glibc
12092 # with a fresh cross-compiler works.
12093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12094 # <limits.h> exists even on freestanding compilers.
12095 # On the NeXT, cc -E runs the code through the compiler's parser,
12096 # not just through cpp. "Syntax error" is here to catch this case.
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 #ifdef __STDC__
12100 # include <limits.h>
12101 #else
12102 # include <assert.h>
12103 #endif
12104 Syntax error
12105 _ACEOF
12106 if ac_fn_c_try_cpp "$LINENO"; then :
12108 else
12109 # Broken: fails on valid input.
12110 continue
12112 rm -f conftest.err conftest.i conftest.$ac_ext
12114 # OK, works on sane cases. Now check whether nonexistent headers
12115 # can be detected and how.
12116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h. */
12118 #include <ac_nonexistent.h>
12119 _ACEOF
12120 if ac_fn_c_try_cpp "$LINENO"; then :
12121 # Broken: success on invalid input.
12122 continue
12123 else
12124 # Passes both tests.
12125 ac_preproc_ok=:
12126 break
12128 rm -f conftest.err conftest.i conftest.$ac_ext
12130 done
12131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12132 rm -f conftest.i conftest.err conftest.$ac_ext
12133 if $ac_preproc_ok; then :
12135 else
12136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12138 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12139 See \`config.log' for more details" "$LINENO" 5; }
12142 ac_ext=c
12143 ac_cpp='$CPP $CPPFLAGS'
12144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12150 # Check whether --with-toolexeclibdir was given.
12151 if test "${with_toolexeclibdir+set}" = set; then :
12152 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
12156 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
12158 esac
12159 else
12160 with_toolexeclibdir=no
12165 # Calculate toolexeclibdir
12166 # Also toolexecdir, though it's only used in toolexeclibdir
12167 case ${version_specific_libs} in
12168 yes)
12169 # Need the gcc compiler version to know where to install libraries
12170 # and header files if --enable-version-specific-runtime-libs option
12171 # is selected.
12172 toolexecdir='$(libdir)/gcc/$(target_alias)'
12173 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
12176 if test -n "$with_cross_host" &&
12177 test x"$with_cross_host" != x"no"; then
12178 # Install a library built with a cross compiler in tooldir, not libdir.
12179 toolexecdir='$(exec_prefix)/$(target_alias)'
12180 case ${with_toolexeclibdir} in
12182 toolexeclibdir='$(toolexecdir)/lib'
12185 toolexeclibdir=${with_toolexeclibdir}
12187 esac
12188 else
12189 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12190 toolexeclibdir='$(libdir)'
12192 multi_os_directory=`$CC -print-multi-os-directory`
12193 case $multi_os_directory in
12194 .) ;; # Avoid trailing /.
12195 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12196 esac
12198 esac
12202 for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
12203 do :
12204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12205 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12206 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12207 cat >>confdefs.h <<_ACEOF
12208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12209 _ACEOF
12213 done
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
12217 $as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
12218 if ${libgfor_cv_have_math_h_signgam+:} false; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12222 save_CFLAGS="$CFLAGS"
12223 CFLAGS="$CFLAGS -Werror"
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12227 #include <math.h>
12228 void foo(void) { signgam = 1; }
12230 main ()
12234 return 0;
12236 _ACEOF
12237 if ac_fn_c_try_compile "$LINENO"; then :
12238 libgfor_cv_have_math_h_signgam=yes
12239 else
12240 libgfor_cv_have_math_h_signgam=no
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243 CFLAGS="$save_CFLAGS"
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
12246 $as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
12247 if test $libgfor_cv_have_math_h_signgam = yes; then
12249 $as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
12253 # If available, sqrtl and cbrtl speed up the calculation -
12254 # but they are not required
12255 if test x$gcc_no_link != xyes; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
12257 $as_echo_n "checking for sqrtl in -lm... " >&6; }
12258 if ${ac_cv_lib_m_sqrtl+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 ac_check_lib_save_LIBS=$LIBS
12262 LIBS="-lm $LIBS"
12263 if test x$gcc_no_link = xyes; then
12264 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267 /* end confdefs.h. */
12269 /* Override any GCC internal prototype to avoid an error.
12270 Use char because int might match the return type of a GCC
12271 builtin and then its argument prototype would still apply. */
12272 #ifdef __cplusplus
12273 extern "C"
12274 #endif
12275 char sqrtl ();
12277 main ()
12279 return sqrtl ();
12281 return 0;
12283 _ACEOF
12284 if ac_fn_c_try_link "$LINENO"; then :
12285 ac_cv_lib_m_sqrtl=yes
12286 else
12287 ac_cv_lib_m_sqrtl=no
12289 rm -f core conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12294 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12295 if test "x$ac_cv_lib_m_sqrtl" = xyes; then :
12297 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
12302 $as_echo_n "checking for cbrtl in -lm... " >&6; }
12303 if ${ac_cv_lib_m_cbrtl+:} false; then :
12304 $as_echo_n "(cached) " >&6
12305 else
12306 ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-lm $LIBS"
12308 if test x$gcc_no_link = xyes; then
12309 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12314 /* Override any GCC internal prototype to avoid an error.
12315 Use char because int might match the return type of a GCC
12316 builtin and then its argument prototype would still apply. */
12317 #ifdef __cplusplus
12318 extern "C"
12319 #endif
12320 char cbrtl ();
12322 main ()
12324 return cbrtl ();
12326 return 0;
12328 _ACEOF
12329 if ac_fn_c_try_link "$LINENO"; then :
12330 ac_cv_lib_m_cbrtl=yes
12331 else
12332 ac_cv_lib_m_cbrtl=no
12334 rm -f core conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
12336 LIBS=$ac_check_lib_save_LIBS
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12339 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12340 if test "x$ac_cv_lib_m_cbrtl" = xyes; then :
12342 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12347 $as_echo_n "checking for feholdexcept in -lm... " >&6; }
12348 if ${ac_cv_lib_m_feholdexcept+:} false; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351 ac_check_lib_save_LIBS=$LIBS
12352 LIBS="-lm $LIBS"
12353 if test x$gcc_no_link = xyes; then
12354 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12359 /* Override any GCC internal prototype to avoid an error.
12360 Use char because int might match the return type of a GCC
12361 builtin and then its argument prototype would still apply. */
12362 #ifdef __cplusplus
12363 extern "C"
12364 #endif
12365 char feholdexcept ();
12367 main ()
12369 return feholdexcept ();
12371 return 0;
12373 _ACEOF
12374 if ac_fn_c_try_link "$LINENO"; then :
12375 ac_cv_lib_m_feholdexcept=yes
12376 else
12377 ac_cv_lib_m_feholdexcept=no
12379 rm -f core conftest.err conftest.$ac_objext \
12380 conftest$ac_exeext conftest.$ac_ext
12381 LIBS=$ac_check_lib_save_LIBS
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12384 $as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12385 if test "x$ac_cv_lib_m_feholdexcept" = xyes; then :
12387 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12392 $as_echo_n "checking for fesetround in -lm... " >&6; }
12393 if ${ac_cv_lib_m_fesetround+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 ac_check_lib_save_LIBS=$LIBS
12397 LIBS="-lm $LIBS"
12398 if test x$gcc_no_link = xyes; then
12399 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12404 /* Override any GCC internal prototype to avoid an error.
12405 Use char because int might match the return type of a GCC
12406 builtin and then its argument prototype would still apply. */
12407 #ifdef __cplusplus
12408 extern "C"
12409 #endif
12410 char fesetround ();
12412 main ()
12414 return fesetround ();
12416 return 0;
12418 _ACEOF
12419 if ac_fn_c_try_link "$LINENO"; then :
12420 ac_cv_lib_m_fesetround=yes
12421 else
12422 ac_cv_lib_m_fesetround=no
12424 rm -f core conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
12426 LIBS=$ac_check_lib_save_LIBS
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12429 $as_echo "$ac_cv_lib_m_fesetround" >&6; }
12430 if test "x$ac_cv_lib_m_fesetround" = xyes; then :
12432 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12437 $as_echo_n "checking for feupdateenv in -lm... " >&6; }
12438 if ${ac_cv_lib_m_feupdateenv+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 ac_check_lib_save_LIBS=$LIBS
12442 LIBS="-lm $LIBS"
12443 if test x$gcc_no_link = xyes; then
12444 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h. */
12449 /* Override any GCC internal prototype to avoid an error.
12450 Use char because int might match the return type of a GCC
12451 builtin and then its argument prototype would still apply. */
12452 #ifdef __cplusplus
12453 extern "C"
12454 #endif
12455 char feupdateenv ();
12457 main ()
12459 return feupdateenv ();
12461 return 0;
12463 _ACEOF
12464 if ac_fn_c_try_link "$LINENO"; then :
12465 ac_cv_lib_m_feupdateenv=yes
12466 else
12467 ac_cv_lib_m_feupdateenv=no
12469 rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471 LIBS=$ac_check_lib_save_LIBS
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12474 $as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12475 if test "x$ac_cv_lib_m_feupdateenv" = xyes; then :
12477 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12482 $as_echo_n "checking for fesetenv in -lm... " >&6; }
12483 if ${ac_cv_lib_m_fesetenv+:} false; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 ac_check_lib_save_LIBS=$LIBS
12487 LIBS="-lm $LIBS"
12488 if test x$gcc_no_link = xyes; then
12489 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12494 /* Override any GCC internal prototype to avoid an error.
12495 Use char because int might match the return type of a GCC
12496 builtin and then its argument prototype would still apply. */
12497 #ifdef __cplusplus
12498 extern "C"
12499 #endif
12500 char fesetenv ();
12502 main ()
12504 return fesetenv ();
12506 return 0;
12508 _ACEOF
12509 if ac_fn_c_try_link "$LINENO"; then :
12510 ac_cv_lib_m_fesetenv=yes
12511 else
12512 ac_cv_lib_m_fesetenv=no
12514 rm -f core conftest.err conftest.$ac_objext \
12515 conftest$ac_exeext conftest.$ac_ext
12516 LIBS=$ac_check_lib_save_LIBS
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12519 $as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12520 if test "x$ac_cv_lib_m_fesetenv" = xyes; then :
12522 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12527 $as_echo_n "checking for fetestexcept in -lm... " >&6; }
12528 if ${ac_cv_lib_m_fetestexcept+:} false; then :
12529 $as_echo_n "(cached) " >&6
12530 else
12531 ac_check_lib_save_LIBS=$LIBS
12532 LIBS="-lm $LIBS"
12533 if test x$gcc_no_link = xyes; then
12534 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12539 /* Override any GCC internal prototype to avoid an error.
12540 Use char because int might match the return type of a GCC
12541 builtin and then its argument prototype would still apply. */
12542 #ifdef __cplusplus
12543 extern "C"
12544 #endif
12545 char fetestexcept ();
12547 main ()
12549 return fetestexcept ();
12551 return 0;
12553 _ACEOF
12554 if ac_fn_c_try_link "$LINENO"; then :
12555 ac_cv_lib_m_fetestexcept=yes
12556 else
12557 ac_cv_lib_m_fetestexcept=no
12559 rm -f core conftest.err conftest.$ac_objext \
12560 conftest$ac_exeext conftest.$ac_ext
12561 LIBS=$ac_check_lib_save_LIBS
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12564 $as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12565 if test "x$ac_cv_lib_m_fetestexcept" = xyes; then :
12567 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12571 for ac_func in strtoull
12572 do :
12573 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12574 if test "x$ac_cv_func_strtoull" = xyes; then :
12575 cat >>confdefs.h <<_ACEOF
12576 #define HAVE_STRTOULL 1
12577 _ACEOF
12580 done
12582 else
12583 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12585 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12588 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12590 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12593 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12595 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12598 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12600 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12603 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12605 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12608 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12610 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12613 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12615 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12620 # Check for hidden visibility (copied from libssp).
12621 saved_CFLAGS="$CFLAGS"
12622 CFLAGS="$CFLAGS -Werror"
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12624 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12628 void __attribute__((visibility ("hidden"))) bar (void) {}
12630 main ()
12634 return 0;
12636 _ACEOF
12637 if ac_fn_c_try_compile "$LINENO"; then :
12638 quadmath_hidden=yes
12639 else
12640 quadmath_hidden=no
12642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12644 $as_echo "$quadmath_hidden" >&6; }
12645 if test x$quadmath_hidden = xyes; then
12647 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12650 CFLAGS="$saved_CFLAGS"
12652 # Check for symbol versioning (copied from libssp).
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12654 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
12655 # Check whether --enable-symvers was given.
12656 if test "${enable_symvers+set}" = set; then :
12657 enableval=$enable_symvers; quadmath_use_symver=$enableval
12658 else
12659 quadmath_use_symver=yes
12662 if test "x$quadmath_use_symver" != xno; then
12663 if test x$gcc_no_link = xyes; then
12664 # If we cannot link, we cannot build shared libraries, so do not use
12665 # symbol versioning.
12666 quadmath_use_symver=no
12667 else
12668 save_LDFLAGS="$LDFLAGS"
12669 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12670 cat > conftest.map <<EOF
12671 FOO_1.0 {
12672 global: *foo*; bar; local: *;
12675 if test x$gcc_no_link = xyes; then
12676 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12680 int foo;
12682 main ()
12686 return 0;
12688 _ACEOF
12689 if ac_fn_c_try_link "$LINENO"; then :
12690 quadmath_use_symver=gnu
12691 else
12692 quadmath_use_symver=no
12694 rm -f core conftest.err conftest.$ac_objext \
12695 conftest$ac_exeext conftest.$ac_ext
12696 if test x$quadmath_use_symver = xno; then
12697 case "$target_os" in
12698 solaris2*)
12699 LDFLAGS="$save_LDFLAGS"
12700 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12701 # Sun ld cannot handle wildcards and treats all entries as undefined.
12702 cat > conftest.map <<EOF
12703 FOO_1.0 {
12704 global: foo; local: *;
12707 if test x$gcc_no_link = xyes; then
12708 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12712 int foo;
12714 main ()
12718 return 0;
12720 _ACEOF
12721 if ac_fn_c_try_link "$LINENO"; then :
12722 quadmath_use_symver=sun
12723 else
12724 quadmath_use_symver=no
12726 rm -f core conftest.err conftest.$ac_objext \
12727 conftest$ac_exeext conftest.$ac_ext
12729 esac
12731 LDFLAGS="$save_LDFLAGS"
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12735 $as_echo "$quadmath_use_symver" >&6; }
12736 if test "x$quadmath_use_symver" != xno; then
12737 LIBQUAD_USE_SYMVER_TRUE=
12738 LIBQUAD_USE_SYMVER_FALSE='#'
12739 else
12740 LIBQUAD_USE_SYMVER_TRUE='#'
12741 LIBQUAD_USE_SYMVER_FALSE=
12744 if test "x$quadmath_use_symver" = xgnu; then
12745 LIBQUAD_USE_SYMVER_GNU_TRUE=
12746 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12747 else
12748 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12749 LIBQUAD_USE_SYMVER_GNU_FALSE=
12752 if test "x$quadmath_use_symver" = xsun; then
12753 LIBQUAD_USE_SYMVER_SUN_TRUE=
12754 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12755 else
12756 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12757 LIBQUAD_USE_SYMVER_SUN_FALSE=
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12762 $as_echo_n "checking whether __float128 is supported... " >&6; }
12763 if ${libquad_cv_have_float128+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 if test x$gcc_no_link = xyes; then
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12770 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12771 typedef _Complex float __attribute__((mode(TC))) __complex128;
12772 #else
12773 typedef _Complex float __attribute__((mode(KC))) __complex128;
12774 #endif
12776 __float128 foo (__float128 x)
12779 __complex128 z1, z2;
12781 z1 = x;
12782 z2 = x / 7.Q;
12783 z2 /= z1;
12785 return (__float128) z2;
12788 __float128 bar (__float128 x)
12790 return x * __builtin_huge_valq ();
12794 main ()
12797 foo (1.2Q);
12798 bar (1.2Q);
12801 return 0;
12803 _ACEOF
12804 if ac_fn_c_try_compile "$LINENO"; then :
12806 libquad_cv_have_float128=yes
12808 else
12810 libquad_cv_have_float128=no
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 else
12815 if test x$gcc_no_link = xyes; then
12816 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12821 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12822 typedef _Complex float __attribute__((mode(TC))) __complex128;
12823 #else
12824 typedef _Complex float __attribute__((mode(KC))) __complex128;
12825 #endif
12827 __float128 foo (__float128 x)
12830 __complex128 z1, z2;
12832 z1 = x;
12833 z2 = x / 7.Q;
12834 z2 /= z1;
12836 return (__float128) z2;
12839 __float128 bar (__float128 x)
12841 return x * __builtin_huge_valq ();
12845 main ()
12848 foo (1.2Q);
12849 bar (1.2Q);
12852 return 0;
12854 _ACEOF
12855 if ac_fn_c_try_link "$LINENO"; then :
12857 libquad_cv_have_float128=yes
12859 else
12861 libquad_cv_have_float128=no
12864 rm -f core conftest.err conftest.$ac_objext \
12865 conftest$ac_exeext conftest.$ac_ext
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12869 $as_echo "$libquad_cv_have_float128" >&6; }
12870 if test "x$libquad_cv_have_float128" = xyes; then
12871 BUILD_LIBQUADMATH_TRUE=
12872 BUILD_LIBQUADMATH_FALSE='#'
12873 else
12874 BUILD_LIBQUADMATH_TRUE='#'
12875 BUILD_LIBQUADMATH_FALSE=
12879 # Check for printf hook support.
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12881 $as_echo_n "checking whether printf hooks are supported... " >&6; }
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12885 #include <printf.h>
12886 #include <stdarg.h>
12887 #include <stdlib.h>
12888 extern void flt128_va (void *, va_list *);
12889 extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12890 extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12893 main ()
12896 int pa_flt128 = register_printf_type (flt128_va);
12897 int mod_Q = register_printf_modifier (L"Q");
12898 int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12899 struct printf_info info = { .user = -1 };
12902 return 0;
12904 _ACEOF
12905 if ac_fn_c_try_compile "$LINENO"; then :
12906 quadmath_printf_hooks=yes
12907 else
12908 quadmath_printf_hooks=no
12910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12912 $as_echo "$quadmath_printf_hooks" >&6; }
12913 if test x$quadmath_printf_hooks = xyes; then
12915 $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12919 # Check for whether locale support for quadmath_snprintf or Q printf hooks
12920 # should be provided.
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12922 $as_echo_n "checking whether nl_langinfo should be used... " >&6; }
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925 #include <langinfo.h>
12927 main ()
12930 const char *s;
12931 s = nl_langinfo (DECIMAL_POINT);
12932 s = nl_langinfo (MON_DECIMAL_POINT);
12933 s = nl_langinfo (GROUPING);
12934 s = nl_langinfo (MON_GROUPING);
12935 s = nl_langinfo (THOUSANDS_SEP);
12936 s = nl_langinfo (MON_THOUSANDS_SEP);
12937 (void) s;
12940 return 0;
12942 _ACEOF
12943 if ac_fn_c_try_compile "$LINENO"; then :
12944 quadmath_use_nl_langinfo=yes
12945 else
12946 quadmath_use_nl_langinfo=no
12948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12950 $as_echo "$quadmath_use_nl_langinfo" >&6; }
12951 if test x$quadmath_use_nl_langinfo = xyes; then
12953 $as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12958 $as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12960 /* end confdefs.h. */
12961 #include <langinfo.h>
12963 main ()
12966 const char *s;
12967 s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12968 s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12969 s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12970 s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
12971 (void) s;
12974 return 0;
12976 _ACEOF
12977 if ac_fn_c_try_compile "$LINENO"; then :
12978 quadmath_use_nl_langinfo_wc=yes
12979 else
12980 quadmath_use_nl_langinfo_wc=no
12982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12984 $as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12985 if test x$quadmath_use_nl_langinfo_wc = xyes; then
12987 $as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12992 $as_echo_n "checking whether localeconv should be used... " >&6; }
12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12995 #include <locale.h>
12997 main ()
13000 const struct lconv *l = localeconv ();
13001 const char *s;
13002 s = l->decimal_point;
13003 s = l->mon_decimal_point;
13004 s = l->grouping;
13005 s = l->mon_grouping;
13006 s = l->thousands_sep;
13007 s = l->mon_thousands_sep;
13008 (void) s;
13011 return 0;
13013 _ACEOF
13014 if ac_fn_c_try_compile "$LINENO"; then :
13015 quadmath_use_localeconv=yes
13016 else
13017 quadmath_use_localeconv=no
13019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
13021 $as_echo "$quadmath_use_localeconv" >&6; }
13022 if test x$quadmath_use_localeconv = xyes; then
13024 $as_echo "#define USE_LOCALECONV 1" >>confdefs.h
13028 # Check for whether i18n number rewriting support for quadmath_snprintf
13029 # or Q printf hooks should be provided.
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
13031 $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034 #include <langinfo.h>
13035 #include <limits.h>
13036 #include <string.h>
13037 #include <wchar.h>
13038 #include <wctype.h>
13040 main ()
13043 const char *s;
13044 char decimal[MB_LEN_MAX];
13045 wctrans_t map = wctrans ("to_outpunct");
13046 wint_t wdecimal = towctrans (L'.', map);
13047 mbstate_t state;
13048 memset (&state, '\0', sizeof (state));
13049 wcrtomb (decimal, wdecimal, &state);
13050 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
13051 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
13052 s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
13053 (void) s;
13056 return 0;
13058 _ACEOF
13059 if ac_fn_c_try_compile "$LINENO"; then :
13060 quadmath_use_i18n_number_h=yes
13061 else
13062 quadmath_use_i18n_number_h=no
13064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
13066 $as_echo "$quadmath_use_i18n_number_h" >&6; }
13067 if test x$quadmath_use_i18n_number_h = xyes; then
13069 $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
13073 # Add CET specific flags if CET is enabled
13074 # Check whether --enable-cet was given.
13075 if test "${enable_cet+set}" = set; then :
13076 enableval=$enable_cet;
13077 case "$enableval" in
13078 yes|no|auto) ;;
13079 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
13080 esac
13082 else
13083 enable_cet=auto
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
13088 $as_echo_n "checking for CET support... " >&6; }
13090 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
13091 case "$host" in
13092 i[34567]86-*-linux* | x86_64-*-linux*)
13093 case "$enable_cet" in
13094 auto)
13095 # Check if target supports multi-byte NOPs
13096 # and if compiler and assembler support CET insn.
13097 cet_save_CFLAGS="$CFLAGS"
13098 CFLAGS="$CFLAGS -fcf-protection"
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13103 main ()
13106 #if !defined(__SSE2__)
13107 #error target does not support multi-byte NOPs
13108 #else
13109 asm ("setssbsy");
13110 #endif
13113 return 0;
13115 _ACEOF
13116 if ac_fn_c_try_compile "$LINENO"; then :
13117 enable_cet=yes
13118 else
13119 enable_cet=no
13121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13122 CFLAGS="$cet_save_CFLAGS"
13124 yes)
13125 # Check if assembler supports CET.
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13130 main ()
13132 asm ("setssbsy");
13134 return 0;
13136 _ACEOF
13137 if ac_fn_c_try_compile "$LINENO"; then :
13139 else
13140 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
13142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 esac
13147 enable_cet=no
13149 esac
13150 if test x$enable_cet = xyes; then
13151 CET_FLAGS="-fcf-protection -mshstk"
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13153 $as_echo "yes" >&6; }
13154 else
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13159 XCFLAGS="$XCFLAGS $CET_FLAGS"
13161 case x$target in
13162 xpowerpc64le*-linux*)
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13165 #if __SIZEOF_LONG_DOUBLE__ != 16
13166 #error long double is double
13167 #endif
13169 main ()
13171 (void) 0;
13173 return 0;
13175 _ACEOF
13176 if ac_fn_c_try_cpp "$LINENO"; then :
13177 XCFLAGS="$XCFLAGS -mno-gnu-attribute"
13179 rm -f conftest.err conftest.i conftest.$ac_ext
13183 esac
13186 cat >confcache <<\_ACEOF
13187 # This file is a shell script that caches the results of configure
13188 # tests run on this system so they can be shared between configure
13189 # scripts and configure runs, see configure's option --config-cache.
13190 # It is not useful on other systems. If it contains results you don't
13191 # want to keep, you may remove or edit it.
13193 # config.status only pays attention to the cache file if you give it
13194 # the --recheck option to rerun configure.
13196 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13197 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13198 # following values.
13200 _ACEOF
13202 # The following way of writing the cache mishandles newlines in values,
13203 # but we know of no workaround that is simple, portable, and efficient.
13204 # So, we kill variables containing newlines.
13205 # Ultrix sh set writes to stderr and can't be redirected directly,
13206 # and sets the high bit in the cache file unless we assign to the vars.
13208 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13209 eval ac_val=\$$ac_var
13210 case $ac_val in #(
13211 *${as_nl}*)
13212 case $ac_var in #(
13213 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13214 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13215 esac
13216 case $ac_var in #(
13217 _ | IFS | as_nl) ;; #(
13218 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13219 *) { eval $ac_var=; unset $ac_var;} ;;
13220 esac ;;
13221 esac
13222 done
13224 (set) 2>&1 |
13225 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13226 *${as_nl}ac_space=\ *)
13227 # `set' does not quote correctly, so add quotes: double-quote
13228 # substitution turns \\\\ into \\, and sed turns \\ into \.
13229 sed -n \
13230 "s/'/'\\\\''/g;
13231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13232 ;; #(
13234 # `set' quotes correctly as required by POSIX, so do not add quotes.
13235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13237 esac |
13238 sort
13240 sed '
13241 /^ac_cv_env_/b end
13242 t clear
13243 :clear
13244 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13245 t end
13246 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13247 :end' >>confcache
13248 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13249 if test -w "$cache_file"; then
13250 if test "x$cache_file" != "x/dev/null"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13252 $as_echo "$as_me: updating cache $cache_file" >&6;}
13253 if test ! -f "$cache_file" || test -h "$cache_file"; then
13254 cat confcache >"$cache_file"
13255 else
13256 case $cache_file in #(
13257 */* | ?:*)
13258 mv -f confcache "$cache_file"$$ &&
13259 mv -f "$cache_file"$$ "$cache_file" ;; #(
13261 mv -f confcache "$cache_file" ;;
13262 esac
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13267 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13270 rm -f confcache
13272 if test ${multilib} = yes; then
13273 multilib_arg="--enable-multilib"
13274 else
13275 multilib_arg=
13279 # We would like our source tree to be readonly. However when releases or
13280 # pre-releases are generated, the flex/bison generated files as well as the
13281 # various formats of manuals need to be included along with the rest of the
13282 # sources. Therefore we have --enable-generated-files-in-srcdir to do
13283 # just that.
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
13285 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
13286 # Check whether --enable-generated-files-in-srcdir was given.
13287 if test "${enable_generated_files_in_srcdir+set}" = set; then :
13288 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
13289 yes) enable_generated_files_in_srcdir=yes ;;
13290 no) enable_generated_files_in_srcdir=no ;;
13291 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13292 esac
13293 else
13294 enable_generated_files_in_srcdir=no
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
13298 $as_echo "$enable_generated_files_in_srcdir" >&6; }
13299 if test "$enable_generated_files_in_srcdir" = yes; then
13300 GENINSRC_TRUE=
13301 GENINSRC_FALSE='#'
13302 else
13303 GENINSRC_TRUE='#'
13304 GENINSRC_FALSE=
13308 # Determine what GCC version number to use in filesystem paths.
13310 get_gcc_base_ver="cat"
13312 # Check whether --with-gcc-major-version-only was given.
13313 if test "${with_gcc_major_version_only+set}" = set; then :
13314 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13315 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13323 ac_config_files="$ac_config_files Makefile"
13325 cat >confcache <<\_ACEOF
13326 # This file is a shell script that caches the results of configure
13327 # tests run on this system so they can be shared between configure
13328 # scripts and configure runs, see configure's option --config-cache.
13329 # It is not useful on other systems. If it contains results you don't
13330 # want to keep, you may remove or edit it.
13332 # config.status only pays attention to the cache file if you give it
13333 # the --recheck option to rerun configure.
13335 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13336 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13337 # following values.
13339 _ACEOF
13341 # The following way of writing the cache mishandles newlines in values,
13342 # but we know of no workaround that is simple, portable, and efficient.
13343 # So, we kill variables containing newlines.
13344 # Ultrix sh set writes to stderr and can't be redirected directly,
13345 # and sets the high bit in the cache file unless we assign to the vars.
13347 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13348 eval ac_val=\$$ac_var
13349 case $ac_val in #(
13350 *${as_nl}*)
13351 case $ac_var in #(
13352 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13353 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13354 esac
13355 case $ac_var in #(
13356 _ | IFS | as_nl) ;; #(
13357 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13358 *) { eval $ac_var=; unset $ac_var;} ;;
13359 esac ;;
13360 esac
13361 done
13363 (set) 2>&1 |
13364 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13365 *${as_nl}ac_space=\ *)
13366 # `set' does not quote correctly, so add quotes: double-quote
13367 # substitution turns \\\\ into \\, and sed turns \\ into \.
13368 sed -n \
13369 "s/'/'\\\\''/g;
13370 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13371 ;; #(
13373 # `set' quotes correctly as required by POSIX, so do not add quotes.
13374 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13376 esac |
13377 sort
13379 sed '
13380 /^ac_cv_env_/b end
13381 t clear
13382 :clear
13383 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13384 t end
13385 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13386 :end' >>confcache
13387 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13388 if test -w "$cache_file"; then
13389 if test "x$cache_file" != "x/dev/null"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13391 $as_echo "$as_me: updating cache $cache_file" >&6;}
13392 if test ! -f "$cache_file" || test -h "$cache_file"; then
13393 cat confcache >"$cache_file"
13394 else
13395 case $cache_file in #(
13396 */* | ?:*)
13397 mv -f confcache "$cache_file"$$ &&
13398 mv -f "$cache_file"$$ "$cache_file" ;; #(
13400 mv -f confcache "$cache_file" ;;
13401 esac
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13406 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13409 rm -f confcache
13411 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13412 # Let make expand exec_prefix.
13413 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13415 DEFS=-DHAVE_CONFIG_H
13417 ac_libobjs=
13418 ac_ltlibobjs=
13420 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13421 # 1. Remove the extension, and $U if already installed.
13422 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13423 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13424 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13425 # will be set to the directory where LIBOBJS objects are built.
13426 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13427 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13428 done
13429 LIBOBJS=$ac_libobjs
13431 LTLIBOBJS=$ac_ltlibobjs
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13435 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13436 if test -n "$am_sleep_pid"; then
13437 # Hide warnings about reused PIDs.
13438 wait $am_sleep_pid 2>/dev/null
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13441 $as_echo "done" >&6; }
13442 if test -n "$EXEEXT"; then
13443 am__EXEEXT_TRUE=
13444 am__EXEEXT_FALSE='#'
13445 else
13446 am__EXEEXT_TRUE='#'
13447 am__EXEEXT_FALSE=
13450 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13451 as_fn_error $? "conditional \"AMDEP\" was never defined.
13452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13454 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13455 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13458 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13459 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
13460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13462 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13463 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13466 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13467 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13470 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13471 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13474 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13475 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13478 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13479 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13482 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13483 as_fn_error $? "conditional \"BUILD_LIBQUADMATH\" was never defined.
13484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13486 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13487 as_fn_error $? "conditional \"GENINSRC\" was never defined.
13488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13491 : "${CONFIG_STATUS=./config.status}"
13492 ac_write_fail=0
13493 ac_clean_files_save=$ac_clean_files
13494 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13496 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13497 as_write_fail=0
13498 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13499 #! $SHELL
13500 # Generated by $as_me.
13501 # Run this file to recreate the current configuration.
13502 # Compiler output produced by configure, useful for debugging
13503 # configure, is in config.log if it exists.
13505 debug=false
13506 ac_cs_recheck=false
13507 ac_cs_silent=false
13509 SHELL=\${CONFIG_SHELL-$SHELL}
13510 export SHELL
13511 _ASEOF
13512 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13513 ## -------------------- ##
13514 ## M4sh Initialization. ##
13515 ## -------------------- ##
13517 # Be more Bourne compatible
13518 DUALCASE=1; export DUALCASE # for MKS sh
13519 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13520 emulate sh
13521 NULLCMD=:
13522 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13523 # is contrary to our usage. Disable this feature.
13524 alias -g '${1+"$@"}'='"$@"'
13525 setopt NO_GLOB_SUBST
13526 else
13527 case `(set -o) 2>/dev/null` in #(
13528 *posix*) :
13529 set -o posix ;; #(
13530 *) :
13532 esac
13536 as_nl='
13538 export as_nl
13539 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13540 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13541 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13542 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13543 # Prefer a ksh shell builtin over an external printf program on Solaris,
13544 # but without wasting forks for bash or zsh.
13545 if test -z "$BASH_VERSION$ZSH_VERSION" \
13546 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13547 as_echo='print -r --'
13548 as_echo_n='print -rn --'
13549 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13550 as_echo='printf %s\n'
13551 as_echo_n='printf %s'
13552 else
13553 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13554 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13555 as_echo_n='/usr/ucb/echo -n'
13556 else
13557 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13558 as_echo_n_body='eval
13559 arg=$1;
13560 case $arg in #(
13561 *"$as_nl"*)
13562 expr "X$arg" : "X\\(.*\\)$as_nl";
13563 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13564 esac;
13565 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13567 export as_echo_n_body
13568 as_echo_n='sh -c $as_echo_n_body as_echo'
13570 export as_echo_body
13571 as_echo='sh -c $as_echo_body as_echo'
13574 # The user is always right.
13575 if test "${PATH_SEPARATOR+set}" != set; then
13576 PATH_SEPARATOR=:
13577 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13578 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13579 PATH_SEPARATOR=';'
13584 # IFS
13585 # We need space, tab and new line, in precisely that order. Quoting is
13586 # there to prevent editors from complaining about space-tab.
13587 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13588 # splitting by setting IFS to empty value.)
13589 IFS=" "" $as_nl"
13591 # Find who we are. Look in the path if we contain no directory separator.
13592 as_myself=
13593 case $0 in #((
13594 *[\\/]* ) as_myself=$0 ;;
13595 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13601 done
13602 IFS=$as_save_IFS
13605 esac
13606 # We did not find ourselves, most probably we were run as `sh COMMAND'
13607 # in which case we are not to be found in the path.
13608 if test "x$as_myself" = x; then
13609 as_myself=$0
13611 if test ! -f "$as_myself"; then
13612 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13613 exit 1
13616 # Unset variables that we do not need and which cause bugs (e.g. in
13617 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13618 # suppresses any "Segmentation fault" message there. '((' could
13619 # trigger a bug in pdksh 5.2.14.
13620 for as_var in BASH_ENV ENV MAIL MAILPATH
13621 do eval test x\${$as_var+set} = xset \
13622 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13623 done
13624 PS1='$ '
13625 PS2='> '
13626 PS4='+ '
13628 # NLS nuisances.
13629 LC_ALL=C
13630 export LC_ALL
13631 LANGUAGE=C
13632 export LANGUAGE
13634 # CDPATH.
13635 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13638 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13639 # ----------------------------------------
13640 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13641 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13642 # script with STATUS, using 1 if that was 0.
13643 as_fn_error ()
13645 as_status=$1; test $as_status -eq 0 && as_status=1
13646 if test "$4"; then
13647 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13648 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13650 $as_echo "$as_me: error: $2" >&2
13651 as_fn_exit $as_status
13652 } # as_fn_error
13655 # as_fn_set_status STATUS
13656 # -----------------------
13657 # Set $? to STATUS, without forking.
13658 as_fn_set_status ()
13660 return $1
13661 } # as_fn_set_status
13663 # as_fn_exit STATUS
13664 # -----------------
13665 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13666 as_fn_exit ()
13668 set +e
13669 as_fn_set_status $1
13670 exit $1
13671 } # as_fn_exit
13673 # as_fn_unset VAR
13674 # ---------------
13675 # Portably unset VAR.
13676 as_fn_unset ()
13678 { eval $1=; unset $1;}
13680 as_unset=as_fn_unset
13681 # as_fn_append VAR VALUE
13682 # ----------------------
13683 # Append the text in VALUE to the end of the definition contained in VAR. Take
13684 # advantage of any shell optimizations that allow amortized linear growth over
13685 # repeated appends, instead of the typical quadratic growth present in naive
13686 # implementations.
13687 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13688 eval 'as_fn_append ()
13690 eval $1+=\$2
13692 else
13693 as_fn_append ()
13695 eval $1=\$$1\$2
13697 fi # as_fn_append
13699 # as_fn_arith ARG...
13700 # ------------------
13701 # Perform arithmetic evaluation on the ARGs, and store the result in the
13702 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13703 # must be portable across $(()) and expr.
13704 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13705 eval 'as_fn_arith ()
13707 as_val=$(( $* ))
13709 else
13710 as_fn_arith ()
13712 as_val=`expr "$@" || test $? -eq 1`
13714 fi # as_fn_arith
13717 if expr a : '\(a\)' >/dev/null 2>&1 &&
13718 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13719 as_expr=expr
13720 else
13721 as_expr=false
13724 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13725 as_basename=basename
13726 else
13727 as_basename=false
13730 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13731 as_dirname=dirname
13732 else
13733 as_dirname=false
13736 as_me=`$as_basename -- "$0" ||
13737 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13738 X"$0" : 'X\(//\)$' \| \
13739 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13740 $as_echo X/"$0" |
13741 sed '/^.*\/\([^/][^/]*\)\/*$/{
13742 s//\1/
13745 /^X\/\(\/\/\)$/{
13746 s//\1/
13749 /^X\/\(\/\).*/{
13750 s//\1/
13753 s/.*/./; q'`
13755 # Avoid depending upon Character Ranges.
13756 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13757 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13758 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13759 as_cr_digits='0123456789'
13760 as_cr_alnum=$as_cr_Letters$as_cr_digits
13762 ECHO_C= ECHO_N= ECHO_T=
13763 case `echo -n x` in #(((((
13764 -n*)
13765 case `echo 'xy\c'` in
13766 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13767 xy) ECHO_C='\c';;
13768 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13769 ECHO_T=' ';;
13770 esac;;
13772 ECHO_N='-n';;
13773 esac
13775 rm -f conf$$ conf$$.exe conf$$.file
13776 if test -d conf$$.dir; then
13777 rm -f conf$$.dir/conf$$.file
13778 else
13779 rm -f conf$$.dir
13780 mkdir conf$$.dir 2>/dev/null
13782 if (echo >conf$$.file) 2>/dev/null; then
13783 if ln -s conf$$.file conf$$ 2>/dev/null; then
13784 as_ln_s='ln -s'
13785 # ... but there are two gotchas:
13786 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13787 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13788 # In both cases, we have to default to `cp -pR'.
13789 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13790 as_ln_s='cp -pR'
13791 elif ln conf$$.file conf$$ 2>/dev/null; then
13792 as_ln_s=ln
13793 else
13794 as_ln_s='cp -pR'
13796 else
13797 as_ln_s='cp -pR'
13799 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13800 rmdir conf$$.dir 2>/dev/null
13803 # as_fn_mkdir_p
13804 # -------------
13805 # Create "$as_dir" as a directory, including parents if necessary.
13806 as_fn_mkdir_p ()
13809 case $as_dir in #(
13810 -*) as_dir=./$as_dir;;
13811 esac
13812 test -d "$as_dir" || eval $as_mkdir_p || {
13813 as_dirs=
13814 while :; do
13815 case $as_dir in #(
13816 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13817 *) as_qdir=$as_dir;;
13818 esac
13819 as_dirs="'$as_qdir' $as_dirs"
13820 as_dir=`$as_dirname -- "$as_dir" ||
13821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13822 X"$as_dir" : 'X\(//\)[^/]' \| \
13823 X"$as_dir" : 'X\(//\)$' \| \
13824 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13825 $as_echo X"$as_dir" |
13826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13827 s//\1/
13830 /^X\(\/\/\)[^/].*/{
13831 s//\1/
13834 /^X\(\/\/\)$/{
13835 s//\1/
13838 /^X\(\/\).*/{
13839 s//\1/
13842 s/.*/./; q'`
13843 test -d "$as_dir" && break
13844 done
13845 test -z "$as_dirs" || eval "mkdir $as_dirs"
13846 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13849 } # as_fn_mkdir_p
13850 if mkdir -p . 2>/dev/null; then
13851 as_mkdir_p='mkdir -p "$as_dir"'
13852 else
13853 test -d ./-p && rmdir ./-p
13854 as_mkdir_p=false
13858 # as_fn_executable_p FILE
13859 # -----------------------
13860 # Test if FILE is an executable regular file.
13861 as_fn_executable_p ()
13863 test -f "$1" && test -x "$1"
13864 } # as_fn_executable_p
13865 as_test_x='test -x'
13866 as_executable_p=as_fn_executable_p
13868 # Sed expression to map a string onto a valid CPP name.
13869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13871 # Sed expression to map a string onto a valid variable name.
13872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13875 exec 6>&1
13876 ## ----------------------------------- ##
13877 ## Main body of $CONFIG_STATUS script. ##
13878 ## ----------------------------------- ##
13879 _ASEOF
13880 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13883 # Save the log message, to keep $0 and so on meaningful, and to
13884 # report actual input values of CONFIG_FILES etc. instead of their
13885 # values after options handling.
13886 ac_log="
13887 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13888 generated by GNU Autoconf 2.69. Invocation command line was
13890 CONFIG_FILES = $CONFIG_FILES
13891 CONFIG_HEADERS = $CONFIG_HEADERS
13892 CONFIG_LINKS = $CONFIG_LINKS
13893 CONFIG_COMMANDS = $CONFIG_COMMANDS
13894 $ $0 $@
13896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13899 _ACEOF
13901 case $ac_config_files in *"
13902 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13903 esac
13905 case $ac_config_headers in *"
13906 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13907 esac
13910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13911 # Files that config.status was made for.
13912 config_files="$ac_config_files"
13913 config_headers="$ac_config_headers"
13914 config_commands="$ac_config_commands"
13916 _ACEOF
13918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13919 ac_cs_usage="\
13920 \`$as_me' instantiates files and other configuration actions
13921 from templates according to the current configuration. Unless the files
13922 and actions are specified as TAGs, all are instantiated by default.
13924 Usage: $0 [OPTION]... [TAG]...
13926 -h, --help print this help, then exit
13927 -V, --version print version number and configuration settings, then exit
13928 --config print configuration, then exit
13929 -q, --quiet, --silent
13930 do not print progress messages
13931 -d, --debug don't remove temporary files
13932 --recheck update $as_me by reconfiguring in the same conditions
13933 --file=FILE[:TEMPLATE]
13934 instantiate the configuration file FILE
13935 --header=FILE[:TEMPLATE]
13936 instantiate the configuration header FILE
13938 Configuration files:
13939 $config_files
13941 Configuration headers:
13942 $config_headers
13944 Configuration commands:
13945 $config_commands
13947 Report bugs to the package provider."
13949 _ACEOF
13950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13951 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13952 ac_cs_version="\\
13953 GCC Quad-precision Math Library config.status 0.1
13954 configured by $0, generated by GNU Autoconf 2.69,
13955 with options \\"\$ac_cs_config\\"
13957 Copyright (C) 2012 Free Software Foundation, Inc.
13958 This config.status script is free software; the Free Software Foundation
13959 gives unlimited permission to copy, distribute and modify it."
13961 ac_pwd='$ac_pwd'
13962 srcdir='$srcdir'
13963 INSTALL='$INSTALL'
13964 MKDIR_P='$MKDIR_P'
13965 AWK='$AWK'
13966 test -n "\$AWK" || AWK=awk
13967 _ACEOF
13969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13970 # The default lists apply if the user does not specify any file.
13971 ac_need_defaults=:
13972 while test $# != 0
13974 case $1 in
13975 --*=?*)
13976 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13977 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13978 ac_shift=:
13980 --*=)
13981 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13982 ac_optarg=
13983 ac_shift=:
13986 ac_option=$1
13987 ac_optarg=$2
13988 ac_shift=shift
13990 esac
13992 case $ac_option in
13993 # Handling of the options.
13994 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13995 ac_cs_recheck=: ;;
13996 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13997 $as_echo "$ac_cs_version"; exit ;;
13998 --config | --confi | --conf | --con | --co | --c )
13999 $as_echo "$ac_cs_config"; exit ;;
14000 --debug | --debu | --deb | --de | --d | -d )
14001 debug=: ;;
14002 --file | --fil | --fi | --f )
14003 $ac_shift
14004 case $ac_optarg in
14005 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14006 '') as_fn_error $? "missing file argument" ;;
14007 esac
14008 as_fn_append CONFIG_FILES " '$ac_optarg'"
14009 ac_need_defaults=false;;
14010 --header | --heade | --head | --hea )
14011 $ac_shift
14012 case $ac_optarg in
14013 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14014 esac
14015 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14016 ac_need_defaults=false;;
14017 --he | --h)
14018 # Conflict between --help and --header
14019 as_fn_error $? "ambiguous option: \`$1'
14020 Try \`$0 --help' for more information.";;
14021 --help | --hel | -h )
14022 $as_echo "$ac_cs_usage"; exit ;;
14023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14024 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14025 ac_cs_silent=: ;;
14027 # This is an error.
14028 -*) as_fn_error $? "unrecognized option: \`$1'
14029 Try \`$0 --help' for more information." ;;
14031 *) as_fn_append ac_config_targets " $1"
14032 ac_need_defaults=false ;;
14034 esac
14035 shift
14036 done
14038 ac_configure_extra_args=
14040 if $ac_cs_silent; then
14041 exec 6>/dev/null
14042 ac_configure_extra_args="$ac_configure_extra_args --silent"
14045 _ACEOF
14046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14047 if \$ac_cs_recheck; then
14048 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14049 shift
14050 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14051 CONFIG_SHELL='$SHELL'
14052 export CONFIG_SHELL
14053 exec "\$@"
14056 _ACEOF
14057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14058 exec 5>>config.log
14060 echo
14061 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14062 ## Running $as_me. ##
14063 _ASBOX
14064 $as_echo "$ac_log"
14065 } >&5
14067 _ACEOF
14068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14070 # INIT-COMMANDS
14073 srcdir="$srcdir"
14074 host="$host"
14075 target="$target"
14076 with_multisubdir="$with_multisubdir"
14077 with_multisrctop="$with_multisrctop"
14078 with_target_subdir="$with_target_subdir"
14079 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14080 multi_basedir="$multi_basedir"
14081 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14082 CC="$CC"
14083 CXX="$CXX"
14084 GFORTRAN="$GFORTRAN"
14085 GDC="$GDC"
14086 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14089 # The HP-UX ksh and POSIX shell print the target directory to stdout
14090 # if CDPATH is set.
14091 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14093 sed_quote_subst='$sed_quote_subst'
14094 double_quote_subst='$double_quote_subst'
14095 delay_variable_subst='$delay_variable_subst'
14096 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14097 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14098 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14099 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14100 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14101 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14102 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14103 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14104 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14105 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14106 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14107 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14108 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14109 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14110 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14111 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14112 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14113 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14114 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14115 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14116 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14117 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14118 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14119 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14120 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14121 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14122 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14123 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14124 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14125 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14126 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14127 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14128 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14129 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14130 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14131 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14132 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14133 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14134 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14135 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14136 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14137 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14138 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14139 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14140 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14141 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14142 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14143 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14144 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"`'
14145 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14146 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14147 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14148 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14149 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14150 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14151 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14152 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14153 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14154 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14155 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14156 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14157 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14158 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14159 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14160 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14161 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14162 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14163 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14164 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14165 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14166 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14167 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14168 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14169 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14170 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14171 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14172 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14173 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14174 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14175 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14176 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14177 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14178 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14179 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14180 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14181 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14182 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14183 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14184 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14185 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14186 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14187 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14188 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14189 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14190 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14191 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14192 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14193 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14194 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14195 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14196 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14197 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14198 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14199 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14200 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14201 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14202 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14203 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14204 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14205 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14206 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14207 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14208 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14209 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14210 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14211 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14212 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14213 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14214 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14215 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14217 LTCC='$LTCC'
14218 LTCFLAGS='$LTCFLAGS'
14219 compiler='$compiler_DEFAULT'
14221 # A function that is used when there is no print builtin or printf.
14222 func_fallback_echo ()
14224 eval 'cat <<_LTECHO_EOF
14226 _LTECHO_EOF'
14229 # Quote evaled strings.
14230 for var in SHELL \
14231 ECHO \
14232 SED \
14233 GREP \
14234 EGREP \
14235 FGREP \
14236 LD \
14237 NM \
14238 LN_S \
14239 lt_SP2NL \
14240 lt_NL2SP \
14241 reload_flag \
14242 OBJDUMP \
14243 deplibs_check_method \
14244 file_magic_cmd \
14245 AR \
14246 AR_FLAGS \
14247 STRIP \
14248 RANLIB \
14249 CC \
14250 CFLAGS \
14251 compiler \
14252 lt_cv_sys_global_symbol_pipe \
14253 lt_cv_sys_global_symbol_to_cdecl \
14254 lt_cv_sys_global_symbol_to_c_name_address \
14255 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14256 lt_prog_compiler_no_builtin_flag \
14257 lt_prog_compiler_wl \
14258 lt_prog_compiler_pic \
14259 lt_prog_compiler_static \
14260 lt_cv_prog_compiler_c_o \
14261 need_locks \
14262 DSYMUTIL \
14263 NMEDIT \
14264 LIPO \
14265 OTOOL \
14266 OTOOL64 \
14267 shrext_cmds \
14268 export_dynamic_flag_spec \
14269 whole_archive_flag_spec \
14270 compiler_needs_object \
14271 with_gnu_ld \
14272 allow_undefined_flag \
14273 no_undefined_flag \
14274 hardcode_libdir_flag_spec \
14275 hardcode_libdir_flag_spec_ld \
14276 hardcode_libdir_separator \
14277 fix_srcfile_path \
14278 exclude_expsyms \
14279 include_expsyms \
14280 file_list_spec \
14281 variables_saved_for_relink \
14282 libname_spec \
14283 library_names_spec \
14284 soname_spec \
14285 install_override_mode \
14286 finish_eval \
14287 old_striplib \
14288 striplib; do
14289 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14290 *[\\\\\\\`\\"\\\$]*)
14291 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14294 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14296 esac
14297 done
14299 # Double-quote double-evaled strings.
14300 for var in reload_cmds \
14301 old_postinstall_cmds \
14302 old_postuninstall_cmds \
14303 old_archive_cmds \
14304 extract_expsyms_cmds \
14305 old_archive_from_new_cmds \
14306 old_archive_from_expsyms_cmds \
14307 archive_cmds \
14308 archive_expsym_cmds \
14309 module_cmds \
14310 module_expsym_cmds \
14311 export_symbols_cmds \
14312 prelink_cmds \
14313 postinstall_cmds \
14314 postuninstall_cmds \
14315 finish_cmds \
14316 sys_lib_search_path_spec \
14317 sys_lib_dlsearch_path_spec; do
14318 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14319 *[\\\\\\\`\\"\\\$]*)
14320 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14323 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14325 esac
14326 done
14328 ac_aux_dir='$ac_aux_dir'
14329 xsi_shell='$xsi_shell'
14330 lt_shell_append='$lt_shell_append'
14332 # See if we are running on zsh, and set the options which allow our
14333 # commands through without removal of \ escapes INIT.
14334 if test -n "\${ZSH_VERSION+set}" ; then
14335 setopt NO_GLOB_SUBST
14339 PACKAGE='$PACKAGE'
14340 VERSION='$VERSION'
14341 TIMESTAMP='$TIMESTAMP'
14342 RM='$RM'
14343 ofile='$ofile'
14348 _ACEOF
14350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14352 # Handling of arguments.
14353 for ac_config_target in $ac_config_targets
14355 case $ac_config_target in
14356 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14357 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14358 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14359 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14360 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14362 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14363 esac
14364 done
14367 # If the user did not use the arguments to specify the items to instantiate,
14368 # then the envvar interface is used. Set only those that are not.
14369 # We use the long form for the default assignment because of an extremely
14370 # bizarre bug on SunOS 4.1.3.
14371 if $ac_need_defaults; then
14372 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14373 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14374 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14377 # Have a temporary directory for convenience. Make it in the build tree
14378 # simply because there is no reason against having it here, and in addition,
14379 # creating and moving files from /tmp can sometimes cause problems.
14380 # Hook for its removal unless debugging.
14381 # Note that there is a small window in which the directory will not be cleaned:
14382 # after its creation but before its name has been assigned to `$tmp'.
14383 $debug ||
14385 tmp= ac_tmp=
14386 trap 'exit_status=$?
14387 : "${ac_tmp:=$tmp}"
14388 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14390 trap 'as_fn_exit 1' 1 2 13 15
14392 # Create a (secure) tmp directory for tmp files.
14395 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14396 test -d "$tmp"
14397 } ||
14399 tmp=./conf$$-$RANDOM
14400 (umask 077 && mkdir "$tmp")
14401 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14402 ac_tmp=$tmp
14404 # Set up the scripts for CONFIG_FILES section.
14405 # No need to generate them if there are no CONFIG_FILES.
14406 # This happens for instance with `./config.status config.h'.
14407 if test -n "$CONFIG_FILES"; then
14410 ac_cr=`echo X | tr X '\015'`
14411 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14412 # But we know of no other shell where ac_cr would be empty at this
14413 # point, so we can use a bashism as a fallback.
14414 if test "x$ac_cr" = x; then
14415 eval ac_cr=\$\'\\r\'
14417 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14418 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14419 ac_cs_awk_cr='\\r'
14420 else
14421 ac_cs_awk_cr=$ac_cr
14424 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14425 _ACEOF
14429 echo "cat >conf$$subs.awk <<_ACEOF" &&
14430 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14431 echo "_ACEOF"
14432 } >conf$$subs.sh ||
14433 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14434 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14435 ac_delim='%!_!# '
14436 for ac_last_try in false false false false false :; do
14437 . ./conf$$subs.sh ||
14438 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14440 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14441 if test $ac_delim_n = $ac_delim_num; then
14442 break
14443 elif $ac_last_try; then
14444 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14445 else
14446 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14448 done
14449 rm -f conf$$subs.sh
14451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14452 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14453 _ACEOF
14454 sed -n '
14456 s/^/S["/; s/!.*/"]=/
14459 s/^[^!]*!//
14460 :repl
14461 t repl
14462 s/'"$ac_delim"'$//
14463 t delim
14466 s/\(.\{148\}\)..*/\1/
14467 t more1
14468 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14471 b repl
14472 :more1
14473 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14476 s/.\{148\}//
14477 t nl
14478 :delim
14480 s/\(.\{148\}\)..*/\1/
14481 t more2
14482 s/["\\]/\\&/g; s/^/"/; s/$/"/
14485 :more2
14486 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14489 s/.\{148\}//
14490 t delim
14491 ' <conf$$subs.awk | sed '
14492 /^[^""]/{
14494 s/\n//
14496 ' >>$CONFIG_STATUS || ac_write_fail=1
14497 rm -f conf$$subs.awk
14498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14499 _ACAWK
14500 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14501 for (key in S) S_is_set[key] = 1
14502 FS = "\a"
14506 line = $ 0
14507 nfields = split(line, field, "@")
14508 substed = 0
14509 len = length(field[1])
14510 for (i = 2; i < nfields; i++) {
14511 key = field[i]
14512 keylen = length(key)
14513 if (S_is_set[key]) {
14514 value = S[key]
14515 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14516 len += length(value) + length(field[++i])
14517 substed = 1
14518 } else
14519 len += 1 + keylen
14522 print line
14525 _ACAWK
14526 _ACEOF
14527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14528 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14529 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14530 else
14532 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14533 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14534 _ACEOF
14536 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14537 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14538 # trailing colons and then remove the whole line if VPATH becomes empty
14539 # (actually we leave an empty line to preserve line numbers).
14540 if test "x$srcdir" = x.; then
14541 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14543 s///
14544 s/^/:/
14545 s/[ ]*$/:/
14546 s/:\$(srcdir):/:/g
14547 s/:\${srcdir}:/:/g
14548 s/:@srcdir@:/:/g
14549 s/^:*//
14550 s/:*$//
14552 s/\(=[ ]*\).*/\1/
14554 s/\n//
14555 s/^[^=]*=[ ]*$//
14559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14560 fi # test -n "$CONFIG_FILES"
14562 # Set up the scripts for CONFIG_HEADERS section.
14563 # No need to generate them if there are no CONFIG_HEADERS.
14564 # This happens for instance with `./config.status Makefile'.
14565 if test -n "$CONFIG_HEADERS"; then
14566 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14567 BEGIN {
14568 _ACEOF
14570 # Transform confdefs.h into an awk script `defines.awk', embedded as
14571 # here-document in config.status, that substitutes the proper values into
14572 # config.h.in to produce config.h.
14574 # Create a delimiter string that does not exist in confdefs.h, to ease
14575 # handling of long lines.
14576 ac_delim='%!_!# '
14577 for ac_last_try in false false :; do
14578 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14579 if test -z "$ac_tt"; then
14580 break
14581 elif $ac_last_try; then
14582 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14583 else
14584 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14586 done
14588 # For the awk script, D is an array of macro values keyed by name,
14589 # likewise P contains macro parameters if any. Preserve backslash
14590 # newline sequences.
14592 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14593 sed -n '
14594 s/.\{148\}/&'"$ac_delim"'/g
14595 t rset
14596 :rset
14597 s/^[ ]*#[ ]*define[ ][ ]*/ /
14598 t def
14600 :def
14601 s/\\$//
14602 t bsnl
14603 s/["\\]/\\&/g
14604 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14605 D["\1"]=" \3"/p
14606 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14608 :bsnl
14609 s/["\\]/\\&/g
14610 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14611 D["\1"]=" \3\\\\\\n"\\/p
14612 t cont
14613 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14614 t cont
14616 :cont
14618 s/.\{148\}/&'"$ac_delim"'/g
14619 t clear
14620 :clear
14621 s/\\$//
14622 t bsnlc
14623 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14625 :bsnlc
14626 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14627 b cont
14628 ' <confdefs.h | sed '
14629 s/'"$ac_delim"'/"\\\
14630 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14633 for (key in D) D_is_set[key] = 1
14634 FS = "\a"
14636 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14637 line = \$ 0
14638 split(line, arg, " ")
14639 if (arg[1] == "#") {
14640 defundef = arg[2]
14641 mac1 = arg[3]
14642 } else {
14643 defundef = substr(arg[1], 2)
14644 mac1 = arg[2]
14646 split(mac1, mac2, "(") #)
14647 macro = mac2[1]
14648 prefix = substr(line, 1, index(line, defundef) - 1)
14649 if (D_is_set[macro]) {
14650 # Preserve the white space surrounding the "#".
14651 print prefix "define", macro P[macro] D[macro]
14652 next
14653 } else {
14654 # Replace #undef with comments. This is necessary, for example,
14655 # in the case of _POSIX_SOURCE, which is predefined and required
14656 # on some systems where configure will not decide to define it.
14657 if (defundef == "undef") {
14658 print "/*", prefix defundef, macro, "*/"
14659 next
14663 { print }
14664 _ACAWK
14665 _ACEOF
14666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14667 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14668 fi # test -n "$CONFIG_HEADERS"
14671 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14672 shift
14673 for ac_tag
14675 case $ac_tag in
14676 :[FHLC]) ac_mode=$ac_tag; continue;;
14677 esac
14678 case $ac_mode$ac_tag in
14679 :[FHL]*:*);;
14680 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14681 :[FH]-) ac_tag=-:-;;
14682 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14683 esac
14684 ac_save_IFS=$IFS
14685 IFS=:
14686 set x $ac_tag
14687 IFS=$ac_save_IFS
14688 shift
14689 ac_file=$1
14690 shift
14692 case $ac_mode in
14693 :L) ac_source=$1;;
14694 :[FH])
14695 ac_file_inputs=
14696 for ac_f
14698 case $ac_f in
14699 -) ac_f="$ac_tmp/stdin";;
14700 *) # Look for the file first in the build tree, then in the source tree
14701 # (if the path is not absolute). The absolute path cannot be DOS-style,
14702 # because $ac_f cannot contain `:'.
14703 test -f "$ac_f" ||
14704 case $ac_f in
14705 [\\/$]*) false;;
14706 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14707 esac ||
14708 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14709 esac
14710 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14711 as_fn_append ac_file_inputs " '$ac_f'"
14712 done
14714 # Let's still pretend it is `configure' which instantiates (i.e., don't
14715 # use $as_me), people would be surprised to read:
14716 # /* config.h. Generated by config.status. */
14717 configure_input='Generated from '`
14718 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14719 `' by configure.'
14720 if test x"$ac_file" != x-; then
14721 configure_input="$ac_file. $configure_input"
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14723 $as_echo "$as_me: creating $ac_file" >&6;}
14725 # Neutralize special characters interpreted by sed in replacement strings.
14726 case $configure_input in #(
14727 *\&* | *\|* | *\\* )
14728 ac_sed_conf_input=`$as_echo "$configure_input" |
14729 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14730 *) ac_sed_conf_input=$configure_input;;
14731 esac
14733 case $ac_tag in
14734 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14736 esac
14738 esac
14740 ac_dir=`$as_dirname -- "$ac_file" ||
14741 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14742 X"$ac_file" : 'X\(//\)[^/]' \| \
14743 X"$ac_file" : 'X\(//\)$' \| \
14744 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14745 $as_echo X"$ac_file" |
14746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14747 s//\1/
14750 /^X\(\/\/\)[^/].*/{
14751 s//\1/
14754 /^X\(\/\/\)$/{
14755 s//\1/
14758 /^X\(\/\).*/{
14759 s//\1/
14762 s/.*/./; q'`
14763 as_dir="$ac_dir"; as_fn_mkdir_p
14764 ac_builddir=.
14766 case "$ac_dir" in
14767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14769 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14770 # A ".." for each directory in $ac_dir_suffix.
14771 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14772 case $ac_top_builddir_sub in
14773 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14774 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14775 esac ;;
14776 esac
14777 ac_abs_top_builddir=$ac_pwd
14778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14779 # for backward compatibility:
14780 ac_top_builddir=$ac_top_build_prefix
14782 case $srcdir in
14783 .) # We are building in place.
14784 ac_srcdir=.
14785 ac_top_srcdir=$ac_top_builddir_sub
14786 ac_abs_top_srcdir=$ac_pwd ;;
14787 [\\/]* | ?:[\\/]* ) # Absolute name.
14788 ac_srcdir=$srcdir$ac_dir_suffix;
14789 ac_top_srcdir=$srcdir
14790 ac_abs_top_srcdir=$srcdir ;;
14791 *) # Relative name.
14792 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14793 ac_top_srcdir=$ac_top_build_prefix$srcdir
14794 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14795 esac
14796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14799 case $ac_mode in
14802 # CONFIG_FILE
14805 case $INSTALL in
14806 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14807 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14808 esac
14809 ac_MKDIR_P=$MKDIR_P
14810 case $MKDIR_P in
14811 [\\/$]* | ?:[\\/]* ) ;;
14812 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14813 esac
14814 _ACEOF
14816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14817 # If the template does not know about datarootdir, expand it.
14818 # FIXME: This hack should be removed a few years after 2.60.
14819 ac_datarootdir_hack=; ac_datarootdir_seen=
14820 ac_sed_dataroot='
14821 /datarootdir/ {
14825 /@datadir@/p
14826 /@docdir@/p
14827 /@infodir@/p
14828 /@localedir@/p
14829 /@mandir@/p'
14830 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14831 *datarootdir*) ac_datarootdir_seen=yes;;
14832 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14834 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14835 _ACEOF
14836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14837 ac_datarootdir_hack='
14838 s&@datadir@&$datadir&g
14839 s&@docdir@&$docdir&g
14840 s&@infodir@&$infodir&g
14841 s&@localedir@&$localedir&g
14842 s&@mandir@&$mandir&g
14843 s&\\\${datarootdir}&$datarootdir&g' ;;
14844 esac
14845 _ACEOF
14847 # Neutralize VPATH when `$srcdir' = `.'.
14848 # Shell code in configure.ac might set extrasub.
14849 # FIXME: do we really want to maintain this feature?
14850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14851 ac_sed_extra="$ac_vpsub
14852 $extrasub
14853 _ACEOF
14854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14857 s|@configure_input@|$ac_sed_conf_input|;t t
14858 s&@top_builddir@&$ac_top_builddir_sub&;t t
14859 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14860 s&@srcdir@&$ac_srcdir&;t t
14861 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14862 s&@top_srcdir@&$ac_top_srcdir&;t t
14863 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14864 s&@builddir@&$ac_builddir&;t t
14865 s&@abs_builddir@&$ac_abs_builddir&;t t
14866 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14867 s&@INSTALL@&$ac_INSTALL&;t t
14868 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14869 $ac_datarootdir_hack
14871 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14872 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14874 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14875 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14876 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14877 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14879 which seems to be undefined. Please make sure it is defined" >&5
14880 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14881 which seems to be undefined. Please make sure it is defined" >&2;}
14883 rm -f "$ac_tmp/stdin"
14884 case $ac_file in
14885 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14886 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14887 esac \
14888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14892 # CONFIG_HEADER
14894 if test x"$ac_file" != x-; then
14896 $as_echo "/* $configure_input */" \
14897 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14898 } >"$ac_tmp/config.h" \
14899 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14900 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14902 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14903 else
14904 rm -f "$ac_file"
14905 mv "$ac_tmp/config.h" "$ac_file" \
14906 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14908 else
14909 $as_echo "/* $configure_input */" \
14910 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14911 || as_fn_error $? "could not create -" "$LINENO" 5
14913 # Compute "$ac_file"'s index in $config_headers.
14914 _am_arg="$ac_file"
14915 _am_stamp_count=1
14916 for _am_header in $config_headers :; do
14917 case $_am_header in
14918 $_am_arg | $_am_arg:* )
14919 break ;;
14921 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14922 esac
14923 done
14924 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14925 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14926 X"$_am_arg" : 'X\(//\)[^/]' \| \
14927 X"$_am_arg" : 'X\(//\)$' \| \
14928 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14929 $as_echo X"$_am_arg" |
14930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14931 s//\1/
14934 /^X\(\/\/\)[^/].*/{
14935 s//\1/
14938 /^X\(\/\/\)$/{
14939 s//\1/
14942 /^X\(\/\).*/{
14943 s//\1/
14946 s/.*/./; q'`/stamp-h$_am_stamp_count
14949 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14950 $as_echo "$as_me: executing $ac_file commands" >&6;}
14952 esac
14955 case $ac_file$ac_mode in
14956 "default-1":C)
14957 # Only add multilib support code if we just rebuilt the top-level
14958 # Makefile.
14959 case " $CONFIG_FILES " in
14960 *" Makefile "*)
14961 ac_file=Makefile . ${multi_basedir}/config-ml.in
14963 esac ;;
14964 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14965 # Older Autoconf quotes --file arguments for eval, but not when files
14966 # are listed without --file. Let's play safe and only enable the eval
14967 # if we detect the quoting.
14968 case $CONFIG_FILES in
14969 *\'*) eval set x "$CONFIG_FILES" ;;
14970 *) set x $CONFIG_FILES ;;
14971 esac
14972 shift
14973 for mf
14975 # Strip MF so we end up with the name of the file.
14976 mf=`echo "$mf" | sed -e 's/:.*$//'`
14977 # Check whether this is an Automake generated Makefile or not.
14978 # We used to match only the files named 'Makefile.in', but
14979 # some people rename them; so instead we look at the file content.
14980 # Grep'ing the first line is not enough: some people post-process
14981 # each Makefile.in and add a new line on top of each file to say so.
14982 # Grep'ing the whole file is not good either: AIX grep has a line
14983 # limit of 2048, but all sed's we know have understand at least 4000.
14984 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14985 dirpart=`$as_dirname -- "$mf" ||
14986 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14987 X"$mf" : 'X\(//\)[^/]' \| \
14988 X"$mf" : 'X\(//\)$' \| \
14989 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14990 $as_echo X"$mf" |
14991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14992 s//\1/
14995 /^X\(\/\/\)[^/].*/{
14996 s//\1/
14999 /^X\(\/\/\)$/{
15000 s//\1/
15003 /^X\(\/\).*/{
15004 s//\1/
15007 s/.*/./; q'`
15008 else
15009 continue
15011 # Extract the definition of DEPDIR, am__include, and am__quote
15012 # from the Makefile without running 'make'.
15013 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15014 test -z "$DEPDIR" && continue
15015 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15016 test -z "$am__include" && continue
15017 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15018 # Find all dependency output files, they are included files with
15019 # $(DEPDIR) in their names. We invoke sed twice because it is the
15020 # simplest approach to changing $(DEPDIR) to its actual value in the
15021 # expansion.
15022 for file in `sed -n "
15023 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15024 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15025 # Make sure the directory exists.
15026 test -f "$dirpart/$file" && continue
15027 fdir=`$as_dirname -- "$file" ||
15028 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15029 X"$file" : 'X\(//\)[^/]' \| \
15030 X"$file" : 'X\(//\)$' \| \
15031 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15032 $as_echo X"$file" |
15033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15034 s//\1/
15037 /^X\(\/\/\)[^/].*/{
15038 s//\1/
15041 /^X\(\/\/\)$/{
15042 s//\1/
15045 /^X\(\/\).*/{
15046 s//\1/
15049 s/.*/./; q'`
15050 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15051 # echo "creating $dirpart/$file"
15052 echo '# dummy' > "$dirpart/$file"
15053 done
15054 done
15057 "libtool":C)
15059 # See if we are running on zsh, and set the options which allow our
15060 # commands through without removal of \ escapes.
15061 if test -n "${ZSH_VERSION+set}" ; then
15062 setopt NO_GLOB_SUBST
15065 cfgfile="${ofile}T"
15066 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15067 $RM "$cfgfile"
15069 cat <<_LT_EOF >> "$cfgfile"
15070 #! $SHELL
15072 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15073 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15074 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15075 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15077 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15078 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15079 # Written by Gordon Matzigkeit, 1996
15081 # This file is part of GNU Libtool.
15083 # GNU Libtool is free software; you can redistribute it and/or
15084 # modify it under the terms of the GNU General Public License as
15085 # published by the Free Software Foundation; either version 2 of
15086 # the License, or (at your option) any later version.
15088 # As a special exception to the GNU General Public License,
15089 # if you distribute this file as part of a program or library that
15090 # is built using GNU Libtool, you may include this file under the
15091 # same distribution terms that you use for the rest of that program.
15093 # GNU Libtool is distributed in the hope that it will be useful,
15094 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15095 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15096 # GNU General Public License for more details.
15098 # You should have received a copy of the GNU General Public License
15099 # along with GNU Libtool; see the file COPYING. If not, a copy
15100 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15101 # obtained by writing to the Free Software Foundation, Inc.,
15102 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15105 # The names of the tagged configurations supported by this script.
15106 available_tags=""
15108 # ### BEGIN LIBTOOL CONFIG
15110 # Which release of libtool.m4 was used?
15111 macro_version=$macro_version
15112 macro_revision=$macro_revision
15114 # Whether or not to build shared libraries.
15115 build_libtool_libs=$enable_shared
15117 # Whether or not to build static libraries.
15118 build_old_libs=$enable_static
15120 # What type of objects to build.
15121 pic_mode=$pic_mode
15123 # Whether or not to optimize for fast installation.
15124 fast_install=$enable_fast_install
15126 # Shell to use when invoking shell scripts.
15127 SHELL=$lt_SHELL
15129 # An echo program that protects backslashes.
15130 ECHO=$lt_ECHO
15132 # The host system.
15133 host_alias=$host_alias
15134 host=$host
15135 host_os=$host_os
15137 # The build system.
15138 build_alias=$build_alias
15139 build=$build
15140 build_os=$build_os
15142 # A sed program that does not truncate output.
15143 SED=$lt_SED
15145 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15146 Xsed="\$SED -e 1s/^X//"
15148 # A grep program that handles long lines.
15149 GREP=$lt_GREP
15151 # An ERE matcher.
15152 EGREP=$lt_EGREP
15154 # A literal string matcher.
15155 FGREP=$lt_FGREP
15157 # A BSD- or MS-compatible name lister.
15158 NM=$lt_NM
15160 # Whether we need soft or hard links.
15161 LN_S=$lt_LN_S
15163 # What is the maximum length of a command?
15164 max_cmd_len=$max_cmd_len
15166 # Object file suffix (normally "o").
15167 objext=$ac_objext
15169 # Executable file suffix (normally "").
15170 exeext=$exeext
15172 # whether the shell understands "unset".
15173 lt_unset=$lt_unset
15175 # turn spaces into newlines.
15176 SP2NL=$lt_lt_SP2NL
15178 # turn newlines into spaces.
15179 NL2SP=$lt_lt_NL2SP
15181 # An object symbol dumper.
15182 OBJDUMP=$lt_OBJDUMP
15184 # Method to check whether dependent libraries are shared objects.
15185 deplibs_check_method=$lt_deplibs_check_method
15187 # Command to use when deplibs_check_method == "file_magic".
15188 file_magic_cmd=$lt_file_magic_cmd
15190 # The archiver.
15191 AR=$lt_AR
15192 AR_FLAGS=$lt_AR_FLAGS
15194 # A symbol stripping program.
15195 STRIP=$lt_STRIP
15197 # Commands used to install an old-style archive.
15198 RANLIB=$lt_RANLIB
15199 old_postinstall_cmds=$lt_old_postinstall_cmds
15200 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15202 # Whether to use a lock for old archive extraction.
15203 lock_old_archive_extraction=$lock_old_archive_extraction
15205 # A C compiler.
15206 LTCC=$lt_CC
15208 # LTCC compiler flags.
15209 LTCFLAGS=$lt_CFLAGS
15211 # Take the output of nm and produce a listing of raw symbols and C names.
15212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15214 # Transform the output of nm in a proper C declaration.
15215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15217 # Transform the output of nm in a C name address pair.
15218 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15220 # Transform the output of nm in a C name address pair when lib prefix is needed.
15221 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15223 # The name of the directory that contains temporary libtool files.
15224 objdir=$objdir
15226 # Used to examine libraries when file_magic_cmd begins with "file".
15227 MAGIC_CMD=$MAGIC_CMD
15229 # Must we lock files when doing compilation?
15230 need_locks=$lt_need_locks
15232 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15233 DSYMUTIL=$lt_DSYMUTIL
15235 # Tool to change global to local symbols on Mac OS X.
15236 NMEDIT=$lt_NMEDIT
15238 # Tool to manipulate fat objects and archives on Mac OS X.
15239 LIPO=$lt_LIPO
15241 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15242 OTOOL=$lt_OTOOL
15244 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15245 OTOOL64=$lt_OTOOL64
15247 # Old archive suffix (normally "a").
15248 libext=$libext
15250 # Shared library suffix (normally ".so").
15251 shrext_cmds=$lt_shrext_cmds
15253 # The commands to extract the exported symbol list from a shared archive.
15254 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15256 # Variables whose values should be saved in libtool wrapper scripts and
15257 # restored at link time.
15258 variables_saved_for_relink=$lt_variables_saved_for_relink
15260 # Do we need the "lib" prefix for modules?
15261 need_lib_prefix=$need_lib_prefix
15263 # Do we need a version for libraries?
15264 need_version=$need_version
15266 # Library versioning type.
15267 version_type=$version_type
15269 # Shared library runtime path variable.
15270 runpath_var=$runpath_var
15272 # Shared library path variable.
15273 shlibpath_var=$shlibpath_var
15275 # Is shlibpath searched before the hard-coded library search path?
15276 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15278 # Format of library name prefix.
15279 libname_spec=$lt_libname_spec
15281 # List of archive names. First name is the real one, the rest are links.
15282 # The last name is the one that the linker finds with -lNAME
15283 library_names_spec=$lt_library_names_spec
15285 # The coded name of the library, if different from the real name.
15286 soname_spec=$lt_soname_spec
15288 # Permission mode override for installation of shared libraries.
15289 install_override_mode=$lt_install_override_mode
15291 # Command to use after installation of a shared archive.
15292 postinstall_cmds=$lt_postinstall_cmds
15294 # Command to use after uninstallation of a shared archive.
15295 postuninstall_cmds=$lt_postuninstall_cmds
15297 # Commands used to finish a libtool library installation in a directory.
15298 finish_cmds=$lt_finish_cmds
15300 # As "finish_cmds", except a single script fragment to be evaled but
15301 # not shown.
15302 finish_eval=$lt_finish_eval
15304 # Whether we should hardcode library paths into libraries.
15305 hardcode_into_libs=$hardcode_into_libs
15307 # Compile-time system search path for libraries.
15308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15310 # Run-time system search path for libraries.
15311 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15313 # Whether dlopen is supported.
15314 dlopen_support=$enable_dlopen
15316 # Whether dlopen of programs is supported.
15317 dlopen_self=$enable_dlopen_self
15319 # Whether dlopen of statically linked programs is supported.
15320 dlopen_self_static=$enable_dlopen_self_static
15322 # Commands to strip libraries.
15323 old_striplib=$lt_old_striplib
15324 striplib=$lt_striplib
15327 # The linker used to build libraries.
15328 LD=$lt_LD
15330 # How to create reloadable object files.
15331 reload_flag=$lt_reload_flag
15332 reload_cmds=$lt_reload_cmds
15334 # Commands used to build an old-style archive.
15335 old_archive_cmds=$lt_old_archive_cmds
15337 # A language specific compiler.
15338 CC=$lt_compiler
15340 # Is the compiler the GNU compiler?
15341 with_gcc=$GCC
15343 # Compiler flag to turn off builtin functions.
15344 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15346 # How to pass a linker flag through the compiler.
15347 wl=$lt_lt_prog_compiler_wl
15349 # Additional compiler flags for building library objects.
15350 pic_flag=$lt_lt_prog_compiler_pic
15352 # Compiler flag to prevent dynamic linking.
15353 link_static_flag=$lt_lt_prog_compiler_static
15355 # Does compiler simultaneously support -c and -o options?
15356 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15358 # Whether or not to add -lc for building shared libraries.
15359 build_libtool_need_lc=$archive_cmds_need_lc
15361 # Whether or not to disallow shared libs when runtime libs are static.
15362 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15364 # Compiler flag to allow reflexive dlopens.
15365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15367 # Compiler flag to generate shared objects directly from archives.
15368 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15370 # Whether the compiler copes with passing no objects directly.
15371 compiler_needs_object=$lt_compiler_needs_object
15373 # Create an old-style archive from a shared archive.
15374 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15376 # Create a temporary old-style archive to link instead of a shared archive.
15377 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15379 # Commands used to build a shared archive.
15380 archive_cmds=$lt_archive_cmds
15381 archive_expsym_cmds=$lt_archive_expsym_cmds
15383 # Commands used to build a loadable module if different from building
15384 # a shared archive.
15385 module_cmds=$lt_module_cmds
15386 module_expsym_cmds=$lt_module_expsym_cmds
15388 # Whether we are building with GNU ld or not.
15389 with_gnu_ld=$lt_with_gnu_ld
15391 # Flag that allows shared libraries with undefined symbols to be built.
15392 allow_undefined_flag=$lt_allow_undefined_flag
15394 # Flag that enforces no undefined symbols.
15395 no_undefined_flag=$lt_no_undefined_flag
15397 # Flag to hardcode \$libdir into a binary during linking.
15398 # This must work even if \$libdir does not exist
15399 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15401 # If ld is used when linking, flag to hardcode \$libdir into a binary
15402 # during linking. This must work even if \$libdir does not exist.
15403 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15405 # Whether we need a single "-rpath" flag with a separated argument.
15406 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15408 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15409 # DIR into the resulting binary.
15410 hardcode_direct=$hardcode_direct
15412 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15413 # DIR into the resulting binary and the resulting library dependency is
15414 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15415 # library is relocated.
15416 hardcode_direct_absolute=$hardcode_direct_absolute
15418 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15419 # into the resulting binary.
15420 hardcode_minus_L=$hardcode_minus_L
15422 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15423 # into the resulting binary.
15424 hardcode_shlibpath_var=$hardcode_shlibpath_var
15426 # Set to "yes" if building a shared library automatically hardcodes DIR
15427 # into the library and all subsequent libraries and executables linked
15428 # against it.
15429 hardcode_automatic=$hardcode_automatic
15431 # Set to yes if linker adds runtime paths of dependent libraries
15432 # to runtime path list.
15433 inherit_rpath=$inherit_rpath
15435 # Whether libtool must link a program against all its dependency libraries.
15436 link_all_deplibs=$link_all_deplibs
15438 # Fix the shell variable \$srcfile for the compiler.
15439 fix_srcfile_path=$lt_fix_srcfile_path
15441 # Set to "yes" if exported symbols are required.
15442 always_export_symbols=$always_export_symbols
15444 # The commands to list exported symbols.
15445 export_symbols_cmds=$lt_export_symbols_cmds
15447 # Symbols that should not be listed in the preloaded symbols.
15448 exclude_expsyms=$lt_exclude_expsyms
15450 # Symbols that must always be exported.
15451 include_expsyms=$lt_include_expsyms
15453 # Commands necessary for linking programs (against libraries) with templates.
15454 prelink_cmds=$lt_prelink_cmds
15456 # Specify filename containing input files.
15457 file_list_spec=$lt_file_list_spec
15459 # How to hardcode a shared library path into an executable.
15460 hardcode_action=$hardcode_action
15462 # ### END LIBTOOL CONFIG
15464 _LT_EOF
15466 case $host_os in
15467 aix3*)
15468 cat <<\_LT_EOF >> "$cfgfile"
15469 # AIX sometimes has problems with the GCC collect2 program. For some
15470 # reason, if we set the COLLECT_NAMES environment variable, the problems
15471 # vanish in a puff of smoke.
15472 if test "X${COLLECT_NAMES+set}" != Xset; then
15473 COLLECT_NAMES=
15474 export COLLECT_NAMES
15476 _LT_EOF
15478 esac
15481 ltmain="$ac_aux_dir/ltmain.sh"
15484 # We use sed instead of cat because bash on DJGPP gets confused if
15485 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15486 # text mode, it properly converts lines to CR/LF. This bash problem
15487 # is reportedly fixed, but why not run on old versions too?
15488 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15489 || (rm -f "$cfgfile"; exit 1)
15491 case $xsi_shell in
15492 yes)
15493 cat << \_LT_EOF >> "$cfgfile"
15495 # func_dirname file append nondir_replacement
15496 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15497 # otherwise set result to NONDIR_REPLACEMENT.
15498 func_dirname ()
15500 case ${1} in
15501 */*) func_dirname_result="${1%/*}${2}" ;;
15502 * ) func_dirname_result="${3}" ;;
15503 esac
15506 # func_basename file
15507 func_basename ()
15509 func_basename_result="${1##*/}"
15512 # func_dirname_and_basename file append nondir_replacement
15513 # perform func_basename and func_dirname in a single function
15514 # call:
15515 # dirname: Compute the dirname of FILE. If nonempty,
15516 # add APPEND to the result, otherwise set result
15517 # to NONDIR_REPLACEMENT.
15518 # value returned in "$func_dirname_result"
15519 # basename: Compute filename of FILE.
15520 # value retuned in "$func_basename_result"
15521 # Implementation must be kept synchronized with func_dirname
15522 # and func_basename. For efficiency, we do not delegate to
15523 # those functions but instead duplicate the functionality here.
15524 func_dirname_and_basename ()
15526 case ${1} in
15527 */*) func_dirname_result="${1%/*}${2}" ;;
15528 * ) func_dirname_result="${3}" ;;
15529 esac
15530 func_basename_result="${1##*/}"
15533 # func_stripname prefix suffix name
15534 # strip PREFIX and SUFFIX off of NAME.
15535 # PREFIX and SUFFIX must not contain globbing or regex special
15536 # characters, hashes, percent signs, but SUFFIX may contain a leading
15537 # dot (in which case that matches only a dot).
15538 func_stripname ()
15540 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15541 # positional parameters, so assign one to ordinary parameter first.
15542 func_stripname_result=${3}
15543 func_stripname_result=${func_stripname_result#"${1}"}
15544 func_stripname_result=${func_stripname_result%"${2}"}
15547 # func_opt_split
15548 func_opt_split ()
15550 func_opt_split_opt=${1%%=*}
15551 func_opt_split_arg=${1#*=}
15554 # func_lo2o object
15555 func_lo2o ()
15557 case ${1} in
15558 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15559 *) func_lo2o_result=${1} ;;
15560 esac
15563 # func_xform libobj-or-source
15564 func_xform ()
15566 func_xform_result=${1%.*}.lo
15569 # func_arith arithmetic-term...
15570 func_arith ()
15572 func_arith_result=$(( $* ))
15575 # func_len string
15576 # STRING may not start with a hyphen.
15577 func_len ()
15579 func_len_result=${#1}
15582 _LT_EOF
15584 *) # Bourne compatible functions.
15585 cat << \_LT_EOF >> "$cfgfile"
15587 # func_dirname file append nondir_replacement
15588 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15589 # otherwise set result to NONDIR_REPLACEMENT.
15590 func_dirname ()
15592 # Extract subdirectory from the argument.
15593 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15594 if test "X$func_dirname_result" = "X${1}"; then
15595 func_dirname_result="${3}"
15596 else
15597 func_dirname_result="$func_dirname_result${2}"
15601 # func_basename file
15602 func_basename ()
15604 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15608 # func_stripname prefix suffix name
15609 # strip PREFIX and SUFFIX off of NAME.
15610 # PREFIX and SUFFIX must not contain globbing or regex special
15611 # characters, hashes, percent signs, but SUFFIX may contain a leading
15612 # dot (in which case that matches only a dot).
15613 # func_strip_suffix prefix name
15614 func_stripname ()
15616 case ${2} in
15617 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15618 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15619 esac
15622 # sed scripts:
15623 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15624 my_sed_long_arg='1s/^-[^=]*=//'
15626 # func_opt_split
15627 func_opt_split ()
15629 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15630 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15633 # func_lo2o object
15634 func_lo2o ()
15636 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15639 # func_xform libobj-or-source
15640 func_xform ()
15642 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15645 # func_arith arithmetic-term...
15646 func_arith ()
15648 func_arith_result=`expr "$@"`
15651 # func_len string
15652 # STRING may not start with a hyphen.
15653 func_len ()
15655 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15658 _LT_EOF
15659 esac
15661 case $lt_shell_append in
15662 yes)
15663 cat << \_LT_EOF >> "$cfgfile"
15665 # func_append var value
15666 # Append VALUE to the end of shell variable VAR.
15667 func_append ()
15669 eval "$1+=\$2"
15671 _LT_EOF
15674 cat << \_LT_EOF >> "$cfgfile"
15676 # func_append var value
15677 # Append VALUE to the end of shell variable VAR.
15678 func_append ()
15680 eval "$1=\$$1\$2"
15683 _LT_EOF
15685 esac
15688 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15689 || (rm -f "$cfgfile"; exit 1)
15691 mv -f "$cfgfile" "$ofile" ||
15692 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15693 chmod +x "$ofile"
15697 esac
15698 done # for ac_tag
15701 as_fn_exit 0
15702 _ACEOF
15703 ac_clean_files=$ac_clean_files_save
15705 test $ac_write_fail = 0 ||
15706 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15709 # configure is writing to config.log, and then calls config.status.
15710 # config.status does its own redirection, appending to config.log.
15711 # Unfortunately, on DOS this fails, as config.log is still kept open
15712 # by configure, so config.status won't be able to write to it; its
15713 # output is simply discarded. So we exec the FD to /dev/null,
15714 # effectively closing config.log, so it can be properly (re)opened and
15715 # appended to by config.status. When coming back to configure, we
15716 # need to make the FD available again.
15717 if test "$no_create" != yes; then
15718 ac_cs_success=:
15719 ac_config_status_args=
15720 test "$silent" = yes &&
15721 ac_config_status_args="$ac_config_status_args --quiet"
15722 exec 5>/dev/null
15723 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15724 exec 5>>config.log
15725 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15726 # would make configure fail if this is the last instruction.
15727 $ac_cs_success || as_fn_exit 1
15729 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15731 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}