PR libstdc++/86450 use -Wabi=2 and simplify -Werror use
[official-gcc.git] / libquadmath / configure
blob14610d66238e6c433dec5d27879cc0b1b6216e7a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GCC Quad-precision Math Library 0.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # 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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GCC Quad-precision Math Library'
558 PACKAGE_TARNAME='libquadmath'
559 PACKAGE_VERSION='0.1'
560 PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 get_gcc_base_ver
605 GENINSRC_FALSE
606 GENINSRC_TRUE
607 XCFLAGS
608 BUILD_LIBQUADMATH_FALSE
609 BUILD_LIBQUADMATH_TRUE
610 LIBQUAD_USE_SYMVER_SUN_FALSE
611 LIBQUAD_USE_SYMVER_SUN_TRUE
612 LIBQUAD_USE_SYMVER_GNU_FALSE
613 LIBQUAD_USE_SYMVER_GNU_TRUE
614 LIBQUAD_USE_SYMVER_FALSE
615 LIBQUAD_USE_SYMVER_TRUE
616 toolexeclibdir
617 toolexecdir
618 MAINT
619 MAINTAINER_MODE_FALSE
620 MAINTAINER_MODE_TRUE
621 enable_static
622 enable_shared
623 lt_host_flags
624 OTOOL64
625 OTOOL
626 LIPO
627 NMEDIT
628 DSYMUTIL
629 RANLIB
631 OBJDUMP
632 LN_S
634 ac_ct_DUMPBIN
635 DUMPBIN
637 FGREP
639 LIBTOOL
640 REPORT_BUGS_TEXI
641 REPORT_BUGS_TO
642 BUILD_INFO_FALSE
643 BUILD_INFO_TRUE
644 EGREP
645 GREP
647 am__fastdepCC_FALSE
648 am__fastdepCC_TRUE
649 CCDEPMODE
650 am__nodep
651 AMDEPBACKSLASH
652 AMDEP_FALSE
653 AMDEP_TRUE
654 am__quote
655 am__include
656 DEPDIR
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 multi_basedir
688 target_noncanonical
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 build_os
698 build_vendor
699 build_cpu
700 build
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files=''
740 ac_user_opts='
741 enable_option_checking
742 enable_multilib
743 enable_version_specific_runtime_libs
744 enable_dependency_tracking
745 with_bugurl
746 enable_shared
747 enable_static
748 with_pic
749 enable_fast_install
750 with_gnu_ld
751 enable_libtool_lock
752 enable_maintainer_mode
753 enable_symvers
754 enable_cet
755 enable_generated_files_in_srcdir
756 with_gcc_major_version_only
758 ac_precious_vars='build_alias
759 host_alias
760 target_alias
762 CFLAGS
763 LDFLAGS
764 LIBS
765 CPPFLAGS
766 CPP'
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 ac_unrecognized_opts=
773 ac_unrecognized_sep=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
776 cache_file=/dev/null
777 exec_prefix=NONE
778 no_create=
779 no_recursion=
780 prefix=NONE
781 program_prefix=NONE
782 program_suffix=NONE
783 program_transform_name=s,x,x,
784 silent=
785 site=
786 srcdir=
787 verbose=
788 x_includes=NONE
789 x_libraries=NONE
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir='${exec_prefix}/bin'
798 sbindir='${exec_prefix}/sbin'
799 libexecdir='${exec_prefix}/libexec'
800 datarootdir='${prefix}/share'
801 datadir='${datarootdir}'
802 sysconfdir='${prefix}/etc'
803 sharedstatedir='${prefix}/com'
804 localstatedir='${prefix}/var'
805 includedir='${prefix}/include'
806 oldincludedir='/usr/include'
807 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808 infodir='${datarootdir}/info'
809 htmldir='${docdir}'
810 dvidir='${docdir}'
811 pdfdir='${docdir}'
812 psdir='${docdir}'
813 libdir='${exec_prefix}/lib'
814 localedir='${datarootdir}/locale'
815 mandir='${datarootdir}/man'
817 ac_prev=
818 ac_dashdash=
819 for ac_option
821 # If the previous option needs an argument, assign it.
822 if test -n "$ac_prev"; then
823 eval $ac_prev=\$ac_option
824 ac_prev=
825 continue
828 case $ac_option in
829 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 *) ac_optarg=yes ;;
831 esac
833 # Accept the important Cygnus configure options, so we can diagnose typos.
835 case $ac_dashdash$ac_option in
837 ac_dashdash=yes ;;
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
856 --config-cache | -C)
857 cache_file=config.cache ;;
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
871 -disable-* | --disable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1151 -*) as_fn_error "unrecognized option: \`$ac_option'
1152 Try \`$0 --help' for more information."
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1173 esac
1174 done
1176 if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error "missing argument to $ac_option"
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1208 done
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222 If a cross compiler is detected then cross compile mode will be used." >&2
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231 test "$silent" = yes && exec 6>/dev/null
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error "working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error "pwd does not report name of working directory"
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 $as_echo X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1260 /^X\(\/\/\)$/{
1261 s//\1/
1264 /^X\(\/\).*/{
1265 s//\1/
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1273 else
1274 ac_srcdir_defaulted=no
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1280 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 ac_abs_confdir=`(
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1283 pwd)`
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1291 case $srcdir in
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 esac
1294 for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 done
1302 # Report the --help message.
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
1308 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1315 Defaults for the options are specified in brackets.
1317 Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 [PREFIX]
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1339 For better control, use the options below.
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --libdir=DIR object code libraries [EPREFIX/lib]
1349 --includedir=DIR C header files [PREFIX/include]
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1361 _ACEOF
1363 cat <<\_ACEOF
1365 Program names:
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370 System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1374 _ACEOF
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1380 esac
1381 cat <<\_ACEOF
1383 Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-multilib build many library versions (default)
1388 --enable-version-specific-runtime-libs
1389 specify that runtime libraries should be installed
1390 in a compiler-specific directory
1391 --disable-dependency-tracking speeds up one-time build
1392 --enable-dependency-tracking do not reject slow dependency extractors
1393 --enable-shared[=PKGS] build shared libraries [default=yes]
1394 --enable-static[=PKGS] build static libraries [default=yes]
1395 --enable-fast-install[=PKGS]
1396 optimize for fast installation [default=yes]
1397 --disable-libtool-lock avoid locking (might break parallel builds)
1398 --enable-maintainer-mode enable make rules and dependencies not useful
1399 (and sometimes confusing) to the casual installer
1400 --disable-symvers disable symbol versioning for libquadmath
1401 --enable-cet enable Intel CET in target libraries [default=no]
1402 --enable-generated-files-in-srcdir
1403 put copies of generated files in source dir intended
1404 for creating source tarballs for users without
1405 texinfo bison or flex
1407 Optional Packages:
1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1410 --with-bugurl=URL Direct users to URL to report a bug
1411 --with-pic try to use only PIC/non-PIC objects [default=use
1412 both]
1413 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1414 --with-gcc-major-version-only
1415 use only GCC major number in filesystem paths
1417 Some influential environment variables:
1418 CC C compiler command
1419 CFLAGS C compiler flags
1420 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1421 nonstandard directory <lib dir>
1422 LIBS libraries to pass to the linker, e.g. -l<library>
1423 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1424 you have headers in a nonstandard directory <include dir>
1425 CPP C preprocessor
1427 Use these variables to override the choices made by `configure' or to help
1428 it to find libraries and programs with nonstandard names/locations.
1430 Report bugs to the package provider.
1431 _ACEOF
1432 ac_status=$?
1435 if test "$ac_init_help" = "recursive"; then
1436 # If there are subdirs, report their specific --help.
1437 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1438 test -d "$ac_dir" ||
1439 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1440 continue
1441 ac_builddir=.
1443 case "$ac_dir" in
1444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1447 # A ".." for each directory in $ac_dir_suffix.
1448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1449 case $ac_top_builddir_sub in
1450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1452 esac ;;
1453 esac
1454 ac_abs_top_builddir=$ac_pwd
1455 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1456 # for backward compatibility:
1457 ac_top_builddir=$ac_top_build_prefix
1459 case $srcdir in
1460 .) # We are building in place.
1461 ac_srcdir=.
1462 ac_top_srcdir=$ac_top_builddir_sub
1463 ac_abs_top_srcdir=$ac_pwd ;;
1464 [\\/]* | ?:[\\/]* ) # Absolute name.
1465 ac_srcdir=$srcdir$ac_dir_suffix;
1466 ac_top_srcdir=$srcdir
1467 ac_abs_top_srcdir=$srcdir ;;
1468 *) # Relative name.
1469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1470 ac_top_srcdir=$ac_top_build_prefix$srcdir
1471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1472 esac
1473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475 cd "$ac_dir" || { ac_status=$?; continue; }
1476 # Check for guested configure.
1477 if test -f "$ac_srcdir/configure.gnu"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1480 elif test -f "$ac_srcdir/configure"; then
1481 echo &&
1482 $SHELL "$ac_srcdir/configure" --help=recursive
1483 else
1484 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1485 fi || ac_status=$?
1486 cd "$ac_pwd" || { ac_status=$?; break; }
1487 done
1490 test -n "$ac_init_help" && exit $ac_status
1491 if $ac_init_version; then
1492 cat <<\_ACEOF
1493 GCC Quad-precision Math Library configure 0.1
1494 generated by GNU Autoconf 2.64
1496 Copyright (C) 2009 Free Software Foundation, Inc.
1497 This configure script is free software; the Free Software Foundation
1498 gives unlimited permission to copy, distribute and modify it.
1499 _ACEOF
1500 exit
1503 ## ------------------------ ##
1504 ## Autoconf initialization. ##
1505 ## ------------------------ ##
1507 # ac_fn_c_try_compile LINENO
1508 # --------------------------
1509 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1510 ac_fn_c_try_compile ()
1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513 rm -f conftest.$ac_objext
1514 if { { ac_try="$ac_compile"
1515 case "(($ac_try" in
1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1518 esac
1519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520 $as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_compile") 2>conftest.err
1522 ac_status=$?
1523 if test -s conftest.err; then
1524 grep -v '^ *+' conftest.err >conftest.er1
1525 cat conftest.er1 >&5
1526 mv -f conftest.er1 conftest.err
1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529 test $ac_status = 0; } && {
1530 test -z "$ac_c_werror_flag" ||
1531 test ! -s conftest.err
1532 } && test -s conftest.$ac_objext; then :
1533 ac_retval=0
1534 else
1535 $as_echo "$as_me: failed program was:" >&5
1536 sed 's/^/| /' conftest.$ac_ext >&5
1538 ac_retval=1
1540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1541 return $ac_retval
1543 } # ac_fn_c_try_compile
1545 # ac_fn_c_try_cpp LINENO
1546 # ----------------------
1547 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_cpp ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if { { ac_try="$ac_cpp conftest.$ac_ext"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } >/dev/null && {
1567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 }; then :
1570 ac_retval=0
1571 else
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1575 ac_retval=1
1577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1578 return $ac_retval
1580 } # ac_fn_c_try_cpp
1582 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1583 # -------------------------------------------------------
1584 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1585 # the include files in INCLUDES and setting the cache variable VAR
1586 # accordingly.
1587 ac_fn_c_check_header_mongrel ()
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1592 $as_echo_n "checking for $2... " >&6; }
1593 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1594 $as_echo_n "(cached) " >&6
1596 eval ac_res=\$$3
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1598 $as_echo "$ac_res" >&6; }
1599 else
1600 # Is the header compilable?
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1602 $as_echo_n "checking $2 usability... " >&6; }
1603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604 /* end confdefs.h. */
1606 #include <$2>
1607 _ACEOF
1608 if ac_fn_c_try_compile "$LINENO"; then :
1609 ac_header_compiler=yes
1610 else
1611 ac_header_compiler=no
1613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1615 $as_echo "$ac_header_compiler" >&6; }
1617 # Is the header present?
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1619 $as_echo_n "checking $2 presence... " >&6; }
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1622 #include <$2>
1623 _ACEOF
1624 if ac_fn_c_try_cpp "$LINENO"; then :
1625 ac_header_preproc=yes
1626 else
1627 ac_header_preproc=no
1629 rm -f conftest.err conftest.$ac_ext
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1631 $as_echo "$ac_header_preproc" >&6; }
1633 # So? What about this header?
1634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1635 yes:no: )
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1637 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1639 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1641 no:yes:* )
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1643 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1645 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1647 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1649 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1651 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1653 esac
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1657 $as_echo_n "(cached) " >&6
1658 else
1659 eval "$3=\$ac_header_compiler"
1661 eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667 } # ac_fn_c_check_header_mongrel
1669 # ac_fn_c_try_run LINENO
1670 # ----------------------
1671 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1672 # that executables *can* be run.
1673 ac_fn_c_try_run ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_link"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>&5
1684 ac_status=$?
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1687 { { case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_try") 2>&5
1694 ac_status=$?
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; }; }; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: program exited with status $ac_status" >&5
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1703 ac_retval=$ac_status
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1709 } # ac_fn_c_try_run
1711 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists and can be compiled using the include files in
1714 # INCLUDES, setting the cache variable VAR accordingly.
1715 ac_fn_c_check_header_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1721 $as_echo_n "(cached) " >&6
1722 else
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1726 #include <$2>
1727 _ACEOF
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729 eval "$3=yes"
1730 else
1731 eval "$3=no"
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 } # ac_fn_c_check_header_compile
1742 # ac_fn_c_try_link LINENO
1743 # -----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_c_try_link ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 rm -f conftest.$ac_objext conftest$ac_exeext
1749 if { { ac_try="$ac_link"
1750 case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>conftest.err
1757 ac_status=$?
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && {
1765 test -z "$ac_c_werror_flag" ||
1766 test ! -s conftest.err
1767 } && test -s conftest$ac_exeext && {
1768 test "$cross_compiling" = yes ||
1769 $as_test_x conftest$ac_exeext
1770 }; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 ac_retval=1
1778 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1779 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1780 # interfere with the next link command; also delete a directory that is
1781 # left behind by Apple's compiler. We do this before executing the actions.
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 return $ac_retval
1786 } # ac_fn_c_try_link
1788 # ac_fn_c_check_func LINENO FUNC VAR
1789 # ----------------------------------
1790 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1791 ac_fn_c_check_func ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 if test x$gcc_no_link = xyes; then
1800 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1806 #define $2 innocuous_$2
1808 /* System header to define __stub macros and hopefully few prototypes,
1809 which can conflict with char $2 (); below.
1810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1811 <limits.h> exists even on freestanding compilers. */
1813 #ifdef __STDC__
1814 # include <limits.h>
1815 #else
1816 # include <assert.h>
1817 #endif
1819 #undef $2
1821 /* Override any GCC internal prototype to avoid an error.
1822 Use char because int might match the return type of a GCC
1823 builtin and then its argument prototype would still apply. */
1824 #ifdef __cplusplus
1825 extern "C"
1826 #endif
1827 char $2 ();
1828 /* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831 #if defined __stub_$2 || defined __stub___$2
1832 choke me
1833 #endif
1836 main ()
1838 return $2 ();
1840 return 0;
1842 _ACEOF
1843 if ac_fn_c_try_link "$LINENO"; then :
1844 eval "$3=yes"
1845 else
1846 eval "$3=no"
1848 rm -f core conftest.err conftest.$ac_objext \
1849 conftest$ac_exeext conftest.$ac_ext
1851 eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 } # ac_fn_c_check_func
1857 cat >config.log <<_ACEOF
1858 This file contains any messages produced by compilers while
1859 running configure, to aid debugging if configure makes a mistake.
1861 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1862 generated by GNU Autoconf 2.64. Invocation command line was
1864 $ $0 $@
1866 _ACEOF
1867 exec 5>>config.log
1869 cat <<_ASUNAME
1870 ## --------- ##
1871 ## Platform. ##
1872 ## --------- ##
1874 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1875 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1876 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1877 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1878 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1880 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1881 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1883 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1884 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1885 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1886 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1887 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1888 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1889 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1891 _ASUNAME
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1896 IFS=$as_save_IFS
1897 test -z "$as_dir" && as_dir=.
1898 $as_echo "PATH: $as_dir"
1899 done
1900 IFS=$as_save_IFS
1902 } >&5
1904 cat >&5 <<_ACEOF
1907 ## ----------- ##
1908 ## Core tests. ##
1909 ## ----------- ##
1911 _ACEOF
1914 # Keep a trace of the command line.
1915 # Strip out --no-create and --no-recursion so they do not pile up.
1916 # Strip out --silent because we don't want to record it for future runs.
1917 # Also quote any args containing shell meta-characters.
1918 # Make two passes to allow for proper duplicate-argument suppression.
1919 ac_configure_args=
1920 ac_configure_args0=
1921 ac_configure_args1=
1922 ac_must_keep_next=false
1923 for ac_pass in 1 2
1925 for ac_arg
1927 case $ac_arg in
1928 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1929 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1930 | -silent | --silent | --silen | --sile | --sil)
1931 continue ;;
1932 *\'*)
1933 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1934 esac
1935 case $ac_pass in
1936 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1938 as_fn_append ac_configure_args1 " '$ac_arg'"
1939 if test $ac_must_keep_next = true; then
1940 ac_must_keep_next=false # Got value, back to normal.
1941 else
1942 case $ac_arg in
1943 *=* | --config-cache | -C | -disable-* | --disable-* \
1944 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1945 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1946 | -with-* | --with-* | -without-* | --without-* | --x)
1947 case "$ac_configure_args0 " in
1948 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1949 esac
1951 -* ) ac_must_keep_next=true ;;
1952 esac
1954 as_fn_append ac_configure_args " '$ac_arg'"
1956 esac
1957 done
1958 done
1959 { ac_configure_args0=; unset ac_configure_args0;}
1960 { ac_configure_args1=; unset ac_configure_args1;}
1962 # When interrupted or exit'd, cleanup temporary files, and complete
1963 # config.log. We remove comments because anyway the quotes in there
1964 # would cause problems or look ugly.
1965 # WARNING: Use '\'' to represent an apostrophe within the trap.
1966 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1967 trap 'exit_status=$?
1968 # Save into config.log some information that might help in debugging.
1970 echo
1972 cat <<\_ASBOX
1973 ## ---------------- ##
1974 ## Cache variables. ##
1975 ## ---------------- ##
1976 _ASBOX
1977 echo
1978 # The following way of writing the cache mishandles newlines in values,
1980 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1981 eval ac_val=\$$ac_var
1982 case $ac_val in #(
1983 *${as_nl}*)
1984 case $ac_var in #(
1985 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1986 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1987 esac
1988 case $ac_var in #(
1989 _ | IFS | as_nl) ;; #(
1990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1991 *) { eval $ac_var=; unset $ac_var;} ;;
1992 esac ;;
1993 esac
1994 done
1995 (set) 2>&1 |
1996 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1997 *${as_nl}ac_space=\ *)
1998 sed -n \
1999 "s/'\''/'\''\\\\'\'''\''/g;
2000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2001 ;; #(
2003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2005 esac |
2006 sort
2008 echo
2010 cat <<\_ASBOX
2011 ## ----------------- ##
2012 ## Output variables. ##
2013 ## ----------------- ##
2014 _ASBOX
2015 echo
2016 for ac_var in $ac_subst_vars
2018 eval ac_val=\$$ac_var
2019 case $ac_val in
2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 esac
2022 $as_echo "$ac_var='\''$ac_val'\''"
2023 done | sort
2024 echo
2026 if test -n "$ac_subst_files"; then
2027 cat <<\_ASBOX
2028 ## ------------------- ##
2029 ## File substitutions. ##
2030 ## ------------------- ##
2031 _ASBOX
2032 echo
2033 for ac_var in $ac_subst_files
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
2040 done | sort
2041 echo
2044 if test -s confdefs.h; then
2045 cat <<\_ASBOX
2046 ## ----------- ##
2047 ## confdefs.h. ##
2048 ## ----------- ##
2049 _ASBOX
2050 echo
2051 cat confdefs.h
2052 echo
2054 test "$ac_signal" != 0 &&
2055 $as_echo "$as_me: caught signal $ac_signal"
2056 $as_echo "$as_me: exit $exit_status"
2057 } >&5
2058 rm -f core *.core core.conftest.* &&
2059 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2060 exit $exit_status
2062 for ac_signal in 1 2 13 15; do
2063 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2064 done
2065 ac_signal=0
2067 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2068 rm -f -r conftest* confdefs.h
2070 $as_echo "/* confdefs.h */" > confdefs.h
2072 # Predefined preprocessor variables.
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_NAME "$PACKAGE_NAME"
2076 _ACEOF
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2080 _ACEOF
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2084 _ACEOF
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_STRING "$PACKAGE_STRING"
2088 _ACEOF
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2092 _ACEOF
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_URL "$PACKAGE_URL"
2096 _ACEOF
2099 # Let the site file select an alternate cache file if it wants to.
2100 # Prefer an explicitly selected file to automatically selected ones.
2101 ac_site_file1=NONE
2102 ac_site_file2=NONE
2103 if test -n "$CONFIG_SITE"; then
2104 ac_site_file1=$CONFIG_SITE
2105 elif test "x$prefix" != xNONE; then
2106 ac_site_file1=$prefix/share/config.site
2107 ac_site_file2=$prefix/etc/config.site
2108 else
2109 ac_site_file1=$ac_default_prefix/share/config.site
2110 ac_site_file2=$ac_default_prefix/etc/config.site
2112 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2114 test "x$ac_site_file" = xNONE && continue
2115 if test -r "$ac_site_file"; then
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2117 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2118 sed 's/^/| /' "$ac_site_file" >&5
2119 . "$ac_site_file"
2121 done
2123 if test -r "$cache_file"; then
2124 # Some versions of bash will fail to source /dev/null (special
2125 # files actually), so we avoid doing that.
2126 if test -f "$cache_file"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2128 $as_echo "$as_me: loading cache $cache_file" >&6;}
2129 case $cache_file in
2130 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2131 *) . "./$cache_file";;
2132 esac
2134 else
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2136 $as_echo "$as_me: creating cache $cache_file" >&6;}
2137 >$cache_file
2140 # Check that the precious variables saved in the cache have kept the same
2141 # value.
2142 ac_cache_corrupted=false
2143 for ac_var in $ac_precious_vars; do
2144 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2145 eval ac_new_set=\$ac_env_${ac_var}_set
2146 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2147 eval ac_new_val=\$ac_env_${ac_var}_value
2148 case $ac_old_set,$ac_new_set in
2149 set,)
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2151 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2152 ac_cache_corrupted=: ;;
2153 ,set)
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2155 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2156 ac_cache_corrupted=: ;;
2157 ,);;
2159 if test "x$ac_old_val" != "x$ac_new_val"; then
2160 # differences in whitespace do not lead to failure.
2161 ac_old_val_w=`echo x $ac_old_val`
2162 ac_new_val_w=`echo x $ac_new_val`
2163 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2165 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2166 ac_cache_corrupted=:
2167 else
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2169 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2170 eval $ac_var=\$ac_old_val
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2173 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2175 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2176 fi;;
2177 esac
2178 # Pass precious variables to config.status.
2179 if test "$ac_new_set" = set; then
2180 case $ac_new_val in
2181 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2182 *) ac_arg=$ac_var=$ac_new_val ;;
2183 esac
2184 case " $ac_configure_args " in
2185 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2186 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2187 esac
2189 done
2190 if $ac_cache_corrupted; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2194 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2195 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2197 ## -------------------- ##
2198 ## Main body of script. ##
2199 ## -------------------- ##
2201 ac_ext=c
2202 ac_cpp='$CPP $CPPFLAGS'
2203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 ac_config_headers="$ac_config_headers config.h"
2214 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2216 # You will slowly go insane if you do not grok the following fact: when
2217 # building this library, the top-level /target/ becomes the library's /host/.
2219 # configure then causes --target to default to --host, exactly like any
2220 # other package using autoconf. Therefore, 'target' and 'host' will
2221 # always be the same. This makes sense both for native and cross compilers
2222 # just think about it for a little while. :-)
2224 # Also, if this library is being configured as part of a cross compiler, the
2225 # top-level configure script will pass the "real" host as $with_cross_host.
2227 # Do not delete or change the following two lines. For why, see
2228 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2229 ac_aux_dir=
2230 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2231 for ac_t in install-sh install.sh shtool; do
2232 if test -f "$ac_dir/$ac_t"; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/$ac_t -c"
2235 break 2
2237 done
2238 done
2239 if test -z "$ac_aux_dir"; then
2240 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2243 # These three variables are undocumented and unsupported,
2244 # and are intended to be withdrawn in a future Autoconf release.
2245 # They can cause serious problems if a builder's source tree is in a directory
2246 # whose full name contains unusual characters.
2247 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2248 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2249 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2252 # Make sure we can run config.sub.
2253 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2254 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2257 $as_echo_n "checking build system type... " >&6; }
2258 if test "${ac_cv_build+set}" = set; then :
2259 $as_echo_n "(cached) " >&6
2260 else
2261 ac_build_alias=$build_alias
2262 test "x$ac_build_alias" = x &&
2263 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2264 test "x$ac_build_alias" = x &&
2265 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2266 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2267 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2271 $as_echo "$ac_cv_build" >&6; }
2272 case $ac_cv_build in
2273 *-*-*) ;;
2274 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2275 esac
2276 build=$ac_cv_build
2277 ac_save_IFS=$IFS; IFS='-'
2278 set x $ac_cv_build
2279 shift
2280 build_cpu=$1
2281 build_vendor=$2
2282 shift; shift
2283 # Remember, the first character of IFS is used to create $*,
2284 # except with old shells:
2285 build_os=$*
2286 IFS=$ac_save_IFS
2287 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2291 $as_echo_n "checking host system type... " >&6; }
2292 if test "${ac_cv_host+set}" = set; then :
2293 $as_echo_n "(cached) " >&6
2294 else
2295 if test "x$host_alias" = x; then
2296 ac_cv_host=$ac_cv_build
2297 else
2298 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2304 $as_echo "$ac_cv_host" >&6; }
2305 case $ac_cv_host in
2306 *-*-*) ;;
2307 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2308 esac
2309 host=$ac_cv_host
2310 ac_save_IFS=$IFS; IFS='-'
2311 set x $ac_cv_host
2312 shift
2313 host_cpu=$1
2314 host_vendor=$2
2315 shift; shift
2316 # Remember, the first character of IFS is used to create $*,
2317 # except with old shells:
2318 host_os=$*
2319 IFS=$ac_save_IFS
2320 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2324 $as_echo_n "checking target system type... " >&6; }
2325 if test "${ac_cv_target+set}" = set; then :
2326 $as_echo_n "(cached) " >&6
2327 else
2328 if test "x$target_alias" = x; then
2329 ac_cv_target=$ac_cv_host
2330 else
2331 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2332 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2337 $as_echo "$ac_cv_target" >&6; }
2338 case $ac_cv_target in
2339 *-*-*) ;;
2340 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2341 esac
2342 target=$ac_cv_target
2343 ac_save_IFS=$IFS; IFS='-'
2344 set x $ac_cv_target
2345 shift
2346 target_cpu=$1
2347 target_vendor=$2
2348 shift; shift
2349 # Remember, the first character of IFS is used to create $*,
2350 # except with old shells:
2351 target_os=$*
2352 IFS=$ac_save_IFS
2353 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2356 # The aliases save the names the user supplied, while $host etc.
2357 # will get canonicalized.
2358 test -n "$target_alias" &&
2359 test "$program_prefix$program_suffix$program_transform_name" = \
2360 NONENONEs,x,x, &&
2361 program_prefix=${target_alias}-
2363 case ${build_alias} in
2364 "") build_noncanonical=${build} ;;
2365 *) build_noncanonical=${build_alias} ;;
2366 esac
2368 case ${host_alias} in
2369 "") host_noncanonical=${build_noncanonical} ;;
2370 *) host_noncanonical=${host_alias} ;;
2371 esac
2373 case ${target_alias} in
2374 "") target_noncanonical=${host_noncanonical} ;;
2375 *) target_noncanonical=${target_alias} ;;
2376 esac
2381 # Default to --enable-multilib
2382 # Check whether --enable-multilib was given.
2383 if test "${enable_multilib+set}" = set; then :
2384 enableval=$enable_multilib; case "$enableval" in
2385 yes) multilib=yes ;;
2386 no) multilib=no ;;
2387 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2388 esac
2389 else
2390 multilib=yes
2394 # We may get other options which we leave undocumented:
2395 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2396 # See config-ml.in if you want the gory details.
2398 if test "$srcdir" = "."; then
2399 if test "$with_target_subdir" != "."; then
2400 multi_basedir="$srcdir/$with_multisrctop../.."
2401 else
2402 multi_basedir="$srcdir/$with_multisrctop.."
2404 else
2405 multi_basedir="$srcdir/.."
2409 # Even if the default multilib is not a cross compilation,
2410 # it may be that some of the other multilibs are.
2411 if test $cross_compiling = no && test $multilib = yes \
2412 && test "x${with_multisubdir}" != x ; then
2413 cross_compiling=maybe
2416 ac_config_commands="$ac_config_commands default-1"
2419 target_alias=${target_alias-$host_alias}
2422 am__api_version='1.11'
2424 # Find a good install program. We prefer a C program (faster),
2425 # so one script is as good as another. But avoid the broken or
2426 # incompatible versions:
2427 # SysV /etc/install, /usr/sbin/install
2428 # SunOS /usr/etc/install
2429 # IRIX /sbin/install
2430 # AIX /bin/install
2431 # AmigaOS /C/install, which installs bootblocks on floppy discs
2432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2435 # OS/2's system install, which has a completely different semantic
2436 # ./install, which can be erroneously created by make from ./install.sh.
2437 # Reject install programs that cannot install multiple files.
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2439 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2440 if test -z "$INSTALL"; then
2441 if test "${ac_cv_path_install+set}" = set; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 # Account for people who put trailing slashes in PATH elements.
2450 case $as_dir/ in #((
2451 ./ | .// | /[cC]/* | \
2452 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2453 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2454 /usr/ucb/* ) ;;
2456 # OSF1 and SCO ODT 3.0 have their own names for install.
2457 # Don't use installbsd from OSF since it installs stuff as root
2458 # by default.
2459 for ac_prog in ginstall scoinst install; do
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2462 if test $ac_prog = install &&
2463 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2464 # AIX install. It has an incompatible calling convention.
2466 elif test $ac_prog = install &&
2467 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2468 # program-specific install script used by HP pwplus--don't use.
2470 else
2471 rm -rf conftest.one conftest.two conftest.dir
2472 echo one > conftest.one
2473 echo two > conftest.two
2474 mkdir conftest.dir
2475 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2476 test -s conftest.one && test -s conftest.two &&
2477 test -s conftest.dir/conftest.one &&
2478 test -s conftest.dir/conftest.two
2479 then
2480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2481 break 3
2485 done
2486 done
2488 esac
2490 done
2491 IFS=$as_save_IFS
2493 rm -rf conftest.one conftest.two conftest.dir
2496 if test "${ac_cv_path_install+set}" = set; then
2497 INSTALL=$ac_cv_path_install
2498 else
2499 # As a last resort, use the slow shell script. Don't cache a
2500 # value for INSTALL within a source directory, because that will
2501 # break other packages using the cache if that directory is
2502 # removed, or if the value is a relative name.
2503 INSTALL=$ac_install_sh
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2507 $as_echo "$INSTALL" >&6; }
2509 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2510 # It thinks the first close brace ends the variable substitution.
2511 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2513 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2515 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2518 $as_echo_n "checking whether build environment is sane... " >&6; }
2519 # Just in case
2520 sleep 1
2521 echo timestamp > conftest.file
2522 # Reject unsafe characters in $srcdir or the absolute working directory
2523 # name. Accept space and tab only in the latter.
2524 am_lf='
2526 case `pwd` in
2527 *[\\\"\#\$\&\'\`$am_lf]*)
2528 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2529 esac
2530 case $srcdir in
2531 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2532 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2533 esac
2535 # Do `set' in a subshell so we don't clobber the current shell's
2536 # arguments. Must try -L first in case configure is actually a
2537 # symlink; some systems play weird games with the mod time of symlinks
2538 # (eg FreeBSD returns the mod time of the symlink's containing
2539 # directory).
2540 if (
2541 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2542 if test "$*" = "X"; then
2543 # -L didn't work.
2544 set X `ls -t "$srcdir/configure" conftest.file`
2546 rm -f conftest.file
2547 if test "$*" != "X $srcdir/configure conftest.file" \
2548 && test "$*" != "X conftest.file $srcdir/configure"; then
2550 # If neither matched, then we have a broken ls. This can happen
2551 # if, for instance, CONFIG_SHELL is bash and it inherits a
2552 # broken ls alias from the environment. This has actually
2553 # happened. Such a system could not be considered "sane".
2554 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2555 alias in your environment" "$LINENO" 5
2558 test "$2" = conftest.file
2560 then
2561 # Ok.
2563 else
2564 as_fn_error "newly created file is older than distributed files!
2565 Check your system clock" "$LINENO" 5
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568 $as_echo "yes" >&6; }
2569 test "$program_prefix" != NONE &&
2570 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2571 # Use a double $ so make ignores it.
2572 test "$program_suffix" != NONE &&
2573 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2574 # Double any \ or $.
2575 # By default was `s,x,x', remove it if useless.
2576 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2577 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2579 # expand $ac_aux_dir to an absolute path
2580 am_aux_dir=`cd $ac_aux_dir && pwd`
2582 if test x"${MISSING+set}" != xset; then
2583 case $am_aux_dir in
2584 *\ * | *\ *)
2585 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2587 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2588 esac
2590 # Use eval to expand $SHELL
2591 if eval "$MISSING --run true"; then
2592 am_missing_run="$MISSING --run "
2593 else
2594 am_missing_run=
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2596 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2599 if test x"${install_sh}" != xset; then
2600 case $am_aux_dir in
2601 *\ * | *\ *)
2602 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2604 install_sh="\${SHELL} $am_aux_dir/install-sh"
2605 esac
2608 # Installed binaries are usually stripped using `strip' when the user
2609 # run `make install-strip'. However `strip' might not be the right
2610 # tool to use in cross-compilation environments, therefore Automake
2611 # will honor the `STRIP' environment variable to overrule this program.
2612 if test "$cross_compiling" != no; then
2613 if test -n "$ac_tool_prefix"; then
2614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2615 set dummy ${ac_tool_prefix}strip; ac_word=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if test "${ac_cv_prog_STRIP+set}" = set; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 if test -n "$STRIP"; then
2622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2635 done
2636 done
2637 IFS=$as_save_IFS
2641 STRIP=$ac_cv_prog_STRIP
2642 if test -n "$STRIP"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2644 $as_echo "$STRIP" >&6; }
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2652 if test -z "$ac_cv_prog_STRIP"; then
2653 ac_ct_STRIP=$STRIP
2654 # Extract the first word of "strip", so it can be a program name with args.
2655 set dummy strip; ac_word=$2
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2659 $as_echo_n "(cached) " >&6
2660 else
2661 if test -n "$ac_ct_STRIP"; then
2662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_ac_ct_STRIP="strip"
2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2675 done
2676 done
2677 IFS=$as_save_IFS
2681 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2682 if test -n "$ac_ct_STRIP"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2684 $as_echo "$ac_ct_STRIP" >&6; }
2685 else
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2690 if test "x$ac_ct_STRIP" = x; then
2691 STRIP=":"
2692 else
2693 case $cross_compiling:$ac_tool_warned in
2694 yes:)
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2697 ac_tool_warned=yes ;;
2698 esac
2699 STRIP=$ac_ct_STRIP
2701 else
2702 STRIP="$ac_cv_prog_STRIP"
2706 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2709 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2710 if test -z "$MKDIR_P"; then
2711 if test "${ac_cv_path_mkdir+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_prog in mkdir gmkdir; do
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2722 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2723 'mkdir (GNU coreutils) '* | \
2724 'mkdir (coreutils) '* | \
2725 'mkdir (fileutils) '4.1*)
2726 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2727 break 3;;
2728 esac
2729 done
2730 done
2731 done
2732 IFS=$as_save_IFS
2736 if test "${ac_cv_path_mkdir+set}" = set; then
2737 MKDIR_P="$ac_cv_path_mkdir -p"
2738 else
2739 # As a last resort, use the slow shell script. Don't cache a
2740 # value for MKDIR_P within a source directory, because that will
2741 # break other packages using the cache if that directory is
2742 # removed, or if the value is a relative name.
2743 test -d ./--version && rmdir ./--version
2744 MKDIR_P="$ac_install_sh -d"
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2748 $as_echo "$MKDIR_P" >&6; }
2750 mkdir_p="$MKDIR_P"
2751 case $mkdir_p in
2752 [\\/$]* | ?:[\\/]*) ;;
2753 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2754 esac
2756 for ac_prog in gawk mawk nawk awk
2758 # Extract the first word of "$ac_prog", so it can be a program name with args.
2759 set dummy $ac_prog; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if test "${ac_cv_prog_AWK+set}" = set; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 if test -n "$AWK"; then
2766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_AWK="$ac_prog"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2779 done
2780 done
2781 IFS=$as_save_IFS
2785 AWK=$ac_cv_prog_AWK
2786 if test -n "$AWK"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2788 $as_echo "$AWK" >&6; }
2789 else
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2795 test -n "$AWK" && break
2796 done
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2799 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2800 set x ${MAKE-make}
2801 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2802 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 cat >conftest.make <<\_ACEOF
2806 SHELL = /bin/sh
2807 all:
2808 @echo '@@@%%%=$(MAKE)=@@@%%%'
2809 _ACEOF
2810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2811 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2812 *@@@%%%=?*=@@@%%%*)
2813 eval ac_cv_prog_make_${ac_make}_set=yes;;
2815 eval ac_cv_prog_make_${ac_make}_set=no;;
2816 esac
2817 rm -f conftest.make
2819 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2821 $as_echo "yes" >&6; }
2822 SET_MAKE=
2823 else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 SET_MAKE="MAKE=${MAKE-make}"
2829 rm -rf .tst 2>/dev/null
2830 mkdir .tst 2>/dev/null
2831 if test -d .tst; then
2832 am__leading_dot=.
2833 else
2834 am__leading_dot=_
2836 rmdir .tst 2>/dev/null
2838 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2839 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2840 # is not polluted with repeated "-I."
2841 am__isrc=' -I$(srcdir)'
2842 # test to see if srcdir already configured
2843 if test -f $srcdir/config.status; then
2844 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2848 # test whether we have cygpath
2849 if test -z "$CYGPATH_W"; then
2850 if (cygpath --version) >/dev/null 2>/dev/null; then
2851 CYGPATH_W='cygpath -w'
2852 else
2853 CYGPATH_W=echo
2858 # Define the identity of the package.
2859 PACKAGE='libquadmath'
2860 VERSION='0.1'
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE "$PACKAGE"
2865 _ACEOF
2868 cat >>confdefs.h <<_ACEOF
2869 #define VERSION "$VERSION"
2870 _ACEOF
2872 # Some tools Automake needs.
2874 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2877 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2880 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2883 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2886 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2888 # We need awk for the "check" target. The system "awk" is bad on
2889 # some platforms.
2890 # Always define AMTAR for backward compatibility. Yes, it's still used
2891 # in the wild :-( We should find a proper way to deprecate it ...
2892 AMTAR='$${TAR-tar}'
2894 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2902 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2903 # Check whether --enable-version-specific-runtime-libs was given.
2904 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2905 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2906 yes) version_specific_libs=yes ;;
2907 no) version_specific_libs=no ;;
2908 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2909 esac
2910 else
2911 version_specific_libs=no
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2915 $as_echo "$version_specific_libs" >&6; }
2919 DEPDIR="${am__leading_dot}deps"
2921 ac_config_commands="$ac_config_commands depfiles"
2924 am_make=${MAKE-make}
2925 cat > confinc << 'END'
2926 am__doit:
2927 @echo this is the am__doit target
2928 .PHONY: am__doit
2930 # If we don't find an include directive, just comment out the code.
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2932 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2933 am__include="#"
2934 am__quote=
2935 _am_result=none
2936 # First try GNU make style include.
2937 echo "include confinc" > confmf
2938 # Ignore all kinds of additional output from `make'.
2939 case `$am_make -s -f confmf 2> /dev/null` in #(
2940 *the\ am__doit\ target*)
2941 am__include=include
2942 am__quote=
2943 _am_result=GNU
2945 esac
2946 # Now try BSD make style include.
2947 if test "$am__include" = "#"; then
2948 echo '.include "confinc"' > confmf
2949 case `$am_make -s -f confmf 2> /dev/null` in #(
2950 *the\ am__doit\ target*)
2951 am__include=.include
2952 am__quote="\""
2953 _am_result=BSD
2955 esac
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2960 $as_echo "$_am_result" >&6; }
2961 rm -f confinc confmf
2963 # Check whether --enable-dependency-tracking was given.
2964 if test "${enable_dependency_tracking+set}" = set; then :
2965 enableval=$enable_dependency_tracking;
2968 if test "x$enable_dependency_tracking" != xno; then
2969 am_depcomp="$ac_aux_dir/depcomp"
2970 AMDEPBACKSLASH='\'
2971 am__nodep='_no'
2973 if test "x$enable_dependency_tracking" != xno; then
2974 AMDEP_TRUE=
2975 AMDEP_FALSE='#'
2976 else
2977 AMDEP_TRUE='#'
2978 AMDEP_FALSE=
2982 ac_ext=c
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 if test -n "$ac_tool_prefix"; then
2988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2989 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if test "${ac_cv_prog_CC+set}" = set; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3009 done
3010 done
3011 IFS=$as_save_IFS
3015 CC=$ac_cv_prog_CC
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3026 if test -z "$ac_cv_prog_CC"; then
3027 ac_ct_CC=$CC
3028 # Extract the first word of "gcc", so it can be a program name with args.
3029 set dummy gcc; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if test -n "$ac_ct_CC"; then
3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_ac_ct_CC="gcc"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3049 done
3050 done
3051 IFS=$as_save_IFS
3055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3056 if test -n "$ac_ct_CC"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3058 $as_echo "$ac_ct_CC" >&6; }
3059 else
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3064 if test "x$ac_ct_CC" = x; then
3065 CC=""
3066 else
3067 case $cross_compiling:$ac_tool_warned in
3068 yes:)
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3071 ac_tool_warned=yes ;;
3072 esac
3073 CC=$ac_ct_CC
3075 else
3076 CC="$ac_cv_prog_CC"
3079 if test -z "$CC"; then
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}cc; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_CC+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_CC="${ac_tool_prefix}cc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3102 done
3103 done
3104 IFS=$as_save_IFS
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3120 if test -z "$CC"; then
3121 # Extract the first word of "cc", so it can be a program name with args.
3122 set dummy cc; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_CC+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3130 else
3131 ac_prog_rejected=no
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3140 ac_prog_rejected=yes
3141 continue
3143 ac_cv_prog_CC="cc"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3147 done
3148 done
3149 IFS=$as_save_IFS
3151 if test $ac_prog_rejected = yes; then
3152 # We found a bogon in the path, so make sure we never use it.
3153 set dummy $ac_cv_prog_CC
3154 shift
3155 if test $# != 0; then
3156 # We chose a different compiler from the bogus one.
3157 # However, it has the same basename, so the bogon will be chosen
3158 # first if we set CC to just the basename; use the full file name.
3159 shift
3160 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3176 if test -z "$CC"; then
3177 if test -n "$ac_tool_prefix"; then
3178 for ac_prog in cl.exe
3180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_CC+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3201 done
3202 done
3203 IFS=$as_save_IFS
3207 CC=$ac_cv_prog_CC
3208 if test -n "$CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3217 test -n "$CC" && break
3218 done
3220 if test -z "$CC"; then
3221 ac_ct_CC=$CC
3222 for ac_prog in cl.exe
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225 set dummy $ac_prog; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 if test -n "$ac_ct_CC"; then
3232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241 ac_cv_prog_ac_ct_CC="$ac_prog"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3245 done
3246 done
3247 IFS=$as_save_IFS
3251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252 if test -n "$ac_ct_CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3254 $as_echo "$ac_ct_CC" >&6; }
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3261 test -n "$ac_ct_CC" && break
3262 done
3264 if test "x$ac_ct_CC" = x; then
3265 CC=""
3266 else
3267 case $cross_compiling:$ac_tool_warned in
3268 yes:)
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3271 ac_tool_warned=yes ;;
3272 esac
3273 CC=$ac_ct_CC
3280 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error "no acceptable C compiler found in \$PATH
3283 See \`config.log' for more details." "$LINENO" 5; }
3285 # Provide some information about the compiler.
3286 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3287 set X $ac_compile
3288 ac_compiler=$2
3289 for ac_option in --version -v -V -qversion; do
3290 { { ac_try="$ac_compiler $ac_option >&5"
3291 case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294 esac
3295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296 $as_echo "$ac_try_echo"; } >&5
3297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3298 ac_status=$?
3299 if test -s conftest.err; then
3300 sed '10a\
3301 ... rest of stderr output deleted ...
3302 10q' conftest.err >conftest.er1
3303 cat conftest.er1 >&5
3304 rm -f conftest.er1 conftest.err
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }
3308 done
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3314 main ()
3318 return 0;
3320 _ACEOF
3321 # FIXME: Cleanup?
3322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3323 (eval $ac_link) 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 gcc_no_link=no
3328 else
3329 gcc_no_link=yes
3331 if test x$gcc_no_link = xyes; then
3332 # Setting cross_compile will disable run tests; it will
3333 # also disable AC_CHECK_FILE but that's generally
3334 # correct if we can't link.
3335 cross_compiling=yes
3336 EXEEXT=
3337 else
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3342 main ()
3346 return 0;
3348 _ACEOF
3349 ac_clean_files_save=$ac_clean_files
3350 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3351 # Try to create an executable without -o first, disregard a.out.
3352 # It will help us diagnose broken compilers, and finding out an intuition
3353 # of exeext.
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3355 $as_echo_n "checking for C compiler default output file name... " >&6; }
3356 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3358 # The possible output files:
3359 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3361 ac_rmfiles=
3362 for ac_file in $ac_files
3364 case $ac_file in
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3367 esac
3368 done
3369 rm -f $ac_rmfiles
3371 if { { ac_try="$ac_link_default"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_link_default") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; then :
3382 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3383 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3384 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3385 # so that the user can short-circuit this test for compilers unknown to
3386 # Autoconf.
3387 for ac_file in $ac_files ''
3389 test -f "$ac_file" || continue
3390 case $ac_file in
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3393 [ab].out )
3394 # We found the default executable, but exeext='' is most
3395 # certainly right.
3396 break;;
3397 *.* )
3398 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3399 then :; else
3400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402 # We set ac_cv_exeext here because the later test for it is not
3403 # safe: cross compilers may not add the suffix if given an `-o'
3404 # argument, so we may need to know it at that point already.
3405 # Even if this section looks crufty: it has the advantage of
3406 # actually working.
3407 break;;
3409 break;;
3410 esac
3411 done
3412 test "$ac_cv_exeext" = no && ac_cv_exeext=
3414 else
3415 ac_file=''
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3418 $as_echo "$ac_file" >&6; }
3419 if test -z "$ac_file"; then :
3420 $as_echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 { as_fn_set_status 77
3426 as_fn_error "C compiler cannot create executables
3427 See \`config.log' for more details." "$LINENO" 5; }; }
3429 ac_exeext=$ac_cv_exeext
3431 # Check that the compiler produces executables we can run. If not, either
3432 # the compiler is broken, or we cross compile.
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3434 $as_echo_n "checking whether the C compiler works... " >&6; }
3435 # If not cross compiling, check that we can run a simple program.
3436 if test "$cross_compiling" != yes; then
3437 if { ac_try='./$ac_file'
3438 { { case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_try") 2>&5
3445 ac_status=$?
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; }; then
3448 cross_compiling=no
3449 else
3450 if test "$cross_compiling" = maybe; then
3451 cross_compiling=yes
3452 else
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error "cannot run C compiled programs.
3456 If you meant to cross compile, use \`--host'.
3457 See \`config.log' for more details." "$LINENO" 5; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462 $as_echo "yes" >&6; }
3464 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3465 ac_clean_files=$ac_clean_files_save
3466 # Check that the compiler produces executables we can run. If not, either
3467 # the compiler is broken, or we cross compile.
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3469 $as_echo_n "checking whether we are cross compiling... " >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3471 $as_echo "$cross_compiling" >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3474 $as_echo_n "checking for suffix of executables... " >&6; }
3475 if { { ac_try="$ac_link"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&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 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3487 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3488 # work properly (i.e., refer to `conftest.exe'), while it won't with
3489 # `rm'.
3490 for ac_file in conftest.exe conftest conftest.*; do
3491 test -f "$ac_file" || continue
3492 case $ac_file in
3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495 break;;
3496 * ) break;;
3497 esac
3498 done
3499 else
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error "cannot compute suffix of executables: cannot compile and link
3503 See \`config.log' for more details." "$LINENO" 5; }
3505 rm -f conftest$ac_cv_exeext
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3507 $as_echo "$ac_cv_exeext" >&6; }
3509 rm -f conftest.$ac_ext
3510 EXEEXT=$ac_cv_exeext
3511 ac_exeext=$EXEEXT
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3514 $as_echo_n "checking for suffix of object files... " >&6; }
3515 if test "${ac_cv_objext+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3522 main ()
3526 return 0;
3528 _ACEOF
3529 rm -f conftest.o conftest.obj
3530 if { { ac_try="$ac_compile"
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_compile") 2>&5
3538 ac_status=$?
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }; then :
3541 for ac_file in conftest.o conftest.obj conftest.*; do
3542 test -f "$ac_file" || continue;
3543 case $ac_file in
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3545 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3546 break;;
3547 esac
3548 done
3549 else
3550 $as_echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error "cannot compute suffix of object files: cannot compile
3556 See \`config.log' for more details." "$LINENO" 5; }
3558 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3561 $as_echo "$ac_cv_objext" >&6; }
3562 OBJEXT=$ac_cv_objext
3563 ac_objext=$OBJEXT
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3565 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3566 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3573 main ()
3575 #ifndef __GNUC__
3576 choke me
3577 #endif
3580 return 0;
3582 _ACEOF
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584 ac_compiler_gnu=yes
3585 else
3586 ac_compiler_gnu=no
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3593 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3594 if test $ac_compiler_gnu = yes; then
3595 GCC=yes
3596 else
3597 GCC=
3599 ac_test_CFLAGS=${CFLAGS+set}
3600 ac_save_CFLAGS=$CFLAGS
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3602 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3603 if test "${ac_cv_prog_cc_g+set}" = set; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 ac_save_c_werror_flag=$ac_c_werror_flag
3607 ac_c_werror_flag=yes
3608 ac_cv_prog_cc_g=no
3609 CFLAGS="-g"
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3614 main ()
3618 return 0;
3620 _ACEOF
3621 if ac_fn_c_try_compile "$LINENO"; then :
3622 ac_cv_prog_cc_g=yes
3623 else
3624 CFLAGS=""
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3629 main ()
3633 return 0;
3635 _ACEOF
3636 if ac_fn_c_try_compile "$LINENO"; then :
3638 else
3639 ac_c_werror_flag=$ac_save_c_werror_flag
3640 CFLAGS="-g"
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3645 main ()
3649 return 0;
3651 _ACEOF
3652 if ac_fn_c_try_compile "$LINENO"; then :
3653 ac_cv_prog_cc_g=yes
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 ac_c_werror_flag=$ac_save_c_werror_flag
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3663 $as_echo "$ac_cv_prog_cc_g" >&6; }
3664 if test "$ac_test_CFLAGS" = set; then
3665 CFLAGS=$ac_save_CFLAGS
3666 elif test $ac_cv_prog_cc_g = yes; then
3667 if test "$GCC" = yes; then
3668 CFLAGS="-g -O2"
3669 else
3670 CFLAGS="-g"
3672 else
3673 if test "$GCC" = yes; then
3674 CFLAGS="-O2"
3675 else
3676 CFLAGS=
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3680 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3681 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 ac_cv_prog_cc_c89=no
3685 ac_save_CC=$CC
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 #include <stdarg.h>
3689 #include <stdio.h>
3690 #include <sys/types.h>
3691 #include <sys/stat.h>
3692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3693 struct buf { int x; };
3694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3695 static char *e (p, i)
3696 char **p;
3697 int i;
3699 return p[i];
3701 static char *f (char * (*g) (char **, int), char **p, ...)
3703 char *s;
3704 va_list v;
3705 va_start (v,p);
3706 s = g (p, va_arg (v,int));
3707 va_end (v);
3708 return s;
3711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3712 function prototypes and stuff, but not '\xHH' hex character constants.
3713 These don't provoke an error unfortunately, instead are silently treated
3714 as 'x'. The following induces an error, until -std is added to get
3715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3716 array size at least. It's necessary to write '\x00'==0 to get something
3717 that's true only with -std. */
3718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3720 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3721 inside strings and character constants. */
3722 #define FOO(x) 'x'
3723 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3725 int test (int i, double x);
3726 struct s1 {int (*f) (int a);};
3727 struct s2 {int (*f) (double a);};
3728 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3729 int argc;
3730 char **argv;
3732 main ()
3734 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3736 return 0;
3738 _ACEOF
3739 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3740 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3742 CC="$ac_save_CC $ac_arg"
3743 if ac_fn_c_try_compile "$LINENO"; then :
3744 ac_cv_prog_cc_c89=$ac_arg
3746 rm -f core conftest.err conftest.$ac_objext
3747 test "x$ac_cv_prog_cc_c89" != "xno" && break
3748 done
3749 rm -f conftest.$ac_ext
3750 CC=$ac_save_CC
3753 # AC_CACHE_VAL
3754 case "x$ac_cv_prog_cc_c89" in
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3757 $as_echo "none needed" >&6; } ;;
3758 xno)
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3760 $as_echo "unsupported" >&6; } ;;
3762 CC="$CC $ac_cv_prog_cc_c89"
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3764 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3765 esac
3766 if test "x$ac_cv_prog_cc_c89" != xno; then :
3770 ac_ext=c
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776 depcc="$CC" am_compiler_list=
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3779 $as_echo_n "checking dependency style of $depcc... " >&6; }
3780 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3784 # We make a subdir and do the tests there. Otherwise we can end up
3785 # making bogus files that we don't know about and never remove. For
3786 # instance it was reported that on HP-UX the gcc test will end up
3787 # making a dummy file named `D' -- because `-MD' means `put the output
3788 # in D'.
3789 rm -rf conftest.dir
3790 mkdir conftest.dir
3791 # Copy depcomp to subdir because otherwise we won't find it if we're
3792 # using a relative directory.
3793 cp "$am_depcomp" conftest.dir
3794 cd conftest.dir
3795 # We will build objects and dependencies in a subdirectory because
3796 # it helps to detect inapplicable dependency modes. For instance
3797 # both Tru64's cc and ICC support -MD to output dependencies as a
3798 # side effect of compilation, but ICC will put the dependencies in
3799 # the current directory while Tru64 will put them in the object
3800 # directory.
3801 mkdir sub
3803 am_cv_CC_dependencies_compiler_type=none
3804 if test "$am_compiler_list" = ""; then
3805 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3807 am__universal=false
3808 case " $depcc " in #(
3809 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3810 esac
3812 for depmode in $am_compiler_list; do
3813 # Setup a source with many dependencies, because some compilers
3814 # like to wrap large dependency lists on column 80 (with \), and
3815 # we should not choose a depcomp mode which is confused by this.
3817 # We need to recreate these files for each test, as the compiler may
3818 # overwrite some of them when testing with obscure command lines.
3819 # This happens at least with the AIX C compiler.
3820 : > sub/conftest.c
3821 for i in 1 2 3 4 5 6; do
3822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3823 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3824 # Solaris 8's {/usr,}/bin/sh.
3825 touch sub/conftst$i.h
3826 done
3827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3829 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3830 # mode. It turns out that the SunPro C++ compiler does not properly
3831 # handle `-M -o', and we need to detect this. Also, some Intel
3832 # versions had trouble with output in subdirs
3833 am__obj=sub/conftest.${OBJEXT-o}
3834 am__minus_obj="-o $am__obj"
3835 case $depmode in
3836 gcc)
3837 # This depmode causes a compiler race in universal mode.
3838 test "$am__universal" = false || continue
3840 nosideeffect)
3841 # after this tag, mechanisms are not by side-effect, so they'll
3842 # only be used when explicitly requested
3843 if test "x$enable_dependency_tracking" = xyes; then
3844 continue
3845 else
3846 break
3849 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3850 # This compiler won't grok `-c -o', but also, the minuso test has
3851 # not run yet. These depmodes are late enough in the game, and
3852 # so weak that their functioning should not be impacted.
3853 am__obj=conftest.${OBJEXT-o}
3854 am__minus_obj=
3856 none) break ;;
3857 esac
3858 if depmode=$depmode \
3859 source=sub/conftest.c object=$am__obj \
3860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3861 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3862 >/dev/null 2>conftest.err &&
3863 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3865 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3867 # icc doesn't choke on unknown options, it will just issue warnings
3868 # or remarks (even with -Werror). So we grep stderr for any message
3869 # that says an option was ignored or not supported.
3870 # When given -MP, icc 7.0 and 7.1 complain thusly:
3871 # icc: Command line warning: ignoring option '-M'; no argument required
3872 # The diagnosis changed in icc 8.0:
3873 # icc: Command line remark: option '-MP' not supported
3874 if (grep 'ignoring option' conftest.err ||
3875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3876 am_cv_CC_dependencies_compiler_type=$depmode
3877 break
3880 done
3882 cd ..
3883 rm -rf conftest.dir
3884 else
3885 am_cv_CC_dependencies_compiler_type=none
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3890 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3891 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3894 test "x$enable_dependency_tracking" != xno \
3895 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3896 am__fastdepCC_TRUE=
3897 am__fastdepCC_FALSE='#'
3898 else
3899 am__fastdepCC_TRUE='#'
3900 am__fastdepCC_FALSE=
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3911 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3912 # On Suns, sometimes $CPP names a directory.
3913 if test -n "$CPP" && test -d "$CPP"; then
3914 CPP=
3916 if test -z "$CPP"; then
3917 if test "${ac_cv_prog_CPP+set}" = set; then :
3918 $as_echo_n "(cached) " >&6
3919 else
3920 # Double quotes because CPP needs to be expanded
3921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3923 ac_preproc_ok=false
3924 for ac_c_preproc_warn_flag in '' yes
3926 # Use a header file that comes with gcc, so configuring glibc
3927 # with a fresh cross-compiler works.
3928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3929 # <limits.h> exists even on freestanding compilers.
3930 # On the NeXT, cc -E runs the code through the compiler's parser,
3931 # not just through cpp. "Syntax error" is here to catch this case.
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 #ifdef __STDC__
3935 # include <limits.h>
3936 #else
3937 # include <assert.h>
3938 #endif
3939 Syntax error
3940 _ACEOF
3941 if ac_fn_c_try_cpp "$LINENO"; then :
3943 else
3944 # Broken: fails on valid input.
3945 continue
3947 rm -f conftest.err conftest.$ac_ext
3949 # OK, works on sane cases. Now check whether nonexistent headers
3950 # can be detected and how.
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953 #include <ac_nonexistent.h>
3954 _ACEOF
3955 if ac_fn_c_try_cpp "$LINENO"; then :
3956 # Broken: success on invalid input.
3957 continue
3958 else
3959 # Passes both tests.
3960 ac_preproc_ok=:
3961 break
3963 rm -f conftest.err conftest.$ac_ext
3965 done
3966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3967 rm -f conftest.err conftest.$ac_ext
3968 if $ac_preproc_ok; then :
3969 break
3972 done
3973 ac_cv_prog_CPP=$CPP
3976 CPP=$ac_cv_prog_CPP
3977 else
3978 ac_cv_prog_CPP=$CPP
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3981 $as_echo "$CPP" >&6; }
3982 ac_preproc_ok=false
3983 for ac_c_preproc_warn_flag in '' yes
3985 # Use a header file that comes with gcc, so configuring glibc
3986 # with a fresh cross-compiler works.
3987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988 # <limits.h> exists even on freestanding compilers.
3989 # On the NeXT, cc -E runs the code through the compiler's parser,
3990 # not just through cpp. "Syntax error" is here to catch this case.
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993 #ifdef __STDC__
3994 # include <limits.h>
3995 #else
3996 # include <assert.h>
3997 #endif
3998 Syntax error
3999 _ACEOF
4000 if ac_fn_c_try_cpp "$LINENO"; then :
4002 else
4003 # Broken: fails on valid input.
4004 continue
4006 rm -f conftest.err conftest.$ac_ext
4008 # OK, works on sane cases. Now check whether nonexistent headers
4009 # can be detected and how.
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 #include <ac_nonexistent.h>
4013 _ACEOF
4014 if ac_fn_c_try_cpp "$LINENO"; then :
4015 # Broken: success on invalid input.
4016 continue
4017 else
4018 # Passes both tests.
4019 ac_preproc_ok=:
4020 break
4022 rm -f conftest.err conftest.$ac_ext
4024 done
4025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4026 rm -f conftest.err conftest.$ac_ext
4027 if $ac_preproc_ok; then :
4029 else
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4033 See \`config.log' for more details." "$LINENO" 5; }
4036 ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4044 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4045 if test "${ac_cv_path_GREP+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 if test -z "$GREP"; then
4049 ac_path_GREP_found=false
4050 # Loop through the user's path and test for each of PROGNAME-LIST
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4054 IFS=$as_save_IFS
4055 test -z "$as_dir" && as_dir=.
4056 for ac_prog in grep ggrep; do
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4059 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4060 # Check for GNU ac_path_GREP and select it if it is found.
4061 # Check for GNU $ac_path_GREP
4062 case `"$ac_path_GREP" --version 2>&1` in
4063 *GNU*)
4064 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4066 ac_count=0
4067 $as_echo_n 0123456789 >"conftest.in"
4068 while :
4070 cat "conftest.in" "conftest.in" >"conftest.tmp"
4071 mv "conftest.tmp" "conftest.in"
4072 cp "conftest.in" "conftest.nl"
4073 $as_echo 'GREP' >> "conftest.nl"
4074 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4076 as_fn_arith $ac_count + 1 && ac_count=$as_val
4077 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4078 # Best one so far, save it but keep looking for a better one
4079 ac_cv_path_GREP="$ac_path_GREP"
4080 ac_path_GREP_max=$ac_count
4082 # 10*(2^10) chars as input seems more than enough
4083 test $ac_count -gt 10 && break
4084 done
4085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4086 esac
4088 $ac_path_GREP_found && break 3
4089 done
4090 done
4091 done
4092 IFS=$as_save_IFS
4093 if test -z "$ac_cv_path_GREP"; then
4094 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4096 else
4097 ac_cv_path_GREP=$GREP
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4102 $as_echo "$ac_cv_path_GREP" >&6; }
4103 GREP="$ac_cv_path_GREP"
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4107 $as_echo_n "checking for egrep... " >&6; }
4108 if test "${ac_cv_path_EGREP+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4112 then ac_cv_path_EGREP="$GREP -E"
4113 else
4114 if test -z "$EGREP"; then
4115 ac_path_EGREP_found=false
4116 # Loop through the user's path and test for each of PROGNAME-LIST
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_prog in egrep; do
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4125 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4126 # Check for GNU ac_path_EGREP and select it if it is found.
4127 # Check for GNU $ac_path_EGREP
4128 case `"$ac_path_EGREP" --version 2>&1` in
4129 *GNU*)
4130 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4132 ac_count=0
4133 $as_echo_n 0123456789 >"conftest.in"
4134 while :
4136 cat "conftest.in" "conftest.in" >"conftest.tmp"
4137 mv "conftest.tmp" "conftest.in"
4138 cp "conftest.in" "conftest.nl"
4139 $as_echo 'EGREP' >> "conftest.nl"
4140 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4142 as_fn_arith $ac_count + 1 && ac_count=$as_val
4143 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4144 # Best one so far, save it but keep looking for a better one
4145 ac_cv_path_EGREP="$ac_path_EGREP"
4146 ac_path_EGREP_max=$ac_count
4148 # 10*(2^10) chars as input seems more than enough
4149 test $ac_count -gt 10 && break
4150 done
4151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152 esac
4154 $ac_path_EGREP_found && break 3
4155 done
4156 done
4157 done
4158 IFS=$as_save_IFS
4159 if test -z "$ac_cv_path_EGREP"; then
4160 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4162 else
4163 ac_cv_path_EGREP=$EGREP
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4169 $as_echo "$ac_cv_path_EGREP" >&6; }
4170 EGREP="$ac_cv_path_EGREP"
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4174 $as_echo_n "checking for ANSI C header files... " >&6; }
4175 if test "${ac_cv_header_stdc+set}" = set; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180 #include <stdlib.h>
4181 #include <stdarg.h>
4182 #include <string.h>
4183 #include <float.h>
4186 main ()
4190 return 0;
4192 _ACEOF
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194 ac_cv_header_stdc=yes
4195 else
4196 ac_cv_header_stdc=no
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 if test $ac_cv_header_stdc = yes; then
4201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 #include <string.h>
4206 _ACEOF
4207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4208 $EGREP "memchr" >/dev/null 2>&1; then :
4210 else
4211 ac_cv_header_stdc=no
4213 rm -f conftest*
4217 if test $ac_cv_header_stdc = yes; then
4218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221 #include <stdlib.h>
4223 _ACEOF
4224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4225 $EGREP "free" >/dev/null 2>&1; then :
4227 else
4228 ac_cv_header_stdc=no
4230 rm -f conftest*
4234 if test $ac_cv_header_stdc = yes; then
4235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4236 if test "$cross_compiling" = yes; then :
4238 else
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <ctype.h>
4242 #include <stdlib.h>
4243 #if ((' ' & 0x0FF) == 0x020)
4244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4246 #else
4247 # define ISLOWER(c) \
4248 (('a' <= (c) && (c) <= 'i') \
4249 || ('j' <= (c) && (c) <= 'r') \
4250 || ('s' <= (c) && (c) <= 'z'))
4251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4252 #endif
4254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4256 main ()
4258 int i;
4259 for (i = 0; i < 256; i++)
4260 if (XOR (islower (i), ISLOWER (i))
4261 || toupper (i) != TOUPPER (i))
4262 return 2;
4263 return 0;
4265 _ACEOF
4266 if ac_fn_c_try_run "$LINENO"; then :
4268 else
4269 ac_cv_header_stdc=no
4271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4272 conftest.$ac_objext conftest.beam conftest.$ac_ext
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4278 $as_echo "$ac_cv_header_stdc" >&6; }
4279 if test $ac_cv_header_stdc = yes; then
4281 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4285 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287 inttypes.h stdint.h unistd.h
4288 do :
4289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4292 eval as_val=\$$as_ac_Header
4293 if test "x$as_val" = x""yes; then :
4294 cat >>confdefs.h <<_ACEOF
4295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4296 _ACEOF
4300 done
4304 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4305 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4306 MINIX=yes
4307 else
4308 MINIX=
4312 if test "$MINIX" = yes; then
4314 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4317 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4320 $as_echo "#define _MINIX 1" >>confdefs.h
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4326 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4327 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4333 # define __EXTENSIONS__ 1
4334 $ac_includes_default
4336 main ()
4340 return 0;
4342 _ACEOF
4343 if ac_fn_c_try_compile "$LINENO"; then :
4344 ac_cv_safe_to_define___extensions__=yes
4345 else
4346 ac_cv_safe_to_define___extensions__=no
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4351 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4352 test $ac_cv_safe_to_define___extensions__ = yes &&
4353 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4355 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4357 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4359 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4361 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4365 # See if makeinfo has been installed and is modern enough
4366 # that we can use it.
4368 # Extract the first word of "makeinfo", so it can be a program name with args.
4369 set dummy makeinfo; ac_word=$2
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 if test -n "$MAKEINFO"; then
4376 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4377 else
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4385 ac_cv_prog_MAKEINFO="makeinfo"
4386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4389 done
4390 done
4391 IFS=$as_save_IFS
4395 MAKEINFO=$ac_cv_prog_MAKEINFO
4396 if test -n "$MAKEINFO"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4398 $as_echo "$MAKEINFO" >&6; }
4399 else
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4405 if test -n "$MAKEINFO"; then
4406 # Found it, now check the version.
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4408 $as_echo_n "checking for modern makeinfo... " >&6; }
4409 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4413 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4415 case $ac_prog_version in
4416 '') gcc_cv_prog_makeinfo_modern=no;;
4417 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4418 *) gcc_cv_prog_makeinfo_modern=no;;
4419 esac
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4423 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4424 else
4425 gcc_cv_prog_makeinfo_modern=no
4427 if test $gcc_cv_prog_makeinfo_modern = no; then
4428 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4431 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4432 BUILD_INFO_TRUE=
4433 BUILD_INFO_FALSE='#'
4434 else
4435 BUILD_INFO_TRUE='#'
4436 BUILD_INFO_FALSE=
4442 # Check whether --with-bugurl was given.
4443 if test "${with_bugurl+set}" = set; then :
4444 withval=$with_bugurl; case "$withval" in
4445 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4446 no) BUGURL=
4448 *) BUGURL="$withval"
4450 esac
4451 else
4452 BUGURL="https://gcc.gnu.org/bugs/"
4456 case ${BUGURL} in
4458 REPORT_BUGS_TO=
4459 REPORT_BUGS_TEXI=
4462 REPORT_BUGS_TO="<$BUGURL>"
4463 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4465 esac;
4470 # Configure libtool
4471 case `pwd` in
4472 *\ * | *\ *)
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4474 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4475 esac
4479 macro_version='2.2.7a'
4480 macro_revision='1.3134'
4494 ltmain="$ac_aux_dir/ltmain.sh"
4496 # Backslashify metacharacters that are still active within
4497 # double-quoted strings.
4498 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4500 # Same as above, but do not quote variable references.
4501 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4503 # Sed substitution to delay expansion of an escaped shell variable in a
4504 # double_quote_subst'ed string.
4505 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4507 # Sed substitution to delay expansion of an escaped single quote.
4508 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4510 # Sed substitution to avoid accidental globbing in evaled expressions
4511 no_glob_subst='s/\*/\\\*/g'
4513 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4514 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4515 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4518 $as_echo_n "checking how to print strings... " >&6; }
4519 # Test print first, because it will be a builtin if present.
4520 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4521 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4522 ECHO='print -r --'
4523 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4524 ECHO='printf %s\n'
4525 else
4526 # Use this function as a fallback that always works.
4527 func_fallback_echo ()
4529 eval 'cat <<_LTECHO_EOF
4531 _LTECHO_EOF'
4533 ECHO='func_fallback_echo'
4536 # func_echo_all arg...
4537 # Invoke $ECHO with all args, space-separated.
4538 func_echo_all ()
4540 $ECHO ""
4543 case "$ECHO" in
4544 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4545 $as_echo "printf" >&6; } ;;
4546 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4547 $as_echo "print -r" >&6; } ;;
4548 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4549 $as_echo "cat" >&6; } ;;
4550 esac
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4566 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4567 if test "${ac_cv_path_SED+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4571 for ac_i in 1 2 3 4 5 6 7; do
4572 ac_script="$ac_script$as_nl$ac_script"
4573 done
4574 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4575 { ac_script=; unset ac_script;}
4576 if test -z "$SED"; then
4577 ac_path_SED_found=false
4578 # Loop through the user's path and test for each of PROGNAME-LIST
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_prog in sed gsed; do
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4587 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4588 # Check for GNU ac_path_SED and select it if it is found.
4589 # Check for GNU $ac_path_SED
4590 case `"$ac_path_SED" --version 2>&1` in
4591 *GNU*)
4592 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4594 ac_count=0
4595 $as_echo_n 0123456789 >"conftest.in"
4596 while :
4598 cat "conftest.in" "conftest.in" >"conftest.tmp"
4599 mv "conftest.tmp" "conftest.in"
4600 cp "conftest.in" "conftest.nl"
4601 $as_echo '' >> "conftest.nl"
4602 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4604 as_fn_arith $ac_count + 1 && ac_count=$as_val
4605 if test $ac_count -gt ${ac_path_SED_max-0}; then
4606 # Best one so far, save it but keep looking for a better one
4607 ac_cv_path_SED="$ac_path_SED"
4608 ac_path_SED_max=$ac_count
4610 # 10*(2^10) chars as input seems more than enough
4611 test $ac_count -gt 10 && break
4612 done
4613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614 esac
4616 $ac_path_SED_found && break 3
4617 done
4618 done
4619 done
4620 IFS=$as_save_IFS
4621 if test -z "$ac_cv_path_SED"; then
4622 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4624 else
4625 ac_cv_path_SED=$SED
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4630 $as_echo "$ac_cv_path_SED" >&6; }
4631 SED="$ac_cv_path_SED"
4632 rm -f conftest.sed
4634 test -z "$SED" && SED=sed
4635 Xsed="$SED -e 1s/^X//"
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4648 $as_echo_n "checking for fgrep... " >&6; }
4649 if test "${ac_cv_path_FGREP+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4653 then ac_cv_path_FGREP="$GREP -F"
4654 else
4655 if test -z "$FGREP"; then
4656 ac_path_FGREP_found=false
4657 # Loop through the user's path and test for each of PROGNAME-LIST
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_prog in fgrep; do
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4666 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4667 # Check for GNU ac_path_FGREP and select it if it is found.
4668 # Check for GNU $ac_path_FGREP
4669 case `"$ac_path_FGREP" --version 2>&1` in
4670 *GNU*)
4671 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4673 ac_count=0
4674 $as_echo_n 0123456789 >"conftest.in"
4675 while :
4677 cat "conftest.in" "conftest.in" >"conftest.tmp"
4678 mv "conftest.tmp" "conftest.in"
4679 cp "conftest.in" "conftest.nl"
4680 $as_echo 'FGREP' >> "conftest.nl"
4681 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4683 as_fn_arith $ac_count + 1 && ac_count=$as_val
4684 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4685 # Best one so far, save it but keep looking for a better one
4686 ac_cv_path_FGREP="$ac_path_FGREP"
4687 ac_path_FGREP_max=$ac_count
4689 # 10*(2^10) chars as input seems more than enough
4690 test $ac_count -gt 10 && break
4691 done
4692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4693 esac
4695 $ac_path_FGREP_found && break 3
4696 done
4697 done
4698 done
4699 IFS=$as_save_IFS
4700 if test -z "$ac_cv_path_FGREP"; then
4701 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4703 else
4704 ac_cv_path_FGREP=$FGREP
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4710 $as_echo "$ac_cv_path_FGREP" >&6; }
4711 FGREP="$ac_cv_path_FGREP"
4714 test -z "$GREP" && GREP=grep
4734 # Check whether --with-gnu-ld was given.
4735 if test "${with_gnu_ld+set}" = set; then :
4736 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4737 else
4738 with_gnu_ld=no
4741 ac_prog=ld
4742 if test "$GCC" = yes; then
4743 # Check if gcc -print-prog-name=ld gives a path.
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4745 $as_echo_n "checking for ld used by $CC... " >&6; }
4746 case $host in
4747 *-*-mingw*)
4748 # gcc leaves a trailing carriage return which upsets mingw
4749 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4751 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4752 esac
4753 case $ac_prog in
4754 # Accept absolute paths.
4755 [\\/]* | ?:[\\/]*)
4756 re_direlt='/[^/][^/]*/\.\./'
4757 # Canonicalize the pathname of ld
4758 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4759 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4760 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4761 done
4762 test -z "$LD" && LD="$ac_prog"
4765 # If it fails, then pretend we aren't using GCC.
4766 ac_prog=ld
4769 # If it is relative, then search for the first ld in PATH.
4770 with_gnu_ld=unknown
4772 esac
4773 elif test "$with_gnu_ld" = yes; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4775 $as_echo_n "checking for GNU ld... " >&6; }
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4778 $as_echo_n "checking for non-GNU ld... " >&6; }
4780 if test "${lt_cv_path_LD+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -z "$LD"; then
4784 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4785 for ac_dir in $PATH; do
4786 IFS="$lt_save_ifs"
4787 test -z "$ac_dir" && ac_dir=.
4788 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4789 lt_cv_path_LD="$ac_dir/$ac_prog"
4790 # Check to see if the program is GNU ld. I'd rather use --version,
4791 # but apparently some variants of GNU ld only accept -v.
4792 # Break only if it was the GNU/non-GNU ld that we prefer.
4793 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4794 *GNU* | *'with BFD'*)
4795 test "$with_gnu_ld" != no && break
4798 test "$with_gnu_ld" != yes && break
4800 esac
4802 done
4803 IFS="$lt_save_ifs"
4804 else
4805 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4809 LD="$lt_cv_path_LD"
4810 if test -n "$LD"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4812 $as_echo "$LD" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4817 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4819 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4820 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4824 case `$LD -v 2>&1 </dev/null` in
4825 *GNU* | *'with BFD'*)
4826 lt_cv_prog_gnu_ld=yes
4829 lt_cv_prog_gnu_ld=no
4831 esac
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4834 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4835 with_gnu_ld=$lt_cv_prog_gnu_ld
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4846 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4847 if test "${lt_cv_path_NM+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 if test -n "$NM"; then
4851 # Let the user override the test.
4852 lt_cv_path_NM="$NM"
4853 else
4854 lt_nm_to_check="${ac_tool_prefix}nm"
4855 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4856 lt_nm_to_check="$lt_nm_to_check nm"
4858 for lt_tmp_nm in $lt_nm_to_check; do
4859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4860 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4861 IFS="$lt_save_ifs"
4862 test -z "$ac_dir" && ac_dir=.
4863 tmp_nm="$ac_dir/$lt_tmp_nm"
4864 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4865 # Check to see if the nm accepts a BSD-compat flag.
4866 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4867 # nm: unknown option "B" ignored
4868 # Tru64's nm complains that /dev/null is an invalid object file
4869 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4870 */dev/null* | *'Invalid file or object type'*)
4871 lt_cv_path_NM="$tmp_nm -B"
4872 break
4875 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4876 */dev/null*)
4877 lt_cv_path_NM="$tmp_nm -p"
4878 break
4881 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4882 continue # so that we can try to find one that supports BSD flags
4884 esac
4886 esac
4888 done
4889 IFS="$lt_save_ifs"
4890 done
4891 : ${lt_cv_path_NM=no}
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4895 $as_echo "$lt_cv_path_NM" >&6; }
4896 if test "$lt_cv_path_NM" != "no"; then
4897 NM="$lt_cv_path_NM"
4898 else
4899 # Didn't find any BSD compatible name lister, look for dumpbin.
4900 if test -n "$DUMPBIN"; then :
4901 # Let the user override the test.
4902 else
4903 if test -n "$ac_tool_prefix"; then
4904 for ac_prog in dumpbin "link -dump"
4906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$DUMPBIN"; then
4914 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4927 done
4928 done
4929 IFS=$as_save_IFS
4933 DUMPBIN=$ac_cv_prog_DUMPBIN
4934 if test -n "$DUMPBIN"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4936 $as_echo "$DUMPBIN" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4943 test -n "$DUMPBIN" && break
4944 done
4946 if test -z "$DUMPBIN"; then
4947 ac_ct_DUMPBIN=$DUMPBIN
4948 for ac_prog in dumpbin "link -dump"
4950 # Extract the first word of "$ac_prog", so it can be a program name with args.
4951 set dummy $ac_prog; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$ac_ct_DUMPBIN"; then
4958 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4971 done
4972 done
4973 IFS=$as_save_IFS
4977 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4978 if test -n "$ac_ct_DUMPBIN"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4980 $as_echo "$ac_ct_DUMPBIN" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4987 test -n "$ac_ct_DUMPBIN" && break
4988 done
4990 if test "x$ac_ct_DUMPBIN" = x; then
4991 DUMPBIN=":"
4992 else
4993 case $cross_compiling:$ac_tool_warned in
4994 yes:)
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4997 ac_tool_warned=yes ;;
4998 esac
4999 DUMPBIN=$ac_ct_DUMPBIN
5003 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5004 *COFF*)
5005 DUMPBIN="$DUMPBIN -symbols"
5008 DUMPBIN=:
5010 esac
5013 if test "$DUMPBIN" != ":"; then
5014 NM="$DUMPBIN"
5017 test -z "$NM" && NM=nm
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5025 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5026 if test "${lt_cv_nm_interface+set}" = set; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 lt_cv_nm_interface="BSD nm"
5030 echo "int some_variable = 0;" > conftest.$ac_ext
5031 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5032 (eval "$ac_compile" 2>conftest.err)
5033 cat conftest.err >&5
5034 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5035 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5036 cat conftest.err >&5
5037 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5038 cat conftest.out >&5
5039 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5040 lt_cv_nm_interface="MS dumpbin"
5042 rm -f conftest*
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5045 $as_echo "$lt_cv_nm_interface" >&6; }
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5048 $as_echo_n "checking whether ln -s works... " >&6; }
5049 LN_S=$as_ln_s
5050 if test "$LN_S" = "ln -s"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5052 $as_echo "yes" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5055 $as_echo "no, using $LN_S" >&6; }
5058 # find the maximum length of command line arguments
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5060 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5061 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5065 teststring="ABCD"
5067 case $build_os in
5068 msdosdjgpp*)
5069 # On DJGPP, this test can blow up pretty badly due to problems in libc
5070 # (any single argument exceeding 2000 bytes causes a buffer overrun
5071 # during glob expansion). Even if it were fixed, the result of this
5072 # check would be larger than it should be.
5073 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5076 gnu*)
5077 # Under GNU Hurd, this test is not required because there is
5078 # no limit to the length of command line arguments.
5079 # Libtool will interpret -1 as no limit whatsoever
5080 lt_cv_sys_max_cmd_len=-1;
5083 cygwin* | mingw* | cegcc*)
5084 # On Win9x/ME, this test blows up -- it succeeds, but takes
5085 # about 5 minutes as the teststring grows exponentially.
5086 # Worse, since 9x/ME are not pre-emptively multitasking,
5087 # you end up with a "frozen" computer, even though with patience
5088 # the test eventually succeeds (with a max line length of 256k).
5089 # Instead, let's just punt: use the minimum linelength reported by
5090 # all of the supported platforms: 8192 (on NT/2K/XP).
5091 lt_cv_sys_max_cmd_len=8192;
5094 mint*)
5095 # On MiNT this can take a long time and run out of memory.
5096 lt_cv_sys_max_cmd_len=8192;
5099 amigaos*)
5100 # On AmigaOS with pdksh, this test takes hours, literally.
5101 # So we just punt and use a minimum line length of 8192.
5102 lt_cv_sys_max_cmd_len=8192;
5105 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5106 # This has been around since 386BSD, at least. Likely further.
5107 if test -x /sbin/sysctl; then
5108 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5109 elif test -x /usr/sbin/sysctl; then
5110 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5111 else
5112 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5114 # And add a safety zone
5115 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5119 interix*)
5120 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5121 lt_cv_sys_max_cmd_len=196608
5124 osf*)
5125 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5126 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5127 # nice to cause kernel panics so lets avoid the loop below.
5128 # First set a reasonable default.
5129 lt_cv_sys_max_cmd_len=16384
5131 if test -x /sbin/sysconfig; then
5132 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5133 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5134 esac
5137 sco3.2v5*)
5138 lt_cv_sys_max_cmd_len=102400
5140 sysv5* | sco5v6* | sysv4.2uw2*)
5141 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5142 if test -n "$kargmax"; then
5143 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5144 else
5145 lt_cv_sys_max_cmd_len=32768
5149 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5150 if test -n "$lt_cv_sys_max_cmd_len"; then
5151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5153 else
5154 # Make teststring a little bigger before we do anything with it.
5155 # a 1K string should be a reasonable start.
5156 for i in 1 2 3 4 5 6 7 8 ; do
5157 teststring=$teststring$teststring
5158 done
5159 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5160 # If test is not a shell built-in, we'll probably end up computing a
5161 # maximum length that is only half of the actual maximum length, but
5162 # we can't tell.
5163 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5164 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5165 test $i != 17 # 1/2 MB should be enough
5167 i=`expr $i + 1`
5168 teststring=$teststring$teststring
5169 done
5170 # Only check the string length outside the loop.
5171 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5172 teststring=
5173 # Add a significant safety factor because C++ compilers can tack on
5174 # massive amounts of additional arguments before passing them to the
5175 # linker. It appears as though 1/2 is a usable value.
5176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5179 esac
5183 if test -n $lt_cv_sys_max_cmd_len ; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5185 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5188 $as_echo "none" >&6; }
5190 max_cmd_len=$lt_cv_sys_max_cmd_len
5197 : ${CP="cp -f"}
5198 : ${MV="mv -f"}
5199 : ${RM="rm -f"}
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5202 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5203 # Try some XSI features
5204 xsi_shell=no
5205 ( _lt_dummy="a/b/c"
5206 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5207 = c,a/b,, \
5208 && eval 'test $(( 1 + 1 )) -eq 2 \
5209 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5210 && xsi_shell=yes
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5212 $as_echo "$xsi_shell" >&6; }
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5216 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5217 lt_shell_append=no
5218 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5219 >/dev/null 2>&1 \
5220 && lt_shell_append=yes
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5222 $as_echo "$lt_shell_append" >&6; }
5225 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5226 lt_unset=unset
5227 else
5228 lt_unset=false
5235 # test EBCDIC or ASCII
5236 case `echo X|tr X '\101'` in
5237 A) # ASCII based system
5238 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5239 lt_SP2NL='tr \040 \012'
5240 lt_NL2SP='tr \015\012 \040\040'
5242 *) # EBCDIC based system
5243 lt_SP2NL='tr \100 \n'
5244 lt_NL2SP='tr \r\n \100\100'
5246 esac
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5257 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5258 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 lt_cv_ld_reload_flag='-r'
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5264 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5265 reload_flag=$lt_cv_ld_reload_flag
5266 case $reload_flag in
5267 "" | " "*) ;;
5268 *) reload_flag=" $reload_flag" ;;
5269 esac
5270 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5271 case $host_os in
5272 darwin*)
5273 if test "$GCC" = yes; then
5274 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5275 else
5276 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5279 esac
5289 if test -n "$ac_tool_prefix"; then
5290 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5291 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 if test -n "$OBJDUMP"; then
5298 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
5311 done
5312 done
5313 IFS=$as_save_IFS
5317 OBJDUMP=$ac_cv_prog_OBJDUMP
5318 if test -n "$OBJDUMP"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5320 $as_echo "$OBJDUMP" >&6; }
5321 else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5328 if test -z "$ac_cv_prog_OBJDUMP"; then
5329 ac_ct_OBJDUMP=$OBJDUMP
5330 # Extract the first word of "objdump", so it can be a program name with args.
5331 set dummy objdump; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 if test -n "$ac_ct_OBJDUMP"; then
5338 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5339 else
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5343 IFS=$as_save_IFS
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 break 2
5351 done
5352 done
5353 IFS=$as_save_IFS
5357 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5358 if test -n "$ac_ct_OBJDUMP"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5360 $as_echo "$ac_ct_OBJDUMP" >&6; }
5361 else
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5366 if test "x$ac_ct_OBJDUMP" = x; then
5367 OBJDUMP="false"
5368 else
5369 case $cross_compiling:$ac_tool_warned in
5370 yes:)
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5373 ac_tool_warned=yes ;;
5374 esac
5375 OBJDUMP=$ac_ct_OBJDUMP
5377 else
5378 OBJDUMP="$ac_cv_prog_OBJDUMP"
5381 test -z "$OBJDUMP" && OBJDUMP=objdump
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5392 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5393 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 lt_cv_file_magic_cmd='$MAGIC_CMD'
5397 lt_cv_file_magic_test_file=
5398 lt_cv_deplibs_check_method='unknown'
5399 # Need to set the preceding variable on all platforms that support
5400 # interlibrary dependencies.
5401 # 'none' -- dependencies not supported.
5402 # `unknown' -- same as none, but documents that we really don't know.
5403 # 'pass_all' -- all dependencies passed with no checks.
5404 # 'test_compile' -- check by making test program.
5405 # 'file_magic [[regex]]' -- check by looking for files in library path
5406 # which responds to the $file_magic_cmd with a given extended regex.
5407 # If you have `file' or equivalent on your system and you're not sure
5408 # whether `pass_all' will *always* work, you probably want this one.
5410 case $host_os in
5411 aix[4-9]*)
5412 lt_cv_deplibs_check_method=pass_all
5415 beos*)
5416 lt_cv_deplibs_check_method=pass_all
5419 bsdi[45]*)
5420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5421 lt_cv_file_magic_cmd='/usr/bin/file -L'
5422 lt_cv_file_magic_test_file=/shlib/libc.so
5425 cygwin*)
5426 # func_win32_libid is a shell function defined in ltmain.sh
5427 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5428 lt_cv_file_magic_cmd='func_win32_libid'
5431 mingw* | pw32*)
5432 # Base MSYS/MinGW do not provide the 'file' command needed by
5433 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5434 # unless we find 'file', for example because we are cross-compiling.
5435 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5436 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5438 lt_cv_file_magic_cmd='func_win32_libid'
5439 else
5440 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5441 lt_cv_file_magic_cmd='$OBJDUMP -f'
5445 cegcc*)
5446 # use the weaker test based on 'objdump'. See mingw*.
5447 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5448 lt_cv_file_magic_cmd='$OBJDUMP -f'
5451 darwin* | rhapsody*)
5452 lt_cv_deplibs_check_method=pass_all
5455 freebsd* | dragonfly*)
5456 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5457 case $host_cpu in
5458 i*86 )
5459 # Not sure whether the presence of OpenBSD here was a mistake.
5460 # Let's accept both of them until this is cleared up.
5461 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5462 lt_cv_file_magic_cmd=/usr/bin/file
5463 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5465 esac
5466 else
5467 lt_cv_deplibs_check_method=pass_all
5471 gnu*)
5472 lt_cv_deplibs_check_method=pass_all
5475 haiku*)
5476 lt_cv_deplibs_check_method=pass_all
5479 hpux10.20* | hpux11*)
5480 lt_cv_file_magic_cmd=/usr/bin/file
5481 case $host_cpu in
5482 ia64*)
5483 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5484 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5486 hppa*64*)
5487 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]'
5488 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5491 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5492 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5494 esac
5497 interix[3-9]*)
5498 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5502 irix5* | irix6* | nonstopux*)
5503 case $LD in
5504 *-32|*"-32 ") libmagic=32-bit;;
5505 *-n32|*"-n32 ") libmagic=N32;;
5506 *-64|*"-64 ") libmagic=64-bit;;
5507 *) libmagic=never-match;;
5508 esac
5509 lt_cv_deplibs_check_method=pass_all
5512 # This must be Linux ELF.
5513 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5514 lt_cv_deplibs_check_method=pass_all
5517 netbsd*)
5518 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5520 else
5521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5525 newos6*)
5526 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5527 lt_cv_file_magic_cmd=/usr/bin/file
5528 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5531 *nto* | *qnx*)
5532 lt_cv_deplibs_check_method=pass_all
5535 openbsd*)
5536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5538 else
5539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5543 osf3* | osf4* | osf5*)
5544 lt_cv_deplibs_check_method=pass_all
5547 rdos*)
5548 lt_cv_deplibs_check_method=pass_all
5551 solaris*)
5552 lt_cv_deplibs_check_method=pass_all
5555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5556 lt_cv_deplibs_check_method=pass_all
5559 sysv4 | sysv4.3*)
5560 case $host_vendor in
5561 motorola)
5562 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]'
5563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5565 ncr)
5566 lt_cv_deplibs_check_method=pass_all
5568 sequent)
5569 lt_cv_file_magic_cmd='/bin/file'
5570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5572 sni)
5573 lt_cv_file_magic_cmd='/bin/file'
5574 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5575 lt_cv_file_magic_test_file=/lib/libc.so
5577 siemens)
5578 lt_cv_deplibs_check_method=pass_all
5581 lt_cv_deplibs_check_method=pass_all
5583 esac
5586 tpf*)
5587 lt_cv_deplibs_check_method=pass_all
5589 esac
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5593 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5594 file_magic_cmd=$lt_cv_file_magic_cmd
5595 deplibs_check_method=$lt_cv_deplibs_check_method
5596 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5609 if test -n "$ac_tool_prefix"; then
5610 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5611 set dummy ${ac_tool_prefix}ar; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if test "${ac_cv_prog_AR+set}" = set; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 if test -n "$AR"; then
5618 ac_cv_prog_AR="$AR" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_prog_AR="${ac_tool_prefix}ar"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5631 done
5632 done
5633 IFS=$as_save_IFS
5637 AR=$ac_cv_prog_AR
5638 if test -n "$AR"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5640 $as_echo "$AR" >&6; }
5641 else
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5648 if test -z "$ac_cv_prog_AR"; then
5649 ac_ct_AR=$AR
5650 # Extract the first word of "ar", so it can be a program name with args.
5651 set dummy ar; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 if test -n "$ac_ct_AR"; then
5658 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_ac_ct_AR="ar"
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5671 done
5672 done
5673 IFS=$as_save_IFS
5677 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5678 if test -n "$ac_ct_AR"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5680 $as_echo "$ac_ct_AR" >&6; }
5681 else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5686 if test "x$ac_ct_AR" = x; then
5687 AR="false"
5688 else
5689 case $cross_compiling:$ac_tool_warned in
5690 yes:)
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5693 ac_tool_warned=yes ;;
5694 esac
5695 AR=$ac_ct_AR
5697 else
5698 AR="$ac_cv_prog_AR"
5701 test -z "$AR" && AR=ar
5702 test -z "$AR_FLAGS" && AR_FLAGS=cru
5714 if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5716 set dummy ${ac_tool_prefix}strip; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if test "${ac_cv_prog_STRIP+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$STRIP"; then
5723 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5738 IFS=$as_save_IFS
5742 STRIP=$ac_cv_prog_STRIP
5743 if test -n "$STRIP"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5745 $as_echo "$STRIP" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5753 if test -z "$ac_cv_prog_STRIP"; then
5754 ac_ct_STRIP=$STRIP
5755 # Extract the first word of "strip", so it can be a program name with args.
5756 set dummy strip; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test -n "$ac_ct_STRIP"; then
5763 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 ac_cv_prog_ac_ct_STRIP="strip"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5776 done
5777 done
5778 IFS=$as_save_IFS
5782 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5783 if test -n "$ac_ct_STRIP"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5785 $as_echo "$ac_ct_STRIP" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5791 if test "x$ac_ct_STRIP" = x; then
5792 STRIP=":"
5793 else
5794 case $cross_compiling:$ac_tool_warned in
5795 yes:)
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5798 ac_tool_warned=yes ;;
5799 esac
5800 STRIP=$ac_ct_STRIP
5802 else
5803 STRIP="$ac_cv_prog_STRIP"
5806 test -z "$STRIP" && STRIP=:
5813 if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 if test -n "$RANLIB"; then
5822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5835 done
5836 done
5837 IFS=$as_save_IFS
5841 RANLIB=$ac_cv_prog_RANLIB
5842 if test -n "$RANLIB"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5844 $as_echo "$RANLIB" >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5852 if test -z "$ac_cv_prog_RANLIB"; then
5853 ac_ct_RANLIB=$RANLIB
5854 # Extract the first word of "ranlib", so it can be a program name with args.
5855 set dummy ranlib; ac_word=$2
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857 $as_echo_n "checking for $ac_word... " >&6; }
5858 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if test -n "$ac_ct_RANLIB"; then
5862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_prog_ac_ct_RANLIB="ranlib"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5875 done
5876 done
5877 IFS=$as_save_IFS
5881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5882 if test -n "$ac_ct_RANLIB"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5884 $as_echo "$ac_ct_RANLIB" >&6; }
5885 else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5890 if test "x$ac_ct_RANLIB" = x; then
5891 RANLIB=":"
5892 else
5893 case $cross_compiling:$ac_tool_warned in
5894 yes:)
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897 ac_tool_warned=yes ;;
5898 esac
5899 RANLIB=$ac_ct_RANLIB
5901 else
5902 RANLIB="$ac_cv_prog_RANLIB"
5905 test -z "$RANLIB" && RANLIB=:
5912 # Determine commands to create old-style static archives.
5913 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5914 old_postinstall_cmds='chmod 644 $oldlib'
5915 old_postuninstall_cmds=
5917 if test -n "$RANLIB"; then
5918 case $host_os in
5919 openbsd*)
5920 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5923 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5925 esac
5926 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5929 case $host_os in
5930 darwin*)
5931 lock_old_archive_extraction=yes ;;
5933 lock_old_archive_extraction=no ;;
5934 esac
5974 # If no C compiler was specified, use CC.
5975 LTCC=${LTCC-"$CC"}
5977 # If no C compiler flags were specified, use CFLAGS.
5978 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5980 # Allow CC to be a program name with arguments.
5981 compiler=$CC
5984 # Check for command to grab the raw symbol name followed by C symbol from nm.
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5986 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5987 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5991 # These are sane defaults that work on at least a few old systems.
5992 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5994 # Character class describing NM global symbol codes.
5995 symcode='[BCDEGRST]'
5997 # Regexp to match symbols that can be accessed directly from C.
5998 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6000 # Define system-specific variables.
6001 case $host_os in
6002 aix*)
6003 symcode='[BCDT]'
6005 cygwin* | mingw* | pw32* | cegcc*)
6006 symcode='[ABCDGISTW]'
6008 hpux*)
6009 if test "$host_cpu" = ia64; then
6010 symcode='[ABCDEGRST]'
6013 irix* | nonstopux*)
6014 symcode='[BCDEGRST]'
6016 osf*)
6017 symcode='[BCDEGQRST]'
6019 solaris*)
6020 symcode='[BDRT]'
6022 sco3.2v5*)
6023 symcode='[DT]'
6025 sysv4.2uw2*)
6026 symcode='[DT]'
6028 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6029 symcode='[ABDT]'
6031 sysv4)
6032 symcode='[DFNSTU]'
6034 esac
6036 # If we're using GNU nm, then use its standard symbol codes.
6037 case `$NM -V 2>&1` in
6038 *GNU* | *'with BFD'*)
6039 symcode='[ABCDGIRSTW]' ;;
6040 esac
6042 # Transform an extracted symbol line into a proper C declaration.
6043 # Some systems (esp. on ia64) link data and code symbols differently,
6044 # so use this general approach.
6045 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6047 # Transform an extracted symbol line into symbol name and symbol address
6048 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6049 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'"
6051 # Handle CRLF in mingw tool chain
6052 opt_cr=
6053 case $build_os in
6054 mingw*)
6055 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6057 esac
6059 # Try without a prefix underscore, then with it.
6060 for ac_symprfx in "" "_"; do
6062 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6063 symxfrm="\\1 $ac_symprfx\\2 \\2"
6065 # Write the raw and C identifiers.
6066 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6067 # Fake it for dumpbin and say T for any non-static function
6068 # and D for any global variable.
6069 # Also find C++ and __fastcall symbols from MSVC++,
6070 # which start with @ or ?.
6071 lt_cv_sys_global_symbol_pipe="$AWK '"\
6072 " {last_section=section; section=\$ 3};"\
6073 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6074 " \$ 0!~/External *\|/{next};"\
6075 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6076 " {if(hide[section]) next};"\
6077 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6078 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6079 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6080 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6081 " ' prfx=^$ac_symprfx"
6082 else
6083 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6086 # Check to see that the pipe works correctly.
6087 pipe_works=no
6089 rm -f conftest*
6090 cat > conftest.$ac_ext <<_LT_EOF
6091 #ifdef __cplusplus
6092 extern "C" {
6093 #endif
6094 char nm_test_var;
6095 void nm_test_func(void);
6096 void nm_test_func(void){}
6097 #ifdef __cplusplus
6099 #endif
6100 int main(){nm_test_var='a';nm_test_func();return(0);}
6101 _LT_EOF
6103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6104 (eval $ac_compile) 2>&5
6105 ac_status=$?
6106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6107 test $ac_status = 0; }; then
6108 # Now try to grab the symbols.
6109 nlist=conftest.nm
6110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6111 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6112 ac_status=$?
6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114 test $ac_status = 0; } && test -s "$nlist"; then
6115 # Try sorting and uniquifying the output.
6116 if sort "$nlist" | uniq > "$nlist"T; then
6117 mv -f "$nlist"T "$nlist"
6118 else
6119 rm -f "$nlist"T
6122 # Make sure that we snagged all the symbols we need.
6123 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6124 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6125 cat <<_LT_EOF > conftest.$ac_ext
6126 #ifdef __cplusplus
6127 extern "C" {
6128 #endif
6130 _LT_EOF
6131 # Now generate the symbol file.
6132 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6134 cat <<_LT_EOF >> conftest.$ac_ext
6136 /* The mapping between symbol names and symbols. */
6137 const struct {
6138 const char *name;
6139 void *address;
6141 lt__PROGRAM__LTX_preloaded_symbols[] =
6143 { "@PROGRAM@", (void *) 0 },
6144 _LT_EOF
6145 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6146 cat <<\_LT_EOF >> conftest.$ac_ext
6147 {0, (void *) 0}
6150 /* This works around a problem in FreeBSD linker */
6151 #ifdef FREEBSD_WORKAROUND
6152 static const void *lt_preloaded_setup() {
6153 return lt__PROGRAM__LTX_preloaded_symbols;
6155 #endif
6157 #ifdef __cplusplus
6159 #endif
6160 _LT_EOF
6161 # Now try linking the two files.
6162 mv conftest.$ac_objext conftstm.$ac_objext
6163 lt_save_LIBS="$LIBS"
6164 lt_save_CFLAGS="$CFLAGS"
6165 LIBS="conftstm.$ac_objext"
6166 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6168 (eval $ac_link) 2>&5
6169 ac_status=$?
6170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6171 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6172 pipe_works=yes
6174 LIBS="$lt_save_LIBS"
6175 CFLAGS="$lt_save_CFLAGS"
6176 else
6177 echo "cannot find nm_test_func in $nlist" >&5
6179 else
6180 echo "cannot find nm_test_var in $nlist" >&5
6182 else
6183 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6185 else
6186 echo "$progname: failed program was:" >&5
6187 cat conftest.$ac_ext >&5
6189 rm -rf conftest* conftst*
6191 # Do not use the global_symbol_pipe unless it works.
6192 if test "$pipe_works" = yes; then
6193 break
6194 else
6195 lt_cv_sys_global_symbol_pipe=
6197 done
6201 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6202 lt_cv_sys_global_symbol_to_cdecl=
6204 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6206 $as_echo "failed" >&6; }
6207 else
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6209 $as_echo "ok" >&6; }
6233 # Check whether --enable-libtool-lock was given.
6234 if test "${enable_libtool_lock+set}" = set; then :
6235 enableval=$enable_libtool_lock;
6238 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6240 # Some flags need to be propagated to the compiler or linker for good
6241 # libtool support.
6242 case $host in
6243 ia64-*-hpux*)
6244 # Find out which ABI we are using.
6245 echo 'int i;' > conftest.$ac_ext
6246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6247 (eval $ac_compile) 2>&5
6248 ac_status=$?
6249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6250 test $ac_status = 0; }; then
6251 case `/usr/bin/file conftest.$ac_objext` in
6252 *ELF-32*)
6253 HPUX_IA64_MODE="32"
6255 *ELF-64*)
6256 HPUX_IA64_MODE="64"
6258 esac
6260 rm -rf conftest*
6262 *-*-irix6*)
6263 # Find out which ABI we are using.
6264 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6266 (eval $ac_compile) 2>&5
6267 ac_status=$?
6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269 test $ac_status = 0; }; then
6270 if test "$lt_cv_prog_gnu_ld" = yes; then
6271 case `/usr/bin/file conftest.$ac_objext` in
6272 *32-bit*)
6273 LD="${LD-ld} -melf32bsmip"
6275 *N32*)
6276 LD="${LD-ld} -melf32bmipn32"
6278 *64-bit*)
6279 LD="${LD-ld} -melf64bmip"
6281 esac
6282 else
6283 case `/usr/bin/file conftest.$ac_objext` in
6284 *32-bit*)
6285 LD="${LD-ld} -32"
6287 *N32*)
6288 LD="${LD-ld} -n32"
6290 *64-bit*)
6291 LD="${LD-ld} -64"
6293 esac
6296 rm -rf conftest*
6299 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6300 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6301 # Find out which ABI we are using.
6302 echo 'int i;' > conftest.$ac_ext
6303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6304 (eval $ac_compile) 2>&5
6305 ac_status=$?
6306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307 test $ac_status = 0; }; then
6308 case `/usr/bin/file conftest.o` in
6309 *32-bit*)
6310 case $host in
6311 x86_64-*kfreebsd*-gnu)
6312 LD="${LD-ld} -m elf_i386_fbsd"
6314 x86_64-*linux*)
6315 case `/usr/bin/file conftest.o` in
6316 *x86-64*)
6317 LD="${LD-ld} -m elf32_x86_64"
6320 LD="${LD-ld} -m elf_i386"
6322 esac
6324 powerpc64le-*linux*)
6325 LD="${LD-ld} -m elf32lppclinux"
6327 powerpc64-*linux*)
6328 LD="${LD-ld} -m elf32ppclinux"
6330 s390x-*linux*)
6331 LD="${LD-ld} -m elf_s390"
6333 sparc64-*linux*)
6334 LD="${LD-ld} -m elf32_sparc"
6336 esac
6338 *64-bit*)
6339 case $host in
6340 x86_64-*kfreebsd*-gnu)
6341 LD="${LD-ld} -m elf_x86_64_fbsd"
6343 x86_64-*linux*)
6344 LD="${LD-ld} -m elf_x86_64"
6346 powerpcle-*linux*)
6347 LD="${LD-ld} -m elf64lppc"
6349 powerpc-*linux*)
6350 LD="${LD-ld} -m elf64ppc"
6352 s390*-*linux*|s390*-*tpf*)
6353 LD="${LD-ld} -m elf64_s390"
6355 sparc*-*linux*)
6356 LD="${LD-ld} -m elf64_sparc"
6358 esac
6360 esac
6362 rm -rf conftest*
6365 *-*-sco3.2v5*)
6366 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6367 SAVE_CFLAGS="$CFLAGS"
6368 CFLAGS="$CFLAGS -belf"
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6370 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6371 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 ac_ext=c
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6380 if test x$gcc_no_link = xyes; then
6381 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6387 main ()
6391 return 0;
6393 _ACEOF
6394 if ac_fn_c_try_link "$LINENO"; then :
6395 lt_cv_cc_needs_belf=yes
6396 else
6397 lt_cv_cc_needs_belf=no
6399 rm -f core conftest.err conftest.$ac_objext \
6400 conftest$ac_exeext conftest.$ac_ext
6401 ac_ext=c
6402 ac_cpp='$CPP $CPPFLAGS'
6403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6409 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6410 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6411 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6412 CFLAGS="$SAVE_CFLAGS"
6415 sparc*-*solaris*)
6416 # Find out which ABI we are using.
6417 echo 'int i;' > conftest.$ac_ext
6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6419 (eval $ac_compile) 2>&5
6420 ac_status=$?
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }; then
6423 case `/usr/bin/file conftest.o` in
6424 *64-bit*)
6425 case $lt_cv_prog_gnu_ld in
6426 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6428 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6429 LD="${LD-ld} -64"
6432 esac
6434 esac
6436 rm -rf conftest*
6438 esac
6440 need_locks="$enable_libtool_lock"
6443 case $host_os in
6444 rhapsody* | darwin*)
6445 if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6447 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 if test -n "$DSYMUTIL"; then
6454 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6467 done
6468 done
6469 IFS=$as_save_IFS
6473 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6474 if test -n "$DSYMUTIL"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6476 $as_echo "$DSYMUTIL" >&6; }
6477 else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6484 if test -z "$ac_cv_prog_DSYMUTIL"; then
6485 ac_ct_DSYMUTIL=$DSYMUTIL
6486 # Extract the first word of "dsymutil", so it can be a program name with args.
6487 set dummy dsymutil; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 if test -n "$ac_ct_DSYMUTIL"; then
6494 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6507 done
6508 done
6509 IFS=$as_save_IFS
6513 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6514 if test -n "$ac_ct_DSYMUTIL"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6516 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6517 else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6522 if test "x$ac_ct_DSYMUTIL" = x; then
6523 DSYMUTIL=":"
6524 else
6525 case $cross_compiling:$ac_tool_warned in
6526 yes:)
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529 ac_tool_warned=yes ;;
6530 esac
6531 DSYMUTIL=$ac_ct_DSYMUTIL
6533 else
6534 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6537 if test -n "$ac_tool_prefix"; then
6538 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6539 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 if test -n "$NMEDIT"; then
6546 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6559 done
6560 done
6561 IFS=$as_save_IFS
6565 NMEDIT=$ac_cv_prog_NMEDIT
6566 if test -n "$NMEDIT"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6568 $as_echo "$NMEDIT" >&6; }
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6576 if test -z "$ac_cv_prog_NMEDIT"; then
6577 ac_ct_NMEDIT=$NMEDIT
6578 # Extract the first word of "nmedit", so it can be a program name with args.
6579 set dummy nmedit; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 if test -n "$ac_ct_NMEDIT"; then
6586 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6599 done
6600 done
6601 IFS=$as_save_IFS
6605 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6606 if test -n "$ac_ct_NMEDIT"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6608 $as_echo "$ac_ct_NMEDIT" >&6; }
6609 else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6614 if test "x$ac_ct_NMEDIT" = x; then
6615 NMEDIT=":"
6616 else
6617 case $cross_compiling:$ac_tool_warned in
6618 yes:)
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6621 ac_tool_warned=yes ;;
6622 esac
6623 NMEDIT=$ac_ct_NMEDIT
6625 else
6626 NMEDIT="$ac_cv_prog_NMEDIT"
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if test "${ac_cv_prog_LIPO+set}" = set; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 if test -n "$LIPO"; then
6638 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6651 done
6652 done
6653 IFS=$as_save_IFS
6657 LIPO=$ac_cv_prog_LIPO
6658 if test -n "$LIPO"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6660 $as_echo "$LIPO" >&6; }
6661 else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6668 if test -z "$ac_cv_prog_LIPO"; then
6669 ac_ct_LIPO=$LIPO
6670 # Extract the first word of "lipo", so it can be a program name with args.
6671 set dummy lipo; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 if test -n "$ac_ct_LIPO"; then
6678 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_ac_ct_LIPO="lipo"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6691 done
6692 done
6693 IFS=$as_save_IFS
6697 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6698 if test -n "$ac_ct_LIPO"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6700 $as_echo "$ac_ct_LIPO" >&6; }
6701 else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6706 if test "x$ac_ct_LIPO" = x; then
6707 LIPO=":"
6708 else
6709 case $cross_compiling:$ac_tool_warned in
6710 yes:)
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713 ac_tool_warned=yes ;;
6714 esac
6715 LIPO=$ac_ct_LIPO
6717 else
6718 LIPO="$ac_cv_prog_LIPO"
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}otool; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 if test -n "$OTOOL"; then
6730 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6743 done
6744 done
6745 IFS=$as_save_IFS
6749 OTOOL=$ac_cv_prog_OTOOL
6750 if test -n "$OTOOL"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6752 $as_echo "$OTOOL" >&6; }
6753 else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6760 if test -z "$ac_cv_prog_OTOOL"; then
6761 ac_ct_OTOOL=$OTOOL
6762 # Extract the first word of "otool", so it can be a program name with args.
6763 set dummy otool; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$ac_ct_OTOOL"; then
6770 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_ac_ct_OTOOL="otool"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6783 done
6784 done
6785 IFS=$as_save_IFS
6789 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6790 if test -n "$ac_ct_OTOOL"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6792 $as_echo "$ac_ct_OTOOL" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6798 if test "x$ac_ct_OTOOL" = x; then
6799 OTOOL=":"
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802 yes:)
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807 OTOOL=$ac_ct_OTOOL
6809 else
6810 OTOOL="$ac_cv_prog_OTOOL"
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 if test -n "$OTOOL64"; then
6822 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6835 done
6836 done
6837 IFS=$as_save_IFS
6841 OTOOL64=$ac_cv_prog_OTOOL64
6842 if test -n "$OTOOL64"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6844 $as_echo "$OTOOL64" >&6; }
6845 else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6852 if test -z "$ac_cv_prog_OTOOL64"; then
6853 ac_ct_OTOOL64=$OTOOL64
6854 # Extract the first word of "otool64", so it can be a program name with args.
6855 set dummy otool64; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 if test -n "$ac_ct_OTOOL64"; then
6862 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_ac_ct_OTOOL64="otool64"
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6875 done
6876 done
6877 IFS=$as_save_IFS
6881 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6882 if test -n "$ac_ct_OTOOL64"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6884 $as_echo "$ac_ct_OTOOL64" >&6; }
6885 else
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6890 if test "x$ac_ct_OTOOL64" = x; then
6891 OTOOL64=":"
6892 else
6893 case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6898 esac
6899 OTOOL64=$ac_ct_OTOOL64
6901 else
6902 OTOOL64="$ac_cv_prog_OTOOL64"
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6932 $as_echo_n "checking for -single_module linker flag... " >&6; }
6933 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 lt_cv_apple_cc_single_mod=no
6937 if test -z "${LT_MULTI_MODULE}"; then
6938 # By default we will add the -single_module flag. You can override
6939 # by either setting the environment variable LT_MULTI_MODULE
6940 # non-empty at configure time, or by adding -multi_module to the
6941 # link flags.
6942 rm -rf libconftest.dylib*
6943 echo "int foo(void){return 1;}" > conftest.c
6944 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6945 -dynamiclib -Wl,-single_module conftest.c" >&5
6946 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6947 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6948 _lt_result=$?
6949 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6950 lt_cv_apple_cc_single_mod=yes
6951 else
6952 cat conftest.err >&5
6954 rm -rf libconftest.dylib*
6955 rm -f conftest.*
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6959 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6961 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6962 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 lt_cv_ld_exported_symbols_list=no
6966 save_LDFLAGS=$LDFLAGS
6967 echo "_main" > conftest.sym
6968 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6969 if test x$gcc_no_link = xyes; then
6970 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6976 main ()
6980 return 0;
6982 _ACEOF
6983 if ac_fn_c_try_link "$LINENO"; then :
6984 lt_cv_ld_exported_symbols_list=yes
6985 else
6986 lt_cv_ld_exported_symbols_list=no
6988 rm -f core conftest.err conftest.$ac_objext \
6989 conftest$ac_exeext conftest.$ac_ext
6990 LDFLAGS="$save_LDFLAGS"
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6994 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6996 $as_echo_n "checking for -force_load linker flag... " >&6; }
6997 if test "${lt_cv_ld_force_load+set}" = set; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 lt_cv_ld_force_load=no
7001 cat > conftest.c << _LT_EOF
7002 int forced_loaded() { return 2;}
7003 _LT_EOF
7004 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7005 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7006 echo "$AR cru libconftest.a conftest.o" >&5
7007 $AR cru libconftest.a conftest.o 2>&5
7008 cat > conftest.c << _LT_EOF
7009 int main() { return 0;}
7010 _LT_EOF
7011 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7012 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7013 _lt_result=$?
7014 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7015 lt_cv_ld_force_load=yes
7016 else
7017 cat conftest.err >&5
7019 rm -f conftest.err libconftest.a conftest conftest.c
7020 rm -rf conftest.dSYM
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7024 $as_echo "$lt_cv_ld_force_load" >&6; }
7025 case $host_os in
7026 rhapsody* | darwin1.[012])
7027 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7028 darwin1.*)
7029 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7030 darwin*) # darwin 5.x on
7031 # if running on 10.5 or later, the deployment target defaults
7032 # to the OS version, if on x86, and 10.4, the deployment
7033 # target defaults to 10.4. Don't you love it?
7034 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7035 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7036 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7037 10.[012][,.]*)
7038 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7039 10.*)
7040 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7041 esac
7043 esac
7044 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7045 _lt_dar_single_mod='$single_module'
7047 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7048 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7049 else
7050 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7052 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7053 _lt_dsymutil='~$DSYMUTIL $lib || :'
7054 else
7055 _lt_dsymutil=
7058 esac
7060 for ac_header in dlfcn.h
7061 do :
7062 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7064 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7065 cat >>confdefs.h <<_ACEOF
7066 #define HAVE_DLFCN_H 1
7067 _ACEOF
7071 done
7077 # Set options
7081 enable_dlopen=no
7084 enable_win32_dll=no
7087 # Check whether --enable-shared was given.
7088 if test "${enable_shared+set}" = set; then :
7089 enableval=$enable_shared; p=${PACKAGE-default}
7090 case $enableval in
7091 yes) enable_shared=yes ;;
7092 no) enable_shared=no ;;
7094 enable_shared=no
7095 # Look at the argument we got. We use all the common list separators.
7096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7097 for pkg in $enableval; do
7098 IFS="$lt_save_ifs"
7099 if test "X$pkg" = "X$p"; then
7100 enable_shared=yes
7102 done
7103 IFS="$lt_save_ifs"
7105 esac
7106 else
7107 enable_shared=yes
7118 # Check whether --enable-static was given.
7119 if test "${enable_static+set}" = set; then :
7120 enableval=$enable_static; p=${PACKAGE-default}
7121 case $enableval in
7122 yes) enable_static=yes ;;
7123 no) enable_static=no ;;
7125 enable_static=no
7126 # Look at the argument we got. We use all the common list separators.
7127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7128 for pkg in $enableval; do
7129 IFS="$lt_save_ifs"
7130 if test "X$pkg" = "X$p"; then
7131 enable_static=yes
7133 done
7134 IFS="$lt_save_ifs"
7136 esac
7137 else
7138 enable_static=yes
7150 # Check whether --with-pic was given.
7151 if test "${with_pic+set}" = set; then :
7152 withval=$with_pic; pic_mode="$withval"
7153 else
7154 pic_mode=default
7158 test -z "$pic_mode" && pic_mode=default
7166 # Check whether --enable-fast-install was given.
7167 if test "${enable_fast_install+set}" = set; then :
7168 enableval=$enable_fast_install; p=${PACKAGE-default}
7169 case $enableval in
7170 yes) enable_fast_install=yes ;;
7171 no) enable_fast_install=no ;;
7173 enable_fast_install=no
7174 # Look at the argument we got. We use all the common list separators.
7175 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7176 for pkg in $enableval; do
7177 IFS="$lt_save_ifs"
7178 if test "X$pkg" = "X$p"; then
7179 enable_fast_install=yes
7181 done
7182 IFS="$lt_save_ifs"
7184 esac
7185 else
7186 enable_fast_install=yes
7199 # This can be used to rebuild libtool when needed
7200 LIBTOOL_DEPS="$ltmain"
7202 # Always use our own libtool.
7203 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7230 test -z "$LN_S" && LN_S="ln -s"
7245 if test -n "${ZSH_VERSION+set}" ; then
7246 setopt NO_GLOB_SUBST
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7250 $as_echo_n "checking for objdir... " >&6; }
7251 if test "${lt_cv_objdir+set}" = set; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 rm -f .libs 2>/dev/null
7255 mkdir .libs 2>/dev/null
7256 if test -d .libs; then
7257 lt_cv_objdir=.libs
7258 else
7259 # MS-DOS does not allow filenames that begin with a dot.
7260 lt_cv_objdir=_libs
7262 rmdir .libs 2>/dev/null
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7265 $as_echo "$lt_cv_objdir" >&6; }
7266 objdir=$lt_cv_objdir
7272 cat >>confdefs.h <<_ACEOF
7273 #define LT_OBJDIR "$lt_cv_objdir/"
7274 _ACEOF
7279 case $host_os in
7280 aix3*)
7281 # AIX sometimes has problems with the GCC collect2 program. For some
7282 # reason, if we set the COLLECT_NAMES environment variable, the problems
7283 # vanish in a puff of smoke.
7284 if test "X${COLLECT_NAMES+set}" != Xset; then
7285 COLLECT_NAMES=
7286 export COLLECT_NAMES
7289 esac
7291 # Global variables:
7292 ofile=libtool
7293 can_build_shared=yes
7295 # All known linkers require a `.a' archive for static linking (except MSVC,
7296 # which needs '.lib').
7297 libext=a
7299 with_gnu_ld="$lt_cv_prog_gnu_ld"
7301 old_CC="$CC"
7302 old_CFLAGS="$CFLAGS"
7304 # Set sane defaults for various variables
7305 test -z "$CC" && CC=cc
7306 test -z "$LTCC" && LTCC=$CC
7307 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7308 test -z "$LD" && LD=ld
7309 test -z "$ac_objext" && ac_objext=o
7311 for cc_temp in $compiler""; do
7312 case $cc_temp in
7313 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7314 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7315 \-*) ;;
7316 *) break;;
7317 esac
7318 done
7319 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7322 # Only perform the check for file, if the check method requires it
7323 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7324 case $deplibs_check_method in
7325 file_magic*)
7326 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7328 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7329 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 case $MAGIC_CMD in
7333 [\\/*] | ?:[\\/]*)
7334 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7337 lt_save_MAGIC_CMD="$MAGIC_CMD"
7338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7339 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7340 for ac_dir in $ac_dummy; do
7341 IFS="$lt_save_ifs"
7342 test -z "$ac_dir" && ac_dir=.
7343 if test -f $ac_dir/${ac_tool_prefix}file; then
7344 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7345 if test -n "$file_magic_test_file"; then
7346 case $deplibs_check_method in
7347 "file_magic "*)
7348 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7350 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7351 $EGREP "$file_magic_regex" > /dev/null; then
7353 else
7354 cat <<_LT_EOF 1>&2
7356 *** Warning: the command libtool uses to detect shared libraries,
7357 *** $file_magic_cmd, produces output that libtool cannot recognize.
7358 *** The result is that libtool may fail to recognize shared libraries
7359 *** as such. This will affect the creation of libtool libraries that
7360 *** depend on shared libraries, but programs linked with such libtool
7361 *** libraries will work regardless of this problem. Nevertheless, you
7362 *** may want to report the problem to your system manager and/or to
7363 *** bug-libtool@gnu.org
7365 _LT_EOF
7366 fi ;;
7367 esac
7369 break
7371 done
7372 IFS="$lt_save_ifs"
7373 MAGIC_CMD="$lt_save_MAGIC_CMD"
7375 esac
7378 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7379 if test -n "$MAGIC_CMD"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7381 $as_echo "$MAGIC_CMD" >&6; }
7382 else
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7391 if test -z "$lt_cv_path_MAGIC_CMD"; then
7392 if test -n "$ac_tool_prefix"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7394 $as_echo_n "checking for file... " >&6; }
7395 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 case $MAGIC_CMD in
7399 [\\/*] | ?:[\\/]*)
7400 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7403 lt_save_MAGIC_CMD="$MAGIC_CMD"
7404 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7405 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7406 for ac_dir in $ac_dummy; do
7407 IFS="$lt_save_ifs"
7408 test -z "$ac_dir" && ac_dir=.
7409 if test -f $ac_dir/file; then
7410 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7411 if test -n "$file_magic_test_file"; then
7412 case $deplibs_check_method in
7413 "file_magic "*)
7414 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7416 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7417 $EGREP "$file_magic_regex" > /dev/null; then
7419 else
7420 cat <<_LT_EOF 1>&2
7422 *** Warning: the command libtool uses to detect shared libraries,
7423 *** $file_magic_cmd, produces output that libtool cannot recognize.
7424 *** The result is that libtool may fail to recognize shared libraries
7425 *** as such. This will affect the creation of libtool libraries that
7426 *** depend on shared libraries, but programs linked with such libtool
7427 *** libraries will work regardless of this problem. Nevertheless, you
7428 *** may want to report the problem to your system manager and/or to
7429 *** bug-libtool@gnu.org
7431 _LT_EOF
7432 fi ;;
7433 esac
7435 break
7437 done
7438 IFS="$lt_save_ifs"
7439 MAGIC_CMD="$lt_save_MAGIC_CMD"
7441 esac
7444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7445 if test -n "$MAGIC_CMD"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7447 $as_echo "$MAGIC_CMD" >&6; }
7448 else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7454 else
7455 MAGIC_CMD=:
7461 esac
7463 # Use C for the default configuration in the libtool script
7465 lt_save_CC="$CC"
7466 ac_ext=c
7467 ac_cpp='$CPP $CPPFLAGS'
7468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7473 # Source file extension for C test sources.
7474 ac_ext=c
7476 # Object file extension for compiled C test sources.
7477 objext=o
7478 objext=$objext
7480 # Code to be used in simple compile tests
7481 lt_simple_compile_test_code="int some_variable = 0;"
7483 # Code to be used in simple link tests
7484 lt_simple_link_test_code='int main(){return(0);}'
7492 # If no C compiler was specified, use CC.
7493 LTCC=${LTCC-"$CC"}
7495 # If no C compiler flags were specified, use CFLAGS.
7496 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7498 # Allow CC to be a program name with arguments.
7499 compiler=$CC
7501 # Save the default compiler, since it gets overwritten when the other
7502 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7503 compiler_DEFAULT=$CC
7505 # save warnings/boilerplate of simple test code
7506 ac_outfile=conftest.$ac_objext
7507 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7508 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7509 _lt_compiler_boilerplate=`cat conftest.err`
7510 $RM conftest*
7512 ac_outfile=conftest.$ac_objext
7513 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7514 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7515 _lt_linker_boilerplate=`cat conftest.err`
7516 $RM -r conftest*
7519 ## CAVEAT EMPTOR:
7520 ## There is no encapsulation within the following macros, do not change
7521 ## the running order or otherwise move them around unless you know exactly
7522 ## what you are doing...
7523 if test -n "$compiler"; then
7525 lt_prog_compiler_no_builtin_flag=
7527 if test "$GCC" = yes; then
7528 case $cc_basename in
7529 nvcc*)
7530 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7532 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7533 esac
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7536 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7537 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 lt_cv_prog_compiler_rtti_exceptions=no
7541 ac_outfile=conftest.$ac_objext
7542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7543 lt_compiler_flag="-fno-rtti -fno-exceptions"
7544 # Insert the option either (1) after the last *FLAGS variable, or
7545 # (2) before a word containing "conftest.", or (3) at the end.
7546 # Note that $ac_compile itself does not contain backslashes and begins
7547 # with a dollar sign (not a hyphen), so the echo should work correctly.
7548 # The option is referenced via a variable to avoid confusing sed.
7549 lt_compile=`echo "$ac_compile" | $SED \
7550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7552 -e 's:$: $lt_compiler_flag:'`
7553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7554 (eval "$lt_compile" 2>conftest.err)
7555 ac_status=$?
7556 cat conftest.err >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 if (exit $ac_status) && test -s "$ac_outfile"; then
7559 # The compiler can only warn and ignore the option if not recognized
7560 # So say no if there are warnings other than the usual output.
7561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7564 lt_cv_prog_compiler_rtti_exceptions=yes
7567 $RM conftest*
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7571 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7573 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7574 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7575 else
7586 lt_prog_compiler_wl=
7587 lt_prog_compiler_pic=
7588 lt_prog_compiler_static=
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7591 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7593 if test "$GCC" = yes; then
7594 lt_prog_compiler_wl='-Wl,'
7595 lt_prog_compiler_static='-static'
7597 case $host_os in
7598 aix*)
7599 # All AIX code is PIC.
7600 if test "$host_cpu" = ia64; then
7601 # AIX 5 now supports IA64 processor
7602 lt_prog_compiler_static='-Bstatic'
7604 lt_prog_compiler_pic='-fPIC'
7607 amigaos*)
7608 case $host_cpu in
7609 powerpc)
7610 # see comment about AmigaOS4 .so support
7611 lt_prog_compiler_pic='-fPIC'
7613 m68k)
7614 # FIXME: we need at least 68020 code to build shared libraries, but
7615 # adding the `-m68020' flag to GCC prevents building anything better,
7616 # like `-m68040'.
7617 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7619 esac
7622 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7623 # PIC is the default for these OSes.
7626 mingw* | cygwin* | pw32* | os2* | cegcc*)
7627 # This hack is so that the source file can tell whether it is being
7628 # built for inclusion in a dll (and should export symbols for example).
7629 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7630 # (--disable-auto-import) libraries
7631 lt_prog_compiler_pic='-DDLL_EXPORT'
7634 darwin* | rhapsody*)
7635 # PIC is the default on this platform
7636 # Common symbols not allowed in MH_DYLIB files
7637 lt_prog_compiler_pic='-fno-common'
7640 haiku*)
7641 # PIC is the default for Haiku.
7642 # The "-static" flag exists, but is broken.
7643 lt_prog_compiler_static=
7646 hpux*)
7647 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7648 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7649 # sets the default TLS model and affects inlining.
7650 case $host_cpu in
7651 hppa*64*)
7652 # +Z the default
7655 lt_prog_compiler_pic='-fPIC'
7657 esac
7660 interix[3-9]*)
7661 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7662 # Instead, we relocate shared libraries at runtime.
7665 msdosdjgpp*)
7666 # Just because we use GCC doesn't mean we suddenly get shared libraries
7667 # on systems that don't support them.
7668 lt_prog_compiler_can_build_shared=no
7669 enable_shared=no
7672 *nto* | *qnx*)
7673 # QNX uses GNU C++, but need to define -shared option too, otherwise
7674 # it will coredump.
7675 lt_prog_compiler_pic='-fPIC -shared'
7678 sysv4*MP*)
7679 if test -d /usr/nec; then
7680 lt_prog_compiler_pic=-Kconform_pic
7685 lt_prog_compiler_pic='-fPIC'
7687 esac
7689 case $cc_basename in
7690 nvcc*) # Cuda Compiler Driver 2.2
7691 lt_prog_compiler_wl='-Xlinker '
7692 lt_prog_compiler_pic='-Xcompiler -fPIC'
7694 esac
7695 else
7696 # PORTME Check for flag to pass linker flags through the system compiler.
7697 case $host_os in
7698 aix*)
7699 lt_prog_compiler_wl='-Wl,'
7700 if test "$host_cpu" = ia64; then
7701 # AIX 5 now supports IA64 processor
7702 lt_prog_compiler_static='-Bstatic'
7703 else
7704 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7708 mingw* | cygwin* | pw32* | os2* | cegcc*)
7709 # This hack is so that the source file can tell whether it is being
7710 # built for inclusion in a dll (and should export symbols for example).
7711 lt_prog_compiler_pic='-DDLL_EXPORT'
7714 hpux9* | hpux10* | hpux11*)
7715 lt_prog_compiler_wl='-Wl,'
7716 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7717 # not for PA HP-UX.
7718 case $host_cpu in
7719 hppa*64*|ia64*)
7720 # +Z the default
7723 lt_prog_compiler_pic='+Z'
7725 esac
7726 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7727 lt_prog_compiler_static='${wl}-a ${wl}archive'
7730 irix5* | irix6* | nonstopux*)
7731 lt_prog_compiler_wl='-Wl,'
7732 # PIC (with -KPIC) is the default.
7733 lt_prog_compiler_static='-non_shared'
7736 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7737 case $cc_basename in
7738 # old Intel for x86_64 which still supported -KPIC.
7739 ecc*)
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-static'
7744 # icc used to be incompatible with GCC.
7745 # ICC 10 doesn't accept -KPIC any more.
7746 icc* | ifort*)
7747 lt_prog_compiler_wl='-Wl,'
7748 lt_prog_compiler_pic='-fPIC'
7749 lt_prog_compiler_static='-static'
7751 # Lahey Fortran 8.1.
7752 lf95*)
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_pic='--shared'
7755 lt_prog_compiler_static='--static'
7757 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7758 # Portland Group compilers (*not* the Pentium gcc compiler,
7759 # which looks to be a dead project)
7760 lt_prog_compiler_wl='-Wl,'
7761 lt_prog_compiler_pic='-fpic'
7762 lt_prog_compiler_static='-Bstatic'
7764 ccc*)
7765 lt_prog_compiler_wl='-Wl,'
7766 # All Alpha code is PIC.
7767 lt_prog_compiler_static='-non_shared'
7769 xl* | bgxl* | bgf* | mpixl*)
7770 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7771 lt_prog_compiler_wl='-Wl,'
7772 lt_prog_compiler_pic='-qpic'
7773 lt_prog_compiler_static='-qstaticlink'
7776 case `$CC -V 2>&1 | sed 5q` in
7777 *Sun\ F* | *Sun*Fortran*)
7778 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7779 lt_prog_compiler_pic='-KPIC'
7780 lt_prog_compiler_static='-Bstatic'
7781 lt_prog_compiler_wl=''
7783 *Sun\ C*)
7784 # Sun C 5.9
7785 lt_prog_compiler_pic='-KPIC'
7786 lt_prog_compiler_static='-Bstatic'
7787 lt_prog_compiler_wl='-Wl,'
7789 esac
7791 esac
7794 newsos6)
7795 lt_prog_compiler_pic='-KPIC'
7796 lt_prog_compiler_static='-Bstatic'
7799 *nto* | *qnx*)
7800 # QNX uses GNU C++, but need to define -shared option too, otherwise
7801 # it will coredump.
7802 lt_prog_compiler_pic='-fPIC -shared'
7805 osf3* | osf4* | osf5*)
7806 lt_prog_compiler_wl='-Wl,'
7807 # All OSF/1 code is PIC.
7808 lt_prog_compiler_static='-non_shared'
7811 rdos*)
7812 lt_prog_compiler_static='-non_shared'
7815 solaris*)
7816 lt_prog_compiler_pic='-KPIC'
7817 lt_prog_compiler_static='-Bstatic'
7818 case $cc_basename in
7819 f77* | f90* | f95*)
7820 lt_prog_compiler_wl='-Qoption ld ';;
7822 lt_prog_compiler_wl='-Wl,';;
7823 esac
7826 sunos4*)
7827 lt_prog_compiler_wl='-Qoption ld '
7828 lt_prog_compiler_pic='-PIC'
7829 lt_prog_compiler_static='-Bstatic'
7832 sysv4 | sysv4.2uw2* | sysv4.3*)
7833 lt_prog_compiler_wl='-Wl,'
7834 lt_prog_compiler_pic='-KPIC'
7835 lt_prog_compiler_static='-Bstatic'
7838 sysv4*MP*)
7839 if test -d /usr/nec ;then
7840 lt_prog_compiler_pic='-Kconform_pic'
7841 lt_prog_compiler_static='-Bstatic'
7845 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7846 lt_prog_compiler_wl='-Wl,'
7847 lt_prog_compiler_pic='-KPIC'
7848 lt_prog_compiler_static='-Bstatic'
7851 unicos*)
7852 lt_prog_compiler_wl='-Wl,'
7853 lt_prog_compiler_can_build_shared=no
7856 uts4*)
7857 lt_prog_compiler_pic='-pic'
7858 lt_prog_compiler_static='-Bstatic'
7862 lt_prog_compiler_can_build_shared=no
7864 esac
7867 case $host_os in
7868 # For platforms which do not support PIC, -DPIC is meaningless:
7869 *djgpp*)
7870 lt_prog_compiler_pic=
7873 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7875 esac
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7877 $as_echo "$lt_prog_compiler_pic" >&6; }
7885 # Check to make sure the PIC flag actually works.
7887 if test -n "$lt_prog_compiler_pic"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7889 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7890 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 lt_cv_prog_compiler_pic_works=no
7894 ac_outfile=conftest.$ac_objext
7895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7896 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7897 # Insert the option either (1) after the last *FLAGS variable, or
7898 # (2) before a word containing "conftest.", or (3) at the end.
7899 # Note that $ac_compile itself does not contain backslashes and begins
7900 # with a dollar sign (not a hyphen), so the echo should work correctly.
7901 # The option is referenced via a variable to avoid confusing sed.
7902 lt_compile=`echo "$ac_compile" | $SED \
7903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7905 -e 's:$: $lt_compiler_flag:'`
7906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7907 (eval "$lt_compile" 2>conftest.err)
7908 ac_status=$?
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 if (exit $ac_status) && test -s "$ac_outfile"; then
7912 # The compiler can only warn and ignore the option if not recognized
7913 # So say no if there are warnings other than the usual output.
7914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7916 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7917 lt_cv_prog_compiler_pic_works=yes
7920 $RM conftest*
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7924 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7926 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7927 case $lt_prog_compiler_pic in
7928 "" | " "*) ;;
7929 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7930 esac
7931 else
7932 lt_prog_compiler_pic=
7933 lt_prog_compiler_can_build_shared=no
7944 # Check to make sure the static flag actually works.
7946 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7948 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7949 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 lt_cv_prog_compiler_static_works=no
7953 save_LDFLAGS="$LDFLAGS"
7954 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7955 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7956 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7957 # The linker can only warn and ignore the option if not recognized
7958 # So say no if there are warnings
7959 if test -s conftest.err; then
7960 # Append any errors to the config.log.
7961 cat conftest.err 1>&5
7962 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7964 if diff conftest.exp conftest.er2 >/dev/null; then
7965 lt_cv_prog_compiler_static_works=yes
7967 else
7968 lt_cv_prog_compiler_static_works=yes
7971 $RM -r conftest*
7972 LDFLAGS="$save_LDFLAGS"
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7976 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7978 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7980 else
7981 lt_prog_compiler_static=
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7991 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7992 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 lt_cv_prog_compiler_c_o=no
7996 $RM -r conftest 2>/dev/null
7997 mkdir conftest
7998 cd conftest
7999 mkdir out
8000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8002 lt_compiler_flag="-o out/conftest2.$ac_objext"
8003 # Insert the option either (1) after the last *FLAGS variable, or
8004 # (2) before a word containing "conftest.", or (3) at the end.
8005 # Note that $ac_compile itself does not contain backslashes and begins
8006 # with a dollar sign (not a hyphen), so the echo should work correctly.
8007 lt_compile=`echo "$ac_compile" | $SED \
8008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8010 -e 's:$: $lt_compiler_flag:'`
8011 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8012 (eval "$lt_compile" 2>out/conftest.err)
8013 ac_status=$?
8014 cat out/conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8017 then
8018 # The compiler can only warn and ignore the option if not recognized
8019 # So say no if there are warnings
8020 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8021 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8022 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8023 lt_cv_prog_compiler_c_o=yes
8026 chmod u+w . 2>&5
8027 $RM conftest*
8028 # SGI C++ compiler will create directory out/ii_files/ for
8029 # template instantiation
8030 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8031 $RM out/* && rmdir out
8032 cd ..
8033 $RM -r conftest
8034 $RM conftest*
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8038 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8046 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8047 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 lt_cv_prog_compiler_c_o=no
8051 $RM -r conftest 2>/dev/null
8052 mkdir conftest
8053 cd conftest
8054 mkdir out
8055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8057 lt_compiler_flag="-o out/conftest2.$ac_objext"
8058 # Insert the option either (1) after the last *FLAGS variable, or
8059 # (2) before a word containing "conftest.", or (3) at the end.
8060 # Note that $ac_compile itself does not contain backslashes and begins
8061 # with a dollar sign (not a hyphen), so the echo should work correctly.
8062 lt_compile=`echo "$ac_compile" | $SED \
8063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8065 -e 's:$: $lt_compiler_flag:'`
8066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8067 (eval "$lt_compile" 2>out/conftest.err)
8068 ac_status=$?
8069 cat out/conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8072 then
8073 # The compiler can only warn and ignore the option if not recognized
8074 # So say no if there are warnings
8075 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8076 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8077 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8078 lt_cv_prog_compiler_c_o=yes
8081 chmod u+w . 2>&5
8082 $RM conftest*
8083 # SGI C++ compiler will create directory out/ii_files/ for
8084 # template instantiation
8085 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8086 $RM out/* && rmdir out
8087 cd ..
8088 $RM -r conftest
8089 $RM conftest*
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8093 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8098 hard_links="nottested"
8099 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8100 # do not overwrite the value of need_locks provided by the user
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8102 $as_echo_n "checking if we can lock with hard links... " >&6; }
8103 hard_links=yes
8104 $RM conftest*
8105 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8106 touch conftest.a
8107 ln conftest.a conftest.b 2>&5 || hard_links=no
8108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8110 $as_echo "$hard_links" >&6; }
8111 if test "$hard_links" = no; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8113 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8114 need_locks=warn
8116 else
8117 need_locks=no
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8126 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8128 runpath_var=
8129 allow_undefined_flag=
8130 always_export_symbols=no
8131 archive_cmds=
8132 archive_expsym_cmds=
8133 compiler_needs_object=no
8134 enable_shared_with_static_runtimes=no
8135 export_dynamic_flag_spec=
8136 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8137 hardcode_automatic=no
8138 hardcode_direct=no
8139 hardcode_direct_absolute=no
8140 hardcode_libdir_flag_spec=
8141 hardcode_libdir_flag_spec_ld=
8142 hardcode_libdir_separator=
8143 hardcode_minus_L=no
8144 hardcode_shlibpath_var=unsupported
8145 inherit_rpath=no
8146 link_all_deplibs=unknown
8147 module_cmds=
8148 module_expsym_cmds=
8149 old_archive_from_new_cmds=
8150 old_archive_from_expsyms_cmds=
8151 thread_safe_flag_spec=
8152 whole_archive_flag_spec=
8153 # include_expsyms should be a list of space-separated symbols to be *always*
8154 # included in the symbol list
8155 include_expsyms=
8156 # exclude_expsyms can be an extended regexp of symbols to exclude
8157 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8158 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8159 # as well as any symbol that contains `d'.
8160 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8161 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8162 # platforms (ab)use it in PIC code, but their linkers get confused if
8163 # the symbol is explicitly referenced. Since portable code cannot
8164 # rely on this symbol name, it's probably fine to never include it in
8165 # preloaded symbol tables.
8166 # Exclude shared library initialization/finalization symbols.
8167 extract_expsyms_cmds=
8169 case $host_os in
8170 cygwin* | mingw* | pw32* | cegcc*)
8171 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8172 # When not using gcc, we currently assume that we are using
8173 # Microsoft Visual C++.
8174 if test "$GCC" != yes; then
8175 with_gnu_ld=no
8178 interix*)
8179 # we just hope/assume this is gcc and not c89 (= MSVC++)
8180 with_gnu_ld=yes
8182 openbsd*)
8183 with_gnu_ld=no
8185 esac
8187 ld_shlibs=yes
8189 # On some targets, GNU ld is compatible enough with the native linker
8190 # that we're better off using the native interface for both.
8191 lt_use_gnu_ld_interface=no
8192 if test "$with_gnu_ld" = yes; then
8193 case $host_os in
8194 aix*)
8195 # The AIX port of GNU ld has always aspired to compatibility
8196 # with the native linker. However, as the warning in the GNU ld
8197 # block says, versions before 2.19.5* couldn't really create working
8198 # shared libraries, regardless of the interface used.
8199 case `$LD -v 2>&1` in
8200 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8201 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8202 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8204 lt_use_gnu_ld_interface=yes
8206 esac
8209 lt_use_gnu_ld_interface=yes
8211 esac
8214 if test "$lt_use_gnu_ld_interface" = yes; then
8215 # If archive_cmds runs LD, not CC, wlarc should be empty
8216 wlarc='${wl}'
8218 # Set some defaults for GNU ld with shared library support. These
8219 # are reset later if shared libraries are not supported. Putting them
8220 # here allows them to be overridden if necessary.
8221 runpath_var=LD_RUN_PATH
8222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8223 export_dynamic_flag_spec='${wl}--export-dynamic'
8224 # ancient GNU ld didn't support --whole-archive et. al.
8225 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8226 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8227 else
8228 whole_archive_flag_spec=
8230 supports_anon_versioning=no
8231 case `$LD -v 2>&1` in
8232 *GNU\ gold*) supports_anon_versioning=yes ;;
8233 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8234 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8235 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8236 *\ 2.11.*) ;; # other 2.11 versions
8237 *) supports_anon_versioning=yes ;;
8238 esac
8240 # See if GNU ld supports shared libraries.
8241 case $host_os in
8242 aix[3-9]*)
8243 # On AIX/PPC, the GNU linker is very broken
8244 if test "$host_cpu" != ia64; then
8245 ld_shlibs=no
8246 cat <<_LT_EOF 1>&2
8248 *** Warning: the GNU linker, at least up to release 2.19, is reported
8249 *** to be unable to reliably create shared libraries on AIX.
8250 *** Therefore, libtool is disabling shared libraries support. If you
8251 *** really care for shared libraries, you may want to install binutils
8252 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8253 *** You will then need to restart the configuration process.
8255 _LT_EOF
8259 amigaos*)
8260 case $host_cpu in
8261 powerpc)
8262 # see comment about AmigaOS4 .so support
8263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264 archive_expsym_cmds=''
8266 m68k)
8267 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)'
8268 hardcode_libdir_flag_spec='-L$libdir'
8269 hardcode_minus_L=yes
8271 esac
8274 beos*)
8275 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8276 allow_undefined_flag=unsupported
8277 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8278 # support --undefined. This deserves some investigation. FIXME
8279 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280 else
8281 ld_shlibs=no
8285 cygwin* | mingw* | pw32* | cegcc*)
8286 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8287 # as there is no search path for DLLs.
8288 hardcode_libdir_flag_spec='-L$libdir'
8289 export_dynamic_flag_spec='${wl}--export-all-symbols'
8290 allow_undefined_flag=unsupported
8291 always_export_symbols=no
8292 enable_shared_with_static_runtimes=yes
8293 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8295 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8297 # If the export-symbols file already is a .def file (1st line
8298 # is EXPORTS), use it as is; otherwise, prepend...
8299 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8300 cp $export_symbols $output_objdir/$soname.def;
8301 else
8302 echo EXPORTS > $output_objdir/$soname.def;
8303 cat $export_symbols >> $output_objdir/$soname.def;
8305 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8306 else
8307 ld_shlibs=no
8311 haiku*)
8312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8313 link_all_deplibs=yes
8316 interix[3-9]*)
8317 hardcode_direct=no
8318 hardcode_shlibpath_var=no
8319 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8320 export_dynamic_flag_spec='${wl}-E'
8321 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8322 # Instead, shared libraries are loaded at an image base (0x10000000 by
8323 # default) and relocated if they conflict, which is a slow very memory
8324 # consuming and fragmenting process. To avoid this, we pick a random,
8325 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8326 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8327 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8328 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'
8331 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8332 tmp_diet=no
8333 if test "$host_os" = linux-dietlibc; then
8334 case $cc_basename in
8335 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8336 esac
8338 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8339 && test "$tmp_diet" = no
8340 then
8341 tmp_addflag=' $pic_flag'
8342 tmp_sharedflag='-shared'
8343 case $cc_basename,$host_cpu in
8344 pgcc*) # Portland Group C compiler
8345 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'
8346 tmp_addflag=' $pic_flag'
8348 pgf77* | pgf90* | pgf95* | pgfortran*)
8349 # Portland Group f77 and f90 compilers
8350 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'
8351 tmp_addflag=' $pic_flag -Mnomain' ;;
8352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8353 tmp_addflag=' -i_dynamic' ;;
8354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8355 tmp_addflag=' -i_dynamic -nofor_main' ;;
8356 ifc* | ifort*) # Intel Fortran compiler
8357 tmp_addflag=' -nofor_main' ;;
8358 lf95*) # Lahey Fortran 8.1
8359 whole_archive_flag_spec=
8360 tmp_sharedflag='--shared' ;;
8361 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8362 tmp_sharedflag='-qmkshrobj'
8363 tmp_addflag= ;;
8364 nvcc*) # Cuda Compiler Driver 2.2
8365 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'
8366 compiler_needs_object=yes
8368 esac
8369 case `$CC -V 2>&1 | sed 5q` in
8370 *Sun\ C*) # Sun C 5.9
8371 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'
8372 compiler_needs_object=yes
8373 tmp_sharedflag='-G' ;;
8374 *Sun\ F*) # Sun Fortran 8.3
8375 tmp_sharedflag='-G' ;;
8376 esac
8377 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8379 if test "x$supports_anon_versioning" = xyes; then
8380 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8382 echo "local: *; };" >> $output_objdir/$libname.ver~
8383 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8386 case $cc_basename in
8387 xlf* | bgf* | bgxlf* | mpixlf*)
8388 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8389 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8390 hardcode_libdir_flag_spec=
8391 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8392 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8393 if test "x$supports_anon_versioning" = xyes; then
8394 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8395 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8396 echo "local: *; };" >> $output_objdir/$libname.ver~
8397 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8400 esac
8401 else
8402 ld_shlibs=no
8406 netbsd*)
8407 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8408 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8409 wlarc=
8410 else
8411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8412 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8416 solaris*)
8417 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8418 ld_shlibs=no
8419 cat <<_LT_EOF 1>&2
8421 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8422 *** create shared libraries on Solaris systems. Therefore, libtool
8423 *** is disabling shared libraries support. We urge you to upgrade GNU
8424 *** binutils to release 2.9.1 or newer. Another option is to modify
8425 *** your PATH or compiler configuration so that the native linker is
8426 *** used, and then restart.
8428 _LT_EOF
8429 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8432 else
8433 ld_shlibs=no
8437 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8438 case `$LD -v 2>&1` in
8439 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8440 ld_shlibs=no
8441 cat <<_LT_EOF 1>&2
8443 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8444 *** reliably create shared libraries on SCO systems. Therefore, libtool
8445 *** is disabling shared libraries support. We urge you to upgrade GNU
8446 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8447 *** your PATH or compiler configuration so that the native linker is
8448 *** used, and then restart.
8450 _LT_EOF
8453 # For security reasons, it is highly recommended that you always
8454 # use absolute paths for naming shared libraries, and exclude the
8455 # DT_RUNPATH tag from executables and libraries. But doing so
8456 # requires that you compile everything twice, which is a pain.
8457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8460 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8461 else
8462 ld_shlibs=no
8465 esac
8468 sunos4*)
8469 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8470 wlarc=
8471 hardcode_direct=yes
8472 hardcode_shlibpath_var=no
8476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8479 else
8480 ld_shlibs=no
8483 esac
8485 if test "$ld_shlibs" = no; then
8486 runpath_var=
8487 hardcode_libdir_flag_spec=
8488 export_dynamic_flag_spec=
8489 whole_archive_flag_spec=
8491 else
8492 # PORTME fill in a description of your system's linker (not GNU ld)
8493 case $host_os in
8494 aix3*)
8495 allow_undefined_flag=unsupported
8496 always_export_symbols=yes
8497 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'
8498 # Note: this linker hardcodes the directories in LIBPATH if there
8499 # are no directories specified by -L.
8500 hardcode_minus_L=yes
8501 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8502 # Neither direct hardcoding nor static linking is supported with a
8503 # broken collect2.
8504 hardcode_direct=unsupported
8508 aix[4-9]*)
8509 if test "$host_cpu" = ia64; then
8510 # On IA64, the linker does run time linking by default, so we don't
8511 # have to do anything special.
8512 aix_use_runtimelinking=no
8513 exp_sym_flag='-Bexport'
8514 no_entry_flag=""
8515 else
8516 # If we're using GNU nm, then we don't want the "-C" option.
8517 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8518 # Also, AIX nm treats weak defined symbols like other global
8519 # defined symbols, whereas GNU nm marks them as "W".
8520 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8521 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'
8522 else
8523 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'
8525 aix_use_runtimelinking=no
8527 # Test if we are trying to use run time linking or normal
8528 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8529 # need to do runtime linking.
8530 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8531 for ld_flag in $LDFLAGS; do
8532 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8533 aix_use_runtimelinking=yes
8534 break
8536 done
8538 esac
8540 exp_sym_flag='-bexport'
8541 no_entry_flag='-bnoentry'
8544 # When large executables or shared objects are built, AIX ld can
8545 # have problems creating the table of contents. If linking a library
8546 # or program results in "error TOC overflow" add -mminimal-toc to
8547 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8548 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8550 archive_cmds=''
8551 hardcode_direct=yes
8552 hardcode_direct_absolute=yes
8553 hardcode_libdir_separator=':'
8554 link_all_deplibs=yes
8555 file_list_spec='${wl}-f,'
8557 if test "$GCC" = yes; then
8558 case $host_os in aix4.[012]|aix4.[012].*)
8559 # We only want to do this on AIX 4.2 and lower, the check
8560 # below for broken collect2 doesn't work under 4.3+
8561 collect2name=`${CC} -print-prog-name=collect2`
8562 if test -f "$collect2name" &&
8563 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8564 then
8565 # We have reworked collect2
8567 else
8568 # We have old collect2
8569 hardcode_direct=unsupported
8570 # It fails to find uninstalled libraries when the uninstalled
8571 # path is not listed in the libpath. Setting hardcode_minus_L
8572 # to unsupported forces relinking
8573 hardcode_minus_L=yes
8574 hardcode_libdir_flag_spec='-L$libdir'
8575 hardcode_libdir_separator=
8578 esac
8579 shared_flag='-shared'
8580 if test "$aix_use_runtimelinking" = yes; then
8581 shared_flag="$shared_flag "'${wl}-G'
8583 else
8584 # not using gcc
8585 if test "$host_cpu" = ia64; then
8586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8587 # chokes on -Wl,-G. The following line is correct:
8588 shared_flag='-G'
8589 else
8590 if test "$aix_use_runtimelinking" = yes; then
8591 shared_flag='${wl}-G'
8592 else
8593 shared_flag='${wl}-bM:SRE'
8598 export_dynamic_flag_spec='${wl}-bexpall'
8599 # It seems that -bexpall does not export symbols beginning with
8600 # underscore (_), so it is better to generate a list of symbols to export.
8601 always_export_symbols=yes
8602 if test "$aix_use_runtimelinking" = yes; then
8603 # Warning - without using the other runtime loading flags (-brtl),
8604 # -berok will link without error, but may produce a broken library.
8605 allow_undefined_flag='-berok'
8606 # Determine the default libpath from the value encoded in an
8607 # empty executable.
8608 if test x$gcc_no_link = xyes; then
8609 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8615 main ()
8619 return 0;
8621 _ACEOF
8622 if ac_fn_c_try_link "$LINENO"; then :
8624 lt_aix_libpath_sed='
8625 /Import File Strings/,/^$/ {
8626 /^0/ {
8627 s/^0 *\(.*\)$/\1/
8631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8632 # Check for a 64-bit object if we didn't find anything.
8633 if test -z "$aix_libpath"; then
8634 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8637 rm -f core conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8639 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8641 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8642 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"
8643 else
8644 if test "$host_cpu" = ia64; then
8645 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8646 allow_undefined_flag="-z nodefs"
8647 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"
8648 else
8649 # Determine the default libpath from the value encoded in an
8650 # empty executable.
8651 if test x$gcc_no_link = xyes; then
8652 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8658 main ()
8662 return 0;
8664 _ACEOF
8665 if ac_fn_c_try_link "$LINENO"; then :
8667 lt_aix_libpath_sed='
8668 /Import File Strings/,/^$/ {
8669 /^0/ {
8670 s/^0 *\(.*\)$/\1/
8674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8675 # Check for a 64-bit object if we didn't find anything.
8676 if test -z "$aix_libpath"; then
8677 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8680 rm -f core conftest.err conftest.$ac_objext \
8681 conftest$ac_exeext conftest.$ac_ext
8682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8684 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8685 # Warning - without using the other run time loading flags,
8686 # -berok will link without error, but may produce a broken library.
8687 no_undefined_flag=' ${wl}-bernotok'
8688 allow_undefined_flag=' ${wl}-berok'
8689 if test "$with_gnu_ld" = yes; then
8690 # We only use this code for GNU lds that support --whole-archive.
8691 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8692 else
8693 # Exported symbols can be pulled into shared objects from archives
8694 whole_archive_flag_spec='$convenience'
8696 archive_cmds_need_lc=yes
8697 # This is similar to how AIX traditionally builds its shared libraries.
8698 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'
8703 amigaos*)
8704 case $host_cpu in
8705 powerpc)
8706 # see comment about AmigaOS4 .so support
8707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708 archive_expsym_cmds=''
8710 m68k)
8711 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)'
8712 hardcode_libdir_flag_spec='-L$libdir'
8713 hardcode_minus_L=yes
8715 esac
8718 bsdi[45]*)
8719 export_dynamic_flag_spec=-rdynamic
8722 cygwin* | mingw* | pw32* | cegcc*)
8723 # When not using gcc, we currently assume that we are using
8724 # Microsoft Visual C++.
8725 # hardcode_libdir_flag_spec is actually meaningless, as there is
8726 # no search path for DLLs.
8727 hardcode_libdir_flag_spec=' '
8728 allow_undefined_flag=unsupported
8729 # Tell ltmain to make .lib files, not .a files.
8730 libext=lib
8731 # Tell ltmain to make .dll files, not .so files.
8732 shrext_cmds=".dll"
8733 # FIXME: Setting linknames here is a bad hack.
8734 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8735 # The linker will automatically build a .lib file if we build a DLL.
8736 old_archive_from_new_cmds='true'
8737 # FIXME: Should let the user specify the lib program.
8738 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8739 fix_srcfile_path='`cygpath -w "$srcfile"`'
8740 enable_shared_with_static_runtimes=yes
8743 darwin* | rhapsody*)
8746 archive_cmds_need_lc=no
8747 hardcode_direct=no
8748 hardcode_automatic=yes
8749 hardcode_shlibpath_var=unsupported
8750 if test "$lt_cv_ld_force_load" = "yes"; then
8751 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\"`'
8752 else
8753 whole_archive_flag_spec=''
8755 link_all_deplibs=yes
8756 allow_undefined_flag="$_lt_dar_allow_undefined"
8757 case $cc_basename in
8758 ifort*) _lt_dar_can_shared=yes ;;
8759 *) _lt_dar_can_shared=$GCC ;;
8760 esac
8761 if test "$_lt_dar_can_shared" = "yes"; then
8762 output_verbose_link_cmd=func_echo_all
8763 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8764 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8765 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8766 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}"
8768 else
8769 ld_shlibs=no
8774 dgux*)
8775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8776 hardcode_libdir_flag_spec='-L$libdir'
8777 hardcode_shlibpath_var=no
8780 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8781 # support. Future versions do this automatically, but an explicit c++rt0.o
8782 # does not break anything, and helps significantly (at the cost of a little
8783 # extra space).
8784 freebsd2.2*)
8785 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8786 hardcode_libdir_flag_spec='-R$libdir'
8787 hardcode_direct=yes
8788 hardcode_shlibpath_var=no
8791 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8792 freebsd2.*)
8793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8794 hardcode_direct=yes
8795 hardcode_minus_L=yes
8796 hardcode_shlibpath_var=no
8799 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8800 freebsd* | dragonfly*)
8801 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8802 hardcode_libdir_flag_spec='-R$libdir'
8803 hardcode_direct=yes
8804 hardcode_shlibpath_var=no
8807 hpux9*)
8808 if test "$GCC" = yes; then
8809 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'
8810 else
8811 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'
8813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8814 hardcode_libdir_separator=:
8815 hardcode_direct=yes
8817 # hardcode_minus_L: Not really in the search PATH,
8818 # but as the default location of the library.
8819 hardcode_minus_L=yes
8820 export_dynamic_flag_spec='${wl}-E'
8823 hpux10*)
8824 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8825 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8826 else
8827 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8829 if test "$with_gnu_ld" = no; then
8830 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8831 hardcode_libdir_flag_spec_ld='+b $libdir'
8832 hardcode_libdir_separator=:
8833 hardcode_direct=yes
8834 hardcode_direct_absolute=yes
8835 export_dynamic_flag_spec='${wl}-E'
8836 # hardcode_minus_L: Not really in the search PATH,
8837 # but as the default location of the library.
8838 hardcode_minus_L=yes
8842 hpux11*)
8843 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8844 case $host_cpu in
8845 hppa*64*)
8846 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848 ia64*)
8849 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8852 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8854 esac
8855 else
8856 case $host_cpu in
8857 hppa*64*)
8858 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860 ia64*)
8861 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8865 # Older versions of the 11.00 compiler do not understand -b yet
8866 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8868 $as_echo_n "checking if $CC understands -b... " >&6; }
8869 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 lt_cv_prog_compiler__b=no
8873 save_LDFLAGS="$LDFLAGS"
8874 LDFLAGS="$LDFLAGS -b"
8875 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8876 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8877 # The linker can only warn and ignore the option if not recognized
8878 # So say no if there are warnings
8879 if test -s conftest.err; then
8880 # Append any errors to the config.log.
8881 cat conftest.err 1>&5
8882 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8884 if diff conftest.exp conftest.er2 >/dev/null; then
8885 lt_cv_prog_compiler__b=yes
8887 else
8888 lt_cv_prog_compiler__b=yes
8891 $RM -r conftest*
8892 LDFLAGS="$save_LDFLAGS"
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8896 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8898 if test x"$lt_cv_prog_compiler__b" = xyes; then
8899 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8900 else
8901 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8905 esac
8907 if test "$with_gnu_ld" = no; then
8908 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8909 hardcode_libdir_separator=:
8911 case $host_cpu in
8912 hppa*64*|ia64*)
8913 hardcode_direct=no
8914 hardcode_shlibpath_var=no
8917 hardcode_direct=yes
8918 hardcode_direct_absolute=yes
8919 export_dynamic_flag_spec='${wl}-E'
8921 # hardcode_minus_L: Not really in the search PATH,
8922 # but as the default location of the library.
8923 hardcode_minus_L=yes
8925 esac
8929 irix5* | irix6* | nonstopux*)
8930 if test "$GCC" = yes; then
8931 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'
8932 # Try to use the -exported_symbol ld option, if it does not
8933 # work, assume that -exports_file does not work either and
8934 # implicitly export all symbols.
8935 save_LDFLAGS="$LDFLAGS"
8936 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
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. */
8942 int foo(void) {}
8943 _ACEOF
8944 if ac_fn_c_try_link "$LINENO"; then :
8945 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'
8948 rm -f core conftest.err conftest.$ac_objext \
8949 conftest$ac_exeext conftest.$ac_ext
8950 LDFLAGS="$save_LDFLAGS"
8951 else
8952 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'
8953 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'
8955 archive_cmds_need_lc='no'
8956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8957 hardcode_libdir_separator=:
8958 inherit_rpath=yes
8959 link_all_deplibs=yes
8962 netbsd*)
8963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8965 else
8966 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8968 hardcode_libdir_flag_spec='-R$libdir'
8969 hardcode_direct=yes
8970 hardcode_shlibpath_var=no
8973 newsos6)
8974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8975 hardcode_direct=yes
8976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8977 hardcode_libdir_separator=:
8978 hardcode_shlibpath_var=no
8981 *nto* | *qnx*)
8984 openbsd*)
8985 if test -f /usr/libexec/ld.so; then
8986 hardcode_direct=yes
8987 hardcode_shlibpath_var=no
8988 hardcode_direct_absolute=yes
8989 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8991 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8993 export_dynamic_flag_spec='${wl}-E'
8994 else
8995 case $host_os in
8996 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8998 hardcode_libdir_flag_spec='-R$libdir'
9001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9002 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9004 esac
9006 else
9007 ld_shlibs=no
9011 os2*)
9012 hardcode_libdir_flag_spec='-L$libdir'
9013 hardcode_minus_L=yes
9014 allow_undefined_flag=unsupported
9015 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'
9016 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9019 osf3*)
9020 if test "$GCC" = yes; then
9021 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9022 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'
9023 else
9024 allow_undefined_flag=' -expect_unresolved \*'
9025 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'
9027 archive_cmds_need_lc='no'
9028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029 hardcode_libdir_separator=:
9032 osf4* | osf5*) # as osf3* with the addition of -msym flag
9033 if test "$GCC" = yes; then
9034 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9035 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'
9036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9037 else
9038 allow_undefined_flag=' -expect_unresolved \*'
9039 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'
9040 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~
9041 $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'
9043 # Both c and cxx compiler support -rpath directly
9044 hardcode_libdir_flag_spec='-rpath $libdir'
9046 archive_cmds_need_lc='no'
9047 hardcode_libdir_separator=:
9050 solaris*)
9051 no_undefined_flag=' -z defs'
9052 if test "$GCC" = yes; then
9053 wlarc='${wl}'
9054 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9056 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9057 else
9058 case `$CC -V 2>&1` in
9059 *"Compilers 5.0"*)
9060 wlarc=''
9061 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9062 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9063 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9066 wlarc='${wl}'
9067 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9068 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9069 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9071 esac
9073 hardcode_libdir_flag_spec='-R$libdir'
9074 hardcode_shlibpath_var=no
9075 case $host_os in
9076 solaris2.[0-5] | solaris2.[0-5].*) ;;
9078 # The compiler driver will combine and reorder linker options,
9079 # but understands `-z linker_flag'. GCC discards it without `$wl',
9080 # but is careful enough not to reorder.
9081 # Supported since Solaris 2.6 (maybe 2.5.1?)
9082 if test "$GCC" = yes; then
9083 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9084 else
9085 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9088 esac
9089 link_all_deplibs=yes
9092 sunos4*)
9093 if test "x$host_vendor" = xsequent; then
9094 # Use $CC to link under sequent, because it throws in some extra .o
9095 # files that make .init and .fini sections work.
9096 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9097 else
9098 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9100 hardcode_libdir_flag_spec='-L$libdir'
9101 hardcode_direct=yes
9102 hardcode_minus_L=yes
9103 hardcode_shlibpath_var=no
9106 sysv4)
9107 case $host_vendor in
9108 sni)
9109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9110 hardcode_direct=yes # is this really true???
9112 siemens)
9113 ## LD is ld it makes a PLAMLIB
9114 ## CC just makes a GrossModule.
9115 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9116 reload_cmds='$CC -r -o $output$reload_objs'
9117 hardcode_direct=no
9119 motorola)
9120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9121 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9123 esac
9124 runpath_var='LD_RUN_PATH'
9125 hardcode_shlibpath_var=no
9128 sysv4.3*)
9129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9130 hardcode_shlibpath_var=no
9131 export_dynamic_flag_spec='-Bexport'
9134 sysv4*MP*)
9135 if test -d /usr/nec; then
9136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9137 hardcode_shlibpath_var=no
9138 runpath_var=LD_RUN_PATH
9139 hardcode_runpath_var=yes
9140 ld_shlibs=yes
9144 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9145 no_undefined_flag='${wl}-z,text'
9146 archive_cmds_need_lc=no
9147 hardcode_shlibpath_var=no
9148 runpath_var='LD_RUN_PATH'
9150 if test "$GCC" = yes; then
9151 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9153 else
9154 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9159 sysv5* | sco3.2v5* | sco5v6*)
9160 # Note: We can NOT use -z defs as we might desire, because we do not
9161 # link with -lc, and that would cause any symbols used from libc to
9162 # always be unresolved, which means just about no library would
9163 # ever link correctly. If we're not using GNU ld we use -z text
9164 # though, which does catch some bad symbols but isn't as heavy-handed
9165 # as -z defs.
9166 no_undefined_flag='${wl}-z,text'
9167 allow_undefined_flag='${wl}-z,nodefs'
9168 archive_cmds_need_lc=no
9169 hardcode_shlibpath_var=no
9170 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9171 hardcode_libdir_separator=':'
9172 link_all_deplibs=yes
9173 export_dynamic_flag_spec='${wl}-Bexport'
9174 runpath_var='LD_RUN_PATH'
9176 if test "$GCC" = yes; then
9177 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9178 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9179 else
9180 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9181 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9185 uts4*)
9186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187 hardcode_libdir_flag_spec='-L$libdir'
9188 hardcode_shlibpath_var=no
9192 ld_shlibs=no
9194 esac
9196 if test x$host_vendor = xsni; then
9197 case $host in
9198 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9199 export_dynamic_flag_spec='${wl}-Blargedynsym'
9201 esac
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9206 $as_echo "$ld_shlibs" >&6; }
9207 test "$ld_shlibs" = no && can_build_shared=no
9209 with_gnu_ld=$with_gnu_ld
9226 # Do we need to explicitly link libc?
9228 case "x$archive_cmds_need_lc" in
9229 x|xyes)
9230 # Assume -lc should be added
9231 archive_cmds_need_lc=yes
9233 if test "$enable_shared" = yes && test "$GCC" = yes; then
9234 case $archive_cmds in
9235 *'~'*)
9236 # FIXME: we may have to deal with multi-command sequences.
9238 '$CC '*)
9239 # Test whether the compiler implicitly links with -lc since on some
9240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9241 # to ld, don't add -lc before -lgcc.
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9243 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9244 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 $RM conftest*
9248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9251 (eval $ac_compile) 2>&5
9252 ac_status=$?
9253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9254 test $ac_status = 0; } 2>conftest.err; then
9255 soname=conftest
9256 lib=conftest
9257 libobjs=conftest.$ac_objext
9258 deplibs=
9259 wl=$lt_prog_compiler_wl
9260 pic_flag=$lt_prog_compiler_pic
9261 compiler_flags=-v
9262 linker_flags=-v
9263 verstring=
9264 output_objdir=.
9265 libname=conftest
9266 lt_save_allow_undefined_flag=$allow_undefined_flag
9267 allow_undefined_flag=
9268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9269 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9270 ac_status=$?
9271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9272 test $ac_status = 0; }
9273 then
9274 lt_cv_archive_cmds_need_lc=no
9275 else
9276 lt_cv_archive_cmds_need_lc=yes
9278 allow_undefined_flag=$lt_save_allow_undefined_flag
9279 else
9280 cat conftest.err 1>&5
9282 $RM conftest*
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9286 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9287 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9289 esac
9292 esac
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9451 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9453 if test "$GCC" = yes; then
9454 case $host_os in
9455 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9456 *) lt_awk_arg="/^libraries:/" ;;
9457 esac
9458 case $host_os in
9459 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9460 *) lt_sed_strip_eq="s,=/,/,g" ;;
9461 esac
9462 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9463 case $lt_search_path_spec in
9464 *\;*)
9465 # if the path contains ";" then we assume it to be the separator
9466 # otherwise default to the standard path separator (i.e. ":") - it is
9467 # assumed that no part of a normal pathname contains ";" but that should
9468 # okay in the real world where ";" in dirpaths is itself problematic.
9469 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9472 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9474 esac
9475 # Ok, now we have the path, separated by spaces, we can step through it
9476 # and add multilib dir if necessary.
9477 lt_tmp_lt_search_path_spec=
9478 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9479 for lt_sys_path in $lt_search_path_spec; do
9480 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9481 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9482 else
9483 test -d "$lt_sys_path" && \
9484 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9486 done
9487 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9488 BEGIN {RS=" "; FS="/|\n";} {
9489 lt_foo="";
9490 lt_count=0;
9491 for (lt_i = NF; lt_i > 0; lt_i--) {
9492 if ($lt_i != "" && $lt_i != ".") {
9493 if ($lt_i == "..") {
9494 lt_count++;
9495 } else {
9496 if (lt_count == 0) {
9497 lt_foo="/" $lt_i lt_foo;
9498 } else {
9499 lt_count--;
9504 if (lt_foo != "") { lt_freq[lt_foo]++; }
9505 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9507 # AWK program above erroneously prepends '/' to C:/dos/paths
9508 # for these hosts.
9509 case $host_os in
9510 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9511 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9512 esac
9513 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9514 else
9515 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9517 library_names_spec=
9518 libname_spec='lib$name'
9519 soname_spec=
9520 shrext_cmds=".so"
9521 postinstall_cmds=
9522 postuninstall_cmds=
9523 finish_cmds=
9524 finish_eval=
9525 shlibpath_var=
9526 shlibpath_overrides_runpath=unknown
9527 version_type=none
9528 dynamic_linker="$host_os ld.so"
9529 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9530 need_lib_prefix=unknown
9531 hardcode_into_libs=no
9533 # when you set need_version to no, make sure it does not cause -set_version
9534 # flags to be left without arguments
9535 need_version=unknown
9537 case $host_os in
9538 aix3*)
9539 version_type=linux
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9541 shlibpath_var=LIBPATH
9543 # AIX 3 has no versioning support, so we append a major version to the name.
9544 soname_spec='${libname}${release}${shared_ext}$major'
9547 aix[4-9]*)
9548 version_type=linux
9549 need_lib_prefix=no
9550 need_version=no
9551 hardcode_into_libs=yes
9552 if test "$host_cpu" = ia64; then
9553 # AIX 5 supports IA64
9554 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9555 shlibpath_var=LD_LIBRARY_PATH
9556 else
9557 # With GCC up to 2.95.x, collect2 would create an import file
9558 # for dependence libraries. The import file would start with
9559 # the line `#! .'. This would cause the generated library to
9560 # depend on `.', always an invalid library. This was fixed in
9561 # development snapshots of GCC prior to 3.0.
9562 case $host_os in
9563 aix4 | aix4.[01] | aix4.[01].*)
9564 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9565 echo ' yes '
9566 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9568 else
9569 can_build_shared=no
9572 esac
9573 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9574 # soname into executable. Probably we can add versioning support to
9575 # collect2, so additional links can be useful in future.
9576 if test "$aix_use_runtimelinking" = yes; then
9577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9578 # instead of lib<name>.a to let people know that these are not
9579 # typical AIX shared libraries.
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581 else
9582 # We preserve .a as extension for shared libraries through AIX4.2
9583 # and later when we are not doing run time linking.
9584 library_names_spec='${libname}${release}.a $libname.a'
9585 soname_spec='${libname}${release}${shared_ext}$major'
9587 shlibpath_var=LIBPATH
9591 amigaos*)
9592 case $host_cpu in
9593 powerpc)
9594 # Since July 2007 AmigaOS4 officially supports .so libraries.
9595 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 m68k)
9599 library_names_spec='$libname.ixlibrary $libname.a'
9600 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9601 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'
9603 esac
9606 beos*)
9607 library_names_spec='${libname}${shared_ext}'
9608 dynamic_linker="$host_os ld.so"
9609 shlibpath_var=LIBRARY_PATH
9612 bsdi[45]*)
9613 version_type=linux
9614 need_version=no
9615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9616 soname_spec='${libname}${release}${shared_ext}$major'
9617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9618 shlibpath_var=LD_LIBRARY_PATH
9619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9621 # the default ld.so.conf also contains /usr/contrib/lib and
9622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9623 # libtool to hard-code these into programs
9626 cygwin* | mingw* | pw32* | cegcc*)
9627 version_type=windows
9628 shrext_cmds=".dll"
9629 need_version=no
9630 need_lib_prefix=no
9632 case $GCC,$host_os in
9633 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9634 library_names_spec='$libname.dll.a'
9635 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9636 postinstall_cmds='base_file=`basename \${file}`~
9637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9638 dldir=$destdir/`dirname \$dlpath`~
9639 test -d \$dldir || mkdir -p \$dldir~
9640 $install_prog $dir/$dlname \$dldir/$dlname~
9641 chmod a+x \$dldir/$dlname~
9642 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9643 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9646 dlpath=$dir/\$dldll~
9647 $RM \$dlpath'
9648 shlibpath_overrides_runpath=yes
9650 case $host_os in
9651 cygwin*)
9652 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9653 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9655 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9657 mingw* | cegcc*)
9658 # MinGW DLLs use traditional 'lib' prefix
9659 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9661 pw32*)
9662 # pw32 DLLs use 'pw' prefix rather than 'lib'
9663 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9665 esac
9669 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9671 esac
9672 dynamic_linker='Win32 ld.exe'
9673 # FIXME: first we should search . and the directory the executable is in
9674 shlibpath_var=PATH
9677 darwin* | rhapsody*)
9678 dynamic_linker="$host_os dyld"
9679 version_type=darwin
9680 need_lib_prefix=no
9681 need_version=no
9682 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9683 soname_spec='${libname}${release}${major}$shared_ext'
9684 shlibpath_overrides_runpath=yes
9685 shlibpath_var=DYLD_LIBRARY_PATH
9686 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9692 dgux*)
9693 version_type=linux
9694 need_lib_prefix=no
9695 need_version=no
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 shlibpath_var=LD_LIBRARY_PATH
9701 freebsd* | dragonfly*)
9702 # DragonFly does not have aout. When/if they implement a new
9703 # versioning mechanism, adjust this.
9704 if test -x /usr/bin/objformat; then
9705 objformat=`/usr/bin/objformat`
9706 else
9707 case $host_os in
9708 freebsd[23].*) objformat=aout ;;
9709 *) objformat=elf ;;
9710 esac
9712 version_type=freebsd-$objformat
9713 case $version_type in
9714 freebsd-elf*)
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9716 need_version=no
9717 need_lib_prefix=no
9719 freebsd-*)
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9721 need_version=yes
9723 esac
9724 shlibpath_var=LD_LIBRARY_PATH
9725 case $host_os in
9726 freebsd2.*)
9727 shlibpath_overrides_runpath=yes
9729 freebsd3.[01]* | freebsdelf3.[01]*)
9730 shlibpath_overrides_runpath=yes
9731 hardcode_into_libs=yes
9733 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9734 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9735 shlibpath_overrides_runpath=no
9736 hardcode_into_libs=yes
9738 *) # from 4.6 on, and DragonFly
9739 shlibpath_overrides_runpath=yes
9740 hardcode_into_libs=yes
9742 esac
9745 gnu*)
9746 version_type=linux
9747 need_lib_prefix=no
9748 need_version=no
9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9750 soname_spec='${libname}${release}${shared_ext}$major'
9751 shlibpath_var=LD_LIBRARY_PATH
9752 hardcode_into_libs=yes
9755 haiku*)
9756 version_type=linux
9757 need_lib_prefix=no
9758 need_version=no
9759 dynamic_linker="$host_os runtime_loader"
9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9761 soname_spec='${libname}${release}${shared_ext}$major'
9762 shlibpath_var=LIBRARY_PATH
9763 shlibpath_overrides_runpath=yes
9764 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9765 hardcode_into_libs=yes
9768 hpux9* | hpux10* | hpux11*)
9769 # Give a soname corresponding to the major version so that dld.sl refuses to
9770 # link against other versions.
9771 version_type=sunos
9772 need_lib_prefix=no
9773 need_version=no
9774 case $host_cpu in
9775 ia64*)
9776 shrext_cmds='.so'
9777 hardcode_into_libs=yes
9778 dynamic_linker="$host_os dld.so"
9779 shlibpath_var=LD_LIBRARY_PATH
9780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782 soname_spec='${libname}${release}${shared_ext}$major'
9783 if test "X$HPUX_IA64_MODE" = X32; then
9784 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9785 else
9786 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9790 hppa*64*)
9791 shrext_cmds='.sl'
9792 hardcode_into_libs=yes
9793 dynamic_linker="$host_os dld.sl"
9794 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9802 shrext_cmds='.sl'
9803 dynamic_linker="$host_os dld.sl"
9804 shlibpath_var=SHLIB_PATH
9805 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807 soname_spec='${libname}${release}${shared_ext}$major'
9809 esac
9810 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9811 postinstall_cmds='chmod 555 $lib'
9812 # or fails outright, so override atomically:
9813 install_override_mode=555
9816 interix[3-9]*)
9817 version_type=linux
9818 need_lib_prefix=no
9819 need_version=no
9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9823 shlibpath_var=LD_LIBRARY_PATH
9824 shlibpath_overrides_runpath=no
9825 hardcode_into_libs=yes
9828 irix5* | irix6* | nonstopux*)
9829 case $host_os in
9830 nonstopux*) version_type=nonstopux ;;
9832 if test "$lt_cv_prog_gnu_ld" = yes; then
9833 version_type=linux
9834 else
9835 version_type=irix
9836 fi ;;
9837 esac
9838 need_lib_prefix=no
9839 need_version=no
9840 soname_spec='${libname}${release}${shared_ext}$major'
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9842 case $host_os in
9843 irix5* | nonstopux*)
9844 libsuff= shlibsuff=
9847 case $LD in # libtool.m4 will add one of these switches to LD
9848 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9849 libsuff= shlibsuff= libmagic=32-bit;;
9850 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9851 libsuff=32 shlibsuff=N32 libmagic=N32;;
9852 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9853 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9854 *) libsuff= shlibsuff= libmagic=never-match;;
9855 esac
9857 esac
9858 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9859 shlibpath_overrides_runpath=no
9860 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9861 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9862 hardcode_into_libs=yes
9865 # No shared lib support for Linux oldld, aout, or coff.
9866 linux*oldld* | linux*aout* | linux*coff*)
9867 dynamic_linker=no
9870 # This must be Linux ELF.
9871 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9872 version_type=linux
9873 need_lib_prefix=no
9874 need_version=no
9875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9876 soname_spec='${libname}${release}${shared_ext}$major'
9877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9878 shlibpath_var=LD_LIBRARY_PATH
9879 shlibpath_overrides_runpath=no
9881 # Some binutils ld are patched to set DT_RUNPATH
9882 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9884 else
9885 lt_cv_shlibpath_overrides_runpath=no
9886 save_LDFLAGS=$LDFLAGS
9887 save_libdir=$libdir
9888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9890 if test x$gcc_no_link = xyes; then
9891 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9897 main ()
9901 return 0;
9903 _ACEOF
9904 if ac_fn_c_try_link "$LINENO"; then :
9905 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9906 lt_cv_shlibpath_overrides_runpath=yes
9909 rm -f core conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext conftest.$ac_ext
9911 LDFLAGS=$save_LDFLAGS
9912 libdir=$save_libdir
9916 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9918 # This implies no fast_install, which is unacceptable.
9919 # Some rework will be needed to allow for fast_install
9920 # before this can be enabled.
9921 hardcode_into_libs=yes
9923 # Append ld.so.conf contents to the search path
9924 if test -f /etc/ld.so.conf; then
9925 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' ' '`
9926 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9929 # We used to test for /lib/ld.so.1 and disable shared libraries on
9930 # powerpc, because MkLinux only supported shared libraries with the
9931 # GNU dynamic linker. Since this was broken with cross compilers,
9932 # most powerpc-linux boxes support dynamic linking these days and
9933 # people can always --disable-shared, the test was removed, and we
9934 # assume the GNU/Linux dynamic linker is in use.
9935 dynamic_linker='GNU/Linux ld.so'
9938 netbsd*)
9939 version_type=sunos
9940 need_lib_prefix=no
9941 need_version=no
9942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9945 dynamic_linker='NetBSD (a.out) ld.so'
9946 else
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9948 soname_spec='${libname}${release}${shared_ext}$major'
9949 dynamic_linker='NetBSD ld.elf_so'
9951 shlibpath_var=LD_LIBRARY_PATH
9952 shlibpath_overrides_runpath=yes
9953 hardcode_into_libs=yes
9956 newsos6)
9957 version_type=linux
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 shlibpath_overrides_runpath=yes
9963 *nto* | *qnx*)
9964 version_type=qnx
9965 need_lib_prefix=no
9966 need_version=no
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9968 soname_spec='${libname}${release}${shared_ext}$major'
9969 shlibpath_var=LD_LIBRARY_PATH
9970 shlibpath_overrides_runpath=no
9971 hardcode_into_libs=yes
9972 dynamic_linker='ldqnx.so'
9975 openbsd*)
9976 version_type=sunos
9977 sys_lib_dlsearch_path_spec="/usr/lib"
9978 need_lib_prefix=no
9979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9980 case $host_os in
9981 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9982 *) need_version=no ;;
9983 esac
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9986 shlibpath_var=LD_LIBRARY_PATH
9987 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9988 case $host_os in
9989 openbsd2.[89] | openbsd2.[89].*)
9990 shlibpath_overrides_runpath=no
9993 shlibpath_overrides_runpath=yes
9995 esac
9996 else
9997 shlibpath_overrides_runpath=yes
10001 os2*)
10002 libname_spec='$name'
10003 shrext_cmds=".dll"
10004 need_lib_prefix=no
10005 library_names_spec='$libname${shared_ext} $libname.a'
10006 dynamic_linker='OS/2 ld.exe'
10007 shlibpath_var=LIBPATH
10010 osf3* | osf4* | osf5*)
10011 version_type=osf
10012 need_lib_prefix=no
10013 need_version=no
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10016 shlibpath_var=LD_LIBRARY_PATH
10017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10021 rdos*)
10022 dynamic_linker=no
10025 solaris*)
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
10032 shlibpath_overrides_runpath=yes
10033 hardcode_into_libs=yes
10034 # ldd complains unless libraries are executable
10035 postinstall_cmds='chmod +x $lib'
10038 sunos4*)
10039 version_type=sunos
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10041 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 shlibpath_overrides_runpath=yes
10044 if test "$with_gnu_ld" = yes; then
10045 need_lib_prefix=no
10047 need_version=yes
10050 sysv4 | sysv4.3*)
10051 version_type=linux
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053 soname_spec='${libname}${release}${shared_ext}$major'
10054 shlibpath_var=LD_LIBRARY_PATH
10055 case $host_vendor in
10056 sni)
10057 shlibpath_overrides_runpath=no
10058 need_lib_prefix=no
10059 runpath_var=LD_RUN_PATH
10061 siemens)
10062 need_lib_prefix=no
10064 motorola)
10065 need_lib_prefix=no
10066 need_version=no
10067 shlibpath_overrides_runpath=no
10068 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10070 esac
10073 sysv4*MP*)
10074 if test -d /usr/nec ;then
10075 version_type=linux
10076 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10077 soname_spec='$libname${shared_ext}.$major'
10078 shlibpath_var=LD_LIBRARY_PATH
10082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10083 version_type=freebsd-elf
10084 need_lib_prefix=no
10085 need_version=no
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 shlibpath_var=LD_LIBRARY_PATH
10089 shlibpath_overrides_runpath=yes
10090 hardcode_into_libs=yes
10091 if test "$with_gnu_ld" = yes; then
10092 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10093 else
10094 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10095 case $host_os in
10096 sco3.2v5*)
10097 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10099 esac
10101 sys_lib_dlsearch_path_spec='/usr/lib'
10104 tpf*)
10105 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10106 version_type=linux
10107 need_lib_prefix=no
10108 need_version=no
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110 shlibpath_var=LD_LIBRARY_PATH
10111 shlibpath_overrides_runpath=no
10112 hardcode_into_libs=yes
10115 uts4*)
10116 version_type=linux
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 shlibpath_var=LD_LIBRARY_PATH
10123 dynamic_linker=no
10125 esac
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10127 $as_echo "$dynamic_linker" >&6; }
10128 test "$dynamic_linker" = no && can_build_shared=no
10130 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10131 if test "$GCC" = yes; then
10132 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10135 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10136 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10138 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10139 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10234 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10235 hardcode_action=
10236 if test -n "$hardcode_libdir_flag_spec" ||
10237 test -n "$runpath_var" ||
10238 test "X$hardcode_automatic" = "Xyes" ; then
10240 # We can hardcode non-existent directories.
10241 if test "$hardcode_direct" != no &&
10242 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10243 # have to relink, otherwise we might link with an installed library
10244 # when we should be linking with a yet-to-be-installed one
10245 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10246 test "$hardcode_minus_L" != no; then
10247 # Linking always hardcodes the temporary library directory.
10248 hardcode_action=relink
10249 else
10250 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10251 hardcode_action=immediate
10253 else
10254 # We cannot hardcode anything, or else we can only hardcode existing
10255 # directories.
10256 hardcode_action=unsupported
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10259 $as_echo "$hardcode_action" >&6; }
10261 if test "$hardcode_action" = relink ||
10262 test "$inherit_rpath" = yes; then
10263 # Fast installation is not supported
10264 enable_fast_install=no
10265 elif test "$shlibpath_overrides_runpath" = yes ||
10266 test "$enable_shared" = no; then
10267 # Fast installation is not necessary
10268 enable_fast_install=needless
10276 if test "x$enable_dlopen" != xyes; then
10277 enable_dlopen=unknown
10278 enable_dlopen_self=unknown
10279 enable_dlopen_self_static=unknown
10280 else
10281 lt_cv_dlopen=no
10282 lt_cv_dlopen_libs=
10284 case $host_os in
10285 beos*)
10286 lt_cv_dlopen="load_add_on"
10287 lt_cv_dlopen_libs=
10288 lt_cv_dlopen_self=yes
10291 mingw* | pw32* | cegcc*)
10292 lt_cv_dlopen="LoadLibrary"
10293 lt_cv_dlopen_libs=
10296 cygwin*)
10297 lt_cv_dlopen="dlopen"
10298 lt_cv_dlopen_libs=
10301 darwin*)
10302 # if libdl is installed we need to link against it
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10304 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10305 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308 ac_check_lib_save_LIBS=$LIBS
10309 LIBS="-ldl $LIBS"
10310 if test x$gcc_no_link = xyes; then
10311 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h. */
10316 /* Override any GCC internal prototype to avoid an error.
10317 Use char because int might match the return type of a GCC
10318 builtin and then its argument prototype would still apply. */
10319 #ifdef __cplusplus
10320 extern "C"
10321 #endif
10322 char dlopen ();
10324 main ()
10326 return dlopen ();
10328 return 0;
10330 _ACEOF
10331 if ac_fn_c_try_link "$LINENO"; then :
10332 ac_cv_lib_dl_dlopen=yes
10333 else
10334 ac_cv_lib_dl_dlopen=no
10336 rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10341 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10342 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10344 else
10346 lt_cv_dlopen="dyld"
10347 lt_cv_dlopen_libs=
10348 lt_cv_dlopen_self=yes
10355 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10356 if test "x$ac_cv_func_shl_load" = x""yes; then :
10357 lt_cv_dlopen="shl_load"
10358 else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10360 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10361 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 ac_check_lib_save_LIBS=$LIBS
10365 LIBS="-ldld $LIBS"
10366 if test x$gcc_no_link = xyes; then
10367 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h. */
10372 /* Override any GCC internal prototype to avoid an error.
10373 Use char because int might match the return type of a GCC
10374 builtin and then its argument prototype would still apply. */
10375 #ifdef __cplusplus
10376 extern "C"
10377 #endif
10378 char shl_load ();
10380 main ()
10382 return shl_load ();
10384 return 0;
10386 _ACEOF
10387 if ac_fn_c_try_link "$LINENO"; then :
10388 ac_cv_lib_dld_shl_load=yes
10389 else
10390 ac_cv_lib_dld_shl_load=no
10392 rm -f core conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10394 LIBS=$ac_check_lib_save_LIBS
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10397 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10398 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10399 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10400 else
10401 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10402 if test "x$ac_cv_func_dlopen" = x""yes; then :
10403 lt_cv_dlopen="dlopen"
10404 else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10406 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10407 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 ac_check_lib_save_LIBS=$LIBS
10411 LIBS="-ldl $LIBS"
10412 if test x$gcc_no_link = xyes; then
10413 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10418 /* Override any GCC internal prototype to avoid an error.
10419 Use char because int might match the return type of a GCC
10420 builtin and then its argument prototype would still apply. */
10421 #ifdef __cplusplus
10422 extern "C"
10423 #endif
10424 char dlopen ();
10426 main ()
10428 return dlopen ();
10430 return 0;
10432 _ACEOF
10433 if ac_fn_c_try_link "$LINENO"; then :
10434 ac_cv_lib_dl_dlopen=yes
10435 else
10436 ac_cv_lib_dl_dlopen=no
10438 rm -f core conftest.err conftest.$ac_objext \
10439 conftest$ac_exeext conftest.$ac_ext
10440 LIBS=$ac_check_lib_save_LIBS
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10443 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10444 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10445 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10446 else
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10448 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10449 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10450 $as_echo_n "(cached) " >&6
10451 else
10452 ac_check_lib_save_LIBS=$LIBS
10453 LIBS="-lsvld $LIBS"
10454 if test x$gcc_no_link = xyes; then
10455 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h. */
10460 /* Override any GCC internal prototype to avoid an error.
10461 Use char because int might match the return type of a GCC
10462 builtin and then its argument prototype would still apply. */
10463 #ifdef __cplusplus
10464 extern "C"
10465 #endif
10466 char dlopen ();
10468 main ()
10470 return dlopen ();
10472 return 0;
10474 _ACEOF
10475 if ac_fn_c_try_link "$LINENO"; then :
10476 ac_cv_lib_svld_dlopen=yes
10477 else
10478 ac_cv_lib_svld_dlopen=no
10480 rm -f core conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 LIBS=$ac_check_lib_save_LIBS
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10485 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10486 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10488 else
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10490 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10491 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10494 ac_check_lib_save_LIBS=$LIBS
10495 LIBS="-ldld $LIBS"
10496 if test x$gcc_no_link = xyes; then
10497 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10502 /* Override any GCC internal prototype to avoid an error.
10503 Use char because int might match the return type of a GCC
10504 builtin and then its argument prototype would still apply. */
10505 #ifdef __cplusplus
10506 extern "C"
10507 #endif
10508 char dld_link ();
10510 main ()
10512 return dld_link ();
10514 return 0;
10516 _ACEOF
10517 if ac_fn_c_try_link "$LINENO"; then :
10518 ac_cv_lib_dld_dld_link=yes
10519 else
10520 ac_cv_lib_dld_dld_link=no
10522 rm -f core conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext conftest.$ac_ext
10524 LIBS=$ac_check_lib_save_LIBS
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10527 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10528 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10529 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10548 esac
10550 if test "x$lt_cv_dlopen" != xno; then
10551 enable_dlopen=yes
10552 else
10553 enable_dlopen=no
10556 case $lt_cv_dlopen in
10557 dlopen)
10558 save_CPPFLAGS="$CPPFLAGS"
10559 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10561 save_LDFLAGS="$LDFLAGS"
10562 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10564 save_LIBS="$LIBS"
10565 LIBS="$lt_cv_dlopen_libs $LIBS"
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10568 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10569 if test "${lt_cv_dlopen_self+set}" = set; then :
10570 $as_echo_n "(cached) " >&6
10571 else
10572 if test "$cross_compiling" = yes; then :
10573 lt_cv_dlopen_self=cross
10574 else
10575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10576 lt_status=$lt_dlunknown
10577 cat > conftest.$ac_ext <<_LT_EOF
10578 #line 10578 "configure"
10579 #include "confdefs.h"
10581 #if HAVE_DLFCN_H
10582 #include <dlfcn.h>
10583 #endif
10585 #include <stdio.h>
10587 #ifdef RTLD_GLOBAL
10588 # define LT_DLGLOBAL RTLD_GLOBAL
10589 #else
10590 # ifdef DL_GLOBAL
10591 # define LT_DLGLOBAL DL_GLOBAL
10592 # else
10593 # define LT_DLGLOBAL 0
10594 # endif
10595 #endif
10597 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10598 find out it does not work in some platform. */
10599 #ifndef LT_DLLAZY_OR_NOW
10600 # ifdef RTLD_LAZY
10601 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10602 # else
10603 # ifdef DL_LAZY
10604 # define LT_DLLAZY_OR_NOW DL_LAZY
10605 # else
10606 # ifdef RTLD_NOW
10607 # define LT_DLLAZY_OR_NOW RTLD_NOW
10608 # else
10609 # ifdef DL_NOW
10610 # define LT_DLLAZY_OR_NOW DL_NOW
10611 # else
10612 # define LT_DLLAZY_OR_NOW 0
10613 # endif
10614 # endif
10615 # endif
10616 # endif
10617 #endif
10619 /* When -fvisbility=hidden is used, assume the code has been annotated
10620 correspondingly for the symbols needed. */
10621 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10622 void fnord () __attribute__((visibility("default")));
10623 #endif
10625 void fnord () { int i=42; }
10626 int main ()
10628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10629 int status = $lt_dlunknown;
10631 if (self)
10633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10634 else
10636 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10637 else puts (dlerror ());
10639 /* dlclose (self); */
10641 else
10642 puts (dlerror ());
10644 return status;
10646 _LT_EOF
10647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10648 (eval $ac_link) 2>&5
10649 ac_status=$?
10650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10651 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10652 (./conftest; exit; ) >&5 2>/dev/null
10653 lt_status=$?
10654 case x$lt_status in
10655 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10656 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10657 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10658 esac
10659 else :
10660 # compilation failed
10661 lt_cv_dlopen_self=no
10664 rm -fr conftest*
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10669 $as_echo "$lt_cv_dlopen_self" >&6; }
10671 if test "x$lt_cv_dlopen_self" = xyes; then
10672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10674 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10675 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 if test "$cross_compiling" = yes; then :
10679 lt_cv_dlopen_self_static=cross
10680 else
10681 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10682 lt_status=$lt_dlunknown
10683 cat > conftest.$ac_ext <<_LT_EOF
10684 #line 10684 "configure"
10685 #include "confdefs.h"
10687 #if HAVE_DLFCN_H
10688 #include <dlfcn.h>
10689 #endif
10691 #include <stdio.h>
10693 #ifdef RTLD_GLOBAL
10694 # define LT_DLGLOBAL RTLD_GLOBAL
10695 #else
10696 # ifdef DL_GLOBAL
10697 # define LT_DLGLOBAL DL_GLOBAL
10698 # else
10699 # define LT_DLGLOBAL 0
10700 # endif
10701 #endif
10703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10704 find out it does not work in some platform. */
10705 #ifndef LT_DLLAZY_OR_NOW
10706 # ifdef RTLD_LAZY
10707 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10708 # else
10709 # ifdef DL_LAZY
10710 # define LT_DLLAZY_OR_NOW DL_LAZY
10711 # else
10712 # ifdef RTLD_NOW
10713 # define LT_DLLAZY_OR_NOW RTLD_NOW
10714 # else
10715 # ifdef DL_NOW
10716 # define LT_DLLAZY_OR_NOW DL_NOW
10717 # else
10718 # define LT_DLLAZY_OR_NOW 0
10719 # endif
10720 # endif
10721 # endif
10722 # endif
10723 #endif
10725 /* When -fvisbility=hidden is used, assume the code has been annotated
10726 correspondingly for the symbols needed. */
10727 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10728 void fnord () __attribute__((visibility("default")));
10729 #endif
10731 void fnord () { int i=42; }
10732 int main ()
10734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10735 int status = $lt_dlunknown;
10737 if (self)
10739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10740 else
10742 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10743 else puts (dlerror ());
10745 /* dlclose (self); */
10747 else
10748 puts (dlerror ());
10750 return status;
10752 _LT_EOF
10753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10754 (eval $ac_link) 2>&5
10755 ac_status=$?
10756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10757 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10758 (./conftest; exit; ) >&5 2>/dev/null
10759 lt_status=$?
10760 case x$lt_status in
10761 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10762 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10763 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10764 esac
10765 else :
10766 # compilation failed
10767 lt_cv_dlopen_self_static=no
10770 rm -fr conftest*
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10775 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10778 CPPFLAGS="$save_CPPFLAGS"
10779 LDFLAGS="$save_LDFLAGS"
10780 LIBS="$save_LIBS"
10782 esac
10784 case $lt_cv_dlopen_self in
10785 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10786 *) enable_dlopen_self=unknown ;;
10787 esac
10789 case $lt_cv_dlopen_self_static in
10790 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10791 *) enable_dlopen_self_static=unknown ;;
10792 esac
10811 striplib=
10812 old_striplib=
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10814 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10815 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10816 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10817 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10819 $as_echo "yes" >&6; }
10820 else
10821 # FIXME - insert some real tests, host_os isn't really good enough
10822 case $host_os in
10823 darwin*)
10824 if test -n "$STRIP" ; then
10825 striplib="$STRIP -x"
10826 old_striplib="$STRIP -S"
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10828 $as_echo "yes" >&6; }
10829 else
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; }
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836 $as_echo "no" >&6; }
10838 esac
10852 # Report which library types will actually be built
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10854 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10856 $as_echo "$can_build_shared" >&6; }
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10859 $as_echo_n "checking whether to build shared libraries... " >&6; }
10860 test "$can_build_shared" = "no" && enable_shared=no
10862 # On AIX, shared libraries and static libraries use the same namespace, and
10863 # are all built from PIC.
10864 case $host_os in
10865 aix3*)
10866 test "$enable_shared" = yes && enable_static=no
10867 if test -n "$RANLIB"; then
10868 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10869 postinstall_cmds='$RANLIB $lib'
10873 aix[4-9]*)
10874 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10875 test "$enable_shared" = yes && enable_static=no
10878 esac
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10880 $as_echo "$enable_shared" >&6; }
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10883 $as_echo_n "checking whether to build static libraries... " >&6; }
10884 # Make sure either enable_shared or enable_static is yes.
10885 test "$enable_shared" = yes || enable_static=yes
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10887 $as_echo "$enable_static" >&6; }
10893 ac_ext=c
10894 ac_cpp='$CPP $CPPFLAGS'
10895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10899 CC="$lt_save_CC"
10913 ac_config_commands="$ac_config_commands libtool"
10918 # Only expand once:
10924 case $host in
10925 *-cygwin* | *-mingw*)
10926 # 'host' will be top-level target in the case of a target lib,
10927 # we must compare to with_cross_host to decide if this is a native
10928 # or cross-compiler and select where to install dlls appropriately.
10929 if test -n "$with_cross_host" &&
10930 test x"$with_cross_host" != x"no"; then
10931 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10932 else
10933 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10937 lt_host_flags=
10939 esac
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10948 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10949 # Check whether --enable-maintainer-mode was given.
10950 if test "${enable_maintainer_mode+set}" = set; then :
10951 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10952 else
10953 USE_MAINTAINER_MODE=no
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10957 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10958 if test $USE_MAINTAINER_MODE = yes; then
10959 MAINTAINER_MODE_TRUE=
10960 MAINTAINER_MODE_FALSE='#'
10961 else
10962 MAINTAINER_MODE_TRUE='#'
10963 MAINTAINER_MODE_FALSE=
10966 MAINT=$MAINTAINER_MODE_TRUE
10970 ac_ext=c
10971 ac_cpp='$CPP $CPPFLAGS'
10972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10976 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
10977 # We must force CC to /not/ be precious variables; otherwise
10978 # the wrong, non-multilib-adjusted value will be used in multilibs.
10979 # As a side effect, we have to subst CFLAGS ourselves.
10983 ac_ext=c
10984 ac_cpp='$CPP $CPPFLAGS'
10985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10988 if test -n "$ac_tool_prefix"; then
10989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10990 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10992 $as_echo_n "checking for $ac_word... " >&6; }
10993 if test "${ac_cv_prog_CC+set}" = set; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 if test -n "$CC"; then
10997 ac_cv_prog_CC="$CC" # Let the user override the test.
10998 else
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11006 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 break 2
11010 done
11011 done
11012 IFS=$as_save_IFS
11016 CC=$ac_cv_prog_CC
11017 if test -n "$CC"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11019 $as_echo "$CC" >&6; }
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11027 if test -z "$ac_cv_prog_CC"; then
11028 ac_ct_CC=$CC
11029 # Extract the first word of "gcc", so it can be a program name with args.
11030 set dummy gcc; ac_word=$2
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 $as_echo_n "checking for $ac_word... " >&6; }
11033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
11035 else
11036 if test -n "$ac_ct_CC"; then
11037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11038 else
11039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040 for as_dir in $PATH
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11046 ac_cv_prog_ac_ct_CC="gcc"
11047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 break 2
11050 done
11051 done
11052 IFS=$as_save_IFS
11056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11057 if test -n "$ac_ct_CC"; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11059 $as_echo "$ac_ct_CC" >&6; }
11060 else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11065 if test "x$ac_ct_CC" = x; then
11066 CC=""
11067 else
11068 case $cross_compiling:$ac_tool_warned in
11069 yes:)
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11072 ac_tool_warned=yes ;;
11073 esac
11074 CC=$ac_ct_CC
11076 else
11077 CC="$ac_cv_prog_CC"
11080 if test -z "$CC"; then
11081 if test -n "$ac_tool_prefix"; then
11082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11083 set dummy ${ac_tool_prefix}cc; ac_word=$2
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11085 $as_echo_n "checking for $ac_word... " >&6; }
11086 if test "${ac_cv_prog_CC+set}" = set; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 if test -n "$CC"; then
11090 ac_cv_prog_CC="$CC" # Let the user override the test.
11091 else
11092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093 for as_dir in $PATH
11095 IFS=$as_save_IFS
11096 test -z "$as_dir" && as_dir=.
11097 for ac_exec_ext in '' $ac_executable_extensions; do
11098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11099 ac_cv_prog_CC="${ac_tool_prefix}cc"
11100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11101 break 2
11103 done
11104 done
11105 IFS=$as_save_IFS
11109 CC=$ac_cv_prog_CC
11110 if test -n "$CC"; then
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11112 $as_echo "$CC" >&6; }
11113 else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115 $as_echo "no" >&6; }
11121 if test -z "$CC"; then
11122 # Extract the first word of "cc", so it can be a program name with args.
11123 set dummy cc; ac_word=$2
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11125 $as_echo_n "checking for $ac_word... " >&6; }
11126 if test "${ac_cv_prog_CC+set}" = set; then :
11127 $as_echo_n "(cached) " >&6
11128 else
11129 if test -n "$CC"; then
11130 ac_cv_prog_CC="$CC" # Let the user override the test.
11131 else
11132 ac_prog_rejected=no
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11141 ac_prog_rejected=yes
11142 continue
11144 ac_cv_prog_CC="cc"
11145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11146 break 2
11148 done
11149 done
11150 IFS=$as_save_IFS
11152 if test $ac_prog_rejected = yes; then
11153 # We found a bogon in the path, so make sure we never use it.
11154 set dummy $ac_cv_prog_CC
11155 shift
11156 if test $# != 0; then
11157 # We chose a different compiler from the bogus one.
11158 # However, it has the same basename, so the bogon will be chosen
11159 # first if we set CC to just the basename; use the full file name.
11160 shift
11161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11166 CC=$ac_cv_prog_CC
11167 if test -n "$CC"; then
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11169 $as_echo "$CC" >&6; }
11170 else
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11177 if test -z "$CC"; then
11178 if test -n "$ac_tool_prefix"; then
11179 for ac_prog in cl.exe
11181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184 $as_echo_n "checking for $ac_word... " >&6; }
11185 if test "${ac_cv_prog_CC+set}" = set; then :
11186 $as_echo_n "(cached) " >&6
11187 else
11188 if test -n "$CC"; then
11189 ac_cv_prog_CC="$CC" # Let the user override the test.
11190 else
11191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192 for as_dir in $PATH
11194 IFS=$as_save_IFS
11195 test -z "$as_dir" && as_dir=.
11196 for ac_exec_ext in '' $ac_executable_extensions; do
11197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11200 break 2
11202 done
11203 done
11204 IFS=$as_save_IFS
11208 CC=$ac_cv_prog_CC
11209 if test -n "$CC"; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11211 $as_echo "$CC" >&6; }
11212 else
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 $as_echo "no" >&6; }
11218 test -n "$CC" && break
11219 done
11221 if test -z "$CC"; then
11222 ac_ct_CC=$CC
11223 for ac_prog in cl.exe
11225 # Extract the first word of "$ac_prog", so it can be a program name with args.
11226 set dummy $ac_prog; ac_word=$2
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11228 $as_echo_n "checking for $ac_word... " >&6; }
11229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 if test -n "$ac_ct_CC"; then
11233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11234 else
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11238 IFS=$as_save_IFS
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11242 ac_cv_prog_ac_ct_CC="$ac_prog"
11243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 break 2
11246 done
11247 done
11248 IFS=$as_save_IFS
11252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11253 if test -n "$ac_ct_CC"; then
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11255 $as_echo "$ac_ct_CC" >&6; }
11256 else
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258 $as_echo "no" >&6; }
11262 test -n "$ac_ct_CC" && break
11263 done
11265 if test "x$ac_ct_CC" = x; then
11266 CC=""
11267 else
11268 case $cross_compiling:$ac_tool_warned in
11269 yes:)
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11272 ac_tool_warned=yes ;;
11273 esac
11274 CC=$ac_ct_CC
11281 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11283 as_fn_error "no acceptable C compiler found in \$PATH
11284 See \`config.log' for more details." "$LINENO" 5; }
11286 # Provide some information about the compiler.
11287 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11288 set X $ac_compile
11289 ac_compiler=$2
11290 for ac_option in --version -v -V -qversion; do
11291 { { ac_try="$ac_compiler $ac_option >&5"
11292 case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11295 esac
11296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11297 $as_echo "$ac_try_echo"; } >&5
11298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11299 ac_status=$?
11300 if test -s conftest.err; then
11301 sed '10a\
11302 ... rest of stderr output deleted ...
11303 10q' conftest.err >conftest.er1
11304 cat conftest.er1 >&5
11305 rm -f conftest.er1 conftest.err
11307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11308 test $ac_status = 0; }
11309 done
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11312 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11313 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11314 $as_echo_n "(cached) " >&6
11315 else
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11320 main ()
11322 #ifndef __GNUC__
11323 choke me
11324 #endif
11327 return 0;
11329 _ACEOF
11330 if ac_fn_c_try_compile "$LINENO"; then :
11331 ac_compiler_gnu=yes
11332 else
11333 ac_compiler_gnu=no
11335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11336 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11340 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11341 if test $ac_compiler_gnu = yes; then
11342 GCC=yes
11343 else
11344 GCC=
11346 ac_test_CFLAGS=${CFLAGS+set}
11347 ac_save_CFLAGS=$CFLAGS
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11349 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11350 if test "${ac_cv_prog_cc_g+set}" = set; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 ac_save_c_werror_flag=$ac_c_werror_flag
11354 ac_c_werror_flag=yes
11355 ac_cv_prog_cc_g=no
11356 CFLAGS="-g"
11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h. */
11361 main ()
11365 return 0;
11367 _ACEOF
11368 if ac_fn_c_try_compile "$LINENO"; then :
11369 ac_cv_prog_cc_g=yes
11370 else
11371 CFLAGS=""
11372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h. */
11376 main ()
11380 return 0;
11382 _ACEOF
11383 if ac_fn_c_try_compile "$LINENO"; then :
11385 else
11386 ac_c_werror_flag=$ac_save_c_werror_flag
11387 CFLAGS="-g"
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11392 main ()
11396 return 0;
11398 _ACEOF
11399 if ac_fn_c_try_compile "$LINENO"; then :
11400 ac_cv_prog_cc_g=yes
11402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 ac_c_werror_flag=$ac_save_c_werror_flag
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11410 $as_echo "$ac_cv_prog_cc_g" >&6; }
11411 if test "$ac_test_CFLAGS" = set; then
11412 CFLAGS=$ac_save_CFLAGS
11413 elif test $ac_cv_prog_cc_g = yes; then
11414 if test "$GCC" = yes; then
11415 CFLAGS="-g -O2"
11416 else
11417 CFLAGS="-g"
11419 else
11420 if test "$GCC" = yes; then
11421 CFLAGS="-O2"
11422 else
11423 CFLAGS=
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11427 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11428 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11430 else
11431 ac_cv_prog_cc_c89=no
11432 ac_save_CC=$CC
11433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434 /* end confdefs.h. */
11435 #include <stdarg.h>
11436 #include <stdio.h>
11437 #include <sys/types.h>
11438 #include <sys/stat.h>
11439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11440 struct buf { int x; };
11441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11442 static char *e (p, i)
11443 char **p;
11444 int i;
11446 return p[i];
11448 static char *f (char * (*g) (char **, int), char **p, ...)
11450 char *s;
11451 va_list v;
11452 va_start (v,p);
11453 s = g (p, va_arg (v,int));
11454 va_end (v);
11455 return s;
11458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11459 function prototypes and stuff, but not '\xHH' hex character constants.
11460 These don't provoke an error unfortunately, instead are silently treated
11461 as 'x'. The following induces an error, until -std is added to get
11462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11463 array size at least. It's necessary to write '\x00'==0 to get something
11464 that's true only with -std. */
11465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11467 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11468 inside strings and character constants. */
11469 #define FOO(x) 'x'
11470 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11472 int test (int i, double x);
11473 struct s1 {int (*f) (int a);};
11474 struct s2 {int (*f) (double a);};
11475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11476 int argc;
11477 char **argv;
11479 main ()
11481 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11483 return 0;
11485 _ACEOF
11486 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11487 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11489 CC="$ac_save_CC $ac_arg"
11490 if ac_fn_c_try_compile "$LINENO"; then :
11491 ac_cv_prog_cc_c89=$ac_arg
11493 rm -f core conftest.err conftest.$ac_objext
11494 test "x$ac_cv_prog_cc_c89" != "xno" && break
11495 done
11496 rm -f conftest.$ac_ext
11497 CC=$ac_save_CC
11500 # AC_CACHE_VAL
11501 case "x$ac_cv_prog_cc_c89" in
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11504 $as_echo "none needed" >&6; } ;;
11505 xno)
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11507 $as_echo "unsupported" >&6; } ;;
11509 CC="$CC $ac_cv_prog_cc_c89"
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11511 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11512 esac
11513 if test "x$ac_cv_prog_cc_c89" != xno; then :
11517 ac_ext=c
11518 ac_cpp='$CPP $CPPFLAGS'
11519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11523 depcc="$CC" am_compiler_list=
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11526 $as_echo_n "checking dependency style of $depcc... " >&6; }
11527 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11531 # We make a subdir and do the tests there. Otherwise we can end up
11532 # making bogus files that we don't know about and never remove. For
11533 # instance it was reported that on HP-UX the gcc test will end up
11534 # making a dummy file named `D' -- because `-MD' means `put the output
11535 # in D'.
11536 rm -rf conftest.dir
11537 mkdir conftest.dir
11538 # Copy depcomp to subdir because otherwise we won't find it if we're
11539 # using a relative directory.
11540 cp "$am_depcomp" conftest.dir
11541 cd conftest.dir
11542 # We will build objects and dependencies in a subdirectory because
11543 # it helps to detect inapplicable dependency modes. For instance
11544 # both Tru64's cc and ICC support -MD to output dependencies as a
11545 # side effect of compilation, but ICC will put the dependencies in
11546 # the current directory while Tru64 will put them in the object
11547 # directory.
11548 mkdir sub
11550 am_cv_CC_dependencies_compiler_type=none
11551 if test "$am_compiler_list" = ""; then
11552 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11554 am__universal=false
11555 case " $depcc " in #(
11556 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11557 esac
11559 for depmode in $am_compiler_list; do
11560 # Setup a source with many dependencies, because some compilers
11561 # like to wrap large dependency lists on column 80 (with \), and
11562 # we should not choose a depcomp mode which is confused by this.
11564 # We need to recreate these files for each test, as the compiler may
11565 # overwrite some of them when testing with obscure command lines.
11566 # This happens at least with the AIX C compiler.
11567 : > sub/conftest.c
11568 for i in 1 2 3 4 5 6; do
11569 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11570 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11571 # Solaris 8's {/usr,}/bin/sh.
11572 touch sub/conftst$i.h
11573 done
11574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11576 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11577 # mode. It turns out that the SunPro C++ compiler does not properly
11578 # handle `-M -o', and we need to detect this. Also, some Intel
11579 # versions had trouble with output in subdirs
11580 am__obj=sub/conftest.${OBJEXT-o}
11581 am__minus_obj="-o $am__obj"
11582 case $depmode in
11583 gcc)
11584 # This depmode causes a compiler race in universal mode.
11585 test "$am__universal" = false || continue
11587 nosideeffect)
11588 # after this tag, mechanisms are not by side-effect, so they'll
11589 # only be used when explicitly requested
11590 if test "x$enable_dependency_tracking" = xyes; then
11591 continue
11592 else
11593 break
11596 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11597 # This compiler won't grok `-c -o', but also, the minuso test has
11598 # not run yet. These depmodes are late enough in the game, and
11599 # so weak that their functioning should not be impacted.
11600 am__obj=conftest.${OBJEXT-o}
11601 am__minus_obj=
11603 none) break ;;
11604 esac
11605 if depmode=$depmode \
11606 source=sub/conftest.c object=$am__obj \
11607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11608 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11609 >/dev/null 2>conftest.err &&
11610 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11611 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11612 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11613 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11614 # icc doesn't choke on unknown options, it will just issue warnings
11615 # or remarks (even with -Werror). So we grep stderr for any message
11616 # that says an option was ignored or not supported.
11617 # When given -MP, icc 7.0 and 7.1 complain thusly:
11618 # icc: Command line warning: ignoring option '-M'; no argument required
11619 # The diagnosis changed in icc 8.0:
11620 # icc: Command line remark: option '-MP' not supported
11621 if (grep 'ignoring option' conftest.err ||
11622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11623 am_cv_CC_dependencies_compiler_type=$depmode
11624 break
11627 done
11629 cd ..
11630 rm -rf conftest.dir
11631 else
11632 am_cv_CC_dependencies_compiler_type=none
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11637 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11638 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11641 test "x$enable_dependency_tracking" != xno \
11642 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11643 am__fastdepCC_TRUE=
11644 am__fastdepCC_FALSE='#'
11645 else
11646 am__fastdepCC_TRUE='#'
11647 am__fastdepCC_FALSE=
11655 if test "x$CC" != xcc; then
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11657 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11658 else
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11660 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11662 set dummy $CC; ac_cc=`$as_echo "$2" |
11663 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11664 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11665 $as_echo_n "(cached) " >&6
11666 else
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11671 main ()
11675 return 0;
11677 _ACEOF
11678 # Make sure it works both with $CC and with simple cc.
11679 # We do the test twice because some compilers refuse to overwrite an
11680 # existing .o file with -o, though they will create one.
11681 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11682 rm -f conftest2.*
11683 if { { case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11686 esac
11687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11688 $as_echo "$ac_try_echo"; } >&5
11689 (eval "$ac_try") 2>&5
11690 ac_status=$?
11691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11692 test $ac_status = 0; } &&
11693 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11696 esac
11697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11698 $as_echo "$ac_try_echo"; } >&5
11699 (eval "$ac_try") 2>&5
11700 ac_status=$?
11701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11702 test $ac_status = 0; };
11703 then
11704 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11705 if test "x$CC" != xcc; then
11706 # Test first that cc exists at all.
11707 if { ac_try='cc -c conftest.$ac_ext >&5'
11708 { { case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11711 esac
11712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11713 $as_echo "$ac_try_echo"; } >&5
11714 (eval "$ac_try") 2>&5
11715 ac_status=$?
11716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11717 test $ac_status = 0; }; }; then
11718 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11719 rm -f conftest2.*
11720 if { { case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11723 esac
11724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11725 $as_echo "$ac_try_echo"; } >&5
11726 (eval "$ac_try") 2>&5
11727 ac_status=$?
11728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11729 test $ac_status = 0; } &&
11730 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732 *) ac_try_echo=$ac_try;;
11733 esac
11734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11735 $as_echo "$ac_try_echo"; } >&5
11736 (eval "$ac_try") 2>&5
11737 ac_status=$?
11738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11739 test $ac_status = 0; };
11740 then
11741 # cc works too.
11743 else
11744 # cc exists but doesn't like -o.
11745 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11749 else
11750 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11752 rm -f core conftest*
11755 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11757 $as_echo "yes" >&6; }
11758 else
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; }
11762 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11766 # FIXME: we rely on the cache variable name because
11767 # there is no other way.
11768 set dummy $CC
11769 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11770 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11771 if test "$am_t" != yes; then
11772 # Losing compiler, so override with the script.
11773 # FIXME: It is wrong to rewrite CC.
11774 # But if we don't then we get into trouble of one sort or another.
11775 # A longer-term fix would be to have automake use am__CC in this case,
11776 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11777 CC="$am_aux_dir/compile $CC"
11782 if test "x$GCC" != "xyes"; then
11783 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
11785 ac_ext=c
11786 ac_cpp='$CPP $CPPFLAGS'
11787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11791 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11792 # On Suns, sometimes $CPP names a directory.
11793 if test -n "$CPP" && test -d "$CPP"; then
11794 CPP=
11796 if test -z "$CPP"; then
11797 if test "${ac_cv_prog_CPP+set}" = set; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 # Double quotes because CPP needs to be expanded
11801 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11803 ac_preproc_ok=false
11804 for ac_c_preproc_warn_flag in '' yes
11806 # Use a header file that comes with gcc, so configuring glibc
11807 # with a fresh cross-compiler works.
11808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11809 # <limits.h> exists even on freestanding compilers.
11810 # On the NeXT, cc -E runs the code through the compiler's parser,
11811 # not just through cpp. "Syntax error" is here to catch this case.
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814 #ifdef __STDC__
11815 # include <limits.h>
11816 #else
11817 # include <assert.h>
11818 #endif
11819 Syntax error
11820 _ACEOF
11821 if ac_fn_c_try_cpp "$LINENO"; then :
11823 else
11824 # Broken: fails on valid input.
11825 continue
11827 rm -f conftest.err conftest.$ac_ext
11829 # OK, works on sane cases. Now check whether nonexistent headers
11830 # can be detected and how.
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11833 #include <ac_nonexistent.h>
11834 _ACEOF
11835 if ac_fn_c_try_cpp "$LINENO"; then :
11836 # Broken: success on invalid input.
11837 continue
11838 else
11839 # Passes both tests.
11840 ac_preproc_ok=:
11841 break
11843 rm -f conftest.err conftest.$ac_ext
11845 done
11846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11847 rm -f conftest.err conftest.$ac_ext
11848 if $ac_preproc_ok; then :
11849 break
11852 done
11853 ac_cv_prog_CPP=$CPP
11856 CPP=$ac_cv_prog_CPP
11857 else
11858 ac_cv_prog_CPP=$CPP
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11861 $as_echo "$CPP" >&6; }
11862 ac_preproc_ok=false
11863 for ac_c_preproc_warn_flag in '' yes
11865 # Use a header file that comes with gcc, so configuring glibc
11866 # with a fresh cross-compiler works.
11867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11868 # <limits.h> exists even on freestanding compilers.
11869 # On the NeXT, cc -E runs the code through the compiler's parser,
11870 # not just through cpp. "Syntax error" is here to catch this case.
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873 #ifdef __STDC__
11874 # include <limits.h>
11875 #else
11876 # include <assert.h>
11877 #endif
11878 Syntax error
11879 _ACEOF
11880 if ac_fn_c_try_cpp "$LINENO"; then :
11882 else
11883 # Broken: fails on valid input.
11884 continue
11886 rm -f conftest.err conftest.$ac_ext
11888 # OK, works on sane cases. Now check whether nonexistent headers
11889 # can be detected and how.
11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891 /* end confdefs.h. */
11892 #include <ac_nonexistent.h>
11893 _ACEOF
11894 if ac_fn_c_try_cpp "$LINENO"; then :
11895 # Broken: success on invalid input.
11896 continue
11897 else
11898 # Passes both tests.
11899 ac_preproc_ok=:
11900 break
11902 rm -f conftest.err conftest.$ac_ext
11904 done
11905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11906 rm -f conftest.err conftest.$ac_ext
11907 if $ac_preproc_ok; then :
11909 else
11910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11912 as_fn_error "C preprocessor \"$CPP\" fails sanity check
11913 See \`config.log' for more details." "$LINENO" 5; }
11916 ac_ext=c
11917 ac_cpp='$CPP $CPPFLAGS'
11918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11923 # Calculate toolexeclibdir
11924 # Also toolexecdir, though it's only used in toolexeclibdir
11925 case ${version_specific_libs} in
11926 yes)
11927 # Need the gcc compiler version to know where to install libraries
11928 # and header files if --enable-version-specific-runtime-libs option
11929 # is selected.
11930 toolexecdir='$(libdir)/gcc/$(target_alias)'
11931 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11934 if test -n "$with_cross_host" &&
11935 test x"$with_cross_host" != x"no"; then
11936 # Install a library built with a cross compiler in tooldir, not libdir.
11937 toolexecdir='$(exec_prefix)/$(target_alias)'
11938 toolexeclibdir='$(toolexecdir)/lib'
11939 else
11940 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11941 toolexeclibdir='$(libdir)'
11943 multi_os_directory=`$CC -print-multi-os-directory`
11944 case $multi_os_directory in
11945 .) ;; # Avoid trailing /.
11946 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11947 esac
11949 esac
11953 for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
11954 do :
11955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11956 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11957 eval as_val=\$$as_ac_Header
11958 if test "x$as_val" = x""yes; then :
11959 cat >>confdefs.h <<_ACEOF
11960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11961 _ACEOF
11965 done
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
11969 $as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
11970 if test "${libgfor_cv_have_math_h_signgam+set}" = set; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11974 save_CFLAGS="$CFLAGS"
11975 CFLAGS="$CFLAGS -Werror"
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11979 #include <math.h>
11980 void foo(void) { signgam = 1; }
11982 main ()
11986 return 0;
11988 _ACEOF
11989 if ac_fn_c_try_compile "$LINENO"; then :
11990 libgfor_cv_have_math_h_signgam=yes
11991 else
11992 libgfor_cv_have_math_h_signgam=no
11994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11995 CFLAGS="$save_CFLAGS"
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
11998 $as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
11999 if test $libgfor_cv_have_math_h_signgam = yes; then
12001 $as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
12005 # If available, sqrtl and cbrtl speed up the calculation -
12006 # but they are not required
12007 if test x$gcc_no_link != xyes; then
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
12009 $as_echo_n "checking for sqrtl in -lm... " >&6; }
12010 if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 ac_check_lib_save_LIBS=$LIBS
12014 LIBS="-lm $LIBS"
12015 if test x$gcc_no_link = xyes; then
12016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12021 /* Override any GCC internal prototype to avoid an error.
12022 Use char because int might match the return type of a GCC
12023 builtin and then its argument prototype would still apply. */
12024 #ifdef __cplusplus
12025 extern "C"
12026 #endif
12027 char sqrtl ();
12029 main ()
12031 return sqrtl ();
12033 return 0;
12035 _ACEOF
12036 if ac_fn_c_try_link "$LINENO"; then :
12037 ac_cv_lib_m_sqrtl=yes
12038 else
12039 ac_cv_lib_m_sqrtl=no
12041 rm -f core conftest.err conftest.$ac_objext \
12042 conftest$ac_exeext conftest.$ac_ext
12043 LIBS=$ac_check_lib_save_LIBS
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12046 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12047 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
12049 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
12054 $as_echo_n "checking for cbrtl in -lm... " >&6; }
12055 if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 ac_check_lib_save_LIBS=$LIBS
12059 LIBS="-lm $LIBS"
12060 if test x$gcc_no_link = xyes; then
12061 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h. */
12066 /* Override any GCC internal prototype to avoid an error.
12067 Use char because int might match the return type of a GCC
12068 builtin and then its argument prototype would still apply. */
12069 #ifdef __cplusplus
12070 extern "C"
12071 #endif
12072 char cbrtl ();
12074 main ()
12076 return cbrtl ();
12078 return 0;
12080 _ACEOF
12081 if ac_fn_c_try_link "$LINENO"; then :
12082 ac_cv_lib_m_cbrtl=yes
12083 else
12084 ac_cv_lib_m_cbrtl=no
12086 rm -f core conftest.err conftest.$ac_objext \
12087 conftest$ac_exeext conftest.$ac_ext
12088 LIBS=$ac_check_lib_save_LIBS
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12091 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12092 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
12094 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12099 $as_echo_n "checking for feholdexcept in -lm... " >&6; }
12100 if test "${ac_cv_lib_m_feholdexcept+set}" = set; then :
12101 $as_echo_n "(cached) " >&6
12102 else
12103 ac_check_lib_save_LIBS=$LIBS
12104 LIBS="-lm $LIBS"
12105 if test x$gcc_no_link = xyes; then
12106 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12111 /* Override any GCC internal prototype to avoid an error.
12112 Use char because int might match the return type of a GCC
12113 builtin and then its argument prototype would still apply. */
12114 #ifdef __cplusplus
12115 extern "C"
12116 #endif
12117 char feholdexcept ();
12119 main ()
12121 return feholdexcept ();
12123 return 0;
12125 _ACEOF
12126 if ac_fn_c_try_link "$LINENO"; then :
12127 ac_cv_lib_m_feholdexcept=yes
12128 else
12129 ac_cv_lib_m_feholdexcept=no
12131 rm -f core conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12133 LIBS=$ac_check_lib_save_LIBS
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12136 $as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12137 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then :
12139 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12144 $as_echo_n "checking for fesetround in -lm... " >&6; }
12145 if test "${ac_cv_lib_m_fesetround+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 ac_check_lib_save_LIBS=$LIBS
12149 LIBS="-lm $LIBS"
12150 if test x$gcc_no_link = xyes; then
12151 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12156 /* Override any GCC internal prototype to avoid an error.
12157 Use char because int might match the return type of a GCC
12158 builtin and then its argument prototype would still apply. */
12159 #ifdef __cplusplus
12160 extern "C"
12161 #endif
12162 char fesetround ();
12164 main ()
12166 return fesetround ();
12168 return 0;
12170 _ACEOF
12171 if ac_fn_c_try_link "$LINENO"; then :
12172 ac_cv_lib_m_fesetround=yes
12173 else
12174 ac_cv_lib_m_fesetround=no
12176 rm -f core conftest.err conftest.$ac_objext \
12177 conftest$ac_exeext conftest.$ac_ext
12178 LIBS=$ac_check_lib_save_LIBS
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12181 $as_echo "$ac_cv_lib_m_fesetround" >&6; }
12182 if test "x$ac_cv_lib_m_fesetround" = x""yes; then :
12184 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12189 $as_echo_n "checking for feupdateenv in -lm... " >&6; }
12190 if test "${ac_cv_lib_m_feupdateenv+set}" = set; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 ac_check_lib_save_LIBS=$LIBS
12194 LIBS="-lm $LIBS"
12195 if test x$gcc_no_link = xyes; then
12196 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h. */
12201 /* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12204 #ifdef __cplusplus
12205 extern "C"
12206 #endif
12207 char feupdateenv ();
12209 main ()
12211 return feupdateenv ();
12213 return 0;
12215 _ACEOF
12216 if ac_fn_c_try_link "$LINENO"; then :
12217 ac_cv_lib_m_feupdateenv=yes
12218 else
12219 ac_cv_lib_m_feupdateenv=no
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12223 LIBS=$ac_check_lib_save_LIBS
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12226 $as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12227 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then :
12229 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12234 $as_echo_n "checking for fesetenv in -lm... " >&6; }
12235 if test "${ac_cv_lib_m_fesetenv+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 ac_check_lib_save_LIBS=$LIBS
12239 LIBS="-lm $LIBS"
12240 if test x$gcc_no_link = xyes; then
12241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12249 #ifdef __cplusplus
12250 extern "C"
12251 #endif
12252 char fesetenv ();
12254 main ()
12256 return fesetenv ();
12258 return 0;
12260 _ACEOF
12261 if ac_fn_c_try_link "$LINENO"; then :
12262 ac_cv_lib_m_fesetenv=yes
12263 else
12264 ac_cv_lib_m_fesetenv=no
12266 rm -f core conftest.err conftest.$ac_objext \
12267 conftest$ac_exeext conftest.$ac_ext
12268 LIBS=$ac_check_lib_save_LIBS
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12271 $as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12272 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then :
12274 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12279 $as_echo_n "checking for fetestexcept in -lm... " >&6; }
12280 if test "${ac_cv_lib_m_fetestexcept+set}" = set; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 ac_check_lib_save_LIBS=$LIBS
12284 LIBS="-lm $LIBS"
12285 if test x$gcc_no_link = xyes; then
12286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12291 /* Override any GCC internal prototype to avoid an error.
12292 Use char because int might match the return type of a GCC
12293 builtin and then its argument prototype would still apply. */
12294 #ifdef __cplusplus
12295 extern "C"
12296 #endif
12297 char fetestexcept ();
12299 main ()
12301 return fetestexcept ();
12303 return 0;
12305 _ACEOF
12306 if ac_fn_c_try_link "$LINENO"; then :
12307 ac_cv_lib_m_fetestexcept=yes
12308 else
12309 ac_cv_lib_m_fetestexcept=no
12311 rm -f core conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12313 LIBS=$ac_check_lib_save_LIBS
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12316 $as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12317 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then :
12319 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12323 for ac_func in strtoull
12324 do :
12325 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12326 if test "x$ac_cv_func_strtoull" = x""yes; then :
12327 cat >>confdefs.h <<_ACEOF
12328 #define HAVE_STRTOULL 1
12329 _ACEOF
12332 done
12334 else
12335 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12337 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12340 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12342 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12345 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12347 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12350 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12352 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12355 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12357 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12360 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12362 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12365 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12367 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12372 # Check for hidden visibility (copied from libssp).
12373 saved_CFLAGS="$CFLAGS"
12374 CFLAGS="$CFLAGS -Werror"
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12376 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12380 void __attribute__((visibility ("hidden"))) bar (void) {}
12382 main ()
12386 return 0;
12388 _ACEOF
12389 if ac_fn_c_try_compile "$LINENO"; then :
12390 quadmath_hidden=yes
12391 else
12392 quadmath_hidden=no
12394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12396 $as_echo "$quadmath_hidden" >&6; }
12397 if test x$quadmath_hidden = xyes; then
12399 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12402 CFLAGS="$saved_CFLAGS"
12404 # Check for symbol versioning (copied from libssp).
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12406 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
12407 # Check whether --enable-symvers was given.
12408 if test "${enable_symvers+set}" = set; then :
12409 enableval=$enable_symvers; quadmath_use_symver=$enableval
12410 else
12411 quadmath_use_symver=yes
12414 if test "x$quadmath_use_symver" != xno; then
12415 if test x$gcc_no_link = xyes; then
12416 # If we cannot link, we cannot build shared libraries, so do not use
12417 # symbol versioning.
12418 quadmath_use_symver=no
12419 else
12420 save_LDFLAGS="$LDFLAGS"
12421 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12422 cat > conftest.map <<EOF
12423 FOO_1.0 {
12424 global: *foo*; bar; local: *;
12427 if test x$gcc_no_link = xyes; then
12428 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432 int foo;
12434 main ()
12438 return 0;
12440 _ACEOF
12441 if ac_fn_c_try_link "$LINENO"; then :
12442 quadmath_use_symver=gnu
12443 else
12444 quadmath_use_symver=no
12446 rm -f core conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12448 if test x$quadmath_use_symver = xno; then
12449 case "$target_os" in
12450 solaris2*)
12451 LDFLAGS="$save_LDFLAGS"
12452 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12453 # Sun ld cannot handle wildcards and treats all entries as undefined.
12454 cat > conftest.map <<EOF
12455 FOO_1.0 {
12456 global: foo; local: *;
12459 if test x$gcc_no_link = xyes; then
12460 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12464 int foo;
12466 main ()
12470 return 0;
12472 _ACEOF
12473 if ac_fn_c_try_link "$LINENO"; then :
12474 quadmath_use_symver=sun
12475 else
12476 quadmath_use_symver=no
12478 rm -f core conftest.err conftest.$ac_objext \
12479 conftest$ac_exeext conftest.$ac_ext
12481 esac
12483 LDFLAGS="$save_LDFLAGS"
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12487 $as_echo "$quadmath_use_symver" >&6; }
12488 if test "x$quadmath_use_symver" != xno; then
12489 LIBQUAD_USE_SYMVER_TRUE=
12490 LIBQUAD_USE_SYMVER_FALSE='#'
12491 else
12492 LIBQUAD_USE_SYMVER_TRUE='#'
12493 LIBQUAD_USE_SYMVER_FALSE=
12496 if test "x$quadmath_use_symver" = xgnu; then
12497 LIBQUAD_USE_SYMVER_GNU_TRUE=
12498 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12499 else
12500 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12501 LIBQUAD_USE_SYMVER_GNU_FALSE=
12504 if test "x$quadmath_use_symver" = xsun; then
12505 LIBQUAD_USE_SYMVER_SUN_TRUE=
12506 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12507 else
12508 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12509 LIBQUAD_USE_SYMVER_SUN_FALSE=
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12514 $as_echo_n "checking whether __float128 is supported... " >&6; }
12515 if test "${libquad_cv_have_float128+set}" = set; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 if test x$gcc_no_link = xyes; then
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h. */
12522 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12523 typedef _Complex float __attribute__((mode(TC))) __complex128;
12524 #else
12525 typedef _Complex float __attribute__((mode(KC))) __complex128;
12526 #endif
12528 __float128 foo (__float128 x)
12531 __complex128 z1, z2;
12533 z1 = x;
12534 z2 = x / 7.Q;
12535 z2 /= z1;
12537 return (__float128) z2;
12540 __float128 bar (__float128 x)
12542 return x * __builtin_huge_valq ();
12546 main ()
12549 foo (1.2Q);
12550 bar (1.2Q);
12553 return 0;
12555 _ACEOF
12556 if ac_fn_c_try_compile "$LINENO"; then :
12558 libquad_cv_have_float128=yes
12560 else
12562 libquad_cv_have_float128=no
12565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12566 else
12567 if test x$gcc_no_link = xyes; then
12568 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12573 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12574 typedef _Complex float __attribute__((mode(TC))) __complex128;
12575 #else
12576 typedef _Complex float __attribute__((mode(KC))) __complex128;
12577 #endif
12579 __float128 foo (__float128 x)
12582 __complex128 z1, z2;
12584 z1 = x;
12585 z2 = x / 7.Q;
12586 z2 /= z1;
12588 return (__float128) z2;
12591 __float128 bar (__float128 x)
12593 return x * __builtin_huge_valq ();
12597 main ()
12600 foo (1.2Q);
12601 bar (1.2Q);
12604 return 0;
12606 _ACEOF
12607 if ac_fn_c_try_link "$LINENO"; then :
12609 libquad_cv_have_float128=yes
12611 else
12613 libquad_cv_have_float128=no
12616 rm -f core conftest.err conftest.$ac_objext \
12617 conftest$ac_exeext conftest.$ac_ext
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12621 $as_echo "$libquad_cv_have_float128" >&6; }
12622 if test "x$libquad_cv_have_float128" = xyes; then
12623 BUILD_LIBQUADMATH_TRUE=
12624 BUILD_LIBQUADMATH_FALSE='#'
12625 else
12626 BUILD_LIBQUADMATH_TRUE='#'
12627 BUILD_LIBQUADMATH_FALSE=
12631 # Check for printf hook support.
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12633 $as_echo_n "checking whether printf hooks are supported... " >&6; }
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12637 #include <printf.h>
12638 #include <stdarg.h>
12639 #include <stdlib.h>
12640 extern void flt128_va (void *, va_list *);
12641 extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12642 extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12645 main ()
12648 int pa_flt128 = register_printf_type (flt128_va);
12649 int mod_Q = register_printf_modifier (L"Q");
12650 int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12651 struct printf_info info = { .user = -1 };
12654 return 0;
12656 _ACEOF
12657 if ac_fn_c_try_compile "$LINENO"; then :
12658 quadmath_printf_hooks=yes
12659 else
12660 quadmath_printf_hooks=no
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12664 $as_echo "$quadmath_printf_hooks" >&6; }
12665 if test x$quadmath_printf_hooks = xyes; then
12667 $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12671 # Check for whether locale support for quadmath_snprintf or Q printf hooks
12672 # should be provided.
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12674 $as_echo_n "checking whether nl_langinfo should be used... " >&6; }
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 #include <langinfo.h>
12679 main ()
12682 const char *s;
12683 s = nl_langinfo (DECIMAL_POINT);
12684 s = nl_langinfo (MON_DECIMAL_POINT);
12685 s = nl_langinfo (GROUPING);
12686 s = nl_langinfo (MON_GROUPING);
12687 s = nl_langinfo (THOUSANDS_SEP);
12688 s = nl_langinfo (MON_THOUSANDS_SEP);
12689 (void) s;
12692 return 0;
12694 _ACEOF
12695 if ac_fn_c_try_compile "$LINENO"; then :
12696 quadmath_use_nl_langinfo=yes
12697 else
12698 quadmath_use_nl_langinfo=no
12700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12702 $as_echo "$quadmath_use_nl_langinfo" >&6; }
12703 if test x$quadmath_use_nl_langinfo = xyes; then
12705 $as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12710 $as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12713 #include <langinfo.h>
12715 main ()
12718 const char *s;
12719 s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12720 s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12721 s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12722 s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
12723 (void) s;
12726 return 0;
12728 _ACEOF
12729 if ac_fn_c_try_compile "$LINENO"; then :
12730 quadmath_use_nl_langinfo_wc=yes
12731 else
12732 quadmath_use_nl_langinfo_wc=no
12734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12736 $as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12737 if test x$quadmath_use_nl_langinfo_wc = xyes; then
12739 $as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12744 $as_echo_n "checking whether localeconv should be used... " >&6; }
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12747 #include <locale.h>
12749 main ()
12752 const struct lconv *l = localeconv ();
12753 const char *s;
12754 s = l->decimal_point;
12755 s = l->mon_decimal_point;
12756 s = l->grouping;
12757 s = l->mon_grouping;
12758 s = l->thousands_sep;
12759 s = l->mon_thousands_sep;
12760 (void) s;
12763 return 0;
12765 _ACEOF
12766 if ac_fn_c_try_compile "$LINENO"; then :
12767 quadmath_use_localeconv=yes
12768 else
12769 quadmath_use_localeconv=no
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
12773 $as_echo "$quadmath_use_localeconv" >&6; }
12774 if test x$quadmath_use_localeconv = xyes; then
12776 $as_echo "#define USE_LOCALECONV 1" >>confdefs.h
12780 # Check for whether i18n number rewriting support for quadmath_snprintf
12781 # or Q printf hooks should be provided.
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12783 $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786 #include <langinfo.h>
12787 #include <limits.h>
12788 #include <string.h>
12789 #include <wchar.h>
12790 #include <wctype.h>
12792 main ()
12795 const char *s;
12796 char decimal[MB_LEN_MAX];
12797 wctrans_t map = wctrans ("to_outpunct");
12798 wint_t wdecimal = towctrans (L'.', map);
12799 mbstate_t state;
12800 memset (&state, '\0', sizeof (state));
12801 wcrtomb (decimal, wdecimal, &state);
12802 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
12803 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
12804 s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
12805 (void) s;
12808 return 0;
12810 _ACEOF
12811 if ac_fn_c_try_compile "$LINENO"; then :
12812 quadmath_use_i18n_number_h=yes
12813 else
12814 quadmath_use_i18n_number_h=no
12816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
12818 $as_echo "$quadmath_use_i18n_number_h" >&6; }
12819 if test x$quadmath_use_i18n_number_h = xyes; then
12821 $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
12825 # Add CET specific flags if CET is enabled
12826 # Check whether --enable-cet was given.
12827 if test "${enable_cet+set}" = set; then :
12828 enableval=$enable_cet;
12829 case "$enableval" in
12830 yes|no|auto) ;;
12831 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12832 esac
12834 else
12835 enable_cet=no
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12840 $as_echo_n "checking for CET support... " >&6; }
12842 case "$host" in
12843 i[34567]86-*-linux* | x86_64-*-linux*)
12844 case "$enable_cet" in
12845 auto)
12846 # Check if target supports multi-byte NOPs
12847 # and if assembler supports CET insn.
12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12849 /* end confdefs.h. */
12852 main ()
12855 #if !defined(__SSE2__)
12856 #error target does not support multi-byte NOPs
12857 #else
12858 asm ("setssbsy");
12859 #endif
12862 return 0;
12864 _ACEOF
12865 if ac_fn_c_try_compile "$LINENO"; then :
12866 enable_cet=yes
12867 else
12868 enable_cet=no
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 yes)
12873 # Check if assembler supports CET.
12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875 /* end confdefs.h. */
12878 main ()
12880 asm ("setssbsy");
12882 return 0;
12884 _ACEOF
12885 if ac_fn_c_try_compile "$LINENO"; then :
12887 else
12888 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892 esac
12895 enable_cet=no
12897 esac
12898 if test x$enable_cet = xyes; then
12899 CET_FLAGS="-fcf-protection -mshstk"
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12901 $as_echo "yes" >&6; }
12902 else
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 $as_echo "no" >&6; }
12907 XCFLAGS="$XCFLAGS $CET_FLAGS"
12910 cat >confcache <<\_ACEOF
12911 # This file is a shell script that caches the results of configure
12912 # tests run on this system so they can be shared between configure
12913 # scripts and configure runs, see configure's option --config-cache.
12914 # It is not useful on other systems. If it contains results you don't
12915 # want to keep, you may remove or edit it.
12917 # config.status only pays attention to the cache file if you give it
12918 # the --recheck option to rerun configure.
12920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12922 # following values.
12924 _ACEOF
12926 # The following way of writing the cache mishandles newlines in values,
12927 # but we know of no workaround that is simple, portable, and efficient.
12928 # So, we kill variables containing newlines.
12929 # Ultrix sh set writes to stderr and can't be redirected directly,
12930 # and sets the high bit in the cache file unless we assign to the vars.
12932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12933 eval ac_val=\$$ac_var
12934 case $ac_val in #(
12935 *${as_nl}*)
12936 case $ac_var in #(
12937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12939 esac
12940 case $ac_var in #(
12941 _ | IFS | as_nl) ;; #(
12942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12943 *) { eval $ac_var=; unset $ac_var;} ;;
12944 esac ;;
12945 esac
12946 done
12948 (set) 2>&1 |
12949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12950 *${as_nl}ac_space=\ *)
12951 # `set' does not quote correctly, so add quotes: double-quote
12952 # substitution turns \\\\ into \\, and sed turns \\ into \.
12953 sed -n \
12954 "s/'/'\\\\''/g;
12955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12956 ;; #(
12958 # `set' quotes correctly as required by POSIX, so do not add quotes.
12959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12961 esac |
12962 sort
12964 sed '
12965 /^ac_cv_env_/b end
12966 t clear
12967 :clear
12968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12969 t end
12970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12971 :end' >>confcache
12972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12973 if test -w "$cache_file"; then
12974 test "x$cache_file" != "x/dev/null" &&
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12976 $as_echo "$as_me: updating cache $cache_file" >&6;}
12977 cat confcache >$cache_file
12978 else
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12980 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12983 rm -f confcache
12985 if test ${multilib} = yes; then
12986 multilib_arg="--enable-multilib"
12987 else
12988 multilib_arg=
12992 # We would like our source tree to be readonly. However when releases or
12993 # pre-releases are generated, the flex/bison generated files as well as the
12994 # various formats of manuals need to be included along with the rest of the
12995 # sources. Therefore we have --enable-generated-files-in-srcdir to do
12996 # just that.
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12998 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
12999 # Check whether --enable-generated-files-in-srcdir was given.
13000 if test "${enable_generated_files_in_srcdir+set}" = set; then :
13001 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
13002 yes) enable_generated_files_in_srcdir=yes ;;
13003 no) enable_generated_files_in_srcdir=no ;;
13004 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13005 esac
13006 else
13007 enable_generated_files_in_srcdir=no
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
13011 $as_echo "$enable_generated_files_in_srcdir" >&6; }
13012 if test "$enable_generated_files_in_srcdir" = yes; then
13013 GENINSRC_TRUE=
13014 GENINSRC_FALSE='#'
13015 else
13016 GENINSRC_TRUE='#'
13017 GENINSRC_FALSE=
13021 # Determine what GCC version number to use in filesystem paths.
13023 get_gcc_base_ver="cat"
13025 # Check whether --with-gcc-major-version-only was given.
13026 if test "${with_gcc_major_version_only+set}" = set; then :
13027 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13028 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13036 ac_config_files="$ac_config_files Makefile"
13038 cat >confcache <<\_ACEOF
13039 # This file is a shell script that caches the results of configure
13040 # tests run on this system so they can be shared between configure
13041 # scripts and configure runs, see configure's option --config-cache.
13042 # It is not useful on other systems. If it contains results you don't
13043 # want to keep, you may remove or edit it.
13045 # config.status only pays attention to the cache file if you give it
13046 # the --recheck option to rerun configure.
13048 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13049 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13050 # following values.
13052 _ACEOF
13054 # The following way of writing the cache mishandles newlines in values,
13055 # but we know of no workaround that is simple, portable, and efficient.
13056 # So, we kill variables containing newlines.
13057 # Ultrix sh set writes to stderr and can't be redirected directly,
13058 # and sets the high bit in the cache file unless we assign to the vars.
13060 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13061 eval ac_val=\$$ac_var
13062 case $ac_val in #(
13063 *${as_nl}*)
13064 case $ac_var in #(
13065 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13066 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13067 esac
13068 case $ac_var in #(
13069 _ | IFS | as_nl) ;; #(
13070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13071 *) { eval $ac_var=; unset $ac_var;} ;;
13072 esac ;;
13073 esac
13074 done
13076 (set) 2>&1 |
13077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13078 *${as_nl}ac_space=\ *)
13079 # `set' does not quote correctly, so add quotes: double-quote
13080 # substitution turns \\\\ into \\, and sed turns \\ into \.
13081 sed -n \
13082 "s/'/'\\\\''/g;
13083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13084 ;; #(
13086 # `set' quotes correctly as required by POSIX, so do not add quotes.
13087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13089 esac |
13090 sort
13092 sed '
13093 /^ac_cv_env_/b end
13094 t clear
13095 :clear
13096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13097 t end
13098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13099 :end' >>confcache
13100 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13101 if test -w "$cache_file"; then
13102 test "x$cache_file" != "x/dev/null" &&
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13104 $as_echo "$as_me: updating cache $cache_file" >&6;}
13105 cat confcache >$cache_file
13106 else
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13108 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13111 rm -f confcache
13113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13114 # Let make expand exec_prefix.
13115 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13117 DEFS=-DHAVE_CONFIG_H
13119 ac_libobjs=
13120 ac_ltlibobjs=
13121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13122 # 1. Remove the extension, and $U if already installed.
13123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13124 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13126 # will be set to the directory where LIBOBJS objects are built.
13127 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13128 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13129 done
13130 LIBOBJS=$ac_libobjs
13132 LTLIBOBJS=$ac_ltlibobjs
13135 if test -n "$EXEEXT"; then
13136 am__EXEEXT_TRUE=
13137 am__EXEEXT_FALSE='#'
13138 else
13139 am__EXEEXT_TRUE='#'
13140 am__EXEEXT_FALSE=
13143 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13144 as_fn_error "conditional \"AMDEP\" was never defined.
13145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13147 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13148 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13151 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13152 as_fn_error "conditional \"BUILD_INFO\" was never defined.
13153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13155 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13156 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13159 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13160 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13163 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13164 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13167 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13168 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13171 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13172 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13175 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13176 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
13177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13179 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13180 as_fn_error "conditional \"GENINSRC\" was never defined.
13181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13184 : ${CONFIG_STATUS=./config.status}
13185 ac_write_fail=0
13186 ac_clean_files_save=$ac_clean_files
13187 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13189 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13190 as_write_fail=0
13191 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13192 #! $SHELL
13193 # Generated by $as_me.
13194 # Run this file to recreate the current configuration.
13195 # Compiler output produced by configure, useful for debugging
13196 # configure, is in config.log if it exists.
13198 debug=false
13199 ac_cs_recheck=false
13200 ac_cs_silent=false
13202 SHELL=\${CONFIG_SHELL-$SHELL}
13203 export SHELL
13204 _ASEOF
13205 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13206 ## -------------------- ##
13207 ## M4sh Initialization. ##
13208 ## -------------------- ##
13210 # Be more Bourne compatible
13211 DUALCASE=1; export DUALCASE # for MKS sh
13212 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13213 emulate sh
13214 NULLCMD=:
13215 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13216 # is contrary to our usage. Disable this feature.
13217 alias -g '${1+"$@"}'='"$@"'
13218 setopt NO_GLOB_SUBST
13219 else
13220 case `(set -o) 2>/dev/null` in #(
13221 *posix*) :
13222 set -o posix ;; #(
13223 *) :
13225 esac
13229 as_nl='
13231 export as_nl
13232 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13233 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13234 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13235 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13236 # Prefer a ksh shell builtin over an external printf program on Solaris,
13237 # but without wasting forks for bash or zsh.
13238 if test -z "$BASH_VERSION$ZSH_VERSION" \
13239 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13240 as_echo='print -r --'
13241 as_echo_n='print -rn --'
13242 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13243 as_echo='printf %s\n'
13244 as_echo_n='printf %s'
13245 else
13246 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13247 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13248 as_echo_n='/usr/ucb/echo -n'
13249 else
13250 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13251 as_echo_n_body='eval
13252 arg=$1;
13253 case $arg in #(
13254 *"$as_nl"*)
13255 expr "X$arg" : "X\\(.*\\)$as_nl";
13256 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13257 esac;
13258 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13260 export as_echo_n_body
13261 as_echo_n='sh -c $as_echo_n_body as_echo'
13263 export as_echo_body
13264 as_echo='sh -c $as_echo_body as_echo'
13267 # The user is always right.
13268 if test "${PATH_SEPARATOR+set}" != set; then
13269 PATH_SEPARATOR=:
13270 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13271 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13272 PATH_SEPARATOR=';'
13277 # IFS
13278 # We need space, tab and new line, in precisely that order. Quoting is
13279 # there to prevent editors from complaining about space-tab.
13280 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13281 # splitting by setting IFS to empty value.)
13282 IFS=" "" $as_nl"
13284 # Find who we are. Look in the path if we contain no directory separator.
13285 case $0 in #((
13286 *[\\/]* ) as_myself=$0 ;;
13287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288 for as_dir in $PATH
13290 IFS=$as_save_IFS
13291 test -z "$as_dir" && as_dir=.
13292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13293 done
13294 IFS=$as_save_IFS
13297 esac
13298 # We did not find ourselves, most probably we were run as `sh COMMAND'
13299 # in which case we are not to be found in the path.
13300 if test "x$as_myself" = x; then
13301 as_myself=$0
13303 if test ! -f "$as_myself"; then
13304 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13305 exit 1
13308 # Unset variables that we do not need and which cause bugs (e.g. in
13309 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13310 # suppresses any "Segmentation fault" message there. '((' could
13311 # trigger a bug in pdksh 5.2.14.
13312 for as_var in BASH_ENV ENV MAIL MAILPATH
13313 do eval test x\${$as_var+set} = xset \
13314 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13315 done
13316 PS1='$ '
13317 PS2='> '
13318 PS4='+ '
13320 # NLS nuisances.
13321 LC_ALL=C
13322 export LC_ALL
13323 LANGUAGE=C
13324 export LANGUAGE
13326 # CDPATH.
13327 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13330 # as_fn_error ERROR [LINENO LOG_FD]
13331 # ---------------------------------
13332 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13333 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13334 # script with status $?, using 1 if that was 0.
13335 as_fn_error ()
13337 as_status=$?; test $as_status -eq 0 && as_status=1
13338 if test "$3"; then
13339 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13340 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13342 $as_echo "$as_me: error: $1" >&2
13343 as_fn_exit $as_status
13344 } # as_fn_error
13347 # as_fn_set_status STATUS
13348 # -----------------------
13349 # Set $? to STATUS, without forking.
13350 as_fn_set_status ()
13352 return $1
13353 } # as_fn_set_status
13355 # as_fn_exit STATUS
13356 # -----------------
13357 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13358 as_fn_exit ()
13360 set +e
13361 as_fn_set_status $1
13362 exit $1
13363 } # as_fn_exit
13365 # as_fn_unset VAR
13366 # ---------------
13367 # Portably unset VAR.
13368 as_fn_unset ()
13370 { eval $1=; unset $1;}
13372 as_unset=as_fn_unset
13373 # as_fn_append VAR VALUE
13374 # ----------------------
13375 # Append the text in VALUE to the end of the definition contained in VAR. Take
13376 # advantage of any shell optimizations that allow amortized linear growth over
13377 # repeated appends, instead of the typical quadratic growth present in naive
13378 # implementations.
13379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13380 eval 'as_fn_append ()
13382 eval $1+=\$2
13384 else
13385 as_fn_append ()
13387 eval $1=\$$1\$2
13389 fi # as_fn_append
13391 # as_fn_arith ARG...
13392 # ------------------
13393 # Perform arithmetic evaluation on the ARGs, and store the result in the
13394 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13395 # must be portable across $(()) and expr.
13396 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13397 eval 'as_fn_arith ()
13399 as_val=$(( $* ))
13401 else
13402 as_fn_arith ()
13404 as_val=`expr "$@" || test $? -eq 1`
13406 fi # as_fn_arith
13409 if expr a : '\(a\)' >/dev/null 2>&1 &&
13410 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13411 as_expr=expr
13412 else
13413 as_expr=false
13416 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13417 as_basename=basename
13418 else
13419 as_basename=false
13422 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13423 as_dirname=dirname
13424 else
13425 as_dirname=false
13428 as_me=`$as_basename -- "$0" ||
13429 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13430 X"$0" : 'X\(//\)$' \| \
13431 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13432 $as_echo X/"$0" |
13433 sed '/^.*\/\([^/][^/]*\)\/*$/{
13434 s//\1/
13437 /^X\/\(\/\/\)$/{
13438 s//\1/
13441 /^X\/\(\/\).*/{
13442 s//\1/
13445 s/.*/./; q'`
13447 # Avoid depending upon Character Ranges.
13448 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13449 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13450 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13451 as_cr_digits='0123456789'
13452 as_cr_alnum=$as_cr_Letters$as_cr_digits
13454 ECHO_C= ECHO_N= ECHO_T=
13455 case `echo -n x` in #(((((
13456 -n*)
13457 case `echo 'xy\c'` in
13458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13459 xy) ECHO_C='\c';;
13460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13461 ECHO_T=' ';;
13462 esac;;
13464 ECHO_N='-n';;
13465 esac
13467 rm -f conf$$ conf$$.exe conf$$.file
13468 if test -d conf$$.dir; then
13469 rm -f conf$$.dir/conf$$.file
13470 else
13471 rm -f conf$$.dir
13472 mkdir conf$$.dir 2>/dev/null
13474 if (echo >conf$$.file) 2>/dev/null; then
13475 if ln -s conf$$.file conf$$ 2>/dev/null; then
13476 as_ln_s='ln -s'
13477 # ... but there are two gotchas:
13478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13480 # In both cases, we have to default to `cp -p'.
13481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13482 as_ln_s='cp -p'
13483 elif ln conf$$.file conf$$ 2>/dev/null; then
13484 as_ln_s=ln
13485 else
13486 as_ln_s='cp -p'
13488 else
13489 as_ln_s='cp -p'
13491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13492 rmdir conf$$.dir 2>/dev/null
13495 # as_fn_mkdir_p
13496 # -------------
13497 # Create "$as_dir" as a directory, including parents if necessary.
13498 as_fn_mkdir_p ()
13501 case $as_dir in #(
13502 -*) as_dir=./$as_dir;;
13503 esac
13504 test -d "$as_dir" || eval $as_mkdir_p || {
13505 as_dirs=
13506 while :; do
13507 case $as_dir in #(
13508 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13509 *) as_qdir=$as_dir;;
13510 esac
13511 as_dirs="'$as_qdir' $as_dirs"
13512 as_dir=`$as_dirname -- "$as_dir" ||
13513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13514 X"$as_dir" : 'X\(//\)[^/]' \| \
13515 X"$as_dir" : 'X\(//\)$' \| \
13516 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13517 $as_echo X"$as_dir" |
13518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13519 s//\1/
13522 /^X\(\/\/\)[^/].*/{
13523 s//\1/
13526 /^X\(\/\/\)$/{
13527 s//\1/
13530 /^X\(\/\).*/{
13531 s//\1/
13534 s/.*/./; q'`
13535 test -d "$as_dir" && break
13536 done
13537 test -z "$as_dirs" || eval "mkdir $as_dirs"
13538 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13541 } # as_fn_mkdir_p
13542 if mkdir -p . 2>/dev/null; then
13543 as_mkdir_p='mkdir -p "$as_dir"'
13544 else
13545 test -d ./-p && rmdir ./-p
13546 as_mkdir_p=false
13549 if test -x / >/dev/null 2>&1; then
13550 as_test_x='test -x'
13551 else
13552 if ls -dL / >/dev/null 2>&1; then
13553 as_ls_L_option=L
13554 else
13555 as_ls_L_option=
13557 as_test_x='
13558 eval sh -c '\''
13559 if test -d "$1"; then
13560 test -d "$1/.";
13561 else
13562 case $1 in #(
13563 -*)set "./$1";;
13564 esac;
13565 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13566 ???[sx]*):;;*)false;;esac;fi
13567 '\'' sh
13570 as_executable_p=$as_test_x
13572 # Sed expression to map a string onto a valid CPP name.
13573 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13575 # Sed expression to map a string onto a valid variable name.
13576 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13579 exec 6>&1
13580 ## ----------------------------------- ##
13581 ## Main body of $CONFIG_STATUS script. ##
13582 ## ----------------------------------- ##
13583 _ASEOF
13584 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13587 # Save the log message, to keep $0 and so on meaningful, and to
13588 # report actual input values of CONFIG_FILES etc. instead of their
13589 # values after options handling.
13590 ac_log="
13591 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13592 generated by GNU Autoconf 2.64. Invocation command line was
13594 CONFIG_FILES = $CONFIG_FILES
13595 CONFIG_HEADERS = $CONFIG_HEADERS
13596 CONFIG_LINKS = $CONFIG_LINKS
13597 CONFIG_COMMANDS = $CONFIG_COMMANDS
13598 $ $0 $@
13600 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13603 _ACEOF
13605 case $ac_config_files in *"
13606 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13607 esac
13609 case $ac_config_headers in *"
13610 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13611 esac
13614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13615 # Files that config.status was made for.
13616 config_files="$ac_config_files"
13617 config_headers="$ac_config_headers"
13618 config_commands="$ac_config_commands"
13620 _ACEOF
13622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13623 ac_cs_usage="\
13624 \`$as_me' instantiates files and other configuration actions
13625 from templates according to the current configuration. Unless the files
13626 and actions are specified as TAGs, all are instantiated by default.
13628 Usage: $0 [OPTION]... [TAG]...
13630 -h, --help print this help, then exit
13631 -V, --version print version number and configuration settings, then exit
13632 -q, --quiet, --silent
13633 do not print progress messages
13634 -d, --debug don't remove temporary files
13635 --recheck update $as_me by reconfiguring in the same conditions
13636 --file=FILE[:TEMPLATE]
13637 instantiate the configuration file FILE
13638 --header=FILE[:TEMPLATE]
13639 instantiate the configuration header FILE
13641 Configuration files:
13642 $config_files
13644 Configuration headers:
13645 $config_headers
13647 Configuration commands:
13648 $config_commands
13650 Report bugs to the package provider."
13652 _ACEOF
13653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13654 ac_cs_version="\\
13655 GCC Quad-precision Math Library config.status 0.1
13656 configured by $0, generated by GNU Autoconf 2.64,
13657 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13659 Copyright (C) 2009 Free Software Foundation, Inc.
13660 This config.status script is free software; the Free Software Foundation
13661 gives unlimited permission to copy, distribute and modify it."
13663 ac_pwd='$ac_pwd'
13664 srcdir='$srcdir'
13665 INSTALL='$INSTALL'
13666 MKDIR_P='$MKDIR_P'
13667 AWK='$AWK'
13668 test -n "\$AWK" || AWK=awk
13669 _ACEOF
13671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13672 # The default lists apply if the user does not specify any file.
13673 ac_need_defaults=:
13674 while test $# != 0
13676 case $1 in
13677 --*=*)
13678 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13679 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13680 ac_shift=:
13683 ac_option=$1
13684 ac_optarg=$2
13685 ac_shift=shift
13687 esac
13689 case $ac_option in
13690 # Handling of the options.
13691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13692 ac_cs_recheck=: ;;
13693 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13694 $as_echo "$ac_cs_version"; exit ;;
13695 --debug | --debu | --deb | --de | --d | -d )
13696 debug=: ;;
13697 --file | --fil | --fi | --f )
13698 $ac_shift
13699 case $ac_optarg in
13700 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13701 esac
13702 as_fn_append CONFIG_FILES " '$ac_optarg'"
13703 ac_need_defaults=false;;
13704 --header | --heade | --head | --hea )
13705 $ac_shift
13706 case $ac_optarg in
13707 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13708 esac
13709 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13710 ac_need_defaults=false;;
13711 --he | --h)
13712 # Conflict between --help and --header
13713 as_fn_error "ambiguous option: \`$1'
13714 Try \`$0 --help' for more information.";;
13715 --help | --hel | -h )
13716 $as_echo "$ac_cs_usage"; exit ;;
13717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13718 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13719 ac_cs_silent=: ;;
13721 # This is an error.
13722 -*) as_fn_error "unrecognized option: \`$1'
13723 Try \`$0 --help' for more information." ;;
13725 *) as_fn_append ac_config_targets " $1"
13726 ac_need_defaults=false ;;
13728 esac
13729 shift
13730 done
13732 ac_configure_extra_args=
13734 if $ac_cs_silent; then
13735 exec 6>/dev/null
13736 ac_configure_extra_args="$ac_configure_extra_args --silent"
13739 _ACEOF
13740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13741 if \$ac_cs_recheck; then
13742 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13743 shift
13744 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13745 CONFIG_SHELL='$SHELL'
13746 export CONFIG_SHELL
13747 exec "\$@"
13750 _ACEOF
13751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13752 exec 5>>config.log
13754 echo
13755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13756 ## Running $as_me. ##
13757 _ASBOX
13758 $as_echo "$ac_log"
13759 } >&5
13761 _ACEOF
13762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13764 # INIT-COMMANDS
13767 srcdir="$srcdir"
13768 host="$host"
13769 target="$target"
13770 with_multisubdir="$with_multisubdir"
13771 with_multisrctop="$with_multisrctop"
13772 with_target_subdir="$with_target_subdir"
13773 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13774 multi_basedir="$multi_basedir"
13775 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13776 CC="$CC"
13777 CXX="$CXX"
13778 GFORTRAN="$GFORTRAN"
13779 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13782 # The HP-UX ksh and POSIX shell print the target directory to stdout
13783 # if CDPATH is set.
13784 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13786 sed_quote_subst='$sed_quote_subst'
13787 double_quote_subst='$double_quote_subst'
13788 delay_variable_subst='$delay_variable_subst'
13789 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13790 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13791 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13792 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13793 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13794 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13795 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13796 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13797 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13798 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13799 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13800 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13801 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13802 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13803 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13804 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13805 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13806 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13807 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13808 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13809 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13810 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13811 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13812 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13813 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13814 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13815 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13816 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13817 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13818 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13819 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13820 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13821 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13822 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13823 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13824 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13825 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13826 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13827 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13828 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13829 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13830 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13831 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13832 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13833 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13834 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13835 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13836 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13837 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"`'
13838 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13839 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13840 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13841 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13842 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13843 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13844 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13845 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13846 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13847 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13848 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13849 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13850 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13851 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13852 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13853 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13854 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13855 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13856 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13857 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13858 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13859 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13860 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13861 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13862 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13863 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13864 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13865 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13866 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13867 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13868 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13869 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13870 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13871 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13872 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13873 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13874 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13875 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13876 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13877 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13878 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13879 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13880 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13881 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13882 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13883 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13884 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13885 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13886 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13887 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13888 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13889 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13890 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13891 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13892 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13893 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13894 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13895 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13896 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13897 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13898 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13899 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13900 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13901 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13902 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13903 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13904 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13905 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13906 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13907 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13908 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13910 LTCC='$LTCC'
13911 LTCFLAGS='$LTCFLAGS'
13912 compiler='$compiler_DEFAULT'
13914 # A function that is used when there is no print builtin or printf.
13915 func_fallback_echo ()
13917 eval 'cat <<_LTECHO_EOF
13919 _LTECHO_EOF'
13922 # Quote evaled strings.
13923 for var in SHELL \
13924 ECHO \
13925 SED \
13926 GREP \
13927 EGREP \
13928 FGREP \
13929 LD \
13930 NM \
13931 LN_S \
13932 lt_SP2NL \
13933 lt_NL2SP \
13934 reload_flag \
13935 OBJDUMP \
13936 deplibs_check_method \
13937 file_magic_cmd \
13938 AR \
13939 AR_FLAGS \
13940 STRIP \
13941 RANLIB \
13942 CC \
13943 CFLAGS \
13944 compiler \
13945 lt_cv_sys_global_symbol_pipe \
13946 lt_cv_sys_global_symbol_to_cdecl \
13947 lt_cv_sys_global_symbol_to_c_name_address \
13948 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13949 lt_prog_compiler_no_builtin_flag \
13950 lt_prog_compiler_wl \
13951 lt_prog_compiler_pic \
13952 lt_prog_compiler_static \
13953 lt_cv_prog_compiler_c_o \
13954 need_locks \
13955 DSYMUTIL \
13956 NMEDIT \
13957 LIPO \
13958 OTOOL \
13959 OTOOL64 \
13960 shrext_cmds \
13961 export_dynamic_flag_spec \
13962 whole_archive_flag_spec \
13963 compiler_needs_object \
13964 with_gnu_ld \
13965 allow_undefined_flag \
13966 no_undefined_flag \
13967 hardcode_libdir_flag_spec \
13968 hardcode_libdir_flag_spec_ld \
13969 hardcode_libdir_separator \
13970 fix_srcfile_path \
13971 exclude_expsyms \
13972 include_expsyms \
13973 file_list_spec \
13974 variables_saved_for_relink \
13975 libname_spec \
13976 library_names_spec \
13977 soname_spec \
13978 install_override_mode \
13979 finish_eval \
13980 old_striplib \
13981 striplib; do
13982 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13983 *[\\\\\\\`\\"\\\$]*)
13984 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13987 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13989 esac
13990 done
13992 # Double-quote double-evaled strings.
13993 for var in reload_cmds \
13994 old_postinstall_cmds \
13995 old_postuninstall_cmds \
13996 old_archive_cmds \
13997 extract_expsyms_cmds \
13998 old_archive_from_new_cmds \
13999 old_archive_from_expsyms_cmds \
14000 archive_cmds \
14001 archive_expsym_cmds \
14002 module_cmds \
14003 module_expsym_cmds \
14004 export_symbols_cmds \
14005 prelink_cmds \
14006 postinstall_cmds \
14007 postuninstall_cmds \
14008 finish_cmds \
14009 sys_lib_search_path_spec \
14010 sys_lib_dlsearch_path_spec; do
14011 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14012 *[\\\\\\\`\\"\\\$]*)
14013 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14016 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14018 esac
14019 done
14021 ac_aux_dir='$ac_aux_dir'
14022 xsi_shell='$xsi_shell'
14023 lt_shell_append='$lt_shell_append'
14025 # See if we are running on zsh, and set the options which allow our
14026 # commands through without removal of \ escapes INIT.
14027 if test -n "\${ZSH_VERSION+set}" ; then
14028 setopt NO_GLOB_SUBST
14032 PACKAGE='$PACKAGE'
14033 VERSION='$VERSION'
14034 TIMESTAMP='$TIMESTAMP'
14035 RM='$RM'
14036 ofile='$ofile'
14041 _ACEOF
14043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14045 # Handling of arguments.
14046 for ac_config_target in $ac_config_targets
14048 case $ac_config_target in
14049 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14050 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14051 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14052 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14053 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14055 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14056 esac
14057 done
14060 # If the user did not use the arguments to specify the items to instantiate,
14061 # then the envvar interface is used. Set only those that are not.
14062 # We use the long form for the default assignment because of an extremely
14063 # bizarre bug on SunOS 4.1.3.
14064 if $ac_need_defaults; then
14065 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14066 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14067 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14070 # Have a temporary directory for convenience. Make it in the build tree
14071 # simply because there is no reason against having it here, and in addition,
14072 # creating and moving files from /tmp can sometimes cause problems.
14073 # Hook for its removal unless debugging.
14074 # Note that there is a small window in which the directory will not be cleaned:
14075 # after its creation but before its name has been assigned to `$tmp'.
14076 $debug ||
14078 tmp=
14079 trap 'exit_status=$?
14080 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14082 trap 'as_fn_exit 1' 1 2 13 15
14084 # Create a (secure) tmp directory for tmp files.
14087 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14088 test -n "$tmp" && test -d "$tmp"
14089 } ||
14091 tmp=./conf$$-$RANDOM
14092 (umask 077 && mkdir "$tmp")
14093 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14095 # Set up the scripts for CONFIG_FILES section.
14096 # No need to generate them if there are no CONFIG_FILES.
14097 # This happens for instance with `./config.status config.h'.
14098 if test -n "$CONFIG_FILES"; then
14101 ac_cr=`echo X | tr X '\015'`
14102 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14103 # But we know of no other shell where ac_cr would be empty at this
14104 # point, so we can use a bashism as a fallback.
14105 if test "x$ac_cr" = x; then
14106 eval ac_cr=\$\'\\r\'
14108 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14109 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14110 ac_cs_awk_cr='\r'
14111 else
14112 ac_cs_awk_cr=$ac_cr
14115 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14116 _ACEOF
14120 echo "cat >conf$$subs.awk <<_ACEOF" &&
14121 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14122 echo "_ACEOF"
14123 } >conf$$subs.sh ||
14124 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14125 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14126 ac_delim='%!_!# '
14127 for ac_last_try in false false false false false :; do
14128 . ./conf$$subs.sh ||
14129 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14131 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14132 if test $ac_delim_n = $ac_delim_num; then
14133 break
14134 elif $ac_last_try; then
14135 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14136 else
14137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14139 done
14140 rm -f conf$$subs.sh
14142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14143 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14144 _ACEOF
14145 sed -n '
14147 s/^/S["/; s/!.*/"]=/
14150 s/^[^!]*!//
14151 :repl
14152 t repl
14153 s/'"$ac_delim"'$//
14154 t delim
14157 s/\(.\{148\}\).*/\1/
14158 t more1
14159 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14162 b repl
14163 :more1
14164 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14167 s/.\{148\}//
14168 t nl
14169 :delim
14171 s/\(.\{148\}\).*/\1/
14172 t more2
14173 s/["\\]/\\&/g; s/^/"/; s/$/"/
14176 :more2
14177 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14180 s/.\{148\}//
14181 t delim
14182 ' <conf$$subs.awk | sed '
14183 /^[^""]/{
14185 s/\n//
14187 ' >>$CONFIG_STATUS || ac_write_fail=1
14188 rm -f conf$$subs.awk
14189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14190 _ACAWK
14191 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14192 for (key in S) S_is_set[key] = 1
14193 FS = "\a"
14197 line = $ 0
14198 nfields = split(line, field, "@")
14199 substed = 0
14200 len = length(field[1])
14201 for (i = 2; i < nfields; i++) {
14202 key = field[i]
14203 keylen = length(key)
14204 if (S_is_set[key]) {
14205 value = S[key]
14206 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14207 len += length(value) + length(field[++i])
14208 substed = 1
14209 } else
14210 len += 1 + keylen
14213 print line
14216 _ACAWK
14217 _ACEOF
14218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14219 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14220 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14221 else
14223 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14224 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14225 _ACEOF
14227 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14228 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14229 # trailing colons and then remove the whole line if VPATH becomes empty
14230 # (actually we leave an empty line to preserve line numbers).
14231 if test "x$srcdir" = x.; then
14232 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14233 s/:*\$(srcdir):*/:/
14234 s/:*\${srcdir}:*/:/
14235 s/:*@srcdir@:*/:/
14236 s/^\([^=]*=[ ]*\):*/\1/
14237 s/:*$//
14238 s/^[^=]*=[ ]*$//
14242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14243 fi # test -n "$CONFIG_FILES"
14245 # Set up the scripts for CONFIG_HEADERS section.
14246 # No need to generate them if there are no CONFIG_HEADERS.
14247 # This happens for instance with `./config.status Makefile'.
14248 if test -n "$CONFIG_HEADERS"; then
14249 cat >"$tmp/defines.awk" <<\_ACAWK ||
14250 BEGIN {
14251 _ACEOF
14253 # Transform confdefs.h into an awk script `defines.awk', embedded as
14254 # here-document in config.status, that substitutes the proper values into
14255 # config.h.in to produce config.h.
14257 # Create a delimiter string that does not exist in confdefs.h, to ease
14258 # handling of long lines.
14259 ac_delim='%!_!# '
14260 for ac_last_try in false false :; do
14261 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14262 if test -z "$ac_t"; then
14263 break
14264 elif $ac_last_try; then
14265 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14266 else
14267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14269 done
14271 # For the awk script, D is an array of macro values keyed by name,
14272 # likewise P contains macro parameters if any. Preserve backslash
14273 # newline sequences.
14275 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14276 sed -n '
14277 s/.\{148\}/&'"$ac_delim"'/g
14278 t rset
14279 :rset
14280 s/^[ ]*#[ ]*define[ ][ ]*/ /
14281 t def
14283 :def
14284 s/\\$//
14285 t bsnl
14286 s/["\\]/\\&/g
14287 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14288 D["\1"]=" \3"/p
14289 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14291 :bsnl
14292 s/["\\]/\\&/g
14293 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14294 D["\1"]=" \3\\\\\\n"\\/p
14295 t cont
14296 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14297 t cont
14299 :cont
14301 s/.\{148\}/&'"$ac_delim"'/g
14302 t clear
14303 :clear
14304 s/\\$//
14305 t bsnlc
14306 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14308 :bsnlc
14309 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14310 b cont
14311 ' <confdefs.h | sed '
14312 s/'"$ac_delim"'/"\\\
14313 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14316 for (key in D) D_is_set[key] = 1
14317 FS = "\a"
14319 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14320 line = \$ 0
14321 split(line, arg, " ")
14322 if (arg[1] == "#") {
14323 defundef = arg[2]
14324 mac1 = arg[3]
14325 } else {
14326 defundef = substr(arg[1], 2)
14327 mac1 = arg[2]
14329 split(mac1, mac2, "(") #)
14330 macro = mac2[1]
14331 prefix = substr(line, 1, index(line, defundef) - 1)
14332 if (D_is_set[macro]) {
14333 # Preserve the white space surrounding the "#".
14334 print prefix "define", macro P[macro] D[macro]
14335 next
14336 } else {
14337 # Replace #undef with comments. This is necessary, for example,
14338 # in the case of _POSIX_SOURCE, which is predefined and required
14339 # on some systems where configure will not decide to define it.
14340 if (defundef == "undef") {
14341 print "/*", prefix defundef, macro, "*/"
14342 next
14346 { print }
14347 _ACAWK
14348 _ACEOF
14349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14350 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14351 fi # test -n "$CONFIG_HEADERS"
14354 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14355 shift
14356 for ac_tag
14358 case $ac_tag in
14359 :[FHLC]) ac_mode=$ac_tag; continue;;
14360 esac
14361 case $ac_mode$ac_tag in
14362 :[FHL]*:*);;
14363 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14364 :[FH]-) ac_tag=-:-;;
14365 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14366 esac
14367 ac_save_IFS=$IFS
14368 IFS=:
14369 set x $ac_tag
14370 IFS=$ac_save_IFS
14371 shift
14372 ac_file=$1
14373 shift
14375 case $ac_mode in
14376 :L) ac_source=$1;;
14377 :[FH])
14378 ac_file_inputs=
14379 for ac_f
14381 case $ac_f in
14382 -) ac_f="$tmp/stdin";;
14383 *) # Look for the file first in the build tree, then in the source tree
14384 # (if the path is not absolute). The absolute path cannot be DOS-style,
14385 # because $ac_f cannot contain `:'.
14386 test -f "$ac_f" ||
14387 case $ac_f in
14388 [\\/$]*) false;;
14389 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14390 esac ||
14391 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14392 esac
14393 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14394 as_fn_append ac_file_inputs " '$ac_f'"
14395 done
14397 # Let's still pretend it is `configure' which instantiates (i.e., don't
14398 # use $as_me), people would be surprised to read:
14399 # /* config.h. Generated by config.status. */
14400 configure_input='Generated from '`
14401 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14402 `' by configure.'
14403 if test x"$ac_file" != x-; then
14404 configure_input="$ac_file. $configure_input"
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14406 $as_echo "$as_me: creating $ac_file" >&6;}
14408 # Neutralize special characters interpreted by sed in replacement strings.
14409 case $configure_input in #(
14410 *\&* | *\|* | *\\* )
14411 ac_sed_conf_input=`$as_echo "$configure_input" |
14412 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14413 *) ac_sed_conf_input=$configure_input;;
14414 esac
14416 case $ac_tag in
14417 *:-:* | *:-) cat >"$tmp/stdin" \
14418 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14419 esac
14421 esac
14423 ac_dir=`$as_dirname -- "$ac_file" ||
14424 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14425 X"$ac_file" : 'X\(//\)[^/]' \| \
14426 X"$ac_file" : 'X\(//\)$' \| \
14427 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14428 $as_echo X"$ac_file" |
14429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14430 s//\1/
14433 /^X\(\/\/\)[^/].*/{
14434 s//\1/
14437 /^X\(\/\/\)$/{
14438 s//\1/
14441 /^X\(\/\).*/{
14442 s//\1/
14445 s/.*/./; q'`
14446 as_dir="$ac_dir"; as_fn_mkdir_p
14447 ac_builddir=.
14449 case "$ac_dir" in
14450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14453 # A ".." for each directory in $ac_dir_suffix.
14454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14455 case $ac_top_builddir_sub in
14456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14458 esac ;;
14459 esac
14460 ac_abs_top_builddir=$ac_pwd
14461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14462 # for backward compatibility:
14463 ac_top_builddir=$ac_top_build_prefix
14465 case $srcdir in
14466 .) # We are building in place.
14467 ac_srcdir=.
14468 ac_top_srcdir=$ac_top_builddir_sub
14469 ac_abs_top_srcdir=$ac_pwd ;;
14470 [\\/]* | ?:[\\/]* ) # Absolute name.
14471 ac_srcdir=$srcdir$ac_dir_suffix;
14472 ac_top_srcdir=$srcdir
14473 ac_abs_top_srcdir=$srcdir ;;
14474 *) # Relative name.
14475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14476 ac_top_srcdir=$ac_top_build_prefix$srcdir
14477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14478 esac
14479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14482 case $ac_mode in
14485 # CONFIG_FILE
14488 case $INSTALL in
14489 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14490 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14491 esac
14492 ac_MKDIR_P=$MKDIR_P
14493 case $MKDIR_P in
14494 [\\/$]* | ?:[\\/]* ) ;;
14495 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14496 esac
14497 _ACEOF
14499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14500 # If the template does not know about datarootdir, expand it.
14501 # FIXME: This hack should be removed a few years after 2.60.
14502 ac_datarootdir_hack=; ac_datarootdir_seen=
14503 ac_sed_dataroot='
14504 /datarootdir/ {
14508 /@datadir@/p
14509 /@docdir@/p
14510 /@infodir@/p
14511 /@localedir@/p
14512 /@mandir@/p'
14513 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14514 *datarootdir*) ac_datarootdir_seen=yes;;
14515 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14517 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14518 _ACEOF
14519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14520 ac_datarootdir_hack='
14521 s&@datadir@&$datadir&g
14522 s&@docdir@&$docdir&g
14523 s&@infodir@&$infodir&g
14524 s&@localedir@&$localedir&g
14525 s&@mandir@&$mandir&g
14526 s&\\\${datarootdir}&$datarootdir&g' ;;
14527 esac
14528 _ACEOF
14530 # Neutralize VPATH when `$srcdir' = `.'.
14531 # Shell code in configure.ac might set extrasub.
14532 # FIXME: do we really want to maintain this feature?
14533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14534 ac_sed_extra="$ac_vpsub
14535 $extrasub
14536 _ACEOF
14537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14540 s|@configure_input@|$ac_sed_conf_input|;t t
14541 s&@top_builddir@&$ac_top_builddir_sub&;t t
14542 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14543 s&@srcdir@&$ac_srcdir&;t t
14544 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14545 s&@top_srcdir@&$ac_top_srcdir&;t t
14546 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14547 s&@builddir@&$ac_builddir&;t t
14548 s&@abs_builddir@&$ac_abs_builddir&;t t
14549 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14550 s&@INSTALL@&$ac_INSTALL&;t t
14551 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14552 $ac_datarootdir_hack
14554 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14555 || as_fn_error "could not create $ac_file" "$LINENO" 5
14557 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14558 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14561 which seems to be undefined. Please make sure it is defined." >&5
14562 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14563 which seems to be undefined. Please make sure it is defined." >&2;}
14565 rm -f "$tmp/stdin"
14566 case $ac_file in
14567 -) cat "$tmp/out" && rm -f "$tmp/out";;
14568 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14569 esac \
14570 || as_fn_error "could not create $ac_file" "$LINENO" 5
14574 # CONFIG_HEADER
14576 if test x"$ac_file" != x-; then
14578 $as_echo "/* $configure_input */" \
14579 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14580 } >"$tmp/config.h" \
14581 || as_fn_error "could not create $ac_file" "$LINENO" 5
14582 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14584 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14585 else
14586 rm -f "$ac_file"
14587 mv "$tmp/config.h" "$ac_file" \
14588 || as_fn_error "could not create $ac_file" "$LINENO" 5
14590 else
14591 $as_echo "/* $configure_input */" \
14592 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14593 || as_fn_error "could not create -" "$LINENO" 5
14595 # Compute "$ac_file"'s index in $config_headers.
14596 _am_arg="$ac_file"
14597 _am_stamp_count=1
14598 for _am_header in $config_headers :; do
14599 case $_am_header in
14600 $_am_arg | $_am_arg:* )
14601 break ;;
14603 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14604 esac
14605 done
14606 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14607 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14608 X"$_am_arg" : 'X\(//\)[^/]' \| \
14609 X"$_am_arg" : 'X\(//\)$' \| \
14610 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14611 $as_echo X"$_am_arg" |
14612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14613 s//\1/
14616 /^X\(\/\/\)[^/].*/{
14617 s//\1/
14620 /^X\(\/\/\)$/{
14621 s//\1/
14624 /^X\(\/\).*/{
14625 s//\1/
14628 s/.*/./; q'`/stamp-h$_am_stamp_count
14631 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14632 $as_echo "$as_me: executing $ac_file commands" >&6;}
14634 esac
14637 case $ac_file$ac_mode in
14638 "default-1":C)
14639 # Only add multilib support code if we just rebuilt the top-level
14640 # Makefile.
14641 case " $CONFIG_FILES " in
14642 *" Makefile "*)
14643 ac_file=Makefile . ${multi_basedir}/config-ml.in
14645 esac ;;
14646 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14647 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14648 # are listed without --file. Let's play safe and only enable the eval
14649 # if we detect the quoting.
14650 case $CONFIG_FILES in
14651 *\'*) eval set x "$CONFIG_FILES" ;;
14652 *) set x $CONFIG_FILES ;;
14653 esac
14654 shift
14655 for mf
14657 # Strip MF so we end up with the name of the file.
14658 mf=`echo "$mf" | sed -e 's/:.*$//'`
14659 # Check whether this is an Automake generated Makefile or not.
14660 # We used to match only the files named `Makefile.in', but
14661 # some people rename them; so instead we look at the file content.
14662 # Grep'ing the first line is not enough: some people post-process
14663 # each Makefile.in and add a new line on top of each file to say so.
14664 # Grep'ing the whole file is not good either: AIX grep has a line
14665 # limit of 2048, but all sed's we know have understand at least 4000.
14666 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14667 dirpart=`$as_dirname -- "$mf" ||
14668 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14669 X"$mf" : 'X\(//\)[^/]' \| \
14670 X"$mf" : 'X\(//\)$' \| \
14671 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14672 $as_echo X"$mf" |
14673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14674 s//\1/
14677 /^X\(\/\/\)[^/].*/{
14678 s//\1/
14681 /^X\(\/\/\)$/{
14682 s//\1/
14685 /^X\(\/\).*/{
14686 s//\1/
14689 s/.*/./; q'`
14690 else
14691 continue
14693 # Extract the definition of DEPDIR, am__include, and am__quote
14694 # from the Makefile without running `make'.
14695 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14696 test -z "$DEPDIR" && continue
14697 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14698 test -z "am__include" && continue
14699 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14700 # When using ansi2knr, U may be empty or an underscore; expand it
14701 U=`sed -n 's/^U = //p' < "$mf"`
14702 # Find all dependency output files, they are included files with
14703 # $(DEPDIR) in their names. We invoke sed twice because it is the
14704 # simplest approach to changing $(DEPDIR) to its actual value in the
14705 # expansion.
14706 for file in `sed -n "
14707 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14708 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14709 # Make sure the directory exists.
14710 test -f "$dirpart/$file" && continue
14711 fdir=`$as_dirname -- "$file" ||
14712 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14713 X"$file" : 'X\(//\)[^/]' \| \
14714 X"$file" : 'X\(//\)$' \| \
14715 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14716 $as_echo X"$file" |
14717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14718 s//\1/
14721 /^X\(\/\/\)[^/].*/{
14722 s//\1/
14725 /^X\(\/\/\)$/{
14726 s//\1/
14729 /^X\(\/\).*/{
14730 s//\1/
14733 s/.*/./; q'`
14734 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14735 # echo "creating $dirpart/$file"
14736 echo '# dummy' > "$dirpart/$file"
14737 done
14738 done
14741 "libtool":C)
14743 # See if we are running on zsh, and set the options which allow our
14744 # commands through without removal of \ escapes.
14745 if test -n "${ZSH_VERSION+set}" ; then
14746 setopt NO_GLOB_SUBST
14749 cfgfile="${ofile}T"
14750 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14751 $RM "$cfgfile"
14753 cat <<_LT_EOF >> "$cfgfile"
14754 #! $SHELL
14756 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14757 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14759 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14761 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14762 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14763 # Written by Gordon Matzigkeit, 1996
14765 # This file is part of GNU Libtool.
14767 # GNU Libtool is free software; you can redistribute it and/or
14768 # modify it under the terms of the GNU General Public License as
14769 # published by the Free Software Foundation; either version 2 of
14770 # the License, or (at your option) any later version.
14772 # As a special exception to the GNU General Public License,
14773 # if you distribute this file as part of a program or library that
14774 # is built using GNU Libtool, you may include this file under the
14775 # same distribution terms that you use for the rest of that program.
14777 # GNU Libtool is distributed in the hope that it will be useful,
14778 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14779 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14780 # GNU General Public License for more details.
14782 # You should have received a copy of the GNU General Public License
14783 # along with GNU Libtool; see the file COPYING. If not, a copy
14784 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14785 # obtained by writing to the Free Software Foundation, Inc.,
14786 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14789 # The names of the tagged configurations supported by this script.
14790 available_tags=""
14792 # ### BEGIN LIBTOOL CONFIG
14794 # Which release of libtool.m4 was used?
14795 macro_version=$macro_version
14796 macro_revision=$macro_revision
14798 # Whether or not to build shared libraries.
14799 build_libtool_libs=$enable_shared
14801 # Whether or not to build static libraries.
14802 build_old_libs=$enable_static
14804 # What type of objects to build.
14805 pic_mode=$pic_mode
14807 # Whether or not to optimize for fast installation.
14808 fast_install=$enable_fast_install
14810 # Shell to use when invoking shell scripts.
14811 SHELL=$lt_SHELL
14813 # An echo program that protects backslashes.
14814 ECHO=$lt_ECHO
14816 # The host system.
14817 host_alias=$host_alias
14818 host=$host
14819 host_os=$host_os
14821 # The build system.
14822 build_alias=$build_alias
14823 build=$build
14824 build_os=$build_os
14826 # A sed program that does not truncate output.
14827 SED=$lt_SED
14829 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14830 Xsed="\$SED -e 1s/^X//"
14832 # A grep program that handles long lines.
14833 GREP=$lt_GREP
14835 # An ERE matcher.
14836 EGREP=$lt_EGREP
14838 # A literal string matcher.
14839 FGREP=$lt_FGREP
14841 # A BSD- or MS-compatible name lister.
14842 NM=$lt_NM
14844 # Whether we need soft or hard links.
14845 LN_S=$lt_LN_S
14847 # What is the maximum length of a command?
14848 max_cmd_len=$max_cmd_len
14850 # Object file suffix (normally "o").
14851 objext=$ac_objext
14853 # Executable file suffix (normally "").
14854 exeext=$exeext
14856 # whether the shell understands "unset".
14857 lt_unset=$lt_unset
14859 # turn spaces into newlines.
14860 SP2NL=$lt_lt_SP2NL
14862 # turn newlines into spaces.
14863 NL2SP=$lt_lt_NL2SP
14865 # An object symbol dumper.
14866 OBJDUMP=$lt_OBJDUMP
14868 # Method to check whether dependent libraries are shared objects.
14869 deplibs_check_method=$lt_deplibs_check_method
14871 # Command to use when deplibs_check_method == "file_magic".
14872 file_magic_cmd=$lt_file_magic_cmd
14874 # The archiver.
14875 AR=$lt_AR
14876 AR_FLAGS=$lt_AR_FLAGS
14878 # A symbol stripping program.
14879 STRIP=$lt_STRIP
14881 # Commands used to install an old-style archive.
14882 RANLIB=$lt_RANLIB
14883 old_postinstall_cmds=$lt_old_postinstall_cmds
14884 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14886 # Whether to use a lock for old archive extraction.
14887 lock_old_archive_extraction=$lock_old_archive_extraction
14889 # A C compiler.
14890 LTCC=$lt_CC
14892 # LTCC compiler flags.
14893 LTCFLAGS=$lt_CFLAGS
14895 # Take the output of nm and produce a listing of raw symbols and C names.
14896 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14898 # Transform the output of nm in a proper C declaration.
14899 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14901 # Transform the output of nm in a C name address pair.
14902 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14904 # Transform the output of nm in a C name address pair when lib prefix is needed.
14905 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14907 # The name of the directory that contains temporary libtool files.
14908 objdir=$objdir
14910 # Used to examine libraries when file_magic_cmd begins with "file".
14911 MAGIC_CMD=$MAGIC_CMD
14913 # Must we lock files when doing compilation?
14914 need_locks=$lt_need_locks
14916 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14917 DSYMUTIL=$lt_DSYMUTIL
14919 # Tool to change global to local symbols on Mac OS X.
14920 NMEDIT=$lt_NMEDIT
14922 # Tool to manipulate fat objects and archives on Mac OS X.
14923 LIPO=$lt_LIPO
14925 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14926 OTOOL=$lt_OTOOL
14928 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14929 OTOOL64=$lt_OTOOL64
14931 # Old archive suffix (normally "a").
14932 libext=$libext
14934 # Shared library suffix (normally ".so").
14935 shrext_cmds=$lt_shrext_cmds
14937 # The commands to extract the exported symbol list from a shared archive.
14938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14940 # Variables whose values should be saved in libtool wrapper scripts and
14941 # restored at link time.
14942 variables_saved_for_relink=$lt_variables_saved_for_relink
14944 # Do we need the "lib" prefix for modules?
14945 need_lib_prefix=$need_lib_prefix
14947 # Do we need a version for libraries?
14948 need_version=$need_version
14950 # Library versioning type.
14951 version_type=$version_type
14953 # Shared library runtime path variable.
14954 runpath_var=$runpath_var
14956 # Shared library path variable.
14957 shlibpath_var=$shlibpath_var
14959 # Is shlibpath searched before the hard-coded library search path?
14960 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14962 # Format of library name prefix.
14963 libname_spec=$lt_libname_spec
14965 # List of archive names. First name is the real one, the rest are links.
14966 # The last name is the one that the linker finds with -lNAME
14967 library_names_spec=$lt_library_names_spec
14969 # The coded name of the library, if different from the real name.
14970 soname_spec=$lt_soname_spec
14972 # Permission mode override for installation of shared libraries.
14973 install_override_mode=$lt_install_override_mode
14975 # Command to use after installation of a shared archive.
14976 postinstall_cmds=$lt_postinstall_cmds
14978 # Command to use after uninstallation of a shared archive.
14979 postuninstall_cmds=$lt_postuninstall_cmds
14981 # Commands used to finish a libtool library installation in a directory.
14982 finish_cmds=$lt_finish_cmds
14984 # As "finish_cmds", except a single script fragment to be evaled but
14985 # not shown.
14986 finish_eval=$lt_finish_eval
14988 # Whether we should hardcode library paths into libraries.
14989 hardcode_into_libs=$hardcode_into_libs
14991 # Compile-time system search path for libraries.
14992 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14994 # Run-time system search path for libraries.
14995 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14997 # Whether dlopen is supported.
14998 dlopen_support=$enable_dlopen
15000 # Whether dlopen of programs is supported.
15001 dlopen_self=$enable_dlopen_self
15003 # Whether dlopen of statically linked programs is supported.
15004 dlopen_self_static=$enable_dlopen_self_static
15006 # Commands to strip libraries.
15007 old_striplib=$lt_old_striplib
15008 striplib=$lt_striplib
15011 # The linker used to build libraries.
15012 LD=$lt_LD
15014 # How to create reloadable object files.
15015 reload_flag=$lt_reload_flag
15016 reload_cmds=$lt_reload_cmds
15018 # Commands used to build an old-style archive.
15019 old_archive_cmds=$lt_old_archive_cmds
15021 # A language specific compiler.
15022 CC=$lt_compiler
15024 # Is the compiler the GNU compiler?
15025 with_gcc=$GCC
15027 # Compiler flag to turn off builtin functions.
15028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15030 # How to pass a linker flag through the compiler.
15031 wl=$lt_lt_prog_compiler_wl
15033 # Additional compiler flags for building library objects.
15034 pic_flag=$lt_lt_prog_compiler_pic
15036 # Compiler flag to prevent dynamic linking.
15037 link_static_flag=$lt_lt_prog_compiler_static
15039 # Does compiler simultaneously support -c and -o options?
15040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15042 # Whether or not to add -lc for building shared libraries.
15043 build_libtool_need_lc=$archive_cmds_need_lc
15045 # Whether or not to disallow shared libs when runtime libs are static.
15046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15048 # Compiler flag to allow reflexive dlopens.
15049 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15051 # Compiler flag to generate shared objects directly from archives.
15052 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15054 # Whether the compiler copes with passing no objects directly.
15055 compiler_needs_object=$lt_compiler_needs_object
15057 # Create an old-style archive from a shared archive.
15058 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15060 # Create a temporary old-style archive to link instead of a shared archive.
15061 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15063 # Commands used to build a shared archive.
15064 archive_cmds=$lt_archive_cmds
15065 archive_expsym_cmds=$lt_archive_expsym_cmds
15067 # Commands used to build a loadable module if different from building
15068 # a shared archive.
15069 module_cmds=$lt_module_cmds
15070 module_expsym_cmds=$lt_module_expsym_cmds
15072 # Whether we are building with GNU ld or not.
15073 with_gnu_ld=$lt_with_gnu_ld
15075 # Flag that allows shared libraries with undefined symbols to be built.
15076 allow_undefined_flag=$lt_allow_undefined_flag
15078 # Flag that enforces no undefined symbols.
15079 no_undefined_flag=$lt_no_undefined_flag
15081 # Flag to hardcode \$libdir into a binary during linking.
15082 # This must work even if \$libdir does not exist
15083 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15085 # If ld is used when linking, flag to hardcode \$libdir into a binary
15086 # during linking. This must work even if \$libdir does not exist.
15087 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15089 # Whether we need a single "-rpath" flag with a separated argument.
15090 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15092 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15093 # DIR into the resulting binary.
15094 hardcode_direct=$hardcode_direct
15096 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15097 # DIR into the resulting binary and the resulting library dependency is
15098 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15099 # library is relocated.
15100 hardcode_direct_absolute=$hardcode_direct_absolute
15102 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15103 # into the resulting binary.
15104 hardcode_minus_L=$hardcode_minus_L
15106 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15107 # into the resulting binary.
15108 hardcode_shlibpath_var=$hardcode_shlibpath_var
15110 # Set to "yes" if building a shared library automatically hardcodes DIR
15111 # into the library and all subsequent libraries and executables linked
15112 # against it.
15113 hardcode_automatic=$hardcode_automatic
15115 # Set to yes if linker adds runtime paths of dependent libraries
15116 # to runtime path list.
15117 inherit_rpath=$inherit_rpath
15119 # Whether libtool must link a program against all its dependency libraries.
15120 link_all_deplibs=$link_all_deplibs
15122 # Fix the shell variable \$srcfile for the compiler.
15123 fix_srcfile_path=$lt_fix_srcfile_path
15125 # Set to "yes" if exported symbols are required.
15126 always_export_symbols=$always_export_symbols
15128 # The commands to list exported symbols.
15129 export_symbols_cmds=$lt_export_symbols_cmds
15131 # Symbols that should not be listed in the preloaded symbols.
15132 exclude_expsyms=$lt_exclude_expsyms
15134 # Symbols that must always be exported.
15135 include_expsyms=$lt_include_expsyms
15137 # Commands necessary for linking programs (against libraries) with templates.
15138 prelink_cmds=$lt_prelink_cmds
15140 # Specify filename containing input files.
15141 file_list_spec=$lt_file_list_spec
15143 # How to hardcode a shared library path into an executable.
15144 hardcode_action=$hardcode_action
15146 # ### END LIBTOOL CONFIG
15148 _LT_EOF
15150 case $host_os in
15151 aix3*)
15152 cat <<\_LT_EOF >> "$cfgfile"
15153 # AIX sometimes has problems with the GCC collect2 program. For some
15154 # reason, if we set the COLLECT_NAMES environment variable, the problems
15155 # vanish in a puff of smoke.
15156 if test "X${COLLECT_NAMES+set}" != Xset; then
15157 COLLECT_NAMES=
15158 export COLLECT_NAMES
15160 _LT_EOF
15162 esac
15165 ltmain="$ac_aux_dir/ltmain.sh"
15168 # We use sed instead of cat because bash on DJGPP gets confused if
15169 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15170 # text mode, it properly converts lines to CR/LF. This bash problem
15171 # is reportedly fixed, but why not run on old versions too?
15172 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15173 || (rm -f "$cfgfile"; exit 1)
15175 case $xsi_shell in
15176 yes)
15177 cat << \_LT_EOF >> "$cfgfile"
15179 # func_dirname file append nondir_replacement
15180 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15181 # otherwise set result to NONDIR_REPLACEMENT.
15182 func_dirname ()
15184 case ${1} in
15185 */*) func_dirname_result="${1%/*}${2}" ;;
15186 * ) func_dirname_result="${3}" ;;
15187 esac
15190 # func_basename file
15191 func_basename ()
15193 func_basename_result="${1##*/}"
15196 # func_dirname_and_basename file append nondir_replacement
15197 # perform func_basename and func_dirname in a single function
15198 # call:
15199 # dirname: Compute the dirname of FILE. If nonempty,
15200 # add APPEND to the result, otherwise set result
15201 # to NONDIR_REPLACEMENT.
15202 # value returned in "$func_dirname_result"
15203 # basename: Compute filename of FILE.
15204 # value retuned in "$func_basename_result"
15205 # Implementation must be kept synchronized with func_dirname
15206 # and func_basename. For efficiency, we do not delegate to
15207 # those functions but instead duplicate the functionality here.
15208 func_dirname_and_basename ()
15210 case ${1} in
15211 */*) func_dirname_result="${1%/*}${2}" ;;
15212 * ) func_dirname_result="${3}" ;;
15213 esac
15214 func_basename_result="${1##*/}"
15217 # func_stripname prefix suffix name
15218 # strip PREFIX and SUFFIX off of NAME.
15219 # PREFIX and SUFFIX must not contain globbing or regex special
15220 # characters, hashes, percent signs, but SUFFIX may contain a leading
15221 # dot (in which case that matches only a dot).
15222 func_stripname ()
15224 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15225 # positional parameters, so assign one to ordinary parameter first.
15226 func_stripname_result=${3}
15227 func_stripname_result=${func_stripname_result#"${1}"}
15228 func_stripname_result=${func_stripname_result%"${2}"}
15231 # func_opt_split
15232 func_opt_split ()
15234 func_opt_split_opt=${1%%=*}
15235 func_opt_split_arg=${1#*=}
15238 # func_lo2o object
15239 func_lo2o ()
15241 case ${1} in
15242 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15243 *) func_lo2o_result=${1} ;;
15244 esac
15247 # func_xform libobj-or-source
15248 func_xform ()
15250 func_xform_result=${1%.*}.lo
15253 # func_arith arithmetic-term...
15254 func_arith ()
15256 func_arith_result=$(( $* ))
15259 # func_len string
15260 # STRING may not start with a hyphen.
15261 func_len ()
15263 func_len_result=${#1}
15266 _LT_EOF
15268 *) # Bourne compatible functions.
15269 cat << \_LT_EOF >> "$cfgfile"
15271 # func_dirname file append nondir_replacement
15272 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15273 # otherwise set result to NONDIR_REPLACEMENT.
15274 func_dirname ()
15276 # Extract subdirectory from the argument.
15277 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15278 if test "X$func_dirname_result" = "X${1}"; then
15279 func_dirname_result="${3}"
15280 else
15281 func_dirname_result="$func_dirname_result${2}"
15285 # func_basename file
15286 func_basename ()
15288 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15292 # func_stripname prefix suffix name
15293 # strip PREFIX and SUFFIX off of NAME.
15294 # PREFIX and SUFFIX must not contain globbing or regex special
15295 # characters, hashes, percent signs, but SUFFIX may contain a leading
15296 # dot (in which case that matches only a dot).
15297 # func_strip_suffix prefix name
15298 func_stripname ()
15300 case ${2} in
15301 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15302 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15303 esac
15306 # sed scripts:
15307 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15308 my_sed_long_arg='1s/^-[^=]*=//'
15310 # func_opt_split
15311 func_opt_split ()
15313 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15314 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15317 # func_lo2o object
15318 func_lo2o ()
15320 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15323 # func_xform libobj-or-source
15324 func_xform ()
15326 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15329 # func_arith arithmetic-term...
15330 func_arith ()
15332 func_arith_result=`expr "$@"`
15335 # func_len string
15336 # STRING may not start with a hyphen.
15337 func_len ()
15339 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15342 _LT_EOF
15343 esac
15345 case $lt_shell_append in
15346 yes)
15347 cat << \_LT_EOF >> "$cfgfile"
15349 # func_append var value
15350 # Append VALUE to the end of shell variable VAR.
15351 func_append ()
15353 eval "$1+=\$2"
15355 _LT_EOF
15358 cat << \_LT_EOF >> "$cfgfile"
15360 # func_append var value
15361 # Append VALUE to the end of shell variable VAR.
15362 func_append ()
15364 eval "$1=\$$1\$2"
15367 _LT_EOF
15369 esac
15372 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15373 || (rm -f "$cfgfile"; exit 1)
15375 mv -f "$cfgfile" "$ofile" ||
15376 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15377 chmod +x "$ofile"
15381 esac
15382 done # for ac_tag
15385 as_fn_exit 0
15386 _ACEOF
15387 ac_clean_files=$ac_clean_files_save
15389 test $ac_write_fail = 0 ||
15390 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15393 # configure is writing to config.log, and then calls config.status.
15394 # config.status does its own redirection, appending to config.log.
15395 # Unfortunately, on DOS this fails, as config.log is still kept open
15396 # by configure, so config.status won't be able to write to it; its
15397 # output is simply discarded. So we exec the FD to /dev/null,
15398 # effectively closing config.log, so it can be properly (re)opened and
15399 # appended to by config.status. When coming back to configure, we
15400 # need to make the FD available again.
15401 if test "$no_create" != yes; then
15402 ac_cs_success=:
15403 ac_config_status_args=
15404 test "$silent" = yes &&
15405 ac_config_status_args="$ac_config_status_args --quiet"
15406 exec 5>/dev/null
15407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15408 exec 5>>config.log
15409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15410 # would make configure fail if this is the last instruction.
15411 $ac_cs_success || as_fn_exit $?
15413 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15415 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}