Fortran: fix issues with class(*) assignment [PR114827]
[official-gcc.git] / libquadmath / configure
blob49d70809218c2a3146b28ebfd5f418336f3b25d6
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 LIBM
648 toolexeclibdir
649 toolexecdir
650 MAINT
651 MAINTAINER_MODE_FALSE
652 MAINTAINER_MODE_TRUE
653 ENABLE_DARWIN_AT_RPATH_FALSE
654 ENABLE_DARWIN_AT_RPATH_TRUE
655 enable_static
656 enable_shared
657 lt_host_flags
658 OTOOL64
659 OTOOL
660 LIPO
661 NMEDIT
662 DSYMUTIL
663 RANLIB
665 OBJDUMP
666 LN_S
668 ac_ct_DUMPBIN
669 DUMPBIN
671 FGREP
673 LIBTOOL
674 REPORT_BUGS_TEXI
675 REPORT_BUGS_TO
676 BUILD_INFO_FALSE
677 BUILD_INFO_TRUE
678 EGREP
679 GREP
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 multi_basedir
726 target_noncanonical
727 target_os
728 target_vendor
729 target_cpu
730 target
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_multilib
781 enable_silent_rules
782 enable_version_specific_runtime_libs
783 enable_dependency_tracking
784 with_bugurl
785 enable_shared
786 enable_static
787 with_pic
788 enable_fast_install
789 with_gnu_ld
790 enable_libtool_lock
791 enable_darwin_at_rpath
792 enable_maintainer_mode
793 with_toolexeclibdir
794 enable_symvers
795 enable_cet
796 enable_generated_files_in_srcdir
797 with_gcc_major_version_only
799 ac_precious_vars='build_alias
800 host_alias
801 target_alias
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
807 CPP'
810 # Initialize some variables set by options.
811 ac_init_help=
812 ac_init_version=false
813 ac_unrecognized_opts=
814 ac_unrecognized_sep=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
817 cache_file=/dev/null
818 exec_prefix=NONE
819 no_create=
820 no_recursion=
821 prefix=NONE
822 program_prefix=NONE
823 program_suffix=NONE
824 program_transform_name=s,x,x,
825 silent=
826 site=
827 srcdir=
828 verbose=
829 x_includes=NONE
830 x_libraries=NONE
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
858 ac_prev=
859 ac_dashdash=
860 for ac_option
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\$ac_option
865 ac_prev=
866 continue
869 case $ac_option in
870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *=) ac_optarg= ;;
872 *) ac_optarg=yes ;;
873 esac
875 # Accept the important Cygnus configure options, so we can diagnose typos.
877 case $ac_dashdash$ac_option in
879 ac_dashdash=yes ;;
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 bindir=$ac_optarg ;;
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
898 --config-cache | -C)
899 cache_file=config.cache ;;
901 -datadir | --datadir | --datadi | --datad)
902 ac_prev=datadir ;;
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=\$ac_optarg ;;
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1143 -with-* | --with-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1193 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information"
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203 esac
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1208 # FIXME: should be removed in autoconf 3.0.
1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 esac
1216 done
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error $? "missing argument to $ac_option"
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 esac
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
1245 case $ac_val in
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 esac
1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271 test "$silent" = yes && exec 6>/dev/null
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $? "pwd does not report name of working directory"
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1300 /^X\(\/\/\)$/{
1301 s//\1/
1304 /^X\(\/\).*/{
1305 s//\1/
1308 s/.*/./; q'`
1309 srcdir=$ac_confdir
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 srcdir=..
1313 else
1314 ac_srcdir_defaulted=no
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323 pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1342 # Report the --help message.
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
1348 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1355 Defaults for the options are specified in brackets.
1357 Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1379 For better control, use the options below.
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1403 cat <<\_ACEOF
1405 Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410 System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 --target=TARGET configure for building compilers for TARGET [HOST]
1414 _ACEOF
1417 if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1420 esac
1421 cat <<\_ACEOF
1423 Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-multilib build many library versions (default)
1428 --enable-silent-rules less verbose build output (undo: "make V=1")
1429 --disable-silent-rules verbose build output (undo: "make V=0")
1430 --enable-version-specific-runtime-libs
1431 specify that runtime libraries should be installed
1432 in a compiler-specific directory
1433 --enable-dependency-tracking
1434 do not reject slow dependency extractors
1435 --disable-dependency-tracking
1436 speeds up one-time build
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-static[=PKGS] build static libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --disable-libtool-lock avoid locking (might break parallel builds)
1442 --enable-darwin-at-rpath
1443 install libraries with @rpath/library-name, requires
1444 rpaths to be added to executables
1445 --enable-maintainer-mode
1446 enable make rules and dependencies not useful (and
1447 sometimes confusing) to the casual installer
1448 --disable-symvers disable symbol versioning for libquadmath
1449 --enable-cet enable Intel CET in target libraries [default=auto]
1450 --enable-generated-files-in-srcdir
1451 put copies of generated files in source dir intended
1452 for creating source tarballs for users without
1453 texinfo bison or flex
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-bugurl=URL Direct users to URL to report a bug
1459 --with-pic try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-toolexeclibdir=DIR
1463 install libraries built with a cross compiler within
1465 --with-gcc-major-version-only
1466 use only GCC major number in filesystem paths
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CPP C preprocessor
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to the package provider.
1482 _ACEOF
1483 ac_status=$?
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
1492 ac_builddir=.
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1510 case $srcdir in
1511 .) # We are building in place.
1512 ac_srcdir=.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543 cat <<\_ACEOF
1544 GCC Quad-precision Math Library configure 0.1
1545 generated by GNU Autoconf 2.69
1547 Copyright (C) 2012 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551 exit
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1589 ac_retval=1
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1594 } # ac_fn_c_try_compile
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_cpp ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } > conftest.i && {
1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 }; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1626 ac_retval=1
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1631 } # ac_fn_c_try_cpp
1633 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1636 # the include files in INCLUDES and setting the cache variable VAR
1637 # accordingly.
1638 ac_fn_c_check_header_mongrel ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if eval \${$3+:} false; then :
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1647 eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650 else
1651 # Is the header compilable?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1653 $as_echo_n "checking $2 usability... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 ac_header_compiler=yes
1661 else
1662 ac_header_compiler=no
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1666 $as_echo "$ac_header_compiler" >&6; }
1668 # Is the header present?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1670 $as_echo_n "checking $2 presence... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_cpp "$LINENO"; then :
1676 ac_header_preproc=yes
1677 else
1678 ac_header_preproc=no
1680 rm -f conftest.err conftest.i conftest.$ac_ext
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1682 $as_echo "$ac_header_preproc" >&6; }
1684 # So? What about this header?
1685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1686 yes:no: )
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1688 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 no:yes:* )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1694 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1696 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1698 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1700 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704 esac
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1709 else
1710 eval "$3=\$ac_header_compiler"
1712 eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 } # ac_fn_c_check_header_mongrel
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1724 ac_fn_c_try_run ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=$ac_status
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1760 } # ac_fn_c_try_run
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 } # ac_fn_c_check_header_compile
1793 # ac_fn_c_try_link LINENO
1794 # -----------------------
1795 # Try to link conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_link ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest$ac_exeext && {
1819 test "$cross_compiling" = yes ||
1820 test -x conftest$ac_exeext
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1837 } # ac_fn_c_try_link
1839 # ac_fn_c_check_func LINENO FUNC VAR
1840 # ----------------------------------
1841 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1842 ac_fn_c_check_func ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 if test x$gcc_no_link = xyes; then
1851 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1857 #define $2 innocuous_$2
1859 /* System header to define __stub macros and hopefully few prototypes,
1860 which can conflict with char $2 (); below.
1861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1862 <limits.h> exists even on freestanding compilers. */
1864 #ifdef __STDC__
1865 # include <limits.h>
1866 #else
1867 # include <assert.h>
1868 #endif
1870 #undef $2
1872 /* Override any GCC internal prototype to avoid an error.
1873 Use char because int might match the return type of a GCC
1874 builtin and then its argument prototype would still apply. */
1875 #ifdef __cplusplus
1876 extern "C"
1877 #endif
1878 char $2 ();
1879 /* The GNU C library defines this for functions which it implements
1880 to always fail with ENOSYS. Some functions are actually named
1881 something starting with __ and the normal name is an alias. */
1882 #if defined __stub_$2 || defined __stub___$2
1883 choke me
1884 #endif
1887 main ()
1889 return $2 ();
1891 return 0;
1893 _ACEOF
1894 if ac_fn_c_try_link "$LINENO"; then :
1895 eval "$3=yes"
1896 else
1897 eval "$3=no"
1899 rm -f core conftest.err conftest.$ac_objext \
1900 conftest$ac_exeext conftest.$ac_ext
1902 eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 } # ac_fn_c_check_func
1908 cat >config.log <<_ACEOF
1909 This file contains any messages produced by compilers while
1910 running configure, to aid debugging if configure makes a mistake.
1912 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1913 generated by GNU Autoconf 2.69. Invocation command line was
1915 $ $0 $@
1917 _ACEOF
1918 exec 5>>config.log
1920 cat <<_ASUNAME
1921 ## --------- ##
1922 ## Platform. ##
1923 ## --------- ##
1925 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1934 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1935 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1936 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1938 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1939 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1940 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1942 _ASUNAME
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 $as_echo "PATH: $as_dir"
1950 done
1951 IFS=$as_save_IFS
1953 } >&5
1955 cat >&5 <<_ACEOF
1958 ## ----------- ##
1959 ## Core tests. ##
1960 ## ----------- ##
1962 _ACEOF
1965 # Keep a trace of the command line.
1966 # Strip out --no-create and --no-recursion so they do not pile up.
1967 # Strip out --silent because we don't want to record it for future runs.
1968 # Also quote any args containing shell meta-characters.
1969 # Make two passes to allow for proper duplicate-argument suppression.
1970 ac_configure_args=
1971 ac_configure_args0=
1972 ac_configure_args1=
1973 ac_must_keep_next=false
1974 for ac_pass in 1 2
1976 for ac_arg
1978 case $ac_arg in
1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1981 | -silent | --silent | --silen | --sile | --sil)
1982 continue ;;
1983 *\'*)
1984 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 esac
1986 case $ac_pass in
1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989 as_fn_append ac_configure_args1 " '$ac_arg'"
1990 if test $ac_must_keep_next = true; then
1991 ac_must_keep_next=false # Got value, back to normal.
1992 else
1993 case $ac_arg in
1994 *=* | --config-cache | -C | -disable-* | --disable-* \
1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1997 | -with-* | --with-* | -without-* | --without-* | --x)
1998 case "$ac_configure_args0 " in
1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2000 esac
2002 -* ) ac_must_keep_next=true ;;
2003 esac
2005 as_fn_append ac_configure_args " '$ac_arg'"
2007 esac
2008 done
2009 done
2010 { ac_configure_args0=; unset ac_configure_args0;}
2011 { ac_configure_args1=; unset ac_configure_args1;}
2013 # When interrupted or exit'd, cleanup temporary files, and complete
2014 # config.log. We remove comments because anyway the quotes in there
2015 # would cause problems or look ugly.
2016 # WARNING: Use '\'' to represent an apostrophe within the trap.
2017 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2018 trap 'exit_status=$?
2019 # Save into config.log some information that might help in debugging.
2021 echo
2023 $as_echo "## ---------------- ##
2024 ## Cache variables. ##
2025 ## ---------------- ##"
2026 echo
2027 # The following way of writing the cache mishandles newlines in values,
2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030 eval ac_val=\$$ac_var
2031 case $ac_val in #(
2032 *${as_nl}*)
2033 case $ac_var in #(
2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2036 esac
2037 case $ac_var in #(
2038 _ | IFS | as_nl) ;; #(
2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040 *) { eval $ac_var=; unset $ac_var;} ;;
2041 esac ;;
2042 esac
2043 done
2044 (set) 2>&1 |
2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046 *${as_nl}ac_space=\ *)
2047 sed -n \
2048 "s/'\''/'\''\\\\'\'''\''/g;
2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2050 ;; #(
2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054 esac |
2055 sort
2057 echo
2059 $as_echo "## ----------------- ##
2060 ## Output variables. ##
2061 ## ----------------- ##"
2062 echo
2063 for ac_var in $ac_subst_vars
2065 eval ac_val=\$$ac_var
2066 case $ac_val in
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 esac
2069 $as_echo "$ac_var='\''$ac_val'\''"
2070 done | sort
2071 echo
2073 if test -n "$ac_subst_files"; then
2074 $as_echo "## ------------------- ##
2075 ## File substitutions. ##
2076 ## ------------------- ##"
2077 echo
2078 for ac_var in $ac_subst_files
2080 eval ac_val=\$$ac_var
2081 case $ac_val in
2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 esac
2084 $as_echo "$ac_var='\''$ac_val'\''"
2085 done | sort
2086 echo
2089 if test -s confdefs.h; then
2090 $as_echo "## ----------- ##
2091 ## confdefs.h. ##
2092 ## ----------- ##"
2093 echo
2094 cat confdefs.h
2095 echo
2097 test "$ac_signal" != 0 &&
2098 $as_echo "$as_me: caught signal $ac_signal"
2099 $as_echo "$as_me: exit $exit_status"
2100 } >&5
2101 rm -f core *.core core.conftest.* &&
2102 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2103 exit $exit_status
2105 for ac_signal in 1 2 13 15; do
2106 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2107 done
2108 ac_signal=0
2110 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2111 rm -f -r conftest* confdefs.h
2113 $as_echo "/* confdefs.h */" > confdefs.h
2115 # Predefined preprocessor variables.
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_NAME "$PACKAGE_NAME"
2119 _ACEOF
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2123 _ACEOF
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2127 _ACEOF
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_STRING "$PACKAGE_STRING"
2131 _ACEOF
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2135 _ACEOF
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_URL "$PACKAGE_URL"
2139 _ACEOF
2142 # Let the site file select an alternate cache file if it wants to.
2143 # Prefer an explicitly selected file to automatically selected ones.
2144 ac_site_file1=NONE
2145 ac_site_file2=NONE
2146 if test -n "$CONFIG_SITE"; then
2147 # We do not want a PATH search for config.site.
2148 case $CONFIG_SITE in #((
2149 -*) ac_site_file1=./$CONFIG_SITE;;
2150 */*) ac_site_file1=$CONFIG_SITE;;
2151 *) ac_site_file1=./$CONFIG_SITE;;
2152 esac
2153 elif test "x$prefix" != xNONE; then
2154 ac_site_file1=$prefix/share/config.site
2155 ac_site_file2=$prefix/etc/config.site
2156 else
2157 ac_site_file1=$ac_default_prefix/share/config.site
2158 ac_site_file2=$ac_default_prefix/etc/config.site
2160 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162 test "x$ac_site_file" = xNONE && continue
2163 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2165 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2166 sed 's/^/| /' "$ac_site_file" >&5
2167 . "$ac_site_file" \
2168 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170 as_fn_error $? "failed to load site script $ac_site_file
2171 See \`config.log' for more details" "$LINENO" 5; }
2173 done
2175 if test -r "$cache_file"; then
2176 # Some versions of bash will fail to source /dev/null (special files
2177 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2178 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2180 $as_echo "$as_me: loading cache $cache_file" >&6;}
2181 case $cache_file in
2182 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2183 *) . "./$cache_file";;
2184 esac
2186 else
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2188 $as_echo "$as_me: creating cache $cache_file" >&6;}
2189 >$cache_file
2192 # Check that the precious variables saved in the cache have kept the same
2193 # value.
2194 ac_cache_corrupted=false
2195 for ac_var in $ac_precious_vars; do
2196 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2197 eval ac_new_set=\$ac_env_${ac_var}_set
2198 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2199 eval ac_new_val=\$ac_env_${ac_var}_value
2200 case $ac_old_set,$ac_new_set in
2201 set,)
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2203 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2204 ac_cache_corrupted=: ;;
2205 ,set)
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2207 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2208 ac_cache_corrupted=: ;;
2209 ,);;
2211 if test "x$ac_old_val" != "x$ac_new_val"; then
2212 # differences in whitespace do not lead to failure.
2213 ac_old_val_w=`echo x $ac_old_val`
2214 ac_new_val_w=`echo x $ac_new_val`
2215 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2217 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2218 ac_cache_corrupted=:
2219 else
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2221 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2222 eval $ac_var=\$ac_old_val
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2225 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2227 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2228 fi;;
2229 esac
2230 # Pass precious variables to config.status.
2231 if test "$ac_new_set" = set; then
2232 case $ac_new_val in
2233 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 *) ac_arg=$ac_var=$ac_new_val ;;
2235 esac
2236 case " $ac_configure_args " in
2237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2238 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2239 esac
2241 done
2242 if $ac_cache_corrupted; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2246 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2247 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2249 ## -------------------- ##
2250 ## Main body of script. ##
2251 ## -------------------- ##
2253 ac_ext=c
2254 ac_cpp='$CPP $CPPFLAGS'
2255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2263 ac_config_headers="$ac_config_headers config.h"
2266 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2268 # You will slowly go insane if you do not grok the following fact: when
2269 # building this library, the top-level /target/ becomes the library's /host/.
2271 # configure then causes --target to default to --host, exactly like any
2272 # other package using autoconf. Therefore, 'target' and 'host' will
2273 # always be the same. This makes sense both for native and cross compilers
2274 # just think about it for a little while. :-)
2276 # Also, if this library is being configured as part of a cross compiler, the
2277 # top-level configure script will pass the "real" host as $with_cross_host.
2279 # Do not delete or change the following two lines. For why, see
2280 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2281 ac_aux_dir=
2282 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2283 if test -f "$ac_dir/install-sh"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/install-sh -c"
2286 break
2287 elif test -f "$ac_dir/install.sh"; then
2288 ac_aux_dir=$ac_dir
2289 ac_install_sh="$ac_aux_dir/install.sh -c"
2290 break
2291 elif test -f "$ac_dir/shtool"; then
2292 ac_aux_dir=$ac_dir
2293 ac_install_sh="$ac_aux_dir/shtool install -c"
2294 break
2296 done
2297 if test -z "$ac_aux_dir"; then
2298 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2301 # These three variables are undocumented and unsupported,
2302 # and are intended to be withdrawn in a future Autoconf release.
2303 # They can cause serious problems if a builder's source tree is in a directory
2304 # whose full name contains unusual characters.
2305 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2306 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2307 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2310 # Make sure we can run config.sub.
2311 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2312 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2315 $as_echo_n "checking build system type... " >&6; }
2316 if ${ac_cv_build+:} false; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 ac_build_alias=$build_alias
2320 test "x$ac_build_alias" = x &&
2321 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2322 test "x$ac_build_alias" = x &&
2323 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2324 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2325 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2329 $as_echo "$ac_cv_build" >&6; }
2330 case $ac_cv_build in
2331 *-*-*) ;;
2332 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2333 esac
2334 build=$ac_cv_build
2335 ac_save_IFS=$IFS; IFS='-'
2336 set x $ac_cv_build
2337 shift
2338 build_cpu=$1
2339 build_vendor=$2
2340 shift; shift
2341 # Remember, the first character of IFS is used to create $*,
2342 # except with old shells:
2343 build_os=$*
2344 IFS=$ac_save_IFS
2345 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2349 $as_echo_n "checking host system type... " >&6; }
2350 if ${ac_cv_host+:} false; then :
2351 $as_echo_n "(cached) " >&6
2352 else
2353 if test "x$host_alias" = x; then
2354 ac_cv_host=$ac_cv_build
2355 else
2356 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2357 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2362 $as_echo "$ac_cv_host" >&6; }
2363 case $ac_cv_host in
2364 *-*-*) ;;
2365 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2366 esac
2367 host=$ac_cv_host
2368 ac_save_IFS=$IFS; IFS='-'
2369 set x $ac_cv_host
2370 shift
2371 host_cpu=$1
2372 host_vendor=$2
2373 shift; shift
2374 # Remember, the first character of IFS is used to create $*,
2375 # except with old shells:
2376 host_os=$*
2377 IFS=$ac_save_IFS
2378 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2382 $as_echo_n "checking target system type... " >&6; }
2383 if ${ac_cv_target+:} false; then :
2384 $as_echo_n "(cached) " >&6
2385 else
2386 if test "x$target_alias" = x; then
2387 ac_cv_target=$ac_cv_host
2388 else
2389 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2390 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2395 $as_echo "$ac_cv_target" >&6; }
2396 case $ac_cv_target in
2397 *-*-*) ;;
2398 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2399 esac
2400 target=$ac_cv_target
2401 ac_save_IFS=$IFS; IFS='-'
2402 set x $ac_cv_target
2403 shift
2404 target_cpu=$1
2405 target_vendor=$2
2406 shift; shift
2407 # Remember, the first character of IFS is used to create $*,
2408 # except with old shells:
2409 target_os=$*
2410 IFS=$ac_save_IFS
2411 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2414 # The aliases save the names the user supplied, while $host etc.
2415 # will get canonicalized.
2416 test -n "$target_alias" &&
2417 test "$program_prefix$program_suffix$program_transform_name" = \
2418 NONENONEs,x,x, &&
2419 program_prefix=${target_alias}-
2421 case ${build_alias} in
2422 "") build_noncanonical=${build} ;;
2423 *) build_noncanonical=${build_alias} ;;
2424 esac
2426 case ${host_alias} in
2427 "") host_noncanonical=${build_noncanonical} ;;
2428 *) host_noncanonical=${host_alias} ;;
2429 esac
2431 case ${target_alias} in
2432 "") target_noncanonical=${host_noncanonical} ;;
2433 *) target_noncanonical=${target_alias} ;;
2434 esac
2439 # Default to --enable-multilib
2440 # Check whether --enable-multilib was given.
2441 if test "${enable_multilib+set}" = set; then :
2442 enableval=$enable_multilib; case "$enableval" in
2443 yes) multilib=yes ;;
2444 no) multilib=no ;;
2445 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2446 esac
2447 else
2448 multilib=yes
2452 # We may get other options which we leave undocumented:
2453 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2454 # See config-ml.in if you want the gory details.
2456 if test "$srcdir" = "."; then
2457 if test "$with_target_subdir" != "."; then
2458 multi_basedir="$srcdir/$with_multisrctop../.."
2459 else
2460 multi_basedir="$srcdir/$with_multisrctop.."
2462 else
2463 multi_basedir="$srcdir/.."
2467 # Even if the default multilib is not a cross compilation,
2468 # it may be that some of the other multilibs are.
2469 if test $cross_compiling = no && test $multilib = yes \
2470 && test "x${with_multisubdir}" != x ; then
2471 cross_compiling=maybe
2474 ac_config_commands="$ac_config_commands default-1"
2477 target_alias=${target_alias-$host_alias}
2480 am__api_version='1.15'
2482 # Find a good install program. We prefer a C program (faster),
2483 # so one script is as good as another. But avoid the broken or
2484 # incompatible versions:
2485 # SysV /etc/install, /usr/sbin/install
2486 # SunOS /usr/etc/install
2487 # IRIX /sbin/install
2488 # AIX /bin/install
2489 # AmigaOS /C/install, which installs bootblocks on floppy discs
2490 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2491 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2492 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2493 # OS/2's system install, which has a completely different semantic
2494 # ./install, which can be erroneously created by make from ./install.sh.
2495 # Reject install programs that cannot install multiple files.
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2497 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2498 if test -z "$INSTALL"; then
2499 if ${ac_cv_path_install+:} false; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 # Account for people who put trailing slashes in PATH elements.
2508 case $as_dir/ in #((
2509 ./ | .// | /[cC]/* | \
2510 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2511 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2512 /usr/ucb/* ) ;;
2514 # OSF1 and SCO ODT 3.0 have their own names for install.
2515 # Don't use installbsd from OSF since it installs stuff as root
2516 # by default.
2517 for ac_prog in ginstall scoinst install; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2520 if test $ac_prog = install &&
2521 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522 # AIX install. It has an incompatible calling convention.
2524 elif test $ac_prog = install &&
2525 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # program-specific install script used by HP pwplus--don't use.
2528 else
2529 rm -rf conftest.one conftest.two conftest.dir
2530 echo one > conftest.one
2531 echo two > conftest.two
2532 mkdir conftest.dir
2533 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2534 test -s conftest.one && test -s conftest.two &&
2535 test -s conftest.dir/conftest.one &&
2536 test -s conftest.dir/conftest.two
2537 then
2538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 break 3
2543 done
2544 done
2546 esac
2548 done
2549 IFS=$as_save_IFS
2551 rm -rf conftest.one conftest.two conftest.dir
2554 if test "${ac_cv_path_install+set}" = set; then
2555 INSTALL=$ac_cv_path_install
2556 else
2557 # As a last resort, use the slow shell script. Don't cache a
2558 # value for INSTALL within a source directory, because that will
2559 # break other packages using the cache if that directory is
2560 # removed, or if the value is a relative name.
2561 INSTALL=$ac_install_sh
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2565 $as_echo "$INSTALL" >&6; }
2567 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2568 # It thinks the first close brace ends the variable substitution.
2569 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2571 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2573 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2576 $as_echo_n "checking whether build environment is sane... " >&6; }
2577 # Reject unsafe characters in $srcdir or the absolute working directory
2578 # name. Accept space and tab only in the latter.
2579 am_lf='
2581 case `pwd` in
2582 *[\\\"\#\$\&\'\`$am_lf]*)
2583 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2584 esac
2585 case $srcdir in
2586 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2587 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2588 esac
2590 # Do 'set' in a subshell so we don't clobber the current shell's
2591 # arguments. Must try -L first in case configure is actually a
2592 # symlink; some systems play weird games with the mod time of symlinks
2593 # (eg FreeBSD returns the mod time of the symlink's containing
2594 # directory).
2595 if (
2596 am_has_slept=no
2597 for am_try in 1 2; do
2598 echo "timestamp, slept: $am_has_slept" > conftest.file
2599 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2600 if test "$*" = "X"; then
2601 # -L didn't work.
2602 set X `ls -t "$srcdir/configure" conftest.file`
2604 if test "$*" != "X $srcdir/configure conftest.file" \
2605 && test "$*" != "X conftest.file $srcdir/configure"; then
2607 # If neither matched, then we have a broken ls. This can happen
2608 # if, for instance, CONFIG_SHELL is bash and it inherits a
2609 # broken ls alias from the environment. This has actually
2610 # happened. Such a system could not be considered "sane".
2611 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2612 alias in your environment" "$LINENO" 5
2614 if test "$2" = conftest.file || test $am_try -eq 2; then
2615 break
2617 # Just in case.
2618 sleep 1
2619 am_has_slept=yes
2620 done
2621 test "$2" = conftest.file
2623 then
2624 # Ok.
2626 else
2627 as_fn_error $? "newly created file is older than distributed files!
2628 Check your system clock" "$LINENO" 5
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2631 $as_echo "yes" >&6; }
2632 # If we didn't sleep, we still need to ensure time stamps of config.status and
2633 # generated files are strictly newer.
2634 am_sleep_pid=
2635 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2636 ( sleep 1 ) &
2637 am_sleep_pid=$!
2640 rm -f conftest.file
2642 test "$program_prefix" != NONE &&
2643 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2644 # Use a double $ so make ignores it.
2645 test "$program_suffix" != NONE &&
2646 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2647 # Double any \ or $.
2648 # By default was `s,x,x', remove it if useless.
2649 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2650 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2652 # Expand $ac_aux_dir to an absolute path.
2653 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2655 if test x"${MISSING+set}" != xset; then
2656 case $am_aux_dir in
2657 *\ * | *\ *)
2658 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2660 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2661 esac
2663 # Use eval to expand $SHELL
2664 if eval "$MISSING --is-lightweight"; then
2665 am_missing_run="$MISSING "
2666 else
2667 am_missing_run=
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2669 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2672 if test x"${install_sh+set}" != xset; then
2673 case $am_aux_dir in
2674 *\ * | *\ *)
2675 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2677 install_sh="\${SHELL} $am_aux_dir/install-sh"
2678 esac
2681 # Installed binaries are usually stripped using 'strip' when the user
2682 # run "make install-strip". However 'strip' might not be the right
2683 # tool to use in cross-compilation environments, therefore Automake
2684 # will honor the 'STRIP' environment variable to overrule this program.
2685 if test "$cross_compiling" != no; then
2686 if test -n "$ac_tool_prefix"; then
2687 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2688 set dummy ${ac_tool_prefix}strip; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if ${ac_cv_prog_STRIP+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 if test -n "$STRIP"; then
2695 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 break 2
2708 done
2709 done
2710 IFS=$as_save_IFS
2714 STRIP=$ac_cv_prog_STRIP
2715 if test -n "$STRIP"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2717 $as_echo "$STRIP" >&6; }
2718 else
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2725 if test -z "$ac_cv_prog_STRIP"; then
2726 ac_ct_STRIP=$STRIP
2727 # Extract the first word of "strip", so it can be a program name with args.
2728 set dummy strip; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 if test -n "$ac_ct_STRIP"; then
2735 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744 ac_cv_prog_ac_ct_STRIP="strip"
2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 break 2
2748 done
2749 done
2750 IFS=$as_save_IFS
2754 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2755 if test -n "$ac_ct_STRIP"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2757 $as_echo "$ac_ct_STRIP" >&6; }
2758 else
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2763 if test "x$ac_ct_STRIP" = x; then
2764 STRIP=":"
2765 else
2766 case $cross_compiling:$ac_tool_warned in
2767 yes:)
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2770 ac_tool_warned=yes ;;
2771 esac
2772 STRIP=$ac_ct_STRIP
2774 else
2775 STRIP="$ac_cv_prog_STRIP"
2779 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2782 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2783 if test -z "$MKDIR_P"; then
2784 if ${ac_cv_path_mkdir+:} false; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_prog in mkdir gmkdir; do
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2795 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2796 'mkdir (GNU coreutils) '* | \
2797 'mkdir (coreutils) '* | \
2798 'mkdir (fileutils) '4.1*)
2799 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2800 break 3;;
2801 esac
2802 done
2803 done
2804 done
2805 IFS=$as_save_IFS
2809 test -d ./--version && rmdir ./--version
2810 if test "${ac_cv_path_mkdir+set}" = set; then
2811 MKDIR_P="$ac_cv_path_mkdir -p"
2812 else
2813 # As a last resort, use the slow shell script. Don't cache a
2814 # value for MKDIR_P within a source directory, because that will
2815 # break other packages using the cache if that directory is
2816 # removed, or if the value is a relative name.
2817 MKDIR_P="$ac_install_sh -d"
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2821 $as_echo "$MKDIR_P" >&6; }
2823 for ac_prog in gawk mawk nawk awk
2825 # Extract the first word of "$ac_prog", so it can be a program name with args.
2826 set dummy $ac_prog; ac_word=$2
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 $as_echo_n "checking for $ac_word... " >&6; }
2829 if ${ac_cv_prog_AWK+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 if test -n "$AWK"; then
2833 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_AWK="$ac_prog"
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2846 done
2847 done
2848 IFS=$as_save_IFS
2852 AWK=$ac_cv_prog_AWK
2853 if test -n "$AWK"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2855 $as_echo "$AWK" >&6; }
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2862 test -n "$AWK" && break
2863 done
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2866 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2867 set x ${MAKE-make}
2868 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2869 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 cat >conftest.make <<\_ACEOF
2873 SHELL = /bin/sh
2874 all:
2875 @echo '@@@%%%=$(MAKE)=@@@%%%'
2876 _ACEOF
2877 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2878 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2879 *@@@%%%=?*=@@@%%%*)
2880 eval ac_cv_prog_make_${ac_make}_set=yes;;
2882 eval ac_cv_prog_make_${ac_make}_set=no;;
2883 esac
2884 rm -f conftest.make
2886 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2888 $as_echo "yes" >&6; }
2889 SET_MAKE=
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 SET_MAKE="MAKE=${MAKE-make}"
2896 rm -rf .tst 2>/dev/null
2897 mkdir .tst 2>/dev/null
2898 if test -d .tst; then
2899 am__leading_dot=.
2900 else
2901 am__leading_dot=_
2903 rmdir .tst 2>/dev/null
2905 # Check whether --enable-silent-rules was given.
2906 if test "${enable_silent_rules+set}" = set; then :
2907 enableval=$enable_silent_rules;
2910 case $enable_silent_rules in # (((
2911 yes) AM_DEFAULT_VERBOSITY=0;;
2912 no) AM_DEFAULT_VERBOSITY=1;;
2913 *) AM_DEFAULT_VERBOSITY=1;;
2914 esac
2915 am_make=${MAKE-make}
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2917 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2918 if ${am_cv_make_support_nested_variables+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if $as_echo 'TRUE=$(BAR$(V))
2922 BAR0=false
2923 BAR1=true
2925 am__doit:
2926 @$(TRUE)
2927 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2928 am_cv_make_support_nested_variables=yes
2929 else
2930 am_cv_make_support_nested_variables=no
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2934 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2935 if test $am_cv_make_support_nested_variables = yes; then
2936 AM_V='$(V)'
2937 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2938 else
2939 AM_V=$AM_DEFAULT_VERBOSITY
2940 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2942 AM_BACKSLASH='\'
2944 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2945 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2946 # is not polluted with repeated "-I."
2947 am__isrc=' -I$(srcdir)'
2948 # test to see if srcdir already configured
2949 if test -f $srcdir/config.status; then
2950 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2954 # test whether we have cygpath
2955 if test -z "$CYGPATH_W"; then
2956 if (cygpath --version) >/dev/null 2>/dev/null; then
2957 CYGPATH_W='cygpath -w'
2958 else
2959 CYGPATH_W=echo
2964 # Define the identity of the package.
2965 PACKAGE='libquadmath'
2966 VERSION='0.1'
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE "$PACKAGE"
2971 _ACEOF
2974 cat >>confdefs.h <<_ACEOF
2975 #define VERSION "$VERSION"
2976 _ACEOF
2978 # Some tools Automake needs.
2980 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2983 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2986 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2989 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2992 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2994 # For better backward compatibility. To be removed once Automake 1.9.x
2995 # dies out for good. For more background, see:
2996 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2997 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2998 mkdir_p='$(MKDIR_P)'
3000 # We need awk for the "check" target (and possibly the TAP driver). The
3001 # system "awk" is bad on some platforms.
3002 # Always define AMTAR for backward compatibility. Yes, it's still used
3003 # in the wild :-( We should find a proper way to deprecate it ...
3004 AMTAR='$${TAR-tar}'
3007 # We'll loop over all known methods to create a tar archive until one works.
3008 _am_tools='gnutar pax cpio none'
3010 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3017 # POSIX will say in a future version that running "rm -f" with no argument
3018 # is OK; and we want to be able to make that assumption in our Makefile
3019 # recipes. So use an aggressive probe to check that the usage we want is
3020 # actually supported "in the wild" to an acceptable degree.
3021 # See automake bug#10828.
3022 # To make any issue more visible, cause the running configure to be aborted
3023 # by default if the 'rm' program in use doesn't match our expectations; the
3024 # user can still override this though.
3025 if rm -f && rm -fr && rm -rf; then : OK; else
3026 cat >&2 <<'END'
3027 Oops!
3029 Your 'rm' program seems unable to run without file operands specified
3030 on the command line, even when the '-f' option is present. This is contrary
3031 to the behaviour of most rm programs out there, and not conforming with
3032 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3034 Please tell bug-automake@gnu.org about your system, including the value
3035 of your $PATH and any error possibly output before this message. This
3036 can help us improve future automake versions.
3039 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3040 echo 'Configuration will proceed anyway, since you have set the' >&2
3041 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3042 echo >&2
3043 else
3044 cat >&2 <<'END'
3045 Aborting the configuration process, to ensure you take notice of the issue.
3047 You can download and install GNU coreutils to get an 'rm' implementation
3048 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3050 If you want to complete the configuration process using your problematic
3051 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3052 to "yes", and re-run configure.
3055 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
3061 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
3062 # Check whether --enable-version-specific-runtime-libs was given.
3063 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3064 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3065 yes) version_specific_libs=yes ;;
3066 no) version_specific_libs=no ;;
3067 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3068 esac
3069 else
3070 version_specific_libs=no
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
3074 $as_echo "$version_specific_libs" >&6; }
3078 DEPDIR="${am__leading_dot}deps"
3080 ac_config_commands="$ac_config_commands depfiles"
3083 am_make=${MAKE-make}
3084 cat > confinc << 'END'
3085 am__doit:
3086 @echo this is the am__doit target
3087 .PHONY: am__doit
3089 # If we don't find an include directive, just comment out the code.
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3091 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3092 am__include="#"
3093 am__quote=
3094 _am_result=none
3095 # First try GNU make style include.
3096 echo "include confinc" > confmf
3097 # Ignore all kinds of additional output from 'make'.
3098 case `$am_make -s -f confmf 2> /dev/null` in #(
3099 *the\ am__doit\ target*)
3100 am__include=include
3101 am__quote=
3102 _am_result=GNU
3104 esac
3105 # Now try BSD make style include.
3106 if test "$am__include" = "#"; then
3107 echo '.include "confinc"' > confmf
3108 case `$am_make -s -f confmf 2> /dev/null` in #(
3109 *the\ am__doit\ target*)
3110 am__include=.include
3111 am__quote="\""
3112 _am_result=BSD
3114 esac
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3119 $as_echo "$_am_result" >&6; }
3120 rm -f confinc confmf
3122 # Check whether --enable-dependency-tracking was given.
3123 if test "${enable_dependency_tracking+set}" = set; then :
3124 enableval=$enable_dependency_tracking;
3127 if test "x$enable_dependency_tracking" != xno; then
3128 am_depcomp="$ac_aux_dir/depcomp"
3129 AMDEPBACKSLASH='\'
3130 am__nodep='_no'
3132 if test "x$enable_dependency_tracking" != xno; then
3133 AMDEP_TRUE=
3134 AMDEP_FALSE='#'
3135 else
3136 AMDEP_TRUE='#'
3137 AMDEP_FALSE=
3141 ac_ext=c
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146 if test -n "$ac_tool_prefix"; then
3147 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3148 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if ${ac_cv_prog_CC+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3168 done
3169 done
3170 IFS=$as_save_IFS
3174 CC=$ac_cv_prog_CC
3175 if test -n "$CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177 $as_echo "$CC" >&6; }
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3185 if test -z "$ac_cv_prog_CC"; then
3186 ac_ct_CC=$CC
3187 # Extract the first word of "gcc", so it can be a program name with args.
3188 set dummy gcc; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -n "$ac_ct_CC"; then
3195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_ac_ct_CC="gcc"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3208 done
3209 done
3210 IFS=$as_save_IFS
3214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3215 if test -n "$ac_ct_CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3217 $as_echo "$ac_ct_CC" >&6; }
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3223 if test "x$ac_ct_CC" = x; then
3224 CC=""
3225 else
3226 case $cross_compiling:$ac_tool_warned in
3227 yes:)
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230 ac_tool_warned=yes ;;
3231 esac
3232 CC=$ac_ct_CC
3234 else
3235 CC="$ac_cv_prog_CC"
3238 if test -z "$CC"; then
3239 if test -n "$ac_tool_prefix"; then
3240 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3241 set dummy ${ac_tool_prefix}cc; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_CC+:} false; then :
3245 $as_echo_n "(cached) " >&6
3246 else
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_CC="${ac_tool_prefix}cc"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3261 done
3262 done
3263 IFS=$as_save_IFS
3267 CC=$ac_cv_prog_CC
3268 if test -n "$CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3279 if test -z "$CC"; then
3280 # Extract the first word of "cc", so it can be a program name with args.
3281 set dummy cc; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if ${ac_cv_prog_CC+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 if test -n "$CC"; then
3288 ac_cv_prog_CC="$CC" # Let the user override the test.
3289 else
3290 ac_prog_rejected=no
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3299 ac_prog_rejected=yes
3300 continue
3302 ac_cv_prog_CC="cc"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3306 done
3307 done
3308 IFS=$as_save_IFS
3310 if test $ac_prog_rejected = yes; then
3311 # We found a bogon in the path, so make sure we never use it.
3312 set dummy $ac_cv_prog_CC
3313 shift
3314 if test $# != 0; then
3315 # We chose a different compiler from the bogus one.
3316 # However, it has the same basename, so the bogon will be chosen
3317 # first if we set CC to just the basename; use the full file name.
3318 shift
3319 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3324 CC=$ac_cv_prog_CC
3325 if test -n "$CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3327 $as_echo "$CC" >&6; }
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3335 if test -z "$CC"; then
3336 if test -n "$ac_tool_prefix"; then
3337 for ac_prog in cl.exe
3339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if ${ac_cv_prog_CC+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 if test -n "$CC"; then
3347 ac_cv_prog_CC="$CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3360 done
3361 done
3362 IFS=$as_save_IFS
3366 CC=$ac_cv_prog_CC
3367 if test -n "$CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3369 $as_echo "$CC" >&6; }
3370 else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3376 test -n "$CC" && break
3377 done
3379 if test -z "$CC"; then
3380 ac_ct_CC=$CC
3381 for ac_prog in cl.exe
3383 # Extract the first word of "$ac_prog", so it can be a program name with args.
3384 set dummy $ac_prog; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 if test -n "$ac_ct_CC"; then
3391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_ac_ct_CC="$ac_prog"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3404 done
3405 done
3406 IFS=$as_save_IFS
3410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3411 if test -n "$ac_ct_CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3413 $as_echo "$ac_ct_CC" >&6; }
3414 else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3420 test -n "$ac_ct_CC" && break
3421 done
3423 if test "x$ac_ct_CC" = x; then
3424 CC=""
3425 else
3426 case $cross_compiling:$ac_tool_warned in
3427 yes:)
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3430 ac_tool_warned=yes ;;
3431 esac
3432 CC=$ac_ct_CC
3439 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441 as_fn_error $? "no acceptable C compiler found in \$PATH
3442 See \`config.log' for more details" "$LINENO" 5; }
3444 # Provide some information about the compiler.
3445 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3446 set X $ac_compile
3447 ac_compiler=$2
3448 for ac_option in --version -v -V -qversion; do
3449 { { ac_try="$ac_compiler $ac_option >&5"
3450 case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3457 ac_status=$?
3458 if test -s conftest.err; then
3459 sed '10a\
3460 ... rest of stderr output deleted ...
3461 10q' conftest.err >conftest.er1
3462 cat conftest.er1 >&5
3464 rm -f conftest.er1 conftest.err
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }
3467 done
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3471 #include <stdio.h>
3473 main ()
3475 printf ("hello world\n");
3477 return 0;
3479 _ACEOF
3480 # FIXME: Cleanup?
3481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3482 (eval $ac_link) 2>&5
3483 ac_status=$?
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; then :
3486 gcc_no_link=no
3487 else
3488 gcc_no_link=yes
3490 if test x$gcc_no_link = xyes; then
3491 # Setting cross_compile will disable run tests; it will
3492 # also disable AC_CHECK_FILE but that's generally
3493 # correct if we can't link.
3494 cross_compiling=yes
3495 EXEEXT=
3496 else
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3501 main ()
3505 return 0;
3507 _ACEOF
3508 ac_clean_files_save=$ac_clean_files
3509 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3510 # Try to create an executable without -o first, disregard a.out.
3511 # It will help us diagnose broken compilers, and finding out an intuition
3512 # of exeext.
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3514 $as_echo_n "checking whether the C compiler works... " >&6; }
3515 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3517 # The possible output files:
3518 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3520 ac_rmfiles=
3521 for ac_file in $ac_files
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3526 esac
3527 done
3528 rm -f $ac_rmfiles
3530 if { { ac_try="$ac_link_default"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_link_default") 2>&5
3538 ac_status=$?
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }; then :
3541 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3542 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3543 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3544 # so that the user can short-circuit this test for compilers unknown to
3545 # Autoconf.
3546 for ac_file in $ac_files ''
3548 test -f "$ac_file" || continue
3549 case $ac_file in
3550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3552 [ab].out )
3553 # We found the default executable, but exeext='' is most
3554 # certainly right.
3555 break;;
3556 *.* )
3557 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3558 then :; else
3559 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561 # We set ac_cv_exeext here because the later test for it is not
3562 # safe: cross compilers may not add the suffix if given an `-o'
3563 # argument, so we may need to know it at that point already.
3564 # Even if this section looks crufty: it has the advantage of
3565 # actually working.
3566 break;;
3568 break;;
3569 esac
3570 done
3571 test "$ac_cv_exeext" = no && ac_cv_exeext=
3573 else
3574 ac_file=''
3576 if test -z "$ac_file"; then :
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 $as_echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error 77 "C compiler cannot create executables
3585 See \`config.log' for more details" "$LINENO" 5; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3588 $as_echo "yes" >&6; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3591 $as_echo_n "checking for C compiler default output file name... " >&6; }
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3593 $as_echo "$ac_file" >&6; }
3594 ac_exeext=$ac_cv_exeext
3596 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3597 ac_clean_files=$ac_clean_files_save
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3599 $as_echo_n "checking for suffix of executables... " >&6; }
3600 if { { ac_try="$ac_link"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_link") 2>&5
3608 ac_status=$?
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }; then :
3611 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3612 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3613 # work properly (i.e., refer to `conftest.exe'), while it won't with
3614 # `rm'.
3615 for ac_file in conftest.exe conftest conftest.*; do
3616 test -f "$ac_file" || continue
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620 break;;
3621 * ) break;;
3622 esac
3623 done
3624 else
3625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3628 See \`config.log' for more details" "$LINENO" 5; }
3630 rm -f conftest conftest$ac_cv_exeext
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3632 $as_echo "$ac_cv_exeext" >&6; }
3634 rm -f conftest.$ac_ext
3635 EXEEXT=$ac_cv_exeext
3636 ac_exeext=$EXEEXT
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639 #include <stdio.h>
3641 main ()
3643 FILE *f = fopen ("conftest.out", "w");
3644 return ferror (f) || fclose (f) != 0;
3647 return 0;
3649 _ACEOF
3650 ac_clean_files="$ac_clean_files conftest.out"
3651 # Check that the compiler produces executables we can run. If not, either
3652 # the compiler is broken, or we cross compile.
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3654 $as_echo_n "checking whether we are cross compiling... " >&6; }
3655 if test "$cross_compiling" != yes; then
3656 { { ac_try="$ac_link"
3657 case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_link") 2>&5
3664 ac_status=$?
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }
3667 if { ac_try='./conftest$ac_cv_exeext'
3668 { { case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673 $as_echo "$ac_try_echo"; } >&5
3674 (eval "$ac_try") 2>&5
3675 ac_status=$?
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }; }; then
3678 cross_compiling=no
3679 else
3680 if test "$cross_compiling" = maybe; then
3681 cross_compiling=yes
3682 else
3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error $? "cannot run C compiled programs.
3686 If you meant to cross compile, use \`--host'.
3687 See \`config.log' for more details" "$LINENO" 5; }
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3692 $as_echo "$cross_compiling" >&6; }
3694 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3695 ac_clean_files=$ac_clean_files_save
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3698 $as_echo_n "checking for suffix of object files... " >&6; }
3699 if ${ac_cv_objext+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3706 main ()
3710 return 0;
3712 _ACEOF
3713 rm -f conftest.o conftest.obj
3714 if { { ac_try="$ac_compile"
3715 case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720 $as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_compile") 2>&5
3722 ac_status=$?
3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724 test $ac_status = 0; }; then :
3725 for ac_file in conftest.o conftest.obj conftest.*; do
3726 test -f "$ac_file" || continue;
3727 case $ac_file in
3728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3729 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3730 break;;
3731 esac
3732 done
3733 else
3734 $as_echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739 as_fn_error $? "cannot compute suffix of object files: cannot compile
3740 See \`config.log' for more details" "$LINENO" 5; }
3742 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3745 $as_echo "$ac_cv_objext" >&6; }
3746 OBJEXT=$ac_cv_objext
3747 ac_objext=$OBJEXT
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3749 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3750 if ${ac_cv_c_compiler_gnu+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3757 main ()
3759 #ifndef __GNUC__
3760 choke me
3761 #endif
3764 return 0;
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_compiler_gnu=yes
3769 else
3770 ac_compiler_gnu=no
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3777 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3778 if test $ac_compiler_gnu = yes; then
3779 GCC=yes
3780 else
3781 GCC=
3783 ac_test_CFLAGS=${CFLAGS+set}
3784 ac_save_CFLAGS=$CFLAGS
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3786 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3787 if ${ac_cv_prog_cc_g+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 ac_save_c_werror_flag=$ac_c_werror_flag
3791 ac_c_werror_flag=yes
3792 ac_cv_prog_cc_g=no
3793 CFLAGS="-g"
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3798 main ()
3802 return 0;
3804 _ACEOF
3805 if ac_fn_c_try_compile "$LINENO"; then :
3806 ac_cv_prog_cc_g=yes
3807 else
3808 CFLAGS=""
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3813 main ()
3817 return 0;
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3822 else
3823 ac_c_werror_flag=$ac_save_c_werror_flag
3824 CFLAGS="-g"
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3829 main ()
3833 return 0;
3835 _ACEOF
3836 if ac_fn_c_try_compile "$LINENO"; then :
3837 ac_cv_prog_cc_g=yes
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 ac_c_werror_flag=$ac_save_c_werror_flag
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3847 $as_echo "$ac_cv_prog_cc_g" >&6; }
3848 if test "$ac_test_CFLAGS" = set; then
3849 CFLAGS=$ac_save_CFLAGS
3850 elif test $ac_cv_prog_cc_g = yes; then
3851 if test "$GCC" = yes; then
3852 CFLAGS="-g -O2"
3853 else
3854 CFLAGS="-g"
3856 else
3857 if test "$GCC" = yes; then
3858 CFLAGS="-O2"
3859 else
3860 CFLAGS=
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3864 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3865 if ${ac_cv_prog_cc_c89+:} false; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 ac_cv_prog_cc_c89=no
3869 ac_save_CC=$CC
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872 #include <stdarg.h>
3873 #include <stdio.h>
3874 struct stat;
3875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3876 struct buf { int x; };
3877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3878 static char *e (p, i)
3879 char **p;
3880 int i;
3882 return p[i];
3884 static char *f (char * (*g) (char **, int), char **p, ...)
3886 char *s;
3887 va_list v;
3888 va_start (v,p);
3889 s = g (p, va_arg (v,int));
3890 va_end (v);
3891 return s;
3894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3895 function prototypes and stuff, but not '\xHH' hex character constants.
3896 These don't provoke an error unfortunately, instead are silently treated
3897 as 'x'. The following induces an error, until -std is added to get
3898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3899 array size at least. It's necessary to write '\x00'==0 to get something
3900 that's true only with -std. */
3901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3904 inside strings and character constants. */
3905 #define FOO(x) 'x'
3906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3908 int test (int i, double x);
3909 struct s1 {int (*f) (int a);};
3910 struct s2 {int (*f) (double a);};
3911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3912 int argc;
3913 char **argv;
3915 main ()
3917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3919 return 0;
3921 _ACEOF
3922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3925 CC="$ac_save_CC $ac_arg"
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927 ac_cv_prog_cc_c89=$ac_arg
3929 rm -f core conftest.err conftest.$ac_objext
3930 test "x$ac_cv_prog_cc_c89" != "xno" && break
3931 done
3932 rm -f conftest.$ac_ext
3933 CC=$ac_save_CC
3936 # AC_CACHE_VAL
3937 case "x$ac_cv_prog_cc_c89" in
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3940 $as_echo "none needed" >&6; } ;;
3941 xno)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3943 $as_echo "unsupported" >&6; } ;;
3945 CC="$CC $ac_cv_prog_cc_c89"
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3947 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3948 esac
3949 if test "x$ac_cv_prog_cc_c89" != xno; then :
3953 ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3965 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3966 if ${am_cv_prog_cc_c_o+:} false; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3973 main ()
3977 return 0;
3979 _ACEOF
3980 # Make sure it works both with $CC and with simple cc.
3981 # Following AC_PROG_CC_C_O, we do the test twice because some
3982 # compilers refuse to overwrite an existing .o file with -o,
3983 # though they will create one.
3984 am_cv_prog_cc_c_o=yes
3985 for am_i in 1 2; do
3986 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3987 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } \
3991 && test -f conftest2.$ac_objext; then
3992 : OK
3993 else
3994 am_cv_prog_cc_c_o=no
3995 break
3997 done
3998 rm -f core conftest*
3999 unset am_i
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4002 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4003 if test "$am_cv_prog_cc_c_o" != yes; then
4004 # Losing compiler, so override with the script.
4005 # FIXME: It is wrong to rewrite CC.
4006 # But if we don't then we get into trouble of one sort or another.
4007 # A longer-term fix would be to have automake use am__CC in this case,
4008 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4009 CC="$am_aux_dir/compile $CC"
4011 ac_ext=c
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018 depcc="$CC" am_compiler_list=
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4021 $as_echo_n "checking dependency style of $depcc... " >&6; }
4022 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4026 # We make a subdir and do the tests there. Otherwise we can end up
4027 # making bogus files that we don't know about and never remove. For
4028 # instance it was reported that on HP-UX the gcc test will end up
4029 # making a dummy file named 'D' -- because '-MD' means "put the output
4030 # in D".
4031 rm -rf conftest.dir
4032 mkdir conftest.dir
4033 # Copy depcomp to subdir because otherwise we won't find it if we're
4034 # using a relative directory.
4035 cp "$am_depcomp" conftest.dir
4036 cd conftest.dir
4037 # We will build objects and dependencies in a subdirectory because
4038 # it helps to detect inapplicable dependency modes. For instance
4039 # both Tru64's cc and ICC support -MD to output dependencies as a
4040 # side effect of compilation, but ICC will put the dependencies in
4041 # the current directory while Tru64 will put them in the object
4042 # directory.
4043 mkdir sub
4045 am_cv_CC_dependencies_compiler_type=none
4046 if test "$am_compiler_list" = ""; then
4047 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4049 am__universal=false
4050 case " $depcc " in #(
4051 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4052 esac
4054 for depmode in $am_compiler_list; do
4055 # Setup a source with many dependencies, because some compilers
4056 # like to wrap large dependency lists on column 80 (with \), and
4057 # we should not choose a depcomp mode which is confused by this.
4059 # We need to recreate these files for each test, as the compiler may
4060 # overwrite some of them when testing with obscure command lines.
4061 # This happens at least with the AIX C compiler.
4062 : > sub/conftest.c
4063 for i in 1 2 3 4 5 6; do
4064 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4065 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4066 # Solaris 10 /bin/sh.
4067 echo '/* dummy */' > sub/conftst$i.h
4068 done
4069 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4071 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4072 # mode. It turns out that the SunPro C++ compiler does not properly
4073 # handle '-M -o', and we need to detect this. Also, some Intel
4074 # versions had trouble with output in subdirs.
4075 am__obj=sub/conftest.${OBJEXT-o}
4076 am__minus_obj="-o $am__obj"
4077 case $depmode in
4078 gcc)
4079 # This depmode causes a compiler race in universal mode.
4080 test "$am__universal" = false || continue
4082 nosideeffect)
4083 # After this tag, mechanisms are not by side-effect, so they'll
4084 # only be used when explicitly requested.
4085 if test "x$enable_dependency_tracking" = xyes; then
4086 continue
4087 else
4088 break
4091 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4092 # This compiler won't grok '-c -o', but also, the minuso test has
4093 # not run yet. These depmodes are late enough in the game, and
4094 # so weak that their functioning should not be impacted.
4095 am__obj=conftest.${OBJEXT-o}
4096 am__minus_obj=
4098 none) break ;;
4099 esac
4100 if depmode=$depmode \
4101 source=sub/conftest.c object=$am__obj \
4102 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4103 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4104 >/dev/null 2>conftest.err &&
4105 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4106 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4107 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4108 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4109 # icc doesn't choke on unknown options, it will just issue warnings
4110 # or remarks (even with -Werror). So we grep stderr for any message
4111 # that says an option was ignored or not supported.
4112 # When given -MP, icc 7.0 and 7.1 complain thusly:
4113 # icc: Command line warning: ignoring option '-M'; no argument required
4114 # The diagnosis changed in icc 8.0:
4115 # icc: Command line remark: option '-MP' not supported
4116 if (grep 'ignoring option' conftest.err ||
4117 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4118 am_cv_CC_dependencies_compiler_type=$depmode
4119 break
4122 done
4124 cd ..
4125 rm -rf conftest.dir
4126 else
4127 am_cv_CC_dependencies_compiler_type=none
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4132 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4133 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4136 test "x$enable_dependency_tracking" != xno \
4137 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4138 am__fastdepCC_TRUE=
4139 am__fastdepCC_FALSE='#'
4140 else
4141 am__fastdepCC_TRUE='#'
4142 am__fastdepCC_FALSE=
4147 ac_ext=c
4148 ac_cpp='$CPP $CPPFLAGS'
4149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4153 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4154 # On Suns, sometimes $CPP names a directory.
4155 if test -n "$CPP" && test -d "$CPP"; then
4156 CPP=
4158 if test -z "$CPP"; then
4159 if ${ac_cv_prog_CPP+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 # Double quotes because CPP needs to be expanded
4163 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4165 ac_preproc_ok=false
4166 for ac_c_preproc_warn_flag in '' yes
4168 # Use a header file that comes with gcc, so configuring glibc
4169 # with a fresh cross-compiler works.
4170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4171 # <limits.h> exists even on freestanding compilers.
4172 # On the NeXT, cc -E runs the code through the compiler's parser,
4173 # not just through cpp. "Syntax error" is here to catch this case.
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176 #ifdef __STDC__
4177 # include <limits.h>
4178 #else
4179 # include <assert.h>
4180 #endif
4181 Syntax error
4182 _ACEOF
4183 if ac_fn_c_try_cpp "$LINENO"; then :
4185 else
4186 # Broken: fails on valid input.
4187 continue
4189 rm -f conftest.err conftest.i conftest.$ac_ext
4191 # OK, works on sane cases. Now check whether nonexistent headers
4192 # can be detected and how.
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195 #include <ac_nonexistent.h>
4196 _ACEOF
4197 if ac_fn_c_try_cpp "$LINENO"; then :
4198 # Broken: success on invalid input.
4199 continue
4200 else
4201 # Passes both tests.
4202 ac_preproc_ok=:
4203 break
4205 rm -f conftest.err conftest.i conftest.$ac_ext
4207 done
4208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4209 rm -f conftest.i conftest.err conftest.$ac_ext
4210 if $ac_preproc_ok; then :
4211 break
4214 done
4215 ac_cv_prog_CPP=$CPP
4218 CPP=$ac_cv_prog_CPP
4219 else
4220 ac_cv_prog_CPP=$CPP
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4223 $as_echo "$CPP" >&6; }
4224 ac_preproc_ok=false
4225 for ac_c_preproc_warn_flag in '' yes
4227 # Use a header file that comes with gcc, so configuring glibc
4228 # with a fresh cross-compiler works.
4229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4230 # <limits.h> exists even on freestanding compilers.
4231 # On the NeXT, cc -E runs the code through the compiler's parser,
4232 # not just through cpp. "Syntax error" is here to catch this case.
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235 #ifdef __STDC__
4236 # include <limits.h>
4237 #else
4238 # include <assert.h>
4239 #endif
4240 Syntax error
4241 _ACEOF
4242 if ac_fn_c_try_cpp "$LINENO"; then :
4244 else
4245 # Broken: fails on valid input.
4246 continue
4248 rm -f conftest.err conftest.i conftest.$ac_ext
4250 # OK, works on sane cases. Now check whether nonexistent headers
4251 # can be detected and how.
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #include <ac_nonexistent.h>
4255 _ACEOF
4256 if ac_fn_c_try_cpp "$LINENO"; then :
4257 # Broken: success on invalid input.
4258 continue
4259 else
4260 # Passes both tests.
4261 ac_preproc_ok=:
4262 break
4264 rm -f conftest.err conftest.i conftest.$ac_ext
4266 done
4267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4268 rm -f conftest.i conftest.err conftest.$ac_ext
4269 if $ac_preproc_ok; then :
4271 else
4272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4274 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4275 See \`config.log' for more details" "$LINENO" 5; }
4278 ac_ext=c
4279 ac_cpp='$CPP $CPPFLAGS'
4280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4286 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4287 if ${ac_cv_path_GREP+:} false; then :
4288 $as_echo_n "(cached) " >&6
4289 else
4290 if test -z "$GREP"; then
4291 ac_path_GREP_found=false
4292 # Loop through the user's path and test for each of PROGNAME-LIST
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_prog in grep ggrep; do
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4301 as_fn_executable_p "$ac_path_GREP" || continue
4302 # Check for GNU ac_path_GREP and select it if it is found.
4303 # Check for GNU $ac_path_GREP
4304 case `"$ac_path_GREP" --version 2>&1` in
4305 *GNU*)
4306 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4308 ac_count=0
4309 $as_echo_n 0123456789 >"conftest.in"
4310 while :
4312 cat "conftest.in" "conftest.in" >"conftest.tmp"
4313 mv "conftest.tmp" "conftest.in"
4314 cp "conftest.in" "conftest.nl"
4315 $as_echo 'GREP' >> "conftest.nl"
4316 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4318 as_fn_arith $ac_count + 1 && ac_count=$as_val
4319 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4320 # Best one so far, save it but keep looking for a better one
4321 ac_cv_path_GREP="$ac_path_GREP"
4322 ac_path_GREP_max=$ac_count
4324 # 10*(2^10) chars as input seems more than enough
4325 test $ac_count -gt 10 && break
4326 done
4327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4328 esac
4330 $ac_path_GREP_found && break 3
4331 done
4332 done
4333 done
4334 IFS=$as_save_IFS
4335 if test -z "$ac_cv_path_GREP"; then
4336 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4338 else
4339 ac_cv_path_GREP=$GREP
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4344 $as_echo "$ac_cv_path_GREP" >&6; }
4345 GREP="$ac_cv_path_GREP"
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4349 $as_echo_n "checking for egrep... " >&6; }
4350 if ${ac_cv_path_EGREP+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4354 then ac_cv_path_EGREP="$GREP -E"
4355 else
4356 if test -z "$EGREP"; then
4357 ac_path_EGREP_found=false
4358 # Loop through the user's path and test for each of PROGNAME-LIST
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_prog in egrep; do
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4367 as_fn_executable_p "$ac_path_EGREP" || continue
4368 # Check for GNU ac_path_EGREP and select it if it is found.
4369 # Check for GNU $ac_path_EGREP
4370 case `"$ac_path_EGREP" --version 2>&1` in
4371 *GNU*)
4372 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4374 ac_count=0
4375 $as_echo_n 0123456789 >"conftest.in"
4376 while :
4378 cat "conftest.in" "conftest.in" >"conftest.tmp"
4379 mv "conftest.tmp" "conftest.in"
4380 cp "conftest.in" "conftest.nl"
4381 $as_echo 'EGREP' >> "conftest.nl"
4382 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4384 as_fn_arith $ac_count + 1 && ac_count=$as_val
4385 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4386 # Best one so far, save it but keep looking for a better one
4387 ac_cv_path_EGREP="$ac_path_EGREP"
4388 ac_path_EGREP_max=$ac_count
4390 # 10*(2^10) chars as input seems more than enough
4391 test $ac_count -gt 10 && break
4392 done
4393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4394 esac
4396 $ac_path_EGREP_found && break 3
4397 done
4398 done
4399 done
4400 IFS=$as_save_IFS
4401 if test -z "$ac_cv_path_EGREP"; then
4402 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4404 else
4405 ac_cv_path_EGREP=$EGREP
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4411 $as_echo "$ac_cv_path_EGREP" >&6; }
4412 EGREP="$ac_cv_path_EGREP"
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4416 $as_echo_n "checking for ANSI C header files... " >&6; }
4417 if ${ac_cv_header_stdc+:} false; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4422 #include <stdlib.h>
4423 #include <stdarg.h>
4424 #include <string.h>
4425 #include <float.h>
4428 main ()
4432 return 0;
4434 _ACEOF
4435 if ac_fn_c_try_compile "$LINENO"; then :
4436 ac_cv_header_stdc=yes
4437 else
4438 ac_cv_header_stdc=no
4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 if test $ac_cv_header_stdc = yes; then
4443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <string.h>
4448 _ACEOF
4449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4450 $EGREP "memchr" >/dev/null 2>&1; then :
4452 else
4453 ac_cv_header_stdc=no
4455 rm -f conftest*
4459 if test $ac_cv_header_stdc = yes; then
4460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463 #include <stdlib.h>
4465 _ACEOF
4466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4467 $EGREP "free" >/dev/null 2>&1; then :
4469 else
4470 ac_cv_header_stdc=no
4472 rm -f conftest*
4476 if test $ac_cv_header_stdc = yes; then
4477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4478 if test "$cross_compiling" = yes; then :
4480 else
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #include <ctype.h>
4484 #include <stdlib.h>
4485 #if ((' ' & 0x0FF) == 0x020)
4486 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4487 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4488 #else
4489 # define ISLOWER(c) \
4490 (('a' <= (c) && (c) <= 'i') \
4491 || ('j' <= (c) && (c) <= 'r') \
4492 || ('s' <= (c) && (c) <= 'z'))
4493 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4494 #endif
4496 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4498 main ()
4500 int i;
4501 for (i = 0; i < 256; i++)
4502 if (XOR (islower (i), ISLOWER (i))
4503 || toupper (i) != TOUPPER (i))
4504 return 2;
4505 return 0;
4507 _ACEOF
4508 if ac_fn_c_try_run "$LINENO"; then :
4510 else
4511 ac_cv_header_stdc=no
4513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4514 conftest.$ac_objext conftest.beam conftest.$ac_ext
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4520 $as_echo "$ac_cv_header_stdc" >&6; }
4521 if test $ac_cv_header_stdc = yes; then
4523 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4527 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4528 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4529 inttypes.h stdint.h unistd.h
4530 do :
4531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4532 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4534 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4535 cat >>confdefs.h <<_ACEOF
4536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4537 _ACEOF
4541 done
4545 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4546 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4547 MINIX=yes
4548 else
4549 MINIX=
4553 if test "$MINIX" = yes; then
4555 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4558 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4561 $as_echo "#define _MINIX 1" >>confdefs.h
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4567 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4568 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4574 # define __EXTENSIONS__ 1
4575 $ac_includes_default
4577 main ()
4581 return 0;
4583 _ACEOF
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585 ac_cv_safe_to_define___extensions__=yes
4586 else
4587 ac_cv_safe_to_define___extensions__=no
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4592 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4593 test $ac_cv_safe_to_define___extensions__ = yes &&
4594 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4596 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4598 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4600 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4602 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4606 # See if makeinfo has been installed and is modern enough
4607 # that we can use it.
4609 # Extract the first word of "makeinfo", so it can be a program name with args.
4610 set dummy makeinfo; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if ${ac_cv_prog_MAKEINFO+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 if test -n "$MAKEINFO"; then
4617 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626 ac_cv_prog_MAKEINFO="makeinfo"
4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4630 done
4631 done
4632 IFS=$as_save_IFS
4636 MAKEINFO=$ac_cv_prog_MAKEINFO
4637 if test -n "$MAKEINFO"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4639 $as_echo "$MAKEINFO" >&6; }
4640 else
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4646 if test -n "$MAKEINFO"; then
4647 # Found it, now check the version.
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4649 $as_echo_n "checking for modern makeinfo... " >&6; }
4650 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4654 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4656 case $ac_prog_version in
4657 '') gcc_cv_prog_makeinfo_modern=no;;
4658 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4659 *) gcc_cv_prog_makeinfo_modern=no;;
4660 esac
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4664 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4665 else
4666 gcc_cv_prog_makeinfo_modern=no
4668 if test $gcc_cv_prog_makeinfo_modern = no; then
4669 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4672 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4673 BUILD_INFO_TRUE=
4674 BUILD_INFO_FALSE='#'
4675 else
4676 BUILD_INFO_TRUE='#'
4677 BUILD_INFO_FALSE=
4683 # Check whether --with-bugurl was given.
4684 if test "${with_bugurl+set}" = set; then :
4685 withval=$with_bugurl; case "$withval" in
4686 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
4687 no) BUGURL=
4689 *) BUGURL="$withval"
4691 esac
4692 else
4693 BUGURL="https://gcc.gnu.org/bugs/"
4697 case ${BUGURL} in
4699 REPORT_BUGS_TO=
4700 REPORT_BUGS_TEXI=
4703 REPORT_BUGS_TO="<$BUGURL>"
4704 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4706 esac;
4711 # Configure libtool
4712 case `pwd` in
4713 *\ * | *\ *)
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4715 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4716 esac
4720 macro_version='2.2.7a'
4721 macro_revision='1.3134'
4735 ltmain="$ac_aux_dir/ltmain.sh"
4737 # Backslashify metacharacters that are still active within
4738 # double-quoted strings.
4739 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4741 # Same as above, but do not quote variable references.
4742 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4744 # Sed substitution to delay expansion of an escaped shell variable in a
4745 # double_quote_subst'ed string.
4746 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4748 # Sed substitution to delay expansion of an escaped single quote.
4749 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4751 # Sed substitution to avoid accidental globbing in evaled expressions
4752 no_glob_subst='s/\*/\\\*/g'
4754 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4755 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4756 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4759 $as_echo_n "checking how to print strings... " >&6; }
4760 # Test print first, because it will be a builtin if present.
4761 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4762 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4763 ECHO='print -r --'
4764 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4765 ECHO='printf %s\n'
4766 else
4767 # Use this function as a fallback that always works.
4768 func_fallback_echo ()
4770 eval 'cat <<_LTECHO_EOF
4772 _LTECHO_EOF'
4774 ECHO='func_fallback_echo'
4777 # func_echo_all arg...
4778 # Invoke $ECHO with all args, space-separated.
4779 func_echo_all ()
4781 $ECHO ""
4784 case "$ECHO" in
4785 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4786 $as_echo "printf" >&6; } ;;
4787 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4788 $as_echo "print -r" >&6; } ;;
4789 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4790 $as_echo "cat" >&6; } ;;
4791 esac
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4807 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4808 if ${ac_cv_path_SED+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4812 for ac_i in 1 2 3 4 5 6 7; do
4813 ac_script="$ac_script$as_nl$ac_script"
4814 done
4815 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4816 { ac_script=; unset ac_script;}
4817 if test -z "$SED"; then
4818 ac_path_SED_found=false
4819 # Loop through the user's path and test for each of PROGNAME-LIST
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_prog in sed gsed; do
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4828 as_fn_executable_p "$ac_path_SED" || continue
4829 # Check for GNU ac_path_SED and select it if it is found.
4830 # Check for GNU $ac_path_SED
4831 case `"$ac_path_SED" --version 2>&1` in
4832 *GNU*)
4833 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4835 ac_count=0
4836 $as_echo_n 0123456789 >"conftest.in"
4837 while :
4839 cat "conftest.in" "conftest.in" >"conftest.tmp"
4840 mv "conftest.tmp" "conftest.in"
4841 cp "conftest.in" "conftest.nl"
4842 $as_echo '' >> "conftest.nl"
4843 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4845 as_fn_arith $ac_count + 1 && ac_count=$as_val
4846 if test $ac_count -gt ${ac_path_SED_max-0}; then
4847 # Best one so far, save it but keep looking for a better one
4848 ac_cv_path_SED="$ac_path_SED"
4849 ac_path_SED_max=$ac_count
4851 # 10*(2^10) chars as input seems more than enough
4852 test $ac_count -gt 10 && break
4853 done
4854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4855 esac
4857 $ac_path_SED_found && break 3
4858 done
4859 done
4860 done
4861 IFS=$as_save_IFS
4862 if test -z "$ac_cv_path_SED"; then
4863 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4865 else
4866 ac_cv_path_SED=$SED
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4871 $as_echo "$ac_cv_path_SED" >&6; }
4872 SED="$ac_cv_path_SED"
4873 rm -f conftest.sed
4875 test -z "$SED" && SED=sed
4876 Xsed="$SED -e 1s/^X//"
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4889 $as_echo_n "checking for fgrep... " >&6; }
4890 if ${ac_cv_path_FGREP+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4894 then ac_cv_path_FGREP="$GREP -F"
4895 else
4896 if test -z "$FGREP"; then
4897 ac_path_FGREP_found=false
4898 # Loop through the user's path and test for each of PROGNAME-LIST
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_prog in fgrep; do
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4907 as_fn_executable_p "$ac_path_FGREP" || continue
4908 # Check for GNU ac_path_FGREP and select it if it is found.
4909 # Check for GNU $ac_path_FGREP
4910 case `"$ac_path_FGREP" --version 2>&1` in
4911 *GNU*)
4912 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4914 ac_count=0
4915 $as_echo_n 0123456789 >"conftest.in"
4916 while :
4918 cat "conftest.in" "conftest.in" >"conftest.tmp"
4919 mv "conftest.tmp" "conftest.in"
4920 cp "conftest.in" "conftest.nl"
4921 $as_echo 'FGREP' >> "conftest.nl"
4922 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4924 as_fn_arith $ac_count + 1 && ac_count=$as_val
4925 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4926 # Best one so far, save it but keep looking for a better one
4927 ac_cv_path_FGREP="$ac_path_FGREP"
4928 ac_path_FGREP_max=$ac_count
4930 # 10*(2^10) chars as input seems more than enough
4931 test $ac_count -gt 10 && break
4932 done
4933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4934 esac
4936 $ac_path_FGREP_found && break 3
4937 done
4938 done
4939 done
4940 IFS=$as_save_IFS
4941 if test -z "$ac_cv_path_FGREP"; then
4942 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4944 else
4945 ac_cv_path_FGREP=$FGREP
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4951 $as_echo "$ac_cv_path_FGREP" >&6; }
4952 FGREP="$ac_cv_path_FGREP"
4955 test -z "$GREP" && GREP=grep
4975 # Check whether --with-gnu-ld was given.
4976 if test "${with_gnu_ld+set}" = set; then :
4977 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4978 else
4979 with_gnu_ld=no
4982 ac_prog=ld
4983 if test "$GCC" = yes; then
4984 # Check if gcc -print-prog-name=ld gives a path.
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4986 $as_echo_n "checking for ld used by $CC... " >&6; }
4987 case $host in
4988 *-*-mingw*)
4989 # gcc leaves a trailing carriage return which upsets mingw
4990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4993 esac
4994 case $ac_prog in
4995 # Accept absolute paths.
4996 [\\/]* | ?:[\\/]*)
4997 re_direlt='/[^/][^/]*/\.\./'
4998 # Canonicalize the pathname of ld
4999 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5000 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5001 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5002 done
5003 test -z "$LD" && LD="$ac_prog"
5006 # If it fails, then pretend we aren't using GCC.
5007 ac_prog=ld
5010 # If it is relative, then search for the first ld in PATH.
5011 with_gnu_ld=unknown
5013 esac
5014 elif test "$with_gnu_ld" = yes; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5016 $as_echo_n "checking for GNU ld... " >&6; }
5017 else
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5019 $as_echo_n "checking for non-GNU ld... " >&6; }
5021 if ${lt_cv_path_LD+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 if test -z "$LD"; then
5025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5026 for ac_dir in $PATH; do
5027 IFS="$lt_save_ifs"
5028 test -z "$ac_dir" && ac_dir=.
5029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5030 lt_cv_path_LD="$ac_dir/$ac_prog"
5031 # Check to see if the program is GNU ld. I'd rather use --version,
5032 # but apparently some variants of GNU ld only accept -v.
5033 # Break only if it was the GNU/non-GNU ld that we prefer.
5034 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5035 *GNU* | *'with BFD'*)
5036 test "$with_gnu_ld" != no && break
5039 test "$with_gnu_ld" != yes && break
5041 esac
5043 done
5044 IFS="$lt_save_ifs"
5045 else
5046 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5050 LD="$lt_cv_path_LD"
5051 if test -n "$LD"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5053 $as_echo "$LD" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5058 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5060 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5061 if ${lt_cv_prog_gnu_ld+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5065 case `$LD -v 2>&1 </dev/null` in
5066 *GNU* | *'with BFD'*)
5067 lt_cv_prog_gnu_ld=yes
5070 lt_cv_prog_gnu_ld=no
5072 esac
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5075 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5076 with_gnu_ld=$lt_cv_prog_gnu_ld
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5087 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5088 if ${lt_cv_path_NM+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 if test -n "$NM"; then
5092 # Let the user override the nm to test.
5093 lt_nm_to_check="$NM"
5094 else
5095 lt_nm_to_check="${ac_tool_prefix}nm"
5096 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5097 lt_nm_to_check="$lt_nm_to_check nm"
5100 for lt_tmp_nm in "$lt_nm_to_check"; do
5101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5102 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5103 IFS="$lt_save_ifs"
5104 test -z "$ac_dir" && ac_dir=.
5105 # Strip out any user-provided options from the nm to test twice,
5106 # the first time to test to see if nm (rather than its options) has
5107 # an explicit path, the second time to yield a file which can be
5108 # nm'ed itself.
5109 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5110 case "$tmp_nm_path" in
5111 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5112 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5113 esac
5114 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5115 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5116 # Check to see if the nm accepts a BSD-compat flag.
5117 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5118 # nm: unknown option "B" ignored
5119 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5120 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5121 break
5124 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5125 *$tmp_nm*)
5126 lt_cv_path_NM="$tmp_nm -p"
5127 break
5130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5131 continue # so that we can try to find one that supports BSD flags
5133 esac
5135 esac
5137 done
5138 IFS="$lt_save_ifs"
5139 done
5140 : ${lt_cv_path_NM=no}
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5143 $as_echo "$lt_cv_path_NM" >&6; }
5144 if test "$lt_cv_path_NM" != "no"; then
5145 NM="$lt_cv_path_NM"
5146 else
5147 # Didn't find any BSD compatible name lister, look for dumpbin.
5148 if test -n "$DUMPBIN"; then :
5149 # Let the user override the test.
5150 else
5151 if test -n "$ac_tool_prefix"; then
5152 for ac_prog in dumpbin "link -dump"
5154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_DUMPBIN+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if test -n "$DUMPBIN"; then
5162 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5175 done
5176 done
5177 IFS=$as_save_IFS
5181 DUMPBIN=$ac_cv_prog_DUMPBIN
5182 if test -n "$DUMPBIN"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5184 $as_echo "$DUMPBIN" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5191 test -n "$DUMPBIN" && break
5192 done
5194 if test -z "$DUMPBIN"; then
5195 ac_ct_DUMPBIN=$DUMPBIN
5196 for ac_prog in dumpbin "link -dump"
5198 # Extract the first word of "$ac_prog", so it can be a program name with args.
5199 set dummy $ac_prog; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -n "$ac_ct_DUMPBIN"; then
5206 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5219 done
5220 done
5221 IFS=$as_save_IFS
5225 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5226 if test -n "$ac_ct_DUMPBIN"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5228 $as_echo "$ac_ct_DUMPBIN" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5235 test -n "$ac_ct_DUMPBIN" && break
5236 done
5238 if test "x$ac_ct_DUMPBIN" = x; then
5239 DUMPBIN=":"
5240 else
5241 case $cross_compiling:$ac_tool_warned in
5242 yes:)
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245 ac_tool_warned=yes ;;
5246 esac
5247 DUMPBIN=$ac_ct_DUMPBIN
5251 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5252 *COFF*)
5253 DUMPBIN="$DUMPBIN -symbols"
5256 DUMPBIN=:
5258 esac
5261 if test "$DUMPBIN" != ":"; then
5262 NM="$DUMPBIN"
5265 test -z "$NM" && NM=nm
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5273 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5274 if ${lt_cv_nm_interface+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 lt_cv_nm_interface="BSD nm"
5278 echo "int some_variable = 0;" > conftest.$ac_ext
5279 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5280 (eval "$ac_compile" 2>conftest.err)
5281 cat conftest.err >&5
5282 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5283 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5284 cat conftest.err >&5
5285 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5286 cat conftest.out >&5
5287 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5288 lt_cv_nm_interface="MS dumpbin"
5290 rm -f conftest*
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5293 $as_echo "$lt_cv_nm_interface" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5296 $as_echo_n "checking whether ln -s works... " >&6; }
5297 LN_S=$as_ln_s
5298 if test "$LN_S" = "ln -s"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5300 $as_echo "yes" >&6; }
5301 else
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5303 $as_echo "no, using $LN_S" >&6; }
5306 # find the maximum length of command line arguments
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5308 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5309 if ${lt_cv_sys_max_cmd_len+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5313 teststring="ABCD"
5315 case $build_os in
5316 msdosdjgpp*)
5317 # On DJGPP, this test can blow up pretty badly due to problems in libc
5318 # (any single argument exceeding 2000 bytes causes a buffer overrun
5319 # during glob expansion). Even if it were fixed, the result of this
5320 # check would be larger than it should be.
5321 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5324 gnu*)
5325 # Under GNU Hurd, this test is not required because there is
5326 # no limit to the length of command line arguments.
5327 # Libtool will interpret -1 as no limit whatsoever
5328 lt_cv_sys_max_cmd_len=-1;
5331 cygwin* | mingw* | cegcc*)
5332 # On Win9x/ME, this test blows up -- it succeeds, but takes
5333 # about 5 minutes as the teststring grows exponentially.
5334 # Worse, since 9x/ME are not pre-emptively multitasking,
5335 # you end up with a "frozen" computer, even though with patience
5336 # the test eventually succeeds (with a max line length of 256k).
5337 # Instead, let's just punt: use the minimum linelength reported by
5338 # all of the supported platforms: 8192 (on NT/2K/XP).
5339 lt_cv_sys_max_cmd_len=8192;
5342 mint*)
5343 # On MiNT this can take a long time and run out of memory.
5344 lt_cv_sys_max_cmd_len=8192;
5347 amigaos*)
5348 # On AmigaOS with pdksh, this test takes hours, literally.
5349 # So we just punt and use a minimum line length of 8192.
5350 lt_cv_sys_max_cmd_len=8192;
5353 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5354 # This has been around since 386BSD, at least. Likely further.
5355 if test -x /sbin/sysctl; then
5356 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5357 elif test -x /usr/sbin/sysctl; then
5358 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5359 else
5360 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5362 # And add a safety zone
5363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5367 interix*)
5368 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5369 lt_cv_sys_max_cmd_len=196608
5372 osf*)
5373 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5374 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5375 # nice to cause kernel panics so lets avoid the loop below.
5376 # First set a reasonable default.
5377 lt_cv_sys_max_cmd_len=16384
5379 if test -x /sbin/sysconfig; then
5380 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5381 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5382 esac
5385 sco3.2v5*)
5386 lt_cv_sys_max_cmd_len=102400
5388 sysv5* | sco5v6* | sysv4.2uw2*)
5389 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5390 if test -n "$kargmax"; then
5391 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5392 else
5393 lt_cv_sys_max_cmd_len=32768
5397 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5398 if test -n "$lt_cv_sys_max_cmd_len"; then
5399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5401 else
5402 # Make teststring a little bigger before we do anything with it.
5403 # a 1K string should be a reasonable start.
5404 for i in 1 2 3 4 5 6 7 8 ; do
5405 teststring=$teststring$teststring
5406 done
5407 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5408 # If test is not a shell built-in, we'll probably end up computing a
5409 # maximum length that is only half of the actual maximum length, but
5410 # we can't tell.
5411 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5412 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5413 test $i != 17 # 1/2 MB should be enough
5415 i=`expr $i + 1`
5416 teststring=$teststring$teststring
5417 done
5418 # Only check the string length outside the loop.
5419 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5420 teststring=
5421 # Add a significant safety factor because C++ compilers can tack on
5422 # massive amounts of additional arguments before passing them to the
5423 # linker. It appears as though 1/2 is a usable value.
5424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5427 esac
5431 if test -n $lt_cv_sys_max_cmd_len ; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5433 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5434 else
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5436 $as_echo "none" >&6; }
5438 max_cmd_len=$lt_cv_sys_max_cmd_len
5445 : ${CP="cp -f"}
5446 : ${MV="mv -f"}
5447 : ${RM="rm -f"}
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5450 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5451 # Try some XSI features
5452 xsi_shell=no
5453 ( _lt_dummy="a/b/c"
5454 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5455 = c,a/b,, \
5456 && eval 'test $(( 1 + 1 )) -eq 2 \
5457 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5458 && xsi_shell=yes
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5460 $as_echo "$xsi_shell" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5464 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5465 lt_shell_append=no
5466 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5467 >/dev/null 2>&1 \
5468 && lt_shell_append=yes
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5470 $as_echo "$lt_shell_append" >&6; }
5473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5474 lt_unset=unset
5475 else
5476 lt_unset=false
5483 # test EBCDIC or ASCII
5484 case `echo X|tr X '\101'` in
5485 A) # ASCII based system
5486 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5487 lt_SP2NL='tr \040 \012'
5488 lt_NL2SP='tr \015\012 \040\040'
5490 *) # EBCDIC based system
5491 lt_SP2NL='tr \100 \n'
5492 lt_NL2SP='tr \r\n \100\100'
5494 esac
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5505 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5506 if ${lt_cv_ld_reload_flag+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 lt_cv_ld_reload_flag='-r'
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5512 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5513 reload_flag=$lt_cv_ld_reload_flag
5514 case $reload_flag in
5515 "" | " "*) ;;
5516 *) reload_flag=" $reload_flag" ;;
5517 esac
5518 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5519 case $host_os in
5520 darwin*)
5521 if test "$GCC" = yes; then
5522 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5523 else
5524 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5527 esac
5537 if test -n "$ac_tool_prefix"; then
5538 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5539 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_OBJDUMP+:} false; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 if test -n "$OBJDUMP"; then
5546 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 break 2
5559 done
5560 done
5561 IFS=$as_save_IFS
5565 OBJDUMP=$ac_cv_prog_OBJDUMP
5566 if test -n "$OBJDUMP"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5568 $as_echo "$OBJDUMP" >&6; }
5569 else
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5576 if test -z "$ac_cv_prog_OBJDUMP"; then
5577 ac_ct_OBJDUMP=$OBJDUMP
5578 # Extract the first word of "objdump", so it can be a program name with args.
5579 set dummy objdump; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if test -n "$ac_ct_OBJDUMP"; then
5586 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5595 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5599 done
5600 done
5601 IFS=$as_save_IFS
5605 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5606 if test -n "$ac_ct_OBJDUMP"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5608 $as_echo "$ac_ct_OBJDUMP" >&6; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5614 if test "x$ac_ct_OBJDUMP" = x; then
5615 OBJDUMP="false"
5616 else
5617 case $cross_compiling:$ac_tool_warned in
5618 yes:)
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5621 ac_tool_warned=yes ;;
5622 esac
5623 OBJDUMP=$ac_ct_OBJDUMP
5625 else
5626 OBJDUMP="$ac_cv_prog_OBJDUMP"
5629 test -z "$OBJDUMP" && OBJDUMP=objdump
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5640 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5641 if ${lt_cv_deplibs_check_method+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 lt_cv_file_magic_cmd='$MAGIC_CMD'
5645 lt_cv_file_magic_test_file=
5646 lt_cv_deplibs_check_method='unknown'
5647 # Need to set the preceding variable on all platforms that support
5648 # interlibrary dependencies.
5649 # 'none' -- dependencies not supported.
5650 # `unknown' -- same as none, but documents that we really don't know.
5651 # 'pass_all' -- all dependencies passed with no checks.
5652 # 'test_compile' -- check by making test program.
5653 # 'file_magic [[regex]]' -- check by looking for files in library path
5654 # which responds to the $file_magic_cmd with a given extended regex.
5655 # If you have `file' or equivalent on your system and you're not sure
5656 # whether `pass_all' will *always* work, you probably want this one.
5658 case $host_os in
5659 aix[4-9]*)
5660 lt_cv_deplibs_check_method=pass_all
5663 beos*)
5664 lt_cv_deplibs_check_method=pass_all
5667 bsdi[45]*)
5668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5669 lt_cv_file_magic_cmd='/usr/bin/file -L'
5670 lt_cv_file_magic_test_file=/shlib/libc.so
5673 cygwin*)
5674 # func_win32_libid is a shell function defined in ltmain.sh
5675 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5676 lt_cv_file_magic_cmd='func_win32_libid'
5679 mingw* | pw32*)
5680 # Base MSYS/MinGW do not provide the 'file' command needed by
5681 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5682 # unless we find 'file', for example because we are cross-compiling.
5683 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5684 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5685 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5686 lt_cv_file_magic_cmd='func_win32_libid'
5687 else
5688 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5689 lt_cv_file_magic_cmd='$OBJDUMP -f'
5693 cegcc*)
5694 # use the weaker test based on 'objdump'. See mingw*.
5695 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5696 lt_cv_file_magic_cmd='$OBJDUMP -f'
5699 darwin* | rhapsody*)
5700 lt_cv_deplibs_check_method=pass_all
5703 freebsd* | dragonfly*)
5704 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5705 case $host_cpu in
5706 i*86 )
5707 # Not sure whether the presence of OpenBSD here was a mistake.
5708 # Let's accept both of them until this is cleared up.
5709 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5710 lt_cv_file_magic_cmd=/usr/bin/file
5711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5713 esac
5714 else
5715 lt_cv_deplibs_check_method=pass_all
5719 gnu*)
5720 lt_cv_deplibs_check_method=pass_all
5723 haiku*)
5724 lt_cv_deplibs_check_method=pass_all
5727 hpux10.20* | hpux11*)
5728 lt_cv_file_magic_cmd=/usr/bin/file
5729 case $host_cpu in
5730 ia64*)
5731 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5732 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5734 hppa*64*)
5735 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]'
5736 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5740 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5742 esac
5745 interix[3-9]*)
5746 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5750 irix5* | irix6* | nonstopux*)
5751 case $LD in
5752 *-32|*"-32 ") libmagic=32-bit;;
5753 *-n32|*"-n32 ") libmagic=N32;;
5754 *-64|*"-64 ") libmagic=64-bit;;
5755 *) libmagic=never-match;;
5756 esac
5757 lt_cv_deplibs_check_method=pass_all
5760 # This must be Linux ELF.
5761 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5762 lt_cv_deplibs_check_method=pass_all
5765 netbsd*)
5766 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5768 else
5769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5773 newos6*)
5774 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5775 lt_cv_file_magic_cmd=/usr/bin/file
5776 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5779 *nto* | *qnx*)
5780 lt_cv_deplibs_check_method=pass_all
5783 openbsd*)
5784 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5786 else
5787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5791 osf3* | osf4* | osf5*)
5792 lt_cv_deplibs_check_method=pass_all
5795 rdos*)
5796 lt_cv_deplibs_check_method=pass_all
5799 solaris*)
5800 lt_cv_deplibs_check_method=pass_all
5803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5804 lt_cv_deplibs_check_method=pass_all
5807 sysv4 | sysv4.3*)
5808 case $host_vendor in
5809 motorola)
5810 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]'
5811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5813 ncr)
5814 lt_cv_deplibs_check_method=pass_all
5816 sequent)
5817 lt_cv_file_magic_cmd='/bin/file'
5818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5820 sni)
5821 lt_cv_file_magic_cmd='/bin/file'
5822 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5823 lt_cv_file_magic_test_file=/lib/libc.so
5825 siemens)
5826 lt_cv_deplibs_check_method=pass_all
5829 lt_cv_deplibs_check_method=pass_all
5831 esac
5834 tpf*)
5835 lt_cv_deplibs_check_method=pass_all
5837 vxworks*)
5838 # Assume VxWorks cross toolchains are built on Linux, possibly
5839 # as canadian for Windows hosts.
5840 lt_cv_deplibs_check_method=pass_all
5842 esac
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5846 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5847 file_magic_cmd=$lt_cv_file_magic_cmd
5848 deplibs_check_method=$lt_cv_deplibs_check_method
5849 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5862 plugin_option=
5863 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5864 for plugin in $plugin_names; do
5865 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5866 if test x$plugin_so = x$plugin; then
5867 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5869 if test x$plugin_so != x$plugin; then
5870 plugin_option="--plugin $plugin_so"
5871 break
5873 done
5875 if test -n "$ac_tool_prefix"; then
5876 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5877 set dummy ${ac_tool_prefix}ar; ac_word=$2
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 $as_echo_n "checking for $ac_word... " >&6; }
5880 if ${ac_cv_prog_AR+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 if test -n "$AR"; then
5884 ac_cv_prog_AR="$AR" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893 ac_cv_prog_AR="${ac_tool_prefix}ar"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5897 done
5898 done
5899 IFS=$as_save_IFS
5903 AR=$ac_cv_prog_AR
5904 if test -n "$AR"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5906 $as_echo "$AR" >&6; }
5907 else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5914 if test -z "$ac_cv_prog_AR"; then
5915 ac_ct_AR=$AR
5916 # Extract the first word of "ar", so it can be a program name with args.
5917 set dummy ar; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test -n "$ac_ct_AR"; then
5924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_ac_ct_AR="ar"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5937 done
5938 done
5939 IFS=$as_save_IFS
5943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5944 if test -n "$ac_ct_AR"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5946 $as_echo "$ac_ct_AR" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5952 if test "x$ac_ct_AR" = x; then
5953 AR="false"
5954 else
5955 case $cross_compiling:$ac_tool_warned in
5956 yes:)
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5960 esac
5961 AR=$ac_ct_AR
5963 else
5964 AR="$ac_cv_prog_AR"
5967 test -z "$AR" && AR=ar
5968 if test -n "$plugin_option"; then
5969 if $AR --help 2>&1 | grep -q "\--plugin"; then
5970 touch conftest.c
5971 $AR $plugin_option rc conftest.a conftest.c
5972 if test "$?" != 0; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5974 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5975 else
5976 AR="$AR $plugin_option"
5978 rm -f conftest.*
5981 test -z "$AR_FLAGS" && AR_FLAGS=cru
5993 if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5995 set dummy ${ac_tool_prefix}strip; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_STRIP+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -n "$STRIP"; then
6002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6015 done
6016 done
6017 IFS=$as_save_IFS
6021 STRIP=$ac_cv_prog_STRIP
6022 if test -n "$STRIP"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6024 $as_echo "$STRIP" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6032 if test -z "$ac_cv_prog_STRIP"; then
6033 ac_ct_STRIP=$STRIP
6034 # Extract the first word of "strip", so it can be a program name with args.
6035 set dummy strip; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 if test -n "$ac_ct_STRIP"; then
6042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_STRIP="strip"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6055 done
6056 done
6057 IFS=$as_save_IFS
6061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6062 if test -n "$ac_ct_STRIP"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6064 $as_echo "$ac_ct_STRIP" >&6; }
6065 else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6070 if test "x$ac_ct_STRIP" = x; then
6071 STRIP=":"
6072 else
6073 case $cross_compiling:$ac_tool_warned in
6074 yes:)
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077 ac_tool_warned=yes ;;
6078 esac
6079 STRIP=$ac_ct_STRIP
6081 else
6082 STRIP="$ac_cv_prog_STRIP"
6085 test -z "$STRIP" && STRIP=:
6092 if test -n "$ac_tool_prefix"; then
6093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if ${ac_cv_prog_RANLIB+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 if test -n "$RANLIB"; then
6101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6114 done
6115 done
6116 IFS=$as_save_IFS
6120 RANLIB=$ac_cv_prog_RANLIB
6121 if test -n "$RANLIB"; then
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6123 $as_echo "$RANLIB" >&6; }
6124 else
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126 $as_echo "no" >&6; }
6131 if test -z "$ac_cv_prog_RANLIB"; then
6132 ac_ct_RANLIB=$RANLIB
6133 # Extract the first word of "ranlib", so it can be a program name with args.
6134 set dummy ranlib; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6138 $as_echo_n "(cached) " >&6
6139 else
6140 if test -n "$ac_ct_RANLIB"; then
6141 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6142 else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150 ac_cv_prog_ac_ct_RANLIB="ranlib"
6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 break 2
6154 done
6155 done
6156 IFS=$as_save_IFS
6160 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6161 if test -n "$ac_ct_RANLIB"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6163 $as_echo "$ac_ct_RANLIB" >&6; }
6164 else
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6169 if test "x$ac_ct_RANLIB" = x; then
6170 RANLIB=":"
6171 else
6172 case $cross_compiling:$ac_tool_warned in
6173 yes:)
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6176 ac_tool_warned=yes ;;
6177 esac
6178 RANLIB=$ac_ct_RANLIB
6180 else
6181 RANLIB="$ac_cv_prog_RANLIB"
6184 test -z "$RANLIB" && RANLIB=:
6185 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6186 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6187 RANLIB="$RANLIB $plugin_option"
6196 # Determine commands to create old-style static archives.
6197 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6198 old_postinstall_cmds='chmod 644 $oldlib'
6199 old_postuninstall_cmds=
6201 if test -n "$RANLIB"; then
6202 case $host_os in
6203 openbsd*)
6204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6207 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6209 esac
6210 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6213 case $host_os in
6214 darwin*)
6215 lock_old_archive_extraction=yes ;;
6217 lock_old_archive_extraction=no ;;
6218 esac
6258 # If no C compiler was specified, use CC.
6259 LTCC=${LTCC-"$CC"}
6261 # If no C compiler flags were specified, use CFLAGS.
6262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6264 # Allow CC to be a program name with arguments.
6265 compiler=$CC
6268 # Check for command to grab the raw symbol name followed by C symbol from nm.
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6270 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6271 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6275 # These are sane defaults that work on at least a few old systems.
6276 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6278 # Character class describing NM global symbol codes.
6279 symcode='[BCDEGRST]'
6281 # Regexp to match symbols that can be accessed directly from C.
6282 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6284 # Define system-specific variables.
6285 case $host_os in
6286 aix*)
6287 symcode='[BCDT]'
6289 cygwin* | mingw* | pw32* | cegcc*)
6290 symcode='[ABCDGISTW]'
6292 hpux*)
6293 if test "$host_cpu" = ia64; then
6294 symcode='[ABCDEGRST]'
6297 irix* | nonstopux*)
6298 symcode='[BCDEGRST]'
6300 osf*)
6301 symcode='[BCDEGQRST]'
6303 solaris*)
6304 symcode='[BCDRT]'
6306 sco3.2v5*)
6307 symcode='[DT]'
6309 sysv4.2uw2*)
6310 symcode='[DT]'
6312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6313 symcode='[ABDT]'
6315 sysv4)
6316 symcode='[DFNSTU]'
6318 esac
6320 # If we're using GNU nm, then use its standard symbol codes.
6321 case `$NM -V 2>&1` in
6322 *GNU* | *'with BFD'*)
6323 symcode='[ABCDGIRSTW]' ;;
6324 esac
6326 # Transform an extracted symbol line into a proper C declaration.
6327 # Some systems (esp. on ia64) link data and code symbols differently,
6328 # so use this general approach.
6329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6331 # Transform an extracted symbol line into symbol name and symbol address
6332 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6333 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'"
6335 # Handle CRLF in mingw tool chain
6336 opt_cr=
6337 case $build_os in
6338 mingw*)
6339 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6341 esac
6343 # Try without a prefix underscore, then with it.
6344 for ac_symprfx in "" "_"; do
6346 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6347 symxfrm="\\1 $ac_symprfx\\2 \\2"
6349 # Write the raw and C identifiers.
6350 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6351 # Fake it for dumpbin and say T for any non-static function
6352 # and D for any global variable.
6353 # Also find C++ and __fastcall symbols from MSVC++,
6354 # which start with @ or ?.
6355 lt_cv_sys_global_symbol_pipe="$AWK '"\
6356 " {last_section=section; section=\$ 3};"\
6357 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6358 " \$ 0!~/External *\|/{next};"\
6359 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6360 " {if(hide[section]) next};"\
6361 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6362 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6363 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6364 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6365 " ' prfx=^$ac_symprfx"
6366 else
6367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6370 # Check to see that the pipe works correctly.
6371 pipe_works=no
6373 rm -f conftest*
6374 cat > conftest.$ac_ext <<_LT_EOF
6375 #ifdef __cplusplus
6376 extern "C" {
6377 #endif
6378 char nm_test_var;
6379 void nm_test_func(void);
6380 void nm_test_func(void){}
6381 #ifdef __cplusplus
6383 #endif
6384 int main(){nm_test_var='a';nm_test_func();return(0);}
6385 _LT_EOF
6387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6388 (eval $ac_compile) 2>&5
6389 ac_status=$?
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; }; then
6392 # Now try to grab the symbols.
6393 nlist=conftest.nm
6394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6395 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6396 ac_status=$?
6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6398 test $ac_status = 0; } && test -s "$nlist"; then
6399 # Try sorting and uniquifying the output.
6400 if sort "$nlist" | uniq > "$nlist"T; then
6401 mv -f "$nlist"T "$nlist"
6402 else
6403 rm -f "$nlist"T
6406 # Make sure that we snagged all the symbols we need.
6407 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6408 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6409 cat <<_LT_EOF > conftest.$ac_ext
6410 #ifdef __cplusplus
6411 extern "C" {
6412 #endif
6414 _LT_EOF
6415 # Now generate the symbol file.
6416 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6418 cat <<_LT_EOF >> conftest.$ac_ext
6420 /* The mapping between symbol names and symbols. */
6421 const struct {
6422 const char *name;
6423 void *address;
6425 lt__PROGRAM__LTX_preloaded_symbols[] =
6427 { "@PROGRAM@", (void *) 0 },
6428 _LT_EOF
6429 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6430 cat <<\_LT_EOF >> conftest.$ac_ext
6431 {0, (void *) 0}
6434 /* This works around a problem in FreeBSD linker */
6435 #ifdef FREEBSD_WORKAROUND
6436 static const void *lt_preloaded_setup() {
6437 return lt__PROGRAM__LTX_preloaded_symbols;
6439 #endif
6441 #ifdef __cplusplus
6443 #endif
6444 _LT_EOF
6445 # Now try linking the two files.
6446 mv conftest.$ac_objext conftstm.$ac_objext
6447 lt_save_LIBS="$LIBS"
6448 lt_save_CFLAGS="$CFLAGS"
6449 LIBS="conftstm.$ac_objext"
6450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6452 (eval $ac_link) 2>&5
6453 ac_status=$?
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6456 pipe_works=yes
6458 LIBS="$lt_save_LIBS"
6459 CFLAGS="$lt_save_CFLAGS"
6460 else
6461 echo "cannot find nm_test_func in $nlist" >&5
6463 else
6464 echo "cannot find nm_test_var in $nlist" >&5
6466 else
6467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6469 else
6470 echo "$progname: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6473 rm -rf conftest* conftst*
6475 # Do not use the global_symbol_pipe unless it works.
6476 if test "$pipe_works" = yes; then
6477 break
6478 else
6479 lt_cv_sys_global_symbol_pipe=
6481 done
6485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6486 lt_cv_sys_global_symbol_to_cdecl=
6488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6490 $as_echo "failed" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6493 $as_echo "ok" >&6; }
6517 # Check whether --enable-libtool-lock was given.
6518 if test "${enable_libtool_lock+set}" = set; then :
6519 enableval=$enable_libtool_lock;
6522 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6524 # Some flags need to be propagated to the compiler or linker for good
6525 # libtool support.
6526 case $host in
6527 ia64-*-hpux*)
6528 # Find out which ABI we are using.
6529 echo 'int i;' > conftest.$ac_ext
6530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6531 (eval $ac_compile) 2>&5
6532 ac_status=$?
6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534 test $ac_status = 0; }; then
6535 case `/usr/bin/file conftest.$ac_objext` in
6536 *ELF-32*)
6537 HPUX_IA64_MODE="32"
6539 *ELF-64*)
6540 HPUX_IA64_MODE="64"
6542 esac
6544 rm -rf conftest*
6546 *-*-irix6*)
6547 # Find out which ABI we are using.
6548 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6550 (eval $ac_compile) 2>&5
6551 ac_status=$?
6552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553 test $ac_status = 0; }; then
6554 if test "$lt_cv_prog_gnu_ld" = yes; then
6555 case `/usr/bin/file conftest.$ac_objext` in
6556 *32-bit*)
6557 LD="${LD-ld} -melf32bsmip"
6559 *N32*)
6560 LD="${LD-ld} -melf32bmipn32"
6562 *64-bit*)
6563 LD="${LD-ld} -melf64bmip"
6565 esac
6566 else
6567 case `/usr/bin/file conftest.$ac_objext` in
6568 *32-bit*)
6569 LD="${LD-ld} -32"
6571 *N32*)
6572 LD="${LD-ld} -n32"
6574 *64-bit*)
6575 LD="${LD-ld} -64"
6577 esac
6580 rm -rf conftest*
6583 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6584 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6585 # Find out which ABI we are using.
6586 echo 'int i;' > conftest.$ac_ext
6587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6588 (eval $ac_compile) 2>&5
6589 ac_status=$?
6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591 test $ac_status = 0; }; then
6592 case `/usr/bin/file conftest.o` in
6593 *32-bit*)
6594 case $host in
6595 x86_64-*kfreebsd*-gnu)
6596 LD="${LD-ld} -m elf_i386_fbsd"
6598 x86_64-*linux*)
6599 case `/usr/bin/file conftest.o` in
6600 *x86-64*)
6601 LD="${LD-ld} -m elf32_x86_64"
6604 LD="${LD-ld} -m elf_i386"
6606 esac
6608 powerpc64le-*linux*)
6609 LD="${LD-ld} -m elf32lppclinux"
6611 powerpc64-*linux*)
6612 LD="${LD-ld} -m elf32ppclinux"
6614 s390x-*linux*)
6615 LD="${LD-ld} -m elf_s390"
6617 sparc64-*linux*)
6618 LD="${LD-ld} -m elf32_sparc"
6620 esac
6622 *64-bit*)
6623 case $host in
6624 x86_64-*kfreebsd*-gnu)
6625 LD="${LD-ld} -m elf_x86_64_fbsd"
6627 x86_64-*linux*)
6628 LD="${LD-ld} -m elf_x86_64"
6630 powerpcle-*linux*)
6631 LD="${LD-ld} -m elf64lppc"
6633 powerpc-*linux*)
6634 LD="${LD-ld} -m elf64ppc"
6636 s390*-*linux*|s390*-*tpf*)
6637 LD="${LD-ld} -m elf64_s390"
6639 sparc*-*linux*)
6640 LD="${LD-ld} -m elf64_sparc"
6642 esac
6644 esac
6646 rm -rf conftest*
6649 *-*-sco3.2v5*)
6650 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6651 SAVE_CFLAGS="$CFLAGS"
6652 CFLAGS="$CFLAGS -belf"
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6654 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6655 if ${lt_cv_cc_needs_belf+:} false; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 ac_ext=c
6659 ac_cpp='$CPP $CPPFLAGS'
6660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6664 if test x$gcc_no_link = xyes; then
6665 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6671 main ()
6675 return 0;
6677 _ACEOF
6678 if ac_fn_c_try_link "$LINENO"; then :
6679 lt_cv_cc_needs_belf=yes
6680 else
6681 lt_cv_cc_needs_belf=no
6683 rm -f core conftest.err conftest.$ac_objext \
6684 conftest$ac_exeext conftest.$ac_ext
6685 ac_ext=c
6686 ac_cpp='$CPP $CPPFLAGS'
6687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6693 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6694 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6695 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6696 CFLAGS="$SAVE_CFLAGS"
6699 sparc*-*solaris*)
6700 # Find out which ABI we are using.
6701 echo 'int i;' > conftest.$ac_ext
6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6703 (eval $ac_compile) 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; }; then
6707 case `/usr/bin/file conftest.o` in
6708 *64-bit*)
6709 case $lt_cv_prog_gnu_ld in
6710 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6712 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6713 LD="${LD-ld} -64"
6716 esac
6718 esac
6720 rm -rf conftest*
6722 esac
6724 need_locks="$enable_libtool_lock"
6727 case $host_os in
6728 rhapsody* | darwin*)
6729 if test -n "$ac_tool_prefix"; then
6730 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6731 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 if test -n "$DSYMUTIL"; then
6738 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6747 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6751 done
6752 done
6753 IFS=$as_save_IFS
6757 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6758 if test -n "$DSYMUTIL"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6760 $as_echo "$DSYMUTIL" >&6; }
6761 else
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6768 if test -z "$ac_cv_prog_DSYMUTIL"; then
6769 ac_ct_DSYMUTIL=$DSYMUTIL
6770 # Extract the first word of "dsymutil", so it can be a program name with args.
6771 set dummy dsymutil; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 if test -n "$ac_ct_DSYMUTIL"; then
6778 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6791 done
6792 done
6793 IFS=$as_save_IFS
6797 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6798 if test -n "$ac_ct_DSYMUTIL"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6800 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6806 if test "x$ac_ct_DSYMUTIL" = x; then
6807 DSYMUTIL=":"
6808 else
6809 case $cross_compiling:$ac_tool_warned in
6810 yes:)
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6814 esac
6815 DSYMUTIL=$ac_ct_DSYMUTIL
6817 else
6818 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_NMEDIT+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$NMEDIT"; then
6830 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6843 done
6844 done
6845 IFS=$as_save_IFS
6849 NMEDIT=$ac_cv_prog_NMEDIT
6850 if test -n "$NMEDIT"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6852 $as_echo "$NMEDIT" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6860 if test -z "$ac_cv_prog_NMEDIT"; then
6861 ac_ct_NMEDIT=$NMEDIT
6862 # Extract the first word of "nmedit", so it can be a program name with args.
6863 set dummy nmedit; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 if test -n "$ac_ct_NMEDIT"; then
6870 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6883 done
6884 done
6885 IFS=$as_save_IFS
6889 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6890 if test -n "$ac_ct_NMEDIT"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6892 $as_echo "$ac_ct_NMEDIT" >&6; }
6893 else
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6898 if test "x$ac_ct_NMEDIT" = x; then
6899 NMEDIT=":"
6900 else
6901 case $cross_compiling:$ac_tool_warned in
6902 yes:)
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned=yes ;;
6906 esac
6907 NMEDIT=$ac_ct_NMEDIT
6909 else
6910 NMEDIT="$ac_cv_prog_NMEDIT"
6913 if test -n "$ac_tool_prefix"; then
6914 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6915 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if ${ac_cv_prog_LIPO+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 if test -n "$LIPO"; then
6922 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6923 else
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6931 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6935 done
6936 done
6937 IFS=$as_save_IFS
6941 LIPO=$ac_cv_prog_LIPO
6942 if test -n "$LIPO"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6944 $as_echo "$LIPO" >&6; }
6945 else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6952 if test -z "$ac_cv_prog_LIPO"; then
6953 ac_ct_LIPO=$LIPO
6954 # Extract the first word of "lipo", so it can be a program name with args.
6955 set dummy lipo; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 if test -n "$ac_ct_LIPO"; then
6962 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6963 else
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6971 ac_cv_prog_ac_ct_LIPO="lipo"
6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6975 done
6976 done
6977 IFS=$as_save_IFS
6981 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6982 if test -n "$ac_ct_LIPO"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6984 $as_echo "$ac_ct_LIPO" >&6; }
6985 else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 $as_echo "no" >&6; }
6990 if test "x$ac_ct_LIPO" = x; then
6991 LIPO=":"
6992 else
6993 case $cross_compiling:$ac_tool_warned in
6994 yes:)
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997 ac_tool_warned=yes ;;
6998 esac
6999 LIPO=$ac_ct_LIPO
7001 else
7002 LIPO="$ac_cv_prog_LIPO"
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}otool; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_prog_OTOOL+:} false; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 if test -n "$OTOOL"; then
7014 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7027 done
7028 done
7029 IFS=$as_save_IFS
7033 OTOOL=$ac_cv_prog_OTOOL
7034 if test -n "$OTOOL"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7036 $as_echo "$OTOOL" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7044 if test -z "$ac_cv_prog_OTOOL"; then
7045 ac_ct_OTOOL=$OTOOL
7046 # Extract the first word of "otool", so it can be a program name with args.
7047 set dummy otool; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 if test -n "$ac_ct_OTOOL"; then
7054 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7063 ac_cv_prog_ac_ct_OTOOL="otool"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7067 done
7068 done
7069 IFS=$as_save_IFS
7073 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7074 if test -n "$ac_ct_OTOOL"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7076 $as_echo "$ac_ct_OTOOL" >&6; }
7077 else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7082 if test "x$ac_ct_OTOOL" = x; then
7083 OTOOL=":"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091 OTOOL=$ac_ct_OTOOL
7093 else
7094 OTOOL="$ac_cv_prog_OTOOL"
7097 if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_prog_OTOOL64+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 if test -n "$OTOOL64"; then
7106 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7119 done
7120 done
7121 IFS=$as_save_IFS
7125 OTOOL64=$ac_cv_prog_OTOOL64
7126 if test -n "$OTOOL64"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7128 $as_echo "$OTOOL64" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7136 if test -z "$ac_cv_prog_OTOOL64"; then
7137 ac_ct_OTOOL64=$OTOOL64
7138 # Extract the first word of "otool64", so it can be a program name with args.
7139 set dummy otool64; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 if test -n "$ac_ct_OTOOL64"; then
7146 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7155 ac_cv_prog_ac_ct_OTOOL64="otool64"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7159 done
7160 done
7161 IFS=$as_save_IFS
7165 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7166 if test -n "$ac_ct_OTOOL64"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7168 $as_echo "$ac_ct_OTOOL64" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7174 if test "x$ac_ct_OTOOL64" = x; then
7175 OTOOL64=":"
7176 else
7177 case $cross_compiling:$ac_tool_warned in
7178 yes:)
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7181 ac_tool_warned=yes ;;
7182 esac
7183 OTOOL64=$ac_ct_OTOOL64
7185 else
7186 OTOOL64="$ac_cv_prog_OTOOL64"
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7216 $as_echo_n "checking for -single_module linker flag... " >&6; }
7217 if ${lt_cv_apple_cc_single_mod+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 lt_cv_apple_cc_single_mod=no
7221 if test -z "${LT_MULTI_MODULE}"; then
7222 # By default we will add the -single_module flag. You can override
7223 # by either setting the environment variable LT_MULTI_MODULE
7224 # non-empty at configure time, or by adding -multi_module to the
7225 # link flags.
7226 rm -rf libconftest.dylib*
7227 echo "int foo(void){return 1;}" > conftest.c
7228 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7229 -dynamiclib -Wl,-single_module conftest.c" >&5
7230 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7231 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7232 _lt_result=$?
7233 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7234 lt_cv_apple_cc_single_mod=yes
7235 else
7236 cat conftest.err >&5
7238 rm -rf libconftest.dylib*
7239 rm -f conftest.*
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7243 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7245 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7246 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 lt_cv_ld_exported_symbols_list=no
7250 save_LDFLAGS=$LDFLAGS
7251 echo "_main" > conftest.sym
7252 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7253 if test x$gcc_no_link = xyes; then
7254 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7260 main ()
7264 return 0;
7266 _ACEOF
7267 if ac_fn_c_try_link "$LINENO"; then :
7268 lt_cv_ld_exported_symbols_list=yes
7269 else
7270 lt_cv_ld_exported_symbols_list=no
7272 rm -f core conftest.err conftest.$ac_objext \
7273 conftest$ac_exeext conftest.$ac_ext
7274 LDFLAGS="$save_LDFLAGS"
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7278 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7280 $as_echo_n "checking for -force_load linker flag... " >&6; }
7281 if ${lt_cv_ld_force_load+:} false; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 lt_cv_ld_force_load=no
7285 cat > conftest.c << _LT_EOF
7286 int forced_loaded() { return 2;}
7287 _LT_EOF
7288 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7289 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7290 echo "$AR cru libconftest.a conftest.o" >&5
7291 $AR cru libconftest.a conftest.o 2>&5
7292 cat > conftest.c << _LT_EOF
7293 int main() { return 0;}
7294 _LT_EOF
7295 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7296 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7297 _lt_result=$?
7298 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7299 lt_cv_ld_force_load=yes
7300 else
7301 cat conftest.err >&5
7303 rm -f conftest.err libconftest.a conftest conftest.c
7304 rm -rf conftest.dSYM
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7308 $as_echo "$lt_cv_ld_force_load" >&6; }
7309 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7310 # build without first building modern cctools / linker.
7311 case $host_cpu-$host_os in
7312 *-rhapsody* | *-darwin1.[012])
7313 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7314 *-darwin1.*)
7315 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7316 *-darwin*)
7317 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7318 # deployment target is forced to an earlier version.
7319 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7320 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
7322 10.[012][,.]*)
7323 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7327 esac
7329 esac
7330 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7331 _lt_dar_single_mod='$single_module'
7333 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7334 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7335 else
7336 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7338 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7339 _lt_dsymutil='~$DSYMUTIL $lib || :'
7340 else
7341 _lt_dsymutil=
7344 esac
7346 for ac_header in dlfcn.h
7347 do :
7348 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7350 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7351 cat >>confdefs.h <<_ACEOF
7352 #define HAVE_DLFCN_H 1
7353 _ACEOF
7357 done
7363 # Set options
7367 enable_dlopen=no
7370 enable_win32_dll=no
7373 # Check whether --enable-shared was given.
7374 if test "${enable_shared+set}" = set; then :
7375 enableval=$enable_shared; p=${PACKAGE-default}
7376 case $enableval in
7377 yes) enable_shared=yes ;;
7378 no) enable_shared=no ;;
7380 enable_shared=no
7381 # Look at the argument we got. We use all the common list separators.
7382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7383 for pkg in $enableval; do
7384 IFS="$lt_save_ifs"
7385 if test "X$pkg" = "X$p"; then
7386 enable_shared=yes
7388 done
7389 IFS="$lt_save_ifs"
7391 esac
7392 else
7393 enable_shared=yes
7404 # Check whether --enable-static was given.
7405 if test "${enable_static+set}" = set; then :
7406 enableval=$enable_static; p=${PACKAGE-default}
7407 case $enableval in
7408 yes) enable_static=yes ;;
7409 no) enable_static=no ;;
7411 enable_static=no
7412 # Look at the argument we got. We use all the common list separators.
7413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7414 for pkg in $enableval; do
7415 IFS="$lt_save_ifs"
7416 if test "X$pkg" = "X$p"; then
7417 enable_static=yes
7419 done
7420 IFS="$lt_save_ifs"
7422 esac
7423 else
7424 enable_static=yes
7436 # Check whether --with-pic was given.
7437 if test "${with_pic+set}" = set; then :
7438 withval=$with_pic; pic_mode="$withval"
7439 else
7440 pic_mode=default
7444 test -z "$pic_mode" && pic_mode=default
7452 # Check whether --enable-fast-install was given.
7453 if test "${enable_fast_install+set}" = set; then :
7454 enableval=$enable_fast_install; p=${PACKAGE-default}
7455 case $enableval in
7456 yes) enable_fast_install=yes ;;
7457 no) enable_fast_install=no ;;
7459 enable_fast_install=no
7460 # Look at the argument we got. We use all the common list separators.
7461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7462 for pkg in $enableval; do
7463 IFS="$lt_save_ifs"
7464 if test "X$pkg" = "X$p"; then
7465 enable_fast_install=yes
7467 done
7468 IFS="$lt_save_ifs"
7470 esac
7471 else
7472 enable_fast_install=yes
7485 # This can be used to rebuild libtool when needed
7486 LIBTOOL_DEPS="$ltmain"
7488 # Always use our own libtool.
7489 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7516 test -z "$LN_S" && LN_S="ln -s"
7531 if test -n "${ZSH_VERSION+set}" ; then
7532 setopt NO_GLOB_SUBST
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7536 $as_echo_n "checking for objdir... " >&6; }
7537 if ${lt_cv_objdir+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 rm -f .libs 2>/dev/null
7541 mkdir .libs 2>/dev/null
7542 if test -d .libs; then
7543 lt_cv_objdir=.libs
7544 else
7545 # MS-DOS does not allow filenames that begin with a dot.
7546 lt_cv_objdir=_libs
7548 rmdir .libs 2>/dev/null
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7551 $as_echo "$lt_cv_objdir" >&6; }
7552 objdir=$lt_cv_objdir
7558 cat >>confdefs.h <<_ACEOF
7559 #define LT_OBJDIR "$lt_cv_objdir/"
7560 _ACEOF
7565 case $host_os in
7566 aix3*)
7567 # AIX sometimes has problems with the GCC collect2 program. For some
7568 # reason, if we set the COLLECT_NAMES environment variable, the problems
7569 # vanish in a puff of smoke.
7570 if test "X${COLLECT_NAMES+set}" != Xset; then
7571 COLLECT_NAMES=
7572 export COLLECT_NAMES
7575 esac
7577 # Global variables:
7578 ofile=libtool
7579 can_build_shared=yes
7581 # All known linkers require a `.a' archive for static linking (except MSVC,
7582 # which needs '.lib').
7583 libext=a
7585 with_gnu_ld="$lt_cv_prog_gnu_ld"
7587 old_CC="$CC"
7588 old_CFLAGS="$CFLAGS"
7590 # Set sane defaults for various variables
7591 test -z "$CC" && CC=cc
7592 test -z "$LTCC" && LTCC=$CC
7593 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7594 test -z "$LD" && LD=ld
7595 test -z "$ac_objext" && ac_objext=o
7597 for cc_temp in $compiler""; do
7598 case $cc_temp in
7599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7601 \-*) ;;
7602 *) break;;
7603 esac
7604 done
7605 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7608 # Only perform the check for file, if the check method requires it
7609 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7610 case $deplibs_check_method in
7611 file_magic*)
7612 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7614 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7615 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7616 $as_echo_n "(cached) " >&6
7617 else
7618 case $MAGIC_CMD in
7619 [\\/*] | ?:[\\/]*)
7620 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7623 lt_save_MAGIC_CMD="$MAGIC_CMD"
7624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7625 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7626 for ac_dir in $ac_dummy; do
7627 IFS="$lt_save_ifs"
7628 test -z "$ac_dir" && ac_dir=.
7629 if test -f $ac_dir/${ac_tool_prefix}file; then
7630 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7631 if test -n "$file_magic_test_file"; then
7632 case $deplibs_check_method in
7633 "file_magic "*)
7634 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7636 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7637 $EGREP "$file_magic_regex" > /dev/null; then
7639 else
7640 cat <<_LT_EOF 1>&2
7642 *** Warning: the command libtool uses to detect shared libraries,
7643 *** $file_magic_cmd, produces output that libtool cannot recognize.
7644 *** The result is that libtool may fail to recognize shared libraries
7645 *** as such. This will affect the creation of libtool libraries that
7646 *** depend on shared libraries, but programs linked with such libtool
7647 *** libraries will work regardless of this problem. Nevertheless, you
7648 *** may want to report the problem to your system manager and/or to
7649 *** bug-libtool@gnu.org
7651 _LT_EOF
7652 fi ;;
7653 esac
7655 break
7657 done
7658 IFS="$lt_save_ifs"
7659 MAGIC_CMD="$lt_save_MAGIC_CMD"
7661 esac
7664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7665 if test -n "$MAGIC_CMD"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7667 $as_echo "$MAGIC_CMD" >&6; }
7668 else
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7677 if test -z "$lt_cv_path_MAGIC_CMD"; then
7678 if test -n "$ac_tool_prefix"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7680 $as_echo_n "checking for file... " >&6; }
7681 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7682 $as_echo_n "(cached) " >&6
7683 else
7684 case $MAGIC_CMD in
7685 [\\/*] | ?:[\\/]*)
7686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7689 lt_save_MAGIC_CMD="$MAGIC_CMD"
7690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7691 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7692 for ac_dir in $ac_dummy; do
7693 IFS="$lt_save_ifs"
7694 test -z "$ac_dir" && ac_dir=.
7695 if test -f $ac_dir/file; then
7696 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7697 if test -n "$file_magic_test_file"; then
7698 case $deplibs_check_method in
7699 "file_magic "*)
7700 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7703 $EGREP "$file_magic_regex" > /dev/null; then
7705 else
7706 cat <<_LT_EOF 1>&2
7708 *** Warning: the command libtool uses to detect shared libraries,
7709 *** $file_magic_cmd, produces output that libtool cannot recognize.
7710 *** The result is that libtool may fail to recognize shared libraries
7711 *** as such. This will affect the creation of libtool libraries that
7712 *** depend on shared libraries, but programs linked with such libtool
7713 *** libraries will work regardless of this problem. Nevertheless, you
7714 *** may want to report the problem to your system manager and/or to
7715 *** bug-libtool@gnu.org
7717 _LT_EOF
7718 fi ;;
7719 esac
7721 break
7723 done
7724 IFS="$lt_save_ifs"
7725 MAGIC_CMD="$lt_save_MAGIC_CMD"
7727 esac
7730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7731 if test -n "$MAGIC_CMD"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7733 $as_echo "$MAGIC_CMD" >&6; }
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7740 else
7741 MAGIC_CMD=:
7747 esac
7749 # Use C for the default configuration in the libtool script
7751 lt_save_CC="$CC"
7752 ac_ext=c
7753 ac_cpp='$CPP $CPPFLAGS'
7754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7759 # Source file extension for C test sources.
7760 ac_ext=c
7762 # Object file extension for compiled C test sources.
7763 objext=o
7764 objext=$objext
7766 # Code to be used in simple compile tests
7767 lt_simple_compile_test_code="int some_variable = 0;"
7769 # Code to be used in simple link tests
7770 lt_simple_link_test_code='int main(){return(0);}'
7778 # If no C compiler was specified, use CC.
7779 LTCC=${LTCC-"$CC"}
7781 # If no C compiler flags were specified, use CFLAGS.
7782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7784 # Allow CC to be a program name with arguments.
7785 compiler=$CC
7787 # Save the default compiler, since it gets overwritten when the other
7788 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7789 compiler_DEFAULT=$CC
7791 # save warnings/boilerplate of simple test code
7792 ac_outfile=conftest.$ac_objext
7793 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7794 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7795 _lt_compiler_boilerplate=`cat conftest.err`
7796 $RM conftest*
7798 ac_outfile=conftest.$ac_objext
7799 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7800 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7801 _lt_linker_boilerplate=`cat conftest.err`
7802 $RM -r conftest*
7805 ## CAVEAT EMPTOR:
7806 ## There is no encapsulation within the following macros, do not change
7807 ## the running order or otherwise move them around unless you know exactly
7808 ## what you are doing...
7809 if test -n "$compiler"; then
7811 lt_prog_compiler_no_builtin_flag=
7813 if test "$GCC" = yes; then
7814 case $cc_basename in
7815 nvcc*)
7816 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7818 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7819 esac
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7822 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7823 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 lt_cv_prog_compiler_rtti_exceptions=no
7827 ac_outfile=conftest.$ac_objext
7828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7829 lt_compiler_flag="-fno-rtti -fno-exceptions"
7830 # Insert the option either (1) after the last *FLAGS variable, or
7831 # (2) before a word containing "conftest.", or (3) at the end.
7832 # Note that $ac_compile itself does not contain backslashes and begins
7833 # with a dollar sign (not a hyphen), so the echo should work correctly.
7834 # The option is referenced via a variable to avoid confusing sed.
7835 lt_compile=`echo "$ac_compile" | $SED \
7836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7838 -e 's:$: $lt_compiler_flag:'`
7839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7840 (eval "$lt_compile" 2>conftest.err)
7841 ac_status=$?
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 if (exit $ac_status) && test -s "$ac_outfile"; then
7845 # The compiler can only warn and ignore the option if not recognized
7846 # So say no if there are warnings other than the usual output.
7847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7850 lt_cv_prog_compiler_rtti_exceptions=yes
7853 $RM conftest*
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7857 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7859 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7860 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7861 else
7872 lt_prog_compiler_wl=
7873 lt_prog_compiler_pic=
7874 lt_prog_compiler_static=
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7877 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7879 if test "$GCC" = yes; then
7880 lt_prog_compiler_wl='-Wl,'
7881 lt_prog_compiler_static='-static'
7883 case $host_os in
7884 aix*)
7885 # All AIX code is PIC.
7886 if test "$host_cpu" = ia64; then
7887 # AIX 5 now supports IA64 processor
7888 lt_prog_compiler_static='-Bstatic'
7890 lt_prog_compiler_pic='-fPIC'
7893 amigaos*)
7894 case $host_cpu in
7895 powerpc)
7896 # see comment about AmigaOS4 .so support
7897 lt_prog_compiler_pic='-fPIC'
7899 m68k)
7900 # FIXME: we need at least 68020 code to build shared libraries, but
7901 # adding the `-m68020' flag to GCC prevents building anything better,
7902 # like `-m68040'.
7903 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7905 esac
7908 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7909 # PIC is the default for these OSes.
7912 mingw* | cygwin* | pw32* | os2* | cegcc*)
7913 # This hack is so that the source file can tell whether it is being
7914 # built for inclusion in a dll (and should export symbols for example).
7915 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7916 # (--disable-auto-import) libraries
7917 lt_prog_compiler_pic='-DDLL_EXPORT'
7920 darwin* | rhapsody*)
7921 # PIC is the default on this platform
7922 # Common symbols not allowed in MH_DYLIB files
7923 lt_prog_compiler_pic='-fno-common'
7926 haiku*)
7927 # PIC is the default for Haiku.
7928 # The "-static" flag exists, but is broken.
7929 lt_prog_compiler_static=
7932 hpux*)
7933 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7934 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7935 # sets the default TLS model and affects inlining.
7936 case $host_cpu in
7937 hppa*64*)
7938 # +Z the default
7941 lt_prog_compiler_pic='-fPIC'
7943 esac
7946 interix[3-9]*)
7947 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7948 # Instead, we relocate shared libraries at runtime.
7951 msdosdjgpp*)
7952 # Just because we use GCC doesn't mean we suddenly get shared libraries
7953 # on systems that don't support them.
7954 lt_prog_compiler_can_build_shared=no
7955 enable_shared=no
7958 *nto* | *qnx*)
7959 # QNX uses GNU C++, but need to define -shared option too, otherwise
7960 # it will coredump.
7961 lt_prog_compiler_pic='-fPIC -shared'
7964 sysv4*MP*)
7965 if test -d /usr/nec; then
7966 lt_prog_compiler_pic=-Kconform_pic
7971 lt_prog_compiler_pic='-fPIC'
7973 esac
7975 case $cc_basename in
7976 nvcc*) # Cuda Compiler Driver 2.2
7977 lt_prog_compiler_wl='-Xlinker '
7978 lt_prog_compiler_pic='-Xcompiler -fPIC'
7980 esac
7981 else
7982 # PORTME Check for flag to pass linker flags through the system compiler.
7983 case $host_os in
7984 aix*)
7985 lt_prog_compiler_wl='-Wl,'
7986 if test "$host_cpu" = ia64; then
7987 # AIX 5 now supports IA64 processor
7988 lt_prog_compiler_static='-Bstatic'
7989 else
7990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7994 mingw* | cygwin* | pw32* | os2* | cegcc*)
7995 # This hack is so that the source file can tell whether it is being
7996 # built for inclusion in a dll (and should export symbols for example).
7997 lt_prog_compiler_pic='-DDLL_EXPORT'
8000 hpux9* | hpux10* | hpux11*)
8001 lt_prog_compiler_wl='-Wl,'
8002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8003 # not for PA HP-UX.
8004 case $host_cpu in
8005 hppa*64*|ia64*)
8006 # +Z the default
8009 lt_prog_compiler_pic='+Z'
8011 esac
8012 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8013 lt_prog_compiler_static='${wl}-a ${wl}archive'
8016 irix5* | irix6* | nonstopux*)
8017 lt_prog_compiler_wl='-Wl,'
8018 # PIC (with -KPIC) is the default.
8019 lt_prog_compiler_static='-non_shared'
8022 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8023 case $cc_basename in
8024 # old Intel for x86_64 which still supported -KPIC.
8025 ecc*)
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_pic='-KPIC'
8028 lt_prog_compiler_static='-static'
8030 # icc used to be incompatible with GCC.
8031 # ICC 10 doesn't accept -KPIC any more.
8032 icc* | ifort*)
8033 lt_prog_compiler_wl='-Wl,'
8034 lt_prog_compiler_pic='-fPIC'
8035 lt_prog_compiler_static='-static'
8037 # Lahey Fortran 8.1.
8038 lf95*)
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='--shared'
8041 lt_prog_compiler_static='--static'
8043 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8044 # Portland Group compilers (*not* the Pentium gcc compiler,
8045 # which looks to be a dead project)
8046 lt_prog_compiler_wl='-Wl,'
8047 lt_prog_compiler_pic='-fpic'
8048 lt_prog_compiler_static='-Bstatic'
8050 ccc*)
8051 lt_prog_compiler_wl='-Wl,'
8052 # All Alpha code is PIC.
8053 lt_prog_compiler_static='-non_shared'
8055 xl* | bgxl* | bgf* | mpixl*)
8056 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8057 lt_prog_compiler_wl='-Wl,'
8058 lt_prog_compiler_pic='-qpic'
8059 lt_prog_compiler_static='-qstaticlink'
8062 case `$CC -V 2>&1 | sed 5q` in
8063 *Sun\ F* | *Sun*Fortran*)
8064 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8065 lt_prog_compiler_pic='-KPIC'
8066 lt_prog_compiler_static='-Bstatic'
8067 lt_prog_compiler_wl=''
8069 *Sun\ C*)
8070 # Sun C 5.9
8071 lt_prog_compiler_pic='-KPIC'
8072 lt_prog_compiler_static='-Bstatic'
8073 lt_prog_compiler_wl='-Wl,'
8075 esac
8077 esac
8080 newsos6)
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-Bstatic'
8085 *nto* | *qnx*)
8086 # QNX uses GNU C++, but need to define -shared option too, otherwise
8087 # it will coredump.
8088 lt_prog_compiler_pic='-fPIC -shared'
8091 osf3* | osf4* | osf5*)
8092 lt_prog_compiler_wl='-Wl,'
8093 # All OSF/1 code is PIC.
8094 lt_prog_compiler_static='-non_shared'
8097 rdos*)
8098 lt_prog_compiler_static='-non_shared'
8101 solaris*)
8102 lt_prog_compiler_pic='-KPIC'
8103 lt_prog_compiler_static='-Bstatic'
8104 case $cc_basename in
8105 f77* | f90* | f95*)
8106 lt_prog_compiler_wl='-Qoption ld ';;
8108 lt_prog_compiler_wl='-Wl,';;
8109 esac
8112 sunos4*)
8113 lt_prog_compiler_wl='-Qoption ld '
8114 lt_prog_compiler_pic='-PIC'
8115 lt_prog_compiler_static='-Bstatic'
8118 sysv4 | sysv4.2uw2* | sysv4.3*)
8119 lt_prog_compiler_wl='-Wl,'
8120 lt_prog_compiler_pic='-KPIC'
8121 lt_prog_compiler_static='-Bstatic'
8124 sysv4*MP*)
8125 if test -d /usr/nec ;then
8126 lt_prog_compiler_pic='-Kconform_pic'
8127 lt_prog_compiler_static='-Bstatic'
8131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8132 lt_prog_compiler_wl='-Wl,'
8133 lt_prog_compiler_pic='-KPIC'
8134 lt_prog_compiler_static='-Bstatic'
8137 unicos*)
8138 lt_prog_compiler_wl='-Wl,'
8139 lt_prog_compiler_can_build_shared=no
8142 uts4*)
8143 lt_prog_compiler_pic='-pic'
8144 lt_prog_compiler_static='-Bstatic'
8148 lt_prog_compiler_can_build_shared=no
8150 esac
8153 case $host_os in
8154 # For platforms which do not support PIC, -DPIC is meaningless:
8155 *djgpp*)
8156 lt_prog_compiler_pic=
8159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8161 esac
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8163 $as_echo "$lt_prog_compiler_pic" >&6; }
8171 # Check to make sure the PIC flag actually works.
8173 if test -n "$lt_prog_compiler_pic"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8175 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8176 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 lt_cv_prog_compiler_pic_works=no
8180 ac_outfile=conftest.$ac_objext
8181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8182 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8183 # Insert the option either (1) after the last *FLAGS variable, or
8184 # (2) before a word containing "conftest.", or (3) at the end.
8185 # Note that $ac_compile itself does not contain backslashes and begins
8186 # with a dollar sign (not a hyphen), so the echo should work correctly.
8187 # The option is referenced via a variable to avoid confusing sed.
8188 lt_compile=`echo "$ac_compile" | $SED \
8189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8191 -e 's:$: $lt_compiler_flag:'`
8192 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8193 (eval "$lt_compile" 2>conftest.err)
8194 ac_status=$?
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 if (exit $ac_status) && test -s "$ac_outfile"; then
8198 # The compiler can only warn and ignore the option if not recognized
8199 # So say no if there are warnings other than the usual output.
8200 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8202 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8203 lt_cv_prog_compiler_pic_works=yes
8206 $RM conftest*
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8210 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8212 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8213 case $lt_prog_compiler_pic in
8214 "" | " "*) ;;
8215 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8216 esac
8217 else
8218 lt_prog_compiler_pic=
8219 lt_prog_compiler_can_build_shared=no
8230 # Check to make sure the static flag actually works.
8232 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8234 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8235 if ${lt_cv_prog_compiler_static_works+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 lt_cv_prog_compiler_static_works=no
8239 save_LDFLAGS="$LDFLAGS"
8240 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8241 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8243 # The linker can only warn and ignore the option if not recognized
8244 # So say no if there are warnings
8245 if test -s conftest.err; then
8246 # Append any errors to the config.log.
8247 cat conftest.err 1>&5
8248 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8250 if diff conftest.exp conftest.er2 >/dev/null; then
8251 lt_cv_prog_compiler_static_works=yes
8253 else
8254 lt_cv_prog_compiler_static_works=yes
8257 $RM -r conftest*
8258 LDFLAGS="$save_LDFLAGS"
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8262 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8264 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8266 else
8267 lt_prog_compiler_static=
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8277 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8278 if ${lt_cv_prog_compiler_c_o+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 lt_cv_prog_compiler_c_o=no
8282 $RM -r conftest 2>/dev/null
8283 mkdir conftest
8284 cd conftest
8285 mkdir out
8286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8288 lt_compiler_flag="-o out/conftest2.$ac_objext"
8289 # Insert the option either (1) after the last *FLAGS variable, or
8290 # (2) before a word containing "conftest.", or (3) at the end.
8291 # Note that $ac_compile itself does not contain backslashes and begins
8292 # with a dollar sign (not a hyphen), so the echo should work correctly.
8293 lt_compile=`echo "$ac_compile" | $SED \
8294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296 -e 's:$: $lt_compiler_flag:'`
8297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8298 (eval "$lt_compile" 2>out/conftest.err)
8299 ac_status=$?
8300 cat out/conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8303 then
8304 # The compiler can only warn and ignore the option if not recognized
8305 # So say no if there are warnings
8306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8309 lt_cv_prog_compiler_c_o=yes
8312 chmod u+w . 2>&5
8313 $RM conftest*
8314 # SGI C++ compiler will create directory out/ii_files/ for
8315 # template instantiation
8316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8317 $RM out/* && rmdir out
8318 cd ..
8319 $RM -r conftest
8320 $RM conftest*
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8324 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8332 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8333 if ${lt_cv_prog_compiler_c_o+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 lt_cv_prog_compiler_c_o=no
8337 $RM -r conftest 2>/dev/null
8338 mkdir conftest
8339 cd conftest
8340 mkdir out
8341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8343 lt_compiler_flag="-o out/conftest2.$ac_objext"
8344 # Insert the option either (1) after the last *FLAGS variable, or
8345 # (2) before a word containing "conftest.", or (3) at the end.
8346 # Note that $ac_compile itself does not contain backslashes and begins
8347 # with a dollar sign (not a hyphen), so the echo should work correctly.
8348 lt_compile=`echo "$ac_compile" | $SED \
8349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8351 -e 's:$: $lt_compiler_flag:'`
8352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8353 (eval "$lt_compile" 2>out/conftest.err)
8354 ac_status=$?
8355 cat out/conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8358 then
8359 # The compiler can only warn and ignore the option if not recognized
8360 # So say no if there are warnings
8361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8364 lt_cv_prog_compiler_c_o=yes
8367 chmod u+w . 2>&5
8368 $RM conftest*
8369 # SGI C++ compiler will create directory out/ii_files/ for
8370 # template instantiation
8371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8372 $RM out/* && rmdir out
8373 cd ..
8374 $RM -r conftest
8375 $RM conftest*
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8379 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8384 hard_links="nottested"
8385 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8386 # do not overwrite the value of need_locks provided by the user
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8388 $as_echo_n "checking if we can lock with hard links... " >&6; }
8389 hard_links=yes
8390 $RM conftest*
8391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8392 touch conftest.a
8393 ln conftest.a conftest.b 2>&5 || hard_links=no
8394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8396 $as_echo "$hard_links" >&6; }
8397 if test "$hard_links" = no; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8399 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8400 need_locks=warn
8402 else
8403 need_locks=no
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8412 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8414 runpath_var=
8415 allow_undefined_flag=
8416 always_export_symbols=no
8417 archive_cmds=
8418 archive_expsym_cmds=
8419 compiler_needs_object=no
8420 enable_shared_with_static_runtimes=no
8421 export_dynamic_flag_spec=
8422 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8423 hardcode_automatic=no
8424 hardcode_direct=no
8425 hardcode_direct_absolute=no
8426 hardcode_libdir_flag_spec=
8427 hardcode_libdir_flag_spec_ld=
8428 hardcode_libdir_separator=
8429 hardcode_minus_L=no
8430 hardcode_shlibpath_var=unsupported
8431 inherit_rpath=no
8432 link_all_deplibs=unknown
8433 module_cmds=
8434 module_expsym_cmds=
8435 old_archive_from_new_cmds=
8436 old_archive_from_expsyms_cmds=
8437 thread_safe_flag_spec=
8438 whole_archive_flag_spec=
8439 # include_expsyms should be a list of space-separated symbols to be *always*
8440 # included in the symbol list
8441 include_expsyms=
8442 # exclude_expsyms can be an extended regexp of symbols to exclude
8443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8445 # as well as any symbol that contains `d'.
8446 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8448 # platforms (ab)use it in PIC code, but their linkers get confused if
8449 # the symbol is explicitly referenced. Since portable code cannot
8450 # rely on this symbol name, it's probably fine to never include it in
8451 # preloaded symbol tables.
8452 # Exclude shared library initialization/finalization symbols.
8453 extract_expsyms_cmds=
8455 case $host_os in
8456 cygwin* | mingw* | pw32* | cegcc*)
8457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8458 # When not using gcc, we currently assume that we are using
8459 # Microsoft Visual C++.
8460 if test "$GCC" != yes; then
8461 with_gnu_ld=no
8464 interix*)
8465 # we just hope/assume this is gcc and not c89 (= MSVC++)
8466 with_gnu_ld=yes
8468 openbsd*)
8469 with_gnu_ld=no
8471 esac
8473 ld_shlibs=yes
8475 # On some targets, GNU ld is compatible enough with the native linker
8476 # that we're better off using the native interface for both.
8477 lt_use_gnu_ld_interface=no
8478 if test "$with_gnu_ld" = yes; then
8479 case $host_os in
8480 aix*)
8481 # The AIX port of GNU ld has always aspired to compatibility
8482 # with the native linker. However, as the warning in the GNU ld
8483 # block says, versions before 2.19.5* couldn't really create working
8484 # shared libraries, regardless of the interface used.
8485 case `$LD -v 2>&1` in
8486 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8487 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8488 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8490 lt_use_gnu_ld_interface=yes
8492 esac
8495 lt_use_gnu_ld_interface=yes
8497 esac
8500 if test "$lt_use_gnu_ld_interface" = yes; then
8501 # If archive_cmds runs LD, not CC, wlarc should be empty
8502 wlarc='${wl}'
8504 # Set some defaults for GNU ld with shared library support. These
8505 # are reset later if shared libraries are not supported. Putting them
8506 # here allows them to be overridden if necessary.
8507 runpath_var=LD_RUN_PATH
8508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8509 export_dynamic_flag_spec='${wl}--export-dynamic'
8510 # ancient GNU ld didn't support --whole-archive et. al.
8511 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8512 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8513 else
8514 whole_archive_flag_spec=
8516 supports_anon_versioning=no
8517 case `$LD -v 2>&1` in
8518 *GNU\ gold*) supports_anon_versioning=yes ;;
8519 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8520 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8521 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8522 *\ 2.11.*) ;; # other 2.11 versions
8523 *) supports_anon_versioning=yes ;;
8524 esac
8526 # See if GNU ld supports shared libraries.
8527 case $host_os in
8528 aix[3-9]*)
8529 # On AIX/PPC, the GNU linker is very broken
8530 if test "$host_cpu" != ia64; then
8531 ld_shlibs=no
8532 cat <<_LT_EOF 1>&2
8534 *** Warning: the GNU linker, at least up to release 2.19, is reported
8535 *** to be unable to reliably create shared libraries on AIX.
8536 *** Therefore, libtool is disabling shared libraries support. If you
8537 *** really care for shared libraries, you may want to install binutils
8538 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8539 *** You will then need to restart the configuration process.
8541 _LT_EOF
8545 amigaos*)
8546 case $host_cpu in
8547 powerpc)
8548 # see comment about AmigaOS4 .so support
8549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550 archive_expsym_cmds=''
8552 m68k)
8553 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)'
8554 hardcode_libdir_flag_spec='-L$libdir'
8555 hardcode_minus_L=yes
8557 esac
8560 beos*)
8561 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8562 allow_undefined_flag=unsupported
8563 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8564 # support --undefined. This deserves some investigation. FIXME
8565 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8566 else
8567 ld_shlibs=no
8571 cygwin* | mingw* | pw32* | cegcc*)
8572 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8573 # as there is no search path for DLLs.
8574 hardcode_libdir_flag_spec='-L$libdir'
8575 export_dynamic_flag_spec='${wl}--export-all-symbols'
8576 allow_undefined_flag=unsupported
8577 always_export_symbols=no
8578 enable_shared_with_static_runtimes=yes
8579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8581 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8583 # If the export-symbols file already is a .def file (1st line
8584 # is EXPORTS), use it as is; otherwise, prepend...
8585 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8586 cp $export_symbols $output_objdir/$soname.def;
8587 else
8588 echo EXPORTS > $output_objdir/$soname.def;
8589 cat $export_symbols >> $output_objdir/$soname.def;
8591 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8592 else
8593 ld_shlibs=no
8597 haiku*)
8598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599 link_all_deplibs=yes
8602 interix[3-9]*)
8603 hardcode_direct=no
8604 hardcode_shlibpath_var=no
8605 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8606 export_dynamic_flag_spec='${wl}-E'
8607 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8608 # Instead, shared libraries are loaded at an image base (0x10000000 by
8609 # default) and relocated if they conflict, which is a slow very memory
8610 # consuming and fragmenting process. To avoid this, we pick a random,
8611 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8612 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8613 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8614 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'
8617 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8618 tmp_diet=no
8619 if test "$host_os" = linux-dietlibc; then
8620 case $cc_basename in
8621 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8622 esac
8624 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8625 && test "$tmp_diet" = no
8626 then
8627 tmp_addflag=' $pic_flag'
8628 tmp_sharedflag='-shared'
8629 case $cc_basename,$host_cpu in
8630 pgcc*) # Portland Group C compiler
8631 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'
8632 tmp_addflag=' $pic_flag'
8634 pgf77* | pgf90* | pgf95* | pgfortran*)
8635 # Portland Group f77 and f90 compilers
8636 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'
8637 tmp_addflag=' $pic_flag -Mnomain' ;;
8638 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8639 tmp_addflag=' -i_dynamic' ;;
8640 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8641 tmp_addflag=' -i_dynamic -nofor_main' ;;
8642 ifc* | ifort*) # Intel Fortran compiler
8643 tmp_addflag=' -nofor_main' ;;
8644 lf95*) # Lahey Fortran 8.1
8645 whole_archive_flag_spec=
8646 tmp_sharedflag='--shared' ;;
8647 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8648 tmp_sharedflag='-qmkshrobj'
8649 tmp_addflag= ;;
8650 nvcc*) # Cuda Compiler Driver 2.2
8651 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'
8652 compiler_needs_object=yes
8654 esac
8655 case `$CC -V 2>&1 | sed 5q` in
8656 *Sun\ C*) # Sun C 5.9
8657 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'
8658 compiler_needs_object=yes
8659 tmp_sharedflag='-G' ;;
8660 *Sun\ F*) # Sun Fortran 8.3
8661 tmp_sharedflag='-G' ;;
8662 esac
8663 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8665 if test "x$supports_anon_versioning" = xyes; then
8666 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8667 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8668 echo "local: *; };" >> $output_objdir/$libname.ver~
8669 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8672 case $cc_basename in
8673 xlf* | bgf* | bgxlf* | mpixlf*)
8674 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8675 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8676 hardcode_libdir_flag_spec=
8677 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8678 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8679 if test "x$supports_anon_versioning" = xyes; then
8680 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8681 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8682 echo "local: *; };" >> $output_objdir/$libname.ver~
8683 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8686 esac
8687 else
8688 ld_shlibs=no
8692 netbsd*)
8693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8694 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8695 wlarc=
8696 else
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8702 solaris*)
8703 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8704 ld_shlibs=no
8705 cat <<_LT_EOF 1>&2
8707 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8708 *** create shared libraries on Solaris systems. Therefore, libtool
8709 *** is disabling shared libraries support. We urge you to upgrade GNU
8710 *** binutils to release 2.9.1 or newer. Another option is to modify
8711 *** your PATH or compiler configuration so that the native linker is
8712 *** used, and then restart.
8714 _LT_EOF
8715 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8718 else
8719 ld_shlibs=no
8723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8724 case `$LD -v 2>&1` in
8725 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8726 ld_shlibs=no
8727 cat <<_LT_EOF 1>&2
8729 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8730 *** reliably create shared libraries on SCO systems. Therefore, libtool
8731 *** is disabling shared libraries support. We urge you to upgrade GNU
8732 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8733 *** your PATH or compiler configuration so that the native linker is
8734 *** used, and then restart.
8736 _LT_EOF
8739 # For security reasons, it is highly recommended that you always
8740 # use absolute paths for naming shared libraries, and exclude the
8741 # DT_RUNPATH tag from executables and libraries. But doing so
8742 # requires that you compile everything twice, which is a pain.
8743 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747 else
8748 ld_shlibs=no
8751 esac
8754 sunos4*)
8755 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8756 wlarc=
8757 hardcode_direct=yes
8758 hardcode_shlibpath_var=no
8762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8765 else
8766 ld_shlibs=no
8769 esac
8771 if test "$ld_shlibs" = no; then
8772 runpath_var=
8773 hardcode_libdir_flag_spec=
8774 export_dynamic_flag_spec=
8775 whole_archive_flag_spec=
8777 else
8778 # PORTME fill in a description of your system's linker (not GNU ld)
8779 case $host_os in
8780 aix3*)
8781 allow_undefined_flag=unsupported
8782 always_export_symbols=yes
8783 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'
8784 # Note: this linker hardcodes the directories in LIBPATH if there
8785 # are no directories specified by -L.
8786 hardcode_minus_L=yes
8787 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8788 # Neither direct hardcoding nor static linking is supported with a
8789 # broken collect2.
8790 hardcode_direct=unsupported
8794 aix[4-9]*)
8795 if test "$host_cpu" = ia64; then
8796 # On IA64, the linker does run time linking by default, so we don't
8797 # have to do anything special.
8798 aix_use_runtimelinking=no
8799 exp_sym_flag='-Bexport'
8800 no_entry_flag=""
8801 else
8802 # If we're using GNU nm, then we don't want the "-C" option.
8803 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8804 # Also, AIX nm treats weak defined symbols like other global
8805 # defined symbols, whereas GNU nm marks them as "W".
8806 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8807 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'
8808 else
8809 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'
8811 aix_use_runtimelinking=no
8813 # Test if we are trying to use run time linking or normal
8814 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8815 # need to do runtime linking.
8816 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8817 for ld_flag in $LDFLAGS; do
8818 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8819 aix_use_runtimelinking=yes
8820 break
8822 done
8824 esac
8826 exp_sym_flag='-bexport'
8827 no_entry_flag='-bnoentry'
8830 # When large executables or shared objects are built, AIX ld can
8831 # have problems creating the table of contents. If linking a library
8832 # or program results in "error TOC overflow" add -mminimal-toc to
8833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8836 archive_cmds=''
8837 hardcode_direct=yes
8838 hardcode_direct_absolute=yes
8839 hardcode_libdir_separator=':'
8840 link_all_deplibs=yes
8841 file_list_spec='${wl}-f,'
8843 if test "$GCC" = yes; then
8844 case $host_os in aix4.[012]|aix4.[012].*)
8845 # We only want to do this on AIX 4.2 and lower, the check
8846 # below for broken collect2 doesn't work under 4.3+
8847 collect2name=`${CC} -print-prog-name=collect2`
8848 if test -f "$collect2name" &&
8849 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8850 then
8851 # We have reworked collect2
8853 else
8854 # We have old collect2
8855 hardcode_direct=unsupported
8856 # It fails to find uninstalled libraries when the uninstalled
8857 # path is not listed in the libpath. Setting hardcode_minus_L
8858 # to unsupported forces relinking
8859 hardcode_minus_L=yes
8860 hardcode_libdir_flag_spec='-L$libdir'
8861 hardcode_libdir_separator=
8864 esac
8865 shared_flag='-shared'
8866 if test "$aix_use_runtimelinking" = yes; then
8867 shared_flag="$shared_flag "'${wl}-G'
8869 else
8870 # not using gcc
8871 if test "$host_cpu" = ia64; then
8872 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8873 # chokes on -Wl,-G. The following line is correct:
8874 shared_flag='-G'
8875 else
8876 if test "$aix_use_runtimelinking" = yes; then
8877 shared_flag='${wl}-G'
8878 else
8879 shared_flag='${wl}-bM:SRE'
8884 export_dynamic_flag_spec='${wl}-bexpall'
8885 # It seems that -bexpall does not export symbols beginning with
8886 # underscore (_), so it is better to generate a list of symbols to export.
8887 always_export_symbols=yes
8888 if test "$aix_use_runtimelinking" = yes; then
8889 # Warning - without using the other runtime loading flags (-brtl),
8890 # -berok will link without error, but may produce a broken library.
8891 allow_undefined_flag='-berok'
8892 # Determine the default libpath from the value encoded in an
8893 # empty executable.
8894 if test x$gcc_no_link = xyes; then
8895 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8901 main ()
8905 return 0;
8907 _ACEOF
8908 if ac_fn_c_try_link "$LINENO"; then :
8910 lt_aix_libpath_sed='
8911 /Import File Strings/,/^$/ {
8912 /^0/ {
8913 s/^0 *\(.*\)$/\1/
8917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8918 # Check for a 64-bit object if we didn't find anything.
8919 if test -z "$aix_libpath"; then
8920 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8923 rm -f core conftest.err conftest.$ac_objext \
8924 conftest$ac_exeext conftest.$ac_ext
8925 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8927 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8928 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"
8929 else
8930 if test "$host_cpu" = ia64; then
8931 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8932 allow_undefined_flag="-z nodefs"
8933 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"
8934 else
8935 # Determine the default libpath from the value encoded in an
8936 # empty executable.
8937 if test x$gcc_no_link = xyes; then
8938 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8944 main ()
8948 return 0;
8950 _ACEOF
8951 if ac_fn_c_try_link "$LINENO"; then :
8953 lt_aix_libpath_sed='
8954 /Import File Strings/,/^$/ {
8955 /^0/ {
8956 s/^0 *\(.*\)$/\1/
8960 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8961 # Check for a 64-bit object if we didn't find anything.
8962 if test -z "$aix_libpath"; then
8963 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8966 rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8970 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8971 # Warning - without using the other run time loading flags,
8972 # -berok will link without error, but may produce a broken library.
8973 no_undefined_flag=' ${wl}-bernotok'
8974 allow_undefined_flag=' ${wl}-berok'
8975 if test "$with_gnu_ld" = yes; then
8976 # We only use this code for GNU lds that support --whole-archive.
8977 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8978 else
8979 # Exported symbols can be pulled into shared objects from archives
8980 whole_archive_flag_spec='$convenience'
8982 archive_cmds_need_lc=yes
8983 # This is similar to how AIX traditionally builds its shared libraries.
8984 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'
8989 amigaos*)
8990 case $host_cpu in
8991 powerpc)
8992 # see comment about AmigaOS4 .so support
8993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994 archive_expsym_cmds=''
8996 m68k)
8997 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)'
8998 hardcode_libdir_flag_spec='-L$libdir'
8999 hardcode_minus_L=yes
9001 esac
9004 bsdi[45]*)
9005 export_dynamic_flag_spec=-rdynamic
9008 cygwin* | mingw* | pw32* | cegcc*)
9009 # When not using gcc, we currently assume that we are using
9010 # Microsoft Visual C++.
9011 # hardcode_libdir_flag_spec is actually meaningless, as there is
9012 # no search path for DLLs.
9013 hardcode_libdir_flag_spec=' '
9014 allow_undefined_flag=unsupported
9015 # Tell ltmain to make .lib files, not .a files.
9016 libext=lib
9017 # Tell ltmain to make .dll files, not .so files.
9018 shrext_cmds=".dll"
9019 # FIXME: Setting linknames here is a bad hack.
9020 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9021 # The linker will automatically build a .lib file if we build a DLL.
9022 old_archive_from_new_cmds='true'
9023 # FIXME: Should let the user specify the lib program.
9024 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9025 fix_srcfile_path='`cygpath -w "$srcfile"`'
9026 enable_shared_with_static_runtimes=yes
9029 darwin* | rhapsody*)
9033 # Publish an arg to allow the user to select that Darwin host (and target)
9034 # libraries should be given install-names like @rpath/libfoo.dylib. This
9035 # requires that the user of the library then adds an 'rpath' to the DSO that
9036 # needs access.
9037 # NOTE: there are defaults below, for systems that support rpaths. The person
9038 # configuring can override the defaults for any system version that supports
9039 # them - they are, however, forced off for system versions without support.
9040 # Check whether --enable-darwin-at-rpath was given.
9041 if test "${enable_darwin_at_rpath+set}" = set; then :
9042 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
9043 # This is not supported before macOS 10.5 / Darwin9.
9044 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9045 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
9047 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
9048 enable_darwin_at_rpath=no
9050 esac
9052 else
9053 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9054 # As above, before 10.5 / Darwin9 this does not work.
9055 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9056 enable_darwin_at_rpath=no
9059 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
9060 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
9061 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
9062 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
9064 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
9065 enable_darwin_at_rpath=yes
9067 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
9068 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
9070 esac
9075 archive_cmds_need_lc=no
9076 hardcode_direct=no
9077 hardcode_automatic=yes
9078 hardcode_shlibpath_var=unsupported
9079 if test "$lt_cv_ld_force_load" = "yes"; then
9080 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\"`'
9081 else
9082 whole_archive_flag_spec=''
9084 link_all_deplibs=yes
9085 allow_undefined_flag="$_lt_dar_allow_undefined"
9086 case $cc_basename in
9087 ifort*) _lt_dar_can_shared=yes ;;
9088 *) _lt_dar_can_shared=$GCC ;;
9089 esac
9090 if test "$_lt_dar_can_shared" = "yes"; then
9091 output_verbose_link_cmd=func_echo_all
9092 _lt_install_name='\$rpath/\$soname'
9093 if test "x$enable_darwin_at_rpath" = "xyes"; then
9094 _lt_install_name='@rpath/\$soname'
9096 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
9097 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9098 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
9099 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}"
9101 else
9102 ld_shlibs=no
9107 dgux*)
9108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9109 hardcode_libdir_flag_spec='-L$libdir'
9110 hardcode_shlibpath_var=no
9113 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9114 # support. Future versions do this automatically, but an explicit c++rt0.o
9115 # does not break anything, and helps significantly (at the cost of a little
9116 # extra space).
9117 freebsd2.2*)
9118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9119 hardcode_libdir_flag_spec='-R$libdir'
9120 hardcode_direct=yes
9121 hardcode_shlibpath_var=no
9124 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9125 freebsd2.*)
9126 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_direct=yes
9128 hardcode_minus_L=yes
9129 hardcode_shlibpath_var=no
9132 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9133 freebsd* | dragonfly*)
9134 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9135 hardcode_libdir_flag_spec='-R$libdir'
9136 hardcode_direct=yes
9137 hardcode_shlibpath_var=no
9140 hpux9*)
9141 if test "$GCC" = yes; then
9142 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'
9143 else
9144 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'
9146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9147 hardcode_libdir_separator=:
9148 hardcode_direct=yes
9150 # hardcode_minus_L: Not really in the search PATH,
9151 # but as the default location of the library.
9152 hardcode_minus_L=yes
9153 export_dynamic_flag_spec='${wl}-E'
9156 hpux10*)
9157 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9158 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9159 else
9160 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9162 if test "$with_gnu_ld" = no; then
9163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9164 hardcode_libdir_flag_spec_ld='+b $libdir'
9165 hardcode_libdir_separator=:
9166 hardcode_direct=yes
9167 hardcode_direct_absolute=yes
9168 export_dynamic_flag_spec='${wl}-E'
9169 # hardcode_minus_L: Not really in the search PATH,
9170 # but as the default location of the library.
9171 hardcode_minus_L=yes
9175 hpux11*)
9176 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9177 case $host_cpu in
9178 hppa*64*)
9179 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9181 ia64*)
9182 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9185 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9187 esac
9188 else
9189 case $host_cpu in
9190 hppa*64*)
9191 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9193 ia64*)
9194 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9198 # Older versions of the 11.00 compiler do not understand -b yet
9199 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9201 $as_echo_n "checking if $CC understands -b... " >&6; }
9202 if ${lt_cv_prog_compiler__b+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 lt_cv_prog_compiler__b=no
9206 save_LDFLAGS="$LDFLAGS"
9207 LDFLAGS="$LDFLAGS -b"
9208 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9209 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9210 # The linker can only warn and ignore the option if not recognized
9211 # So say no if there are warnings
9212 if test -s conftest.err; then
9213 # Append any errors to the config.log.
9214 cat conftest.err 1>&5
9215 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9217 if diff conftest.exp conftest.er2 >/dev/null; then
9218 lt_cv_prog_compiler__b=yes
9220 else
9221 lt_cv_prog_compiler__b=yes
9224 $RM -r conftest*
9225 LDFLAGS="$save_LDFLAGS"
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9229 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9231 if test x"$lt_cv_prog_compiler__b" = xyes; then
9232 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9233 else
9234 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9238 esac
9240 if test "$with_gnu_ld" = no; then
9241 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9242 hardcode_libdir_separator=:
9244 case $host_cpu in
9245 hppa*64*|ia64*)
9246 hardcode_direct=no
9247 hardcode_shlibpath_var=no
9250 hardcode_direct=yes
9251 hardcode_direct_absolute=yes
9252 export_dynamic_flag_spec='${wl}-E'
9254 # hardcode_minus_L: Not really in the search PATH,
9255 # but as the default location of the library.
9256 hardcode_minus_L=yes
9258 esac
9262 irix5* | irix6* | nonstopux*)
9263 if test "$GCC" = yes; then
9264 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'
9265 # Try to use the -exported_symbol ld option, if it does not
9266 # work, assume that -exports_file does not work either and
9267 # implicitly export all symbols.
9268 save_LDFLAGS="$LDFLAGS"
9269 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9270 if test x$gcc_no_link = xyes; then
9271 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275 int foo(void) {}
9276 _ACEOF
9277 if ac_fn_c_try_link "$LINENO"; then :
9278 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'
9281 rm -f core conftest.err conftest.$ac_objext \
9282 conftest$ac_exeext conftest.$ac_ext
9283 LDFLAGS="$save_LDFLAGS"
9284 else
9285 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'
9286 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'
9288 archive_cmds_need_lc='no'
9289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9290 hardcode_libdir_separator=:
9291 inherit_rpath=yes
9292 link_all_deplibs=yes
9295 netbsd*)
9296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9298 else
9299 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9301 hardcode_libdir_flag_spec='-R$libdir'
9302 hardcode_direct=yes
9303 hardcode_shlibpath_var=no
9306 newsos6)
9307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9308 hardcode_direct=yes
9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310 hardcode_libdir_separator=:
9311 hardcode_shlibpath_var=no
9314 *nto* | *qnx*)
9317 openbsd*)
9318 if test -f /usr/libexec/ld.so; then
9319 hardcode_direct=yes
9320 hardcode_shlibpath_var=no
9321 hardcode_direct_absolute=yes
9322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9324 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9326 export_dynamic_flag_spec='${wl}-E'
9327 else
9328 case $host_os in
9329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9331 hardcode_libdir_flag_spec='-R$libdir'
9334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9337 esac
9339 else
9340 ld_shlibs=no
9344 os2*)
9345 hardcode_libdir_flag_spec='-L$libdir'
9346 hardcode_minus_L=yes
9347 allow_undefined_flag=unsupported
9348 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'
9349 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9352 osf3*)
9353 if test "$GCC" = yes; then
9354 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9355 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'
9356 else
9357 allow_undefined_flag=' -expect_unresolved \*'
9358 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'
9360 archive_cmds_need_lc='no'
9361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9362 hardcode_libdir_separator=:
9365 osf4* | osf5*) # as osf3* with the addition of -msym flag
9366 if test "$GCC" = yes; then
9367 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9368 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'
9369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9370 else
9371 allow_undefined_flag=' -expect_unresolved \*'
9372 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'
9373 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~
9374 $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'
9376 # Both c and cxx compiler support -rpath directly
9377 hardcode_libdir_flag_spec='-rpath $libdir'
9379 archive_cmds_need_lc='no'
9380 hardcode_libdir_separator=:
9383 solaris*)
9384 no_undefined_flag=' -z defs'
9385 if test "$GCC" = yes; then
9386 wlarc='${wl}'
9387 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9388 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9389 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9390 else
9391 case `$CC -V 2>&1` in
9392 *"Compilers 5.0"*)
9393 wlarc=''
9394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9399 wlarc='${wl}'
9400 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9402 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9404 esac
9406 hardcode_libdir_flag_spec='-R$libdir'
9407 hardcode_shlibpath_var=no
9408 case $host_os in
9409 solaris2.[0-5] | solaris2.[0-5].*) ;;
9411 # The compiler driver will combine and reorder linker options,
9412 # but understands `-z linker_flag'. GCC discards it without `$wl',
9413 # but is careful enough not to reorder.
9414 # Supported since Solaris 2.6 (maybe 2.5.1?)
9415 if test "$GCC" = yes; then
9416 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9417 else
9418 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9421 esac
9422 link_all_deplibs=yes
9425 sunos4*)
9426 if test "x$host_vendor" = xsequent; then
9427 # Use $CC to link under sequent, because it throws in some extra .o
9428 # files that make .init and .fini sections work.
9429 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9430 else
9431 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9433 hardcode_libdir_flag_spec='-L$libdir'
9434 hardcode_direct=yes
9435 hardcode_minus_L=yes
9436 hardcode_shlibpath_var=no
9439 sysv4)
9440 case $host_vendor in
9441 sni)
9442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9443 hardcode_direct=yes # is this really true???
9445 siemens)
9446 ## LD is ld it makes a PLAMLIB
9447 ## CC just makes a GrossModule.
9448 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9449 reload_cmds='$CC -r -o $output$reload_objs'
9450 hardcode_direct=no
9452 motorola)
9453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9456 esac
9457 runpath_var='LD_RUN_PATH'
9458 hardcode_shlibpath_var=no
9461 sysv4.3*)
9462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9463 hardcode_shlibpath_var=no
9464 export_dynamic_flag_spec='-Bexport'
9467 sysv4*MP*)
9468 if test -d /usr/nec; then
9469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9470 hardcode_shlibpath_var=no
9471 runpath_var=LD_RUN_PATH
9472 hardcode_runpath_var=yes
9473 ld_shlibs=yes
9477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9478 no_undefined_flag='${wl}-z,text'
9479 archive_cmds_need_lc=no
9480 hardcode_shlibpath_var=no
9481 runpath_var='LD_RUN_PATH'
9483 if test "$GCC" = yes; then
9484 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 else
9487 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9492 sysv5* | sco3.2v5* | sco5v6*)
9493 # Note: We can NOT use -z defs as we might desire, because we do not
9494 # link with -lc, and that would cause any symbols used from libc to
9495 # always be unresolved, which means just about no library would
9496 # ever link correctly. If we're not using GNU ld we use -z text
9497 # though, which does catch some bad symbols but isn't as heavy-handed
9498 # as -z defs.
9499 no_undefined_flag='${wl}-z,text'
9500 allow_undefined_flag='${wl}-z,nodefs'
9501 archive_cmds_need_lc=no
9502 hardcode_shlibpath_var=no
9503 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9504 hardcode_libdir_separator=':'
9505 link_all_deplibs=yes
9506 export_dynamic_flag_spec='${wl}-Bexport'
9507 runpath_var='LD_RUN_PATH'
9509 if test "$GCC" = yes; then
9510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512 else
9513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9518 uts4*)
9519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9520 hardcode_libdir_flag_spec='-L$libdir'
9521 hardcode_shlibpath_var=no
9525 ld_shlibs=no
9527 esac
9529 if test x$host_vendor = xsni; then
9530 case $host in
9531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9532 export_dynamic_flag_spec='${wl}-Blargedynsym'
9534 esac
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9539 $as_echo "$ld_shlibs" >&6; }
9540 test "$ld_shlibs" = no && can_build_shared=no
9542 with_gnu_ld=$with_gnu_ld
9559 # Do we need to explicitly link libc?
9561 case "x$archive_cmds_need_lc" in
9562 x|xyes)
9563 # Assume -lc should be added
9564 archive_cmds_need_lc=yes
9566 if test "$enable_shared" = yes && test "$GCC" = yes; then
9567 case $archive_cmds in
9568 *'~'*)
9569 # FIXME: we may have to deal with multi-command sequences.
9571 '$CC '*)
9572 # Test whether the compiler implicitly links with -lc since on some
9573 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9574 # to ld, don't add -lc before -lgcc.
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9576 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9577 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 $RM conftest*
9581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9584 (eval $ac_compile) 2>&5
9585 ac_status=$?
9586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9587 test $ac_status = 0; } 2>conftest.err; then
9588 soname=conftest
9589 lib=conftest
9590 libobjs=conftest.$ac_objext
9591 deplibs=
9592 wl=$lt_prog_compiler_wl
9593 pic_flag=$lt_prog_compiler_pic
9594 compiler_flags=-v
9595 linker_flags=-v
9596 verstring=
9597 output_objdir=.
9598 libname=conftest
9599 lt_save_allow_undefined_flag=$allow_undefined_flag
9600 allow_undefined_flag=
9601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9602 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9603 ac_status=$?
9604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9605 test $ac_status = 0; }
9606 then
9607 lt_cv_archive_cmds_need_lc=no
9608 else
9609 lt_cv_archive_cmds_need_lc=yes
9611 allow_undefined_flag=$lt_save_allow_undefined_flag
9612 else
9613 cat conftest.err 1>&5
9615 $RM conftest*
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9619 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9620 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9622 esac
9625 esac
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9784 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9786 if test "$GCC" = yes; then
9787 case $host_os in
9788 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9789 *) lt_awk_arg="/^libraries:/" ;;
9790 esac
9791 case $host_os in
9792 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9793 *) lt_sed_strip_eq="s,=/,/,g" ;;
9794 esac
9795 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9796 case $lt_search_path_spec in
9797 *\;*)
9798 # if the path contains ";" then we assume it to be the separator
9799 # otherwise default to the standard path separator (i.e. ":") - it is
9800 # assumed that no part of a normal pathname contains ";" but that should
9801 # okay in the real world where ";" in dirpaths is itself problematic.
9802 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9805 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9807 esac
9808 # Ok, now we have the path, separated by spaces, we can step through it
9809 # and add multilib dir if necessary.
9810 lt_tmp_lt_search_path_spec=
9811 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9812 for lt_sys_path in $lt_search_path_spec; do
9813 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9814 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9815 else
9816 test -d "$lt_sys_path" && \
9817 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9819 done
9820 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9821 BEGIN {RS=" "; FS="/|\n";} {
9822 lt_foo="";
9823 lt_count=0;
9824 for (lt_i = NF; lt_i > 0; lt_i--) {
9825 if ($lt_i != "" && $lt_i != ".") {
9826 if ($lt_i == "..") {
9827 lt_count++;
9828 } else {
9829 if (lt_count == 0) {
9830 lt_foo="/" $lt_i lt_foo;
9831 } else {
9832 lt_count--;
9837 if (lt_foo != "") { lt_freq[lt_foo]++; }
9838 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9840 # AWK program above erroneously prepends '/' to C:/dos/paths
9841 # for these hosts.
9842 case $host_os in
9843 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9844 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9845 esac
9846 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9847 else
9848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9850 library_names_spec=
9851 libname_spec='lib$name'
9852 soname_spec=
9853 shrext_cmds=".so"
9854 postinstall_cmds=
9855 postuninstall_cmds=
9856 finish_cmds=
9857 finish_eval=
9858 shlibpath_var=
9859 shlibpath_overrides_runpath=unknown
9860 version_type=none
9861 dynamic_linker="$host_os ld.so"
9862 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9863 need_lib_prefix=unknown
9864 hardcode_into_libs=no
9866 # when you set need_version to no, make sure it does not cause -set_version
9867 # flags to be left without arguments
9868 need_version=unknown
9870 case $host_os in
9871 aix3*)
9872 version_type=linux
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9874 shlibpath_var=LIBPATH
9876 # AIX 3 has no versioning support, so we append a major version to the name.
9877 soname_spec='${libname}${release}${shared_ext}$major'
9880 aix[4-9]*)
9881 version_type=linux
9882 need_lib_prefix=no
9883 need_version=no
9884 hardcode_into_libs=yes
9885 if test "$host_cpu" = ia64; then
9886 # AIX 5 supports IA64
9887 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 else
9890 # With GCC up to 2.95.x, collect2 would create an import file
9891 # for dependence libraries. The import file would start with
9892 # the line `#! .'. This would cause the generated library to
9893 # depend on `.', always an invalid library. This was fixed in
9894 # development snapshots of GCC prior to 3.0.
9895 case $host_os in
9896 aix4 | aix4.[01] | aix4.[01].*)
9897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9898 echo ' yes '
9899 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9901 else
9902 can_build_shared=no
9905 esac
9906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9907 # soname into executable. Probably we can add versioning support to
9908 # collect2, so additional links can be useful in future.
9909 if test "$aix_use_runtimelinking" = yes; then
9910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9911 # instead of lib<name>.a to let people know that these are not
9912 # typical AIX shared libraries.
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 else
9915 # We preserve .a as extension for shared libraries through AIX4.2
9916 # and later when we are not doing run time linking.
9917 library_names_spec='${libname}${release}.a $libname.a'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9920 shlibpath_var=LIBPATH
9924 amigaos*)
9925 case $host_cpu in
9926 powerpc)
9927 # Since July 2007 AmigaOS4 officially supports .so libraries.
9928 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 m68k)
9932 library_names_spec='$libname.ixlibrary $libname.a'
9933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9934 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'
9936 esac
9939 beos*)
9940 library_names_spec='${libname}${shared_ext}'
9941 dynamic_linker="$host_os ld.so"
9942 shlibpath_var=LIBRARY_PATH
9945 bsdi[45]*)
9946 version_type=linux
9947 need_version=no
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 soname_spec='${libname}${release}${shared_ext}$major'
9950 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9951 shlibpath_var=LD_LIBRARY_PATH
9952 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9953 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9954 # the default ld.so.conf also contains /usr/contrib/lib and
9955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9956 # libtool to hard-code these into programs
9959 cygwin* | mingw* | pw32* | cegcc*)
9960 version_type=windows
9961 shrext_cmds=".dll"
9962 need_version=no
9963 need_lib_prefix=no
9965 case $GCC,$host_os in
9966 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9967 library_names_spec='$libname.dll.a'
9968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9969 postinstall_cmds='base_file=`basename \${file}`~
9970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9971 dldir=$destdir/`dirname \$dlpath`~
9972 test -d \$dldir || mkdir -p \$dldir~
9973 $install_prog $dir/$dlname \$dldir/$dlname~
9974 chmod a+x \$dldir/$dlname~
9975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9979 dlpath=$dir/\$dldll~
9980 $RM \$dlpath'
9981 shlibpath_overrides_runpath=yes
9983 case $host_os in
9984 cygwin*)
9985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9988 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9990 mingw* | cegcc*)
9991 # MinGW DLLs use traditional 'lib' prefix
9992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9994 pw32*)
9995 # pw32 DLLs use 'pw' prefix rather than 'lib'
9996 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9998 esac
10002 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10004 esac
10005 dynamic_linker='Win32 ld.exe'
10006 # FIXME: first we should search . and the directory the executable is in
10007 shlibpath_var=PATH
10010 darwin* | rhapsody*)
10011 dynamic_linker="$host_os dyld"
10012 version_type=darwin
10013 need_lib_prefix=no
10014 need_version=no
10015 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10016 soname_spec='${libname}${release}${major}$shared_ext'
10017 shlibpath_overrides_runpath=yes
10018 shlibpath_var=DYLD_LIBRARY_PATH
10019 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10021 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10022 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10025 dgux*)
10026 version_type=linux
10027 need_lib_prefix=no
10028 need_version=no
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=LD_LIBRARY_PATH
10034 freebsd* | dragonfly*)
10035 # DragonFly does not have aout. When/if they implement a new
10036 # versioning mechanism, adjust this.
10037 if test -x /usr/bin/objformat; then
10038 objformat=`/usr/bin/objformat`
10039 else
10040 case $host_os in
10041 freebsd[23].*) objformat=aout ;;
10042 *) objformat=elf ;;
10043 esac
10045 version_type=freebsd-$objformat
10046 case $version_type in
10047 freebsd-elf*)
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10049 need_version=no
10050 need_lib_prefix=no
10052 freebsd-*)
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10054 need_version=yes
10056 esac
10057 shlibpath_var=LD_LIBRARY_PATH
10058 case $host_os in
10059 freebsd2.*)
10060 shlibpath_overrides_runpath=yes
10062 freebsd3.[01]* | freebsdelf3.[01]*)
10063 shlibpath_overrides_runpath=yes
10064 hardcode_into_libs=yes
10066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10068 shlibpath_overrides_runpath=no
10069 hardcode_into_libs=yes
10071 *) # from 4.6 on, and DragonFly
10072 shlibpath_overrides_runpath=yes
10073 hardcode_into_libs=yes
10075 esac
10078 haiku*)
10079 version_type=linux
10080 need_lib_prefix=no
10081 need_version=no
10082 dynamic_linker="$host_os runtime_loader"
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 shlibpath_var=LIBRARY_PATH
10086 shlibpath_overrides_runpath=yes
10087 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10088 hardcode_into_libs=yes
10091 hpux9* | hpux10* | hpux11*)
10092 # Give a soname corresponding to the major version so that dld.sl refuses to
10093 # link against other versions.
10094 version_type=sunos
10095 need_lib_prefix=no
10096 need_version=no
10097 case $host_cpu in
10098 ia64*)
10099 shrext_cmds='.so'
10100 hardcode_into_libs=yes
10101 dynamic_linker="$host_os dld.so"
10102 shlibpath_var=LD_LIBRARY_PATH
10103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 if test "X$HPUX_IA64_MODE" = X32; then
10107 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10108 else
10109 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10113 hppa*64*)
10114 shrext_cmds='.sl'
10115 hardcode_into_libs=yes
10116 dynamic_linker="$host_os dld.sl"
10117 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10125 shrext_cmds='.sl'
10126 dynamic_linker="$host_os dld.sl"
10127 shlibpath_var=SHLIB_PATH
10128 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10132 esac
10133 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10134 postinstall_cmds='chmod 555 $lib'
10135 # or fails outright, so override atomically:
10136 install_override_mode=555
10139 interix[3-9]*)
10140 version_type=linux
10141 need_lib_prefix=no
10142 need_version=no
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 shlibpath_overrides_runpath=no
10148 hardcode_into_libs=yes
10151 irix5* | irix6* | nonstopux*)
10152 case $host_os in
10153 nonstopux*) version_type=nonstopux ;;
10155 if test "$lt_cv_prog_gnu_ld" = yes; then
10156 version_type=linux
10157 else
10158 version_type=irix
10159 fi ;;
10160 esac
10161 need_lib_prefix=no
10162 need_version=no
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10165 case $host_os in
10166 irix5* | nonstopux*)
10167 libsuff= shlibsuff=
10170 case $LD in # libtool.m4 will add one of these switches to LD
10171 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10172 libsuff= shlibsuff= libmagic=32-bit;;
10173 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10174 libsuff=32 shlibsuff=N32 libmagic=N32;;
10175 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10176 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10177 *) libsuff= shlibsuff= libmagic=never-match;;
10178 esac
10180 esac
10181 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10182 shlibpath_overrides_runpath=no
10183 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10184 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10185 hardcode_into_libs=yes
10188 # No shared lib support for Linux oldld, aout, or coff.
10189 linux*oldld* | linux*aout* | linux*coff*)
10190 dynamic_linker=no
10193 # This must be Linux ELF.
10195 # uclinux* changes (here and below) have been submitted to the libtool
10196 # project, but have not yet been accepted: they are GCC-local changes
10197 # for the time being. (See
10198 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10199 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10200 version_type=linux
10201 need_lib_prefix=no
10202 need_version=no
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10206 shlibpath_var=LD_LIBRARY_PATH
10207 shlibpath_overrides_runpath=no
10209 # Some binutils ld are patched to set DT_RUNPATH
10210 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213 lt_cv_shlibpath_overrides_runpath=no
10214 save_LDFLAGS=$LDFLAGS
10215 save_libdir=$libdir
10216 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10217 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10218 if test x$gcc_no_link = xyes; then
10219 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10225 main ()
10229 return 0;
10231 _ACEOF
10232 if ac_fn_c_try_link "$LINENO"; then :
10233 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10234 lt_cv_shlibpath_overrides_runpath=yes
10237 rm -f core conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 LDFLAGS=$save_LDFLAGS
10240 libdir=$save_libdir
10244 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10246 # This implies no fast_install, which is unacceptable.
10247 # Some rework will be needed to allow for fast_install
10248 # before this can be enabled.
10249 hardcode_into_libs=yes
10251 # Append ld.so.conf contents to the search path
10252 if test -f /etc/ld.so.conf; then
10253 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' ' '`
10254 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10257 # We used to test for /lib/ld.so.1 and disable shared libraries on
10258 # powerpc, because MkLinux only supported shared libraries with the
10259 # GNU dynamic linker. Since this was broken with cross compilers,
10260 # most powerpc-linux boxes support dynamic linking these days and
10261 # people can always --disable-shared, the test was removed, and we
10262 # assume the GNU/Linux dynamic linker is in use.
10263 dynamic_linker='GNU/Linux ld.so'
10266 netbsd*)
10267 version_type=sunos
10268 need_lib_prefix=no
10269 need_version=no
10270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273 dynamic_linker='NetBSD (a.out) ld.so'
10274 else
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 dynamic_linker='NetBSD ld.elf_so'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=yes
10281 hardcode_into_libs=yes
10284 newsos6)
10285 version_type=linux
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10291 *nto* | *qnx*)
10292 version_type=qnx
10293 need_lib_prefix=no
10294 need_version=no
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=no
10299 hardcode_into_libs=yes
10300 dynamic_linker='ldqnx.so'
10303 openbsd*)
10304 version_type=sunos
10305 sys_lib_dlsearch_path_spec="/usr/lib"
10306 need_lib_prefix=no
10307 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10308 case $host_os in
10309 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10310 *) need_version=no ;;
10311 esac
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10316 case $host_os in
10317 openbsd2.[89] | openbsd2.[89].*)
10318 shlibpath_overrides_runpath=no
10321 shlibpath_overrides_runpath=yes
10323 esac
10324 else
10325 shlibpath_overrides_runpath=yes
10329 os2*)
10330 libname_spec='$name'
10331 shrext_cmds=".dll"
10332 need_lib_prefix=no
10333 library_names_spec='$libname${shared_ext} $libname.a'
10334 dynamic_linker='OS/2 ld.exe'
10335 shlibpath_var=LIBPATH
10338 osf3* | osf4* | osf5*)
10339 version_type=osf
10340 need_lib_prefix=no
10341 need_version=no
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10346 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10349 rdos*)
10350 dynamic_linker=no
10353 solaris*)
10354 version_type=linux
10355 need_lib_prefix=no
10356 need_version=no
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10362 # ldd complains unless libraries are executable
10363 postinstall_cmds='chmod +x $lib'
10366 sunos4*)
10367 version_type=sunos
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 if test "$with_gnu_ld" = yes; then
10373 need_lib_prefix=no
10375 need_version=yes
10378 sysv4 | sysv4.3*)
10379 version_type=linux
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 case $host_vendor in
10384 sni)
10385 shlibpath_overrides_runpath=no
10386 need_lib_prefix=no
10387 runpath_var=LD_RUN_PATH
10389 siemens)
10390 need_lib_prefix=no
10392 motorola)
10393 need_lib_prefix=no
10394 need_version=no
10395 shlibpath_overrides_runpath=no
10396 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10398 esac
10401 sysv4*MP*)
10402 if test -d /usr/nec ;then
10403 version_type=linux
10404 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10405 soname_spec='$libname${shared_ext}.$major'
10406 shlibpath_var=LD_LIBRARY_PATH
10410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10411 version_type=freebsd-elf
10412 need_lib_prefix=no
10413 need_version=no
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 shlibpath_overrides_runpath=yes
10418 hardcode_into_libs=yes
10419 if test "$with_gnu_ld" = yes; then
10420 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10421 else
10422 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10423 case $host_os in
10424 sco3.2v5*)
10425 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10427 esac
10429 sys_lib_dlsearch_path_spec='/usr/lib'
10432 tpf*)
10433 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10434 version_type=linux
10435 need_lib_prefix=no
10436 need_version=no
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 shlibpath_overrides_runpath=no
10440 hardcode_into_libs=yes
10443 uts4*)
10444 version_type=linux
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 shlibpath_var=LD_LIBRARY_PATH
10450 # Shared libraries for VwWorks, >= 7 only at this stage
10451 # and (fpic) still incompatible with "large" code models
10452 # in a few configurations. Only for RTP mode in any case,
10453 # and upon explicit request at configure time.
10454 vxworks7*)
10455 dynamic_linker=no
10456 case ${with_multisubdir}-${enable_shared} in
10457 *large*)
10459 *mrtp*-yes)
10460 version_type=linux
10461 need_lib_prefix=no
10462 need_version=no
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 dynamic_linker="$host_os module_loader"
10467 esac
10470 dynamic_linker=no
10472 esac
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10474 $as_echo "$dynamic_linker" >&6; }
10475 test "$dynamic_linker" = no && can_build_shared=no
10477 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10478 if test "$GCC" = yes; then
10479 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10482 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10483 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10485 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10486 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10581 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10582 hardcode_action=
10583 if test -n "$hardcode_libdir_flag_spec" ||
10584 test -n "$runpath_var" ||
10585 test "X$hardcode_automatic" = "Xyes" ; then
10587 # We can hardcode non-existent directories.
10588 if test "$hardcode_direct" != no &&
10589 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10590 # have to relink, otherwise we might link with an installed library
10591 # when we should be linking with a yet-to-be-installed one
10592 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10593 test "$hardcode_minus_L" != no; then
10594 # Linking always hardcodes the temporary library directory.
10595 hardcode_action=relink
10596 else
10597 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10598 hardcode_action=immediate
10600 else
10601 # We cannot hardcode anything, or else we can only hardcode existing
10602 # directories.
10603 hardcode_action=unsupported
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10606 $as_echo "$hardcode_action" >&6; }
10608 if test "$hardcode_action" = relink ||
10609 test "$inherit_rpath" = yes; then
10610 # Fast installation is not supported
10611 enable_fast_install=no
10612 elif test "$shlibpath_overrides_runpath" = yes ||
10613 test "$enable_shared" = no; then
10614 # Fast installation is not necessary
10615 enable_fast_install=needless
10623 if test "x$enable_dlopen" != xyes; then
10624 enable_dlopen=unknown
10625 enable_dlopen_self=unknown
10626 enable_dlopen_self_static=unknown
10627 else
10628 lt_cv_dlopen=no
10629 lt_cv_dlopen_libs=
10631 case $host_os in
10632 beos*)
10633 lt_cv_dlopen="load_add_on"
10634 lt_cv_dlopen_libs=
10635 lt_cv_dlopen_self=yes
10638 mingw* | pw32* | cegcc*)
10639 lt_cv_dlopen="LoadLibrary"
10640 lt_cv_dlopen_libs=
10643 cygwin*)
10644 lt_cv_dlopen="dlopen"
10645 lt_cv_dlopen_libs=
10648 darwin*)
10649 # if libdl is installed we need to link against it
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10651 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10652 if ${ac_cv_lib_dl_dlopen+:} false; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 ac_check_lib_save_LIBS=$LIBS
10656 LIBS="-ldl $LIBS"
10657 if test x$gcc_no_link = xyes; then
10658 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10666 #ifdef __cplusplus
10667 extern "C"
10668 #endif
10669 char dlopen ();
10671 main ()
10673 return dlopen ();
10675 return 0;
10677 _ACEOF
10678 if ac_fn_c_try_link "$LINENO"; then :
10679 ac_cv_lib_dl_dlopen=yes
10680 else
10681 ac_cv_lib_dl_dlopen=no
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LIBS=$ac_check_lib_save_LIBS
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10688 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10689 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10691 else
10693 lt_cv_dlopen="dyld"
10694 lt_cv_dlopen_libs=
10695 lt_cv_dlopen_self=yes
10702 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10703 if test "x$ac_cv_func_shl_load" = xyes; then :
10704 lt_cv_dlopen="shl_load"
10705 else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10707 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10708 if ${ac_cv_lib_dld_shl_load+:} false; then :
10709 $as_echo_n "(cached) " >&6
10710 else
10711 ac_check_lib_save_LIBS=$LIBS
10712 LIBS="-ldld $LIBS"
10713 if test x$gcc_no_link = xyes; then
10714 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10719 /* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
10722 #ifdef __cplusplus
10723 extern "C"
10724 #endif
10725 char shl_load ();
10727 main ()
10729 return shl_load ();
10731 return 0;
10733 _ACEOF
10734 if ac_fn_c_try_link "$LINENO"; then :
10735 ac_cv_lib_dld_shl_load=yes
10736 else
10737 ac_cv_lib_dld_shl_load=no
10739 rm -f core conftest.err conftest.$ac_objext \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10744 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10745 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10746 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10747 else
10748 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10749 if test "x$ac_cv_func_dlopen" = xyes; then :
10750 lt_cv_dlopen="dlopen"
10751 else
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10753 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10754 if ${ac_cv_lib_dl_dlopen+:} false; then :
10755 $as_echo_n "(cached) " >&6
10756 else
10757 ac_check_lib_save_LIBS=$LIBS
10758 LIBS="-ldl $LIBS"
10759 if test x$gcc_no_link = xyes; then
10760 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10765 /* Override any GCC internal prototype to avoid an error.
10766 Use char because int might match the return type of a GCC
10767 builtin and then its argument prototype would still apply. */
10768 #ifdef __cplusplus
10769 extern "C"
10770 #endif
10771 char dlopen ();
10773 main ()
10775 return dlopen ();
10777 return 0;
10779 _ACEOF
10780 if ac_fn_c_try_link "$LINENO"; then :
10781 ac_cv_lib_dl_dlopen=yes
10782 else
10783 ac_cv_lib_dl_dlopen=no
10785 rm -f core conftest.err conftest.$ac_objext \
10786 conftest$ac_exeext conftest.$ac_ext
10787 LIBS=$ac_check_lib_save_LIBS
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10790 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10791 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10792 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10793 else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10795 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10796 if ${ac_cv_lib_svld_dlopen+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 ac_check_lib_save_LIBS=$LIBS
10800 LIBS="-lsvld $LIBS"
10801 if test x$gcc_no_link = xyes; then
10802 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10807 /* Override any GCC internal prototype to avoid an error.
10808 Use char because int might match the return type of a GCC
10809 builtin and then its argument prototype would still apply. */
10810 #ifdef __cplusplus
10811 extern "C"
10812 #endif
10813 char dlopen ();
10815 main ()
10817 return dlopen ();
10819 return 0;
10821 _ACEOF
10822 if ac_fn_c_try_link "$LINENO"; then :
10823 ac_cv_lib_svld_dlopen=yes
10824 else
10825 ac_cv_lib_svld_dlopen=no
10827 rm -f core conftest.err conftest.$ac_objext \
10828 conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10832 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10833 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10835 else
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10837 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10838 if ${ac_cv_lib_dld_dld_link+:} false; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-ldld $LIBS"
10843 if test x$gcc_no_link = xyes; then
10844 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h. */
10849 /* Override any GCC internal prototype to avoid an error.
10850 Use char because int might match the return type of a GCC
10851 builtin and then its argument prototype would still apply. */
10852 #ifdef __cplusplus
10853 extern "C"
10854 #endif
10855 char dld_link ();
10857 main ()
10859 return dld_link ();
10861 return 0;
10863 _ACEOF
10864 if ac_fn_c_try_link "$LINENO"; then :
10865 ac_cv_lib_dld_dld_link=yes
10866 else
10867 ac_cv_lib_dld_dld_link=no
10869 rm -f core conftest.err conftest.$ac_objext \
10870 conftest$ac_exeext conftest.$ac_ext
10871 LIBS=$ac_check_lib_save_LIBS
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10874 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10875 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10876 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10895 esac
10897 if test "x$lt_cv_dlopen" != xno; then
10898 enable_dlopen=yes
10899 else
10900 enable_dlopen=no
10903 case $lt_cv_dlopen in
10904 dlopen)
10905 save_CPPFLAGS="$CPPFLAGS"
10906 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10908 save_LDFLAGS="$LDFLAGS"
10909 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10911 save_LIBS="$LIBS"
10912 LIBS="$lt_cv_dlopen_libs $LIBS"
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10915 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10916 if ${lt_cv_dlopen_self+:} false; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 if test "$cross_compiling" = yes; then :
10920 lt_cv_dlopen_self=cross
10921 else
10922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10923 lt_status=$lt_dlunknown
10924 cat > conftest.$ac_ext <<_LT_EOF
10925 #line 10925 "configure"
10926 #include "confdefs.h"
10928 #if HAVE_DLFCN_H
10929 #include <dlfcn.h>
10930 #endif
10932 #include <stdio.h>
10934 #ifdef RTLD_GLOBAL
10935 # define LT_DLGLOBAL RTLD_GLOBAL
10936 #else
10937 # ifdef DL_GLOBAL
10938 # define LT_DLGLOBAL DL_GLOBAL
10939 # else
10940 # define LT_DLGLOBAL 0
10941 # endif
10942 #endif
10944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10945 find out it does not work in some platform. */
10946 #ifndef LT_DLLAZY_OR_NOW
10947 # ifdef RTLD_LAZY
10948 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10949 # else
10950 # ifdef DL_LAZY
10951 # define LT_DLLAZY_OR_NOW DL_LAZY
10952 # else
10953 # ifdef RTLD_NOW
10954 # define LT_DLLAZY_OR_NOW RTLD_NOW
10955 # else
10956 # ifdef DL_NOW
10957 # define LT_DLLAZY_OR_NOW DL_NOW
10958 # else
10959 # define LT_DLLAZY_OR_NOW 0
10960 # endif
10961 # endif
10962 # endif
10963 # endif
10964 #endif
10966 /* When -fvisbility=hidden is used, assume the code has been annotated
10967 correspondingly for the symbols needed. */
10968 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10969 void fnord () __attribute__((visibility("default")));
10970 #endif
10972 void fnord () { int i=42; }
10973 int main ()
10975 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10976 int status = $lt_dlunknown;
10978 if (self)
10980 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10981 else
10983 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10984 else puts (dlerror ());
10986 /* dlclose (self); */
10988 else
10989 puts (dlerror ());
10991 return status;
10993 _LT_EOF
10994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10995 (eval $ac_link) 2>&5
10996 ac_status=$?
10997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10998 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10999 (./conftest; exit; ) >&5 2>/dev/null
11000 lt_status=$?
11001 case x$lt_status in
11002 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11003 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11004 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11005 esac
11006 else :
11007 # compilation failed
11008 lt_cv_dlopen_self=no
11011 rm -fr conftest*
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11016 $as_echo "$lt_cv_dlopen_self" >&6; }
11018 if test "x$lt_cv_dlopen_self" = xyes; then
11019 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11021 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11022 if ${lt_cv_dlopen_self_static+:} false; then :
11023 $as_echo_n "(cached) " >&6
11024 else
11025 if test "$cross_compiling" = yes; then :
11026 lt_cv_dlopen_self_static=cross
11027 else
11028 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11029 lt_status=$lt_dlunknown
11030 cat > conftest.$ac_ext <<_LT_EOF
11031 #line 11031 "configure"
11032 #include "confdefs.h"
11034 #if HAVE_DLFCN_H
11035 #include <dlfcn.h>
11036 #endif
11038 #include <stdio.h>
11040 #ifdef RTLD_GLOBAL
11041 # define LT_DLGLOBAL RTLD_GLOBAL
11042 #else
11043 # ifdef DL_GLOBAL
11044 # define LT_DLGLOBAL DL_GLOBAL
11045 # else
11046 # define LT_DLGLOBAL 0
11047 # endif
11048 #endif
11050 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11051 find out it does not work in some platform. */
11052 #ifndef LT_DLLAZY_OR_NOW
11053 # ifdef RTLD_LAZY
11054 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11055 # else
11056 # ifdef DL_LAZY
11057 # define LT_DLLAZY_OR_NOW DL_LAZY
11058 # else
11059 # ifdef RTLD_NOW
11060 # define LT_DLLAZY_OR_NOW RTLD_NOW
11061 # else
11062 # ifdef DL_NOW
11063 # define LT_DLLAZY_OR_NOW DL_NOW
11064 # else
11065 # define LT_DLLAZY_OR_NOW 0
11066 # endif
11067 # endif
11068 # endif
11069 # endif
11070 #endif
11072 /* When -fvisbility=hidden is used, assume the code has been annotated
11073 correspondingly for the symbols needed. */
11074 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11075 void fnord () __attribute__((visibility("default")));
11076 #endif
11078 void fnord () { int i=42; }
11079 int main ()
11081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11082 int status = $lt_dlunknown;
11084 if (self)
11086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11087 else
11089 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11090 else puts (dlerror ());
11092 /* dlclose (self); */
11094 else
11095 puts (dlerror ());
11097 return status;
11099 _LT_EOF
11100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11101 (eval $ac_link) 2>&5
11102 ac_status=$?
11103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11104 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11105 (./conftest; exit; ) >&5 2>/dev/null
11106 lt_status=$?
11107 case x$lt_status in
11108 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11109 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11110 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11111 esac
11112 else :
11113 # compilation failed
11114 lt_cv_dlopen_self_static=no
11117 rm -fr conftest*
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11122 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11125 CPPFLAGS="$save_CPPFLAGS"
11126 LDFLAGS="$save_LDFLAGS"
11127 LIBS="$save_LIBS"
11129 esac
11131 case $lt_cv_dlopen_self in
11132 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11133 *) enable_dlopen_self=unknown ;;
11134 esac
11136 case $lt_cv_dlopen_self_static in
11137 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11138 *) enable_dlopen_self_static=unknown ;;
11139 esac
11158 striplib=
11159 old_striplib=
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11161 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11162 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11163 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11164 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11166 $as_echo "yes" >&6; }
11167 else
11168 # FIXME - insert some real tests, host_os isn't really good enough
11169 case $host_os in
11170 darwin*)
11171 if test -n "$STRIP" ; then
11172 striplib="$STRIP -x"
11173 old_striplib="$STRIP -S"
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11175 $as_echo "yes" >&6; }
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11185 esac
11199 # Report which library types will actually be built
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11201 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11203 $as_echo "$can_build_shared" >&6; }
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11206 $as_echo_n "checking whether to build shared libraries... " >&6; }
11207 test "$can_build_shared" = "no" && enable_shared=no
11209 # On AIX, shared libraries and static libraries use the same namespace, and
11210 # are all built from PIC.
11211 case $host_os in
11212 aix3*)
11213 test "$enable_shared" = yes && enable_static=no
11214 if test -n "$RANLIB"; then
11215 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11216 postinstall_cmds='$RANLIB $lib'
11220 aix[4-9]*)
11221 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11222 test "$enable_shared" = yes && enable_static=no
11225 esac
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11227 $as_echo "$enable_shared" >&6; }
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11230 $as_echo_n "checking whether to build static libraries... " >&6; }
11231 # Make sure either enable_shared or enable_static is yes.
11232 test "$enable_shared" = yes || enable_static=yes
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11234 $as_echo "$enable_static" >&6; }
11240 ac_ext=c
11241 ac_cpp='$CPP $CPPFLAGS'
11242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11246 CC="$lt_save_CC"
11260 ac_config_commands="$ac_config_commands libtool"
11265 # Only expand once:
11271 case $host in
11272 *-cygwin* | *-mingw*)
11273 # 'host' will be top-level target in the case of a target lib,
11274 # we must compare to with_cross_host to decide if this is a native
11275 # or cross-compiler and select where to install dlls appropriately.
11276 if test -n "$with_cross_host" &&
11277 test x"$with_cross_host" != x"no"; then
11278 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11279 else
11280 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11284 lt_host_flags=
11286 esac
11292 if test x$enable_darwin_at_rpath = xyes; then
11293 ENABLE_DARWIN_AT_RPATH_TRUE=
11294 ENABLE_DARWIN_AT_RPATH_FALSE='#'
11295 else
11296 ENABLE_DARWIN_AT_RPATH_TRUE='#'
11297 ENABLE_DARWIN_AT_RPATH_FALSE=
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11303 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11304 # Check whether --enable-maintainer-mode was given.
11305 if test "${enable_maintainer_mode+set}" = set; then :
11306 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11307 else
11308 USE_MAINTAINER_MODE=no
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11312 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11313 if test $USE_MAINTAINER_MODE = yes; then
11314 MAINTAINER_MODE_TRUE=
11315 MAINTAINER_MODE_FALSE='#'
11316 else
11317 MAINTAINER_MODE_TRUE='#'
11318 MAINTAINER_MODE_FALSE=
11321 MAINT=$MAINTAINER_MODE_TRUE
11325 ac_ext=c
11326 ac_cpp='$CPP $CPPFLAGS'
11327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11331 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
11332 # We must force CC to /not/ be precious variables; otherwise
11333 # the wrong, non-multilib-adjusted value will be used in multilibs.
11334 # As a side effect, we have to subst CFLAGS ourselves.
11338 ac_ext=c
11339 ac_cpp='$CPP $CPPFLAGS'
11340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11343 if test -n "$ac_tool_prefix"; then
11344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11345 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if ${ac_cv_prog_CC+:} false; then :
11349 $as_echo_n "(cached) " >&6
11350 else
11351 if test -n "$CC"; then
11352 ac_cv_prog_CC="$CC" # Let the user override the test.
11353 else
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11365 done
11366 done
11367 IFS=$as_save_IFS
11371 CC=$ac_cv_prog_CC
11372 if test -n "$CC"; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11374 $as_echo "$CC" >&6; }
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11382 if test -z "$ac_cv_prog_CC"; then
11383 ac_ct_CC=$CC
11384 # Extract the first word of "gcc", so it can be a program name with args.
11385 set dummy gcc; ac_word=$2
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11387 $as_echo_n "checking for $ac_word... " >&6; }
11388 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11389 $as_echo_n "(cached) " >&6
11390 else
11391 if test -n "$ac_ct_CC"; then
11392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11393 else
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $PATH
11397 IFS=$as_save_IFS
11398 test -z "$as_dir" && as_dir=.
11399 for ac_exec_ext in '' $ac_executable_extensions; do
11400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11401 ac_cv_prog_ac_ct_CC="gcc"
11402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11403 break 2
11405 done
11406 done
11407 IFS=$as_save_IFS
11411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11412 if test -n "$ac_ct_CC"; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11414 $as_echo "$ac_ct_CC" >&6; }
11415 else
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11420 if test "x$ac_ct_CC" = x; then
11421 CC=""
11422 else
11423 case $cross_compiling:$ac_tool_warned in
11424 yes:)
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11427 ac_tool_warned=yes ;;
11428 esac
11429 CC=$ac_ct_CC
11431 else
11432 CC="$ac_cv_prog_CC"
11435 if test -z "$CC"; then
11436 if test -n "$ac_tool_prefix"; then
11437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11438 set dummy ${ac_tool_prefix}cc; ac_word=$2
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11440 $as_echo_n "checking for $ac_word... " >&6; }
11441 if ${ac_cv_prog_CC+:} false; then :
11442 $as_echo_n "(cached) " >&6
11443 else
11444 if test -n "$CC"; then
11445 ac_cv_prog_CC="$CC" # Let the user override the test.
11446 else
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11450 IFS=$as_save_IFS
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11454 ac_cv_prog_CC="${ac_tool_prefix}cc"
11455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 break 2
11458 done
11459 done
11460 IFS=$as_save_IFS
11464 CC=$ac_cv_prog_CC
11465 if test -n "$CC"; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11467 $as_echo "$CC" >&6; }
11468 else
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 $as_echo "no" >&6; }
11476 if test -z "$CC"; then
11477 # Extract the first word of "cc", so it can be a program name with args.
11478 set dummy cc; ac_word=$2
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480 $as_echo_n "checking for $ac_word... " >&6; }
11481 if ${ac_cv_prog_CC+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 if test -n "$CC"; then
11485 ac_cv_prog_CC="$CC" # Let the user override the test.
11486 else
11487 ac_prog_rejected=no
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11491 IFS=$as_save_IFS
11492 test -z "$as_dir" && as_dir=.
11493 for ac_exec_ext in '' $ac_executable_extensions; do
11494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11496 ac_prog_rejected=yes
11497 continue
11499 ac_cv_prog_CC="cc"
11500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11501 break 2
11503 done
11504 done
11505 IFS=$as_save_IFS
11507 if test $ac_prog_rejected = yes; then
11508 # We found a bogon in the path, so make sure we never use it.
11509 set dummy $ac_cv_prog_CC
11510 shift
11511 if test $# != 0; then
11512 # We chose a different compiler from the bogus one.
11513 # However, it has the same basename, so the bogon will be chosen
11514 # first if we set CC to just the basename; use the full file name.
11515 shift
11516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11521 CC=$ac_cv_prog_CC
11522 if test -n "$CC"; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11524 $as_echo "$CC" >&6; }
11525 else
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527 $as_echo "no" >&6; }
11532 if test -z "$CC"; then
11533 if test -n "$ac_tool_prefix"; then
11534 for ac_prog in cl.exe
11536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11539 $as_echo_n "checking for $ac_word... " >&6; }
11540 if ${ac_cv_prog_CC+:} false; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 if test -n "$CC"; then
11544 ac_cv_prog_CC="$CC" # Let the user override the test.
11545 else
11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547 for as_dir in $PATH
11549 IFS=$as_save_IFS
11550 test -z "$as_dir" && as_dir=.
11551 for ac_exec_ext in '' $ac_executable_extensions; do
11552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11555 break 2
11557 done
11558 done
11559 IFS=$as_save_IFS
11563 CC=$ac_cv_prog_CC
11564 if test -n "$CC"; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11566 $as_echo "$CC" >&6; }
11567 else
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11573 test -n "$CC" && break
11574 done
11576 if test -z "$CC"; then
11577 ac_ct_CC=$CC
11578 for ac_prog in cl.exe
11580 # Extract the first word of "$ac_prog", so it can be a program name with args.
11581 set dummy $ac_prog; ac_word=$2
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583 $as_echo_n "checking for $ac_word... " >&6; }
11584 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11585 $as_echo_n "(cached) " >&6
11586 else
11587 if test -n "$ac_ct_CC"; then
11588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11589 else
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11593 IFS=$as_save_IFS
11594 test -z "$as_dir" && as_dir=.
11595 for ac_exec_ext in '' $ac_executable_extensions; do
11596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11597 ac_cv_prog_ac_ct_CC="$ac_prog"
11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11599 break 2
11601 done
11602 done
11603 IFS=$as_save_IFS
11607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11608 if test -n "$ac_ct_CC"; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11610 $as_echo "$ac_ct_CC" >&6; }
11611 else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613 $as_echo "no" >&6; }
11617 test -n "$ac_ct_CC" && break
11618 done
11620 if test "x$ac_ct_CC" = x; then
11621 CC=""
11622 else
11623 case $cross_compiling:$ac_tool_warned in
11624 yes:)
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11627 ac_tool_warned=yes ;;
11628 esac
11629 CC=$ac_ct_CC
11636 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11638 as_fn_error $? "no acceptable C compiler found in \$PATH
11639 See \`config.log' for more details" "$LINENO" 5; }
11641 # Provide some information about the compiler.
11642 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11643 set X $ac_compile
11644 ac_compiler=$2
11645 for ac_option in --version -v -V -qversion; do
11646 { { ac_try="$ac_compiler $ac_option >&5"
11647 case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650 esac
11651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11652 $as_echo "$ac_try_echo"; } >&5
11653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11654 ac_status=$?
11655 if test -s conftest.err; then
11656 sed '10a\
11657 ... rest of stderr output deleted ...
11658 10q' conftest.err >conftest.er1
11659 cat conftest.er1 >&5
11661 rm -f conftest.er1 conftest.err
11662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663 test $ac_status = 0; }
11664 done
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11668 if ${ac_cv_c_compiler_gnu+:} false; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11675 main ()
11677 #ifndef __GNUC__
11678 choke me
11679 #endif
11682 return 0;
11684 _ACEOF
11685 if ac_fn_c_try_compile "$LINENO"; then :
11686 ac_compiler_gnu=yes
11687 else
11688 ac_compiler_gnu=no
11690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11696 if test $ac_compiler_gnu = yes; then
11697 GCC=yes
11698 else
11699 GCC=
11701 ac_test_CFLAGS=${CFLAGS+set}
11702 ac_save_CFLAGS=$CFLAGS
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11705 if ${ac_cv_prog_cc_g+:} false; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 ac_save_c_werror_flag=$ac_c_werror_flag
11709 ac_c_werror_flag=yes
11710 ac_cv_prog_cc_g=no
11711 CFLAGS="-g"
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11716 main ()
11720 return 0;
11722 _ACEOF
11723 if ac_fn_c_try_compile "$LINENO"; then :
11724 ac_cv_prog_cc_g=yes
11725 else
11726 CFLAGS=""
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11731 main ()
11735 return 0;
11737 _ACEOF
11738 if ac_fn_c_try_compile "$LINENO"; then :
11740 else
11741 ac_c_werror_flag=$ac_save_c_werror_flag
11742 CFLAGS="-g"
11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744 /* end confdefs.h. */
11747 main ()
11751 return 0;
11753 _ACEOF
11754 if ac_fn_c_try_compile "$LINENO"; then :
11755 ac_cv_prog_cc_g=yes
11757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11762 ac_c_werror_flag=$ac_save_c_werror_flag
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11765 $as_echo "$ac_cv_prog_cc_g" >&6; }
11766 if test "$ac_test_CFLAGS" = set; then
11767 CFLAGS=$ac_save_CFLAGS
11768 elif test $ac_cv_prog_cc_g = yes; then
11769 if test "$GCC" = yes; then
11770 CFLAGS="-g -O2"
11771 else
11772 CFLAGS="-g"
11774 else
11775 if test "$GCC" = yes; then
11776 CFLAGS="-O2"
11777 else
11778 CFLAGS=
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11783 if ${ac_cv_prog_cc_c89+:} false; then :
11784 $as_echo_n "(cached) " >&6
11785 else
11786 ac_cv_prog_cc_c89=no
11787 ac_save_CC=$CC
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11790 #include <stdarg.h>
11791 #include <stdio.h>
11792 struct stat;
11793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11794 struct buf { int x; };
11795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11796 static char *e (p, i)
11797 char **p;
11798 int i;
11800 return p[i];
11802 static char *f (char * (*g) (char **, int), char **p, ...)
11804 char *s;
11805 va_list v;
11806 va_start (v,p);
11807 s = g (p, va_arg (v,int));
11808 va_end (v);
11809 return s;
11812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11813 function prototypes and stuff, but not '\xHH' hex character constants.
11814 These don't provoke an error unfortunately, instead are silently treated
11815 as 'x'. The following induces an error, until -std is added to get
11816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11817 array size at least. It's necessary to write '\x00'==0 to get something
11818 that's true only with -std. */
11819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11822 inside strings and character constants. */
11823 #define FOO(x) 'x'
11824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11826 int test (int i, double x);
11827 struct s1 {int (*f) (int a);};
11828 struct s2 {int (*f) (double a);};
11829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11830 int argc;
11831 char **argv;
11833 main ()
11835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11837 return 0;
11839 _ACEOF
11840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11843 CC="$ac_save_CC $ac_arg"
11844 if ac_fn_c_try_compile "$LINENO"; then :
11845 ac_cv_prog_cc_c89=$ac_arg
11847 rm -f core conftest.err conftest.$ac_objext
11848 test "x$ac_cv_prog_cc_c89" != "xno" && break
11849 done
11850 rm -f conftest.$ac_ext
11851 CC=$ac_save_CC
11854 # AC_CACHE_VAL
11855 case "x$ac_cv_prog_cc_c89" in
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11858 $as_echo "none needed" >&6; } ;;
11859 xno)
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11861 $as_echo "unsupported" >&6; } ;;
11863 CC="$CC $ac_cv_prog_cc_c89"
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11866 esac
11867 if test "x$ac_cv_prog_cc_c89" != xno; then :
11871 ac_ext=c
11872 ac_cpp='$CPP $CPPFLAGS'
11873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11877 ac_ext=c
11878 ac_cpp='$CPP $CPPFLAGS'
11879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
11883 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
11884 if ${am_cv_prog_cc_c_o+:} false; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11891 main ()
11895 return 0;
11897 _ACEOF
11898 # Make sure it works both with $CC and with simple cc.
11899 # Following AC_PROG_CC_C_O, we do the test twice because some
11900 # compilers refuse to overwrite an existing .o file with -o,
11901 # though they will create one.
11902 am_cv_prog_cc_c_o=yes
11903 for am_i in 1 2; do
11904 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
11905 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } \
11909 && test -f conftest2.$ac_objext; then
11910 : OK
11911 else
11912 am_cv_prog_cc_c_o=no
11913 break
11915 done
11916 rm -f core conftest*
11917 unset am_i
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
11920 $as_echo "$am_cv_prog_cc_c_o" >&6; }
11921 if test "$am_cv_prog_cc_c_o" != yes; then
11922 # Losing compiler, so override with the script.
11923 # FIXME: It is wrong to rewrite CC.
11924 # But if we don't then we get into trouble of one sort or another.
11925 # A longer-term fix would be to have automake use am__CC in this case,
11926 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11927 CC="$am_aux_dir/compile $CC"
11929 ac_ext=c
11930 ac_cpp='$CPP $CPPFLAGS'
11931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11936 depcc="$CC" am_compiler_list=
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11939 $as_echo_n "checking dependency style of $depcc... " >&6; }
11940 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11944 # We make a subdir and do the tests there. Otherwise we can end up
11945 # making bogus files that we don't know about and never remove. For
11946 # instance it was reported that on HP-UX the gcc test will end up
11947 # making a dummy file named 'D' -- because '-MD' means "put the output
11948 # in D".
11949 rm -rf conftest.dir
11950 mkdir conftest.dir
11951 # Copy depcomp to subdir because otherwise we won't find it if we're
11952 # using a relative directory.
11953 cp "$am_depcomp" conftest.dir
11954 cd conftest.dir
11955 # We will build objects and dependencies in a subdirectory because
11956 # it helps to detect inapplicable dependency modes. For instance
11957 # both Tru64's cc and ICC support -MD to output dependencies as a
11958 # side effect of compilation, but ICC will put the dependencies in
11959 # the current directory while Tru64 will put them in the object
11960 # directory.
11961 mkdir sub
11963 am_cv_CC_dependencies_compiler_type=none
11964 if test "$am_compiler_list" = ""; then
11965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11967 am__universal=false
11968 case " $depcc " in #(
11969 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11970 esac
11972 for depmode in $am_compiler_list; do
11973 # Setup a source with many dependencies, because some compilers
11974 # like to wrap large dependency lists on column 80 (with \), and
11975 # we should not choose a depcomp mode which is confused by this.
11977 # We need to recreate these files for each test, as the compiler may
11978 # overwrite some of them when testing with obscure command lines.
11979 # This happens at least with the AIX C compiler.
11980 : > sub/conftest.c
11981 for i in 1 2 3 4 5 6; do
11982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11983 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11984 # Solaris 10 /bin/sh.
11985 echo '/* dummy */' > sub/conftst$i.h
11986 done
11987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11989 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11990 # mode. It turns out that the SunPro C++ compiler does not properly
11991 # handle '-M -o', and we need to detect this. Also, some Intel
11992 # versions had trouble with output in subdirs.
11993 am__obj=sub/conftest.${OBJEXT-o}
11994 am__minus_obj="-o $am__obj"
11995 case $depmode in
11996 gcc)
11997 # This depmode causes a compiler race in universal mode.
11998 test "$am__universal" = false || continue
12000 nosideeffect)
12001 # After this tag, mechanisms are not by side-effect, so they'll
12002 # only be used when explicitly requested.
12003 if test "x$enable_dependency_tracking" = xyes; then
12004 continue
12005 else
12006 break
12009 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12010 # This compiler won't grok '-c -o', but also, the minuso test has
12011 # not run yet. These depmodes are late enough in the game, and
12012 # so weak that their functioning should not be impacted.
12013 am__obj=conftest.${OBJEXT-o}
12014 am__minus_obj=
12016 none) break ;;
12017 esac
12018 if depmode=$depmode \
12019 source=sub/conftest.c object=$am__obj \
12020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12022 >/dev/null 2>conftest.err &&
12023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12027 # icc doesn't choke on unknown options, it will just issue warnings
12028 # or remarks (even with -Werror). So we grep stderr for any message
12029 # that says an option was ignored or not supported.
12030 # When given -MP, icc 7.0 and 7.1 complain thusly:
12031 # icc: Command line warning: ignoring option '-M'; no argument required
12032 # The diagnosis changed in icc 8.0:
12033 # icc: Command line remark: option '-MP' not supported
12034 if (grep 'ignoring option' conftest.err ||
12035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12036 am_cv_CC_dependencies_compiler_type=$depmode
12037 break
12040 done
12042 cd ..
12043 rm -rf conftest.dir
12044 else
12045 am_cv_CC_dependencies_compiler_type=none
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12050 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12051 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12054 test "x$enable_dependency_tracking" != xno \
12055 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12056 am__fastdepCC_TRUE=
12057 am__fastdepCC_FALSE='#'
12058 else
12059 am__fastdepCC_TRUE='#'
12060 am__fastdepCC_FALSE=
12070 if test "x$GCC" != "xyes"; then
12071 as_fn_error $? "libquadmath must be built with GCC" "$LINENO" 5
12073 ac_ext=c
12074 ac_cpp='$CPP $CPPFLAGS'
12075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12079 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12080 # On Suns, sometimes $CPP names a directory.
12081 if test -n "$CPP" && test -d "$CPP"; then
12082 CPP=
12084 if test -z "$CPP"; then
12085 if ${ac_cv_prog_CPP+:} false; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 # Double quotes because CPP needs to be expanded
12089 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12091 ac_preproc_ok=false
12092 for ac_c_preproc_warn_flag in '' yes
12094 # Use a header file that comes with gcc, so configuring glibc
12095 # with a fresh cross-compiler works.
12096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12097 # <limits.h> exists even on freestanding compilers.
12098 # On the NeXT, cc -E runs the code through the compiler's parser,
12099 # not just through cpp. "Syntax error" is here to catch this case.
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12102 #ifdef __STDC__
12103 # include <limits.h>
12104 #else
12105 # include <assert.h>
12106 #endif
12107 Syntax error
12108 _ACEOF
12109 if ac_fn_c_try_cpp "$LINENO"; then :
12111 else
12112 # Broken: fails on valid input.
12113 continue
12115 rm -f conftest.err conftest.i conftest.$ac_ext
12117 # OK, works on sane cases. Now check whether nonexistent headers
12118 # can be detected and how.
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12121 #include <ac_nonexistent.h>
12122 _ACEOF
12123 if ac_fn_c_try_cpp "$LINENO"; then :
12124 # Broken: success on invalid input.
12125 continue
12126 else
12127 # Passes both tests.
12128 ac_preproc_ok=:
12129 break
12131 rm -f conftest.err conftest.i conftest.$ac_ext
12133 done
12134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12135 rm -f conftest.i conftest.err conftest.$ac_ext
12136 if $ac_preproc_ok; then :
12137 break
12140 done
12141 ac_cv_prog_CPP=$CPP
12144 CPP=$ac_cv_prog_CPP
12145 else
12146 ac_cv_prog_CPP=$CPP
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12149 $as_echo "$CPP" >&6; }
12150 ac_preproc_ok=false
12151 for ac_c_preproc_warn_flag in '' yes
12153 # Use a header file that comes with gcc, so configuring glibc
12154 # with a fresh cross-compiler works.
12155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12156 # <limits.h> exists even on freestanding compilers.
12157 # On the NeXT, cc -E runs the code through the compiler's parser,
12158 # not just through cpp. "Syntax error" is here to catch this case.
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12161 #ifdef __STDC__
12162 # include <limits.h>
12163 #else
12164 # include <assert.h>
12165 #endif
12166 Syntax error
12167 _ACEOF
12168 if ac_fn_c_try_cpp "$LINENO"; then :
12170 else
12171 # Broken: fails on valid input.
12172 continue
12174 rm -f conftest.err conftest.i conftest.$ac_ext
12176 # OK, works on sane cases. Now check whether nonexistent headers
12177 # can be detected and how.
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12180 #include <ac_nonexistent.h>
12181 _ACEOF
12182 if ac_fn_c_try_cpp "$LINENO"; then :
12183 # Broken: success on invalid input.
12184 continue
12185 else
12186 # Passes both tests.
12187 ac_preproc_ok=:
12188 break
12190 rm -f conftest.err conftest.i conftest.$ac_ext
12192 done
12193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12194 rm -f conftest.i conftest.err conftest.$ac_ext
12195 if $ac_preproc_ok; then :
12197 else
12198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12200 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12201 See \`config.log' for more details" "$LINENO" 5; }
12204 ac_ext=c
12205 ac_cpp='$CPP $CPPFLAGS'
12206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12212 # Check whether --with-toolexeclibdir was given.
12213 if test "${with_toolexeclibdir+set}" = set; then :
12214 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
12218 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
12220 esac
12221 else
12222 with_toolexeclibdir=no
12227 # Calculate toolexeclibdir
12228 # Also toolexecdir, though it's only used in toolexeclibdir
12229 case ${version_specific_libs} in
12230 yes)
12231 # Need the gcc compiler version to know where to install libraries
12232 # and header files if --enable-version-specific-runtime-libs option
12233 # is selected.
12234 toolexecdir='$(libdir)/gcc/$(target_alias)'
12235 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
12238 if test -n "$with_cross_host" &&
12239 test x"$with_cross_host" != x"no"; then
12240 # Install a library built with a cross compiler in tooldir, not libdir.
12241 toolexecdir='$(exec_prefix)/$(target_alias)'
12242 case ${with_toolexeclibdir} in
12244 toolexeclibdir='$(toolexecdir)/lib'
12247 toolexeclibdir=${with_toolexeclibdir}
12249 esac
12250 else
12251 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12252 toolexeclibdir='$(libdir)'
12254 multi_os_directory=`$CC -print-multi-os-directory`
12255 case $multi_os_directory in
12256 .) ;; # Avoid trailing /.
12257 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12258 esac
12260 esac
12264 # AC_CHECK_LIBM variant which avoids AC_CHECK_LIB (that doesn't work
12265 # on bare metal). In the past we've used -lm in Makefile.am unconditionally,
12266 # let's use it there unless target knows it doesn't need that.
12267 LIBM=
12268 case $host in
12269 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
12270 # These system don't have libm, or don't need it
12273 LIBM=-lm
12275 esac
12278 for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
12279 do :
12280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12281 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12282 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12283 cat >>confdefs.h <<_ACEOF
12284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12285 _ACEOF
12289 done
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
12293 $as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
12294 if ${libgfor_cv_have_math_h_signgam+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12298 save_CFLAGS="$CFLAGS"
12299 CFLAGS="$CFLAGS -Werror"
12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12303 #include <math.h>
12304 void foo(void) { signgam = 1; }
12306 main ()
12310 return 0;
12312 _ACEOF
12313 if ac_fn_c_try_compile "$LINENO"; then :
12314 libgfor_cv_have_math_h_signgam=yes
12315 else
12316 libgfor_cv_have_math_h_signgam=no
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 CFLAGS="$save_CFLAGS"
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
12322 $as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
12323 if test $libgfor_cv_have_math_h_signgam = yes; then
12325 $as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
12329 # If available, sqrtl and cbrtl speed up the calculation -
12330 # but they are not required
12331 if test x$gcc_no_link != xyes; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
12333 $as_echo_n "checking for sqrtl in -lm... " >&6; }
12334 if ${ac_cv_lib_m_sqrtl+:} false; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 ac_check_lib_save_LIBS=$LIBS
12338 LIBS="-lm $LIBS"
12339 if test x$gcc_no_link = xyes; then
12340 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12345 /* Override any GCC internal prototype to avoid an error.
12346 Use char because int might match the return type of a GCC
12347 builtin and then its argument prototype would still apply. */
12348 #ifdef __cplusplus
12349 extern "C"
12350 #endif
12351 char sqrtl ();
12353 main ()
12355 return sqrtl ();
12357 return 0;
12359 _ACEOF
12360 if ac_fn_c_try_link "$LINENO"; then :
12361 ac_cv_lib_m_sqrtl=yes
12362 else
12363 ac_cv_lib_m_sqrtl=no
12365 rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12367 LIBS=$ac_check_lib_save_LIBS
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12370 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12371 if test "x$ac_cv_lib_m_sqrtl" = xyes; then :
12373 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
12378 $as_echo_n "checking for cbrtl in -lm... " >&6; }
12379 if ${ac_cv_lib_m_cbrtl+:} false; then :
12380 $as_echo_n "(cached) " >&6
12381 else
12382 ac_check_lib_save_LIBS=$LIBS
12383 LIBS="-lm $LIBS"
12384 if test x$gcc_no_link = xyes; then
12385 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12390 /* Override any GCC internal prototype to avoid an error.
12391 Use char because int might match the return type of a GCC
12392 builtin and then its argument prototype would still apply. */
12393 #ifdef __cplusplus
12394 extern "C"
12395 #endif
12396 char cbrtl ();
12398 main ()
12400 return cbrtl ();
12402 return 0;
12404 _ACEOF
12405 if ac_fn_c_try_link "$LINENO"; then :
12406 ac_cv_lib_m_cbrtl=yes
12407 else
12408 ac_cv_lib_m_cbrtl=no
12410 rm -f core conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12412 LIBS=$ac_check_lib_save_LIBS
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12415 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12416 if test "x$ac_cv_lib_m_cbrtl" = xyes; then :
12418 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12423 $as_echo_n "checking for feholdexcept in -lm... " >&6; }
12424 if ${ac_cv_lib_m_feholdexcept+:} false; then :
12425 $as_echo_n "(cached) " >&6
12426 else
12427 ac_check_lib_save_LIBS=$LIBS
12428 LIBS="-lm $LIBS"
12429 if test x$gcc_no_link = xyes; then
12430 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12438 #ifdef __cplusplus
12439 extern "C"
12440 #endif
12441 char feholdexcept ();
12443 main ()
12445 return feholdexcept ();
12447 return 0;
12449 _ACEOF
12450 if ac_fn_c_try_link "$LINENO"; then :
12451 ac_cv_lib_m_feholdexcept=yes
12452 else
12453 ac_cv_lib_m_feholdexcept=no
12455 rm -f core conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
12457 LIBS=$ac_check_lib_save_LIBS
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12460 $as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12461 if test "x$ac_cv_lib_m_feholdexcept" = xyes; then :
12463 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12468 $as_echo_n "checking for fesetround in -lm... " >&6; }
12469 if ${ac_cv_lib_m_fesetround+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 ac_check_lib_save_LIBS=$LIBS
12473 LIBS="-lm $LIBS"
12474 if test x$gcc_no_link = xyes; then
12475 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12480 /* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12483 #ifdef __cplusplus
12484 extern "C"
12485 #endif
12486 char fesetround ();
12488 main ()
12490 return fesetround ();
12492 return 0;
12494 _ACEOF
12495 if ac_fn_c_try_link "$LINENO"; then :
12496 ac_cv_lib_m_fesetround=yes
12497 else
12498 ac_cv_lib_m_fesetround=no
12500 rm -f core conftest.err conftest.$ac_objext \
12501 conftest$ac_exeext conftest.$ac_ext
12502 LIBS=$ac_check_lib_save_LIBS
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12505 $as_echo "$ac_cv_lib_m_fesetround" >&6; }
12506 if test "x$ac_cv_lib_m_fesetround" = xyes; then :
12508 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12513 $as_echo_n "checking for feupdateenv in -lm... " >&6; }
12514 if ${ac_cv_lib_m_feupdateenv+:} false; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12517 ac_check_lib_save_LIBS=$LIBS
12518 LIBS="-lm $LIBS"
12519 if test x$gcc_no_link = xyes; then
12520 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h. */
12525 /* Override any GCC internal prototype to avoid an error.
12526 Use char because int might match the return type of a GCC
12527 builtin and then its argument prototype would still apply. */
12528 #ifdef __cplusplus
12529 extern "C"
12530 #endif
12531 char feupdateenv ();
12533 main ()
12535 return feupdateenv ();
12537 return 0;
12539 _ACEOF
12540 if ac_fn_c_try_link "$LINENO"; then :
12541 ac_cv_lib_m_feupdateenv=yes
12542 else
12543 ac_cv_lib_m_feupdateenv=no
12545 rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext conftest.$ac_ext
12547 LIBS=$ac_check_lib_save_LIBS
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12550 $as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12551 if test "x$ac_cv_lib_m_feupdateenv" = xyes; then :
12553 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12558 $as_echo_n "checking for fesetenv in -lm... " >&6; }
12559 if ${ac_cv_lib_m_fesetenv+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 ac_check_lib_save_LIBS=$LIBS
12563 LIBS="-lm $LIBS"
12564 if test x$gcc_no_link = xyes; then
12565 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12570 /* Override any GCC internal prototype to avoid an error.
12571 Use char because int might match the return type of a GCC
12572 builtin and then its argument prototype would still apply. */
12573 #ifdef __cplusplus
12574 extern "C"
12575 #endif
12576 char fesetenv ();
12578 main ()
12580 return fesetenv ();
12582 return 0;
12584 _ACEOF
12585 if ac_fn_c_try_link "$LINENO"; then :
12586 ac_cv_lib_m_fesetenv=yes
12587 else
12588 ac_cv_lib_m_fesetenv=no
12590 rm -f core conftest.err conftest.$ac_objext \
12591 conftest$ac_exeext conftest.$ac_ext
12592 LIBS=$ac_check_lib_save_LIBS
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12595 $as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12596 if test "x$ac_cv_lib_m_fesetenv" = xyes; then :
12598 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12603 $as_echo_n "checking for fetestexcept in -lm... " >&6; }
12604 if ${ac_cv_lib_m_fetestexcept+:} false; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12607 ac_check_lib_save_LIBS=$LIBS
12608 LIBS="-lm $LIBS"
12609 if test x$gcc_no_link = xyes; then
12610 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12615 /* Override any GCC internal prototype to avoid an error.
12616 Use char because int might match the return type of a GCC
12617 builtin and then its argument prototype would still apply. */
12618 #ifdef __cplusplus
12619 extern "C"
12620 #endif
12621 char fetestexcept ();
12623 main ()
12625 return fetestexcept ();
12627 return 0;
12629 _ACEOF
12630 if ac_fn_c_try_link "$LINENO"; then :
12631 ac_cv_lib_m_fetestexcept=yes
12632 else
12633 ac_cv_lib_m_fetestexcept=no
12635 rm -f core conftest.err conftest.$ac_objext \
12636 conftest$ac_exeext conftest.$ac_ext
12637 LIBS=$ac_check_lib_save_LIBS
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12640 $as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12641 if test "x$ac_cv_lib_m_fetestexcept" = xyes; then :
12643 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12647 for ac_func in strtoull
12648 do :
12649 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12650 if test "x$ac_cv_func_strtoull" = xyes; then :
12651 cat >>confdefs.h <<_ACEOF
12652 #define HAVE_STRTOULL 1
12653 _ACEOF
12656 done
12658 else
12659 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12661 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12664 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12666 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12669 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12671 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12674 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12676 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12679 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12681 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12684 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12686 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12689 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12691 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12696 # Check for hidden visibility (copied from libssp).
12697 saved_CFLAGS="$CFLAGS"
12698 CFLAGS="$CFLAGS -Werror"
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12700 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12704 void __attribute__((visibility ("hidden"))) bar (void) {}
12706 main ()
12710 return 0;
12712 _ACEOF
12713 if ac_fn_c_try_compile "$LINENO"; then :
12714 quadmath_hidden=yes
12715 else
12716 quadmath_hidden=no
12718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12720 $as_echo "$quadmath_hidden" >&6; }
12721 if test x$quadmath_hidden = xyes; then
12723 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12726 CFLAGS="$saved_CFLAGS"
12728 # Check for symbol versioning (copied from libssp).
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12730 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
12731 # Check whether --enable-symvers was given.
12732 if test "${enable_symvers+set}" = set; then :
12733 enableval=$enable_symvers; quadmath_use_symver=$enableval
12734 else
12735 quadmath_use_symver=yes
12738 if test "x$quadmath_use_symver" != xno; then
12739 if test x$gcc_no_link = xyes; then
12740 # If we cannot link, we cannot build shared libraries, so do not use
12741 # symbol versioning.
12742 quadmath_use_symver=no
12743 else
12744 save_LDFLAGS="$LDFLAGS"
12745 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12746 cat > conftest.map <<EOF
12747 FOO_1.0 {
12748 global: *foo*; bar; local: *;
12751 if test x$gcc_no_link = xyes; then
12752 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12756 int foo;
12758 main ()
12762 return 0;
12764 _ACEOF
12765 if ac_fn_c_try_link "$LINENO"; then :
12766 quadmath_use_symver=gnu
12767 else
12768 quadmath_use_symver=no
12770 rm -f core conftest.err conftest.$ac_objext \
12771 conftest$ac_exeext conftest.$ac_ext
12772 if test x$quadmath_use_symver = xno; then
12773 case "$target_os" in
12774 solaris2*)
12775 LDFLAGS="$save_LDFLAGS"
12776 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12777 # Sun ld cannot handle wildcards and treats all entries as undefined.
12778 cat > conftest.map <<EOF
12779 FOO_1.0 {
12780 global: foo; local: *;
12783 if test x$gcc_no_link = xyes; then
12784 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12788 int foo;
12790 main ()
12794 return 0;
12796 _ACEOF
12797 if ac_fn_c_try_link "$LINENO"; then :
12798 quadmath_use_symver=sun
12799 else
12800 quadmath_use_symver=no
12802 rm -f core conftest.err conftest.$ac_objext \
12803 conftest$ac_exeext conftest.$ac_ext
12805 esac
12807 LDFLAGS="$save_LDFLAGS"
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12811 $as_echo "$quadmath_use_symver" >&6; }
12812 if test "x$quadmath_use_symver" != xno; then
12813 LIBQUAD_USE_SYMVER_TRUE=
12814 LIBQUAD_USE_SYMVER_FALSE='#'
12815 else
12816 LIBQUAD_USE_SYMVER_TRUE='#'
12817 LIBQUAD_USE_SYMVER_FALSE=
12820 if test "x$quadmath_use_symver" = xgnu; then
12821 LIBQUAD_USE_SYMVER_GNU_TRUE=
12822 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12823 else
12824 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12825 LIBQUAD_USE_SYMVER_GNU_FALSE=
12828 if test "x$quadmath_use_symver" = xsun; then
12829 LIBQUAD_USE_SYMVER_SUN_TRUE=
12830 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12831 else
12832 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12833 LIBQUAD_USE_SYMVER_SUN_FALSE=
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12838 $as_echo_n "checking whether __float128 is supported... " >&6; }
12839 if ${libquad_cv_have_float128+:} false; then :
12840 $as_echo_n "(cached) " >&6
12841 else
12842 if test x$gcc_no_link = xyes; then
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12846 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12847 typedef _Complex float __attribute__((mode(TC))) __complex128;
12848 #else
12849 typedef _Complex float __attribute__((mode(KC))) __complex128;
12850 #endif
12852 __float128 foo (__float128 x)
12855 __complex128 z1, z2;
12857 z1 = x;
12858 z2 = x / 7.Q;
12859 z2 /= z1;
12861 return (__float128) z2;
12864 __float128 bar (__float128 x)
12866 return x * __builtin_huge_valq ();
12870 main ()
12873 foo (1.2Q);
12874 bar (1.2Q);
12877 return 0;
12879 _ACEOF
12880 if ac_fn_c_try_compile "$LINENO"; then :
12882 libquad_cv_have_float128=yes
12884 else
12886 libquad_cv_have_float128=no
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 else
12891 if test x$gcc_no_link = xyes; then
12892 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12897 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12898 typedef _Complex float __attribute__((mode(TC))) __complex128;
12899 #else
12900 typedef _Complex float __attribute__((mode(KC))) __complex128;
12901 #endif
12903 __float128 foo (__float128 x)
12906 __complex128 z1, z2;
12908 z1 = x;
12909 z2 = x / 7.Q;
12910 z2 /= z1;
12912 return (__float128) z2;
12915 __float128 bar (__float128 x)
12917 return x * __builtin_huge_valq ();
12921 main ()
12924 foo (1.2Q);
12925 bar (1.2Q);
12928 return 0;
12930 _ACEOF
12931 if ac_fn_c_try_link "$LINENO"; then :
12933 libquad_cv_have_float128=yes
12935 else
12937 libquad_cv_have_float128=no
12940 rm -f core conftest.err conftest.$ac_objext \
12941 conftest$ac_exeext conftest.$ac_ext
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12945 $as_echo "$libquad_cv_have_float128" >&6; }
12946 if test "x$libquad_cv_have_float128" = xyes; then
12947 BUILD_LIBQUADMATH_TRUE=
12948 BUILD_LIBQUADMATH_FALSE='#'
12949 else
12950 BUILD_LIBQUADMATH_TRUE='#'
12951 BUILD_LIBQUADMATH_FALSE=
12955 # Check for printf hook support.
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12957 $as_echo_n "checking whether printf hooks are supported... " >&6; }
12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h. */
12961 #include <printf.h>
12962 #include <stdarg.h>
12963 #include <stdlib.h>
12964 extern void flt128_va (void *, va_list *);
12965 extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12966 extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12969 main ()
12972 int pa_flt128 = register_printf_type (flt128_va);
12973 int mod_Q = register_printf_modifier (L"Q");
12974 int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12975 struct printf_info info = { .user = -1 };
12978 return 0;
12980 _ACEOF
12981 if ac_fn_c_try_compile "$LINENO"; then :
12982 quadmath_printf_hooks=yes
12983 else
12984 quadmath_printf_hooks=no
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12988 $as_echo "$quadmath_printf_hooks" >&6; }
12989 if test x$quadmath_printf_hooks = xyes; then
12991 $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12995 # Check for whether locale support for quadmath_snprintf or Q printf hooks
12996 # should be provided.
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12998 $as_echo_n "checking whether nl_langinfo should be used... " >&6; }
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13001 #include <langinfo.h>
13003 main ()
13006 const char *s;
13007 s = nl_langinfo (DECIMAL_POINT);
13008 s = nl_langinfo (MON_DECIMAL_POINT);
13009 s = nl_langinfo (GROUPING);
13010 s = nl_langinfo (MON_GROUPING);
13011 s = nl_langinfo (THOUSANDS_SEP);
13012 s = nl_langinfo (MON_THOUSANDS_SEP);
13013 (void) s;
13016 return 0;
13018 _ACEOF
13019 if ac_fn_c_try_compile "$LINENO"; then :
13020 quadmath_use_nl_langinfo=yes
13021 else
13022 quadmath_use_nl_langinfo=no
13024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
13026 $as_echo "$quadmath_use_nl_langinfo" >&6; }
13027 if test x$quadmath_use_nl_langinfo = xyes; then
13029 $as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
13034 $as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13037 #include <langinfo.h>
13039 main ()
13042 const char *s;
13043 s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
13044 s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
13045 s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
13046 s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
13047 (void) s;
13050 return 0;
13052 _ACEOF
13053 if ac_fn_c_try_compile "$LINENO"; then :
13054 quadmath_use_nl_langinfo_wc=yes
13055 else
13056 quadmath_use_nl_langinfo_wc=no
13058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
13060 $as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
13061 if test x$quadmath_use_nl_langinfo_wc = xyes; then
13063 $as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
13068 $as_echo_n "checking whether localeconv should be used... " >&6; }
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13071 #include <locale.h>
13073 main ()
13076 const struct lconv *l = localeconv ();
13077 const char *s;
13078 s = l->decimal_point;
13079 s = l->mon_decimal_point;
13080 s = l->grouping;
13081 s = l->mon_grouping;
13082 s = l->thousands_sep;
13083 s = l->mon_thousands_sep;
13084 (void) s;
13087 return 0;
13089 _ACEOF
13090 if ac_fn_c_try_compile "$LINENO"; then :
13091 quadmath_use_localeconv=yes
13092 else
13093 quadmath_use_localeconv=no
13095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
13097 $as_echo "$quadmath_use_localeconv" >&6; }
13098 if test x$quadmath_use_localeconv = xyes; then
13100 $as_echo "#define USE_LOCALECONV 1" >>confdefs.h
13104 # Check for whether i18n number rewriting support for quadmath_snprintf
13105 # or Q printf hooks should be provided.
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
13107 $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110 #include <langinfo.h>
13111 #include <limits.h>
13112 #include <string.h>
13113 #include <wchar.h>
13114 #include <wctype.h>
13116 main ()
13119 const char *s;
13120 char decimal[MB_LEN_MAX];
13121 wctrans_t map = wctrans ("to_outpunct");
13122 wint_t wdecimal = towctrans (L'.', map);
13123 mbstate_t state;
13124 memset (&state, '\0', sizeof (state));
13125 wcrtomb (decimal, wdecimal, &state);
13126 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
13127 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
13128 s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
13129 (void) s;
13132 return 0;
13134 _ACEOF
13135 if ac_fn_c_try_compile "$LINENO"; then :
13136 quadmath_use_i18n_number_h=yes
13137 else
13138 quadmath_use_i18n_number_h=no
13140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
13142 $as_echo "$quadmath_use_i18n_number_h" >&6; }
13143 if test x$quadmath_use_i18n_number_h = xyes; then
13145 $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
13149 # Add CET specific flags if CET is enabled
13150 # Check whether --enable-cet was given.
13151 if test "${enable_cet+set}" = set; then :
13152 enableval=$enable_cet;
13153 case "$enableval" in
13154 yes|no|auto) ;;
13155 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
13156 esac
13158 else
13159 enable_cet=auto
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
13164 $as_echo_n "checking for CET support... " >&6; }
13166 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
13167 case "$host" in
13168 i[34567]86-*-linux* | x86_64-*-linux*)
13169 case "$enable_cet" in
13170 auto)
13171 # Check if target supports multi-byte NOPs
13172 # and if compiler and assembler support CET insn.
13173 cet_save_CFLAGS="$CFLAGS"
13174 CFLAGS="$CFLAGS -fcf-protection"
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13179 main ()
13182 #if !defined(__SSE2__)
13183 #error target does not support multi-byte NOPs
13184 #else
13185 asm ("setssbsy");
13186 #endif
13189 return 0;
13191 _ACEOF
13192 if ac_fn_c_try_compile "$LINENO"; then :
13193 enable_cet=yes
13194 else
13195 enable_cet=no
13197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13198 CFLAGS="$cet_save_CFLAGS"
13200 yes)
13201 # Check if assembler supports CET.
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13206 main ()
13208 asm ("setssbsy");
13210 return 0;
13212 _ACEOF
13213 if ac_fn_c_try_compile "$LINENO"; then :
13215 else
13216 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 esac
13223 enable_cet=no
13225 esac
13226 if test x$enable_cet = xyes; then
13227 CET_FLAGS="-fcf-protection -mshstk"
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13229 $as_echo "yes" >&6; }
13230 else
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13235 XCFLAGS="$XCFLAGS $CET_FLAGS"
13237 case x$target in
13238 xpowerpc64le*-linux*)
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13241 #if __SIZEOF_LONG_DOUBLE__ != 16
13242 #error long double is double
13243 #endif
13245 main ()
13247 (void) 0;
13249 return 0;
13251 _ACEOF
13252 if ac_fn_c_try_cpp "$LINENO"; then :
13253 XCFLAGS="$XCFLAGS -mno-gnu-attribute"
13255 rm -f conftest.err conftest.i conftest.$ac_ext
13259 esac
13262 cat >confcache <<\_ACEOF
13263 # This file is a shell script that caches the results of configure
13264 # tests run on this system so they can be shared between configure
13265 # scripts and configure runs, see configure's option --config-cache.
13266 # It is not useful on other systems. If it contains results you don't
13267 # want to keep, you may remove or edit it.
13269 # config.status only pays attention to the cache file if you give it
13270 # the --recheck option to rerun configure.
13272 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13273 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13274 # following values.
13276 _ACEOF
13278 # The following way of writing the cache mishandles newlines in values,
13279 # but we know of no workaround that is simple, portable, and efficient.
13280 # So, we kill variables containing newlines.
13281 # Ultrix sh set writes to stderr and can't be redirected directly,
13282 # and sets the high bit in the cache file unless we assign to the vars.
13284 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13285 eval ac_val=\$$ac_var
13286 case $ac_val in #(
13287 *${as_nl}*)
13288 case $ac_var in #(
13289 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13290 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13291 esac
13292 case $ac_var in #(
13293 _ | IFS | as_nl) ;; #(
13294 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13295 *) { eval $ac_var=; unset $ac_var;} ;;
13296 esac ;;
13297 esac
13298 done
13300 (set) 2>&1 |
13301 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13302 *${as_nl}ac_space=\ *)
13303 # `set' does not quote correctly, so add quotes: double-quote
13304 # substitution turns \\\\ into \\, and sed turns \\ into \.
13305 sed -n \
13306 "s/'/'\\\\''/g;
13307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13308 ;; #(
13310 # `set' quotes correctly as required by POSIX, so do not add quotes.
13311 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13313 esac |
13314 sort
13316 sed '
13317 /^ac_cv_env_/b end
13318 t clear
13319 :clear
13320 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13321 t end
13322 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13323 :end' >>confcache
13324 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13325 if test -w "$cache_file"; then
13326 if test "x$cache_file" != "x/dev/null"; then
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13328 $as_echo "$as_me: updating cache $cache_file" >&6;}
13329 if test ! -f "$cache_file" || test -h "$cache_file"; then
13330 cat confcache >"$cache_file"
13331 else
13332 case $cache_file in #(
13333 */* | ?:*)
13334 mv -f confcache "$cache_file"$$ &&
13335 mv -f "$cache_file"$$ "$cache_file" ;; #(
13337 mv -f confcache "$cache_file" ;;
13338 esac
13341 else
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13343 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13346 rm -f confcache
13348 if test ${multilib} = yes; then
13349 multilib_arg="--enable-multilib"
13350 else
13351 multilib_arg=
13355 # We would like our source tree to be readonly. However when releases or
13356 # pre-releases are generated, the flex/bison generated files as well as the
13357 # various formats of manuals need to be included along with the rest of the
13358 # sources. Therefore we have --enable-generated-files-in-srcdir to do
13359 # just that.
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
13361 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
13362 # Check whether --enable-generated-files-in-srcdir was given.
13363 if test "${enable_generated_files_in_srcdir+set}" = set; then :
13364 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
13365 yes) enable_generated_files_in_srcdir=yes ;;
13366 no) enable_generated_files_in_srcdir=no ;;
13367 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13368 esac
13369 else
13370 enable_generated_files_in_srcdir=no
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
13374 $as_echo "$enable_generated_files_in_srcdir" >&6; }
13375 if test "$enable_generated_files_in_srcdir" = yes; then
13376 GENINSRC_TRUE=
13377 GENINSRC_FALSE='#'
13378 else
13379 GENINSRC_TRUE='#'
13380 GENINSRC_FALSE=
13384 # Determine what GCC version number to use in filesystem paths.
13386 get_gcc_base_ver="cat"
13388 # Check whether --with-gcc-major-version-only was given.
13389 if test "${with_gcc_major_version_only+set}" = set; then :
13390 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13391 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13399 ac_config_files="$ac_config_files Makefile"
13401 cat >confcache <<\_ACEOF
13402 # This file is a shell script that caches the results of configure
13403 # tests run on this system so they can be shared between configure
13404 # scripts and configure runs, see configure's option --config-cache.
13405 # It is not useful on other systems. If it contains results you don't
13406 # want to keep, you may remove or edit it.
13408 # config.status only pays attention to the cache file if you give it
13409 # the --recheck option to rerun configure.
13411 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13412 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13413 # following values.
13415 _ACEOF
13417 # The following way of writing the cache mishandles newlines in values,
13418 # but we know of no workaround that is simple, portable, and efficient.
13419 # So, we kill variables containing newlines.
13420 # Ultrix sh set writes to stderr and can't be redirected directly,
13421 # and sets the high bit in the cache file unless we assign to the vars.
13423 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13424 eval ac_val=\$$ac_var
13425 case $ac_val in #(
13426 *${as_nl}*)
13427 case $ac_var in #(
13428 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13429 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13430 esac
13431 case $ac_var in #(
13432 _ | IFS | as_nl) ;; #(
13433 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13434 *) { eval $ac_var=; unset $ac_var;} ;;
13435 esac ;;
13436 esac
13437 done
13439 (set) 2>&1 |
13440 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13441 *${as_nl}ac_space=\ *)
13442 # `set' does not quote correctly, so add quotes: double-quote
13443 # substitution turns \\\\ into \\, and sed turns \\ into \.
13444 sed -n \
13445 "s/'/'\\\\''/g;
13446 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13447 ;; #(
13449 # `set' quotes correctly as required by POSIX, so do not add quotes.
13450 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13452 esac |
13453 sort
13455 sed '
13456 /^ac_cv_env_/b end
13457 t clear
13458 :clear
13459 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13460 t end
13461 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13462 :end' >>confcache
13463 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13464 if test -w "$cache_file"; then
13465 if test "x$cache_file" != "x/dev/null"; then
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13467 $as_echo "$as_me: updating cache $cache_file" >&6;}
13468 if test ! -f "$cache_file" || test -h "$cache_file"; then
13469 cat confcache >"$cache_file"
13470 else
13471 case $cache_file in #(
13472 */* | ?:*)
13473 mv -f confcache "$cache_file"$$ &&
13474 mv -f "$cache_file"$$ "$cache_file" ;; #(
13476 mv -f confcache "$cache_file" ;;
13477 esac
13480 else
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13482 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13485 rm -f confcache
13487 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13488 # Let make expand exec_prefix.
13489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13491 DEFS=-DHAVE_CONFIG_H
13493 ac_libobjs=
13494 ac_ltlibobjs=
13496 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13497 # 1. Remove the extension, and $U if already installed.
13498 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13499 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13500 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13501 # will be set to the directory where LIBOBJS objects are built.
13502 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13503 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13504 done
13505 LIBOBJS=$ac_libobjs
13507 LTLIBOBJS=$ac_ltlibobjs
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13511 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13512 if test -n "$am_sleep_pid"; then
13513 # Hide warnings about reused PIDs.
13514 wait $am_sleep_pid 2>/dev/null
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13517 $as_echo "done" >&6; }
13518 if test -n "$EXEEXT"; then
13519 am__EXEEXT_TRUE=
13520 am__EXEEXT_FALSE='#'
13521 else
13522 am__EXEEXT_TRUE='#'
13523 am__EXEEXT_FALSE=
13526 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13527 as_fn_error $? "conditional \"AMDEP\" was never defined.
13528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13530 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13531 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13534 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13535 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
13536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13538 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
13539 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
13540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13542 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13543 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13546 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13547 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13550 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13551 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13554 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13555 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13558 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13559 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13562 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13563 as_fn_error $? "conditional \"BUILD_LIBQUADMATH\" was never defined.
13564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13566 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13567 as_fn_error $? "conditional \"GENINSRC\" was never defined.
13568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13571 : "${CONFIG_STATUS=./config.status}"
13572 ac_write_fail=0
13573 ac_clean_files_save=$ac_clean_files
13574 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13576 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13577 as_write_fail=0
13578 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13579 #! $SHELL
13580 # Generated by $as_me.
13581 # Run this file to recreate the current configuration.
13582 # Compiler output produced by configure, useful for debugging
13583 # configure, is in config.log if it exists.
13585 debug=false
13586 ac_cs_recheck=false
13587 ac_cs_silent=false
13589 SHELL=\${CONFIG_SHELL-$SHELL}
13590 export SHELL
13591 _ASEOF
13592 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13593 ## -------------------- ##
13594 ## M4sh Initialization. ##
13595 ## -------------------- ##
13597 # Be more Bourne compatible
13598 DUALCASE=1; export DUALCASE # for MKS sh
13599 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13600 emulate sh
13601 NULLCMD=:
13602 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13603 # is contrary to our usage. Disable this feature.
13604 alias -g '${1+"$@"}'='"$@"'
13605 setopt NO_GLOB_SUBST
13606 else
13607 case `(set -o) 2>/dev/null` in #(
13608 *posix*) :
13609 set -o posix ;; #(
13610 *) :
13612 esac
13616 as_nl='
13618 export as_nl
13619 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13620 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13621 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13622 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13623 # Prefer a ksh shell builtin over an external printf program on Solaris,
13624 # but without wasting forks for bash or zsh.
13625 if test -z "$BASH_VERSION$ZSH_VERSION" \
13626 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13627 as_echo='print -r --'
13628 as_echo_n='print -rn --'
13629 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13630 as_echo='printf %s\n'
13631 as_echo_n='printf %s'
13632 else
13633 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13634 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13635 as_echo_n='/usr/ucb/echo -n'
13636 else
13637 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13638 as_echo_n_body='eval
13639 arg=$1;
13640 case $arg in #(
13641 *"$as_nl"*)
13642 expr "X$arg" : "X\\(.*\\)$as_nl";
13643 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13644 esac;
13645 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13647 export as_echo_n_body
13648 as_echo_n='sh -c $as_echo_n_body as_echo'
13650 export as_echo_body
13651 as_echo='sh -c $as_echo_body as_echo'
13654 # The user is always right.
13655 if test "${PATH_SEPARATOR+set}" != set; then
13656 PATH_SEPARATOR=:
13657 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13658 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13659 PATH_SEPARATOR=';'
13664 # IFS
13665 # We need space, tab and new line, in precisely that order. Quoting is
13666 # there to prevent editors from complaining about space-tab.
13667 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13668 # splitting by setting IFS to empty value.)
13669 IFS=" "" $as_nl"
13671 # Find who we are. Look in the path if we contain no directory separator.
13672 as_myself=
13673 case $0 in #((
13674 *[\\/]* ) as_myself=$0 ;;
13675 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13678 IFS=$as_save_IFS
13679 test -z "$as_dir" && as_dir=.
13680 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13681 done
13682 IFS=$as_save_IFS
13685 esac
13686 # We did not find ourselves, most probably we were run as `sh COMMAND'
13687 # in which case we are not to be found in the path.
13688 if test "x$as_myself" = x; then
13689 as_myself=$0
13691 if test ! -f "$as_myself"; then
13692 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13693 exit 1
13696 # Unset variables that we do not need and which cause bugs (e.g. in
13697 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13698 # suppresses any "Segmentation fault" message there. '((' could
13699 # trigger a bug in pdksh 5.2.14.
13700 for as_var in BASH_ENV ENV MAIL MAILPATH
13701 do eval test x\${$as_var+set} = xset \
13702 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13703 done
13704 PS1='$ '
13705 PS2='> '
13706 PS4='+ '
13708 # NLS nuisances.
13709 LC_ALL=C
13710 export LC_ALL
13711 LANGUAGE=C
13712 export LANGUAGE
13714 # CDPATH.
13715 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13718 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13719 # ----------------------------------------
13720 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13721 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13722 # script with STATUS, using 1 if that was 0.
13723 as_fn_error ()
13725 as_status=$1; test $as_status -eq 0 && as_status=1
13726 if test "$4"; then
13727 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13728 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13730 $as_echo "$as_me: error: $2" >&2
13731 as_fn_exit $as_status
13732 } # as_fn_error
13735 # as_fn_set_status STATUS
13736 # -----------------------
13737 # Set $? to STATUS, without forking.
13738 as_fn_set_status ()
13740 return $1
13741 } # as_fn_set_status
13743 # as_fn_exit STATUS
13744 # -----------------
13745 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13746 as_fn_exit ()
13748 set +e
13749 as_fn_set_status $1
13750 exit $1
13751 } # as_fn_exit
13753 # as_fn_unset VAR
13754 # ---------------
13755 # Portably unset VAR.
13756 as_fn_unset ()
13758 { eval $1=; unset $1;}
13760 as_unset=as_fn_unset
13761 # as_fn_append VAR VALUE
13762 # ----------------------
13763 # Append the text in VALUE to the end of the definition contained in VAR. Take
13764 # advantage of any shell optimizations that allow amortized linear growth over
13765 # repeated appends, instead of the typical quadratic growth present in naive
13766 # implementations.
13767 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13768 eval 'as_fn_append ()
13770 eval $1+=\$2
13772 else
13773 as_fn_append ()
13775 eval $1=\$$1\$2
13777 fi # as_fn_append
13779 # as_fn_arith ARG...
13780 # ------------------
13781 # Perform arithmetic evaluation on the ARGs, and store the result in the
13782 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13783 # must be portable across $(()) and expr.
13784 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13785 eval 'as_fn_arith ()
13787 as_val=$(( $* ))
13789 else
13790 as_fn_arith ()
13792 as_val=`expr "$@" || test $? -eq 1`
13794 fi # as_fn_arith
13797 if expr a : '\(a\)' >/dev/null 2>&1 &&
13798 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13799 as_expr=expr
13800 else
13801 as_expr=false
13804 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13805 as_basename=basename
13806 else
13807 as_basename=false
13810 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13811 as_dirname=dirname
13812 else
13813 as_dirname=false
13816 as_me=`$as_basename -- "$0" ||
13817 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13818 X"$0" : 'X\(//\)$' \| \
13819 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13820 $as_echo X/"$0" |
13821 sed '/^.*\/\([^/][^/]*\)\/*$/{
13822 s//\1/
13825 /^X\/\(\/\/\)$/{
13826 s//\1/
13829 /^X\/\(\/\).*/{
13830 s//\1/
13833 s/.*/./; q'`
13835 # Avoid depending upon Character Ranges.
13836 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13837 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13838 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13839 as_cr_digits='0123456789'
13840 as_cr_alnum=$as_cr_Letters$as_cr_digits
13842 ECHO_C= ECHO_N= ECHO_T=
13843 case `echo -n x` in #(((((
13844 -n*)
13845 case `echo 'xy\c'` in
13846 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13847 xy) ECHO_C='\c';;
13848 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13849 ECHO_T=' ';;
13850 esac;;
13852 ECHO_N='-n';;
13853 esac
13855 rm -f conf$$ conf$$.exe conf$$.file
13856 if test -d conf$$.dir; then
13857 rm -f conf$$.dir/conf$$.file
13858 else
13859 rm -f conf$$.dir
13860 mkdir conf$$.dir 2>/dev/null
13862 if (echo >conf$$.file) 2>/dev/null; then
13863 if ln -s conf$$.file conf$$ 2>/dev/null; then
13864 as_ln_s='ln -s'
13865 # ... but there are two gotchas:
13866 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13867 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13868 # In both cases, we have to default to `cp -pR'.
13869 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13870 as_ln_s='cp -pR'
13871 elif ln conf$$.file conf$$ 2>/dev/null; then
13872 as_ln_s=ln
13873 else
13874 as_ln_s='cp -pR'
13876 else
13877 as_ln_s='cp -pR'
13879 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13880 rmdir conf$$.dir 2>/dev/null
13883 # as_fn_mkdir_p
13884 # -------------
13885 # Create "$as_dir" as a directory, including parents if necessary.
13886 as_fn_mkdir_p ()
13889 case $as_dir in #(
13890 -*) as_dir=./$as_dir;;
13891 esac
13892 test -d "$as_dir" || eval $as_mkdir_p || {
13893 as_dirs=
13894 while :; do
13895 case $as_dir in #(
13896 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13897 *) as_qdir=$as_dir;;
13898 esac
13899 as_dirs="'$as_qdir' $as_dirs"
13900 as_dir=`$as_dirname -- "$as_dir" ||
13901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13902 X"$as_dir" : 'X\(//\)[^/]' \| \
13903 X"$as_dir" : 'X\(//\)$' \| \
13904 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13905 $as_echo X"$as_dir" |
13906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13907 s//\1/
13910 /^X\(\/\/\)[^/].*/{
13911 s//\1/
13914 /^X\(\/\/\)$/{
13915 s//\1/
13918 /^X\(\/\).*/{
13919 s//\1/
13922 s/.*/./; q'`
13923 test -d "$as_dir" && break
13924 done
13925 test -z "$as_dirs" || eval "mkdir $as_dirs"
13926 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13929 } # as_fn_mkdir_p
13930 if mkdir -p . 2>/dev/null; then
13931 as_mkdir_p='mkdir -p "$as_dir"'
13932 else
13933 test -d ./-p && rmdir ./-p
13934 as_mkdir_p=false
13938 # as_fn_executable_p FILE
13939 # -----------------------
13940 # Test if FILE is an executable regular file.
13941 as_fn_executable_p ()
13943 test -f "$1" && test -x "$1"
13944 } # as_fn_executable_p
13945 as_test_x='test -x'
13946 as_executable_p=as_fn_executable_p
13948 # Sed expression to map a string onto a valid CPP name.
13949 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13951 # Sed expression to map a string onto a valid variable name.
13952 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13955 exec 6>&1
13956 ## ----------------------------------- ##
13957 ## Main body of $CONFIG_STATUS script. ##
13958 ## ----------------------------------- ##
13959 _ASEOF
13960 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13963 # Save the log message, to keep $0 and so on meaningful, and to
13964 # report actual input values of CONFIG_FILES etc. instead of their
13965 # values after options handling.
13966 ac_log="
13967 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13968 generated by GNU Autoconf 2.69. Invocation command line was
13970 CONFIG_FILES = $CONFIG_FILES
13971 CONFIG_HEADERS = $CONFIG_HEADERS
13972 CONFIG_LINKS = $CONFIG_LINKS
13973 CONFIG_COMMANDS = $CONFIG_COMMANDS
13974 $ $0 $@
13976 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13979 _ACEOF
13981 case $ac_config_files in *"
13982 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13983 esac
13985 case $ac_config_headers in *"
13986 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13987 esac
13990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13991 # Files that config.status was made for.
13992 config_files="$ac_config_files"
13993 config_headers="$ac_config_headers"
13994 config_commands="$ac_config_commands"
13996 _ACEOF
13998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13999 ac_cs_usage="\
14000 \`$as_me' instantiates files and other configuration actions
14001 from templates according to the current configuration. Unless the files
14002 and actions are specified as TAGs, all are instantiated by default.
14004 Usage: $0 [OPTION]... [TAG]...
14006 -h, --help print this help, then exit
14007 -V, --version print version number and configuration settings, then exit
14008 --config print configuration, then exit
14009 -q, --quiet, --silent
14010 do not print progress messages
14011 -d, --debug don't remove temporary files
14012 --recheck update $as_me by reconfiguring in the same conditions
14013 --file=FILE[:TEMPLATE]
14014 instantiate the configuration file FILE
14015 --header=FILE[:TEMPLATE]
14016 instantiate the configuration header FILE
14018 Configuration files:
14019 $config_files
14021 Configuration headers:
14022 $config_headers
14024 Configuration commands:
14025 $config_commands
14027 Report bugs to the package provider."
14029 _ACEOF
14030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14031 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14032 ac_cs_version="\\
14033 GCC Quad-precision Math Library config.status 0.1
14034 configured by $0, generated by GNU Autoconf 2.69,
14035 with options \\"\$ac_cs_config\\"
14037 Copyright (C) 2012 Free Software Foundation, Inc.
14038 This config.status script is free software; the Free Software Foundation
14039 gives unlimited permission to copy, distribute and modify it."
14041 ac_pwd='$ac_pwd'
14042 srcdir='$srcdir'
14043 INSTALL='$INSTALL'
14044 MKDIR_P='$MKDIR_P'
14045 AWK='$AWK'
14046 test -n "\$AWK" || AWK=awk
14047 _ACEOF
14049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14050 # The default lists apply if the user does not specify any file.
14051 ac_need_defaults=:
14052 while test $# != 0
14054 case $1 in
14055 --*=?*)
14056 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14057 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14058 ac_shift=:
14060 --*=)
14061 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14062 ac_optarg=
14063 ac_shift=:
14066 ac_option=$1
14067 ac_optarg=$2
14068 ac_shift=shift
14070 esac
14072 case $ac_option in
14073 # Handling of the options.
14074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14075 ac_cs_recheck=: ;;
14076 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14077 $as_echo "$ac_cs_version"; exit ;;
14078 --config | --confi | --conf | --con | --co | --c )
14079 $as_echo "$ac_cs_config"; exit ;;
14080 --debug | --debu | --deb | --de | --d | -d )
14081 debug=: ;;
14082 --file | --fil | --fi | --f )
14083 $ac_shift
14084 case $ac_optarg in
14085 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14086 '') as_fn_error $? "missing file argument" ;;
14087 esac
14088 as_fn_append CONFIG_FILES " '$ac_optarg'"
14089 ac_need_defaults=false;;
14090 --header | --heade | --head | --hea )
14091 $ac_shift
14092 case $ac_optarg in
14093 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14094 esac
14095 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14096 ac_need_defaults=false;;
14097 --he | --h)
14098 # Conflict between --help and --header
14099 as_fn_error $? "ambiguous option: \`$1'
14100 Try \`$0 --help' for more information.";;
14101 --help | --hel | -h )
14102 $as_echo "$ac_cs_usage"; exit ;;
14103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14104 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14105 ac_cs_silent=: ;;
14107 # This is an error.
14108 -*) as_fn_error $? "unrecognized option: \`$1'
14109 Try \`$0 --help' for more information." ;;
14111 *) as_fn_append ac_config_targets " $1"
14112 ac_need_defaults=false ;;
14114 esac
14115 shift
14116 done
14118 ac_configure_extra_args=
14120 if $ac_cs_silent; then
14121 exec 6>/dev/null
14122 ac_configure_extra_args="$ac_configure_extra_args --silent"
14125 _ACEOF
14126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14127 if \$ac_cs_recheck; then
14128 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14129 shift
14130 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14131 CONFIG_SHELL='$SHELL'
14132 export CONFIG_SHELL
14133 exec "\$@"
14136 _ACEOF
14137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14138 exec 5>>config.log
14140 echo
14141 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14142 ## Running $as_me. ##
14143 _ASBOX
14144 $as_echo "$ac_log"
14145 } >&5
14147 _ACEOF
14148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14150 # INIT-COMMANDS
14153 srcdir="$srcdir"
14154 host="$host"
14155 target="$target"
14156 with_multisubdir="$with_multisubdir"
14157 with_multisrctop="$with_multisrctop"
14158 with_target_subdir="$with_target_subdir"
14159 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14160 multi_basedir="$multi_basedir"
14161 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14162 CC="$CC"
14163 CXX="$CXX"
14164 GFORTRAN="$GFORTRAN"
14165 GDC="$GDC"
14166 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14169 # The HP-UX ksh and POSIX shell print the target directory to stdout
14170 # if CDPATH is set.
14171 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14173 sed_quote_subst='$sed_quote_subst'
14174 double_quote_subst='$double_quote_subst'
14175 delay_variable_subst='$delay_variable_subst'
14176 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14177 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14178 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14179 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14180 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14181 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14182 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14183 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14184 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14185 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14186 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14187 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14188 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14189 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14190 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14191 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14192 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14193 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14194 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14195 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14196 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14197 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14198 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14199 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14200 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14201 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14202 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14203 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14204 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14205 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14206 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14207 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14208 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14209 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14210 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14211 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14212 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14213 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14214 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14215 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14216 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14217 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14218 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14219 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14220 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14221 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14222 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14223 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14224 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"`'
14225 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14226 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14227 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14228 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14229 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14230 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14231 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14232 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14233 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14234 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14235 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14236 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14237 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14238 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14239 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14240 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14241 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14242 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14243 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14244 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14245 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14246 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14247 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14248 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14249 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14250 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14251 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14252 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14253 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14254 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14255 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14256 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14257 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14258 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14259 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14260 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14261 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14262 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14263 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14264 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14265 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14266 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14267 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14268 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14269 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14270 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14271 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14272 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14273 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14274 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14275 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14276 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14277 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14278 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14279 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14280 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14281 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14282 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14283 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14284 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14285 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14286 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14287 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14288 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14289 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14290 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14291 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14292 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14293 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14294 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14295 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14297 LTCC='$LTCC'
14298 LTCFLAGS='$LTCFLAGS'
14299 compiler='$compiler_DEFAULT'
14301 # A function that is used when there is no print builtin or printf.
14302 func_fallback_echo ()
14304 eval 'cat <<_LTECHO_EOF
14306 _LTECHO_EOF'
14309 # Quote evaled strings.
14310 for var in SHELL \
14311 ECHO \
14312 SED \
14313 GREP \
14314 EGREP \
14315 FGREP \
14316 LD \
14317 NM \
14318 LN_S \
14319 lt_SP2NL \
14320 lt_NL2SP \
14321 reload_flag \
14322 OBJDUMP \
14323 deplibs_check_method \
14324 file_magic_cmd \
14325 AR \
14326 AR_FLAGS \
14327 STRIP \
14328 RANLIB \
14329 CC \
14330 CFLAGS \
14331 compiler \
14332 lt_cv_sys_global_symbol_pipe \
14333 lt_cv_sys_global_symbol_to_cdecl \
14334 lt_cv_sys_global_symbol_to_c_name_address \
14335 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14336 lt_prog_compiler_no_builtin_flag \
14337 lt_prog_compiler_wl \
14338 lt_prog_compiler_pic \
14339 lt_prog_compiler_static \
14340 lt_cv_prog_compiler_c_o \
14341 need_locks \
14342 DSYMUTIL \
14343 NMEDIT \
14344 LIPO \
14345 OTOOL \
14346 OTOOL64 \
14347 shrext_cmds \
14348 export_dynamic_flag_spec \
14349 whole_archive_flag_spec \
14350 compiler_needs_object \
14351 with_gnu_ld \
14352 allow_undefined_flag \
14353 no_undefined_flag \
14354 hardcode_libdir_flag_spec \
14355 hardcode_libdir_flag_spec_ld \
14356 hardcode_libdir_separator \
14357 fix_srcfile_path \
14358 exclude_expsyms \
14359 include_expsyms \
14360 file_list_spec \
14361 variables_saved_for_relink \
14362 libname_spec \
14363 library_names_spec \
14364 soname_spec \
14365 install_override_mode \
14366 finish_eval \
14367 old_striplib \
14368 striplib; do
14369 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14370 *[\\\\\\\`\\"\\\$]*)
14371 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14374 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14376 esac
14377 done
14379 # Double-quote double-evaled strings.
14380 for var in reload_cmds \
14381 old_postinstall_cmds \
14382 old_postuninstall_cmds \
14383 old_archive_cmds \
14384 extract_expsyms_cmds \
14385 old_archive_from_new_cmds \
14386 old_archive_from_expsyms_cmds \
14387 archive_cmds \
14388 archive_expsym_cmds \
14389 module_cmds \
14390 module_expsym_cmds \
14391 export_symbols_cmds \
14392 prelink_cmds \
14393 postinstall_cmds \
14394 postuninstall_cmds \
14395 finish_cmds \
14396 sys_lib_search_path_spec \
14397 sys_lib_dlsearch_path_spec; do
14398 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14399 *[\\\\\\\`\\"\\\$]*)
14400 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14403 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14405 esac
14406 done
14408 ac_aux_dir='$ac_aux_dir'
14409 xsi_shell='$xsi_shell'
14410 lt_shell_append='$lt_shell_append'
14412 # See if we are running on zsh, and set the options which allow our
14413 # commands through without removal of \ escapes INIT.
14414 if test -n "\${ZSH_VERSION+set}" ; then
14415 setopt NO_GLOB_SUBST
14419 PACKAGE='$PACKAGE'
14420 VERSION='$VERSION'
14421 TIMESTAMP='$TIMESTAMP'
14422 RM='$RM'
14423 ofile='$ofile'
14428 _ACEOF
14430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14432 # Handling of arguments.
14433 for ac_config_target in $ac_config_targets
14435 case $ac_config_target in
14436 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14437 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14438 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14439 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14440 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14442 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14443 esac
14444 done
14447 # If the user did not use the arguments to specify the items to instantiate,
14448 # then the envvar interface is used. Set only those that are not.
14449 # We use the long form for the default assignment because of an extremely
14450 # bizarre bug on SunOS 4.1.3.
14451 if $ac_need_defaults; then
14452 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14453 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14454 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14457 # Have a temporary directory for convenience. Make it in the build tree
14458 # simply because there is no reason against having it here, and in addition,
14459 # creating and moving files from /tmp can sometimes cause problems.
14460 # Hook for its removal unless debugging.
14461 # Note that there is a small window in which the directory will not be cleaned:
14462 # after its creation but before its name has been assigned to `$tmp'.
14463 $debug ||
14465 tmp= ac_tmp=
14466 trap 'exit_status=$?
14467 : "${ac_tmp:=$tmp}"
14468 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14470 trap 'as_fn_exit 1' 1 2 13 15
14472 # Create a (secure) tmp directory for tmp files.
14475 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14476 test -d "$tmp"
14477 } ||
14479 tmp=./conf$$-$RANDOM
14480 (umask 077 && mkdir "$tmp")
14481 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14482 ac_tmp=$tmp
14484 # Set up the scripts for CONFIG_FILES section.
14485 # No need to generate them if there are no CONFIG_FILES.
14486 # This happens for instance with `./config.status config.h'.
14487 if test -n "$CONFIG_FILES"; then
14490 ac_cr=`echo X | tr X '\015'`
14491 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14492 # But we know of no other shell where ac_cr would be empty at this
14493 # point, so we can use a bashism as a fallback.
14494 if test "x$ac_cr" = x; then
14495 eval ac_cr=\$\'\\r\'
14497 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14498 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14499 ac_cs_awk_cr='\\r'
14500 else
14501 ac_cs_awk_cr=$ac_cr
14504 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14505 _ACEOF
14509 echo "cat >conf$$subs.awk <<_ACEOF" &&
14510 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14511 echo "_ACEOF"
14512 } >conf$$subs.sh ||
14513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14514 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14515 ac_delim='%!_!# '
14516 for ac_last_try in false false false false false :; do
14517 . ./conf$$subs.sh ||
14518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14520 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14521 if test $ac_delim_n = $ac_delim_num; then
14522 break
14523 elif $ac_last_try; then
14524 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14525 else
14526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14528 done
14529 rm -f conf$$subs.sh
14531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14532 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14533 _ACEOF
14534 sed -n '
14536 s/^/S["/; s/!.*/"]=/
14539 s/^[^!]*!//
14540 :repl
14541 t repl
14542 s/'"$ac_delim"'$//
14543 t delim
14546 s/\(.\{148\}\)..*/\1/
14547 t more1
14548 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14551 b repl
14552 :more1
14553 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14556 s/.\{148\}//
14557 t nl
14558 :delim
14560 s/\(.\{148\}\)..*/\1/
14561 t more2
14562 s/["\\]/\\&/g; s/^/"/; s/$/"/
14565 :more2
14566 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14569 s/.\{148\}//
14570 t delim
14571 ' <conf$$subs.awk | sed '
14572 /^[^""]/{
14574 s/\n//
14576 ' >>$CONFIG_STATUS || ac_write_fail=1
14577 rm -f conf$$subs.awk
14578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14579 _ACAWK
14580 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14581 for (key in S) S_is_set[key] = 1
14582 FS = "\a"
14586 line = $ 0
14587 nfields = split(line, field, "@")
14588 substed = 0
14589 len = length(field[1])
14590 for (i = 2; i < nfields; i++) {
14591 key = field[i]
14592 keylen = length(key)
14593 if (S_is_set[key]) {
14594 value = S[key]
14595 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14596 len += length(value) + length(field[++i])
14597 substed = 1
14598 } else
14599 len += 1 + keylen
14602 print line
14605 _ACAWK
14606 _ACEOF
14607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14608 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14609 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14610 else
14612 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14613 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14614 _ACEOF
14616 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14617 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14618 # trailing colons and then remove the whole line if VPATH becomes empty
14619 # (actually we leave an empty line to preserve line numbers).
14620 if test "x$srcdir" = x.; then
14621 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14623 s///
14624 s/^/:/
14625 s/[ ]*$/:/
14626 s/:\$(srcdir):/:/g
14627 s/:\${srcdir}:/:/g
14628 s/:@srcdir@:/:/g
14629 s/^:*//
14630 s/:*$//
14632 s/\(=[ ]*\).*/\1/
14634 s/\n//
14635 s/^[^=]*=[ ]*$//
14639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14640 fi # test -n "$CONFIG_FILES"
14642 # Set up the scripts for CONFIG_HEADERS section.
14643 # No need to generate them if there are no CONFIG_HEADERS.
14644 # This happens for instance with `./config.status Makefile'.
14645 if test -n "$CONFIG_HEADERS"; then
14646 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14647 BEGIN {
14648 _ACEOF
14650 # Transform confdefs.h into an awk script `defines.awk', embedded as
14651 # here-document in config.status, that substitutes the proper values into
14652 # config.h.in to produce config.h.
14654 # Create a delimiter string that does not exist in confdefs.h, to ease
14655 # handling of long lines.
14656 ac_delim='%!_!# '
14657 for ac_last_try in false false :; do
14658 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14659 if test -z "$ac_tt"; then
14660 break
14661 elif $ac_last_try; then
14662 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14663 else
14664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14666 done
14668 # For the awk script, D is an array of macro values keyed by name,
14669 # likewise P contains macro parameters if any. Preserve backslash
14670 # newline sequences.
14672 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14673 sed -n '
14674 s/.\{148\}/&'"$ac_delim"'/g
14675 t rset
14676 :rset
14677 s/^[ ]*#[ ]*define[ ][ ]*/ /
14678 t def
14680 :def
14681 s/\\$//
14682 t bsnl
14683 s/["\\]/\\&/g
14684 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14685 D["\1"]=" \3"/p
14686 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14688 :bsnl
14689 s/["\\]/\\&/g
14690 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14691 D["\1"]=" \3\\\\\\n"\\/p
14692 t cont
14693 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14694 t cont
14696 :cont
14698 s/.\{148\}/&'"$ac_delim"'/g
14699 t clear
14700 :clear
14701 s/\\$//
14702 t bsnlc
14703 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14705 :bsnlc
14706 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14707 b cont
14708 ' <confdefs.h | sed '
14709 s/'"$ac_delim"'/"\\\
14710 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14713 for (key in D) D_is_set[key] = 1
14714 FS = "\a"
14716 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14717 line = \$ 0
14718 split(line, arg, " ")
14719 if (arg[1] == "#") {
14720 defundef = arg[2]
14721 mac1 = arg[3]
14722 } else {
14723 defundef = substr(arg[1], 2)
14724 mac1 = arg[2]
14726 split(mac1, mac2, "(") #)
14727 macro = mac2[1]
14728 prefix = substr(line, 1, index(line, defundef) - 1)
14729 if (D_is_set[macro]) {
14730 # Preserve the white space surrounding the "#".
14731 print prefix "define", macro P[macro] D[macro]
14732 next
14733 } else {
14734 # Replace #undef with comments. This is necessary, for example,
14735 # in the case of _POSIX_SOURCE, which is predefined and required
14736 # on some systems where configure will not decide to define it.
14737 if (defundef == "undef") {
14738 print "/*", prefix defundef, macro, "*/"
14739 next
14743 { print }
14744 _ACAWK
14745 _ACEOF
14746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14747 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14748 fi # test -n "$CONFIG_HEADERS"
14751 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14752 shift
14753 for ac_tag
14755 case $ac_tag in
14756 :[FHLC]) ac_mode=$ac_tag; continue;;
14757 esac
14758 case $ac_mode$ac_tag in
14759 :[FHL]*:*);;
14760 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14761 :[FH]-) ac_tag=-:-;;
14762 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14763 esac
14764 ac_save_IFS=$IFS
14765 IFS=:
14766 set x $ac_tag
14767 IFS=$ac_save_IFS
14768 shift
14769 ac_file=$1
14770 shift
14772 case $ac_mode in
14773 :L) ac_source=$1;;
14774 :[FH])
14775 ac_file_inputs=
14776 for ac_f
14778 case $ac_f in
14779 -) ac_f="$ac_tmp/stdin";;
14780 *) # Look for the file first in the build tree, then in the source tree
14781 # (if the path is not absolute). The absolute path cannot be DOS-style,
14782 # because $ac_f cannot contain `:'.
14783 test -f "$ac_f" ||
14784 case $ac_f in
14785 [\\/$]*) false;;
14786 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14787 esac ||
14788 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14789 esac
14790 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14791 as_fn_append ac_file_inputs " '$ac_f'"
14792 done
14794 # Let's still pretend it is `configure' which instantiates (i.e., don't
14795 # use $as_me), people would be surprised to read:
14796 # /* config.h. Generated by config.status. */
14797 configure_input='Generated from '`
14798 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14799 `' by configure.'
14800 if test x"$ac_file" != x-; then
14801 configure_input="$ac_file. $configure_input"
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14803 $as_echo "$as_me: creating $ac_file" >&6;}
14805 # Neutralize special characters interpreted by sed in replacement strings.
14806 case $configure_input in #(
14807 *\&* | *\|* | *\\* )
14808 ac_sed_conf_input=`$as_echo "$configure_input" |
14809 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14810 *) ac_sed_conf_input=$configure_input;;
14811 esac
14813 case $ac_tag in
14814 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14816 esac
14818 esac
14820 ac_dir=`$as_dirname -- "$ac_file" ||
14821 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14822 X"$ac_file" : 'X\(//\)[^/]' \| \
14823 X"$ac_file" : 'X\(//\)$' \| \
14824 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14825 $as_echo X"$ac_file" |
14826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14827 s//\1/
14830 /^X\(\/\/\)[^/].*/{
14831 s//\1/
14834 /^X\(\/\/\)$/{
14835 s//\1/
14838 /^X\(\/\).*/{
14839 s//\1/
14842 s/.*/./; q'`
14843 as_dir="$ac_dir"; as_fn_mkdir_p
14844 ac_builddir=.
14846 case "$ac_dir" in
14847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14849 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14850 # A ".." for each directory in $ac_dir_suffix.
14851 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14852 case $ac_top_builddir_sub in
14853 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14854 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14855 esac ;;
14856 esac
14857 ac_abs_top_builddir=$ac_pwd
14858 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14859 # for backward compatibility:
14860 ac_top_builddir=$ac_top_build_prefix
14862 case $srcdir in
14863 .) # We are building in place.
14864 ac_srcdir=.
14865 ac_top_srcdir=$ac_top_builddir_sub
14866 ac_abs_top_srcdir=$ac_pwd ;;
14867 [\\/]* | ?:[\\/]* ) # Absolute name.
14868 ac_srcdir=$srcdir$ac_dir_suffix;
14869 ac_top_srcdir=$srcdir
14870 ac_abs_top_srcdir=$srcdir ;;
14871 *) # Relative name.
14872 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14873 ac_top_srcdir=$ac_top_build_prefix$srcdir
14874 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14875 esac
14876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14879 case $ac_mode in
14882 # CONFIG_FILE
14885 case $INSTALL in
14886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14887 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14888 esac
14889 ac_MKDIR_P=$MKDIR_P
14890 case $MKDIR_P in
14891 [\\/$]* | ?:[\\/]* ) ;;
14892 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14893 esac
14894 _ACEOF
14896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14897 # If the template does not know about datarootdir, expand it.
14898 # FIXME: This hack should be removed a few years after 2.60.
14899 ac_datarootdir_hack=; ac_datarootdir_seen=
14900 ac_sed_dataroot='
14901 /datarootdir/ {
14905 /@datadir@/p
14906 /@docdir@/p
14907 /@infodir@/p
14908 /@localedir@/p
14909 /@mandir@/p'
14910 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14911 *datarootdir*) ac_datarootdir_seen=yes;;
14912 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14914 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14915 _ACEOF
14916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14917 ac_datarootdir_hack='
14918 s&@datadir@&$datadir&g
14919 s&@docdir@&$docdir&g
14920 s&@infodir@&$infodir&g
14921 s&@localedir@&$localedir&g
14922 s&@mandir@&$mandir&g
14923 s&\\\${datarootdir}&$datarootdir&g' ;;
14924 esac
14925 _ACEOF
14927 # Neutralize VPATH when `$srcdir' = `.'.
14928 # Shell code in configure.ac might set extrasub.
14929 # FIXME: do we really want to maintain this feature?
14930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14931 ac_sed_extra="$ac_vpsub
14932 $extrasub
14933 _ACEOF
14934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14937 s|@configure_input@|$ac_sed_conf_input|;t t
14938 s&@top_builddir@&$ac_top_builddir_sub&;t t
14939 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14940 s&@srcdir@&$ac_srcdir&;t t
14941 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14942 s&@top_srcdir@&$ac_top_srcdir&;t t
14943 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14944 s&@builddir@&$ac_builddir&;t t
14945 s&@abs_builddir@&$ac_abs_builddir&;t t
14946 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14947 s&@INSTALL@&$ac_INSTALL&;t t
14948 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14949 $ac_datarootdir_hack
14951 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14952 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14954 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14955 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14956 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14957 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14959 which seems to be undefined. Please make sure it is defined" >&5
14960 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14961 which seems to be undefined. Please make sure it is defined" >&2;}
14963 rm -f "$ac_tmp/stdin"
14964 case $ac_file in
14965 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14966 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14967 esac \
14968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14972 # CONFIG_HEADER
14974 if test x"$ac_file" != x-; then
14976 $as_echo "/* $configure_input */" \
14977 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14978 } >"$ac_tmp/config.h" \
14979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14980 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14982 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14983 else
14984 rm -f "$ac_file"
14985 mv "$ac_tmp/config.h" "$ac_file" \
14986 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14988 else
14989 $as_echo "/* $configure_input */" \
14990 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14991 || as_fn_error $? "could not create -" "$LINENO" 5
14993 # Compute "$ac_file"'s index in $config_headers.
14994 _am_arg="$ac_file"
14995 _am_stamp_count=1
14996 for _am_header in $config_headers :; do
14997 case $_am_header in
14998 $_am_arg | $_am_arg:* )
14999 break ;;
15001 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15002 esac
15003 done
15004 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15005 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15006 X"$_am_arg" : 'X\(//\)[^/]' \| \
15007 X"$_am_arg" : 'X\(//\)$' \| \
15008 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15009 $as_echo X"$_am_arg" |
15010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15011 s//\1/
15014 /^X\(\/\/\)[^/].*/{
15015 s//\1/
15018 /^X\(\/\/\)$/{
15019 s//\1/
15022 /^X\(\/\).*/{
15023 s//\1/
15026 s/.*/./; q'`/stamp-h$_am_stamp_count
15029 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15030 $as_echo "$as_me: executing $ac_file commands" >&6;}
15032 esac
15035 case $ac_file$ac_mode in
15036 "default-1":C)
15037 # Only add multilib support code if we just rebuilt the top-level
15038 # Makefile.
15039 case " $CONFIG_FILES " in
15040 *" Makefile "*)
15041 ac_file=Makefile . ${multi_basedir}/config-ml.in
15043 esac ;;
15044 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15045 # Older Autoconf quotes --file arguments for eval, but not when files
15046 # are listed without --file. Let's play safe and only enable the eval
15047 # if we detect the quoting.
15048 case $CONFIG_FILES in
15049 *\'*) eval set x "$CONFIG_FILES" ;;
15050 *) set x $CONFIG_FILES ;;
15051 esac
15052 shift
15053 for mf
15055 # Strip MF so we end up with the name of the file.
15056 mf=`echo "$mf" | sed -e 's/:.*$//'`
15057 # Check whether this is an Automake generated Makefile or not.
15058 # We used to match only the files named 'Makefile.in', but
15059 # some people rename them; so instead we look at the file content.
15060 # Grep'ing the first line is not enough: some people post-process
15061 # each Makefile.in and add a new line on top of each file to say so.
15062 # Grep'ing the whole file is not good either: AIX grep has a line
15063 # limit of 2048, but all sed's we know have understand at least 4000.
15064 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15065 dirpart=`$as_dirname -- "$mf" ||
15066 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15067 X"$mf" : 'X\(//\)[^/]' \| \
15068 X"$mf" : 'X\(//\)$' \| \
15069 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15070 $as_echo X"$mf" |
15071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15072 s//\1/
15075 /^X\(\/\/\)[^/].*/{
15076 s//\1/
15079 /^X\(\/\/\)$/{
15080 s//\1/
15083 /^X\(\/\).*/{
15084 s//\1/
15087 s/.*/./; q'`
15088 else
15089 continue
15091 # Extract the definition of DEPDIR, am__include, and am__quote
15092 # from the Makefile without running 'make'.
15093 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15094 test -z "$DEPDIR" && continue
15095 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15096 test -z "$am__include" && continue
15097 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15098 # Find all dependency output files, they are included files with
15099 # $(DEPDIR) in their names. We invoke sed twice because it is the
15100 # simplest approach to changing $(DEPDIR) to its actual value in the
15101 # expansion.
15102 for file in `sed -n "
15103 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15104 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15105 # Make sure the directory exists.
15106 test -f "$dirpart/$file" && continue
15107 fdir=`$as_dirname -- "$file" ||
15108 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15109 X"$file" : 'X\(//\)[^/]' \| \
15110 X"$file" : 'X\(//\)$' \| \
15111 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15112 $as_echo X"$file" |
15113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15114 s//\1/
15117 /^X\(\/\/\)[^/].*/{
15118 s//\1/
15121 /^X\(\/\/\)$/{
15122 s//\1/
15125 /^X\(\/\).*/{
15126 s//\1/
15129 s/.*/./; q'`
15130 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15131 # echo "creating $dirpart/$file"
15132 echo '# dummy' > "$dirpart/$file"
15133 done
15134 done
15137 "libtool":C)
15139 # See if we are running on zsh, and set the options which allow our
15140 # commands through without removal of \ escapes.
15141 if test -n "${ZSH_VERSION+set}" ; then
15142 setopt NO_GLOB_SUBST
15145 cfgfile="${ofile}T"
15146 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15147 $RM "$cfgfile"
15149 cat <<_LT_EOF >> "$cfgfile"
15150 #! $SHELL
15152 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15153 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15154 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15155 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15157 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15158 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15159 # Written by Gordon Matzigkeit, 1996
15161 # This file is part of GNU Libtool.
15163 # GNU Libtool is free software; you can redistribute it and/or
15164 # modify it under the terms of the GNU General Public License as
15165 # published by the Free Software Foundation; either version 2 of
15166 # the License, or (at your option) any later version.
15168 # As a special exception to the GNU General Public License,
15169 # if you distribute this file as part of a program or library that
15170 # is built using GNU Libtool, you may include this file under the
15171 # same distribution terms that you use for the rest of that program.
15173 # GNU Libtool is distributed in the hope that it will be useful,
15174 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15175 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15176 # GNU General Public License for more details.
15178 # You should have received a copy of the GNU General Public License
15179 # along with GNU Libtool; see the file COPYING. If not, a copy
15180 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15181 # obtained by writing to the Free Software Foundation, Inc.,
15182 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15185 # The names of the tagged configurations supported by this script.
15186 available_tags=""
15188 # ### BEGIN LIBTOOL CONFIG
15190 # Which release of libtool.m4 was used?
15191 macro_version=$macro_version
15192 macro_revision=$macro_revision
15194 # Whether or not to build shared libraries.
15195 build_libtool_libs=$enable_shared
15197 # Whether or not to build static libraries.
15198 build_old_libs=$enable_static
15200 # What type of objects to build.
15201 pic_mode=$pic_mode
15203 # Whether or not to optimize for fast installation.
15204 fast_install=$enable_fast_install
15206 # Shell to use when invoking shell scripts.
15207 SHELL=$lt_SHELL
15209 # An echo program that protects backslashes.
15210 ECHO=$lt_ECHO
15212 # The host system.
15213 host_alias=$host_alias
15214 host=$host
15215 host_os=$host_os
15217 # The build system.
15218 build_alias=$build_alias
15219 build=$build
15220 build_os=$build_os
15222 # A sed program that does not truncate output.
15223 SED=$lt_SED
15225 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15226 Xsed="\$SED -e 1s/^X//"
15228 # A grep program that handles long lines.
15229 GREP=$lt_GREP
15231 # An ERE matcher.
15232 EGREP=$lt_EGREP
15234 # A literal string matcher.
15235 FGREP=$lt_FGREP
15237 # A BSD- or MS-compatible name lister.
15238 NM=$lt_NM
15240 # Whether we need soft or hard links.
15241 LN_S=$lt_LN_S
15243 # What is the maximum length of a command?
15244 max_cmd_len=$max_cmd_len
15246 # Object file suffix (normally "o").
15247 objext=$ac_objext
15249 # Executable file suffix (normally "").
15250 exeext=$exeext
15252 # whether the shell understands "unset".
15253 lt_unset=$lt_unset
15255 # turn spaces into newlines.
15256 SP2NL=$lt_lt_SP2NL
15258 # turn newlines into spaces.
15259 NL2SP=$lt_lt_NL2SP
15261 # An object symbol dumper.
15262 OBJDUMP=$lt_OBJDUMP
15264 # Method to check whether dependent libraries are shared objects.
15265 deplibs_check_method=$lt_deplibs_check_method
15267 # Command to use when deplibs_check_method == "file_magic".
15268 file_magic_cmd=$lt_file_magic_cmd
15270 # The archiver.
15271 AR=$lt_AR
15272 AR_FLAGS=$lt_AR_FLAGS
15274 # A symbol stripping program.
15275 STRIP=$lt_STRIP
15277 # Commands used to install an old-style archive.
15278 RANLIB=$lt_RANLIB
15279 old_postinstall_cmds=$lt_old_postinstall_cmds
15280 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15282 # Whether to use a lock for old archive extraction.
15283 lock_old_archive_extraction=$lock_old_archive_extraction
15285 # A C compiler.
15286 LTCC=$lt_CC
15288 # LTCC compiler flags.
15289 LTCFLAGS=$lt_CFLAGS
15291 # Take the output of nm and produce a listing of raw symbols and C names.
15292 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15294 # Transform the output of nm in a proper C declaration.
15295 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15297 # Transform the output of nm in a C name address pair.
15298 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15300 # Transform the output of nm in a C name address pair when lib prefix is needed.
15301 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15303 # The name of the directory that contains temporary libtool files.
15304 objdir=$objdir
15306 # Used to examine libraries when file_magic_cmd begins with "file".
15307 MAGIC_CMD=$MAGIC_CMD
15309 # Must we lock files when doing compilation?
15310 need_locks=$lt_need_locks
15312 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15313 DSYMUTIL=$lt_DSYMUTIL
15315 # Tool to change global to local symbols on Mac OS X.
15316 NMEDIT=$lt_NMEDIT
15318 # Tool to manipulate fat objects and archives on Mac OS X.
15319 LIPO=$lt_LIPO
15321 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15322 OTOOL=$lt_OTOOL
15324 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15325 OTOOL64=$lt_OTOOL64
15327 # Old archive suffix (normally "a").
15328 libext=$libext
15330 # Shared library suffix (normally ".so").
15331 shrext_cmds=$lt_shrext_cmds
15333 # The commands to extract the exported symbol list from a shared archive.
15334 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15336 # Variables whose values should be saved in libtool wrapper scripts and
15337 # restored at link time.
15338 variables_saved_for_relink=$lt_variables_saved_for_relink
15340 # Do we need the "lib" prefix for modules?
15341 need_lib_prefix=$need_lib_prefix
15343 # Do we need a version for libraries?
15344 need_version=$need_version
15346 # Library versioning type.
15347 version_type=$version_type
15349 # Shared library runtime path variable.
15350 runpath_var=$runpath_var
15352 # Shared library path variable.
15353 shlibpath_var=$shlibpath_var
15355 # Is shlibpath searched before the hard-coded library search path?
15356 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15358 # Format of library name prefix.
15359 libname_spec=$lt_libname_spec
15361 # List of archive names. First name is the real one, the rest are links.
15362 # The last name is the one that the linker finds with -lNAME
15363 library_names_spec=$lt_library_names_spec
15365 # The coded name of the library, if different from the real name.
15366 soname_spec=$lt_soname_spec
15368 # Permission mode override for installation of shared libraries.
15369 install_override_mode=$lt_install_override_mode
15371 # Command to use after installation of a shared archive.
15372 postinstall_cmds=$lt_postinstall_cmds
15374 # Command to use after uninstallation of a shared archive.
15375 postuninstall_cmds=$lt_postuninstall_cmds
15377 # Commands used to finish a libtool library installation in a directory.
15378 finish_cmds=$lt_finish_cmds
15380 # As "finish_cmds", except a single script fragment to be evaled but
15381 # not shown.
15382 finish_eval=$lt_finish_eval
15384 # Whether we should hardcode library paths into libraries.
15385 hardcode_into_libs=$hardcode_into_libs
15387 # Compile-time system search path for libraries.
15388 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15390 # Run-time system search path for libraries.
15391 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15393 # Whether dlopen is supported.
15394 dlopen_support=$enable_dlopen
15396 # Whether dlopen of programs is supported.
15397 dlopen_self=$enable_dlopen_self
15399 # Whether dlopen of statically linked programs is supported.
15400 dlopen_self_static=$enable_dlopen_self_static
15402 # Commands to strip libraries.
15403 old_striplib=$lt_old_striplib
15404 striplib=$lt_striplib
15407 # The linker used to build libraries.
15408 LD=$lt_LD
15410 # How to create reloadable object files.
15411 reload_flag=$lt_reload_flag
15412 reload_cmds=$lt_reload_cmds
15414 # Commands used to build an old-style archive.
15415 old_archive_cmds=$lt_old_archive_cmds
15417 # A language specific compiler.
15418 CC=$lt_compiler
15420 # Is the compiler the GNU compiler?
15421 with_gcc=$GCC
15423 # Compiler flag to turn off builtin functions.
15424 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15426 # How to pass a linker flag through the compiler.
15427 wl=$lt_lt_prog_compiler_wl
15429 # Additional compiler flags for building library objects.
15430 pic_flag=$lt_lt_prog_compiler_pic
15432 # Compiler flag to prevent dynamic linking.
15433 link_static_flag=$lt_lt_prog_compiler_static
15435 # Does compiler simultaneously support -c and -o options?
15436 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15438 # Whether or not to add -lc for building shared libraries.
15439 build_libtool_need_lc=$archive_cmds_need_lc
15441 # Whether or not to disallow shared libs when runtime libs are static.
15442 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15444 # Compiler flag to allow reflexive dlopens.
15445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15447 # Compiler flag to generate shared objects directly from archives.
15448 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15450 # Whether the compiler copes with passing no objects directly.
15451 compiler_needs_object=$lt_compiler_needs_object
15453 # Create an old-style archive from a shared archive.
15454 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15456 # Create a temporary old-style archive to link instead of a shared archive.
15457 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15459 # Commands used to build a shared archive.
15460 archive_cmds=$lt_archive_cmds
15461 archive_expsym_cmds=$lt_archive_expsym_cmds
15463 # Commands used to build a loadable module if different from building
15464 # a shared archive.
15465 module_cmds=$lt_module_cmds
15466 module_expsym_cmds=$lt_module_expsym_cmds
15468 # Whether we are building with GNU ld or not.
15469 with_gnu_ld=$lt_with_gnu_ld
15471 # Flag that allows shared libraries with undefined symbols to be built.
15472 allow_undefined_flag=$lt_allow_undefined_flag
15474 # Flag that enforces no undefined symbols.
15475 no_undefined_flag=$lt_no_undefined_flag
15477 # Flag to hardcode \$libdir into a binary during linking.
15478 # This must work even if \$libdir does not exist
15479 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15481 # If ld is used when linking, flag to hardcode \$libdir into a binary
15482 # during linking. This must work even if \$libdir does not exist.
15483 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15485 # Whether we need a single "-rpath" flag with a separated argument.
15486 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15488 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15489 # DIR into the resulting binary.
15490 hardcode_direct=$hardcode_direct
15492 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15493 # DIR into the resulting binary and the resulting library dependency is
15494 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15495 # library is relocated.
15496 hardcode_direct_absolute=$hardcode_direct_absolute
15498 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15499 # into the resulting binary.
15500 hardcode_minus_L=$hardcode_minus_L
15502 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15503 # into the resulting binary.
15504 hardcode_shlibpath_var=$hardcode_shlibpath_var
15506 # Set to "yes" if building a shared library automatically hardcodes DIR
15507 # into the library and all subsequent libraries and executables linked
15508 # against it.
15509 hardcode_automatic=$hardcode_automatic
15511 # Set to yes if linker adds runtime paths of dependent libraries
15512 # to runtime path list.
15513 inherit_rpath=$inherit_rpath
15515 # Whether libtool must link a program against all its dependency libraries.
15516 link_all_deplibs=$link_all_deplibs
15518 # Fix the shell variable \$srcfile for the compiler.
15519 fix_srcfile_path=$lt_fix_srcfile_path
15521 # Set to "yes" if exported symbols are required.
15522 always_export_symbols=$always_export_symbols
15524 # The commands to list exported symbols.
15525 export_symbols_cmds=$lt_export_symbols_cmds
15527 # Symbols that should not be listed in the preloaded symbols.
15528 exclude_expsyms=$lt_exclude_expsyms
15530 # Symbols that must always be exported.
15531 include_expsyms=$lt_include_expsyms
15533 # Commands necessary for linking programs (against libraries) with templates.
15534 prelink_cmds=$lt_prelink_cmds
15536 # Specify filename containing input files.
15537 file_list_spec=$lt_file_list_spec
15539 # How to hardcode a shared library path into an executable.
15540 hardcode_action=$hardcode_action
15542 # ### END LIBTOOL CONFIG
15544 _LT_EOF
15546 case $host_os in
15547 aix3*)
15548 cat <<\_LT_EOF >> "$cfgfile"
15549 # AIX sometimes has problems with the GCC collect2 program. For some
15550 # reason, if we set the COLLECT_NAMES environment variable, the problems
15551 # vanish in a puff of smoke.
15552 if test "X${COLLECT_NAMES+set}" != Xset; then
15553 COLLECT_NAMES=
15554 export COLLECT_NAMES
15556 _LT_EOF
15558 esac
15561 ltmain="$ac_aux_dir/ltmain.sh"
15564 # We use sed instead of cat because bash on DJGPP gets confused if
15565 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15566 # text mode, it properly converts lines to CR/LF. This bash problem
15567 # is reportedly fixed, but why not run on old versions too?
15568 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15569 || (rm -f "$cfgfile"; exit 1)
15571 case $xsi_shell in
15572 yes)
15573 cat << \_LT_EOF >> "$cfgfile"
15575 # func_dirname file append nondir_replacement
15576 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15577 # otherwise set result to NONDIR_REPLACEMENT.
15578 func_dirname ()
15580 case ${1} in
15581 */*) func_dirname_result="${1%/*}${2}" ;;
15582 * ) func_dirname_result="${3}" ;;
15583 esac
15586 # func_basename file
15587 func_basename ()
15589 func_basename_result="${1##*/}"
15592 # func_dirname_and_basename file append nondir_replacement
15593 # perform func_basename and func_dirname in a single function
15594 # call:
15595 # dirname: Compute the dirname of FILE. If nonempty,
15596 # add APPEND to the result, otherwise set result
15597 # to NONDIR_REPLACEMENT.
15598 # value returned in "$func_dirname_result"
15599 # basename: Compute filename of FILE.
15600 # value retuned in "$func_basename_result"
15601 # Implementation must be kept synchronized with func_dirname
15602 # and func_basename. For efficiency, we do not delegate to
15603 # those functions but instead duplicate the functionality here.
15604 func_dirname_and_basename ()
15606 case ${1} in
15607 */*) func_dirname_result="${1%/*}${2}" ;;
15608 * ) func_dirname_result="${3}" ;;
15609 esac
15610 func_basename_result="${1##*/}"
15613 # func_stripname prefix suffix name
15614 # strip PREFIX and SUFFIX off of NAME.
15615 # PREFIX and SUFFIX must not contain globbing or regex special
15616 # characters, hashes, percent signs, but SUFFIX may contain a leading
15617 # dot (in which case that matches only a dot).
15618 func_stripname ()
15620 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15621 # positional parameters, so assign one to ordinary parameter first.
15622 func_stripname_result=${3}
15623 func_stripname_result=${func_stripname_result#"${1}"}
15624 func_stripname_result=${func_stripname_result%"${2}"}
15627 # func_opt_split
15628 func_opt_split ()
15630 func_opt_split_opt=${1%%=*}
15631 func_opt_split_arg=${1#*=}
15634 # func_lo2o object
15635 func_lo2o ()
15637 case ${1} in
15638 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15639 *) func_lo2o_result=${1} ;;
15640 esac
15643 # func_xform libobj-or-source
15644 func_xform ()
15646 func_xform_result=${1%.*}.lo
15649 # func_arith arithmetic-term...
15650 func_arith ()
15652 func_arith_result=$(( $* ))
15655 # func_len string
15656 # STRING may not start with a hyphen.
15657 func_len ()
15659 func_len_result=${#1}
15662 _LT_EOF
15664 *) # Bourne compatible functions.
15665 cat << \_LT_EOF >> "$cfgfile"
15667 # func_dirname file append nondir_replacement
15668 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15669 # otherwise set result to NONDIR_REPLACEMENT.
15670 func_dirname ()
15672 # Extract subdirectory from the argument.
15673 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15674 if test "X$func_dirname_result" = "X${1}"; then
15675 func_dirname_result="${3}"
15676 else
15677 func_dirname_result="$func_dirname_result${2}"
15681 # func_basename file
15682 func_basename ()
15684 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15688 # func_stripname prefix suffix name
15689 # strip PREFIX and SUFFIX off of NAME.
15690 # PREFIX and SUFFIX must not contain globbing or regex special
15691 # characters, hashes, percent signs, but SUFFIX may contain a leading
15692 # dot (in which case that matches only a dot).
15693 # func_strip_suffix prefix name
15694 func_stripname ()
15696 case ${2} in
15697 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15698 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15699 esac
15702 # sed scripts:
15703 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15704 my_sed_long_arg='1s/^-[^=]*=//'
15706 # func_opt_split
15707 func_opt_split ()
15709 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15710 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15713 # func_lo2o object
15714 func_lo2o ()
15716 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15719 # func_xform libobj-or-source
15720 func_xform ()
15722 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15725 # func_arith arithmetic-term...
15726 func_arith ()
15728 func_arith_result=`expr "$@"`
15731 # func_len string
15732 # STRING may not start with a hyphen.
15733 func_len ()
15735 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15738 _LT_EOF
15739 esac
15741 case $lt_shell_append in
15742 yes)
15743 cat << \_LT_EOF >> "$cfgfile"
15745 # func_append var value
15746 # Append VALUE to the end of shell variable VAR.
15747 func_append ()
15749 eval "$1+=\$2"
15751 _LT_EOF
15754 cat << \_LT_EOF >> "$cfgfile"
15756 # func_append var value
15757 # Append VALUE to the end of shell variable VAR.
15758 func_append ()
15760 eval "$1=\$$1\$2"
15763 _LT_EOF
15765 esac
15768 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15769 || (rm -f "$cfgfile"; exit 1)
15771 mv -f "$cfgfile" "$ofile" ||
15772 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15773 chmod +x "$ofile"
15777 esac
15778 done # for ac_tag
15781 as_fn_exit 0
15782 _ACEOF
15783 ac_clean_files=$ac_clean_files_save
15785 test $ac_write_fail = 0 ||
15786 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15789 # configure is writing to config.log, and then calls config.status.
15790 # config.status does its own redirection, appending to config.log.
15791 # Unfortunately, on DOS this fails, as config.log is still kept open
15792 # by configure, so config.status won't be able to write to it; its
15793 # output is simply discarded. So we exec the FD to /dev/null,
15794 # effectively closing config.log, so it can be properly (re)opened and
15795 # appended to by config.status. When coming back to configure, we
15796 # need to make the FD available again.
15797 if test "$no_create" != yes; then
15798 ac_cs_success=:
15799 ac_config_status_args=
15800 test "$silent" = yes &&
15801 ac_config_status_args="$ac_config_status_args --quiet"
15802 exec 5>/dev/null
15803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15804 exec 5>>config.log
15805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15806 # would make configure fail if this is the last instruction.
15807 $ac_cs_success || as_fn_exit 1
15809 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15811 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}