PR target/68609
[official-gcc.git] / libquadmath / configure
blob851302e722b078f62e1c513431e900e34e5950c6
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 GENINSRC_FALSE
605 GENINSRC_TRUE
606 BUILD_LIBQUADMATH_FALSE
607 BUILD_LIBQUADMATH_TRUE
608 LIBQUAD_USE_SYMVER_SUN_FALSE
609 LIBQUAD_USE_SYMVER_SUN_TRUE
610 LIBQUAD_USE_SYMVER_GNU_FALSE
611 LIBQUAD_USE_SYMVER_GNU_TRUE
612 LIBQUAD_USE_SYMVER_FALSE
613 LIBQUAD_USE_SYMVER_TRUE
614 toolexeclibdir
615 toolexecdir
616 MAINT
617 MAINTAINER_MODE_FALSE
618 MAINTAINER_MODE_TRUE
619 enable_static
620 enable_shared
621 lt_host_flags
622 OTOOL64
623 OTOOL
624 LIPO
625 NMEDIT
626 DSYMUTIL
627 RANLIB
629 OBJDUMP
630 LN_S
632 ac_ct_DUMPBIN
633 DUMPBIN
635 FGREP
637 LIBTOOL
638 REPORT_BUGS_TEXI
639 REPORT_BUGS_TO
640 BUILD_INFO_FALSE
641 BUILD_INFO_TRUE
642 EGREP
643 GREP
645 am__fastdepCC_FALSE
646 am__fastdepCC_TRUE
647 CCDEPMODE
648 am__nodep
649 AMDEPBACKSLASH
650 AMDEP_FALSE
651 AMDEP_TRUE
652 am__quote
653 am__include
654 DEPDIR
655 OBJEXT
656 EXEEXT
657 ac_ct_CC
658 CPPFLAGS
659 LDFLAGS
660 CFLAGS
662 am__untar
663 am__tar
664 AMTAR
665 am__leading_dot
666 SET_MAKE
668 mkdir_p
669 MKDIR_P
670 INSTALL_STRIP_PROGRAM
671 STRIP
672 install_sh
673 MAKEINFO
674 AUTOHEADER
675 AUTOMAKE
676 AUTOCONF
677 ACLOCAL
678 VERSION
679 PACKAGE
680 CYGPATH_W
681 am__isrc
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 multi_basedir
686 target_noncanonical
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
699 target_alias
700 host_alias
701 build_alias
702 LIBS
703 ECHO_T
704 ECHO_N
705 ECHO_C
706 DEFS
707 mandir
708 localedir
709 libdir
710 psdir
711 pdfdir
712 dvidir
713 htmldir
714 infodir
715 docdir
716 oldincludedir
717 includedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_URL
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL'
737 ac_subst_files=''
738 ac_user_opts='
739 enable_option_checking
740 enable_multilib
741 enable_version_specific_runtime_libs
742 enable_dependency_tracking
743 with_bugurl
744 enable_shared
745 enable_static
746 with_pic
747 enable_fast_install
748 with_gnu_ld
749 enable_libtool_lock
750 enable_maintainer_mode
751 enable_symvers
752 enable_generated_files_in_srcdir
754 ac_precious_vars='build_alias
755 host_alias
756 target_alias
758 CFLAGS
759 LDFLAGS
760 LIBS
761 CPPFLAGS
762 CPP'
765 # Initialize some variables set by options.
766 ac_init_help=
767 ac_init_version=false
768 ac_unrecognized_opts=
769 ac_unrecognized_sep=
770 # The variables have the same names as the options, with
771 # dashes changed to underlines.
772 cache_file=/dev/null
773 exec_prefix=NONE
774 no_create=
775 no_recursion=
776 prefix=NONE
777 program_prefix=NONE
778 program_suffix=NONE
779 program_transform_name=s,x,x,
780 silent=
781 site=
782 srcdir=
783 verbose=
784 x_includes=NONE
785 x_libraries=NONE
787 # Installation directory options.
788 # These are left unexpanded so users can "make install exec_prefix=/foo"
789 # and all the variables that are supposed to be based on exec_prefix
790 # by default will actually change.
791 # Use braces instead of parens because sh, perl, etc. also accept them.
792 # (The list follows the same order as the GNU Coding Standards.)
793 bindir='${exec_prefix}/bin'
794 sbindir='${exec_prefix}/sbin'
795 libexecdir='${exec_prefix}/libexec'
796 datarootdir='${prefix}/share'
797 datadir='${datarootdir}'
798 sysconfdir='${prefix}/etc'
799 sharedstatedir='${prefix}/com'
800 localstatedir='${prefix}/var'
801 includedir='${prefix}/include'
802 oldincludedir='/usr/include'
803 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
804 infodir='${datarootdir}/info'
805 htmldir='${docdir}'
806 dvidir='${docdir}'
807 pdfdir='${docdir}'
808 psdir='${docdir}'
809 libdir='${exec_prefix}/lib'
810 localedir='${datarootdir}/locale'
811 mandir='${datarootdir}/man'
813 ac_prev=
814 ac_dashdash=
815 for ac_option
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
819 eval $ac_prev=\$ac_option
820 ac_prev=
821 continue
824 case $ac_option in
825 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 *) ac_optarg=yes ;;
827 esac
829 # Accept the important Cygnus configure options, so we can diagnose typos.
831 case $ac_dashdash$ac_option in
833 ac_dashdash=yes ;;
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
836 ac_prev=bindir ;;
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 bindir=$ac_optarg ;;
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
852 --config-cache | -C)
853 cache_file=config.cache ;;
855 -datadir | --datadir | --datadi | --datad)
856 ac_prev=datadir ;;
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
876 "enable_$ac_useropt"
877 "*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=no ;;
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1097 -with-* | --with-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1106 "with_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=\$ac_optarg ;;
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=no ;;
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) as_fn_error "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information."
1151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1157 esac
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169 esac
1170 done
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error "missing argument to $ac_option"
1177 if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1179 no) ;;
1180 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 esac
1185 # Check all directory arguments for consistency.
1186 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1193 case $ac_val in
1194 */ )
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1197 esac
1198 # Be sure to have absolute directory names.
1199 case $ac_val in
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202 esac
1203 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1204 done
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1209 build=$build_alias
1210 host=$host_alias
1211 target=$target_alias
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used." >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227 test "$silent" = yes && exec 6>/dev/null
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error "pwd does not report name of working directory"
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1256 /^X\(\/\/\)$/{
1257 s//\1/
1260 /^X\(\/\).*/{
1261 s//\1/
1264 s/.*/./; q'`
1265 srcdir=$ac_confdir
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 srcdir=..
1269 else
1270 ac_srcdir_defaulted=no
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1279 pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1313 Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 [PREFIX]
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1357 _ACEOF
1359 cat <<\_ACEOF
1361 Program names:
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1366 System types:
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 --target=TARGET configure for building compilers for TARGET [HOST]
1370 _ACEOF
1373 if test -n "$ac_init_help"; then
1374 case $ac_init_help in
1375 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1376 esac
1377 cat <<\_ACEOF
1379 Optional Features:
1380 --disable-option-checking ignore unrecognized --enable/--with options
1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1383 --enable-multilib build many library versions (default)
1384 --enable-version-specific-runtime-libs
1385 specify that runtime libraries should be installed
1386 in a compiler-specific directory
1387 --disable-dependency-tracking speeds up one-time build
1388 --enable-dependency-tracking do not reject slow dependency extractors
1389 --enable-shared[=PKGS] build shared libraries [default=yes]
1390 --enable-static[=PKGS] build static libraries [default=yes]
1391 --enable-fast-install[=PKGS]
1392 optimize for fast installation [default=yes]
1393 --disable-libtool-lock avoid locking (might break parallel builds)
1394 --enable-maintainer-mode enable make rules and dependencies not useful
1395 (and sometimes confusing) to the casual installer
1396 --disable-symvers disable symbol versioning for libquadmath
1397 --enable-generated-files-in-srcdir
1398 put copies of generated files in source dir intended
1399 for creating source tarballs for users without
1400 texinfo bison or flex
1402 Optional Packages:
1403 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1404 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1405 --with-bugurl=URL Direct users to URL to report a bug
1406 --with-pic try to use only PIC/non-PIC objects [default=use
1407 both]
1408 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1410 Some influential environment variables:
1411 CC C compiler command
1412 CFLAGS C compiler flags
1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1414 nonstandard directory <lib dir>
1415 LIBS libraries to pass to the linker, e.g. -l<library>
1416 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
1418 CPP C preprocessor
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1423 Report bugs to the package provider.
1424 _ACEOF
1425 ac_status=$?
1428 if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433 continue
1434 ac_builddir=.
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1452 case $srcdir in
1453 .) # We are building in place.
1454 ac_srcdir=.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1461 *) # Relative name.
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1476 else
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478 fi || ac_status=$?
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1480 done
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485 cat <<\_ACEOF
1486 GCC Quad-precision Math Library configure 0.1
1487 generated by GNU Autoconf 2.64
1489 Copyright (C) 2009 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1492 _ACEOF
1493 exit
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext
1507 if { { ac_try="$ac_compile"
1508 case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_compile") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest.$ac_objext; then :
1526 ac_retval=0
1527 else
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1531 ac_retval=1
1533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1534 return $ac_retval
1536 } # ac_fn_c_try_compile
1538 # ac_fn_c_try_cpp LINENO
1539 # ----------------------
1540 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_cpp ()
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 if { { ac_try="$ac_cpp conftest.$ac_ext"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } >/dev/null && {
1560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 }; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1568 ac_retval=1
1570 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571 return $ac_retval
1573 } # ac_fn_c_try_cpp
1575 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1576 # -------------------------------------------------------
1577 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1578 # the include files in INCLUDES and setting the cache variable VAR
1579 # accordingly.
1580 ac_fn_c_check_header_mongrel ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585 $as_echo_n "checking for $2... " >&6; }
1586 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1587 $as_echo_n "(cached) " >&6
1589 eval ac_res=\$$3
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591 $as_echo "$ac_res" >&6; }
1592 else
1593 # Is the header compilable?
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1595 $as_echo_n "checking $2 usability... " >&6; }
1596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597 /* end confdefs.h. */
1599 #include <$2>
1600 _ACEOF
1601 if ac_fn_c_try_compile "$LINENO"; then :
1602 ac_header_compiler=yes
1603 else
1604 ac_header_compiler=no
1606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1608 $as_echo "$ac_header_compiler" >&6; }
1610 # Is the header present?
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1612 $as_echo_n "checking $2 presence... " >&6; }
1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614 /* end confdefs.h. */
1615 #include <$2>
1616 _ACEOF
1617 if ac_fn_c_try_cpp "$LINENO"; then :
1618 ac_header_preproc=yes
1619 else
1620 ac_header_preproc=no
1622 rm -f conftest.err conftest.$ac_ext
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1624 $as_echo "$ac_header_preproc" >&6; }
1626 # So? What about this header?
1627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1628 yes:no: )
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1630 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1634 no:yes:* )
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1636 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1638 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1640 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1642 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1644 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1646 esac
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650 $as_echo_n "(cached) " >&6
1651 else
1652 eval "$3=\$ac_header_compiler"
1654 eval ac_res=\$$3
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656 $as_echo "$ac_res" >&6; }
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660 } # ac_fn_c_check_header_mongrel
1662 # ac_fn_c_try_run LINENO
1663 # ----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1665 # that executables *can* be run.
1666 ac_fn_c_try_run ()
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_link"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1680 { { case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_try") 2>&5
1687 ac_status=$?
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; }; }; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: program exited with status $ac_status" >&5
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1696 ac_retval=$ac_status
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1700 return $ac_retval
1702 } # ac_fn_c_try_run
1704 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705 # -------------------------------------------------------
1706 # Tests whether HEADER exists and can be compiled using the include files in
1707 # INCLUDES, setting the cache variable VAR accordingly.
1708 ac_fn_c_check_header_compile ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1715 else
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1719 #include <$2>
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722 eval "$3=yes"
1723 else
1724 eval "$3=no"
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 } # ac_fn_c_check_header_compile
1735 # ac_fn_c_try_link LINENO
1736 # -----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_link ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 $as_test_x conftest$ac_exeext
1763 }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1769 ac_retval=1
1771 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773 # interfere with the next link command; also delete a directory that is
1774 # left behind by Apple's compiler. We do this before executing the actions.
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 return $ac_retval
1779 } # ac_fn_c_try_link
1781 # ac_fn_c_check_func LINENO FUNC VAR
1782 # ----------------------------------
1783 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1784 ac_fn_c_check_func ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1790 $as_echo_n "(cached) " >&6
1791 else
1792 if test x$gcc_no_link = xyes; then
1793 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1799 #define $2 innocuous_$2
1801 /* System header to define __stub macros and hopefully few prototypes,
1802 which can conflict with char $2 (); below.
1803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1804 <limits.h> exists even on freestanding compilers. */
1806 #ifdef __STDC__
1807 # include <limits.h>
1808 #else
1809 # include <assert.h>
1810 #endif
1812 #undef $2
1814 /* Override any GCC internal prototype to avoid an error.
1815 Use char because int might match the return type of a GCC
1816 builtin and then its argument prototype would still apply. */
1817 #ifdef __cplusplus
1818 extern "C"
1819 #endif
1820 char $2 ();
1821 /* The GNU C library defines this for functions which it implements
1822 to always fail with ENOSYS. Some functions are actually named
1823 something starting with __ and the normal name is an alias. */
1824 #if defined __stub_$2 || defined __stub___$2
1825 choke me
1826 #endif
1829 main ()
1831 return $2 ();
1833 return 0;
1835 _ACEOF
1836 if ac_fn_c_try_link "$LINENO"; then :
1837 eval "$3=yes"
1838 else
1839 eval "$3=no"
1841 rm -f core conftest.err conftest.$ac_objext \
1842 conftest$ac_exeext conftest.$ac_ext
1844 eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 } # ac_fn_c_check_func
1850 cat >config.log <<_ACEOF
1851 This file contains any messages produced by compilers while
1852 running configure, to aid debugging if configure makes a mistake.
1854 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1855 generated by GNU Autoconf 2.64. Invocation command line was
1857 $ $0 $@
1859 _ACEOF
1860 exec 5>>config.log
1862 cat <<_ASUNAME
1863 ## --------- ##
1864 ## Platform. ##
1865 ## --------- ##
1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1876 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1877 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1880 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1881 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1882 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1884 _ASUNAME
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 $as_echo "PATH: $as_dir"
1892 done
1893 IFS=$as_save_IFS
1895 } >&5
1897 cat >&5 <<_ACEOF
1900 ## ----------- ##
1901 ## Core tests. ##
1902 ## ----------- ##
1904 _ACEOF
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1912 ac_configure_args=
1913 ac_configure_args0=
1914 ac_configure_args1=
1915 ac_must_keep_next=false
1916 for ac_pass in 1 2
1918 for ac_arg
1920 case $ac_arg in
1921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923 | -silent | --silent | --silen | --sile | --sil)
1924 continue ;;
1925 *\'*)
1926 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927 esac
1928 case $ac_pass in
1929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1931 as_fn_append ac_configure_args1 " '$ac_arg'"
1932 if test $ac_must_keep_next = true; then
1933 ac_must_keep_next=false # Got value, back to normal.
1934 else
1935 case $ac_arg in
1936 *=* | --config-cache | -C | -disable-* | --disable-* \
1937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939 | -with-* | --with-* | -without-* | --without-* | --x)
1940 case "$ac_configure_args0 " in
1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942 esac
1944 -* ) ac_must_keep_next=true ;;
1945 esac
1947 as_fn_append ac_configure_args " '$ac_arg'"
1949 esac
1950 done
1951 done
1952 { ac_configure_args0=; unset ac_configure_args0;}
1953 { ac_configure_args1=; unset ac_configure_args1;}
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log. We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961 # Save into config.log some information that might help in debugging.
1963 echo
1965 cat <<\_ASBOX
1966 ## ---------------- ##
1967 ## Cache variables. ##
1968 ## ---------------- ##
1969 _ASBOX
1970 echo
1971 # The following way of writing the cache mishandles newlines in values,
1973 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1974 eval ac_val=\$$ac_var
1975 case $ac_val in #(
1976 *${as_nl}*)
1977 case $ac_var in #(
1978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1980 esac
1981 case $ac_var in #(
1982 _ | IFS | as_nl) ;; #(
1983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1984 *) { eval $ac_var=; unset $ac_var;} ;;
1985 esac ;;
1986 esac
1987 done
1988 (set) 2>&1 |
1989 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1990 *${as_nl}ac_space=\ *)
1991 sed -n \
1992 "s/'\''/'\''\\\\'\'''\''/g;
1993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1994 ;; #(
1996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1998 esac |
1999 sort
2001 echo
2003 cat <<\_ASBOX
2004 ## ----------------- ##
2005 ## Output variables. ##
2006 ## ----------------- ##
2007 _ASBOX
2008 echo
2009 for ac_var in $ac_subst_vars
2011 eval ac_val=\$$ac_var
2012 case $ac_val in
2013 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014 esac
2015 $as_echo "$ac_var='\''$ac_val'\''"
2016 done | sort
2017 echo
2019 if test -n "$ac_subst_files"; then
2020 cat <<\_ASBOX
2021 ## ------------------- ##
2022 ## File substitutions. ##
2023 ## ------------------- ##
2024 _ASBOX
2025 echo
2026 for ac_var in $ac_subst_files
2028 eval ac_val=\$$ac_var
2029 case $ac_val in
2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 esac
2032 $as_echo "$ac_var='\''$ac_val'\''"
2033 done | sort
2034 echo
2037 if test -s confdefs.h; then
2038 cat <<\_ASBOX
2039 ## ----------- ##
2040 ## confdefs.h. ##
2041 ## ----------- ##
2042 _ASBOX
2043 echo
2044 cat confdefs.h
2045 echo
2047 test "$ac_signal" != 0 &&
2048 $as_echo "$as_me: caught signal $ac_signal"
2049 $as_echo "$as_me: exit $exit_status"
2050 } >&5
2051 rm -f core *.core core.conftest.* &&
2052 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2053 exit $exit_status
2055 for ac_signal in 1 2 13 15; do
2056 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2057 done
2058 ac_signal=0
2060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2061 rm -f -r conftest* confdefs.h
2063 $as_echo "/* confdefs.h */" > confdefs.h
2065 # Predefined preprocessor variables.
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_NAME "$PACKAGE_NAME"
2069 _ACEOF
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2073 _ACEOF
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2077 _ACEOF
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_STRING "$PACKAGE_STRING"
2081 _ACEOF
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2085 _ACEOF
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_URL "$PACKAGE_URL"
2089 _ACEOF
2092 # Let the site file select an alternate cache file if it wants to.
2093 # Prefer an explicitly selected file to automatically selected ones.
2094 ac_site_file1=NONE
2095 ac_site_file2=NONE
2096 if test -n "$CONFIG_SITE"; then
2097 ac_site_file1=$CONFIG_SITE
2098 elif test "x$prefix" != xNONE; then
2099 ac_site_file1=$prefix/share/config.site
2100 ac_site_file2=$prefix/etc/config.site
2101 else
2102 ac_site_file1=$ac_default_prefix/share/config.site
2103 ac_site_file2=$ac_default_prefix/etc/config.site
2105 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2107 test "x$ac_site_file" = xNONE && continue
2108 if test -r "$ac_site_file"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2110 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2111 sed 's/^/| /' "$ac_site_file" >&5
2112 . "$ac_site_file"
2114 done
2116 if test -r "$cache_file"; then
2117 # Some versions of bash will fail to source /dev/null (special
2118 # files actually), so we avoid doing that.
2119 if test -f "$cache_file"; then
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2121 $as_echo "$as_me: loading cache $cache_file" >&6;}
2122 case $cache_file in
2123 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2124 *) . "./$cache_file";;
2125 esac
2127 else
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2129 $as_echo "$as_me: creating cache $cache_file" >&6;}
2130 >$cache_file
2133 # Check that the precious variables saved in the cache have kept the same
2134 # value.
2135 ac_cache_corrupted=false
2136 for ac_var in $ac_precious_vars; do
2137 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2138 eval ac_new_set=\$ac_env_${ac_var}_set
2139 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2140 eval ac_new_val=\$ac_env_${ac_var}_value
2141 case $ac_old_set,$ac_new_set in
2142 set,)
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2144 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2145 ac_cache_corrupted=: ;;
2146 ,set)
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2148 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2150 ,);;
2152 if test "x$ac_old_val" != "x$ac_new_val"; then
2153 # differences in whitespace do not lead to failure.
2154 ac_old_val_w=`echo x $ac_old_val`
2155 ac_new_val_w=`echo x $ac_new_val`
2156 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2158 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2159 ac_cache_corrupted=:
2160 else
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2162 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2163 eval $ac_var=\$ac_old_val
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2166 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2168 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2169 fi;;
2170 esac
2171 # Pass precious variables to config.status.
2172 if test "$ac_new_set" = set; then
2173 case $ac_new_val in
2174 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 *) ac_arg=$ac_var=$ac_new_val ;;
2176 esac
2177 case " $ac_configure_args " in
2178 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2179 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2180 esac
2182 done
2183 if $ac_cache_corrupted; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2187 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2188 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2190 ## -------------------- ##
2191 ## Main body of script. ##
2192 ## -------------------- ##
2194 ac_ext=c
2195 ac_cpp='$CPP $CPPFLAGS'
2196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2204 ac_config_headers="$ac_config_headers config.h"
2207 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2209 # You will slowly go insane if you do not grok the following fact: when
2210 # building this library, the top-level /target/ becomes the library's /host/.
2212 # configure then causes --target to default to --host, exactly like any
2213 # other package using autoconf. Therefore, 'target' and 'host' will
2214 # always be the same. This makes sense both for native and cross compilers
2215 # just think about it for a little while. :-)
2217 # Also, if this library is being configured as part of a cross compiler, the
2218 # top-level configure script will pass the "real" host as $with_cross_host.
2220 # Do not delete or change the following two lines. For why, see
2221 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2222 ac_aux_dir=
2223 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2224 for ac_t in install-sh install.sh shtool; do
2225 if test -f "$ac_dir/$ac_t"; then
2226 ac_aux_dir=$ac_dir
2227 ac_install_sh="$ac_aux_dir/$ac_t -c"
2228 break 2
2230 done
2231 done
2232 if test -z "$ac_aux_dir"; then
2233 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2236 # These three variables are undocumented and unsupported,
2237 # and are intended to be withdrawn in a future Autoconf release.
2238 # They can cause serious problems if a builder's source tree is in a directory
2239 # whose full name contains unusual characters.
2240 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2241 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2242 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2245 # Make sure we can run config.sub.
2246 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2247 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2250 $as_echo_n "checking build system type... " >&6; }
2251 if test "${ac_cv_build+set}" = set; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 ac_build_alias=$build_alias
2255 test "x$ac_build_alias" = x &&
2256 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2257 test "x$ac_build_alias" = x &&
2258 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2259 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2260 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2264 $as_echo "$ac_cv_build" >&6; }
2265 case $ac_cv_build in
2266 *-*-*) ;;
2267 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2268 esac
2269 build=$ac_cv_build
2270 ac_save_IFS=$IFS; IFS='-'
2271 set x $ac_cv_build
2272 shift
2273 build_cpu=$1
2274 build_vendor=$2
2275 shift; shift
2276 # Remember, the first character of IFS is used to create $*,
2277 # except with old shells:
2278 build_os=$*
2279 IFS=$ac_save_IFS
2280 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2284 $as_echo_n "checking host system type... " >&6; }
2285 if test "${ac_cv_host+set}" = set; then :
2286 $as_echo_n "(cached) " >&6
2287 else
2288 if test "x$host_alias" = x; then
2289 ac_cv_host=$ac_cv_build
2290 else
2291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2292 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2297 $as_echo "$ac_cv_host" >&6; }
2298 case $ac_cv_host in
2299 *-*-*) ;;
2300 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2301 esac
2302 host=$ac_cv_host
2303 ac_save_IFS=$IFS; IFS='-'
2304 set x $ac_cv_host
2305 shift
2306 host_cpu=$1
2307 host_vendor=$2
2308 shift; shift
2309 # Remember, the first character of IFS is used to create $*,
2310 # except with old shells:
2311 host_os=$*
2312 IFS=$ac_save_IFS
2313 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2317 $as_echo_n "checking target system type... " >&6; }
2318 if test "${ac_cv_target+set}" = set; then :
2319 $as_echo_n "(cached) " >&6
2320 else
2321 if test "x$target_alias" = x; then
2322 ac_cv_target=$ac_cv_host
2323 else
2324 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2325 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2330 $as_echo "$ac_cv_target" >&6; }
2331 case $ac_cv_target in
2332 *-*-*) ;;
2333 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2334 esac
2335 target=$ac_cv_target
2336 ac_save_IFS=$IFS; IFS='-'
2337 set x $ac_cv_target
2338 shift
2339 target_cpu=$1
2340 target_vendor=$2
2341 shift; shift
2342 # Remember, the first character of IFS is used to create $*,
2343 # except with old shells:
2344 target_os=$*
2345 IFS=$ac_save_IFS
2346 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2349 # The aliases save the names the user supplied, while $host etc.
2350 # will get canonicalized.
2351 test -n "$target_alias" &&
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2353 NONENONEs,x,x, &&
2354 program_prefix=${target_alias}-
2356 case ${build_alias} in
2357 "") build_noncanonical=${build} ;;
2358 *) build_noncanonical=${build_alias} ;;
2359 esac
2361 case ${host_alias} in
2362 "") host_noncanonical=${build_noncanonical} ;;
2363 *) host_noncanonical=${host_alias} ;;
2364 esac
2366 case ${target_alias} in
2367 "") target_noncanonical=${host_noncanonical} ;;
2368 *) target_noncanonical=${target_alias} ;;
2369 esac
2374 # Default to --enable-multilib
2375 # Check whether --enable-multilib was given.
2376 if test "${enable_multilib+set}" = set; then :
2377 enableval=$enable_multilib; case "$enableval" in
2378 yes) multilib=yes ;;
2379 no) multilib=no ;;
2380 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2381 esac
2382 else
2383 multilib=yes
2387 # We may get other options which we leave undocumented:
2388 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2389 # See config-ml.in if you want the gory details.
2391 if test "$srcdir" = "."; then
2392 if test "$with_target_subdir" != "."; then
2393 multi_basedir="$srcdir/$with_multisrctop../.."
2394 else
2395 multi_basedir="$srcdir/$with_multisrctop.."
2397 else
2398 multi_basedir="$srcdir/.."
2402 # Even if the default multilib is not a cross compilation,
2403 # it may be that some of the other multilibs are.
2404 if test $cross_compiling = no && test $multilib = yes \
2405 && test "x${with_multisubdir}" != x ; then
2406 cross_compiling=maybe
2409 ac_config_commands="$ac_config_commands default-1"
2412 target_alias=${target_alias-$host_alias}
2415 am__api_version='1.11'
2417 # Find a good install program. We prefer a C program (faster),
2418 # so one script is as good as another. But avoid the broken or
2419 # incompatible versions:
2420 # SysV /etc/install, /usr/sbin/install
2421 # SunOS /usr/etc/install
2422 # IRIX /sbin/install
2423 # AIX /bin/install
2424 # AmigaOS /C/install, which installs bootblocks on floppy discs
2425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2428 # OS/2's system install, which has a completely different semantic
2429 # ./install, which can be erroneously created by make from ./install.sh.
2430 # Reject install programs that cannot install multiple files.
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2433 if test -z "$INSTALL"; then
2434 if test "${ac_cv_path_install+set}" = set; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 # Account for people who put trailing slashes in PATH elements.
2443 case $as_dir/ in #((
2444 ./ | .// | /[cC]/* | \
2445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2447 /usr/ucb/* ) ;;
2449 # OSF1 and SCO ODT 3.0 have their own names for install.
2450 # Don't use installbsd from OSF since it installs stuff as root
2451 # by default.
2452 for ac_prog in ginstall scoinst install; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2455 if test $ac_prog = install &&
2456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # AIX install. It has an incompatible calling convention.
2459 elif test $ac_prog = install &&
2460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # program-specific install script used by HP pwplus--don't use.
2463 else
2464 rm -rf conftest.one conftest.two conftest.dir
2465 echo one > conftest.one
2466 echo two > conftest.two
2467 mkdir conftest.dir
2468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469 test -s conftest.one && test -s conftest.two &&
2470 test -s conftest.dir/conftest.one &&
2471 test -s conftest.dir/conftest.two
2472 then
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474 break 3
2478 done
2479 done
2481 esac
2483 done
2484 IFS=$as_save_IFS
2486 rm -rf conftest.one conftest.two conftest.dir
2489 if test "${ac_cv_path_install+set}" = set; then
2490 INSTALL=$ac_cv_path_install
2491 else
2492 # As a last resort, use the slow shell script. Don't cache a
2493 # value for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the value is a relative name.
2496 INSTALL=$ac_install_sh
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500 $as_echo "$INSTALL" >&6; }
2502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503 # It thinks the first close brace ends the variable substitution.
2504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2511 $as_echo_n "checking whether build environment is sane... " >&6; }
2512 # Just in case
2513 sleep 1
2514 echo timestamp > conftest.file
2515 # Reject unsafe characters in $srcdir or the absolute working directory
2516 # name. Accept space and tab only in the latter.
2517 am_lf='
2519 case `pwd` in
2520 *[\\\"\#\$\&\'\`$am_lf]*)
2521 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2522 esac
2523 case $srcdir in
2524 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2525 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2526 esac
2528 # Do `set' in a subshell so we don't clobber the current shell's
2529 # arguments. Must try -L first in case configure is actually a
2530 # symlink; some systems play weird games with the mod time of symlinks
2531 # (eg FreeBSD returns the mod time of the symlink's containing
2532 # directory).
2533 if (
2534 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2535 if test "$*" = "X"; then
2536 # -L didn't work.
2537 set X `ls -t "$srcdir/configure" conftest.file`
2539 rm -f conftest.file
2540 if test "$*" != "X $srcdir/configure conftest.file" \
2541 && test "$*" != "X conftest.file $srcdir/configure"; then
2543 # If neither matched, then we have a broken ls. This can happen
2544 # if, for instance, CONFIG_SHELL is bash and it inherits a
2545 # broken ls alias from the environment. This has actually
2546 # happened. Such a system could not be considered "sane".
2547 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2548 alias in your environment" "$LINENO" 5
2551 test "$2" = conftest.file
2553 then
2554 # Ok.
2556 else
2557 as_fn_error "newly created file is older than distributed files!
2558 Check your system clock" "$LINENO" 5
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2561 $as_echo "yes" >&6; }
2562 test "$program_prefix" != NONE &&
2563 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2564 # Use a double $ so make ignores it.
2565 test "$program_suffix" != NONE &&
2566 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2567 # Double any \ or $.
2568 # By default was `s,x,x', remove it if useless.
2569 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2570 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2572 # expand $ac_aux_dir to an absolute path
2573 am_aux_dir=`cd $ac_aux_dir && pwd`
2575 if test x"${MISSING+set}" != xset; then
2576 case $am_aux_dir in
2577 *\ * | *\ *)
2578 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2580 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2581 esac
2583 # Use eval to expand $SHELL
2584 if eval "$MISSING --run true"; then
2585 am_missing_run="$MISSING --run "
2586 else
2587 am_missing_run=
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2589 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2592 if test x"${install_sh}" != xset; then
2593 case $am_aux_dir in
2594 *\ * | *\ *)
2595 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2597 install_sh="\${SHELL} $am_aux_dir/install-sh"
2598 esac
2601 # Installed binaries are usually stripped using `strip' when the user
2602 # run `make install-strip'. However `strip' might not be the right
2603 # tool to use in cross-compilation environments, therefore Automake
2604 # will honor the `STRIP' environment variable to overrule this program.
2605 if test "$cross_compiling" != no; then
2606 if test -n "$ac_tool_prefix"; then
2607 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2608 set dummy ${ac_tool_prefix}strip; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if test "${ac_cv_prog_STRIP+set}" = set; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$STRIP"; then
2615 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2628 done
2629 done
2630 IFS=$as_save_IFS
2634 STRIP=$ac_cv_prog_STRIP
2635 if test -n "$STRIP"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2637 $as_echo "$STRIP" >&6; }
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2645 if test -z "$ac_cv_prog_STRIP"; then
2646 ac_ct_STRIP=$STRIP
2647 # Extract the first word of "strip", so it can be a program name with args.
2648 set dummy strip; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if test -n "$ac_ct_STRIP"; then
2655 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_ac_ct_STRIP="strip"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2668 done
2669 done
2670 IFS=$as_save_IFS
2674 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2675 if test -n "$ac_ct_STRIP"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2677 $as_echo "$ac_ct_STRIP" >&6; }
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2683 if test "x$ac_ct_STRIP" = x; then
2684 STRIP=":"
2685 else
2686 case $cross_compiling:$ac_tool_warned in
2687 yes:)
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2690 ac_tool_warned=yes ;;
2691 esac
2692 STRIP=$ac_ct_STRIP
2694 else
2695 STRIP="$ac_cv_prog_STRIP"
2699 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2702 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2703 if test -z "$MKDIR_P"; then
2704 if test "${ac_cv_path_mkdir+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_prog in mkdir gmkdir; do
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2715 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2716 'mkdir (GNU coreutils) '* | \
2717 'mkdir (coreutils) '* | \
2718 'mkdir (fileutils) '4.1*)
2719 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2720 break 3;;
2721 esac
2722 done
2723 done
2724 done
2725 IFS=$as_save_IFS
2729 if test "${ac_cv_path_mkdir+set}" = set; then
2730 MKDIR_P="$ac_cv_path_mkdir -p"
2731 else
2732 # As a last resort, use the slow shell script. Don't cache a
2733 # value for MKDIR_P within a source directory, because that will
2734 # break other packages using the cache if that directory is
2735 # removed, or if the value is a relative name.
2736 test -d ./--version && rmdir ./--version
2737 MKDIR_P="$ac_install_sh -d"
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2741 $as_echo "$MKDIR_P" >&6; }
2743 mkdir_p="$MKDIR_P"
2744 case $mkdir_p in
2745 [\\/$]* | ?:[\\/]*) ;;
2746 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2747 esac
2749 for ac_prog in gawk mawk nawk awk
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752 set dummy $ac_prog; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if test "${ac_cv_prog_AWK+set}" = set; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test -n "$AWK"; then
2759 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_AWK="$ac_prog"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2772 done
2773 done
2774 IFS=$as_save_IFS
2778 AWK=$ac_cv_prog_AWK
2779 if test -n "$AWK"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2781 $as_echo "$AWK" >&6; }
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2788 test -n "$AWK" && break
2789 done
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2792 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2793 set x ${MAKE-make}
2794 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2795 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 cat >conftest.make <<\_ACEOF
2799 SHELL = /bin/sh
2800 all:
2801 @echo '@@@%%%=$(MAKE)=@@@%%%'
2802 _ACEOF
2803 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2804 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2805 *@@@%%%=?*=@@@%%%*)
2806 eval ac_cv_prog_make_${ac_make}_set=yes;;
2808 eval ac_cv_prog_make_${ac_make}_set=no;;
2809 esac
2810 rm -f conftest.make
2812 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814 $as_echo "yes" >&6; }
2815 SET_MAKE=
2816 else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2819 SET_MAKE="MAKE=${MAKE-make}"
2822 rm -rf .tst 2>/dev/null
2823 mkdir .tst 2>/dev/null
2824 if test -d .tst; then
2825 am__leading_dot=.
2826 else
2827 am__leading_dot=_
2829 rmdir .tst 2>/dev/null
2831 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2832 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2833 # is not polluted with repeated "-I."
2834 am__isrc=' -I$(srcdir)'
2835 # test to see if srcdir already configured
2836 if test -f $srcdir/config.status; then
2837 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2841 # test whether we have cygpath
2842 if test -z "$CYGPATH_W"; then
2843 if (cygpath --version) >/dev/null 2>/dev/null; then
2844 CYGPATH_W='cygpath -w'
2845 else
2846 CYGPATH_W=echo
2851 # Define the identity of the package.
2852 PACKAGE='libquadmath'
2853 VERSION='0.1'
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE "$PACKAGE"
2858 _ACEOF
2861 cat >>confdefs.h <<_ACEOF
2862 #define VERSION "$VERSION"
2863 _ACEOF
2865 # Some tools Automake needs.
2867 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2870 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2873 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2876 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2879 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2881 # We need awk for the "check" target. The system "awk" is bad on
2882 # some platforms.
2883 # Always define AMTAR for backward compatibility. Yes, it's still used
2884 # in the wild :-( We should find a proper way to deprecate it ...
2885 AMTAR='$${TAR-tar}'
2887 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2895 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2896 # Check whether --enable-version-specific-runtime-libs was given.
2897 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2898 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2899 yes) version_specific_libs=yes ;;
2900 no) version_specific_libs=no ;;
2901 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2902 esac
2903 else
2904 version_specific_libs=no
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2908 $as_echo "$version_specific_libs" >&6; }
2912 DEPDIR="${am__leading_dot}deps"
2914 ac_config_commands="$ac_config_commands depfiles"
2917 am_make=${MAKE-make}
2918 cat > confinc << 'END'
2919 am__doit:
2920 @echo this is the am__doit target
2921 .PHONY: am__doit
2923 # If we don't find an include directive, just comment out the code.
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2925 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2926 am__include="#"
2927 am__quote=
2928 _am_result=none
2929 # First try GNU make style include.
2930 echo "include confinc" > confmf
2931 # Ignore all kinds of additional output from `make'.
2932 case `$am_make -s -f confmf 2> /dev/null` in #(
2933 *the\ am__doit\ target*)
2934 am__include=include
2935 am__quote=
2936 _am_result=GNU
2938 esac
2939 # Now try BSD make style include.
2940 if test "$am__include" = "#"; then
2941 echo '.include "confinc"' > confmf
2942 case `$am_make -s -f confmf 2> /dev/null` in #(
2943 *the\ am__doit\ target*)
2944 am__include=.include
2945 am__quote="\""
2946 _am_result=BSD
2948 esac
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2953 $as_echo "$_am_result" >&6; }
2954 rm -f confinc confmf
2956 # Check whether --enable-dependency-tracking was given.
2957 if test "${enable_dependency_tracking+set}" = set; then :
2958 enableval=$enable_dependency_tracking;
2961 if test "x$enable_dependency_tracking" != xno; then
2962 am_depcomp="$ac_aux_dir/depcomp"
2963 AMDEPBACKSLASH='\'
2964 am__nodep='_no'
2966 if test "x$enable_dependency_tracking" != xno; then
2967 AMDEP_TRUE=
2968 AMDEP_FALSE='#'
2969 else
2970 AMDEP_TRUE='#'
2971 AMDEP_FALSE=
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980 if test -n "$ac_tool_prefix"; then
2981 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if test "${ac_cv_prog_CC+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3002 done
3003 done
3004 IFS=$as_save_IFS
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3019 if test -z "$ac_cv_prog_CC"; then
3020 ac_ct_CC=$CC
3021 # Extract the first word of "gcc", so it can be a program name with args.
3022 set dummy gcc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3026 $as_echo_n "(cached) " >&6
3027 else
3028 if test -n "$ac_ct_CC"; then
3029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 ac_cv_prog_ac_ct_CC="gcc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3042 done
3043 done
3044 IFS=$as_save_IFS
3048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3051 $as_echo "$ac_ct_CC" >&6; }
3052 else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3057 if test "x$ac_ct_CC" = x; then
3058 CC=""
3059 else
3060 case $cross_compiling:$ac_tool_warned in
3061 yes:)
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned=yes ;;
3065 esac
3066 CC=$ac_ct_CC
3068 else
3069 CC="$ac_cv_prog_CC"
3072 if test -z "$CC"; then
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}cc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_CC="${ac_tool_prefix}cc"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3095 done
3096 done
3097 IFS=$as_save_IFS
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3113 if test -z "$CC"; then
3114 # Extract the first word of "cc", so it can be a program name with args.
3115 set dummy cc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if test "${ac_cv_prog_CC+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3123 else
3124 ac_prog_rejected=no
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3133 ac_prog_rejected=yes
3134 continue
3136 ac_cv_prog_CC="cc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3140 done
3141 done
3142 IFS=$as_save_IFS
3144 if test $ac_prog_rejected = yes; then
3145 # We found a bogon in the path, so make sure we never use it.
3146 set dummy $ac_cv_prog_CC
3147 shift
3148 if test $# != 0; then
3149 # We chose a different compiler from the bogus one.
3150 # However, it has the same basename, so the bogon will be chosen
3151 # first if we set CC to just the basename; use the full file name.
3152 shift
3153 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3169 if test -z "$CC"; then
3170 if test -n "$ac_tool_prefix"; then
3171 for ac_prog in cl.exe
3173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if test "${ac_cv_prog_CC+set}" = set; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$CC"; then
3181 ac_cv_prog_CC="$CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3194 done
3195 done
3196 IFS=$as_save_IFS
3200 CC=$ac_cv_prog_CC
3201 if test -n "$CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203 $as_echo "$CC" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3210 test -n "$CC" && break
3211 done
3213 if test -z "$CC"; then
3214 ac_ct_CC=$CC
3215 for ac_prog in cl.exe
3217 # Extract the first word of "$ac_prog", so it can be a program name with args.
3218 set dummy $ac_prog; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 if test -n "$ac_ct_CC"; then
3225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_ac_ct_CC="$ac_prog"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 break 2
3238 done
3239 done
3240 IFS=$as_save_IFS
3244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3245 if test -n "$ac_ct_CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3247 $as_echo "$ac_ct_CC" >&6; }
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3254 test -n "$ac_ct_CC" && break
3255 done
3257 if test "x$ac_ct_CC" = x; then
3258 CC=""
3259 else
3260 case $cross_compiling:$ac_tool_warned in
3261 yes:)
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264 ac_tool_warned=yes ;;
3265 esac
3266 CC=$ac_ct_CC
3273 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error "no acceptable C compiler found in \$PATH
3276 See \`config.log' for more details." "$LINENO" 5; }
3278 # Provide some information about the compiler.
3279 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3280 set X $ac_compile
3281 ac_compiler=$2
3282 for ac_option in --version -v -V -qversion; do
3283 { { ac_try="$ac_compiler $ac_option >&5"
3284 case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3291 ac_status=$?
3292 if test -s conftest.err; then
3293 sed '10a\
3294 ... rest of stderr output deleted ...
3295 10q' conftest.err >conftest.er1
3296 cat conftest.er1 >&5
3297 rm -f conftest.er1 conftest.err
3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }
3301 done
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3307 main ()
3311 return 0;
3313 _ACEOF
3314 # FIXME: Cleanup?
3315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3316 (eval $ac_link) 2>&5
3317 ac_status=$?
3318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }; then :
3320 gcc_no_link=no
3321 else
3322 gcc_no_link=yes
3324 if test x$gcc_no_link = xyes; then
3325 # Setting cross_compile will disable run tests; it will
3326 # also disable AC_CHECK_FILE but that's generally
3327 # correct if we can't link.
3328 cross_compiling=yes
3329 EXEEXT=
3330 else
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3335 main ()
3339 return 0;
3341 _ACEOF
3342 ac_clean_files_save=$ac_clean_files
3343 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3344 # Try to create an executable without -o first, disregard a.out.
3345 # It will help us diagnose broken compilers, and finding out an intuition
3346 # of exeext.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3348 $as_echo_n "checking for C compiler default output file name... " >&6; }
3349 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3351 # The possible output files:
3352 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3354 ac_rmfiles=
3355 for ac_file in $ac_files
3357 case $ac_file in
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3360 esac
3361 done
3362 rm -f $ac_rmfiles
3364 if { { ac_try="$ac_link_default"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_link_default") 2>&5
3372 ac_status=$?
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }; then :
3375 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3376 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3377 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3378 # so that the user can short-circuit this test for compilers unknown to
3379 # Autoconf.
3380 for ac_file in $ac_files ''
3382 test -f "$ac_file" || continue
3383 case $ac_file in
3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3386 [ab].out )
3387 # We found the default executable, but exeext='' is most
3388 # certainly right.
3389 break;;
3390 *.* )
3391 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3392 then :; else
3393 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3395 # We set ac_cv_exeext here because the later test for it is not
3396 # safe: cross compilers may not add the suffix if given an `-o'
3397 # argument, so we may need to know it at that point already.
3398 # Even if this section looks crufty: it has the advantage of
3399 # actually working.
3400 break;;
3402 break;;
3403 esac
3404 done
3405 test "$ac_cv_exeext" = no && ac_cv_exeext=
3407 else
3408 ac_file=''
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3411 $as_echo "$ac_file" >&6; }
3412 if test -z "$ac_file"; then :
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 { as_fn_set_status 77
3419 as_fn_error "C compiler cannot create executables
3420 See \`config.log' for more details." "$LINENO" 5; }; }
3422 ac_exeext=$ac_cv_exeext
3424 # Check that the compiler produces executables we can run. If not, either
3425 # the compiler is broken, or we cross compile.
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3427 $as_echo_n "checking whether the C compiler works... " >&6; }
3428 # If not cross compiling, check that we can run a simple program.
3429 if test "$cross_compiling" != yes; then
3430 if { ac_try='./$ac_file'
3431 { { case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_try") 2>&5
3438 ac_status=$?
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }; }; then
3441 cross_compiling=no
3442 else
3443 if test "$cross_compiling" = maybe; then
3444 cross_compiling=yes
3445 else
3446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error "cannot run C compiled programs.
3449 If you meant to cross compile, use \`--host'.
3450 See \`config.log' for more details." "$LINENO" 5; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3455 $as_echo "yes" >&6; }
3457 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3458 ac_clean_files=$ac_clean_files_save
3459 # Check that the compiler produces executables we can run. If not, either
3460 # the compiler is broken, or we cross compile.
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3462 $as_echo_n "checking whether we are cross compiling... " >&6; }
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3464 $as_echo "$cross_compiling" >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3467 $as_echo_n "checking for suffix of executables... " >&6; }
3468 if { { ac_try="$ac_link"
3469 case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475 (eval "$ac_link") 2>&5
3476 ac_status=$?
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }; then :
3479 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3480 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3481 # work properly (i.e., refer to `conftest.exe'), while it won't with
3482 # `rm'.
3483 for ac_file in conftest.exe conftest conftest.*; do
3484 test -f "$ac_file" || continue
3485 case $ac_file in
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3487 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3488 break;;
3489 * ) break;;
3490 esac
3491 done
3492 else
3493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error "cannot compute suffix of executables: cannot compile and link
3496 See \`config.log' for more details." "$LINENO" 5; }
3498 rm -f conftest$ac_cv_exeext
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3500 $as_echo "$ac_cv_exeext" >&6; }
3502 rm -f conftest.$ac_ext
3503 EXEEXT=$ac_cv_exeext
3504 ac_exeext=$EXEEXT
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3507 $as_echo_n "checking for suffix of object files... " >&6; }
3508 if test "${ac_cv_objext+set}" = set; then :
3509 $as_echo_n "(cached) " >&6
3510 else
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3515 main ()
3519 return 0;
3521 _ACEOF
3522 rm -f conftest.o conftest.obj
3523 if { { ac_try="$ac_compile"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_compile") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; then :
3534 for ac_file in conftest.o conftest.obj conftest.*; do
3535 test -f "$ac_file" || continue;
3536 case $ac_file in
3537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3538 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3539 break;;
3540 esac
3541 done
3542 else
3543 $as_echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 as_fn_error "cannot compute suffix of object files: cannot compile
3549 See \`config.log' for more details." "$LINENO" 5; }
3551 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3554 $as_echo "$ac_cv_objext" >&6; }
3555 OBJEXT=$ac_cv_objext
3556 ac_objext=$OBJEXT
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3558 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3559 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3566 main ()
3568 #ifndef __GNUC__
3569 choke me
3570 #endif
3573 return 0;
3575 _ACEOF
3576 if ac_fn_c_try_compile "$LINENO"; then :
3577 ac_compiler_gnu=yes
3578 else
3579 ac_compiler_gnu=no
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3586 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3587 if test $ac_compiler_gnu = yes; then
3588 GCC=yes
3589 else
3590 GCC=
3592 ac_test_CFLAGS=${CFLAGS+set}
3593 ac_save_CFLAGS=$CFLAGS
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3595 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3596 if test "${ac_cv_prog_cc_g+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 ac_save_c_werror_flag=$ac_c_werror_flag
3600 ac_c_werror_flag=yes
3601 ac_cv_prog_cc_g=no
3602 CFLAGS="-g"
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3607 main ()
3611 return 0;
3613 _ACEOF
3614 if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_cv_prog_cc_g=yes
3616 else
3617 CFLAGS=""
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3622 main ()
3626 return 0;
3628 _ACEOF
3629 if ac_fn_c_try_compile "$LINENO"; then :
3631 else
3632 ac_c_werror_flag=$ac_save_c_werror_flag
3633 CFLAGS="-g"
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3638 main ()
3642 return 0;
3644 _ACEOF
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646 ac_cv_prog_cc_g=yes
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 ac_c_werror_flag=$ac_save_c_werror_flag
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3656 $as_echo "$ac_cv_prog_cc_g" >&6; }
3657 if test "$ac_test_CFLAGS" = set; then
3658 CFLAGS=$ac_save_CFLAGS
3659 elif test $ac_cv_prog_cc_g = yes; then
3660 if test "$GCC" = yes; then
3661 CFLAGS="-g -O2"
3662 else
3663 CFLAGS="-g"
3665 else
3666 if test "$GCC" = yes; then
3667 CFLAGS="-O2"
3668 else
3669 CFLAGS=
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3673 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3674 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 ac_cv_prog_cc_c89=no
3678 ac_save_CC=$CC
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681 #include <stdarg.h>
3682 #include <stdio.h>
3683 #include <sys/types.h>
3684 #include <sys/stat.h>
3685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3686 struct buf { int x; };
3687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3688 static char *e (p, i)
3689 char **p;
3690 int i;
3692 return p[i];
3694 static char *f (char * (*g) (char **, int), char **p, ...)
3696 char *s;
3697 va_list v;
3698 va_start (v,p);
3699 s = g (p, va_arg (v,int));
3700 va_end (v);
3701 return s;
3704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3705 function prototypes and stuff, but not '\xHH' hex character constants.
3706 These don't provoke an error unfortunately, instead are silently treated
3707 as 'x'. The following induces an error, until -std is added to get
3708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3709 array size at least. It's necessary to write '\x00'==0 to get something
3710 that's true only with -std. */
3711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3714 inside strings and character constants. */
3715 #define FOO(x) 'x'
3716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3718 int test (int i, double x);
3719 struct s1 {int (*f) (int a);};
3720 struct s2 {int (*f) (double a);};
3721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3722 int argc;
3723 char **argv;
3725 main ()
3727 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3729 return 0;
3731 _ACEOF
3732 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3733 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3735 CC="$ac_save_CC $ac_arg"
3736 if ac_fn_c_try_compile "$LINENO"; then :
3737 ac_cv_prog_cc_c89=$ac_arg
3739 rm -f core conftest.err conftest.$ac_objext
3740 test "x$ac_cv_prog_cc_c89" != "xno" && break
3741 done
3742 rm -f conftest.$ac_ext
3743 CC=$ac_save_CC
3746 # AC_CACHE_VAL
3747 case "x$ac_cv_prog_cc_c89" in
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3750 $as_echo "none needed" >&6; } ;;
3751 xno)
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3753 $as_echo "unsupported" >&6; } ;;
3755 CC="$CC $ac_cv_prog_cc_c89"
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3757 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3758 esac
3759 if test "x$ac_cv_prog_cc_c89" != xno; then :
3763 ac_ext=c
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769 depcc="$CC" am_compiler_list=
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named `D' -- because `-MD' means `put the output
3781 # in D'.
3782 rm -rf conftest.dir
3783 mkdir conftest.dir
3784 # Copy depcomp to subdir because otherwise we won't find it if we're
3785 # using a relative directory.
3786 cp "$am_depcomp" conftest.dir
3787 cd conftest.dir
3788 # We will build objects and dependencies in a subdirectory because
3789 # it helps to detect inapplicable dependency modes. For instance
3790 # both Tru64's cc and ICC support -MD to output dependencies as a
3791 # side effect of compilation, but ICC will put the dependencies in
3792 # the current directory while Tru64 will put them in the object
3793 # directory.
3794 mkdir sub
3796 am_cv_CC_dependencies_compiler_type=none
3797 if test "$am_compiler_list" = ""; then
3798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3800 am__universal=false
3801 case " $depcc " in #(
3802 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803 esac
3805 for depmode in $am_compiler_list; do
3806 # Setup a source with many dependencies, because some compilers
3807 # like to wrap large dependency lists on column 80 (with \), and
3808 # we should not choose a depcomp mode which is confused by this.
3810 # We need to recreate these files for each test, as the compiler may
3811 # overwrite some of them when testing with obscure command lines.
3812 # This happens at least with the AIX C compiler.
3813 : > sub/conftest.c
3814 for i in 1 2 3 4 5 6; do
3815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3817 # Solaris 8's {/usr,}/bin/sh.
3818 touch sub/conftst$i.h
3819 done
3820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3822 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3823 # mode. It turns out that the SunPro C++ compiler does not properly
3824 # handle `-M -o', and we need to detect this. Also, some Intel
3825 # versions had trouble with output in subdirs
3826 am__obj=sub/conftest.${OBJEXT-o}
3827 am__minus_obj="-o $am__obj"
3828 case $depmode in
3829 gcc)
3830 # This depmode causes a compiler race in universal mode.
3831 test "$am__universal" = false || continue
3833 nosideeffect)
3834 # after this tag, mechanisms are not by side-effect, so they'll
3835 # only be used when explicitly requested
3836 if test "x$enable_dependency_tracking" = xyes; then
3837 continue
3838 else
3839 break
3842 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3843 # This compiler won't grok `-c -o', but also, the minuso test has
3844 # not run yet. These depmodes are late enough in the game, and
3845 # so weak that their functioning should not be impacted.
3846 am__obj=conftest.${OBJEXT-o}
3847 am__minus_obj=
3849 none) break ;;
3850 esac
3851 if depmode=$depmode \
3852 source=sub/conftest.c object=$am__obj \
3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855 >/dev/null 2>conftest.err &&
3856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860 # icc doesn't choke on unknown options, it will just issue warnings
3861 # or remarks (even with -Werror). So we grep stderr for any message
3862 # that says an option was ignored or not supported.
3863 # When given -MP, icc 7.0 and 7.1 complain thusly:
3864 # icc: Command line warning: ignoring option '-M'; no argument required
3865 # The diagnosis changed in icc 8.0:
3866 # icc: Command line remark: option '-MP' not supported
3867 if (grep 'ignoring option' conftest.err ||
3868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869 am_cv_CC_dependencies_compiler_type=$depmode
3870 break
3873 done
3875 cd ..
3876 rm -rf conftest.dir
3877 else
3878 am_cv_CC_dependencies_compiler_type=none
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3884 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3887 test "x$enable_dependency_tracking" != xno \
3888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889 am__fastdepCC_TRUE=
3890 am__fastdepCC_FALSE='#'
3891 else
3892 am__fastdepCC_TRUE='#'
3893 am__fastdepCC_FALSE=
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3904 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3905 # On Suns, sometimes $CPP names a directory.
3906 if test -n "$CPP" && test -d "$CPP"; then
3907 CPP=
3909 if test -z "$CPP"; then
3910 if test "${ac_cv_prog_CPP+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 # Double quotes because CPP needs to be expanded
3914 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3916 ac_preproc_ok=false
3917 for ac_c_preproc_warn_flag in '' yes
3919 # Use a header file that comes with gcc, so configuring glibc
3920 # with a fresh cross-compiler works.
3921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3922 # <limits.h> exists even on freestanding compilers.
3923 # On the NeXT, cc -E runs the code through the compiler's parser,
3924 # not just through cpp. "Syntax error" is here to catch this case.
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927 #ifdef __STDC__
3928 # include <limits.h>
3929 #else
3930 # include <assert.h>
3931 #endif
3932 Syntax error
3933 _ACEOF
3934 if ac_fn_c_try_cpp "$LINENO"; then :
3936 else
3937 # Broken: fails on valid input.
3938 continue
3940 rm -f conftest.err conftest.$ac_ext
3942 # OK, works on sane cases. Now check whether nonexistent headers
3943 # can be detected and how.
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3946 #include <ac_nonexistent.h>
3947 _ACEOF
3948 if ac_fn_c_try_cpp "$LINENO"; then :
3949 # Broken: success on invalid input.
3950 continue
3951 else
3952 # Passes both tests.
3953 ac_preproc_ok=:
3954 break
3956 rm -f conftest.err conftest.$ac_ext
3958 done
3959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3960 rm -f conftest.err conftest.$ac_ext
3961 if $ac_preproc_ok; then :
3962 break
3965 done
3966 ac_cv_prog_CPP=$CPP
3969 CPP=$ac_cv_prog_CPP
3970 else
3971 ac_cv_prog_CPP=$CPP
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3974 $as_echo "$CPP" >&6; }
3975 ac_preproc_ok=false
3976 for ac_c_preproc_warn_flag in '' yes
3978 # Use a header file that comes with gcc, so configuring glibc
3979 # with a fresh cross-compiler works.
3980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3981 # <limits.h> exists even on freestanding compilers.
3982 # On the NeXT, cc -E runs the code through the compiler's parser,
3983 # not just through cpp. "Syntax error" is here to catch this case.
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3986 #ifdef __STDC__
3987 # include <limits.h>
3988 #else
3989 # include <assert.h>
3990 #endif
3991 Syntax error
3992 _ACEOF
3993 if ac_fn_c_try_cpp "$LINENO"; then :
3995 else
3996 # Broken: fails on valid input.
3997 continue
3999 rm -f conftest.err conftest.$ac_ext
4001 # OK, works on sane cases. Now check whether nonexistent headers
4002 # can be detected and how.
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005 #include <ac_nonexistent.h>
4006 _ACEOF
4007 if ac_fn_c_try_cpp "$LINENO"; then :
4008 # Broken: success on invalid input.
4009 continue
4010 else
4011 # Passes both tests.
4012 ac_preproc_ok=:
4013 break
4015 rm -f conftest.err conftest.$ac_ext
4017 done
4018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4019 rm -f conftest.err conftest.$ac_ext
4020 if $ac_preproc_ok; then :
4022 else
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4026 See \`config.log' for more details." "$LINENO" 5; }
4029 ac_ext=c
4030 ac_cpp='$CPP $CPPFLAGS'
4031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4037 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4038 if test "${ac_cv_path_GREP+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 if test -z "$GREP"; then
4042 ac_path_GREP_found=false
4043 # Loop through the user's path and test for each of PROGNAME-LIST
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_prog in grep ggrep; do
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4052 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4053 # Check for GNU ac_path_GREP and select it if it is found.
4054 # Check for GNU $ac_path_GREP
4055 case `"$ac_path_GREP" --version 2>&1` in
4056 *GNU*)
4057 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4059 ac_count=0
4060 $as_echo_n 0123456789 >"conftest.in"
4061 while :
4063 cat "conftest.in" "conftest.in" >"conftest.tmp"
4064 mv "conftest.tmp" "conftest.in"
4065 cp "conftest.in" "conftest.nl"
4066 $as_echo 'GREP' >> "conftest.nl"
4067 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4069 as_fn_arith $ac_count + 1 && ac_count=$as_val
4070 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4071 # Best one so far, save it but keep looking for a better one
4072 ac_cv_path_GREP="$ac_path_GREP"
4073 ac_path_GREP_max=$ac_count
4075 # 10*(2^10) chars as input seems more than enough
4076 test $ac_count -gt 10 && break
4077 done
4078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4079 esac
4081 $ac_path_GREP_found && break 3
4082 done
4083 done
4084 done
4085 IFS=$as_save_IFS
4086 if test -z "$ac_cv_path_GREP"; then
4087 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4089 else
4090 ac_cv_path_GREP=$GREP
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4095 $as_echo "$ac_cv_path_GREP" >&6; }
4096 GREP="$ac_cv_path_GREP"
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4100 $as_echo_n "checking for egrep... " >&6; }
4101 if test "${ac_cv_path_EGREP+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4105 then ac_cv_path_EGREP="$GREP -E"
4106 else
4107 if test -z "$EGREP"; then
4108 ac_path_EGREP_found=false
4109 # Loop through the user's path and test for each of PROGNAME-LIST
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_prog in egrep; do
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4118 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4119 # Check for GNU ac_path_EGREP and select it if it is found.
4120 # Check for GNU $ac_path_EGREP
4121 case `"$ac_path_EGREP" --version 2>&1` in
4122 *GNU*)
4123 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4125 ac_count=0
4126 $as_echo_n 0123456789 >"conftest.in"
4127 while :
4129 cat "conftest.in" "conftest.in" >"conftest.tmp"
4130 mv "conftest.tmp" "conftest.in"
4131 cp "conftest.in" "conftest.nl"
4132 $as_echo 'EGREP' >> "conftest.nl"
4133 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4135 as_fn_arith $ac_count + 1 && ac_count=$as_val
4136 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4137 # Best one so far, save it but keep looking for a better one
4138 ac_cv_path_EGREP="$ac_path_EGREP"
4139 ac_path_EGREP_max=$ac_count
4141 # 10*(2^10) chars as input seems more than enough
4142 test $ac_count -gt 10 && break
4143 done
4144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145 esac
4147 $ac_path_EGREP_found && break 3
4148 done
4149 done
4150 done
4151 IFS=$as_save_IFS
4152 if test -z "$ac_cv_path_EGREP"; then
4153 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4155 else
4156 ac_cv_path_EGREP=$EGREP
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4162 $as_echo "$ac_cv_path_EGREP" >&6; }
4163 EGREP="$ac_cv_path_EGREP"
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4167 $as_echo_n "checking for ANSI C header files... " >&6; }
4168 if test "${ac_cv_header_stdc+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #include <stdlib.h>
4174 #include <stdarg.h>
4175 #include <string.h>
4176 #include <float.h>
4179 main ()
4183 return 0;
4185 _ACEOF
4186 if ac_fn_c_try_compile "$LINENO"; then :
4187 ac_cv_header_stdc=yes
4188 else
4189 ac_cv_header_stdc=no
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 if test $ac_cv_header_stdc = yes; then
4194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197 #include <string.h>
4199 _ACEOF
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201 $EGREP "memchr" >/dev/null 2>&1; then :
4203 else
4204 ac_cv_header_stdc=no
4206 rm -f conftest*
4210 if test $ac_cv_header_stdc = yes; then
4211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #include <stdlib.h>
4216 _ACEOF
4217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4218 $EGREP "free" >/dev/null 2>&1; then :
4220 else
4221 ac_cv_header_stdc=no
4223 rm -f conftest*
4227 if test $ac_cv_header_stdc = yes; then
4228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4229 if test "$cross_compiling" = yes; then :
4231 else
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #include <ctype.h>
4235 #include <stdlib.h>
4236 #if ((' ' & 0x0FF) == 0x020)
4237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4239 #else
4240 # define ISLOWER(c) \
4241 (('a' <= (c) && (c) <= 'i') \
4242 || ('j' <= (c) && (c) <= 'r') \
4243 || ('s' <= (c) && (c) <= 'z'))
4244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4245 #endif
4247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4249 main ()
4251 int i;
4252 for (i = 0; i < 256; i++)
4253 if (XOR (islower (i), ISLOWER (i))
4254 || toupper (i) != TOUPPER (i))
4255 return 2;
4256 return 0;
4258 _ACEOF
4259 if ac_fn_c_try_run "$LINENO"; then :
4261 else
4262 ac_cv_header_stdc=no
4264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4265 conftest.$ac_objext conftest.beam conftest.$ac_ext
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4271 $as_echo "$ac_cv_header_stdc" >&6; }
4272 if test $ac_cv_header_stdc = yes; then
4274 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4278 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4279 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4280 inttypes.h stdint.h unistd.h
4281 do :
4282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4283 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4285 eval as_val=\$$as_ac_Header
4286 if test "x$as_val" = x""yes; then :
4287 cat >>confdefs.h <<_ACEOF
4288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4289 _ACEOF
4293 done
4297 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4298 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4299 MINIX=yes
4300 else
4301 MINIX=
4305 if test "$MINIX" = yes; then
4307 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4310 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4313 $as_echo "#define _MINIX 1" >>confdefs.h
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4319 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4320 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4326 # define __EXTENSIONS__ 1
4327 $ac_includes_default
4329 main ()
4333 return 0;
4335 _ACEOF
4336 if ac_fn_c_try_compile "$LINENO"; then :
4337 ac_cv_safe_to_define___extensions__=yes
4338 else
4339 ac_cv_safe_to_define___extensions__=no
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4344 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4345 test $ac_cv_safe_to_define___extensions__ = yes &&
4346 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4348 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4350 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4352 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4354 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4358 # See if makeinfo has been installed and is modern enough
4359 # that we can use it.
4361 # Extract the first word of "makeinfo", so it can be a program name with args.
4362 set dummy makeinfo; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 if test -n "$MAKEINFO"; then
4369 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4370 else
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_MAKEINFO="makeinfo"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4382 done
4383 done
4384 IFS=$as_save_IFS
4388 MAKEINFO=$ac_cv_prog_MAKEINFO
4389 if test -n "$MAKEINFO"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4391 $as_echo "$MAKEINFO" >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4398 if test -n "$MAKEINFO"; then
4399 # Found it, now check the version.
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4401 $as_echo_n "checking for modern makeinfo... " >&6; }
4402 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4406 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4408 case $ac_prog_version in
4409 '') gcc_cv_prog_makeinfo_modern=no;;
4410 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4411 *) gcc_cv_prog_makeinfo_modern=no;;
4412 esac
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4416 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4417 else
4418 gcc_cv_prog_makeinfo_modern=no
4420 if test $gcc_cv_prog_makeinfo_modern = no; then
4421 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4424 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4425 BUILD_INFO_TRUE=
4426 BUILD_INFO_FALSE='#'
4427 else
4428 BUILD_INFO_TRUE='#'
4429 BUILD_INFO_FALSE=
4435 # Check whether --with-bugurl was given.
4436 if test "${with_bugurl+set}" = set; then :
4437 withval=$with_bugurl; case "$withval" in
4438 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4439 no) BUGURL=
4441 *) BUGURL="$withval"
4443 esac
4444 else
4445 BUGURL="http://gcc.gnu.org/bugs.html"
4449 case ${BUGURL} in
4451 REPORT_BUGS_TO=
4452 REPORT_BUGS_TEXI=
4455 REPORT_BUGS_TO="<$BUGURL>"
4456 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4458 esac;
4463 # Configure libtool
4464 case `pwd` in
4465 *\ * | *\ *)
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4467 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4468 esac
4472 macro_version='2.2.7a'
4473 macro_revision='1.3134'
4487 ltmain="$ac_aux_dir/ltmain.sh"
4489 # Backslashify metacharacters that are still active within
4490 # double-quoted strings.
4491 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4493 # Same as above, but do not quote variable references.
4494 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4496 # Sed substitution to delay expansion of an escaped shell variable in a
4497 # double_quote_subst'ed string.
4498 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4500 # Sed substitution to delay expansion of an escaped single quote.
4501 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4503 # Sed substitution to avoid accidental globbing in evaled expressions
4504 no_glob_subst='s/\*/\\\*/g'
4506 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4507 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4508 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4511 $as_echo_n "checking how to print strings... " >&6; }
4512 # Test print first, because it will be a builtin if present.
4513 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4514 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4515 ECHO='print -r --'
4516 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4517 ECHO='printf %s\n'
4518 else
4519 # Use this function as a fallback that always works.
4520 func_fallback_echo ()
4522 eval 'cat <<_LTECHO_EOF
4524 _LTECHO_EOF'
4526 ECHO='func_fallback_echo'
4529 # func_echo_all arg...
4530 # Invoke $ECHO with all args, space-separated.
4531 func_echo_all ()
4533 $ECHO ""
4536 case "$ECHO" in
4537 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4538 $as_echo "printf" >&6; } ;;
4539 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4540 $as_echo "print -r" >&6; } ;;
4541 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4542 $as_echo "cat" >&6; } ;;
4543 esac
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4559 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4560 if test "${ac_cv_path_SED+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4564 for ac_i in 1 2 3 4 5 6 7; do
4565 ac_script="$ac_script$as_nl$ac_script"
4566 done
4567 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4568 { ac_script=; unset ac_script;}
4569 if test -z "$SED"; then
4570 ac_path_SED_found=false
4571 # Loop through the user's path and test for each of PROGNAME-LIST
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_prog in sed gsed; do
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4580 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4581 # Check for GNU ac_path_SED and select it if it is found.
4582 # Check for GNU $ac_path_SED
4583 case `"$ac_path_SED" --version 2>&1` in
4584 *GNU*)
4585 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4587 ac_count=0
4588 $as_echo_n 0123456789 >"conftest.in"
4589 while :
4591 cat "conftest.in" "conftest.in" >"conftest.tmp"
4592 mv "conftest.tmp" "conftest.in"
4593 cp "conftest.in" "conftest.nl"
4594 $as_echo '' >> "conftest.nl"
4595 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4597 as_fn_arith $ac_count + 1 && ac_count=$as_val
4598 if test $ac_count -gt ${ac_path_SED_max-0}; then
4599 # Best one so far, save it but keep looking for a better one
4600 ac_cv_path_SED="$ac_path_SED"
4601 ac_path_SED_max=$ac_count
4603 # 10*(2^10) chars as input seems more than enough
4604 test $ac_count -gt 10 && break
4605 done
4606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4607 esac
4609 $ac_path_SED_found && break 3
4610 done
4611 done
4612 done
4613 IFS=$as_save_IFS
4614 if test -z "$ac_cv_path_SED"; then
4615 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4617 else
4618 ac_cv_path_SED=$SED
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4623 $as_echo "$ac_cv_path_SED" >&6; }
4624 SED="$ac_cv_path_SED"
4625 rm -f conftest.sed
4627 test -z "$SED" && SED=sed
4628 Xsed="$SED -e 1s/^X//"
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4641 $as_echo_n "checking for fgrep... " >&6; }
4642 if test "${ac_cv_path_FGREP+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4646 then ac_cv_path_FGREP="$GREP -F"
4647 else
4648 if test -z "$FGREP"; then
4649 ac_path_FGREP_found=false
4650 # Loop through the user's path and test for each of PROGNAME-LIST
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_prog in fgrep; do
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4659 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4660 # Check for GNU ac_path_FGREP and select it if it is found.
4661 # Check for GNU $ac_path_FGREP
4662 case `"$ac_path_FGREP" --version 2>&1` in
4663 *GNU*)
4664 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4666 ac_count=0
4667 $as_echo_n 0123456789 >"conftest.in"
4668 while :
4670 cat "conftest.in" "conftest.in" >"conftest.tmp"
4671 mv "conftest.tmp" "conftest.in"
4672 cp "conftest.in" "conftest.nl"
4673 $as_echo 'FGREP' >> "conftest.nl"
4674 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676 as_fn_arith $ac_count + 1 && ac_count=$as_val
4677 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4678 # Best one so far, save it but keep looking for a better one
4679 ac_cv_path_FGREP="$ac_path_FGREP"
4680 ac_path_FGREP_max=$ac_count
4682 # 10*(2^10) chars as input seems more than enough
4683 test $ac_count -gt 10 && break
4684 done
4685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686 esac
4688 $ac_path_FGREP_found && break 3
4689 done
4690 done
4691 done
4692 IFS=$as_save_IFS
4693 if test -z "$ac_cv_path_FGREP"; then
4694 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4696 else
4697 ac_cv_path_FGREP=$FGREP
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4703 $as_echo "$ac_cv_path_FGREP" >&6; }
4704 FGREP="$ac_cv_path_FGREP"
4707 test -z "$GREP" && GREP=grep
4727 # Check whether --with-gnu-ld was given.
4728 if test "${with_gnu_ld+set}" = set; then :
4729 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4730 else
4731 with_gnu_ld=no
4734 ac_prog=ld
4735 if test "$GCC" = yes; then
4736 # Check if gcc -print-prog-name=ld gives a path.
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4738 $as_echo_n "checking for ld used by $CC... " >&6; }
4739 case $host in
4740 *-*-mingw*)
4741 # gcc leaves a trailing carriage return which upsets mingw
4742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4745 esac
4746 case $ac_prog in
4747 # Accept absolute paths.
4748 [\\/]* | ?:[\\/]*)
4749 re_direlt='/[^/][^/]*/\.\./'
4750 # Canonicalize the pathname of ld
4751 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4752 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4753 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4754 done
4755 test -z "$LD" && LD="$ac_prog"
4758 # If it fails, then pretend we aren't using GCC.
4759 ac_prog=ld
4762 # If it is relative, then search for the first ld in PATH.
4763 with_gnu_ld=unknown
4765 esac
4766 elif test "$with_gnu_ld" = yes; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4768 $as_echo_n "checking for GNU ld... " >&6; }
4769 else
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4771 $as_echo_n "checking for non-GNU ld... " >&6; }
4773 if test "${lt_cv_path_LD+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -z "$LD"; then
4777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4778 for ac_dir in $PATH; do
4779 IFS="$lt_save_ifs"
4780 test -z "$ac_dir" && ac_dir=.
4781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4782 lt_cv_path_LD="$ac_dir/$ac_prog"
4783 # Check to see if the program is GNU ld. I'd rather use --version,
4784 # but apparently some variants of GNU ld only accept -v.
4785 # Break only if it was the GNU/non-GNU ld that we prefer.
4786 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4787 *GNU* | *'with BFD'*)
4788 test "$with_gnu_ld" != no && break
4791 test "$with_gnu_ld" != yes && break
4793 esac
4795 done
4796 IFS="$lt_save_ifs"
4797 else
4798 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4802 LD="$lt_cv_path_LD"
4803 if test -n "$LD"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4805 $as_echo "$LD" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4810 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4812 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4813 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4817 case `$LD -v 2>&1 </dev/null` in
4818 *GNU* | *'with BFD'*)
4819 lt_cv_prog_gnu_ld=yes
4822 lt_cv_prog_gnu_ld=no
4824 esac
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4827 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4828 with_gnu_ld=$lt_cv_prog_gnu_ld
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4839 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4840 if test "${lt_cv_path_NM+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 if test -n "$NM"; then
4844 # Let the user override the test.
4845 lt_cv_path_NM="$NM"
4846 else
4847 lt_nm_to_check="${ac_tool_prefix}nm"
4848 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4849 lt_nm_to_check="$lt_nm_to_check nm"
4851 for lt_tmp_nm in $lt_nm_to_check; do
4852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4853 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4854 IFS="$lt_save_ifs"
4855 test -z "$ac_dir" && ac_dir=.
4856 tmp_nm="$ac_dir/$lt_tmp_nm"
4857 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4858 # Check to see if the nm accepts a BSD-compat flag.
4859 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4860 # nm: unknown option "B" ignored
4861 # Tru64's nm complains that /dev/null is an invalid object file
4862 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4863 */dev/null* | *'Invalid file or object type'*)
4864 lt_cv_path_NM="$tmp_nm -B"
4865 break
4868 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4869 */dev/null*)
4870 lt_cv_path_NM="$tmp_nm -p"
4871 break
4874 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4875 continue # so that we can try to find one that supports BSD flags
4877 esac
4879 esac
4881 done
4882 IFS="$lt_save_ifs"
4883 done
4884 : ${lt_cv_path_NM=no}
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4888 $as_echo "$lt_cv_path_NM" >&6; }
4889 if test "$lt_cv_path_NM" != "no"; then
4890 NM="$lt_cv_path_NM"
4891 else
4892 # Didn't find any BSD compatible name lister, look for dumpbin.
4893 if test -n "$DUMPBIN"; then :
4894 # Let the user override the test.
4895 else
4896 if test -n "$ac_tool_prefix"; then
4897 for ac_prog in dumpbin "link -dump"
4899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$DUMPBIN"; then
4907 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4920 done
4921 done
4922 IFS=$as_save_IFS
4926 DUMPBIN=$ac_cv_prog_DUMPBIN
4927 if test -n "$DUMPBIN"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4929 $as_echo "$DUMPBIN" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4936 test -n "$DUMPBIN" && break
4937 done
4939 if test -z "$DUMPBIN"; then
4940 ac_ct_DUMPBIN=$DUMPBIN
4941 for ac_prog in dumpbin "link -dump"
4943 # Extract the first word of "$ac_prog", so it can be a program name with args.
4944 set dummy $ac_prog; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 if test -n "$ac_ct_DUMPBIN"; then
4951 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4964 done
4965 done
4966 IFS=$as_save_IFS
4970 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4971 if test -n "$ac_ct_DUMPBIN"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4973 $as_echo "$ac_ct_DUMPBIN" >&6; }
4974 else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4980 test -n "$ac_ct_DUMPBIN" && break
4981 done
4983 if test "x$ac_ct_DUMPBIN" = x; then
4984 DUMPBIN=":"
4985 else
4986 case $cross_compiling:$ac_tool_warned in
4987 yes:)
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990 ac_tool_warned=yes ;;
4991 esac
4992 DUMPBIN=$ac_ct_DUMPBIN
4996 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4997 *COFF*)
4998 DUMPBIN="$DUMPBIN -symbols"
5001 DUMPBIN=:
5003 esac
5006 if test "$DUMPBIN" != ":"; then
5007 NM="$DUMPBIN"
5010 test -z "$NM" && NM=nm
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5018 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5019 if test "${lt_cv_nm_interface+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 lt_cv_nm_interface="BSD nm"
5023 echo "int some_variable = 0;" > conftest.$ac_ext
5024 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5025 (eval "$ac_compile" 2>conftest.err)
5026 cat conftest.err >&5
5027 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5028 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5029 cat conftest.err >&5
5030 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5031 cat conftest.out >&5
5032 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5033 lt_cv_nm_interface="MS dumpbin"
5035 rm -f conftest*
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5038 $as_echo "$lt_cv_nm_interface" >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5041 $as_echo_n "checking whether ln -s works... " >&6; }
5042 LN_S=$as_ln_s
5043 if test "$LN_S" = "ln -s"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5045 $as_echo "yes" >&6; }
5046 else
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5048 $as_echo "no, using $LN_S" >&6; }
5051 # find the maximum length of command line arguments
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5053 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5054 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5058 teststring="ABCD"
5060 case $build_os in
5061 msdosdjgpp*)
5062 # On DJGPP, this test can blow up pretty badly due to problems in libc
5063 # (any single argument exceeding 2000 bytes causes a buffer overrun
5064 # during glob expansion). Even if it were fixed, the result of this
5065 # check would be larger than it should be.
5066 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5069 gnu*)
5070 # Under GNU Hurd, this test is not required because there is
5071 # no limit to the length of command line arguments.
5072 # Libtool will interpret -1 as no limit whatsoever
5073 lt_cv_sys_max_cmd_len=-1;
5076 cygwin* | mingw* | cegcc*)
5077 # On Win9x/ME, this test blows up -- it succeeds, but takes
5078 # about 5 minutes as the teststring grows exponentially.
5079 # Worse, since 9x/ME are not pre-emptively multitasking,
5080 # you end up with a "frozen" computer, even though with patience
5081 # the test eventually succeeds (with a max line length of 256k).
5082 # Instead, let's just punt: use the minimum linelength reported by
5083 # all of the supported platforms: 8192 (on NT/2K/XP).
5084 lt_cv_sys_max_cmd_len=8192;
5087 mint*)
5088 # On MiNT this can take a long time and run out of memory.
5089 lt_cv_sys_max_cmd_len=8192;
5092 amigaos*)
5093 # On AmigaOS with pdksh, this test takes hours, literally.
5094 # So we just punt and use a minimum line length of 8192.
5095 lt_cv_sys_max_cmd_len=8192;
5098 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5099 # This has been around since 386BSD, at least. Likely further.
5100 if test -x /sbin/sysctl; then
5101 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5102 elif test -x /usr/sbin/sysctl; then
5103 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5104 else
5105 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5107 # And add a safety zone
5108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5112 interix*)
5113 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5114 lt_cv_sys_max_cmd_len=196608
5117 osf*)
5118 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5119 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5120 # nice to cause kernel panics so lets avoid the loop below.
5121 # First set a reasonable default.
5122 lt_cv_sys_max_cmd_len=16384
5124 if test -x /sbin/sysconfig; then
5125 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5126 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5127 esac
5130 sco3.2v5*)
5131 lt_cv_sys_max_cmd_len=102400
5133 sysv5* | sco5v6* | sysv4.2uw2*)
5134 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5135 if test -n "$kargmax"; then
5136 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5137 else
5138 lt_cv_sys_max_cmd_len=32768
5142 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5143 if test -n "$lt_cv_sys_max_cmd_len"; then
5144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5146 else
5147 # Make teststring a little bigger before we do anything with it.
5148 # a 1K string should be a reasonable start.
5149 for i in 1 2 3 4 5 6 7 8 ; do
5150 teststring=$teststring$teststring
5151 done
5152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5153 # If test is not a shell built-in, we'll probably end up computing a
5154 # maximum length that is only half of the actual maximum length, but
5155 # we can't tell.
5156 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5157 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5158 test $i != 17 # 1/2 MB should be enough
5160 i=`expr $i + 1`
5161 teststring=$teststring$teststring
5162 done
5163 # Only check the string length outside the loop.
5164 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5165 teststring=
5166 # Add a significant safety factor because C++ compilers can tack on
5167 # massive amounts of additional arguments before passing them to the
5168 # linker. It appears as though 1/2 is a usable value.
5169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5172 esac
5176 if test -n $lt_cv_sys_max_cmd_len ; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5178 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5181 $as_echo "none" >&6; }
5183 max_cmd_len=$lt_cv_sys_max_cmd_len
5190 : ${CP="cp -f"}
5191 : ${MV="mv -f"}
5192 : ${RM="rm -f"}
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5195 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5196 # Try some XSI features
5197 xsi_shell=no
5198 ( _lt_dummy="a/b/c"
5199 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5200 = c,a/b,, \
5201 && eval 'test $(( 1 + 1 )) -eq 2 \
5202 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5203 && xsi_shell=yes
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5205 $as_echo "$xsi_shell" >&6; }
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5209 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5210 lt_shell_append=no
5211 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5212 >/dev/null 2>&1 \
5213 && lt_shell_append=yes
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5215 $as_echo "$lt_shell_append" >&6; }
5218 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5219 lt_unset=unset
5220 else
5221 lt_unset=false
5228 # test EBCDIC or ASCII
5229 case `echo X|tr X '\101'` in
5230 A) # ASCII based system
5231 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5232 lt_SP2NL='tr \040 \012'
5233 lt_NL2SP='tr \015\012 \040\040'
5235 *) # EBCDIC based system
5236 lt_SP2NL='tr \100 \n'
5237 lt_NL2SP='tr \r\n \100\100'
5239 esac
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5250 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5251 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 lt_cv_ld_reload_flag='-r'
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5257 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5258 reload_flag=$lt_cv_ld_reload_flag
5259 case $reload_flag in
5260 "" | " "*) ;;
5261 *) reload_flag=" $reload_flag" ;;
5262 esac
5263 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5264 case $host_os in
5265 darwin*)
5266 if test "$GCC" = yes; then
5267 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5268 else
5269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5272 esac
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5284 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$OBJDUMP"; then
5291 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5306 IFS=$as_save_IFS
5310 OBJDUMP=$ac_cv_prog_OBJDUMP
5311 if test -n "$OBJDUMP"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5313 $as_echo "$OBJDUMP" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5321 if test -z "$ac_cv_prog_OBJDUMP"; then
5322 ac_ct_OBJDUMP=$OBJDUMP
5323 # Extract the first word of "objdump", so it can be a program name with args.
5324 set dummy objdump; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -n "$ac_ct_OBJDUMP"; then
5331 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5344 done
5345 done
5346 IFS=$as_save_IFS
5350 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5351 if test -n "$ac_ct_OBJDUMP"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5353 $as_echo "$ac_ct_OBJDUMP" >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5359 if test "x$ac_ct_OBJDUMP" = x; then
5360 OBJDUMP="false"
5361 else
5362 case $cross_compiling:$ac_tool_warned in
5363 yes:)
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned=yes ;;
5367 esac
5368 OBJDUMP=$ac_ct_OBJDUMP
5370 else
5371 OBJDUMP="$ac_cv_prog_OBJDUMP"
5374 test -z "$OBJDUMP" && OBJDUMP=objdump
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5385 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5386 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 lt_cv_file_magic_cmd='$MAGIC_CMD'
5390 lt_cv_file_magic_test_file=
5391 lt_cv_deplibs_check_method='unknown'
5392 # Need to set the preceding variable on all platforms that support
5393 # interlibrary dependencies.
5394 # 'none' -- dependencies not supported.
5395 # `unknown' -- same as none, but documents that we really don't know.
5396 # 'pass_all' -- all dependencies passed with no checks.
5397 # 'test_compile' -- check by making test program.
5398 # 'file_magic [[regex]]' -- check by looking for files in library path
5399 # which responds to the $file_magic_cmd with a given extended regex.
5400 # If you have `file' or equivalent on your system and you're not sure
5401 # whether `pass_all' will *always* work, you probably want this one.
5403 case $host_os in
5404 aix[4-9]*)
5405 lt_cv_deplibs_check_method=pass_all
5408 beos*)
5409 lt_cv_deplibs_check_method=pass_all
5412 bsdi[45]*)
5413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5414 lt_cv_file_magic_cmd='/usr/bin/file -L'
5415 lt_cv_file_magic_test_file=/shlib/libc.so
5418 cygwin*)
5419 # func_win32_libid is a shell function defined in ltmain.sh
5420 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5421 lt_cv_file_magic_cmd='func_win32_libid'
5424 mingw* | pw32*)
5425 # Base MSYS/MinGW do not provide the 'file' command needed by
5426 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5427 # unless we find 'file', for example because we are cross-compiling.
5428 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5429 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431 lt_cv_file_magic_cmd='func_win32_libid'
5432 else
5433 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5434 lt_cv_file_magic_cmd='$OBJDUMP -f'
5438 cegcc*)
5439 # use the weaker test based on 'objdump'. See mingw*.
5440 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5441 lt_cv_file_magic_cmd='$OBJDUMP -f'
5444 darwin* | rhapsody*)
5445 lt_cv_deplibs_check_method=pass_all
5448 freebsd* | dragonfly*)
5449 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5450 case $host_cpu in
5451 i*86 )
5452 # Not sure whether the presence of OpenBSD here was a mistake.
5453 # Let's accept both of them until this is cleared up.
5454 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5455 lt_cv_file_magic_cmd=/usr/bin/file
5456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5458 esac
5459 else
5460 lt_cv_deplibs_check_method=pass_all
5464 gnu*)
5465 lt_cv_deplibs_check_method=pass_all
5468 haiku*)
5469 lt_cv_deplibs_check_method=pass_all
5472 hpux10.20* | hpux11*)
5473 lt_cv_file_magic_cmd=/usr/bin/file
5474 case $host_cpu in
5475 ia64*)
5476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5477 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5479 hppa*64*)
5480 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]'
5481 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5485 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5487 esac
5490 interix[3-9]*)
5491 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5495 irix5* | irix6* | nonstopux*)
5496 case $LD in
5497 *-32|*"-32 ") libmagic=32-bit;;
5498 *-n32|*"-n32 ") libmagic=N32;;
5499 *-64|*"-64 ") libmagic=64-bit;;
5500 *) libmagic=never-match;;
5501 esac
5502 lt_cv_deplibs_check_method=pass_all
5505 # This must be Linux ELF.
5506 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5507 lt_cv_deplibs_check_method=pass_all
5510 netbsd*)
5511 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5513 else
5514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5518 newos6*)
5519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5520 lt_cv_file_magic_cmd=/usr/bin/file
5521 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5524 *nto* | *qnx*)
5525 lt_cv_deplibs_check_method=pass_all
5528 openbsd*)
5529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5531 else
5532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5536 osf3* | osf4* | osf5*)
5537 lt_cv_deplibs_check_method=pass_all
5540 rdos*)
5541 lt_cv_deplibs_check_method=pass_all
5544 solaris*)
5545 lt_cv_deplibs_check_method=pass_all
5548 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5549 lt_cv_deplibs_check_method=pass_all
5552 sysv4 | sysv4.3*)
5553 case $host_vendor in
5554 motorola)
5555 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]'
5556 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5558 ncr)
5559 lt_cv_deplibs_check_method=pass_all
5561 sequent)
5562 lt_cv_file_magic_cmd='/bin/file'
5563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5565 sni)
5566 lt_cv_file_magic_cmd='/bin/file'
5567 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5568 lt_cv_file_magic_test_file=/lib/libc.so
5570 siemens)
5571 lt_cv_deplibs_check_method=pass_all
5574 lt_cv_deplibs_check_method=pass_all
5576 esac
5579 tpf*)
5580 lt_cv_deplibs_check_method=pass_all
5582 esac
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5586 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5587 file_magic_cmd=$lt_cv_file_magic_cmd
5588 deplibs_check_method=$lt_cv_deplibs_check_method
5589 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5602 if test -n "$ac_tool_prefix"; then
5603 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5604 set dummy ${ac_tool_prefix}ar; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_prog_AR+set}" = set; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if test -n "$AR"; then
5611 ac_cv_prog_AR="$AR" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620 ac_cv_prog_AR="${ac_tool_prefix}ar"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5624 done
5625 done
5626 IFS=$as_save_IFS
5630 AR=$ac_cv_prog_AR
5631 if test -n "$AR"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5633 $as_echo "$AR" >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5641 if test -z "$ac_cv_prog_AR"; then
5642 ac_ct_AR=$AR
5643 # Extract the first word of "ar", so it can be a program name with args.
5644 set dummy ar; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 if test -n "$ac_ct_AR"; then
5651 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5660 ac_cv_prog_ac_ct_AR="ar"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5664 done
5665 done
5666 IFS=$as_save_IFS
5670 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5671 if test -n "$ac_ct_AR"; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5673 $as_echo "$ac_ct_AR" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5679 if test "x$ac_ct_AR" = x; then
5680 AR="false"
5681 else
5682 case $cross_compiling:$ac_tool_warned in
5683 yes:)
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5686 ac_tool_warned=yes ;;
5687 esac
5688 AR=$ac_ct_AR
5690 else
5691 AR="$ac_cv_prog_AR"
5694 test -z "$AR" && AR=ar
5695 test -z "$AR_FLAGS" && AR_FLAGS=cru
5707 if test -n "$ac_tool_prefix"; then
5708 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5709 set dummy ${ac_tool_prefix}strip; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if test "${ac_cv_prog_STRIP+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 if test -n "$STRIP"; then
5716 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5729 done
5730 done
5731 IFS=$as_save_IFS
5735 STRIP=$ac_cv_prog_STRIP
5736 if test -n "$STRIP"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5738 $as_echo "$STRIP" >&6; }
5739 else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5746 if test -z "$ac_cv_prog_STRIP"; then
5747 ac_ct_STRIP=$STRIP
5748 # Extract the first word of "strip", so it can be a program name with args.
5749 set dummy strip; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 if test -n "$ac_ct_STRIP"; then
5756 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5765 ac_cv_prog_ac_ct_STRIP="strip"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5769 done
5770 done
5771 IFS=$as_save_IFS
5775 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5776 if test -n "$ac_ct_STRIP"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5778 $as_echo "$ac_ct_STRIP" >&6; }
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5784 if test "x$ac_ct_STRIP" = x; then
5785 STRIP=":"
5786 else
5787 case $cross_compiling:$ac_tool_warned in
5788 yes:)
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791 ac_tool_warned=yes ;;
5792 esac
5793 STRIP=$ac_ct_STRIP
5795 else
5796 STRIP="$ac_cv_prog_STRIP"
5799 test -z "$STRIP" && STRIP=:
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if test -n "$RANLIB"; then
5815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5828 done
5829 done
5830 IFS=$as_save_IFS
5834 RANLIB=$ac_cv_prog_RANLIB
5835 if test -n "$RANLIB"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5837 $as_echo "$RANLIB" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5845 if test -z "$ac_cv_prog_RANLIB"; then
5846 ac_ct_RANLIB=$RANLIB
5847 # Extract the first word of "ranlib", so it can be a program name with args.
5848 set dummy ranlib; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$ac_ct_RANLIB"; then
5855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_ac_ct_RANLIB="ranlib"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5868 done
5869 done
5870 IFS=$as_save_IFS
5874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5875 if test -n "$ac_ct_RANLIB"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5877 $as_echo "$ac_ct_RANLIB" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5883 if test "x$ac_ct_RANLIB" = x; then
5884 RANLIB=":"
5885 else
5886 case $cross_compiling:$ac_tool_warned in
5887 yes:)
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5891 esac
5892 RANLIB=$ac_ct_RANLIB
5894 else
5895 RANLIB="$ac_cv_prog_RANLIB"
5898 test -z "$RANLIB" && RANLIB=:
5905 # Determine commands to create old-style static archives.
5906 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5907 old_postinstall_cmds='chmod 644 $oldlib'
5908 old_postuninstall_cmds=
5910 if test -n "$RANLIB"; then
5911 case $host_os in
5912 openbsd*)
5913 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5916 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5918 esac
5919 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5922 case $host_os in
5923 darwin*)
5924 lock_old_archive_extraction=yes ;;
5926 lock_old_archive_extraction=no ;;
5927 esac
5967 # If no C compiler was specified, use CC.
5968 LTCC=${LTCC-"$CC"}
5970 # If no C compiler flags were specified, use CFLAGS.
5971 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5973 # Allow CC to be a program name with arguments.
5974 compiler=$CC
5977 # Check for command to grab the raw symbol name followed by C symbol from nm.
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5979 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5980 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5984 # These are sane defaults that work on at least a few old systems.
5985 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5987 # Character class describing NM global symbol codes.
5988 symcode='[BCDEGRST]'
5990 # Regexp to match symbols that can be accessed directly from C.
5991 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5993 # Define system-specific variables.
5994 case $host_os in
5995 aix*)
5996 symcode='[BCDT]'
5998 cygwin* | mingw* | pw32* | cegcc*)
5999 symcode='[ABCDGISTW]'
6001 hpux*)
6002 if test "$host_cpu" = ia64; then
6003 symcode='[ABCDEGRST]'
6006 irix* | nonstopux*)
6007 symcode='[BCDEGRST]'
6009 osf*)
6010 symcode='[BCDEGQRST]'
6012 solaris*)
6013 symcode='[BDRT]'
6015 sco3.2v5*)
6016 symcode='[DT]'
6018 sysv4.2uw2*)
6019 symcode='[DT]'
6021 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6022 symcode='[ABDT]'
6024 sysv4)
6025 symcode='[DFNSTU]'
6027 esac
6029 # If we're using GNU nm, then use its standard symbol codes.
6030 case `$NM -V 2>&1` in
6031 *GNU* | *'with BFD'*)
6032 symcode='[ABCDGIRSTW]' ;;
6033 esac
6035 # Transform an extracted symbol line into a proper C declaration.
6036 # Some systems (esp. on ia64) link data and code symbols differently,
6037 # so use this general approach.
6038 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6040 # Transform an extracted symbol line into symbol name and symbol address
6041 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6042 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'"
6044 # Handle CRLF in mingw tool chain
6045 opt_cr=
6046 case $build_os in
6047 mingw*)
6048 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6050 esac
6052 # Try without a prefix underscore, then with it.
6053 for ac_symprfx in "" "_"; do
6055 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6056 symxfrm="\\1 $ac_symprfx\\2 \\2"
6058 # Write the raw and C identifiers.
6059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6060 # Fake it for dumpbin and say T for any non-static function
6061 # and D for any global variable.
6062 # Also find C++ and __fastcall symbols from MSVC++,
6063 # which start with @ or ?.
6064 lt_cv_sys_global_symbol_pipe="$AWK '"\
6065 " {last_section=section; section=\$ 3};"\
6066 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6067 " \$ 0!~/External *\|/{next};"\
6068 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6069 " {if(hide[section]) next};"\
6070 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6071 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6072 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6073 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6074 " ' prfx=^$ac_symprfx"
6075 else
6076 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6079 # Check to see that the pipe works correctly.
6080 pipe_works=no
6082 rm -f conftest*
6083 cat > conftest.$ac_ext <<_LT_EOF
6084 #ifdef __cplusplus
6085 extern "C" {
6086 #endif
6087 char nm_test_var;
6088 void nm_test_func(void);
6089 void nm_test_func(void){}
6090 #ifdef __cplusplus
6092 #endif
6093 int main(){nm_test_var='a';nm_test_func();return(0);}
6094 _LT_EOF
6096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6097 (eval $ac_compile) 2>&5
6098 ac_status=$?
6099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100 test $ac_status = 0; }; then
6101 # Now try to grab the symbols.
6102 nlist=conftest.nm
6103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6104 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6105 ac_status=$?
6106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6107 test $ac_status = 0; } && test -s "$nlist"; then
6108 # Try sorting and uniquifying the output.
6109 if sort "$nlist" | uniq > "$nlist"T; then
6110 mv -f "$nlist"T "$nlist"
6111 else
6112 rm -f "$nlist"T
6115 # Make sure that we snagged all the symbols we need.
6116 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6117 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6118 cat <<_LT_EOF > conftest.$ac_ext
6119 #ifdef __cplusplus
6120 extern "C" {
6121 #endif
6123 _LT_EOF
6124 # Now generate the symbol file.
6125 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6127 cat <<_LT_EOF >> conftest.$ac_ext
6129 /* The mapping between symbol names and symbols. */
6130 const struct {
6131 const char *name;
6132 void *address;
6134 lt__PROGRAM__LTX_preloaded_symbols[] =
6136 { "@PROGRAM@", (void *) 0 },
6137 _LT_EOF
6138 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6139 cat <<\_LT_EOF >> conftest.$ac_ext
6140 {0, (void *) 0}
6143 /* This works around a problem in FreeBSD linker */
6144 #ifdef FREEBSD_WORKAROUND
6145 static const void *lt_preloaded_setup() {
6146 return lt__PROGRAM__LTX_preloaded_symbols;
6148 #endif
6150 #ifdef __cplusplus
6152 #endif
6153 _LT_EOF
6154 # Now try linking the two files.
6155 mv conftest.$ac_objext conftstm.$ac_objext
6156 lt_save_LIBS="$LIBS"
6157 lt_save_CFLAGS="$CFLAGS"
6158 LIBS="conftstm.$ac_objext"
6159 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6161 (eval $ac_link) 2>&5
6162 ac_status=$?
6163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6164 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6165 pipe_works=yes
6167 LIBS="$lt_save_LIBS"
6168 CFLAGS="$lt_save_CFLAGS"
6169 else
6170 echo "cannot find nm_test_func in $nlist" >&5
6172 else
6173 echo "cannot find nm_test_var in $nlist" >&5
6175 else
6176 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6178 else
6179 echo "$progname: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6182 rm -rf conftest* conftst*
6184 # Do not use the global_symbol_pipe unless it works.
6185 if test "$pipe_works" = yes; then
6186 break
6187 else
6188 lt_cv_sys_global_symbol_pipe=
6190 done
6194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6195 lt_cv_sys_global_symbol_to_cdecl=
6197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6199 $as_echo "failed" >&6; }
6200 else
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6202 $as_echo "ok" >&6; }
6226 # Check whether --enable-libtool-lock was given.
6227 if test "${enable_libtool_lock+set}" = set; then :
6228 enableval=$enable_libtool_lock;
6231 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6233 # Some flags need to be propagated to the compiler or linker for good
6234 # libtool support.
6235 case $host in
6236 ia64-*-hpux*)
6237 # Find out which ABI we are using.
6238 echo 'int i;' > conftest.$ac_ext
6239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6240 (eval $ac_compile) 2>&5
6241 ac_status=$?
6242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243 test $ac_status = 0; }; then
6244 case `/usr/bin/file conftest.$ac_objext` in
6245 *ELF-32*)
6246 HPUX_IA64_MODE="32"
6248 *ELF-64*)
6249 HPUX_IA64_MODE="64"
6251 esac
6253 rm -rf conftest*
6255 *-*-irix6*)
6256 # Find out which ABI we are using.
6257 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6259 (eval $ac_compile) 2>&5
6260 ac_status=$?
6261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6262 test $ac_status = 0; }; then
6263 if test "$lt_cv_prog_gnu_ld" = yes; then
6264 case `/usr/bin/file conftest.$ac_objext` in
6265 *32-bit*)
6266 LD="${LD-ld} -melf32bsmip"
6268 *N32*)
6269 LD="${LD-ld} -melf32bmipn32"
6271 *64-bit*)
6272 LD="${LD-ld} -melf64bmip"
6274 esac
6275 else
6276 case `/usr/bin/file conftest.$ac_objext` in
6277 *32-bit*)
6278 LD="${LD-ld} -32"
6280 *N32*)
6281 LD="${LD-ld} -n32"
6283 *64-bit*)
6284 LD="${LD-ld} -64"
6286 esac
6289 rm -rf conftest*
6292 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6293 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6294 # Find out which ABI we are using.
6295 echo 'int i;' > conftest.$ac_ext
6296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6297 (eval $ac_compile) 2>&5
6298 ac_status=$?
6299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6300 test $ac_status = 0; }; then
6301 case `/usr/bin/file conftest.o` in
6302 *32-bit*)
6303 case $host in
6304 x86_64-*kfreebsd*-gnu)
6305 LD="${LD-ld} -m elf_i386_fbsd"
6307 x86_64-*linux*)
6308 case `/usr/bin/file conftest.o` in
6309 *x86-64*)
6310 LD="${LD-ld} -m elf32_x86_64"
6313 LD="${LD-ld} -m elf_i386"
6315 esac
6317 powerpc64le-*linux*)
6318 LD="${LD-ld} -m elf32lppclinux"
6320 powerpc64-*linux*)
6321 LD="${LD-ld} -m elf32ppclinux"
6323 s390x-*linux*)
6324 LD="${LD-ld} -m elf_s390"
6326 sparc64-*linux*)
6327 LD="${LD-ld} -m elf32_sparc"
6329 esac
6331 *64-bit*)
6332 case $host in
6333 x86_64-*kfreebsd*-gnu)
6334 LD="${LD-ld} -m elf_x86_64_fbsd"
6336 x86_64-*linux*)
6337 LD="${LD-ld} -m elf_x86_64"
6339 powerpcle-*linux*)
6340 LD="${LD-ld} -m elf64lppc"
6342 powerpc-*linux*)
6343 LD="${LD-ld} -m elf64ppc"
6345 s390*-*linux*|s390*-*tpf*)
6346 LD="${LD-ld} -m elf64_s390"
6348 sparc*-*linux*)
6349 LD="${LD-ld} -m elf64_sparc"
6351 esac
6353 esac
6355 rm -rf conftest*
6358 *-*-sco3.2v5*)
6359 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6360 SAVE_CFLAGS="$CFLAGS"
6361 CFLAGS="$CFLAGS -belf"
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6363 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6364 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 ac_ext=c
6368 ac_cpp='$CPP $CPPFLAGS'
6369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6373 if test x$gcc_no_link = xyes; then
6374 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6380 main ()
6384 return 0;
6386 _ACEOF
6387 if ac_fn_c_try_link "$LINENO"; then :
6388 lt_cv_cc_needs_belf=yes
6389 else
6390 lt_cv_cc_needs_belf=no
6392 rm -f core conftest.err conftest.$ac_objext \
6393 conftest$ac_exeext conftest.$ac_ext
6394 ac_ext=c
6395 ac_cpp='$CPP $CPPFLAGS'
6396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6402 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6403 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6404 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6405 CFLAGS="$SAVE_CFLAGS"
6408 sparc*-*solaris*)
6409 # Find out which ABI we are using.
6410 echo 'int i;' > conftest.$ac_ext
6411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6412 (eval $ac_compile) 2>&5
6413 ac_status=$?
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; }; then
6416 case `/usr/bin/file conftest.o` in
6417 *64-bit*)
6418 case $lt_cv_prog_gnu_ld in
6419 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6421 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6422 LD="${LD-ld} -64"
6425 esac
6427 esac
6429 rm -rf conftest*
6431 esac
6433 need_locks="$enable_libtool_lock"
6436 case $host_os in
6437 rhapsody* | darwin*)
6438 if test -n "$ac_tool_prefix"; then
6439 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$DSYMUTIL"; then
6447 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6460 done
6461 done
6462 IFS=$as_save_IFS
6466 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6467 if test -n "$DSYMUTIL"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6469 $as_echo "$DSYMUTIL" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6477 if test -z "$ac_cv_prog_DSYMUTIL"; then
6478 ac_ct_DSYMUTIL=$DSYMUTIL
6479 # Extract the first word of "dsymutil", so it can be a program name with args.
6480 set dummy dsymutil; ac_word=$2
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 if test -n "$ac_ct_DSYMUTIL"; then
6487 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 break 2
6500 done
6501 done
6502 IFS=$as_save_IFS
6506 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6507 if test -n "$ac_ct_DSYMUTIL"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6509 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6510 else
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6515 if test "x$ac_ct_DSYMUTIL" = x; then
6516 DSYMUTIL=":"
6517 else
6518 case $cross_compiling:$ac_tool_warned in
6519 yes:)
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524 DSYMUTIL=$ac_ct_DSYMUTIL
6526 else
6527 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 if test -n "$NMEDIT"; then
6539 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6552 done
6553 done
6554 IFS=$as_save_IFS
6558 NMEDIT=$ac_cv_prog_NMEDIT
6559 if test -n "$NMEDIT"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6561 $as_echo "$NMEDIT" >&6; }
6562 else
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6569 if test -z "$ac_cv_prog_NMEDIT"; then
6570 ac_ct_NMEDIT=$NMEDIT
6571 # Extract the first word of "nmedit", so it can be a program name with args.
6572 set dummy nmedit; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 if test -n "$ac_ct_NMEDIT"; then
6579 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6592 done
6593 done
6594 IFS=$as_save_IFS
6598 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6599 if test -n "$ac_ct_NMEDIT"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6601 $as_echo "$ac_ct_NMEDIT" >&6; }
6602 else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6607 if test "x$ac_ct_NMEDIT" = x; then
6608 NMEDIT=":"
6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6615 esac
6616 NMEDIT=$ac_ct_NMEDIT
6618 else
6619 NMEDIT="$ac_cv_prog_NMEDIT"
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if test "${ac_cv_prog_LIPO+set}" = set; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 if test -n "$LIPO"; then
6631 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
6644 done
6645 done
6646 IFS=$as_save_IFS
6650 LIPO=$ac_cv_prog_LIPO
6651 if test -n "$LIPO"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6653 $as_echo "$LIPO" >&6; }
6654 else
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6661 if test -z "$ac_cv_prog_LIPO"; then
6662 ac_ct_LIPO=$LIPO
6663 # Extract the first word of "lipo", so it can be a program name with args.
6664 set dummy lipo; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 if test -n "$ac_ct_LIPO"; then
6671 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_prog_ac_ct_LIPO="lipo"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6684 done
6685 done
6686 IFS=$as_save_IFS
6690 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6691 if test -n "$ac_ct_LIPO"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6693 $as_echo "$ac_ct_LIPO" >&6; }
6694 else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6699 if test "x$ac_ct_LIPO" = x; then
6700 LIPO=":"
6701 else
6702 case $cross_compiling:$ac_tool_warned in
6703 yes:)
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706 ac_tool_warned=yes ;;
6707 esac
6708 LIPO=$ac_ct_LIPO
6710 else
6711 LIPO="$ac_cv_prog_LIPO"
6714 if test -n "$ac_tool_prefix"; then
6715 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6716 set dummy ${ac_tool_prefix}otool; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 if test -n "$OTOOL"; then
6723 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6736 done
6737 done
6738 IFS=$as_save_IFS
6742 OTOOL=$ac_cv_prog_OTOOL
6743 if test -n "$OTOOL"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6745 $as_echo "$OTOOL" >&6; }
6746 else
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6753 if test -z "$ac_cv_prog_OTOOL"; then
6754 ac_ct_OTOOL=$OTOOL
6755 # Extract the first word of "otool", so it can be a program name with args.
6756 set dummy otool; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 if test -n "$ac_ct_OTOOL"; then
6763 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772 ac_cv_prog_ac_ct_OTOOL="otool"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6776 done
6777 done
6778 IFS=$as_save_IFS
6782 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6783 if test -n "$ac_ct_OTOOL"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6785 $as_echo "$ac_ct_OTOOL" >&6; }
6786 else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6791 if test "x$ac_ct_OTOOL" = x; then
6792 OTOOL=":"
6793 else
6794 case $cross_compiling:$ac_tool_warned in
6795 yes:)
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798 ac_tool_warned=yes ;;
6799 esac
6800 OTOOL=$ac_ct_OTOOL
6802 else
6803 OTOOL="$ac_cv_prog_OTOOL"
6806 if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 if test -n "$OTOOL64"; then
6815 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6828 done
6829 done
6830 IFS=$as_save_IFS
6834 OTOOL64=$ac_cv_prog_OTOOL64
6835 if test -n "$OTOOL64"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6837 $as_echo "$OTOOL64" >&6; }
6838 else
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6845 if test -z "$ac_cv_prog_OTOOL64"; then
6846 ac_ct_OTOOL64=$OTOOL64
6847 # Extract the first word of "otool64", so it can be a program name with args.
6848 set dummy otool64; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 if test -n "$ac_ct_OTOOL64"; then
6855 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_ac_ct_OTOOL64="otool64"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6868 done
6869 done
6870 IFS=$as_save_IFS
6874 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6875 if test -n "$ac_ct_OTOOL64"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6877 $as_echo "$ac_ct_OTOOL64" >&6; }
6878 else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6883 if test "x$ac_ct_OTOOL64" = x; then
6884 OTOOL64=":"
6885 else
6886 case $cross_compiling:$ac_tool_warned in
6887 yes:)
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6891 esac
6892 OTOOL64=$ac_ct_OTOOL64
6894 else
6895 OTOOL64="$ac_cv_prog_OTOOL64"
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6925 $as_echo_n "checking for -single_module linker flag... " >&6; }
6926 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 lt_cv_apple_cc_single_mod=no
6930 if test -z "${LT_MULTI_MODULE}"; then
6931 # By default we will add the -single_module flag. You can override
6932 # by either setting the environment variable LT_MULTI_MODULE
6933 # non-empty at configure time, or by adding -multi_module to the
6934 # link flags.
6935 rm -rf libconftest.dylib*
6936 echo "int foo(void){return 1;}" > conftest.c
6937 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6938 -dynamiclib -Wl,-single_module conftest.c" >&5
6939 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6940 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6941 _lt_result=$?
6942 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6943 lt_cv_apple_cc_single_mod=yes
6944 else
6945 cat conftest.err >&5
6947 rm -rf libconftest.dylib*
6948 rm -f conftest.*
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6952 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6954 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6955 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 lt_cv_ld_exported_symbols_list=no
6959 save_LDFLAGS=$LDFLAGS
6960 echo "_main" > conftest.sym
6961 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6962 if test x$gcc_no_link = xyes; then
6963 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6969 main ()
6973 return 0;
6975 _ACEOF
6976 if ac_fn_c_try_link "$LINENO"; then :
6977 lt_cv_ld_exported_symbols_list=yes
6978 else
6979 lt_cv_ld_exported_symbols_list=no
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6983 LDFLAGS="$save_LDFLAGS"
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6987 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6989 $as_echo_n "checking for -force_load linker flag... " >&6; }
6990 if test "${lt_cv_ld_force_load+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 lt_cv_ld_force_load=no
6994 cat > conftest.c << _LT_EOF
6995 int forced_loaded() { return 2;}
6996 _LT_EOF
6997 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6998 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6999 echo "$AR cru libconftest.a conftest.o" >&5
7000 $AR cru libconftest.a conftest.o 2>&5
7001 cat > conftest.c << _LT_EOF
7002 int main() { return 0;}
7003 _LT_EOF
7004 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7005 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7006 _lt_result=$?
7007 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7008 lt_cv_ld_force_load=yes
7009 else
7010 cat conftest.err >&5
7012 rm -f conftest.err libconftest.a conftest conftest.c
7013 rm -rf conftest.dSYM
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7017 $as_echo "$lt_cv_ld_force_load" >&6; }
7018 case $host_os in
7019 rhapsody* | darwin1.[012])
7020 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7021 darwin1.*)
7022 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7023 darwin*) # darwin 5.x on
7024 # if running on 10.5 or later, the deployment target defaults
7025 # to the OS version, if on x86, and 10.4, the deployment
7026 # target defaults to 10.4. Don't you love it?
7027 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7028 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7029 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7030 10.[012][,.]*)
7031 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7032 10.*)
7033 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7034 esac
7036 esac
7037 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7038 _lt_dar_single_mod='$single_module'
7040 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7041 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7042 else
7043 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7045 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7046 _lt_dsymutil='~$DSYMUTIL $lib || :'
7047 else
7048 _lt_dsymutil=
7051 esac
7053 for ac_header in dlfcn.h
7054 do :
7055 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7057 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7058 cat >>confdefs.h <<_ACEOF
7059 #define HAVE_DLFCN_H 1
7060 _ACEOF
7064 done
7070 # Set options
7074 enable_dlopen=no
7077 enable_win32_dll=no
7080 # Check whether --enable-shared was given.
7081 if test "${enable_shared+set}" = set; then :
7082 enableval=$enable_shared; p=${PACKAGE-default}
7083 case $enableval in
7084 yes) enable_shared=yes ;;
7085 no) enable_shared=no ;;
7087 enable_shared=no
7088 # Look at the argument we got. We use all the common list separators.
7089 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7090 for pkg in $enableval; do
7091 IFS="$lt_save_ifs"
7092 if test "X$pkg" = "X$p"; then
7093 enable_shared=yes
7095 done
7096 IFS="$lt_save_ifs"
7098 esac
7099 else
7100 enable_shared=yes
7111 # Check whether --enable-static was given.
7112 if test "${enable_static+set}" = set; then :
7113 enableval=$enable_static; p=${PACKAGE-default}
7114 case $enableval in
7115 yes) enable_static=yes ;;
7116 no) enable_static=no ;;
7118 enable_static=no
7119 # Look at the argument we got. We use all the common list separators.
7120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7121 for pkg in $enableval; do
7122 IFS="$lt_save_ifs"
7123 if test "X$pkg" = "X$p"; then
7124 enable_static=yes
7126 done
7127 IFS="$lt_save_ifs"
7129 esac
7130 else
7131 enable_static=yes
7143 # Check whether --with-pic was given.
7144 if test "${with_pic+set}" = set; then :
7145 withval=$with_pic; pic_mode="$withval"
7146 else
7147 pic_mode=default
7151 test -z "$pic_mode" && pic_mode=default
7159 # Check whether --enable-fast-install was given.
7160 if test "${enable_fast_install+set}" = set; then :
7161 enableval=$enable_fast_install; p=${PACKAGE-default}
7162 case $enableval in
7163 yes) enable_fast_install=yes ;;
7164 no) enable_fast_install=no ;;
7166 enable_fast_install=no
7167 # Look at the argument we got. We use all the common list separators.
7168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7169 for pkg in $enableval; do
7170 IFS="$lt_save_ifs"
7171 if test "X$pkg" = "X$p"; then
7172 enable_fast_install=yes
7174 done
7175 IFS="$lt_save_ifs"
7177 esac
7178 else
7179 enable_fast_install=yes
7192 # This can be used to rebuild libtool when needed
7193 LIBTOOL_DEPS="$ltmain"
7195 # Always use our own libtool.
7196 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7223 test -z "$LN_S" && LN_S="ln -s"
7238 if test -n "${ZSH_VERSION+set}" ; then
7239 setopt NO_GLOB_SUBST
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7243 $as_echo_n "checking for objdir... " >&6; }
7244 if test "${lt_cv_objdir+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 rm -f .libs 2>/dev/null
7248 mkdir .libs 2>/dev/null
7249 if test -d .libs; then
7250 lt_cv_objdir=.libs
7251 else
7252 # MS-DOS does not allow filenames that begin with a dot.
7253 lt_cv_objdir=_libs
7255 rmdir .libs 2>/dev/null
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7258 $as_echo "$lt_cv_objdir" >&6; }
7259 objdir=$lt_cv_objdir
7265 cat >>confdefs.h <<_ACEOF
7266 #define LT_OBJDIR "$lt_cv_objdir/"
7267 _ACEOF
7272 case $host_os in
7273 aix3*)
7274 # AIX sometimes has problems with the GCC collect2 program. For some
7275 # reason, if we set the COLLECT_NAMES environment variable, the problems
7276 # vanish in a puff of smoke.
7277 if test "X${COLLECT_NAMES+set}" != Xset; then
7278 COLLECT_NAMES=
7279 export COLLECT_NAMES
7282 esac
7284 # Global variables:
7285 ofile=libtool
7286 can_build_shared=yes
7288 # All known linkers require a `.a' archive for static linking (except MSVC,
7289 # which needs '.lib').
7290 libext=a
7292 with_gnu_ld="$lt_cv_prog_gnu_ld"
7294 old_CC="$CC"
7295 old_CFLAGS="$CFLAGS"
7297 # Set sane defaults for various variables
7298 test -z "$CC" && CC=cc
7299 test -z "$LTCC" && LTCC=$CC
7300 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7301 test -z "$LD" && LD=ld
7302 test -z "$ac_objext" && ac_objext=o
7304 for cc_temp in $compiler""; do
7305 case $cc_temp in
7306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7308 \-*) ;;
7309 *) break;;
7310 esac
7311 done
7312 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7315 # Only perform the check for file, if the check method requires it
7316 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7317 case $deplibs_check_method in
7318 file_magic*)
7319 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7321 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7322 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 case $MAGIC_CMD in
7326 [\\/*] | ?:[\\/]*)
7327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7330 lt_save_MAGIC_CMD="$MAGIC_CMD"
7331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7333 for ac_dir in $ac_dummy; do
7334 IFS="$lt_save_ifs"
7335 test -z "$ac_dir" && ac_dir=.
7336 if test -f $ac_dir/${ac_tool_prefix}file; then
7337 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7338 if test -n "$file_magic_test_file"; then
7339 case $deplibs_check_method in
7340 "file_magic "*)
7341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7344 $EGREP "$file_magic_regex" > /dev/null; then
7346 else
7347 cat <<_LT_EOF 1>&2
7349 *** Warning: the command libtool uses to detect shared libraries,
7350 *** $file_magic_cmd, produces output that libtool cannot recognize.
7351 *** The result is that libtool may fail to recognize shared libraries
7352 *** as such. This will affect the creation of libtool libraries that
7353 *** depend on shared libraries, but programs linked with such libtool
7354 *** libraries will work regardless of this problem. Nevertheless, you
7355 *** may want to report the problem to your system manager and/or to
7356 *** bug-libtool@gnu.org
7358 _LT_EOF
7359 fi ;;
7360 esac
7362 break
7364 done
7365 IFS="$lt_save_ifs"
7366 MAGIC_CMD="$lt_save_MAGIC_CMD"
7368 esac
7371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7372 if test -n "$MAGIC_CMD"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7374 $as_echo "$MAGIC_CMD" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7384 if test -z "$lt_cv_path_MAGIC_CMD"; then
7385 if test -n "$ac_tool_prefix"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7387 $as_echo_n "checking for file... " >&6; }
7388 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 case $MAGIC_CMD in
7392 [\\/*] | ?:[\\/]*)
7393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7396 lt_save_MAGIC_CMD="$MAGIC_CMD"
7397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7398 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7399 for ac_dir in $ac_dummy; do
7400 IFS="$lt_save_ifs"
7401 test -z "$ac_dir" && ac_dir=.
7402 if test -f $ac_dir/file; then
7403 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7404 if test -n "$file_magic_test_file"; then
7405 case $deplibs_check_method in
7406 "file_magic "*)
7407 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7409 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7410 $EGREP "$file_magic_regex" > /dev/null; then
7412 else
7413 cat <<_LT_EOF 1>&2
7415 *** Warning: the command libtool uses to detect shared libraries,
7416 *** $file_magic_cmd, produces output that libtool cannot recognize.
7417 *** The result is that libtool may fail to recognize shared libraries
7418 *** as such. This will affect the creation of libtool libraries that
7419 *** depend on shared libraries, but programs linked with such libtool
7420 *** libraries will work regardless of this problem. Nevertheless, you
7421 *** may want to report the problem to your system manager and/or to
7422 *** bug-libtool@gnu.org
7424 _LT_EOF
7425 fi ;;
7426 esac
7428 break
7430 done
7431 IFS="$lt_save_ifs"
7432 MAGIC_CMD="$lt_save_MAGIC_CMD"
7434 esac
7437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7438 if test -n "$MAGIC_CMD"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7440 $as_echo "$MAGIC_CMD" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7447 else
7448 MAGIC_CMD=:
7454 esac
7456 # Use C for the default configuration in the libtool script
7458 lt_save_CC="$CC"
7459 ac_ext=c
7460 ac_cpp='$CPP $CPPFLAGS'
7461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7466 # Source file extension for C test sources.
7467 ac_ext=c
7469 # Object file extension for compiled C test sources.
7470 objext=o
7471 objext=$objext
7473 # Code to be used in simple compile tests
7474 lt_simple_compile_test_code="int some_variable = 0;"
7476 # Code to be used in simple link tests
7477 lt_simple_link_test_code='int main(){return(0);}'
7485 # If no C compiler was specified, use CC.
7486 LTCC=${LTCC-"$CC"}
7488 # If no C compiler flags were specified, use CFLAGS.
7489 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7491 # Allow CC to be a program name with arguments.
7492 compiler=$CC
7494 # Save the default compiler, since it gets overwritten when the other
7495 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7496 compiler_DEFAULT=$CC
7498 # save warnings/boilerplate of simple test code
7499 ac_outfile=conftest.$ac_objext
7500 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7501 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7502 _lt_compiler_boilerplate=`cat conftest.err`
7503 $RM conftest*
7505 ac_outfile=conftest.$ac_objext
7506 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7507 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7508 _lt_linker_boilerplate=`cat conftest.err`
7509 $RM -r conftest*
7512 ## CAVEAT EMPTOR:
7513 ## There is no encapsulation within the following macros, do not change
7514 ## the running order or otherwise move them around unless you know exactly
7515 ## what you are doing...
7516 if test -n "$compiler"; then
7518 lt_prog_compiler_no_builtin_flag=
7520 if test "$GCC" = yes; then
7521 case $cc_basename in
7522 nvcc*)
7523 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7525 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7526 esac
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7529 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7530 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 lt_cv_prog_compiler_rtti_exceptions=no
7534 ac_outfile=conftest.$ac_objext
7535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7536 lt_compiler_flag="-fno-rtti -fno-exceptions"
7537 # Insert the option either (1) after the last *FLAGS variable, or
7538 # (2) before a word containing "conftest.", or (3) at the end.
7539 # Note that $ac_compile itself does not contain backslashes and begins
7540 # with a dollar sign (not a hyphen), so the echo should work correctly.
7541 # The option is referenced via a variable to avoid confusing sed.
7542 lt_compile=`echo "$ac_compile" | $SED \
7543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7545 -e 's:$: $lt_compiler_flag:'`
7546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7547 (eval "$lt_compile" 2>conftest.err)
7548 ac_status=$?
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 if (exit $ac_status) && test -s "$ac_outfile"; then
7552 # The compiler can only warn and ignore the option if not recognized
7553 # So say no if there are warnings other than the usual output.
7554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7557 lt_cv_prog_compiler_rtti_exceptions=yes
7560 $RM conftest*
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7564 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7566 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7567 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7568 else
7579 lt_prog_compiler_wl=
7580 lt_prog_compiler_pic=
7581 lt_prog_compiler_static=
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7584 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7586 if test "$GCC" = yes; then
7587 lt_prog_compiler_wl='-Wl,'
7588 lt_prog_compiler_static='-static'
7590 case $host_os in
7591 aix*)
7592 # All AIX code is PIC.
7593 if test "$host_cpu" = ia64; then
7594 # AIX 5 now supports IA64 processor
7595 lt_prog_compiler_static='-Bstatic'
7597 lt_prog_compiler_pic='-fPIC'
7600 amigaos*)
7601 case $host_cpu in
7602 powerpc)
7603 # see comment about AmigaOS4 .so support
7604 lt_prog_compiler_pic='-fPIC'
7606 m68k)
7607 # FIXME: we need at least 68020 code to build shared libraries, but
7608 # adding the `-m68020' flag to GCC prevents building anything better,
7609 # like `-m68040'.
7610 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7612 esac
7615 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7616 # PIC is the default for these OSes.
7619 mingw* | cygwin* | pw32* | os2* | cegcc*)
7620 # This hack is so that the source file can tell whether it is being
7621 # built for inclusion in a dll (and should export symbols for example).
7622 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7623 # (--disable-auto-import) libraries
7624 lt_prog_compiler_pic='-DDLL_EXPORT'
7627 darwin* | rhapsody*)
7628 # PIC is the default on this platform
7629 # Common symbols not allowed in MH_DYLIB files
7630 lt_prog_compiler_pic='-fno-common'
7633 haiku*)
7634 # PIC is the default for Haiku.
7635 # The "-static" flag exists, but is broken.
7636 lt_prog_compiler_static=
7639 hpux*)
7640 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7641 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7642 # sets the default TLS model and affects inlining.
7643 case $host_cpu in
7644 hppa*64*)
7645 # +Z the default
7648 lt_prog_compiler_pic='-fPIC'
7650 esac
7653 interix[3-9]*)
7654 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7655 # Instead, we relocate shared libraries at runtime.
7658 msdosdjgpp*)
7659 # Just because we use GCC doesn't mean we suddenly get shared libraries
7660 # on systems that don't support them.
7661 lt_prog_compiler_can_build_shared=no
7662 enable_shared=no
7665 *nto* | *qnx*)
7666 # QNX uses GNU C++, but need to define -shared option too, otherwise
7667 # it will coredump.
7668 lt_prog_compiler_pic='-fPIC -shared'
7671 sysv4*MP*)
7672 if test -d /usr/nec; then
7673 lt_prog_compiler_pic=-Kconform_pic
7678 lt_prog_compiler_pic='-fPIC'
7680 esac
7682 case $cc_basename in
7683 nvcc*) # Cuda Compiler Driver 2.2
7684 lt_prog_compiler_wl='-Xlinker '
7685 lt_prog_compiler_pic='-Xcompiler -fPIC'
7687 esac
7688 else
7689 # PORTME Check for flag to pass linker flags through the system compiler.
7690 case $host_os in
7691 aix*)
7692 lt_prog_compiler_wl='-Wl,'
7693 if test "$host_cpu" = ia64; then
7694 # AIX 5 now supports IA64 processor
7695 lt_prog_compiler_static='-Bstatic'
7696 else
7697 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7701 mingw* | cygwin* | pw32* | os2* | cegcc*)
7702 # This hack is so that the source file can tell whether it is being
7703 # built for inclusion in a dll (and should export symbols for example).
7704 lt_prog_compiler_pic='-DDLL_EXPORT'
7707 hpux9* | hpux10* | hpux11*)
7708 lt_prog_compiler_wl='-Wl,'
7709 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7710 # not for PA HP-UX.
7711 case $host_cpu in
7712 hppa*64*|ia64*)
7713 # +Z the default
7716 lt_prog_compiler_pic='+Z'
7718 esac
7719 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7720 lt_prog_compiler_static='${wl}-a ${wl}archive'
7723 irix5* | irix6* | nonstopux*)
7724 lt_prog_compiler_wl='-Wl,'
7725 # PIC (with -KPIC) is the default.
7726 lt_prog_compiler_static='-non_shared'
7729 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7730 case $cc_basename in
7731 # old Intel for x86_64 which still supported -KPIC.
7732 ecc*)
7733 lt_prog_compiler_wl='-Wl,'
7734 lt_prog_compiler_pic='-KPIC'
7735 lt_prog_compiler_static='-static'
7737 # icc used to be incompatible with GCC.
7738 # ICC 10 doesn't accept -KPIC any more.
7739 icc* | ifort*)
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-fPIC'
7742 lt_prog_compiler_static='-static'
7744 # Lahey Fortran 8.1.
7745 lf95*)
7746 lt_prog_compiler_wl='-Wl,'
7747 lt_prog_compiler_pic='--shared'
7748 lt_prog_compiler_static='--static'
7750 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7751 # Portland Group compilers (*not* the Pentium gcc compiler,
7752 # which looks to be a dead project)
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_pic='-fpic'
7755 lt_prog_compiler_static='-Bstatic'
7757 ccc*)
7758 lt_prog_compiler_wl='-Wl,'
7759 # All Alpha code is PIC.
7760 lt_prog_compiler_static='-non_shared'
7762 xl* | bgxl* | bgf* | mpixl*)
7763 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_pic='-qpic'
7766 lt_prog_compiler_static='-qstaticlink'
7769 case `$CC -V 2>&1 | sed 5q` in
7770 *Sun\ F* | *Sun*Fortran*)
7771 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7772 lt_prog_compiler_pic='-KPIC'
7773 lt_prog_compiler_static='-Bstatic'
7774 lt_prog_compiler_wl=''
7776 *Sun\ C*)
7777 # Sun C 5.9
7778 lt_prog_compiler_pic='-KPIC'
7779 lt_prog_compiler_static='-Bstatic'
7780 lt_prog_compiler_wl='-Wl,'
7782 esac
7784 esac
7787 newsos6)
7788 lt_prog_compiler_pic='-KPIC'
7789 lt_prog_compiler_static='-Bstatic'
7792 *nto* | *qnx*)
7793 # QNX uses GNU C++, but need to define -shared option too, otherwise
7794 # it will coredump.
7795 lt_prog_compiler_pic='-fPIC -shared'
7798 osf3* | osf4* | osf5*)
7799 lt_prog_compiler_wl='-Wl,'
7800 # All OSF/1 code is PIC.
7801 lt_prog_compiler_static='-non_shared'
7804 rdos*)
7805 lt_prog_compiler_static='-non_shared'
7808 solaris*)
7809 lt_prog_compiler_pic='-KPIC'
7810 lt_prog_compiler_static='-Bstatic'
7811 case $cc_basename in
7812 f77* | f90* | f95*)
7813 lt_prog_compiler_wl='-Qoption ld ';;
7815 lt_prog_compiler_wl='-Wl,';;
7816 esac
7819 sunos4*)
7820 lt_prog_compiler_wl='-Qoption ld '
7821 lt_prog_compiler_pic='-PIC'
7822 lt_prog_compiler_static='-Bstatic'
7825 sysv4 | sysv4.2uw2* | sysv4.3*)
7826 lt_prog_compiler_wl='-Wl,'
7827 lt_prog_compiler_pic='-KPIC'
7828 lt_prog_compiler_static='-Bstatic'
7831 sysv4*MP*)
7832 if test -d /usr/nec ;then
7833 lt_prog_compiler_pic='-Kconform_pic'
7834 lt_prog_compiler_static='-Bstatic'
7838 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_pic='-KPIC'
7841 lt_prog_compiler_static='-Bstatic'
7844 unicos*)
7845 lt_prog_compiler_wl='-Wl,'
7846 lt_prog_compiler_can_build_shared=no
7849 uts4*)
7850 lt_prog_compiler_pic='-pic'
7851 lt_prog_compiler_static='-Bstatic'
7855 lt_prog_compiler_can_build_shared=no
7857 esac
7860 case $host_os in
7861 # For platforms which do not support PIC, -DPIC is meaningless:
7862 *djgpp*)
7863 lt_prog_compiler_pic=
7866 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7868 esac
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7870 $as_echo "$lt_prog_compiler_pic" >&6; }
7878 # Check to make sure the PIC flag actually works.
7880 if test -n "$lt_prog_compiler_pic"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7882 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7883 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 lt_cv_prog_compiler_pic_works=no
7887 ac_outfile=conftest.$ac_objext
7888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7889 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7890 # Insert the option either (1) after the last *FLAGS variable, or
7891 # (2) before a word containing "conftest.", or (3) at the end.
7892 # Note that $ac_compile itself does not contain backslashes and begins
7893 # with a dollar sign (not a hyphen), so the echo should work correctly.
7894 # The option is referenced via a variable to avoid confusing sed.
7895 lt_compile=`echo "$ac_compile" | $SED \
7896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7898 -e 's:$: $lt_compiler_flag:'`
7899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7900 (eval "$lt_compile" 2>conftest.err)
7901 ac_status=$?
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 if (exit $ac_status) && test -s "$ac_outfile"; then
7905 # The compiler can only warn and ignore the option if not recognized
7906 # So say no if there are warnings other than the usual output.
7907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7910 lt_cv_prog_compiler_pic_works=yes
7913 $RM conftest*
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7917 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7919 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7920 case $lt_prog_compiler_pic in
7921 "" | " "*) ;;
7922 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7923 esac
7924 else
7925 lt_prog_compiler_pic=
7926 lt_prog_compiler_can_build_shared=no
7937 # Check to make sure the static flag actually works.
7939 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7941 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7942 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 lt_cv_prog_compiler_static_works=no
7946 save_LDFLAGS="$LDFLAGS"
7947 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7948 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7949 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7950 # The linker can only warn and ignore the option if not recognized
7951 # So say no if there are warnings
7952 if test -s conftest.err; then
7953 # Append any errors to the config.log.
7954 cat conftest.err 1>&5
7955 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7957 if diff conftest.exp conftest.er2 >/dev/null; then
7958 lt_cv_prog_compiler_static_works=yes
7960 else
7961 lt_cv_prog_compiler_static_works=yes
7964 $RM -r conftest*
7965 LDFLAGS="$save_LDFLAGS"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7969 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7971 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7973 else
7974 lt_prog_compiler_static=
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7985 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 lt_cv_prog_compiler_c_o=no
7989 $RM -r conftest 2>/dev/null
7990 mkdir conftest
7991 cd conftest
7992 mkdir out
7993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7995 lt_compiler_flag="-o out/conftest2.$ac_objext"
7996 # Insert the option either (1) after the last *FLAGS variable, or
7997 # (2) before a word containing "conftest.", or (3) at the end.
7998 # Note that $ac_compile itself does not contain backslashes and begins
7999 # with a dollar sign (not a hyphen), so the echo should work correctly.
8000 lt_compile=`echo "$ac_compile" | $SED \
8001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8003 -e 's:$: $lt_compiler_flag:'`
8004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8005 (eval "$lt_compile" 2>out/conftest.err)
8006 ac_status=$?
8007 cat out/conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8010 then
8011 # The compiler can only warn and ignore the option if not recognized
8012 # So say no if there are warnings
8013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8016 lt_cv_prog_compiler_c_o=yes
8019 chmod u+w . 2>&5
8020 $RM conftest*
8021 # SGI C++ compiler will create directory out/ii_files/ for
8022 # template instantiation
8023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8024 $RM out/* && rmdir out
8025 cd ..
8026 $RM -r conftest
8027 $RM conftest*
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8040 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 lt_cv_prog_compiler_c_o=no
8044 $RM -r conftest 2>/dev/null
8045 mkdir conftest
8046 cd conftest
8047 mkdir out
8048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8050 lt_compiler_flag="-o out/conftest2.$ac_objext"
8051 # Insert the option either (1) after the last *FLAGS variable, or
8052 # (2) before a word containing "conftest.", or (3) at the end.
8053 # Note that $ac_compile itself does not contain backslashes and begins
8054 # with a dollar sign (not a hyphen), so the echo should work correctly.
8055 lt_compile=`echo "$ac_compile" | $SED \
8056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8058 -e 's:$: $lt_compiler_flag:'`
8059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8060 (eval "$lt_compile" 2>out/conftest.err)
8061 ac_status=$?
8062 cat out/conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8065 then
8066 # The compiler can only warn and ignore the option if not recognized
8067 # So say no if there are warnings
8068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8071 lt_cv_prog_compiler_c_o=yes
8074 chmod u+w . 2>&5
8075 $RM conftest*
8076 # SGI C++ compiler will create directory out/ii_files/ for
8077 # template instantiation
8078 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8079 $RM out/* && rmdir out
8080 cd ..
8081 $RM -r conftest
8082 $RM conftest*
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8086 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8091 hard_links="nottested"
8092 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8093 # do not overwrite the value of need_locks provided by the user
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8095 $as_echo_n "checking if we can lock with hard links... " >&6; }
8096 hard_links=yes
8097 $RM conftest*
8098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8099 touch conftest.a
8100 ln conftest.a conftest.b 2>&5 || hard_links=no
8101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8103 $as_echo "$hard_links" >&6; }
8104 if test "$hard_links" = no; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8106 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8107 need_locks=warn
8109 else
8110 need_locks=no
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8119 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8121 runpath_var=
8122 allow_undefined_flag=
8123 always_export_symbols=no
8124 archive_cmds=
8125 archive_expsym_cmds=
8126 compiler_needs_object=no
8127 enable_shared_with_static_runtimes=no
8128 export_dynamic_flag_spec=
8129 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8130 hardcode_automatic=no
8131 hardcode_direct=no
8132 hardcode_direct_absolute=no
8133 hardcode_libdir_flag_spec=
8134 hardcode_libdir_flag_spec_ld=
8135 hardcode_libdir_separator=
8136 hardcode_minus_L=no
8137 hardcode_shlibpath_var=unsupported
8138 inherit_rpath=no
8139 link_all_deplibs=unknown
8140 module_cmds=
8141 module_expsym_cmds=
8142 old_archive_from_new_cmds=
8143 old_archive_from_expsyms_cmds=
8144 thread_safe_flag_spec=
8145 whole_archive_flag_spec=
8146 # include_expsyms should be a list of space-separated symbols to be *always*
8147 # included in the symbol list
8148 include_expsyms=
8149 # exclude_expsyms can be an extended regexp of symbols to exclude
8150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8152 # as well as any symbol that contains `d'.
8153 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8155 # platforms (ab)use it in PIC code, but their linkers get confused if
8156 # the symbol is explicitly referenced. Since portable code cannot
8157 # rely on this symbol name, it's probably fine to never include it in
8158 # preloaded symbol tables.
8159 # Exclude shared library initialization/finalization symbols.
8160 extract_expsyms_cmds=
8162 case $host_os in
8163 cygwin* | mingw* | pw32* | cegcc*)
8164 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8165 # When not using gcc, we currently assume that we are using
8166 # Microsoft Visual C++.
8167 if test "$GCC" != yes; then
8168 with_gnu_ld=no
8171 interix*)
8172 # we just hope/assume this is gcc and not c89 (= MSVC++)
8173 with_gnu_ld=yes
8175 openbsd*)
8176 with_gnu_ld=no
8178 esac
8180 ld_shlibs=yes
8182 # On some targets, GNU ld is compatible enough with the native linker
8183 # that we're better off using the native interface for both.
8184 lt_use_gnu_ld_interface=no
8185 if test "$with_gnu_ld" = yes; then
8186 case $host_os in
8187 aix*)
8188 # The AIX port of GNU ld has always aspired to compatibility
8189 # with the native linker. However, as the warning in the GNU ld
8190 # block says, versions before 2.19.5* couldn't really create working
8191 # shared libraries, regardless of the interface used.
8192 case `$LD -v 2>&1` in
8193 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8194 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8195 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8197 lt_use_gnu_ld_interface=yes
8199 esac
8202 lt_use_gnu_ld_interface=yes
8204 esac
8207 if test "$lt_use_gnu_ld_interface" = yes; then
8208 # If archive_cmds runs LD, not CC, wlarc should be empty
8209 wlarc='${wl}'
8211 # Set some defaults for GNU ld with shared library support. These
8212 # are reset later if shared libraries are not supported. Putting them
8213 # here allows them to be overridden if necessary.
8214 runpath_var=LD_RUN_PATH
8215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8216 export_dynamic_flag_spec='${wl}--export-dynamic'
8217 # ancient GNU ld didn't support --whole-archive et. al.
8218 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8219 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8220 else
8221 whole_archive_flag_spec=
8223 supports_anon_versioning=no
8224 case `$LD -v 2>&1` in
8225 *GNU\ gold*) supports_anon_versioning=yes ;;
8226 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8227 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8228 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8229 *\ 2.11.*) ;; # other 2.11 versions
8230 *) supports_anon_versioning=yes ;;
8231 esac
8233 # See if GNU ld supports shared libraries.
8234 case $host_os in
8235 aix[3-9]*)
8236 # On AIX/PPC, the GNU linker is very broken
8237 if test "$host_cpu" != ia64; then
8238 ld_shlibs=no
8239 cat <<_LT_EOF 1>&2
8241 *** Warning: the GNU linker, at least up to release 2.19, is reported
8242 *** to be unable to reliably create shared libraries on AIX.
8243 *** Therefore, libtool is disabling shared libraries support. If you
8244 *** really care for shared libraries, you may want to install binutils
8245 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8246 *** You will then need to restart the configuration process.
8248 _LT_EOF
8252 amigaos*)
8253 case $host_cpu in
8254 powerpc)
8255 # see comment about AmigaOS4 .so support
8256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8257 archive_expsym_cmds=''
8259 m68k)
8260 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)'
8261 hardcode_libdir_flag_spec='-L$libdir'
8262 hardcode_minus_L=yes
8264 esac
8267 beos*)
8268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8269 allow_undefined_flag=unsupported
8270 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8271 # support --undefined. This deserves some investigation. FIXME
8272 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8273 else
8274 ld_shlibs=no
8278 cygwin* | mingw* | pw32* | cegcc*)
8279 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8280 # as there is no search path for DLLs.
8281 hardcode_libdir_flag_spec='-L$libdir'
8282 export_dynamic_flag_spec='${wl}--export-all-symbols'
8283 allow_undefined_flag=unsupported
8284 always_export_symbols=no
8285 enable_shared_with_static_runtimes=yes
8286 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8288 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8290 # If the export-symbols file already is a .def file (1st line
8291 # is EXPORTS), use it as is; otherwise, prepend...
8292 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8293 cp $export_symbols $output_objdir/$soname.def;
8294 else
8295 echo EXPORTS > $output_objdir/$soname.def;
8296 cat $export_symbols >> $output_objdir/$soname.def;
8298 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8299 else
8300 ld_shlibs=no
8304 haiku*)
8305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8306 link_all_deplibs=yes
8309 interix[3-9]*)
8310 hardcode_direct=no
8311 hardcode_shlibpath_var=no
8312 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8313 export_dynamic_flag_spec='${wl}-E'
8314 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8315 # Instead, shared libraries are loaded at an image base (0x10000000 by
8316 # default) and relocated if they conflict, which is a slow very memory
8317 # consuming and fragmenting process. To avoid this, we pick a random,
8318 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8319 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8320 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8321 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'
8324 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8325 tmp_diet=no
8326 if test "$host_os" = linux-dietlibc; then
8327 case $cc_basename in
8328 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8329 esac
8331 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8332 && test "$tmp_diet" = no
8333 then
8334 tmp_addflag=' $pic_flag'
8335 tmp_sharedflag='-shared'
8336 case $cc_basename,$host_cpu in
8337 pgcc*) # Portland Group C compiler
8338 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'
8339 tmp_addflag=' $pic_flag'
8341 pgf77* | pgf90* | pgf95* | pgfortran*)
8342 # Portland Group f77 and f90 compilers
8343 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'
8344 tmp_addflag=' $pic_flag -Mnomain' ;;
8345 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8346 tmp_addflag=' -i_dynamic' ;;
8347 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8348 tmp_addflag=' -i_dynamic -nofor_main' ;;
8349 ifc* | ifort*) # Intel Fortran compiler
8350 tmp_addflag=' -nofor_main' ;;
8351 lf95*) # Lahey Fortran 8.1
8352 whole_archive_flag_spec=
8353 tmp_sharedflag='--shared' ;;
8354 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8355 tmp_sharedflag='-qmkshrobj'
8356 tmp_addflag= ;;
8357 nvcc*) # Cuda Compiler Driver 2.2
8358 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'
8359 compiler_needs_object=yes
8361 esac
8362 case `$CC -V 2>&1 | sed 5q` in
8363 *Sun\ C*) # Sun C 5.9
8364 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'
8365 compiler_needs_object=yes
8366 tmp_sharedflag='-G' ;;
8367 *Sun\ F*) # Sun Fortran 8.3
8368 tmp_sharedflag='-G' ;;
8369 esac
8370 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8372 if test "x$supports_anon_versioning" = xyes; then
8373 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8374 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8375 echo "local: *; };" >> $output_objdir/$libname.ver~
8376 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8379 case $cc_basename in
8380 xlf* | bgf* | bgxlf* | mpixlf*)
8381 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8382 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8383 hardcode_libdir_flag_spec=
8384 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8385 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8386 if test "x$supports_anon_versioning" = xyes; then
8387 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8388 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8389 echo "local: *; };" >> $output_objdir/$libname.ver~
8390 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8393 esac
8394 else
8395 ld_shlibs=no
8399 netbsd*)
8400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8401 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8402 wlarc=
8403 else
8404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8409 solaris*)
8410 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8411 ld_shlibs=no
8412 cat <<_LT_EOF 1>&2
8414 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8415 *** create shared libraries on Solaris systems. Therefore, libtool
8416 *** is disabling shared libraries support. We urge you to upgrade GNU
8417 *** binutils to release 2.9.1 or newer. Another option is to modify
8418 *** your PATH or compiler configuration so that the native linker is
8419 *** used, and then restart.
8421 _LT_EOF
8422 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8425 else
8426 ld_shlibs=no
8430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8431 case `$LD -v 2>&1` in
8432 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8433 ld_shlibs=no
8434 cat <<_LT_EOF 1>&2
8436 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8437 *** reliably create shared libraries on SCO systems. Therefore, libtool
8438 *** is disabling shared libraries support. We urge you to upgrade GNU
8439 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8440 *** your PATH or compiler configuration so that the native linker is
8441 *** used, and then restart.
8443 _LT_EOF
8446 # For security reasons, it is highly recommended that you always
8447 # use absolute paths for naming shared libraries, and exclude the
8448 # DT_RUNPATH tag from executables and libraries. But doing so
8449 # requires that you compile everything twice, which is a pain.
8450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8453 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8454 else
8455 ld_shlibs=no
8458 esac
8461 sunos4*)
8462 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8463 wlarc=
8464 hardcode_direct=yes
8465 hardcode_shlibpath_var=no
8469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8471 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8472 else
8473 ld_shlibs=no
8476 esac
8478 if test "$ld_shlibs" = no; then
8479 runpath_var=
8480 hardcode_libdir_flag_spec=
8481 export_dynamic_flag_spec=
8482 whole_archive_flag_spec=
8484 else
8485 # PORTME fill in a description of your system's linker (not GNU ld)
8486 case $host_os in
8487 aix3*)
8488 allow_undefined_flag=unsupported
8489 always_export_symbols=yes
8490 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'
8491 # Note: this linker hardcodes the directories in LIBPATH if there
8492 # are no directories specified by -L.
8493 hardcode_minus_L=yes
8494 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8495 # Neither direct hardcoding nor static linking is supported with a
8496 # broken collect2.
8497 hardcode_direct=unsupported
8501 aix[4-9]*)
8502 if test "$host_cpu" = ia64; then
8503 # On IA64, the linker does run time linking by default, so we don't
8504 # have to do anything special.
8505 aix_use_runtimelinking=no
8506 exp_sym_flag='-Bexport'
8507 no_entry_flag=""
8508 else
8509 # If we're using GNU nm, then we don't want the "-C" option.
8510 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8511 # Also, AIX nm treats weak defined symbols like other global
8512 # defined symbols, whereas GNU nm marks them as "W".
8513 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8514 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'
8515 else
8516 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8518 aix_use_runtimelinking=no
8520 # Test if we are trying to use run time linking or normal
8521 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8522 # need to do runtime linking.
8523 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8524 for ld_flag in $LDFLAGS; do
8525 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8526 aix_use_runtimelinking=yes
8527 break
8529 done
8531 esac
8533 exp_sym_flag='-bexport'
8534 no_entry_flag='-bnoentry'
8537 # When large executables or shared objects are built, AIX ld can
8538 # have problems creating the table of contents. If linking a library
8539 # or program results in "error TOC overflow" add -mminimal-toc to
8540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8543 archive_cmds=''
8544 hardcode_direct=yes
8545 hardcode_direct_absolute=yes
8546 hardcode_libdir_separator=':'
8547 link_all_deplibs=yes
8548 file_list_spec='${wl}-f,'
8550 if test "$GCC" = yes; then
8551 case $host_os in aix4.[012]|aix4.[012].*)
8552 # We only want to do this on AIX 4.2 and lower, the check
8553 # below for broken collect2 doesn't work under 4.3+
8554 collect2name=`${CC} -print-prog-name=collect2`
8555 if test -f "$collect2name" &&
8556 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8557 then
8558 # We have reworked collect2
8560 else
8561 # We have old collect2
8562 hardcode_direct=unsupported
8563 # It fails to find uninstalled libraries when the uninstalled
8564 # path is not listed in the libpath. Setting hardcode_minus_L
8565 # to unsupported forces relinking
8566 hardcode_minus_L=yes
8567 hardcode_libdir_flag_spec='-L$libdir'
8568 hardcode_libdir_separator=
8571 esac
8572 shared_flag='-shared'
8573 if test "$aix_use_runtimelinking" = yes; then
8574 shared_flag="$shared_flag "'${wl}-G'
8576 else
8577 # not using gcc
8578 if test "$host_cpu" = ia64; then
8579 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8580 # chokes on -Wl,-G. The following line is correct:
8581 shared_flag='-G'
8582 else
8583 if test "$aix_use_runtimelinking" = yes; then
8584 shared_flag='${wl}-G'
8585 else
8586 shared_flag='${wl}-bM:SRE'
8591 export_dynamic_flag_spec='${wl}-bexpall'
8592 # It seems that -bexpall does not export symbols beginning with
8593 # underscore (_), so it is better to generate a list of symbols to export.
8594 always_export_symbols=yes
8595 if test "$aix_use_runtimelinking" = yes; then
8596 # Warning - without using the other runtime loading flags (-brtl),
8597 # -berok will link without error, but may produce a broken library.
8598 allow_undefined_flag='-berok'
8599 # Determine the default libpath from the value encoded in an
8600 # empty executable.
8601 if test x$gcc_no_link = xyes; then
8602 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8608 main ()
8612 return 0;
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"; then :
8617 lt_aix_libpath_sed='
8618 /Import File Strings/,/^$/ {
8619 /^0/ {
8620 s/^0 *\(.*\)$/\1/
8624 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8625 # Check for a 64-bit object if we didn't find anything.
8626 if test -z "$aix_libpath"; then
8627 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8630 rm -f core conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8634 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8635 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"
8636 else
8637 if test "$host_cpu" = ia64; then
8638 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8639 allow_undefined_flag="-z nodefs"
8640 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"
8641 else
8642 # Determine the default libpath from the value encoded in an
8643 # empty executable.
8644 if test x$gcc_no_link = xyes; then
8645 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8651 main ()
8655 return 0;
8657 _ACEOF
8658 if ac_fn_c_try_link "$LINENO"; then :
8660 lt_aix_libpath_sed='
8661 /Import File Strings/,/^$/ {
8662 /^0/ {
8663 s/^0 *\(.*\)$/\1/
8667 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8668 # Check for a 64-bit object if we didn't find anything.
8669 if test -z "$aix_libpath"; then
8670 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8673 rm -f core conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8677 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8678 # Warning - without using the other run time loading flags,
8679 # -berok will link without error, but may produce a broken library.
8680 no_undefined_flag=' ${wl}-bernotok'
8681 allow_undefined_flag=' ${wl}-berok'
8682 if test "$with_gnu_ld" = yes; then
8683 # We only use this code for GNU lds that support --whole-archive.
8684 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8685 else
8686 # Exported symbols can be pulled into shared objects from archives
8687 whole_archive_flag_spec='$convenience'
8689 archive_cmds_need_lc=yes
8690 # This is similar to how AIX traditionally builds its shared libraries.
8691 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'
8696 amigaos*)
8697 case $host_cpu in
8698 powerpc)
8699 # see comment about AmigaOS4 .so support
8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 archive_expsym_cmds=''
8703 m68k)
8704 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)'
8705 hardcode_libdir_flag_spec='-L$libdir'
8706 hardcode_minus_L=yes
8708 esac
8711 bsdi[45]*)
8712 export_dynamic_flag_spec=-rdynamic
8715 cygwin* | mingw* | pw32* | cegcc*)
8716 # When not using gcc, we currently assume that we are using
8717 # Microsoft Visual C++.
8718 # hardcode_libdir_flag_spec is actually meaningless, as there is
8719 # no search path for DLLs.
8720 hardcode_libdir_flag_spec=' '
8721 allow_undefined_flag=unsupported
8722 # Tell ltmain to make .lib files, not .a files.
8723 libext=lib
8724 # Tell ltmain to make .dll files, not .so files.
8725 shrext_cmds=".dll"
8726 # FIXME: Setting linknames here is a bad hack.
8727 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8728 # The linker will automatically build a .lib file if we build a DLL.
8729 old_archive_from_new_cmds='true'
8730 # FIXME: Should let the user specify the lib program.
8731 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8732 fix_srcfile_path='`cygpath -w "$srcfile"`'
8733 enable_shared_with_static_runtimes=yes
8736 darwin* | rhapsody*)
8739 archive_cmds_need_lc=no
8740 hardcode_direct=no
8741 hardcode_automatic=yes
8742 hardcode_shlibpath_var=unsupported
8743 if test "$lt_cv_ld_force_load" = "yes"; then
8744 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\"`'
8745 else
8746 whole_archive_flag_spec=''
8748 link_all_deplibs=yes
8749 allow_undefined_flag="$_lt_dar_allow_undefined"
8750 case $cc_basename in
8751 ifort*) _lt_dar_can_shared=yes ;;
8752 *) _lt_dar_can_shared=$GCC ;;
8753 esac
8754 if test "$_lt_dar_can_shared" = "yes"; then
8755 output_verbose_link_cmd=func_echo_all
8756 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8757 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8758 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}"
8759 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}"
8761 else
8762 ld_shlibs=no
8767 dgux*)
8768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8769 hardcode_libdir_flag_spec='-L$libdir'
8770 hardcode_shlibpath_var=no
8773 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8774 # support. Future versions do this automatically, but an explicit c++rt0.o
8775 # does not break anything, and helps significantly (at the cost of a little
8776 # extra space).
8777 freebsd2.2*)
8778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8779 hardcode_libdir_flag_spec='-R$libdir'
8780 hardcode_direct=yes
8781 hardcode_shlibpath_var=no
8784 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8785 freebsd2.*)
8786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8787 hardcode_direct=yes
8788 hardcode_minus_L=yes
8789 hardcode_shlibpath_var=no
8792 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8793 freebsd* | dragonfly*)
8794 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8795 hardcode_libdir_flag_spec='-R$libdir'
8796 hardcode_direct=yes
8797 hardcode_shlibpath_var=no
8800 hpux9*)
8801 if test "$GCC" = yes; then
8802 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'
8803 else
8804 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'
8806 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807 hardcode_libdir_separator=:
8808 hardcode_direct=yes
8810 # hardcode_minus_L: Not really in the search PATH,
8811 # but as the default location of the library.
8812 hardcode_minus_L=yes
8813 export_dynamic_flag_spec='${wl}-E'
8816 hpux10*)
8817 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8818 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8819 else
8820 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8822 if test "$with_gnu_ld" = no; then
8823 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8824 hardcode_libdir_flag_spec_ld='+b $libdir'
8825 hardcode_libdir_separator=:
8826 hardcode_direct=yes
8827 hardcode_direct_absolute=yes
8828 export_dynamic_flag_spec='${wl}-E'
8829 # hardcode_minus_L: Not really in the search PATH,
8830 # but as the default location of the library.
8831 hardcode_minus_L=yes
8835 hpux11*)
8836 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8837 case $host_cpu in
8838 hppa*64*)
8839 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841 ia64*)
8842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8845 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8847 esac
8848 else
8849 case $host_cpu in
8850 hppa*64*)
8851 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8853 ia64*)
8854 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8858 # Older versions of the 11.00 compiler do not understand -b yet
8859 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8861 $as_echo_n "checking if $CC understands -b... " >&6; }
8862 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 lt_cv_prog_compiler__b=no
8866 save_LDFLAGS="$LDFLAGS"
8867 LDFLAGS="$LDFLAGS -b"
8868 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8870 # The linker can only warn and ignore the option if not recognized
8871 # So say no if there are warnings
8872 if test -s conftest.err; then
8873 # Append any errors to the config.log.
8874 cat conftest.err 1>&5
8875 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8877 if diff conftest.exp conftest.er2 >/dev/null; then
8878 lt_cv_prog_compiler__b=yes
8880 else
8881 lt_cv_prog_compiler__b=yes
8884 $RM -r conftest*
8885 LDFLAGS="$save_LDFLAGS"
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8889 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8891 if test x"$lt_cv_prog_compiler__b" = xyes; then
8892 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8893 else
8894 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8898 esac
8900 if test "$with_gnu_ld" = no; then
8901 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8902 hardcode_libdir_separator=:
8904 case $host_cpu in
8905 hppa*64*|ia64*)
8906 hardcode_direct=no
8907 hardcode_shlibpath_var=no
8910 hardcode_direct=yes
8911 hardcode_direct_absolute=yes
8912 export_dynamic_flag_spec='${wl}-E'
8914 # hardcode_minus_L: Not really in the search PATH,
8915 # but as the default location of the library.
8916 hardcode_minus_L=yes
8918 esac
8922 irix5* | irix6* | nonstopux*)
8923 if test "$GCC" = yes; then
8924 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'
8925 # Try to use the -exported_symbol ld option, if it does not
8926 # work, assume that -exports_file does not work either and
8927 # implicitly export all symbols.
8928 save_LDFLAGS="$LDFLAGS"
8929 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8930 if test x$gcc_no_link = xyes; then
8931 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 int foo(void) {}
8936 _ACEOF
8937 if ac_fn_c_try_link "$LINENO"; then :
8938 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'
8941 rm -f core conftest.err conftest.$ac_objext \
8942 conftest$ac_exeext conftest.$ac_ext
8943 LDFLAGS="$save_LDFLAGS"
8944 else
8945 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'
8946 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'
8948 archive_cmds_need_lc='no'
8949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8950 hardcode_libdir_separator=:
8951 inherit_rpath=yes
8952 link_all_deplibs=yes
8955 netbsd*)
8956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8958 else
8959 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8961 hardcode_libdir_flag_spec='-R$libdir'
8962 hardcode_direct=yes
8963 hardcode_shlibpath_var=no
8966 newsos6)
8967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8968 hardcode_direct=yes
8969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8970 hardcode_libdir_separator=:
8971 hardcode_shlibpath_var=no
8974 *nto* | *qnx*)
8977 openbsd*)
8978 if test -f /usr/libexec/ld.so; then
8979 hardcode_direct=yes
8980 hardcode_shlibpath_var=no
8981 hardcode_direct_absolute=yes
8982 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8983 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8984 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8986 export_dynamic_flag_spec='${wl}-E'
8987 else
8988 case $host_os in
8989 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8991 hardcode_libdir_flag_spec='-R$libdir'
8994 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8995 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8997 esac
8999 else
9000 ld_shlibs=no
9004 os2*)
9005 hardcode_libdir_flag_spec='-L$libdir'
9006 hardcode_minus_L=yes
9007 allow_undefined_flag=unsupported
9008 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'
9009 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9012 osf3*)
9013 if test "$GCC" = yes; then
9014 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9015 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'
9016 else
9017 allow_undefined_flag=' -expect_unresolved \*'
9018 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'
9020 archive_cmds_need_lc='no'
9021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9022 hardcode_libdir_separator=:
9025 osf4* | osf5*) # as osf3* with the addition of -msym flag
9026 if test "$GCC" = yes; then
9027 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9028 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'
9029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9030 else
9031 allow_undefined_flag=' -expect_unresolved \*'
9032 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'
9033 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~
9034 $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'
9036 # Both c and cxx compiler support -rpath directly
9037 hardcode_libdir_flag_spec='-rpath $libdir'
9039 archive_cmds_need_lc='no'
9040 hardcode_libdir_separator=:
9043 solaris*)
9044 no_undefined_flag=' -z defs'
9045 if test "$GCC" = yes; then
9046 wlarc='${wl}'
9047 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9048 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9049 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9050 else
9051 case `$CC -V 2>&1` in
9052 *"Compilers 5.0"*)
9053 wlarc=''
9054 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9056 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9059 wlarc='${wl}'
9060 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9062 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9064 esac
9066 hardcode_libdir_flag_spec='-R$libdir'
9067 hardcode_shlibpath_var=no
9068 case $host_os in
9069 solaris2.[0-5] | solaris2.[0-5].*) ;;
9071 # The compiler driver will combine and reorder linker options,
9072 # but understands `-z linker_flag'. GCC discards it without `$wl',
9073 # but is careful enough not to reorder.
9074 # Supported since Solaris 2.6 (maybe 2.5.1?)
9075 if test "$GCC" = yes; then
9076 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9077 else
9078 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9081 esac
9082 link_all_deplibs=yes
9085 sunos4*)
9086 if test "x$host_vendor" = xsequent; then
9087 # Use $CC to link under sequent, because it throws in some extra .o
9088 # files that make .init and .fini sections work.
9089 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9090 else
9091 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9093 hardcode_libdir_flag_spec='-L$libdir'
9094 hardcode_direct=yes
9095 hardcode_minus_L=yes
9096 hardcode_shlibpath_var=no
9099 sysv4)
9100 case $host_vendor in
9101 sni)
9102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103 hardcode_direct=yes # is this really true???
9105 siemens)
9106 ## LD is ld it makes a PLAMLIB
9107 ## CC just makes a GrossModule.
9108 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9109 reload_cmds='$CC -r -o $output$reload_objs'
9110 hardcode_direct=no
9112 motorola)
9113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9114 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9116 esac
9117 runpath_var='LD_RUN_PATH'
9118 hardcode_shlibpath_var=no
9121 sysv4.3*)
9122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9123 hardcode_shlibpath_var=no
9124 export_dynamic_flag_spec='-Bexport'
9127 sysv4*MP*)
9128 if test -d /usr/nec; then
9129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9130 hardcode_shlibpath_var=no
9131 runpath_var=LD_RUN_PATH
9132 hardcode_runpath_var=yes
9133 ld_shlibs=yes
9137 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9138 no_undefined_flag='${wl}-z,text'
9139 archive_cmds_need_lc=no
9140 hardcode_shlibpath_var=no
9141 runpath_var='LD_RUN_PATH'
9143 if test "$GCC" = yes; then
9144 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9145 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146 else
9147 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9148 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152 sysv5* | sco3.2v5* | sco5v6*)
9153 # Note: We can NOT use -z defs as we might desire, because we do not
9154 # link with -lc, and that would cause any symbols used from libc to
9155 # always be unresolved, which means just about no library would
9156 # ever link correctly. If we're not using GNU ld we use -z text
9157 # though, which does catch some bad symbols but isn't as heavy-handed
9158 # as -z defs.
9159 no_undefined_flag='${wl}-z,text'
9160 allow_undefined_flag='${wl}-z,nodefs'
9161 archive_cmds_need_lc=no
9162 hardcode_shlibpath_var=no
9163 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9164 hardcode_libdir_separator=':'
9165 link_all_deplibs=yes
9166 export_dynamic_flag_spec='${wl}-Bexport'
9167 runpath_var='LD_RUN_PATH'
9169 if test "$GCC" = yes; then
9170 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9171 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9172 else
9173 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9174 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9178 uts4*)
9179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9180 hardcode_libdir_flag_spec='-L$libdir'
9181 hardcode_shlibpath_var=no
9185 ld_shlibs=no
9187 esac
9189 if test x$host_vendor = xsni; then
9190 case $host in
9191 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9192 export_dynamic_flag_spec='${wl}-Blargedynsym'
9194 esac
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9199 $as_echo "$ld_shlibs" >&6; }
9200 test "$ld_shlibs" = no && can_build_shared=no
9202 with_gnu_ld=$with_gnu_ld
9219 # Do we need to explicitly link libc?
9221 case "x$archive_cmds_need_lc" in
9222 x|xyes)
9223 # Assume -lc should be added
9224 archive_cmds_need_lc=yes
9226 if test "$enable_shared" = yes && test "$GCC" = yes; then
9227 case $archive_cmds in
9228 *'~'*)
9229 # FIXME: we may have to deal with multi-command sequences.
9231 '$CC '*)
9232 # Test whether the compiler implicitly links with -lc since on some
9233 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9234 # to ld, don't add -lc before -lgcc.
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9236 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9237 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 $RM conftest*
9241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9244 (eval $ac_compile) 2>&5
9245 ac_status=$?
9246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9247 test $ac_status = 0; } 2>conftest.err; then
9248 soname=conftest
9249 lib=conftest
9250 libobjs=conftest.$ac_objext
9251 deplibs=
9252 wl=$lt_prog_compiler_wl
9253 pic_flag=$lt_prog_compiler_pic
9254 compiler_flags=-v
9255 linker_flags=-v
9256 verstring=
9257 output_objdir=.
9258 libname=conftest
9259 lt_save_allow_undefined_flag=$allow_undefined_flag
9260 allow_undefined_flag=
9261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9262 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9263 ac_status=$?
9264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9265 test $ac_status = 0; }
9266 then
9267 lt_cv_archive_cmds_need_lc=no
9268 else
9269 lt_cv_archive_cmds_need_lc=yes
9271 allow_undefined_flag=$lt_save_allow_undefined_flag
9272 else
9273 cat conftest.err 1>&5
9275 $RM conftest*
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9279 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9280 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9282 esac
9285 esac
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9444 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9446 if test "$GCC" = yes; then
9447 case $host_os in
9448 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9449 *) lt_awk_arg="/^libraries:/" ;;
9450 esac
9451 case $host_os in
9452 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9453 *) lt_sed_strip_eq="s,=/,/,g" ;;
9454 esac
9455 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9456 case $lt_search_path_spec in
9457 *\;*)
9458 # if the path contains ";" then we assume it to be the separator
9459 # otherwise default to the standard path separator (i.e. ":") - it is
9460 # assumed that no part of a normal pathname contains ";" but that should
9461 # okay in the real world where ";" in dirpaths is itself problematic.
9462 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9465 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9467 esac
9468 # Ok, now we have the path, separated by spaces, we can step through it
9469 # and add multilib dir if necessary.
9470 lt_tmp_lt_search_path_spec=
9471 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9472 for lt_sys_path in $lt_search_path_spec; do
9473 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9474 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9475 else
9476 test -d "$lt_sys_path" && \
9477 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9479 done
9480 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9481 BEGIN {RS=" "; FS="/|\n";} {
9482 lt_foo="";
9483 lt_count=0;
9484 for (lt_i = NF; lt_i > 0; lt_i--) {
9485 if ($lt_i != "" && $lt_i != ".") {
9486 if ($lt_i == "..") {
9487 lt_count++;
9488 } else {
9489 if (lt_count == 0) {
9490 lt_foo="/" $lt_i lt_foo;
9491 } else {
9492 lt_count--;
9497 if (lt_foo != "") { lt_freq[lt_foo]++; }
9498 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9500 # AWK program above erroneously prepends '/' to C:/dos/paths
9501 # for these hosts.
9502 case $host_os in
9503 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9504 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9505 esac
9506 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9507 else
9508 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9510 library_names_spec=
9511 libname_spec='lib$name'
9512 soname_spec=
9513 shrext_cmds=".so"
9514 postinstall_cmds=
9515 postuninstall_cmds=
9516 finish_cmds=
9517 finish_eval=
9518 shlibpath_var=
9519 shlibpath_overrides_runpath=unknown
9520 version_type=none
9521 dynamic_linker="$host_os ld.so"
9522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9523 need_lib_prefix=unknown
9524 hardcode_into_libs=no
9526 # when you set need_version to no, make sure it does not cause -set_version
9527 # flags to be left without arguments
9528 need_version=unknown
9530 case $host_os in
9531 aix3*)
9532 version_type=linux
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9534 shlibpath_var=LIBPATH
9536 # AIX 3 has no versioning support, so we append a major version to the name.
9537 soname_spec='${libname}${release}${shared_ext}$major'
9540 aix[4-9]*)
9541 version_type=linux
9542 need_lib_prefix=no
9543 need_version=no
9544 hardcode_into_libs=yes
9545 if test "$host_cpu" = ia64; then
9546 # AIX 5 supports IA64
9547 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 else
9550 # With GCC up to 2.95.x, collect2 would create an import file
9551 # for dependence libraries. The import file would start with
9552 # the line `#! .'. This would cause the generated library to
9553 # depend on `.', always an invalid library. This was fixed in
9554 # development snapshots of GCC prior to 3.0.
9555 case $host_os in
9556 aix4 | aix4.[01] | aix4.[01].*)
9557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9558 echo ' yes '
9559 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9561 else
9562 can_build_shared=no
9565 esac
9566 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9567 # soname into executable. Probably we can add versioning support to
9568 # collect2, so additional links can be useful in future.
9569 if test "$aix_use_runtimelinking" = yes; then
9570 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9571 # instead of lib<name>.a to let people know that these are not
9572 # typical AIX shared libraries.
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574 else
9575 # We preserve .a as extension for shared libraries through AIX4.2
9576 # and later when we are not doing run time linking.
9577 library_names_spec='${libname}${release}.a $libname.a'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9580 shlibpath_var=LIBPATH
9584 amigaos*)
9585 case $host_cpu in
9586 powerpc)
9587 # Since July 2007 AmigaOS4 officially supports .so libraries.
9588 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9591 m68k)
9592 library_names_spec='$libname.ixlibrary $libname.a'
9593 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9594 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'
9596 esac
9599 beos*)
9600 library_names_spec='${libname}${shared_ext}'
9601 dynamic_linker="$host_os ld.so"
9602 shlibpath_var=LIBRARY_PATH
9605 bsdi[45]*)
9606 version_type=linux
9607 need_version=no
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609 soname_spec='${libname}${release}${shared_ext}$major'
9610 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9611 shlibpath_var=LD_LIBRARY_PATH
9612 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9613 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9614 # the default ld.so.conf also contains /usr/contrib/lib and
9615 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9616 # libtool to hard-code these into programs
9619 cygwin* | mingw* | pw32* | cegcc*)
9620 version_type=windows
9621 shrext_cmds=".dll"
9622 need_version=no
9623 need_lib_prefix=no
9625 case $GCC,$host_os in
9626 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9627 library_names_spec='$libname.dll.a'
9628 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9629 postinstall_cmds='base_file=`basename \${file}`~
9630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9631 dldir=$destdir/`dirname \$dlpath`~
9632 test -d \$dldir || mkdir -p \$dldir~
9633 $install_prog $dir/$dlname \$dldir/$dlname~
9634 chmod a+x \$dldir/$dlname~
9635 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9636 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9639 dlpath=$dir/\$dldll~
9640 $RM \$dlpath'
9641 shlibpath_overrides_runpath=yes
9643 case $host_os in
9644 cygwin*)
9645 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9648 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9650 mingw* | cegcc*)
9651 # MinGW DLLs use traditional 'lib' prefix
9652 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9654 pw32*)
9655 # pw32 DLLs use 'pw' prefix rather than 'lib'
9656 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9658 esac
9662 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9664 esac
9665 dynamic_linker='Win32 ld.exe'
9666 # FIXME: first we should search . and the directory the executable is in
9667 shlibpath_var=PATH
9670 darwin* | rhapsody*)
9671 dynamic_linker="$host_os dyld"
9672 version_type=darwin
9673 need_lib_prefix=no
9674 need_version=no
9675 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9676 soname_spec='${libname}${release}${major}$shared_ext'
9677 shlibpath_overrides_runpath=yes
9678 shlibpath_var=DYLD_LIBRARY_PATH
9679 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9681 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9682 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9685 dgux*)
9686 version_type=linux
9687 need_lib_prefix=no
9688 need_version=no
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9690 soname_spec='${libname}${release}${shared_ext}$major'
9691 shlibpath_var=LD_LIBRARY_PATH
9694 freebsd* | dragonfly*)
9695 # DragonFly does not have aout. When/if they implement a new
9696 # versioning mechanism, adjust this.
9697 if test -x /usr/bin/objformat; then
9698 objformat=`/usr/bin/objformat`
9699 else
9700 case $host_os in
9701 freebsd[23].*) objformat=aout ;;
9702 *) objformat=elf ;;
9703 esac
9705 version_type=freebsd-$objformat
9706 case $version_type in
9707 freebsd-elf*)
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9709 need_version=no
9710 need_lib_prefix=no
9712 freebsd-*)
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9714 need_version=yes
9716 esac
9717 shlibpath_var=LD_LIBRARY_PATH
9718 case $host_os in
9719 freebsd2.*)
9720 shlibpath_overrides_runpath=yes
9722 freebsd3.[01]* | freebsdelf3.[01]*)
9723 shlibpath_overrides_runpath=yes
9724 hardcode_into_libs=yes
9726 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9727 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9728 shlibpath_overrides_runpath=no
9729 hardcode_into_libs=yes
9731 *) # from 4.6 on, and DragonFly
9732 shlibpath_overrides_runpath=yes
9733 hardcode_into_libs=yes
9735 esac
9738 gnu*)
9739 version_type=linux
9740 need_lib_prefix=no
9741 need_version=no
9742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9743 soname_spec='${libname}${release}${shared_ext}$major'
9744 shlibpath_var=LD_LIBRARY_PATH
9745 hardcode_into_libs=yes
9748 haiku*)
9749 version_type=linux
9750 need_lib_prefix=no
9751 need_version=no
9752 dynamic_linker="$host_os runtime_loader"
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9754 soname_spec='${libname}${release}${shared_ext}$major'
9755 shlibpath_var=LIBRARY_PATH
9756 shlibpath_overrides_runpath=yes
9757 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9758 hardcode_into_libs=yes
9761 hpux9* | hpux10* | hpux11*)
9762 # Give a soname corresponding to the major version so that dld.sl refuses to
9763 # link against other versions.
9764 version_type=sunos
9765 need_lib_prefix=no
9766 need_version=no
9767 case $host_cpu in
9768 ia64*)
9769 shrext_cmds='.so'
9770 hardcode_into_libs=yes
9771 dynamic_linker="$host_os dld.so"
9772 shlibpath_var=LD_LIBRARY_PATH
9773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 if test "X$HPUX_IA64_MODE" = X32; then
9777 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9778 else
9779 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9783 hppa*64*)
9784 shrext_cmds='.sl'
9785 hardcode_into_libs=yes
9786 dynamic_linker="$host_os dld.sl"
9787 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9795 shrext_cmds='.sl'
9796 dynamic_linker="$host_os dld.sl"
9797 shlibpath_var=SHLIB_PATH
9798 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9802 esac
9803 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9804 postinstall_cmds='chmod 555 $lib'
9805 # or fails outright, so override atomically:
9806 install_override_mode=555
9809 interix[3-9]*)
9810 version_type=linux
9811 need_lib_prefix=no
9812 need_version=no
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9814 soname_spec='${libname}${release}${shared_ext}$major'
9815 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9816 shlibpath_var=LD_LIBRARY_PATH
9817 shlibpath_overrides_runpath=no
9818 hardcode_into_libs=yes
9821 irix5* | irix6* | nonstopux*)
9822 case $host_os in
9823 nonstopux*) version_type=nonstopux ;;
9825 if test "$lt_cv_prog_gnu_ld" = yes; then
9826 version_type=linux
9827 else
9828 version_type=irix
9829 fi ;;
9830 esac
9831 need_lib_prefix=no
9832 need_version=no
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9835 case $host_os in
9836 irix5* | nonstopux*)
9837 libsuff= shlibsuff=
9840 case $LD in # libtool.m4 will add one of these switches to LD
9841 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9842 libsuff= shlibsuff= libmagic=32-bit;;
9843 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9844 libsuff=32 shlibsuff=N32 libmagic=N32;;
9845 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9846 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9847 *) libsuff= shlibsuff= libmagic=never-match;;
9848 esac
9850 esac
9851 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9852 shlibpath_overrides_runpath=no
9853 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9854 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9855 hardcode_into_libs=yes
9858 # No shared lib support for Linux oldld, aout, or coff.
9859 linux*oldld* | linux*aout* | linux*coff*)
9860 dynamic_linker=no
9863 # This must be Linux ELF.
9864 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9865 version_type=linux
9866 need_lib_prefix=no
9867 need_version=no
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 soname_spec='${libname}${release}${shared_ext}$major'
9870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9871 shlibpath_var=LD_LIBRARY_PATH
9872 shlibpath_overrides_runpath=no
9874 # Some binutils ld are patched to set DT_RUNPATH
9875 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9876 $as_echo_n "(cached) " >&6
9877 else
9878 lt_cv_shlibpath_overrides_runpath=no
9879 save_LDFLAGS=$LDFLAGS
9880 save_libdir=$libdir
9881 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9882 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9883 if test x$gcc_no_link = xyes; then
9884 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9890 main ()
9894 return 0;
9896 _ACEOF
9897 if ac_fn_c_try_link "$LINENO"; then :
9898 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9899 lt_cv_shlibpath_overrides_runpath=yes
9902 rm -f core conftest.err conftest.$ac_objext \
9903 conftest$ac_exeext conftest.$ac_ext
9904 LDFLAGS=$save_LDFLAGS
9905 libdir=$save_libdir
9909 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9911 # This implies no fast_install, which is unacceptable.
9912 # Some rework will be needed to allow for fast_install
9913 # before this can be enabled.
9914 hardcode_into_libs=yes
9916 # Append ld.so.conf contents to the search path
9917 if test -f /etc/ld.so.conf; then
9918 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' ' '`
9919 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9922 # We used to test for /lib/ld.so.1 and disable shared libraries on
9923 # powerpc, because MkLinux only supported shared libraries with the
9924 # GNU dynamic linker. Since this was broken with cross compilers,
9925 # most powerpc-linux boxes support dynamic linking these days and
9926 # people can always --disable-shared, the test was removed, and we
9927 # assume the GNU/Linux dynamic linker is in use.
9928 dynamic_linker='GNU/Linux ld.so'
9931 netbsd*)
9932 version_type=sunos
9933 need_lib_prefix=no
9934 need_version=no
9935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9938 dynamic_linker='NetBSD (a.out) ld.so'
9939 else
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 dynamic_linker='NetBSD ld.elf_so'
9944 shlibpath_var=LD_LIBRARY_PATH
9945 shlibpath_overrides_runpath=yes
9946 hardcode_into_libs=yes
9949 newsos6)
9950 version_type=linux
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 shlibpath_var=LD_LIBRARY_PATH
9953 shlibpath_overrides_runpath=yes
9956 *nto* | *qnx*)
9957 version_type=qnx
9958 need_lib_prefix=no
9959 need_version=no
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=no
9964 hardcode_into_libs=yes
9965 dynamic_linker='ldqnx.so'
9968 openbsd*)
9969 version_type=sunos
9970 sys_lib_dlsearch_path_spec="/usr/lib"
9971 need_lib_prefix=no
9972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9973 case $host_os in
9974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9975 *) need_version=no ;;
9976 esac
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9979 shlibpath_var=LD_LIBRARY_PATH
9980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9981 case $host_os in
9982 openbsd2.[89] | openbsd2.[89].*)
9983 shlibpath_overrides_runpath=no
9986 shlibpath_overrides_runpath=yes
9988 esac
9989 else
9990 shlibpath_overrides_runpath=yes
9994 os2*)
9995 libname_spec='$name'
9996 shrext_cmds=".dll"
9997 need_lib_prefix=no
9998 library_names_spec='$libname${shared_ext} $libname.a'
9999 dynamic_linker='OS/2 ld.exe'
10000 shlibpath_var=LIBPATH
10003 osf3* | osf4* | osf5*)
10004 version_type=osf
10005 need_lib_prefix=no
10006 need_version=no
10007 soname_spec='${libname}${release}${shared_ext}$major'
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 shlibpath_var=LD_LIBRARY_PATH
10010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10014 rdos*)
10015 dynamic_linker=no
10018 solaris*)
10019 version_type=linux
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 shlibpath_overrides_runpath=yes
10026 hardcode_into_libs=yes
10027 # ldd complains unless libraries are executable
10028 postinstall_cmds='chmod +x $lib'
10031 sunos4*)
10032 version_type=sunos
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10035 shlibpath_var=LD_LIBRARY_PATH
10036 shlibpath_overrides_runpath=yes
10037 if test "$with_gnu_ld" = yes; then
10038 need_lib_prefix=no
10040 need_version=yes
10043 sysv4 | sysv4.3*)
10044 version_type=linux
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 shlibpath_var=LD_LIBRARY_PATH
10048 case $host_vendor in
10049 sni)
10050 shlibpath_overrides_runpath=no
10051 need_lib_prefix=no
10052 runpath_var=LD_RUN_PATH
10054 siemens)
10055 need_lib_prefix=no
10057 motorola)
10058 need_lib_prefix=no
10059 need_version=no
10060 shlibpath_overrides_runpath=no
10061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10063 esac
10066 sysv4*MP*)
10067 if test -d /usr/nec ;then
10068 version_type=linux
10069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10070 soname_spec='$libname${shared_ext}.$major'
10071 shlibpath_var=LD_LIBRARY_PATH
10075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10076 version_type=freebsd-elf
10077 need_lib_prefix=no
10078 need_version=no
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 shlibpath_var=LD_LIBRARY_PATH
10082 shlibpath_overrides_runpath=yes
10083 hardcode_into_libs=yes
10084 if test "$with_gnu_ld" = yes; then
10085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10086 else
10087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10088 case $host_os in
10089 sco3.2v5*)
10090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10092 esac
10094 sys_lib_dlsearch_path_spec='/usr/lib'
10097 tpf*)
10098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10099 version_type=linux
10100 need_lib_prefix=no
10101 need_version=no
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103 shlibpath_var=LD_LIBRARY_PATH
10104 shlibpath_overrides_runpath=no
10105 hardcode_into_libs=yes
10108 uts4*)
10109 version_type=linux
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 shlibpath_var=LD_LIBRARY_PATH
10116 dynamic_linker=no
10118 esac
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10120 $as_echo "$dynamic_linker" >&6; }
10121 test "$dynamic_linker" = no && can_build_shared=no
10123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10124 if test "$GCC" = yes; then
10125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10128 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10129 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10131 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10132 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10227 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10228 hardcode_action=
10229 if test -n "$hardcode_libdir_flag_spec" ||
10230 test -n "$runpath_var" ||
10231 test "X$hardcode_automatic" = "Xyes" ; then
10233 # We can hardcode non-existent directories.
10234 if test "$hardcode_direct" != no &&
10235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10236 # have to relink, otherwise we might link with an installed library
10237 # when we should be linking with a yet-to-be-installed one
10238 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10239 test "$hardcode_minus_L" != no; then
10240 # Linking always hardcodes the temporary library directory.
10241 hardcode_action=relink
10242 else
10243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10244 hardcode_action=immediate
10246 else
10247 # We cannot hardcode anything, or else we can only hardcode existing
10248 # directories.
10249 hardcode_action=unsupported
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10252 $as_echo "$hardcode_action" >&6; }
10254 if test "$hardcode_action" = relink ||
10255 test "$inherit_rpath" = yes; then
10256 # Fast installation is not supported
10257 enable_fast_install=no
10258 elif test "$shlibpath_overrides_runpath" = yes ||
10259 test "$enable_shared" = no; then
10260 # Fast installation is not necessary
10261 enable_fast_install=needless
10269 if test "x$enable_dlopen" != xyes; then
10270 enable_dlopen=unknown
10271 enable_dlopen_self=unknown
10272 enable_dlopen_self_static=unknown
10273 else
10274 lt_cv_dlopen=no
10275 lt_cv_dlopen_libs=
10277 case $host_os in
10278 beos*)
10279 lt_cv_dlopen="load_add_on"
10280 lt_cv_dlopen_libs=
10281 lt_cv_dlopen_self=yes
10284 mingw* | pw32* | cegcc*)
10285 lt_cv_dlopen="LoadLibrary"
10286 lt_cv_dlopen_libs=
10289 cygwin*)
10290 lt_cv_dlopen="dlopen"
10291 lt_cv_dlopen_libs=
10294 darwin*)
10295 # if libdl is installed we need to link against it
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10297 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10298 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 ac_check_lib_save_LIBS=$LIBS
10302 LIBS="-ldl $LIBS"
10303 if test x$gcc_no_link = xyes; then
10304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307 /* end confdefs.h. */
10309 /* Override any GCC internal prototype to avoid an error.
10310 Use char because int might match the return type of a GCC
10311 builtin and then its argument prototype would still apply. */
10312 #ifdef __cplusplus
10313 extern "C"
10314 #endif
10315 char dlopen ();
10317 main ()
10319 return dlopen ();
10321 return 0;
10323 _ACEOF
10324 if ac_fn_c_try_link "$LINENO"; then :
10325 ac_cv_lib_dl_dlopen=yes
10326 else
10327 ac_cv_lib_dl_dlopen=no
10329 rm -f core conftest.err conftest.$ac_objext \
10330 conftest$ac_exeext conftest.$ac_ext
10331 LIBS=$ac_check_lib_save_LIBS
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10334 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10335 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10336 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10337 else
10339 lt_cv_dlopen="dyld"
10340 lt_cv_dlopen_libs=
10341 lt_cv_dlopen_self=yes
10348 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10349 if test "x$ac_cv_func_shl_load" = x""yes; then :
10350 lt_cv_dlopen="shl_load"
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10353 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10354 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 ac_check_lib_save_LIBS=$LIBS
10358 LIBS="-ldld $LIBS"
10359 if test x$gcc_no_link = xyes; then
10360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10365 /* Override any GCC internal prototype to avoid an error.
10366 Use char because int might match the return type of a GCC
10367 builtin and then its argument prototype would still apply. */
10368 #ifdef __cplusplus
10369 extern "C"
10370 #endif
10371 char shl_load ();
10373 main ()
10375 return shl_load ();
10377 return 0;
10379 _ACEOF
10380 if ac_fn_c_try_link "$LINENO"; then :
10381 ac_cv_lib_dld_shl_load=yes
10382 else
10383 ac_cv_lib_dld_shl_load=no
10385 rm -f core conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext conftest.$ac_ext
10387 LIBS=$ac_check_lib_save_LIBS
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10390 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10391 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10392 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10393 else
10394 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10395 if test "x$ac_cv_func_dlopen" = x""yes; then :
10396 lt_cv_dlopen="dlopen"
10397 else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10399 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10400 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10401 $as_echo_n "(cached) " >&6
10402 else
10403 ac_check_lib_save_LIBS=$LIBS
10404 LIBS="-ldl $LIBS"
10405 if test x$gcc_no_link = xyes; then
10406 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10411 /* Override any GCC internal prototype to avoid an error.
10412 Use char because int might match the return type of a GCC
10413 builtin and then its argument prototype would still apply. */
10414 #ifdef __cplusplus
10415 extern "C"
10416 #endif
10417 char dlopen ();
10419 main ()
10421 return dlopen ();
10423 return 0;
10425 _ACEOF
10426 if ac_fn_c_try_link "$LINENO"; then :
10427 ac_cv_lib_dl_dlopen=yes
10428 else
10429 ac_cv_lib_dl_dlopen=no
10431 rm -f core conftest.err conftest.$ac_objext \
10432 conftest$ac_exeext conftest.$ac_ext
10433 LIBS=$ac_check_lib_save_LIBS
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10436 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10437 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10438 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10439 else
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10441 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10442 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 ac_check_lib_save_LIBS=$LIBS
10446 LIBS="-lsvld $LIBS"
10447 if test x$gcc_no_link = xyes; then
10448 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10453 /* Override any GCC internal prototype to avoid an error.
10454 Use char because int might match the return type of a GCC
10455 builtin and then its argument prototype would still apply. */
10456 #ifdef __cplusplus
10457 extern "C"
10458 #endif
10459 char dlopen ();
10461 main ()
10463 return dlopen ();
10465 return 0;
10467 _ACEOF
10468 if ac_fn_c_try_link "$LINENO"; then :
10469 ac_cv_lib_svld_dlopen=yes
10470 else
10471 ac_cv_lib_svld_dlopen=no
10473 rm -f core conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10478 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10479 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10481 else
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10483 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10484 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 ac_check_lib_save_LIBS=$LIBS
10488 LIBS="-ldld $LIBS"
10489 if test x$gcc_no_link = xyes; then
10490 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10495 /* Override any GCC internal prototype to avoid an error.
10496 Use char because int might match the return type of a GCC
10497 builtin and then its argument prototype would still apply. */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 char dld_link ();
10503 main ()
10505 return dld_link ();
10507 return 0;
10509 _ACEOF
10510 if ac_fn_c_try_link "$LINENO"; then :
10511 ac_cv_lib_dld_dld_link=yes
10512 else
10513 ac_cv_lib_dld_dld_link=no
10515 rm -f core conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10517 LIBS=$ac_check_lib_save_LIBS
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10520 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10521 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10522 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10541 esac
10543 if test "x$lt_cv_dlopen" != xno; then
10544 enable_dlopen=yes
10545 else
10546 enable_dlopen=no
10549 case $lt_cv_dlopen in
10550 dlopen)
10551 save_CPPFLAGS="$CPPFLAGS"
10552 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10554 save_LDFLAGS="$LDFLAGS"
10555 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10557 save_LIBS="$LIBS"
10558 LIBS="$lt_cv_dlopen_libs $LIBS"
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10561 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10562 if test "${lt_cv_dlopen_self+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
10564 else
10565 if test "$cross_compiling" = yes; then :
10566 lt_cv_dlopen_self=cross
10567 else
10568 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10569 lt_status=$lt_dlunknown
10570 cat > conftest.$ac_ext <<_LT_EOF
10571 #line 10571 "configure"
10572 #include "confdefs.h"
10574 #if HAVE_DLFCN_H
10575 #include <dlfcn.h>
10576 #endif
10578 #include <stdio.h>
10580 #ifdef RTLD_GLOBAL
10581 # define LT_DLGLOBAL RTLD_GLOBAL
10582 #else
10583 # ifdef DL_GLOBAL
10584 # define LT_DLGLOBAL DL_GLOBAL
10585 # else
10586 # define LT_DLGLOBAL 0
10587 # endif
10588 #endif
10590 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10591 find out it does not work in some platform. */
10592 #ifndef LT_DLLAZY_OR_NOW
10593 # ifdef RTLD_LAZY
10594 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10595 # else
10596 # ifdef DL_LAZY
10597 # define LT_DLLAZY_OR_NOW DL_LAZY
10598 # else
10599 # ifdef RTLD_NOW
10600 # define LT_DLLAZY_OR_NOW RTLD_NOW
10601 # else
10602 # ifdef DL_NOW
10603 # define LT_DLLAZY_OR_NOW DL_NOW
10604 # else
10605 # define LT_DLLAZY_OR_NOW 0
10606 # endif
10607 # endif
10608 # endif
10609 # endif
10610 #endif
10612 /* When -fvisbility=hidden is used, assume the code has been annotated
10613 correspondingly for the symbols needed. */
10614 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10615 void fnord () __attribute__((visibility("default")));
10616 #endif
10618 void fnord () { int i=42; }
10619 int main ()
10621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10622 int status = $lt_dlunknown;
10624 if (self)
10626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10627 else
10629 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10630 else puts (dlerror ());
10632 /* dlclose (self); */
10634 else
10635 puts (dlerror ());
10637 return status;
10639 _LT_EOF
10640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10641 (eval $ac_link) 2>&5
10642 ac_status=$?
10643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10644 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10645 (./conftest; exit; ) >&5 2>/dev/null
10646 lt_status=$?
10647 case x$lt_status in
10648 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10649 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10650 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10651 esac
10652 else :
10653 # compilation failed
10654 lt_cv_dlopen_self=no
10657 rm -fr conftest*
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10662 $as_echo "$lt_cv_dlopen_self" >&6; }
10664 if test "x$lt_cv_dlopen_self" = xyes; then
10665 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10667 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10668 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 if test "$cross_compiling" = yes; then :
10672 lt_cv_dlopen_self_static=cross
10673 else
10674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10675 lt_status=$lt_dlunknown
10676 cat > conftest.$ac_ext <<_LT_EOF
10677 #line 10677 "configure"
10678 #include "confdefs.h"
10680 #if HAVE_DLFCN_H
10681 #include <dlfcn.h>
10682 #endif
10684 #include <stdio.h>
10686 #ifdef RTLD_GLOBAL
10687 # define LT_DLGLOBAL RTLD_GLOBAL
10688 #else
10689 # ifdef DL_GLOBAL
10690 # define LT_DLGLOBAL DL_GLOBAL
10691 # else
10692 # define LT_DLGLOBAL 0
10693 # endif
10694 #endif
10696 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10697 find out it does not work in some platform. */
10698 #ifndef LT_DLLAZY_OR_NOW
10699 # ifdef RTLD_LAZY
10700 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10701 # else
10702 # ifdef DL_LAZY
10703 # define LT_DLLAZY_OR_NOW DL_LAZY
10704 # else
10705 # ifdef RTLD_NOW
10706 # define LT_DLLAZY_OR_NOW RTLD_NOW
10707 # else
10708 # ifdef DL_NOW
10709 # define LT_DLLAZY_OR_NOW DL_NOW
10710 # else
10711 # define LT_DLLAZY_OR_NOW 0
10712 # endif
10713 # endif
10714 # endif
10715 # endif
10716 #endif
10718 /* When -fvisbility=hidden is used, assume the code has been annotated
10719 correspondingly for the symbols needed. */
10720 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10721 void fnord () __attribute__((visibility("default")));
10722 #endif
10724 void fnord () { int i=42; }
10725 int main ()
10727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10728 int status = $lt_dlunknown;
10730 if (self)
10732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10733 else
10735 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10736 else puts (dlerror ());
10738 /* dlclose (self); */
10740 else
10741 puts (dlerror ());
10743 return status;
10745 _LT_EOF
10746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10747 (eval $ac_link) 2>&5
10748 ac_status=$?
10749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10750 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10751 (./conftest; exit; ) >&5 2>/dev/null
10752 lt_status=$?
10753 case x$lt_status in
10754 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10755 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10756 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10757 esac
10758 else :
10759 # compilation failed
10760 lt_cv_dlopen_self_static=no
10763 rm -fr conftest*
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10768 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10771 CPPFLAGS="$save_CPPFLAGS"
10772 LDFLAGS="$save_LDFLAGS"
10773 LIBS="$save_LIBS"
10775 esac
10777 case $lt_cv_dlopen_self in
10778 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10779 *) enable_dlopen_self=unknown ;;
10780 esac
10782 case $lt_cv_dlopen_self_static in
10783 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10784 *) enable_dlopen_self_static=unknown ;;
10785 esac
10804 striplib=
10805 old_striplib=
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10807 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10808 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10809 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10810 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10812 $as_echo "yes" >&6; }
10813 else
10814 # FIXME - insert some real tests, host_os isn't really good enough
10815 case $host_os in
10816 darwin*)
10817 if test -n "$STRIP" ; then
10818 striplib="$STRIP -x"
10819 old_striplib="$STRIP -S"
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10821 $as_echo "yes" >&6; }
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10831 esac
10845 # Report which library types will actually be built
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10847 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10849 $as_echo "$can_build_shared" >&6; }
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10852 $as_echo_n "checking whether to build shared libraries... " >&6; }
10853 test "$can_build_shared" = "no" && enable_shared=no
10855 # On AIX, shared libraries and static libraries use the same namespace, and
10856 # are all built from PIC.
10857 case $host_os in
10858 aix3*)
10859 test "$enable_shared" = yes && enable_static=no
10860 if test -n "$RANLIB"; then
10861 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10862 postinstall_cmds='$RANLIB $lib'
10866 aix[4-9]*)
10867 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10868 test "$enable_shared" = yes && enable_static=no
10871 esac
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10873 $as_echo "$enable_shared" >&6; }
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10876 $as_echo_n "checking whether to build static libraries... " >&6; }
10877 # Make sure either enable_shared or enable_static is yes.
10878 test "$enable_shared" = yes || enable_static=yes
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10880 $as_echo "$enable_static" >&6; }
10886 ac_ext=c
10887 ac_cpp='$CPP $CPPFLAGS'
10888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10892 CC="$lt_save_CC"
10906 ac_config_commands="$ac_config_commands libtool"
10911 # Only expand once:
10917 case $host in
10918 *-cygwin* | *-mingw*)
10919 # 'host' will be top-level target in the case of a target lib,
10920 # we must compare to with_cross_host to decide if this is a native
10921 # or cross-compiler and select where to install dlls appropriately.
10922 if test -n "$with_cross_host" &&
10923 test x"$with_cross_host" != x"no"; then
10924 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10925 else
10926 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10930 lt_host_flags=
10932 esac
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10941 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10942 # Check whether --enable-maintainer-mode was given.
10943 if test "${enable_maintainer_mode+set}" = set; then :
10944 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10945 else
10946 USE_MAINTAINER_MODE=no
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10950 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10951 if test $USE_MAINTAINER_MODE = yes; then
10952 MAINTAINER_MODE_TRUE=
10953 MAINTAINER_MODE_FALSE='#'
10954 else
10955 MAINTAINER_MODE_TRUE='#'
10956 MAINTAINER_MODE_FALSE=
10959 MAINT=$MAINTAINER_MODE_TRUE
10963 ac_ext=c
10964 ac_cpp='$CPP $CPPFLAGS'
10965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10969 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
10970 # We must force CC to /not/ be precious variables; otherwise
10971 # the wrong, non-multilib-adjusted value will be used in multilibs.
10972 # As a side effect, we have to subst CFLAGS ourselves.
10976 ac_ext=c
10977 ac_cpp='$CPP $CPPFLAGS'
10978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10981 if test -n "$ac_tool_prefix"; then
10982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985 $as_echo_n "checking for $ac_word... " >&6; }
10986 if test "${ac_cv_prog_CC+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 if test -n "$CC"; then
10990 ac_cv_prog_CC="$CC" # Let the user override the test.
10991 else
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $PATH
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_exec_ext in '' $ac_executable_extensions; do
10998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 break 2
11003 done
11004 done
11005 IFS=$as_save_IFS
11009 CC=$ac_cv_prog_CC
11010 if test -n "$CC"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11012 $as_echo "$CC" >&6; }
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015 $as_echo "no" >&6; }
11020 if test -z "$ac_cv_prog_CC"; then
11021 ac_ct_CC=$CC
11022 # Extract the first word of "gcc", so it can be a program name with args.
11023 set dummy gcc; ac_word=$2
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025 $as_echo_n "checking for $ac_word... " >&6; }
11026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 if test -n "$ac_ct_CC"; then
11030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11031 else
11032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033 for as_dir in $PATH
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11039 ac_cv_prog_ac_ct_CC="gcc"
11040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11043 done
11044 done
11045 IFS=$as_save_IFS
11049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11050 if test -n "$ac_ct_CC"; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11052 $as_echo "$ac_ct_CC" >&6; }
11053 else
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055 $as_echo "no" >&6; }
11058 if test "x$ac_ct_CC" = x; then
11059 CC=""
11060 else
11061 case $cross_compiling:$ac_tool_warned in
11062 yes:)
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11065 ac_tool_warned=yes ;;
11066 esac
11067 CC=$ac_ct_CC
11069 else
11070 CC="$ac_cv_prog_CC"
11073 if test -z "$CC"; then
11074 if test -n "$ac_tool_prefix"; then
11075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11076 set dummy ${ac_tool_prefix}cc; ac_word=$2
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078 $as_echo_n "checking for $ac_word... " >&6; }
11079 if test "${ac_cv_prog_CC+set}" = set; then :
11080 $as_echo_n "(cached) " >&6
11081 else
11082 if test -n "$CC"; then
11083 ac_cv_prog_CC="$CC" # Let the user override the test.
11084 else
11085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086 for as_dir in $PATH
11088 IFS=$as_save_IFS
11089 test -z "$as_dir" && as_dir=.
11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11092 ac_cv_prog_CC="${ac_tool_prefix}cc"
11093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11094 break 2
11096 done
11097 done
11098 IFS=$as_save_IFS
11102 CC=$ac_cv_prog_CC
11103 if test -n "$CC"; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11105 $as_echo "$CC" >&6; }
11106 else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11114 if test -z "$CC"; then
11115 # Extract the first word of "cc", so it can be a program name with args.
11116 set dummy cc; ac_word=$2
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11118 $as_echo_n "checking for $ac_word... " >&6; }
11119 if test "${ac_cv_prog_CC+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
11121 else
11122 if test -n "$CC"; then
11123 ac_cv_prog_CC="$CC" # Let the user override the test.
11124 else
11125 ac_prog_rejected=no
11126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127 for as_dir in $PATH
11129 IFS=$as_save_IFS
11130 test -z "$as_dir" && as_dir=.
11131 for ac_exec_ext in '' $ac_executable_extensions; do
11132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11134 ac_prog_rejected=yes
11135 continue
11137 ac_cv_prog_CC="cc"
11138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11139 break 2
11141 done
11142 done
11143 IFS=$as_save_IFS
11145 if test $ac_prog_rejected = yes; then
11146 # We found a bogon in the path, so make sure we never use it.
11147 set dummy $ac_cv_prog_CC
11148 shift
11149 if test $# != 0; then
11150 # We chose a different compiler from the bogus one.
11151 # However, it has the same basename, so the bogon will be chosen
11152 # first if we set CC to just the basename; use the full file name.
11153 shift
11154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11159 CC=$ac_cv_prog_CC
11160 if test -n "$CC"; then
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11162 $as_echo "$CC" >&6; }
11163 else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 $as_echo "no" >&6; }
11170 if test -z "$CC"; then
11171 if test -n "$ac_tool_prefix"; then
11172 for ac_prog in cl.exe
11174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177 $as_echo_n "checking for $ac_word... " >&6; }
11178 if test "${ac_cv_prog_CC+set}" = set; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 if test -n "$CC"; then
11182 ac_cv_prog_CC="$CC" # Let the user override the test.
11183 else
11184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11187 IFS=$as_save_IFS
11188 test -z "$as_dir" && as_dir=.
11189 for ac_exec_ext in '' $ac_executable_extensions; do
11190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 break 2
11195 done
11196 done
11197 IFS=$as_save_IFS
11201 CC=$ac_cv_prog_CC
11202 if test -n "$CC"; then
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11204 $as_echo "$CC" >&6; }
11205 else
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207 $as_echo "no" >&6; }
11211 test -n "$CC" && break
11212 done
11214 if test -z "$CC"; then
11215 ac_ct_CC=$CC
11216 for ac_prog in cl.exe
11218 # Extract the first word of "$ac_prog", so it can be a program name with args.
11219 set dummy $ac_prog; ac_word=$2
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221 $as_echo_n "checking for $ac_word... " >&6; }
11222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 if test -n "$ac_ct_CC"; then
11226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11227 else
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229 for as_dir in $PATH
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11235 ac_cv_prog_ac_ct_CC="$ac_prog"
11236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 break 2
11239 done
11240 done
11241 IFS=$as_save_IFS
11245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11246 if test -n "$ac_ct_CC"; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11248 $as_echo "$ac_ct_CC" >&6; }
11249 else
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; }
11255 test -n "$ac_ct_CC" && break
11256 done
11258 if test "x$ac_ct_CC" = x; then
11259 CC=""
11260 else
11261 case $cross_compiling:$ac_tool_warned in
11262 yes:)
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11265 ac_tool_warned=yes ;;
11266 esac
11267 CC=$ac_ct_CC
11274 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11276 as_fn_error "no acceptable C compiler found in \$PATH
11277 See \`config.log' for more details." "$LINENO" 5; }
11279 # Provide some information about the compiler.
11280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11281 set X $ac_compile
11282 ac_compiler=$2
11283 for ac_option in --version -v -V -qversion; do
11284 { { ac_try="$ac_compiler $ac_option >&5"
11285 case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11288 esac
11289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11290 $as_echo "$ac_try_echo"; } >&5
11291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11292 ac_status=$?
11293 if test -s conftest.err; then
11294 sed '10a\
11295 ... rest of stderr output deleted ...
11296 10q' conftest.err >conftest.er1
11297 cat conftest.er1 >&5
11298 rm -f conftest.er1 conftest.err
11300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11301 test $ac_status = 0; }
11302 done
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11305 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11306 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11313 main ()
11315 #ifndef __GNUC__
11316 choke me
11317 #endif
11320 return 0;
11322 _ACEOF
11323 if ac_fn_c_try_compile "$LINENO"; then :
11324 ac_compiler_gnu=yes
11325 else
11326 ac_compiler_gnu=no
11328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11329 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11333 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11334 if test $ac_compiler_gnu = yes; then
11335 GCC=yes
11336 else
11337 GCC=
11339 ac_test_CFLAGS=${CFLAGS+set}
11340 ac_save_CFLAGS=$CFLAGS
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11342 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11343 if test "${ac_cv_prog_cc_g+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11346 ac_save_c_werror_flag=$ac_c_werror_flag
11347 ac_c_werror_flag=yes
11348 ac_cv_prog_cc_g=no
11349 CFLAGS="-g"
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h. */
11354 main ()
11358 return 0;
11360 _ACEOF
11361 if ac_fn_c_try_compile "$LINENO"; then :
11362 ac_cv_prog_cc_g=yes
11363 else
11364 CFLAGS=""
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11369 main ()
11373 return 0;
11375 _ACEOF
11376 if ac_fn_c_try_compile "$LINENO"; then :
11378 else
11379 ac_c_werror_flag=$ac_save_c_werror_flag
11380 CFLAGS="-g"
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382 /* end confdefs.h. */
11385 main ()
11389 return 0;
11391 _ACEOF
11392 if ac_fn_c_try_compile "$LINENO"; then :
11393 ac_cv_prog_cc_g=yes
11395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400 ac_c_werror_flag=$ac_save_c_werror_flag
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11403 $as_echo "$ac_cv_prog_cc_g" >&6; }
11404 if test "$ac_test_CFLAGS" = set; then
11405 CFLAGS=$ac_save_CFLAGS
11406 elif test $ac_cv_prog_cc_g = yes; then
11407 if test "$GCC" = yes; then
11408 CFLAGS="-g -O2"
11409 else
11410 CFLAGS="-g"
11412 else
11413 if test "$GCC" = yes; then
11414 CFLAGS="-O2"
11415 else
11416 CFLAGS=
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11420 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11421 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
11423 else
11424 ac_cv_prog_cc_c89=no
11425 ac_save_CC=$CC
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11428 #include <stdarg.h>
11429 #include <stdio.h>
11430 #include <sys/types.h>
11431 #include <sys/stat.h>
11432 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11433 struct buf { int x; };
11434 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11435 static char *e (p, i)
11436 char **p;
11437 int i;
11439 return p[i];
11441 static char *f (char * (*g) (char **, int), char **p, ...)
11443 char *s;
11444 va_list v;
11445 va_start (v,p);
11446 s = g (p, va_arg (v,int));
11447 va_end (v);
11448 return s;
11451 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11452 function prototypes and stuff, but not '\xHH' hex character constants.
11453 These don't provoke an error unfortunately, instead are silently treated
11454 as 'x'. The following induces an error, until -std is added to get
11455 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11456 array size at least. It's necessary to write '\x00'==0 to get something
11457 that's true only with -std. */
11458 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11460 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11461 inside strings and character constants. */
11462 #define FOO(x) 'x'
11463 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11465 int test (int i, double x);
11466 struct s1 {int (*f) (int a);};
11467 struct s2 {int (*f) (double a);};
11468 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11469 int argc;
11470 char **argv;
11472 main ()
11474 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11476 return 0;
11478 _ACEOF
11479 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11480 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11482 CC="$ac_save_CC $ac_arg"
11483 if ac_fn_c_try_compile "$LINENO"; then :
11484 ac_cv_prog_cc_c89=$ac_arg
11486 rm -f core conftest.err conftest.$ac_objext
11487 test "x$ac_cv_prog_cc_c89" != "xno" && break
11488 done
11489 rm -f conftest.$ac_ext
11490 CC=$ac_save_CC
11493 # AC_CACHE_VAL
11494 case "x$ac_cv_prog_cc_c89" in
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11497 $as_echo "none needed" >&6; } ;;
11498 xno)
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11500 $as_echo "unsupported" >&6; } ;;
11502 CC="$CC $ac_cv_prog_cc_c89"
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11504 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11505 esac
11506 if test "x$ac_cv_prog_cc_c89" != xno; then :
11510 ac_ext=c
11511 ac_cpp='$CPP $CPPFLAGS'
11512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11516 depcc="$CC" am_compiler_list=
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11519 $as_echo_n "checking dependency style of $depcc... " >&6; }
11520 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11521 $as_echo_n "(cached) " >&6
11522 else
11523 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11524 # We make a subdir and do the tests there. Otherwise we can end up
11525 # making bogus files that we don't know about and never remove. For
11526 # instance it was reported that on HP-UX the gcc test will end up
11527 # making a dummy file named `D' -- because `-MD' means `put the output
11528 # in D'.
11529 rm -rf conftest.dir
11530 mkdir conftest.dir
11531 # Copy depcomp to subdir because otherwise we won't find it if we're
11532 # using a relative directory.
11533 cp "$am_depcomp" conftest.dir
11534 cd conftest.dir
11535 # We will build objects and dependencies in a subdirectory because
11536 # it helps to detect inapplicable dependency modes. For instance
11537 # both Tru64's cc and ICC support -MD to output dependencies as a
11538 # side effect of compilation, but ICC will put the dependencies in
11539 # the current directory while Tru64 will put them in the object
11540 # directory.
11541 mkdir sub
11543 am_cv_CC_dependencies_compiler_type=none
11544 if test "$am_compiler_list" = ""; then
11545 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11547 am__universal=false
11548 case " $depcc " in #(
11549 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11550 esac
11552 for depmode in $am_compiler_list; do
11553 # Setup a source with many dependencies, because some compilers
11554 # like to wrap large dependency lists on column 80 (with \), and
11555 # we should not choose a depcomp mode which is confused by this.
11557 # We need to recreate these files for each test, as the compiler may
11558 # overwrite some of them when testing with obscure command lines.
11559 # This happens at least with the AIX C compiler.
11560 : > sub/conftest.c
11561 for i in 1 2 3 4 5 6; do
11562 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11563 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11564 # Solaris 8's {/usr,}/bin/sh.
11565 touch sub/conftst$i.h
11566 done
11567 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11569 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11570 # mode. It turns out that the SunPro C++ compiler does not properly
11571 # handle `-M -o', and we need to detect this. Also, some Intel
11572 # versions had trouble with output in subdirs
11573 am__obj=sub/conftest.${OBJEXT-o}
11574 am__minus_obj="-o $am__obj"
11575 case $depmode in
11576 gcc)
11577 # This depmode causes a compiler race in universal mode.
11578 test "$am__universal" = false || continue
11580 nosideeffect)
11581 # after this tag, mechanisms are not by side-effect, so they'll
11582 # only be used when explicitly requested
11583 if test "x$enable_dependency_tracking" = xyes; then
11584 continue
11585 else
11586 break
11589 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11590 # This compiler won't grok `-c -o', but also, the minuso test has
11591 # not run yet. These depmodes are late enough in the game, and
11592 # so weak that their functioning should not be impacted.
11593 am__obj=conftest.${OBJEXT-o}
11594 am__minus_obj=
11596 none) break ;;
11597 esac
11598 if depmode=$depmode \
11599 source=sub/conftest.c object=$am__obj \
11600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11601 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11602 >/dev/null 2>conftest.err &&
11603 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11605 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11607 # icc doesn't choke on unknown options, it will just issue warnings
11608 # or remarks (even with -Werror). So we grep stderr for any message
11609 # that says an option was ignored or not supported.
11610 # When given -MP, icc 7.0 and 7.1 complain thusly:
11611 # icc: Command line warning: ignoring option '-M'; no argument required
11612 # The diagnosis changed in icc 8.0:
11613 # icc: Command line remark: option '-MP' not supported
11614 if (grep 'ignoring option' conftest.err ||
11615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11616 am_cv_CC_dependencies_compiler_type=$depmode
11617 break
11620 done
11622 cd ..
11623 rm -rf conftest.dir
11624 else
11625 am_cv_CC_dependencies_compiler_type=none
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11630 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11631 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11634 test "x$enable_dependency_tracking" != xno \
11635 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11636 am__fastdepCC_TRUE=
11637 am__fastdepCC_FALSE='#'
11638 else
11639 am__fastdepCC_TRUE='#'
11640 am__fastdepCC_FALSE=
11648 if test "x$CC" != xcc; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11650 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11651 else
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11653 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11655 set dummy $CC; ac_cc=`$as_echo "$2" |
11656 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11657 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11664 main ()
11668 return 0;
11670 _ACEOF
11671 # Make sure it works both with $CC and with simple cc.
11672 # We do the test twice because some compilers refuse to overwrite an
11673 # existing .o file with -o, though they will create one.
11674 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11675 rm -f conftest2.*
11676 if { { case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11679 esac
11680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11681 $as_echo "$ac_try_echo"; } >&5
11682 (eval "$ac_try") 2>&5
11683 ac_status=$?
11684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685 test $ac_status = 0; } &&
11686 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689 esac
11690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11691 $as_echo "$ac_try_echo"; } >&5
11692 (eval "$ac_try") 2>&5
11693 ac_status=$?
11694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695 test $ac_status = 0; };
11696 then
11697 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11698 if test "x$CC" != xcc; then
11699 # Test first that cc exists at all.
11700 if { ac_try='cc -c conftest.$ac_ext >&5'
11701 { { case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704 esac
11705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11706 $as_echo "$ac_try_echo"; } >&5
11707 (eval "$ac_try") 2>&5
11708 ac_status=$?
11709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11710 test $ac_status = 0; }; }; then
11711 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11712 rm -f conftest2.*
11713 if { { case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11716 esac
11717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11718 $as_echo "$ac_try_echo"; } >&5
11719 (eval "$ac_try") 2>&5
11720 ac_status=$?
11721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11722 test $ac_status = 0; } &&
11723 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11726 esac
11727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11728 $as_echo "$ac_try_echo"; } >&5
11729 (eval "$ac_try") 2>&5
11730 ac_status=$?
11731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11732 test $ac_status = 0; };
11733 then
11734 # cc works too.
11736 else
11737 # cc exists but doesn't like -o.
11738 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11742 else
11743 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11745 rm -f core conftest*
11748 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11750 $as_echo "yes" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11755 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11759 # FIXME: we rely on the cache variable name because
11760 # there is no other way.
11761 set dummy $CC
11762 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11763 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11764 if test "$am_t" != yes; then
11765 # Losing compiler, so override with the script.
11766 # FIXME: It is wrong to rewrite CC.
11767 # But if we don't then we get into trouble of one sort or another.
11768 # A longer-term fix would be to have automake use am__CC in this case,
11769 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11770 CC="$am_aux_dir/compile $CC"
11775 if test "x$GCC" != "xyes"; then
11776 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
11778 ac_ext=c
11779 ac_cpp='$CPP $CPPFLAGS'
11780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11784 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11785 # On Suns, sometimes $CPP names a directory.
11786 if test -n "$CPP" && test -d "$CPP"; then
11787 CPP=
11789 if test -z "$CPP"; then
11790 if test "${ac_cv_prog_CPP+set}" = set; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 # Double quotes because CPP needs to be expanded
11794 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11796 ac_preproc_ok=false
11797 for ac_c_preproc_warn_flag in '' yes
11799 # Use a header file that comes with gcc, so configuring glibc
11800 # with a fresh cross-compiler works.
11801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11802 # <limits.h> exists even on freestanding compilers.
11803 # On the NeXT, cc -E runs the code through the compiler's parser,
11804 # not just through cpp. "Syntax error" is here to catch this case.
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11807 #ifdef __STDC__
11808 # include <limits.h>
11809 #else
11810 # include <assert.h>
11811 #endif
11812 Syntax error
11813 _ACEOF
11814 if ac_fn_c_try_cpp "$LINENO"; then :
11816 else
11817 # Broken: fails on valid input.
11818 continue
11820 rm -f conftest.err conftest.$ac_ext
11822 # OK, works on sane cases. Now check whether nonexistent headers
11823 # can be detected and how.
11824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11825 /* end confdefs.h. */
11826 #include <ac_nonexistent.h>
11827 _ACEOF
11828 if ac_fn_c_try_cpp "$LINENO"; then :
11829 # Broken: success on invalid input.
11830 continue
11831 else
11832 # Passes both tests.
11833 ac_preproc_ok=:
11834 break
11836 rm -f conftest.err conftest.$ac_ext
11838 done
11839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11840 rm -f conftest.err conftest.$ac_ext
11841 if $ac_preproc_ok; then :
11842 break
11845 done
11846 ac_cv_prog_CPP=$CPP
11849 CPP=$ac_cv_prog_CPP
11850 else
11851 ac_cv_prog_CPP=$CPP
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11854 $as_echo "$CPP" >&6; }
11855 ac_preproc_ok=false
11856 for ac_c_preproc_warn_flag in '' yes
11858 # Use a header file that comes with gcc, so configuring glibc
11859 # with a fresh cross-compiler works.
11860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11861 # <limits.h> exists even on freestanding compilers.
11862 # On the NeXT, cc -E runs the code through the compiler's parser,
11863 # not just through cpp. "Syntax error" is here to catch this case.
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 #ifdef __STDC__
11867 # include <limits.h>
11868 #else
11869 # include <assert.h>
11870 #endif
11871 Syntax error
11872 _ACEOF
11873 if ac_fn_c_try_cpp "$LINENO"; then :
11875 else
11876 # Broken: fails on valid input.
11877 continue
11879 rm -f conftest.err conftest.$ac_ext
11881 # OK, works on sane cases. Now check whether nonexistent headers
11882 # can be detected and how.
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11885 #include <ac_nonexistent.h>
11886 _ACEOF
11887 if ac_fn_c_try_cpp "$LINENO"; then :
11888 # Broken: success on invalid input.
11889 continue
11890 else
11891 # Passes both tests.
11892 ac_preproc_ok=:
11893 break
11895 rm -f conftest.err conftest.$ac_ext
11897 done
11898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11899 rm -f conftest.err conftest.$ac_ext
11900 if $ac_preproc_ok; then :
11902 else
11903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11905 as_fn_error "C preprocessor \"$CPP\" fails sanity check
11906 See \`config.log' for more details." "$LINENO" 5; }
11909 ac_ext=c
11910 ac_cpp='$CPP $CPPFLAGS'
11911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11916 # Calculate toolexeclibdir
11917 # Also toolexecdir, though it's only used in toolexeclibdir
11918 case ${version_specific_libs} in
11919 yes)
11920 # Need the gcc compiler version to know where to install libraries
11921 # and header files if --enable-version-specific-runtime-libs option
11922 # is selected.
11923 toolexecdir='$(libdir)/gcc/$(target_alias)'
11924 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11927 if test -n "$with_cross_host" &&
11928 test x"$with_cross_host" != x"no"; then
11929 # Install a library built with a cross compiler in tooldir, not libdir.
11930 toolexecdir='$(exec_prefix)/$(target_alias)'
11931 toolexeclibdir='$(toolexecdir)/lib'
11932 else
11933 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11934 toolexeclibdir='$(libdir)'
11936 multi_os_directory=`$CC -print-multi-os-directory`
11937 case $multi_os_directory in
11938 .) ;; # Avoid trailing /.
11939 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11940 esac
11942 esac
11946 for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
11947 do :
11948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11949 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11950 eval as_val=\$$as_ac_Header
11951 if test "x$as_val" = x""yes; then :
11952 cat >>confdefs.h <<_ACEOF
11953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11954 _ACEOF
11958 done
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
11962 $as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
11963 if test "${libgfor_cv_have_math_h_signgam+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
11965 else
11967 save_CFLAGS="$CFLAGS"
11968 CFLAGS="$CFLAGS -Werror"
11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970 /* end confdefs.h. */
11972 #include <math.h>
11973 void foo(void) { signgam = 1; }
11975 main ()
11979 return 0;
11981 _ACEOF
11982 if ac_fn_c_try_compile "$LINENO"; then :
11983 libgfor_cv_have_math_h_signgam=yes
11984 else
11985 libgfor_cv_have_math_h_signgam=no
11987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988 CFLAGS="$save_CFLAGS"
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
11991 $as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
11992 if test $libgfor_cv_have_math_h_signgam = yes; then
11994 $as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
11998 # If available, sqrtl and cbrtl speed up the calculation -
11999 # but they are not required
12000 if test x$gcc_no_link != xyes; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
12002 $as_echo_n "checking for sqrtl in -lm... " >&6; }
12003 if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 ac_check_lib_save_LIBS=$LIBS
12007 LIBS="-lm $LIBS"
12008 if test x$gcc_no_link = xyes; then
12009 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12014 /* Override any GCC internal prototype to avoid an error.
12015 Use char because int might match the return type of a GCC
12016 builtin and then its argument prototype would still apply. */
12017 #ifdef __cplusplus
12018 extern "C"
12019 #endif
12020 char sqrtl ();
12022 main ()
12024 return sqrtl ();
12026 return 0;
12028 _ACEOF
12029 if ac_fn_c_try_link "$LINENO"; then :
12030 ac_cv_lib_m_sqrtl=yes
12031 else
12032 ac_cv_lib_m_sqrtl=no
12034 rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12036 LIBS=$ac_check_lib_save_LIBS
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12039 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12040 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
12042 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
12047 $as_echo_n "checking for cbrtl in -lm... " >&6; }
12048 if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 ac_check_lib_save_LIBS=$LIBS
12052 LIBS="-lm $LIBS"
12053 if test x$gcc_no_link = xyes; then
12054 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h. */
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 char cbrtl ();
12067 main ()
12069 return cbrtl ();
12071 return 0;
12073 _ACEOF
12074 if ac_fn_c_try_link "$LINENO"; then :
12075 ac_cv_lib_m_cbrtl=yes
12076 else
12077 ac_cv_lib_m_cbrtl=no
12079 rm -f core conftest.err conftest.$ac_objext \
12080 conftest$ac_exeext conftest.$ac_ext
12081 LIBS=$ac_check_lib_save_LIBS
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12084 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12085 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
12087 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12092 $as_echo_n "checking for feholdexcept in -lm... " >&6; }
12093 if test "${ac_cv_lib_m_feholdexcept+set}" = set; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096 ac_check_lib_save_LIBS=$LIBS
12097 LIBS="-lm $LIBS"
12098 if test x$gcc_no_link = xyes; then
12099 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102 /* end confdefs.h. */
12104 /* Override any GCC internal prototype to avoid an error.
12105 Use char because int might match the return type of a GCC
12106 builtin and then its argument prototype would still apply. */
12107 #ifdef __cplusplus
12108 extern "C"
12109 #endif
12110 char feholdexcept ();
12112 main ()
12114 return feholdexcept ();
12116 return 0;
12118 _ACEOF
12119 if ac_fn_c_try_link "$LINENO"; then :
12120 ac_cv_lib_m_feholdexcept=yes
12121 else
12122 ac_cv_lib_m_feholdexcept=no
12124 rm -f core conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
12126 LIBS=$ac_check_lib_save_LIBS
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12129 $as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12130 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then :
12132 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12137 $as_echo_n "checking for fesetround in -lm... " >&6; }
12138 if test "${ac_cv_lib_m_fesetround+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141 ac_check_lib_save_LIBS=$LIBS
12142 LIBS="-lm $LIBS"
12143 if test x$gcc_no_link = xyes; then
12144 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12149 /* Override any GCC internal prototype to avoid an error.
12150 Use char because int might match the return type of a GCC
12151 builtin and then its argument prototype would still apply. */
12152 #ifdef __cplusplus
12153 extern "C"
12154 #endif
12155 char fesetround ();
12157 main ()
12159 return fesetround ();
12161 return 0;
12163 _ACEOF
12164 if ac_fn_c_try_link "$LINENO"; then :
12165 ac_cv_lib_m_fesetround=yes
12166 else
12167 ac_cv_lib_m_fesetround=no
12169 rm -f core conftest.err conftest.$ac_objext \
12170 conftest$ac_exeext conftest.$ac_ext
12171 LIBS=$ac_check_lib_save_LIBS
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12174 $as_echo "$ac_cv_lib_m_fesetround" >&6; }
12175 if test "x$ac_cv_lib_m_fesetround" = x""yes; then :
12177 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12182 $as_echo_n "checking for feupdateenv in -lm... " >&6; }
12183 if test "${ac_cv_lib_m_feupdateenv+set}" = set; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-lm $LIBS"
12188 if test x$gcc_no_link = xyes; then
12189 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12194 /* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
12197 #ifdef __cplusplus
12198 extern "C"
12199 #endif
12200 char feupdateenv ();
12202 main ()
12204 return feupdateenv ();
12206 return 0;
12208 _ACEOF
12209 if ac_fn_c_try_link "$LINENO"; then :
12210 ac_cv_lib_m_feupdateenv=yes
12211 else
12212 ac_cv_lib_m_feupdateenv=no
12214 rm -f core conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
12216 LIBS=$ac_check_lib_save_LIBS
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12219 $as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12220 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then :
12222 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12227 $as_echo_n "checking for fesetenv in -lm... " >&6; }
12228 if test "${ac_cv_lib_m_fesetenv+set}" = set; then :
12229 $as_echo_n "(cached) " >&6
12230 else
12231 ac_check_lib_save_LIBS=$LIBS
12232 LIBS="-lm $LIBS"
12233 if test x$gcc_no_link = xyes; then
12234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12239 /* Override any GCC internal prototype to avoid an error.
12240 Use char because int might match the return type of a GCC
12241 builtin and then its argument prototype would still apply. */
12242 #ifdef __cplusplus
12243 extern "C"
12244 #endif
12245 char fesetenv ();
12247 main ()
12249 return fesetenv ();
12251 return 0;
12253 _ACEOF
12254 if ac_fn_c_try_link "$LINENO"; then :
12255 ac_cv_lib_m_fesetenv=yes
12256 else
12257 ac_cv_lib_m_fesetenv=no
12259 rm -f core conftest.err conftest.$ac_objext \
12260 conftest$ac_exeext conftest.$ac_ext
12261 LIBS=$ac_check_lib_save_LIBS
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12264 $as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12265 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then :
12267 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12272 $as_echo_n "checking for fetestexcept in -lm... " >&6; }
12273 if test "${ac_cv_lib_m_fetestexcept+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12275 else
12276 ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-lm $LIBS"
12278 if test x$gcc_no_link = xyes; then
12279 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12284 /* Override any GCC internal prototype to avoid an error.
12285 Use char because int might match the return type of a GCC
12286 builtin and then its argument prototype would still apply. */
12287 #ifdef __cplusplus
12288 extern "C"
12289 #endif
12290 char fetestexcept ();
12292 main ()
12294 return fetestexcept ();
12296 return 0;
12298 _ACEOF
12299 if ac_fn_c_try_link "$LINENO"; then :
12300 ac_cv_lib_m_fetestexcept=yes
12301 else
12302 ac_cv_lib_m_fetestexcept=no
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12309 $as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12310 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then :
12312 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12316 for ac_func in strtoull
12317 do :
12318 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12319 if test "x$ac_cv_func_strtoull" = x""yes; then :
12320 cat >>confdefs.h <<_ACEOF
12321 #define HAVE_STRTOULL 1
12322 _ACEOF
12325 done
12327 else
12328 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12330 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12333 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12335 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12338 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12340 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12343 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12345 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12348 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12350 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12353 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12355 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12358 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12360 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12365 # Check for hidden visibility (copied from libssp).
12366 saved_CFLAGS="$CFLAGS"
12367 CFLAGS="$CFLAGS -Werror"
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12369 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12373 void __attribute__((visibility ("hidden"))) bar (void) {}
12375 main ()
12379 return 0;
12381 _ACEOF
12382 if ac_fn_c_try_compile "$LINENO"; then :
12383 quadmath_hidden=yes
12384 else
12385 quadmath_hidden=no
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12389 $as_echo "$quadmath_hidden" >&6; }
12390 if test x$quadmath_hidden = xyes; then
12392 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12395 CFLAGS="$saved_CFLAGS"
12397 # Check for symbol versioning (copied from libssp).
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12399 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
12400 # Check whether --enable-symvers was given.
12401 if test "${enable_symvers+set}" = set; then :
12402 enableval=$enable_symvers; quadmath_use_symver=$enableval
12403 else
12404 quadmath_use_symver=yes
12407 if test "x$quadmath_use_symver" != xno; then
12408 if test x$gcc_no_link = xyes; then
12409 # If we cannot link, we cannot build shared libraries, so do not use
12410 # symbol versioning.
12411 quadmath_use_symver=no
12412 else
12413 save_LDFLAGS="$LDFLAGS"
12414 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12415 cat > conftest.map <<EOF
12416 FOO_1.0 {
12417 global: *foo*; bar; local: *;
12420 if test x$gcc_no_link = xyes; then
12421 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h. */
12425 int foo;
12427 main ()
12431 return 0;
12433 _ACEOF
12434 if ac_fn_c_try_link "$LINENO"; then :
12435 quadmath_use_symver=gnu
12436 else
12437 quadmath_use_symver=no
12439 rm -f core conftest.err conftest.$ac_objext \
12440 conftest$ac_exeext conftest.$ac_ext
12441 if test x$quadmath_use_symver = xno; then
12442 case "$target_os" in
12443 solaris2*)
12444 LDFLAGS="$save_LDFLAGS"
12445 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12446 # Sun ld cannot handle wildcards and treats all entries as undefined.
12447 cat > conftest.map <<EOF
12448 FOO_1.0 {
12449 global: foo; local: *;
12452 if test x$gcc_no_link = xyes; then
12453 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12457 int foo;
12459 main ()
12463 return 0;
12465 _ACEOF
12466 if ac_fn_c_try_link "$LINENO"; then :
12467 quadmath_use_symver=sun
12468 else
12469 quadmath_use_symver=no
12471 rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext
12474 esac
12476 LDFLAGS="$save_LDFLAGS"
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12480 $as_echo "$quadmath_use_symver" >&6; }
12481 if test "x$quadmath_use_symver" != xno; then
12482 LIBQUAD_USE_SYMVER_TRUE=
12483 LIBQUAD_USE_SYMVER_FALSE='#'
12484 else
12485 LIBQUAD_USE_SYMVER_TRUE='#'
12486 LIBQUAD_USE_SYMVER_FALSE=
12489 if test "x$quadmath_use_symver" = xgnu; then
12490 LIBQUAD_USE_SYMVER_GNU_TRUE=
12491 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12492 else
12493 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12494 LIBQUAD_USE_SYMVER_GNU_FALSE=
12497 if test "x$quadmath_use_symver" = xsun; then
12498 LIBQUAD_USE_SYMVER_SUN_TRUE=
12499 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12500 else
12501 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12502 LIBQUAD_USE_SYMVER_SUN_FALSE=
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12507 $as_echo_n "checking whether __float128 is supported... " >&6; }
12508 if test "${libquad_cv_have_float128+set}" = set; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 if test x$gcc_no_link = xyes; then
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12515 typedef _Complex float __attribute__((mode(TC))) __complex128;
12517 __float128 foo (__float128 x)
12520 __complex128 z1, z2;
12522 z1 = x;
12523 z2 = x / 7.Q;
12524 z2 /= z1;
12526 return (__float128) z2;
12529 __float128 bar (__float128 x)
12531 return x * __builtin_huge_valq ();
12535 main ()
12538 foo (1.2Q);
12539 bar (1.2Q);
12542 return 0;
12544 _ACEOF
12545 if ac_fn_c_try_compile "$LINENO"; then :
12547 libquad_cv_have_float128=yes
12549 else
12551 libquad_cv_have_float128=no
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555 else
12556 if test x$gcc_no_link = xyes; then
12557 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12562 typedef _Complex float __attribute__((mode(TC))) __complex128;
12564 __float128 foo (__float128 x)
12567 __complex128 z1, z2;
12569 z1 = x;
12570 z2 = x / 7.Q;
12571 z2 /= z1;
12573 return (__float128) z2;
12576 __float128 bar (__float128 x)
12578 return x * __builtin_huge_valq ();
12582 main ()
12585 foo (1.2Q);
12586 bar (1.2Q);
12589 return 0;
12591 _ACEOF
12592 if ac_fn_c_try_link "$LINENO"; then :
12594 libquad_cv_have_float128=yes
12596 else
12598 libquad_cv_have_float128=no
12601 rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12606 $as_echo "$libquad_cv_have_float128" >&6; }
12607 if test "x$libquad_cv_have_float128" = xyes; then
12608 BUILD_LIBQUADMATH_TRUE=
12609 BUILD_LIBQUADMATH_FALSE='#'
12610 else
12611 BUILD_LIBQUADMATH_TRUE='#'
12612 BUILD_LIBQUADMATH_FALSE=
12616 # Check for printf hook support.
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12618 $as_echo_n "checking whether printf hooks are supported... " >&6; }
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12622 #include <printf.h>
12623 #include <stdarg.h>
12624 #include <stdlib.h>
12625 extern void flt128_va (void *, va_list *);
12626 extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12627 extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12630 main ()
12633 int pa_flt128 = register_printf_type (flt128_va);
12634 int mod_Q = register_printf_modifier (L"Q");
12635 int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12636 struct printf_info info = { .user = -1 };
12639 return 0;
12641 _ACEOF
12642 if ac_fn_c_try_compile "$LINENO"; then :
12643 quadmath_printf_hooks=yes
12644 else
12645 quadmath_printf_hooks=no
12647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12649 $as_echo "$quadmath_printf_hooks" >&6; }
12650 if test x$quadmath_printf_hooks = xyes; then
12652 $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12656 # Check for whether locale support for quadmath_snprintf or Q printf hooks
12657 # should be provided.
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12659 $as_echo_n "checking whether nl_langinfo should be used... " >&6; }
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662 #include <langinfo.h>
12664 main ()
12667 const char *s;
12668 s = nl_langinfo (DECIMAL_POINT);
12669 s = nl_langinfo (MON_DECIMAL_POINT);
12670 s = nl_langinfo (GROUPING);
12671 s = nl_langinfo (MON_GROUPING);
12672 s = nl_langinfo (THOUSANDS_SEP);
12673 s = nl_langinfo (MON_THOUSANDS_SEP);
12674 (void) s;
12677 return 0;
12679 _ACEOF
12680 if ac_fn_c_try_compile "$LINENO"; then :
12681 quadmath_use_nl_langinfo=yes
12682 else
12683 quadmath_use_nl_langinfo=no
12685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12687 $as_echo "$quadmath_use_nl_langinfo" >&6; }
12688 if test x$quadmath_use_nl_langinfo = xyes; then
12690 $as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12695 $as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12698 #include <langinfo.h>
12700 main ()
12703 const char *s;
12704 s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12705 s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12706 s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12707 s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
12708 (void) s;
12711 return 0;
12713 _ACEOF
12714 if ac_fn_c_try_compile "$LINENO"; then :
12715 quadmath_use_nl_langinfo_wc=yes
12716 else
12717 quadmath_use_nl_langinfo_wc=no
12719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12721 $as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12722 if test x$quadmath_use_nl_langinfo_wc = xyes; then
12724 $as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12729 $as_echo_n "checking whether localeconv should be used... " >&6; }
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12732 #include <locale.h>
12734 main ()
12737 const struct lconv *l = localeconv ();
12738 const char *s;
12739 s = l->decimal_point;
12740 s = l->mon_decimal_point;
12741 s = l->grouping;
12742 s = l->mon_grouping;
12743 s = l->thousands_sep;
12744 s = l->mon_thousands_sep;
12745 (void) s;
12748 return 0;
12750 _ACEOF
12751 if ac_fn_c_try_compile "$LINENO"; then :
12752 quadmath_use_localeconv=yes
12753 else
12754 quadmath_use_localeconv=no
12756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
12758 $as_echo "$quadmath_use_localeconv" >&6; }
12759 if test x$quadmath_use_localeconv = xyes; then
12761 $as_echo "#define USE_LOCALECONV 1" >>confdefs.h
12765 # Check for whether i18n number rewriting support for quadmath_snprintf
12766 # or Q printf hooks should be provided.
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12768 $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771 #include <langinfo.h>
12772 #include <limits.h>
12773 #include <string.h>
12774 #include <wchar.h>
12775 #include <wctype.h>
12777 main ()
12780 const char *s;
12781 char decimal[MB_LEN_MAX];
12782 wctrans_t map = wctrans ("to_outpunct");
12783 wint_t wdecimal = towctrans (L'.', map);
12784 mbstate_t state;
12785 memset (&state, '\0', sizeof (state));
12786 wcrtomb (decimal, wdecimal, &state);
12787 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
12788 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
12789 s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
12790 (void) s;
12793 return 0;
12795 _ACEOF
12796 if ac_fn_c_try_compile "$LINENO"; then :
12797 quadmath_use_i18n_number_h=yes
12798 else
12799 quadmath_use_i18n_number_h=no
12801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
12803 $as_echo "$quadmath_use_i18n_number_h" >&6; }
12804 if test x$quadmath_use_i18n_number_h = xyes; then
12806 $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
12810 cat >confcache <<\_ACEOF
12811 # This file is a shell script that caches the results of configure
12812 # tests run on this system so they can be shared between configure
12813 # scripts and configure runs, see configure's option --config-cache.
12814 # It is not useful on other systems. If it contains results you don't
12815 # want to keep, you may remove or edit it.
12817 # config.status only pays attention to the cache file if you give it
12818 # the --recheck option to rerun configure.
12820 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12822 # following values.
12824 _ACEOF
12826 # The following way of writing the cache mishandles newlines in values,
12827 # but we know of no workaround that is simple, portable, and efficient.
12828 # So, we kill variables containing newlines.
12829 # Ultrix sh set writes to stderr and can't be redirected directly,
12830 # and sets the high bit in the cache file unless we assign to the vars.
12832 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12833 eval ac_val=\$$ac_var
12834 case $ac_val in #(
12835 *${as_nl}*)
12836 case $ac_var in #(
12837 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12838 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12839 esac
12840 case $ac_var in #(
12841 _ | IFS | as_nl) ;; #(
12842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12843 *) { eval $ac_var=; unset $ac_var;} ;;
12844 esac ;;
12845 esac
12846 done
12848 (set) 2>&1 |
12849 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12850 *${as_nl}ac_space=\ *)
12851 # `set' does not quote correctly, so add quotes: double-quote
12852 # substitution turns \\\\ into \\, and sed turns \\ into \.
12853 sed -n \
12854 "s/'/'\\\\''/g;
12855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12856 ;; #(
12858 # `set' quotes correctly as required by POSIX, so do not add quotes.
12859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12861 esac |
12862 sort
12864 sed '
12865 /^ac_cv_env_/b end
12866 t clear
12867 :clear
12868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12869 t end
12870 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12871 :end' >>confcache
12872 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12873 if test -w "$cache_file"; then
12874 test "x$cache_file" != "x/dev/null" &&
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12876 $as_echo "$as_me: updating cache $cache_file" >&6;}
12877 cat confcache >$cache_file
12878 else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12880 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12883 rm -f confcache
12885 if test ${multilib} = yes; then
12886 multilib_arg="--enable-multilib"
12887 else
12888 multilib_arg=
12892 # We would like our source tree to be readonly. However when releases or
12893 # pre-releases are generated, the flex/bison generated files as well as the
12894 # various formats of manuals need to be included along with the rest of the
12895 # sources. Therefore we have --enable-generated-files-in-srcdir to do
12896 # just that.
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
12898 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
12899 # Check whether --enable-generated-files-in-srcdir was given.
12900 if test "${enable_generated_files_in_srcdir+set}" = set; then :
12901 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
12902 yes) enable_generated_files_in_srcdir=yes ;;
12903 no) enable_generated_files_in_srcdir=no ;;
12904 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
12905 esac
12906 else
12907 enable_generated_files_in_srcdir=no
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
12911 $as_echo "$enable_generated_files_in_srcdir" >&6; }
12912 if test "$enable_generated_files_in_srcdir" = yes; then
12913 GENINSRC_TRUE=
12914 GENINSRC_FALSE='#'
12915 else
12916 GENINSRC_TRUE='#'
12917 GENINSRC_FALSE=
12922 ac_config_files="$ac_config_files Makefile"
12924 cat >confcache <<\_ACEOF
12925 # This file is a shell script that caches the results of configure
12926 # tests run on this system so they can be shared between configure
12927 # scripts and configure runs, see configure's option --config-cache.
12928 # It is not useful on other systems. If it contains results you don't
12929 # want to keep, you may remove or edit it.
12931 # config.status only pays attention to the cache file if you give it
12932 # the --recheck option to rerun configure.
12934 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12935 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12936 # following values.
12938 _ACEOF
12940 # The following way of writing the cache mishandles newlines in values,
12941 # but we know of no workaround that is simple, portable, and efficient.
12942 # So, we kill variables containing newlines.
12943 # Ultrix sh set writes to stderr and can't be redirected directly,
12944 # and sets the high bit in the cache file unless we assign to the vars.
12946 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12947 eval ac_val=\$$ac_var
12948 case $ac_val in #(
12949 *${as_nl}*)
12950 case $ac_var in #(
12951 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12952 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12953 esac
12954 case $ac_var in #(
12955 _ | IFS | as_nl) ;; #(
12956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12957 *) { eval $ac_var=; unset $ac_var;} ;;
12958 esac ;;
12959 esac
12960 done
12962 (set) 2>&1 |
12963 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12964 *${as_nl}ac_space=\ *)
12965 # `set' does not quote correctly, so add quotes: double-quote
12966 # substitution turns \\\\ into \\, and sed turns \\ into \.
12967 sed -n \
12968 "s/'/'\\\\''/g;
12969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12970 ;; #(
12972 # `set' quotes correctly as required by POSIX, so do not add quotes.
12973 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12975 esac |
12976 sort
12978 sed '
12979 /^ac_cv_env_/b end
12980 t clear
12981 :clear
12982 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12983 t end
12984 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12985 :end' >>confcache
12986 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12987 if test -w "$cache_file"; then
12988 test "x$cache_file" != "x/dev/null" &&
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12990 $as_echo "$as_me: updating cache $cache_file" >&6;}
12991 cat confcache >$cache_file
12992 else
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12994 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12997 rm -f confcache
12999 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13000 # Let make expand exec_prefix.
13001 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13003 DEFS=-DHAVE_CONFIG_H
13005 ac_libobjs=
13006 ac_ltlibobjs=
13007 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13008 # 1. Remove the extension, and $U if already installed.
13009 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13010 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13011 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13012 # will be set to the directory where LIBOBJS objects are built.
13013 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13014 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13015 done
13016 LIBOBJS=$ac_libobjs
13018 LTLIBOBJS=$ac_ltlibobjs
13021 if test -n "$EXEEXT"; then
13022 am__EXEEXT_TRUE=
13023 am__EXEEXT_FALSE='#'
13024 else
13025 am__EXEEXT_TRUE='#'
13026 am__EXEEXT_FALSE=
13029 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13030 as_fn_error "conditional \"AMDEP\" was never defined.
13031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13033 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13034 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13037 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13038 as_fn_error "conditional \"BUILD_INFO\" was never defined.
13039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13041 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13042 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13045 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13046 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13049 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13050 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13053 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13054 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13057 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13058 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13061 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13062 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
13063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13065 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13066 as_fn_error "conditional \"GENINSRC\" was never defined.
13067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13070 : ${CONFIG_STATUS=./config.status}
13071 ac_write_fail=0
13072 ac_clean_files_save=$ac_clean_files
13073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13075 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13076 as_write_fail=0
13077 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13078 #! $SHELL
13079 # Generated by $as_me.
13080 # Run this file to recreate the current configuration.
13081 # Compiler output produced by configure, useful for debugging
13082 # configure, is in config.log if it exists.
13084 debug=false
13085 ac_cs_recheck=false
13086 ac_cs_silent=false
13088 SHELL=\${CONFIG_SHELL-$SHELL}
13089 export SHELL
13090 _ASEOF
13091 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13092 ## -------------------- ##
13093 ## M4sh Initialization. ##
13094 ## -------------------- ##
13096 # Be more Bourne compatible
13097 DUALCASE=1; export DUALCASE # for MKS sh
13098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13099 emulate sh
13100 NULLCMD=:
13101 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13102 # is contrary to our usage. Disable this feature.
13103 alias -g '${1+"$@"}'='"$@"'
13104 setopt NO_GLOB_SUBST
13105 else
13106 case `(set -o) 2>/dev/null` in #(
13107 *posix*) :
13108 set -o posix ;; #(
13109 *) :
13111 esac
13115 as_nl='
13117 export as_nl
13118 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13119 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13120 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13121 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13122 # Prefer a ksh shell builtin over an external printf program on Solaris,
13123 # but without wasting forks for bash or zsh.
13124 if test -z "$BASH_VERSION$ZSH_VERSION" \
13125 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13126 as_echo='print -r --'
13127 as_echo_n='print -rn --'
13128 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13129 as_echo='printf %s\n'
13130 as_echo_n='printf %s'
13131 else
13132 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13133 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13134 as_echo_n='/usr/ucb/echo -n'
13135 else
13136 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13137 as_echo_n_body='eval
13138 arg=$1;
13139 case $arg in #(
13140 *"$as_nl"*)
13141 expr "X$arg" : "X\\(.*\\)$as_nl";
13142 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13143 esac;
13144 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13146 export as_echo_n_body
13147 as_echo_n='sh -c $as_echo_n_body as_echo'
13149 export as_echo_body
13150 as_echo='sh -c $as_echo_body as_echo'
13153 # The user is always right.
13154 if test "${PATH_SEPARATOR+set}" != set; then
13155 PATH_SEPARATOR=:
13156 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13157 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13158 PATH_SEPARATOR=';'
13163 # IFS
13164 # We need space, tab and new line, in precisely that order. Quoting is
13165 # there to prevent editors from complaining about space-tab.
13166 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13167 # splitting by setting IFS to empty value.)
13168 IFS=" "" $as_nl"
13170 # Find who we are. Look in the path if we contain no directory separator.
13171 case $0 in #((
13172 *[\\/]* ) as_myself=$0 ;;
13173 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $PATH
13176 IFS=$as_save_IFS
13177 test -z "$as_dir" && as_dir=.
13178 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13179 done
13180 IFS=$as_save_IFS
13183 esac
13184 # We did not find ourselves, most probably we were run as `sh COMMAND'
13185 # in which case we are not to be found in the path.
13186 if test "x$as_myself" = x; then
13187 as_myself=$0
13189 if test ! -f "$as_myself"; then
13190 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13191 exit 1
13194 # Unset variables that we do not need and which cause bugs (e.g. in
13195 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13196 # suppresses any "Segmentation fault" message there. '((' could
13197 # trigger a bug in pdksh 5.2.14.
13198 for as_var in BASH_ENV ENV MAIL MAILPATH
13199 do eval test x\${$as_var+set} = xset \
13200 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13201 done
13202 PS1='$ '
13203 PS2='> '
13204 PS4='+ '
13206 # NLS nuisances.
13207 LC_ALL=C
13208 export LC_ALL
13209 LANGUAGE=C
13210 export LANGUAGE
13212 # CDPATH.
13213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13216 # as_fn_error ERROR [LINENO LOG_FD]
13217 # ---------------------------------
13218 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13219 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13220 # script with status $?, using 1 if that was 0.
13221 as_fn_error ()
13223 as_status=$?; test $as_status -eq 0 && as_status=1
13224 if test "$3"; then
13225 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13226 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13228 $as_echo "$as_me: error: $1" >&2
13229 as_fn_exit $as_status
13230 } # as_fn_error
13233 # as_fn_set_status STATUS
13234 # -----------------------
13235 # Set $? to STATUS, without forking.
13236 as_fn_set_status ()
13238 return $1
13239 } # as_fn_set_status
13241 # as_fn_exit STATUS
13242 # -----------------
13243 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13244 as_fn_exit ()
13246 set +e
13247 as_fn_set_status $1
13248 exit $1
13249 } # as_fn_exit
13251 # as_fn_unset VAR
13252 # ---------------
13253 # Portably unset VAR.
13254 as_fn_unset ()
13256 { eval $1=; unset $1;}
13258 as_unset=as_fn_unset
13259 # as_fn_append VAR VALUE
13260 # ----------------------
13261 # Append the text in VALUE to the end of the definition contained in VAR. Take
13262 # advantage of any shell optimizations that allow amortized linear growth over
13263 # repeated appends, instead of the typical quadratic growth present in naive
13264 # implementations.
13265 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13266 eval 'as_fn_append ()
13268 eval $1+=\$2
13270 else
13271 as_fn_append ()
13273 eval $1=\$$1\$2
13275 fi # as_fn_append
13277 # as_fn_arith ARG...
13278 # ------------------
13279 # Perform arithmetic evaluation on the ARGs, and store the result in the
13280 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13281 # must be portable across $(()) and expr.
13282 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13283 eval 'as_fn_arith ()
13285 as_val=$(( $* ))
13287 else
13288 as_fn_arith ()
13290 as_val=`expr "$@" || test $? -eq 1`
13292 fi # as_fn_arith
13295 if expr a : '\(a\)' >/dev/null 2>&1 &&
13296 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13297 as_expr=expr
13298 else
13299 as_expr=false
13302 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13303 as_basename=basename
13304 else
13305 as_basename=false
13308 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13309 as_dirname=dirname
13310 else
13311 as_dirname=false
13314 as_me=`$as_basename -- "$0" ||
13315 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13316 X"$0" : 'X\(//\)$' \| \
13317 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13318 $as_echo X/"$0" |
13319 sed '/^.*\/\([^/][^/]*\)\/*$/{
13320 s//\1/
13323 /^X\/\(\/\/\)$/{
13324 s//\1/
13327 /^X\/\(\/\).*/{
13328 s//\1/
13331 s/.*/./; q'`
13333 # Avoid depending upon Character Ranges.
13334 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13335 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13336 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13337 as_cr_digits='0123456789'
13338 as_cr_alnum=$as_cr_Letters$as_cr_digits
13340 ECHO_C= ECHO_N= ECHO_T=
13341 case `echo -n x` in #(((((
13342 -n*)
13343 case `echo 'xy\c'` in
13344 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13345 xy) ECHO_C='\c';;
13346 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13347 ECHO_T=' ';;
13348 esac;;
13350 ECHO_N='-n';;
13351 esac
13353 rm -f conf$$ conf$$.exe conf$$.file
13354 if test -d conf$$.dir; then
13355 rm -f conf$$.dir/conf$$.file
13356 else
13357 rm -f conf$$.dir
13358 mkdir conf$$.dir 2>/dev/null
13360 if (echo >conf$$.file) 2>/dev/null; then
13361 if ln -s conf$$.file conf$$ 2>/dev/null; then
13362 as_ln_s='ln -s'
13363 # ... but there are two gotchas:
13364 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13365 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13366 # In both cases, we have to default to `cp -p'.
13367 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13368 as_ln_s='cp -p'
13369 elif ln conf$$.file conf$$ 2>/dev/null; then
13370 as_ln_s=ln
13371 else
13372 as_ln_s='cp -p'
13374 else
13375 as_ln_s='cp -p'
13377 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13378 rmdir conf$$.dir 2>/dev/null
13381 # as_fn_mkdir_p
13382 # -------------
13383 # Create "$as_dir" as a directory, including parents if necessary.
13384 as_fn_mkdir_p ()
13387 case $as_dir in #(
13388 -*) as_dir=./$as_dir;;
13389 esac
13390 test -d "$as_dir" || eval $as_mkdir_p || {
13391 as_dirs=
13392 while :; do
13393 case $as_dir in #(
13394 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13395 *) as_qdir=$as_dir;;
13396 esac
13397 as_dirs="'$as_qdir' $as_dirs"
13398 as_dir=`$as_dirname -- "$as_dir" ||
13399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13400 X"$as_dir" : 'X\(//\)[^/]' \| \
13401 X"$as_dir" : 'X\(//\)$' \| \
13402 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13403 $as_echo X"$as_dir" |
13404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13405 s//\1/
13408 /^X\(\/\/\)[^/].*/{
13409 s//\1/
13412 /^X\(\/\/\)$/{
13413 s//\1/
13416 /^X\(\/\).*/{
13417 s//\1/
13420 s/.*/./; q'`
13421 test -d "$as_dir" && break
13422 done
13423 test -z "$as_dirs" || eval "mkdir $as_dirs"
13424 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13427 } # as_fn_mkdir_p
13428 if mkdir -p . 2>/dev/null; then
13429 as_mkdir_p='mkdir -p "$as_dir"'
13430 else
13431 test -d ./-p && rmdir ./-p
13432 as_mkdir_p=false
13435 if test -x / >/dev/null 2>&1; then
13436 as_test_x='test -x'
13437 else
13438 if ls -dL / >/dev/null 2>&1; then
13439 as_ls_L_option=L
13440 else
13441 as_ls_L_option=
13443 as_test_x='
13444 eval sh -c '\''
13445 if test -d "$1"; then
13446 test -d "$1/.";
13447 else
13448 case $1 in #(
13449 -*)set "./$1";;
13450 esac;
13451 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13452 ???[sx]*):;;*)false;;esac;fi
13453 '\'' sh
13456 as_executable_p=$as_test_x
13458 # Sed expression to map a string onto a valid CPP name.
13459 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13461 # Sed expression to map a string onto a valid variable name.
13462 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13465 exec 6>&1
13466 ## ----------------------------------- ##
13467 ## Main body of $CONFIG_STATUS script. ##
13468 ## ----------------------------------- ##
13469 _ASEOF
13470 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13473 # Save the log message, to keep $0 and so on meaningful, and to
13474 # report actual input values of CONFIG_FILES etc. instead of their
13475 # values after options handling.
13476 ac_log="
13477 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13478 generated by GNU Autoconf 2.64. Invocation command line was
13480 CONFIG_FILES = $CONFIG_FILES
13481 CONFIG_HEADERS = $CONFIG_HEADERS
13482 CONFIG_LINKS = $CONFIG_LINKS
13483 CONFIG_COMMANDS = $CONFIG_COMMANDS
13484 $ $0 $@
13486 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13489 _ACEOF
13491 case $ac_config_files in *"
13492 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13493 esac
13495 case $ac_config_headers in *"
13496 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13497 esac
13500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13501 # Files that config.status was made for.
13502 config_files="$ac_config_files"
13503 config_headers="$ac_config_headers"
13504 config_commands="$ac_config_commands"
13506 _ACEOF
13508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13509 ac_cs_usage="\
13510 \`$as_me' instantiates files and other configuration actions
13511 from templates according to the current configuration. Unless the files
13512 and actions are specified as TAGs, all are instantiated by default.
13514 Usage: $0 [OPTION]... [TAG]...
13516 -h, --help print this help, then exit
13517 -V, --version print version number and configuration settings, then exit
13518 -q, --quiet, --silent
13519 do not print progress messages
13520 -d, --debug don't remove temporary files
13521 --recheck update $as_me by reconfiguring in the same conditions
13522 --file=FILE[:TEMPLATE]
13523 instantiate the configuration file FILE
13524 --header=FILE[:TEMPLATE]
13525 instantiate the configuration header FILE
13527 Configuration files:
13528 $config_files
13530 Configuration headers:
13531 $config_headers
13533 Configuration commands:
13534 $config_commands
13536 Report bugs to the package provider."
13538 _ACEOF
13539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13540 ac_cs_version="\\
13541 GCC Quad-precision Math Library config.status 0.1
13542 configured by $0, generated by GNU Autoconf 2.64,
13543 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13545 Copyright (C) 2009 Free Software Foundation, Inc.
13546 This config.status script is free software; the Free Software Foundation
13547 gives unlimited permission to copy, distribute and modify it."
13549 ac_pwd='$ac_pwd'
13550 srcdir='$srcdir'
13551 INSTALL='$INSTALL'
13552 MKDIR_P='$MKDIR_P'
13553 AWK='$AWK'
13554 test -n "\$AWK" || AWK=awk
13555 _ACEOF
13557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13558 # The default lists apply if the user does not specify any file.
13559 ac_need_defaults=:
13560 while test $# != 0
13562 case $1 in
13563 --*=*)
13564 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13565 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13566 ac_shift=:
13569 ac_option=$1
13570 ac_optarg=$2
13571 ac_shift=shift
13573 esac
13575 case $ac_option in
13576 # Handling of the options.
13577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13578 ac_cs_recheck=: ;;
13579 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13580 $as_echo "$ac_cs_version"; exit ;;
13581 --debug | --debu | --deb | --de | --d | -d )
13582 debug=: ;;
13583 --file | --fil | --fi | --f )
13584 $ac_shift
13585 case $ac_optarg in
13586 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13587 esac
13588 as_fn_append CONFIG_FILES " '$ac_optarg'"
13589 ac_need_defaults=false;;
13590 --header | --heade | --head | --hea )
13591 $ac_shift
13592 case $ac_optarg in
13593 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13594 esac
13595 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13596 ac_need_defaults=false;;
13597 --he | --h)
13598 # Conflict between --help and --header
13599 as_fn_error "ambiguous option: \`$1'
13600 Try \`$0 --help' for more information.";;
13601 --help | --hel | -h )
13602 $as_echo "$ac_cs_usage"; exit ;;
13603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13604 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13605 ac_cs_silent=: ;;
13607 # This is an error.
13608 -*) as_fn_error "unrecognized option: \`$1'
13609 Try \`$0 --help' for more information." ;;
13611 *) as_fn_append ac_config_targets " $1"
13612 ac_need_defaults=false ;;
13614 esac
13615 shift
13616 done
13618 ac_configure_extra_args=
13620 if $ac_cs_silent; then
13621 exec 6>/dev/null
13622 ac_configure_extra_args="$ac_configure_extra_args --silent"
13625 _ACEOF
13626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13627 if \$ac_cs_recheck; then
13628 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13629 shift
13630 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13631 CONFIG_SHELL='$SHELL'
13632 export CONFIG_SHELL
13633 exec "\$@"
13636 _ACEOF
13637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13638 exec 5>>config.log
13640 echo
13641 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13642 ## Running $as_me. ##
13643 _ASBOX
13644 $as_echo "$ac_log"
13645 } >&5
13647 _ACEOF
13648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13650 # INIT-COMMANDS
13653 srcdir="$srcdir"
13654 host="$host"
13655 target="$target"
13656 with_multisubdir="$with_multisubdir"
13657 with_multisrctop="$with_multisrctop"
13658 with_target_subdir="$with_target_subdir"
13659 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13660 multi_basedir="$multi_basedir"
13661 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13662 CC="$CC"
13663 CXX="$CXX"
13664 GFORTRAN="$GFORTRAN"
13665 GCJ="$GCJ"
13666 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13669 # The HP-UX ksh and POSIX shell print the target directory to stdout
13670 # if CDPATH is set.
13671 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13673 sed_quote_subst='$sed_quote_subst'
13674 double_quote_subst='$double_quote_subst'
13675 delay_variable_subst='$delay_variable_subst'
13676 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13677 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13678 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13679 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13680 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13681 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13682 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13683 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13684 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13685 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13686 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13687 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13688 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13689 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13690 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13691 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13692 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13693 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13694 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13695 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13696 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13697 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13698 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13699 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13700 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13701 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13702 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13703 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13704 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13705 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13706 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13707 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13708 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13709 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13710 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13711 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13712 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13713 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13714 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13715 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13716 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13717 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13718 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13719 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13720 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13721 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13722 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13723 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13724 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"`'
13725 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13726 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13727 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13728 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13729 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13730 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13731 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13732 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13733 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13734 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13735 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13736 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13737 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13738 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13739 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13740 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13741 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13742 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13743 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13744 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13745 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13746 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13747 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13748 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13749 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13750 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13751 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13752 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13753 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13754 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13755 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13756 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13757 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13758 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13759 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13760 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13761 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13762 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13763 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13764 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13765 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13766 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13767 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13768 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13769 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13770 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13771 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13772 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13773 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13774 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13775 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13776 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13777 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13778 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13779 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13780 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13781 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13782 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13783 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13784 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13785 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13786 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13787 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13788 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13789 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13790 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13791 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13792 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13793 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13794 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13795 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13797 LTCC='$LTCC'
13798 LTCFLAGS='$LTCFLAGS'
13799 compiler='$compiler_DEFAULT'
13801 # A function that is used when there is no print builtin or printf.
13802 func_fallback_echo ()
13804 eval 'cat <<_LTECHO_EOF
13806 _LTECHO_EOF'
13809 # Quote evaled strings.
13810 for var in SHELL \
13811 ECHO \
13812 SED \
13813 GREP \
13814 EGREP \
13815 FGREP \
13816 LD \
13817 NM \
13818 LN_S \
13819 lt_SP2NL \
13820 lt_NL2SP \
13821 reload_flag \
13822 OBJDUMP \
13823 deplibs_check_method \
13824 file_magic_cmd \
13825 AR \
13826 AR_FLAGS \
13827 STRIP \
13828 RANLIB \
13829 CC \
13830 CFLAGS \
13831 compiler \
13832 lt_cv_sys_global_symbol_pipe \
13833 lt_cv_sys_global_symbol_to_cdecl \
13834 lt_cv_sys_global_symbol_to_c_name_address \
13835 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13836 lt_prog_compiler_no_builtin_flag \
13837 lt_prog_compiler_wl \
13838 lt_prog_compiler_pic \
13839 lt_prog_compiler_static \
13840 lt_cv_prog_compiler_c_o \
13841 need_locks \
13842 DSYMUTIL \
13843 NMEDIT \
13844 LIPO \
13845 OTOOL \
13846 OTOOL64 \
13847 shrext_cmds \
13848 export_dynamic_flag_spec \
13849 whole_archive_flag_spec \
13850 compiler_needs_object \
13851 with_gnu_ld \
13852 allow_undefined_flag \
13853 no_undefined_flag \
13854 hardcode_libdir_flag_spec \
13855 hardcode_libdir_flag_spec_ld \
13856 hardcode_libdir_separator \
13857 fix_srcfile_path \
13858 exclude_expsyms \
13859 include_expsyms \
13860 file_list_spec \
13861 variables_saved_for_relink \
13862 libname_spec \
13863 library_names_spec \
13864 soname_spec \
13865 install_override_mode \
13866 finish_eval \
13867 old_striplib \
13868 striplib; do
13869 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13870 *[\\\\\\\`\\"\\\$]*)
13871 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13874 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13876 esac
13877 done
13879 # Double-quote double-evaled strings.
13880 for var in reload_cmds \
13881 old_postinstall_cmds \
13882 old_postuninstall_cmds \
13883 old_archive_cmds \
13884 extract_expsyms_cmds \
13885 old_archive_from_new_cmds \
13886 old_archive_from_expsyms_cmds \
13887 archive_cmds \
13888 archive_expsym_cmds \
13889 module_cmds \
13890 module_expsym_cmds \
13891 export_symbols_cmds \
13892 prelink_cmds \
13893 postinstall_cmds \
13894 postuninstall_cmds \
13895 finish_cmds \
13896 sys_lib_search_path_spec \
13897 sys_lib_dlsearch_path_spec; do
13898 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13899 *[\\\\\\\`\\"\\\$]*)
13900 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13903 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13905 esac
13906 done
13908 ac_aux_dir='$ac_aux_dir'
13909 xsi_shell='$xsi_shell'
13910 lt_shell_append='$lt_shell_append'
13912 # See if we are running on zsh, and set the options which allow our
13913 # commands through without removal of \ escapes INIT.
13914 if test -n "\${ZSH_VERSION+set}" ; then
13915 setopt NO_GLOB_SUBST
13919 PACKAGE='$PACKAGE'
13920 VERSION='$VERSION'
13921 TIMESTAMP='$TIMESTAMP'
13922 RM='$RM'
13923 ofile='$ofile'
13928 _ACEOF
13930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13932 # Handling of arguments.
13933 for ac_config_target in $ac_config_targets
13935 case $ac_config_target in
13936 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13937 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13938 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13939 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13940 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13942 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13943 esac
13944 done
13947 # If the user did not use the arguments to specify the items to instantiate,
13948 # then the envvar interface is used. Set only those that are not.
13949 # We use the long form for the default assignment because of an extremely
13950 # bizarre bug on SunOS 4.1.3.
13951 if $ac_need_defaults; then
13952 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13953 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13954 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13957 # Have a temporary directory for convenience. Make it in the build tree
13958 # simply because there is no reason against having it here, and in addition,
13959 # creating and moving files from /tmp can sometimes cause problems.
13960 # Hook for its removal unless debugging.
13961 # Note that there is a small window in which the directory will not be cleaned:
13962 # after its creation but before its name has been assigned to `$tmp'.
13963 $debug ||
13965 tmp=
13966 trap 'exit_status=$?
13967 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13969 trap 'as_fn_exit 1' 1 2 13 15
13971 # Create a (secure) tmp directory for tmp files.
13974 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13975 test -n "$tmp" && test -d "$tmp"
13976 } ||
13978 tmp=./conf$$-$RANDOM
13979 (umask 077 && mkdir "$tmp")
13980 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13982 # Set up the scripts for CONFIG_FILES section.
13983 # No need to generate them if there are no CONFIG_FILES.
13984 # This happens for instance with `./config.status config.h'.
13985 if test -n "$CONFIG_FILES"; then
13988 ac_cr=`echo X | tr X '\015'`
13989 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13990 # But we know of no other shell where ac_cr would be empty at this
13991 # point, so we can use a bashism as a fallback.
13992 if test "x$ac_cr" = x; then
13993 eval ac_cr=\$\'\\r\'
13995 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13996 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13997 ac_cs_awk_cr='\r'
13998 else
13999 ac_cs_awk_cr=$ac_cr
14002 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14003 _ACEOF
14007 echo "cat >conf$$subs.awk <<_ACEOF" &&
14008 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14009 echo "_ACEOF"
14010 } >conf$$subs.sh ||
14011 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14012 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14013 ac_delim='%!_!# '
14014 for ac_last_try in false false false false false :; do
14015 . ./conf$$subs.sh ||
14016 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14018 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14019 if test $ac_delim_n = $ac_delim_num; then
14020 break
14021 elif $ac_last_try; then
14022 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14023 else
14024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14026 done
14027 rm -f conf$$subs.sh
14029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14030 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14031 _ACEOF
14032 sed -n '
14034 s/^/S["/; s/!.*/"]=/
14037 s/^[^!]*!//
14038 :repl
14039 t repl
14040 s/'"$ac_delim"'$//
14041 t delim
14044 s/\(.\{148\}\).*/\1/
14045 t more1
14046 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14049 b repl
14050 :more1
14051 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14054 s/.\{148\}//
14055 t nl
14056 :delim
14058 s/\(.\{148\}\).*/\1/
14059 t more2
14060 s/["\\]/\\&/g; s/^/"/; s/$/"/
14063 :more2
14064 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14067 s/.\{148\}//
14068 t delim
14069 ' <conf$$subs.awk | sed '
14070 /^[^""]/{
14072 s/\n//
14074 ' >>$CONFIG_STATUS || ac_write_fail=1
14075 rm -f conf$$subs.awk
14076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14077 _ACAWK
14078 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14079 for (key in S) S_is_set[key] = 1
14080 FS = "\a"
14084 line = $ 0
14085 nfields = split(line, field, "@")
14086 substed = 0
14087 len = length(field[1])
14088 for (i = 2; i < nfields; i++) {
14089 key = field[i]
14090 keylen = length(key)
14091 if (S_is_set[key]) {
14092 value = S[key]
14093 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14094 len += length(value) + length(field[++i])
14095 substed = 1
14096 } else
14097 len += 1 + keylen
14100 print line
14103 _ACAWK
14104 _ACEOF
14105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14106 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14107 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14108 else
14110 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14111 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14112 _ACEOF
14114 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14115 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14116 # trailing colons and then remove the whole line if VPATH becomes empty
14117 # (actually we leave an empty line to preserve line numbers).
14118 if test "x$srcdir" = x.; then
14119 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14120 s/:*\$(srcdir):*/:/
14121 s/:*\${srcdir}:*/:/
14122 s/:*@srcdir@:*/:/
14123 s/^\([^=]*=[ ]*\):*/\1/
14124 s/:*$//
14125 s/^[^=]*=[ ]*$//
14129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14130 fi # test -n "$CONFIG_FILES"
14132 # Set up the scripts for CONFIG_HEADERS section.
14133 # No need to generate them if there are no CONFIG_HEADERS.
14134 # This happens for instance with `./config.status Makefile'.
14135 if test -n "$CONFIG_HEADERS"; then
14136 cat >"$tmp/defines.awk" <<\_ACAWK ||
14137 BEGIN {
14138 _ACEOF
14140 # Transform confdefs.h into an awk script `defines.awk', embedded as
14141 # here-document in config.status, that substitutes the proper values into
14142 # config.h.in to produce config.h.
14144 # Create a delimiter string that does not exist in confdefs.h, to ease
14145 # handling of long lines.
14146 ac_delim='%!_!# '
14147 for ac_last_try in false false :; do
14148 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14149 if test -z "$ac_t"; then
14150 break
14151 elif $ac_last_try; then
14152 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14153 else
14154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14156 done
14158 # For the awk script, D is an array of macro values keyed by name,
14159 # likewise P contains macro parameters if any. Preserve backslash
14160 # newline sequences.
14162 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14163 sed -n '
14164 s/.\{148\}/&'"$ac_delim"'/g
14165 t rset
14166 :rset
14167 s/^[ ]*#[ ]*define[ ][ ]*/ /
14168 t def
14170 :def
14171 s/\\$//
14172 t bsnl
14173 s/["\\]/\\&/g
14174 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14175 D["\1"]=" \3"/p
14176 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14178 :bsnl
14179 s/["\\]/\\&/g
14180 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14181 D["\1"]=" \3\\\\\\n"\\/p
14182 t cont
14183 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14184 t cont
14186 :cont
14188 s/.\{148\}/&'"$ac_delim"'/g
14189 t clear
14190 :clear
14191 s/\\$//
14192 t bsnlc
14193 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14195 :bsnlc
14196 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14197 b cont
14198 ' <confdefs.h | sed '
14199 s/'"$ac_delim"'/"\\\
14200 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14203 for (key in D) D_is_set[key] = 1
14204 FS = "\a"
14206 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14207 line = \$ 0
14208 split(line, arg, " ")
14209 if (arg[1] == "#") {
14210 defundef = arg[2]
14211 mac1 = arg[3]
14212 } else {
14213 defundef = substr(arg[1], 2)
14214 mac1 = arg[2]
14216 split(mac1, mac2, "(") #)
14217 macro = mac2[1]
14218 prefix = substr(line, 1, index(line, defundef) - 1)
14219 if (D_is_set[macro]) {
14220 # Preserve the white space surrounding the "#".
14221 print prefix "define", macro P[macro] D[macro]
14222 next
14223 } else {
14224 # Replace #undef with comments. This is necessary, for example,
14225 # in the case of _POSIX_SOURCE, which is predefined and required
14226 # on some systems where configure will not decide to define it.
14227 if (defundef == "undef") {
14228 print "/*", prefix defundef, macro, "*/"
14229 next
14233 { print }
14234 _ACAWK
14235 _ACEOF
14236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14237 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14238 fi # test -n "$CONFIG_HEADERS"
14241 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14242 shift
14243 for ac_tag
14245 case $ac_tag in
14246 :[FHLC]) ac_mode=$ac_tag; continue;;
14247 esac
14248 case $ac_mode$ac_tag in
14249 :[FHL]*:*);;
14250 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14251 :[FH]-) ac_tag=-:-;;
14252 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14253 esac
14254 ac_save_IFS=$IFS
14255 IFS=:
14256 set x $ac_tag
14257 IFS=$ac_save_IFS
14258 shift
14259 ac_file=$1
14260 shift
14262 case $ac_mode in
14263 :L) ac_source=$1;;
14264 :[FH])
14265 ac_file_inputs=
14266 for ac_f
14268 case $ac_f in
14269 -) ac_f="$tmp/stdin";;
14270 *) # Look for the file first in the build tree, then in the source tree
14271 # (if the path is not absolute). The absolute path cannot be DOS-style,
14272 # because $ac_f cannot contain `:'.
14273 test -f "$ac_f" ||
14274 case $ac_f in
14275 [\\/$]*) false;;
14276 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14277 esac ||
14278 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14279 esac
14280 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14281 as_fn_append ac_file_inputs " '$ac_f'"
14282 done
14284 # Let's still pretend it is `configure' which instantiates (i.e., don't
14285 # use $as_me), people would be surprised to read:
14286 # /* config.h. Generated by config.status. */
14287 configure_input='Generated from '`
14288 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14289 `' by configure.'
14290 if test x"$ac_file" != x-; then
14291 configure_input="$ac_file. $configure_input"
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14293 $as_echo "$as_me: creating $ac_file" >&6;}
14295 # Neutralize special characters interpreted by sed in replacement strings.
14296 case $configure_input in #(
14297 *\&* | *\|* | *\\* )
14298 ac_sed_conf_input=`$as_echo "$configure_input" |
14299 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14300 *) ac_sed_conf_input=$configure_input;;
14301 esac
14303 case $ac_tag in
14304 *:-:* | *:-) cat >"$tmp/stdin" \
14305 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14306 esac
14308 esac
14310 ac_dir=`$as_dirname -- "$ac_file" ||
14311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14312 X"$ac_file" : 'X\(//\)[^/]' \| \
14313 X"$ac_file" : 'X\(//\)$' \| \
14314 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14315 $as_echo X"$ac_file" |
14316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14317 s//\1/
14320 /^X\(\/\/\)[^/].*/{
14321 s//\1/
14324 /^X\(\/\/\)$/{
14325 s//\1/
14328 /^X\(\/\).*/{
14329 s//\1/
14332 s/.*/./; q'`
14333 as_dir="$ac_dir"; as_fn_mkdir_p
14334 ac_builddir=.
14336 case "$ac_dir" in
14337 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14339 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14340 # A ".." for each directory in $ac_dir_suffix.
14341 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14342 case $ac_top_builddir_sub in
14343 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14344 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14345 esac ;;
14346 esac
14347 ac_abs_top_builddir=$ac_pwd
14348 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14349 # for backward compatibility:
14350 ac_top_builddir=$ac_top_build_prefix
14352 case $srcdir in
14353 .) # We are building in place.
14354 ac_srcdir=.
14355 ac_top_srcdir=$ac_top_builddir_sub
14356 ac_abs_top_srcdir=$ac_pwd ;;
14357 [\\/]* | ?:[\\/]* ) # Absolute name.
14358 ac_srcdir=$srcdir$ac_dir_suffix;
14359 ac_top_srcdir=$srcdir
14360 ac_abs_top_srcdir=$srcdir ;;
14361 *) # Relative name.
14362 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14363 ac_top_srcdir=$ac_top_build_prefix$srcdir
14364 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14365 esac
14366 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14369 case $ac_mode in
14372 # CONFIG_FILE
14375 case $INSTALL in
14376 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14377 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14378 esac
14379 ac_MKDIR_P=$MKDIR_P
14380 case $MKDIR_P in
14381 [\\/$]* | ?:[\\/]* ) ;;
14382 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14383 esac
14384 _ACEOF
14386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14387 # If the template does not know about datarootdir, expand it.
14388 # FIXME: This hack should be removed a few years after 2.60.
14389 ac_datarootdir_hack=; ac_datarootdir_seen=
14390 ac_sed_dataroot='
14391 /datarootdir/ {
14395 /@datadir@/p
14396 /@docdir@/p
14397 /@infodir@/p
14398 /@localedir@/p
14399 /@mandir@/p'
14400 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14401 *datarootdir*) ac_datarootdir_seen=yes;;
14402 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14404 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14405 _ACEOF
14406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14407 ac_datarootdir_hack='
14408 s&@datadir@&$datadir&g
14409 s&@docdir@&$docdir&g
14410 s&@infodir@&$infodir&g
14411 s&@localedir@&$localedir&g
14412 s&@mandir@&$mandir&g
14413 s&\\\${datarootdir}&$datarootdir&g' ;;
14414 esac
14415 _ACEOF
14417 # Neutralize VPATH when `$srcdir' = `.'.
14418 # Shell code in configure.ac might set extrasub.
14419 # FIXME: do we really want to maintain this feature?
14420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14421 ac_sed_extra="$ac_vpsub
14422 $extrasub
14423 _ACEOF
14424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14427 s|@configure_input@|$ac_sed_conf_input|;t t
14428 s&@top_builddir@&$ac_top_builddir_sub&;t t
14429 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14430 s&@srcdir@&$ac_srcdir&;t t
14431 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14432 s&@top_srcdir@&$ac_top_srcdir&;t t
14433 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14434 s&@builddir@&$ac_builddir&;t t
14435 s&@abs_builddir@&$ac_abs_builddir&;t t
14436 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14437 s&@INSTALL@&$ac_INSTALL&;t t
14438 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14439 $ac_datarootdir_hack
14441 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14442 || as_fn_error "could not create $ac_file" "$LINENO" 5
14444 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14445 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14446 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14448 which seems to be undefined. Please make sure it is defined." >&5
14449 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14450 which seems to be undefined. Please make sure it is defined." >&2;}
14452 rm -f "$tmp/stdin"
14453 case $ac_file in
14454 -) cat "$tmp/out" && rm -f "$tmp/out";;
14455 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14456 esac \
14457 || as_fn_error "could not create $ac_file" "$LINENO" 5
14461 # CONFIG_HEADER
14463 if test x"$ac_file" != x-; then
14465 $as_echo "/* $configure_input */" \
14466 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14467 } >"$tmp/config.h" \
14468 || as_fn_error "could not create $ac_file" "$LINENO" 5
14469 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14471 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14472 else
14473 rm -f "$ac_file"
14474 mv "$tmp/config.h" "$ac_file" \
14475 || as_fn_error "could not create $ac_file" "$LINENO" 5
14477 else
14478 $as_echo "/* $configure_input */" \
14479 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14480 || as_fn_error "could not create -" "$LINENO" 5
14482 # Compute "$ac_file"'s index in $config_headers.
14483 _am_arg="$ac_file"
14484 _am_stamp_count=1
14485 for _am_header in $config_headers :; do
14486 case $_am_header in
14487 $_am_arg | $_am_arg:* )
14488 break ;;
14490 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14491 esac
14492 done
14493 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14494 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14495 X"$_am_arg" : 'X\(//\)[^/]' \| \
14496 X"$_am_arg" : 'X\(//\)$' \| \
14497 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14498 $as_echo X"$_am_arg" |
14499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14500 s//\1/
14503 /^X\(\/\/\)[^/].*/{
14504 s//\1/
14507 /^X\(\/\/\)$/{
14508 s//\1/
14511 /^X\(\/\).*/{
14512 s//\1/
14515 s/.*/./; q'`/stamp-h$_am_stamp_count
14518 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14519 $as_echo "$as_me: executing $ac_file commands" >&6;}
14521 esac
14524 case $ac_file$ac_mode in
14525 "default-1":C)
14526 # Only add multilib support code if we just rebuilt the top-level
14527 # Makefile.
14528 case " $CONFIG_FILES " in
14529 *" Makefile "*)
14530 ac_file=Makefile . ${multi_basedir}/config-ml.in
14532 esac ;;
14533 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14534 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14535 # are listed without --file. Let's play safe and only enable the eval
14536 # if we detect the quoting.
14537 case $CONFIG_FILES in
14538 *\'*) eval set x "$CONFIG_FILES" ;;
14539 *) set x $CONFIG_FILES ;;
14540 esac
14541 shift
14542 for mf
14544 # Strip MF so we end up with the name of the file.
14545 mf=`echo "$mf" | sed -e 's/:.*$//'`
14546 # Check whether this is an Automake generated Makefile or not.
14547 # We used to match only the files named `Makefile.in', but
14548 # some people rename them; so instead we look at the file content.
14549 # Grep'ing the first line is not enough: some people post-process
14550 # each Makefile.in and add a new line on top of each file to say so.
14551 # Grep'ing the whole file is not good either: AIX grep has a line
14552 # limit of 2048, but all sed's we know have understand at least 4000.
14553 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14554 dirpart=`$as_dirname -- "$mf" ||
14555 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14556 X"$mf" : 'X\(//\)[^/]' \| \
14557 X"$mf" : 'X\(//\)$' \| \
14558 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14559 $as_echo X"$mf" |
14560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14561 s//\1/
14564 /^X\(\/\/\)[^/].*/{
14565 s//\1/
14568 /^X\(\/\/\)$/{
14569 s//\1/
14572 /^X\(\/\).*/{
14573 s//\1/
14576 s/.*/./; q'`
14577 else
14578 continue
14580 # Extract the definition of DEPDIR, am__include, and am__quote
14581 # from the Makefile without running `make'.
14582 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14583 test -z "$DEPDIR" && continue
14584 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14585 test -z "am__include" && continue
14586 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14587 # When using ansi2knr, U may be empty or an underscore; expand it
14588 U=`sed -n 's/^U = //p' < "$mf"`
14589 # Find all dependency output files, they are included files with
14590 # $(DEPDIR) in their names. We invoke sed twice because it is the
14591 # simplest approach to changing $(DEPDIR) to its actual value in the
14592 # expansion.
14593 for file in `sed -n "
14594 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14595 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14596 # Make sure the directory exists.
14597 test -f "$dirpart/$file" && continue
14598 fdir=`$as_dirname -- "$file" ||
14599 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14600 X"$file" : 'X\(//\)[^/]' \| \
14601 X"$file" : 'X\(//\)$' \| \
14602 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14603 $as_echo X"$file" |
14604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14605 s//\1/
14608 /^X\(\/\/\)[^/].*/{
14609 s//\1/
14612 /^X\(\/\/\)$/{
14613 s//\1/
14616 /^X\(\/\).*/{
14617 s//\1/
14620 s/.*/./; q'`
14621 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14622 # echo "creating $dirpart/$file"
14623 echo '# dummy' > "$dirpart/$file"
14624 done
14625 done
14628 "libtool":C)
14630 # See if we are running on zsh, and set the options which allow our
14631 # commands through without removal of \ escapes.
14632 if test -n "${ZSH_VERSION+set}" ; then
14633 setopt NO_GLOB_SUBST
14636 cfgfile="${ofile}T"
14637 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14638 $RM "$cfgfile"
14640 cat <<_LT_EOF >> "$cfgfile"
14641 #! $SHELL
14643 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14644 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14645 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14646 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14648 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14649 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14650 # Written by Gordon Matzigkeit, 1996
14652 # This file is part of GNU Libtool.
14654 # GNU Libtool is free software; you can redistribute it and/or
14655 # modify it under the terms of the GNU General Public License as
14656 # published by the Free Software Foundation; either version 2 of
14657 # the License, or (at your option) any later version.
14659 # As a special exception to the GNU General Public License,
14660 # if you distribute this file as part of a program or library that
14661 # is built using GNU Libtool, you may include this file under the
14662 # same distribution terms that you use for the rest of that program.
14664 # GNU Libtool is distributed in the hope that it will be useful,
14665 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14666 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14667 # GNU General Public License for more details.
14669 # You should have received a copy of the GNU General Public License
14670 # along with GNU Libtool; see the file COPYING. If not, a copy
14671 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14672 # obtained by writing to the Free Software Foundation, Inc.,
14673 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14676 # The names of the tagged configurations supported by this script.
14677 available_tags=""
14679 # ### BEGIN LIBTOOL CONFIG
14681 # Which release of libtool.m4 was used?
14682 macro_version=$macro_version
14683 macro_revision=$macro_revision
14685 # Whether or not to build shared libraries.
14686 build_libtool_libs=$enable_shared
14688 # Whether or not to build static libraries.
14689 build_old_libs=$enable_static
14691 # What type of objects to build.
14692 pic_mode=$pic_mode
14694 # Whether or not to optimize for fast installation.
14695 fast_install=$enable_fast_install
14697 # Shell to use when invoking shell scripts.
14698 SHELL=$lt_SHELL
14700 # An echo program that protects backslashes.
14701 ECHO=$lt_ECHO
14703 # The host system.
14704 host_alias=$host_alias
14705 host=$host
14706 host_os=$host_os
14708 # The build system.
14709 build_alias=$build_alias
14710 build=$build
14711 build_os=$build_os
14713 # A sed program that does not truncate output.
14714 SED=$lt_SED
14716 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14717 Xsed="\$SED -e 1s/^X//"
14719 # A grep program that handles long lines.
14720 GREP=$lt_GREP
14722 # An ERE matcher.
14723 EGREP=$lt_EGREP
14725 # A literal string matcher.
14726 FGREP=$lt_FGREP
14728 # A BSD- or MS-compatible name lister.
14729 NM=$lt_NM
14731 # Whether we need soft or hard links.
14732 LN_S=$lt_LN_S
14734 # What is the maximum length of a command?
14735 max_cmd_len=$max_cmd_len
14737 # Object file suffix (normally "o").
14738 objext=$ac_objext
14740 # Executable file suffix (normally "").
14741 exeext=$exeext
14743 # whether the shell understands "unset".
14744 lt_unset=$lt_unset
14746 # turn spaces into newlines.
14747 SP2NL=$lt_lt_SP2NL
14749 # turn newlines into spaces.
14750 NL2SP=$lt_lt_NL2SP
14752 # An object symbol dumper.
14753 OBJDUMP=$lt_OBJDUMP
14755 # Method to check whether dependent libraries are shared objects.
14756 deplibs_check_method=$lt_deplibs_check_method
14758 # Command to use when deplibs_check_method == "file_magic".
14759 file_magic_cmd=$lt_file_magic_cmd
14761 # The archiver.
14762 AR=$lt_AR
14763 AR_FLAGS=$lt_AR_FLAGS
14765 # A symbol stripping program.
14766 STRIP=$lt_STRIP
14768 # Commands used to install an old-style archive.
14769 RANLIB=$lt_RANLIB
14770 old_postinstall_cmds=$lt_old_postinstall_cmds
14771 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14773 # Whether to use a lock for old archive extraction.
14774 lock_old_archive_extraction=$lock_old_archive_extraction
14776 # A C compiler.
14777 LTCC=$lt_CC
14779 # LTCC compiler flags.
14780 LTCFLAGS=$lt_CFLAGS
14782 # Take the output of nm and produce a listing of raw symbols and C names.
14783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14785 # Transform the output of nm in a proper C declaration.
14786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14788 # Transform the output of nm in a C name address pair.
14789 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14791 # Transform the output of nm in a C name address pair when lib prefix is needed.
14792 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14794 # The name of the directory that contains temporary libtool files.
14795 objdir=$objdir
14797 # Used to examine libraries when file_magic_cmd begins with "file".
14798 MAGIC_CMD=$MAGIC_CMD
14800 # Must we lock files when doing compilation?
14801 need_locks=$lt_need_locks
14803 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14804 DSYMUTIL=$lt_DSYMUTIL
14806 # Tool to change global to local symbols on Mac OS X.
14807 NMEDIT=$lt_NMEDIT
14809 # Tool to manipulate fat objects and archives on Mac OS X.
14810 LIPO=$lt_LIPO
14812 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14813 OTOOL=$lt_OTOOL
14815 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14816 OTOOL64=$lt_OTOOL64
14818 # Old archive suffix (normally "a").
14819 libext=$libext
14821 # Shared library suffix (normally ".so").
14822 shrext_cmds=$lt_shrext_cmds
14824 # The commands to extract the exported symbol list from a shared archive.
14825 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14827 # Variables whose values should be saved in libtool wrapper scripts and
14828 # restored at link time.
14829 variables_saved_for_relink=$lt_variables_saved_for_relink
14831 # Do we need the "lib" prefix for modules?
14832 need_lib_prefix=$need_lib_prefix
14834 # Do we need a version for libraries?
14835 need_version=$need_version
14837 # Library versioning type.
14838 version_type=$version_type
14840 # Shared library runtime path variable.
14841 runpath_var=$runpath_var
14843 # Shared library path variable.
14844 shlibpath_var=$shlibpath_var
14846 # Is shlibpath searched before the hard-coded library search path?
14847 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14849 # Format of library name prefix.
14850 libname_spec=$lt_libname_spec
14852 # List of archive names. First name is the real one, the rest are links.
14853 # The last name is the one that the linker finds with -lNAME
14854 library_names_spec=$lt_library_names_spec
14856 # The coded name of the library, if different from the real name.
14857 soname_spec=$lt_soname_spec
14859 # Permission mode override for installation of shared libraries.
14860 install_override_mode=$lt_install_override_mode
14862 # Command to use after installation of a shared archive.
14863 postinstall_cmds=$lt_postinstall_cmds
14865 # Command to use after uninstallation of a shared archive.
14866 postuninstall_cmds=$lt_postuninstall_cmds
14868 # Commands used to finish a libtool library installation in a directory.
14869 finish_cmds=$lt_finish_cmds
14871 # As "finish_cmds", except a single script fragment to be evaled but
14872 # not shown.
14873 finish_eval=$lt_finish_eval
14875 # Whether we should hardcode library paths into libraries.
14876 hardcode_into_libs=$hardcode_into_libs
14878 # Compile-time system search path for libraries.
14879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14881 # Run-time system search path for libraries.
14882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14884 # Whether dlopen is supported.
14885 dlopen_support=$enable_dlopen
14887 # Whether dlopen of programs is supported.
14888 dlopen_self=$enable_dlopen_self
14890 # Whether dlopen of statically linked programs is supported.
14891 dlopen_self_static=$enable_dlopen_self_static
14893 # Commands to strip libraries.
14894 old_striplib=$lt_old_striplib
14895 striplib=$lt_striplib
14898 # The linker used to build libraries.
14899 LD=$lt_LD
14901 # How to create reloadable object files.
14902 reload_flag=$lt_reload_flag
14903 reload_cmds=$lt_reload_cmds
14905 # Commands used to build an old-style archive.
14906 old_archive_cmds=$lt_old_archive_cmds
14908 # A language specific compiler.
14909 CC=$lt_compiler
14911 # Is the compiler the GNU compiler?
14912 with_gcc=$GCC
14914 # Compiler flag to turn off builtin functions.
14915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14917 # How to pass a linker flag through the compiler.
14918 wl=$lt_lt_prog_compiler_wl
14920 # Additional compiler flags for building library objects.
14921 pic_flag=$lt_lt_prog_compiler_pic
14923 # Compiler flag to prevent dynamic linking.
14924 link_static_flag=$lt_lt_prog_compiler_static
14926 # Does compiler simultaneously support -c and -o options?
14927 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14929 # Whether or not to add -lc for building shared libraries.
14930 build_libtool_need_lc=$archive_cmds_need_lc
14932 # Whether or not to disallow shared libs when runtime libs are static.
14933 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14935 # Compiler flag to allow reflexive dlopens.
14936 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14938 # Compiler flag to generate shared objects directly from archives.
14939 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14941 # Whether the compiler copes with passing no objects directly.
14942 compiler_needs_object=$lt_compiler_needs_object
14944 # Create an old-style archive from a shared archive.
14945 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14947 # Create a temporary old-style archive to link instead of a shared archive.
14948 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14950 # Commands used to build a shared archive.
14951 archive_cmds=$lt_archive_cmds
14952 archive_expsym_cmds=$lt_archive_expsym_cmds
14954 # Commands used to build a loadable module if different from building
14955 # a shared archive.
14956 module_cmds=$lt_module_cmds
14957 module_expsym_cmds=$lt_module_expsym_cmds
14959 # Whether we are building with GNU ld or not.
14960 with_gnu_ld=$lt_with_gnu_ld
14962 # Flag that allows shared libraries with undefined symbols to be built.
14963 allow_undefined_flag=$lt_allow_undefined_flag
14965 # Flag that enforces no undefined symbols.
14966 no_undefined_flag=$lt_no_undefined_flag
14968 # Flag to hardcode \$libdir into a binary during linking.
14969 # This must work even if \$libdir does not exist
14970 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14972 # If ld is used when linking, flag to hardcode \$libdir into a binary
14973 # during linking. This must work even if \$libdir does not exist.
14974 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14976 # Whether we need a single "-rpath" flag with a separated argument.
14977 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14979 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14980 # DIR into the resulting binary.
14981 hardcode_direct=$hardcode_direct
14983 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14984 # DIR into the resulting binary and the resulting library dependency is
14985 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14986 # library is relocated.
14987 hardcode_direct_absolute=$hardcode_direct_absolute
14989 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14990 # into the resulting binary.
14991 hardcode_minus_L=$hardcode_minus_L
14993 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14994 # into the resulting binary.
14995 hardcode_shlibpath_var=$hardcode_shlibpath_var
14997 # Set to "yes" if building a shared library automatically hardcodes DIR
14998 # into the library and all subsequent libraries and executables linked
14999 # against it.
15000 hardcode_automatic=$hardcode_automatic
15002 # Set to yes if linker adds runtime paths of dependent libraries
15003 # to runtime path list.
15004 inherit_rpath=$inherit_rpath
15006 # Whether libtool must link a program against all its dependency libraries.
15007 link_all_deplibs=$link_all_deplibs
15009 # Fix the shell variable \$srcfile for the compiler.
15010 fix_srcfile_path=$lt_fix_srcfile_path
15012 # Set to "yes" if exported symbols are required.
15013 always_export_symbols=$always_export_symbols
15015 # The commands to list exported symbols.
15016 export_symbols_cmds=$lt_export_symbols_cmds
15018 # Symbols that should not be listed in the preloaded symbols.
15019 exclude_expsyms=$lt_exclude_expsyms
15021 # Symbols that must always be exported.
15022 include_expsyms=$lt_include_expsyms
15024 # Commands necessary for linking programs (against libraries) with templates.
15025 prelink_cmds=$lt_prelink_cmds
15027 # Specify filename containing input files.
15028 file_list_spec=$lt_file_list_spec
15030 # How to hardcode a shared library path into an executable.
15031 hardcode_action=$hardcode_action
15033 # ### END LIBTOOL CONFIG
15035 _LT_EOF
15037 case $host_os in
15038 aix3*)
15039 cat <<\_LT_EOF >> "$cfgfile"
15040 # AIX sometimes has problems with the GCC collect2 program. For some
15041 # reason, if we set the COLLECT_NAMES environment variable, the problems
15042 # vanish in a puff of smoke.
15043 if test "X${COLLECT_NAMES+set}" != Xset; then
15044 COLLECT_NAMES=
15045 export COLLECT_NAMES
15047 _LT_EOF
15049 esac
15052 ltmain="$ac_aux_dir/ltmain.sh"
15055 # We use sed instead of cat because bash on DJGPP gets confused if
15056 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15057 # text mode, it properly converts lines to CR/LF. This bash problem
15058 # is reportedly fixed, but why not run on old versions too?
15059 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15060 || (rm -f "$cfgfile"; exit 1)
15062 case $xsi_shell in
15063 yes)
15064 cat << \_LT_EOF >> "$cfgfile"
15066 # func_dirname file append nondir_replacement
15067 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15068 # otherwise set result to NONDIR_REPLACEMENT.
15069 func_dirname ()
15071 case ${1} in
15072 */*) func_dirname_result="${1%/*}${2}" ;;
15073 * ) func_dirname_result="${3}" ;;
15074 esac
15077 # func_basename file
15078 func_basename ()
15080 func_basename_result="${1##*/}"
15083 # func_dirname_and_basename file append nondir_replacement
15084 # perform func_basename and func_dirname in a single function
15085 # call:
15086 # dirname: Compute the dirname of FILE. If nonempty,
15087 # add APPEND to the result, otherwise set result
15088 # to NONDIR_REPLACEMENT.
15089 # value returned in "$func_dirname_result"
15090 # basename: Compute filename of FILE.
15091 # value retuned in "$func_basename_result"
15092 # Implementation must be kept synchronized with func_dirname
15093 # and func_basename. For efficiency, we do not delegate to
15094 # those functions but instead duplicate the functionality here.
15095 func_dirname_and_basename ()
15097 case ${1} in
15098 */*) func_dirname_result="${1%/*}${2}" ;;
15099 * ) func_dirname_result="${3}" ;;
15100 esac
15101 func_basename_result="${1##*/}"
15104 # func_stripname prefix suffix name
15105 # strip PREFIX and SUFFIX off of NAME.
15106 # PREFIX and SUFFIX must not contain globbing or regex special
15107 # characters, hashes, percent signs, but SUFFIX may contain a leading
15108 # dot (in which case that matches only a dot).
15109 func_stripname ()
15111 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15112 # positional parameters, so assign one to ordinary parameter first.
15113 func_stripname_result=${3}
15114 func_stripname_result=${func_stripname_result#"${1}"}
15115 func_stripname_result=${func_stripname_result%"${2}"}
15118 # func_opt_split
15119 func_opt_split ()
15121 func_opt_split_opt=${1%%=*}
15122 func_opt_split_arg=${1#*=}
15125 # func_lo2o object
15126 func_lo2o ()
15128 case ${1} in
15129 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15130 *) func_lo2o_result=${1} ;;
15131 esac
15134 # func_xform libobj-or-source
15135 func_xform ()
15137 func_xform_result=${1%.*}.lo
15140 # func_arith arithmetic-term...
15141 func_arith ()
15143 func_arith_result=$(( $* ))
15146 # func_len string
15147 # STRING may not start with a hyphen.
15148 func_len ()
15150 func_len_result=${#1}
15153 _LT_EOF
15155 *) # Bourne compatible functions.
15156 cat << \_LT_EOF >> "$cfgfile"
15158 # func_dirname file append nondir_replacement
15159 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15160 # otherwise set result to NONDIR_REPLACEMENT.
15161 func_dirname ()
15163 # Extract subdirectory from the argument.
15164 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15165 if test "X$func_dirname_result" = "X${1}"; then
15166 func_dirname_result="${3}"
15167 else
15168 func_dirname_result="$func_dirname_result${2}"
15172 # func_basename file
15173 func_basename ()
15175 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15179 # func_stripname prefix suffix name
15180 # strip PREFIX and SUFFIX off of NAME.
15181 # PREFIX and SUFFIX must not contain globbing or regex special
15182 # characters, hashes, percent signs, but SUFFIX may contain a leading
15183 # dot (in which case that matches only a dot).
15184 # func_strip_suffix prefix name
15185 func_stripname ()
15187 case ${2} in
15188 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15189 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15190 esac
15193 # sed scripts:
15194 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15195 my_sed_long_arg='1s/^-[^=]*=//'
15197 # func_opt_split
15198 func_opt_split ()
15200 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15201 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15204 # func_lo2o object
15205 func_lo2o ()
15207 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15210 # func_xform libobj-or-source
15211 func_xform ()
15213 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15216 # func_arith arithmetic-term...
15217 func_arith ()
15219 func_arith_result=`expr "$@"`
15222 # func_len string
15223 # STRING may not start with a hyphen.
15224 func_len ()
15226 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15229 _LT_EOF
15230 esac
15232 case $lt_shell_append in
15233 yes)
15234 cat << \_LT_EOF >> "$cfgfile"
15236 # func_append var value
15237 # Append VALUE to the end of shell variable VAR.
15238 func_append ()
15240 eval "$1+=\$2"
15242 _LT_EOF
15245 cat << \_LT_EOF >> "$cfgfile"
15247 # func_append var value
15248 # Append VALUE to the end of shell variable VAR.
15249 func_append ()
15251 eval "$1=\$$1\$2"
15254 _LT_EOF
15256 esac
15259 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15260 || (rm -f "$cfgfile"; exit 1)
15262 mv -f "$cfgfile" "$ofile" ||
15263 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15264 chmod +x "$ofile"
15268 esac
15269 done # for ac_tag
15272 as_fn_exit 0
15273 _ACEOF
15274 ac_clean_files=$ac_clean_files_save
15276 test $ac_write_fail = 0 ||
15277 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15280 # configure is writing to config.log, and then calls config.status.
15281 # config.status does its own redirection, appending to config.log.
15282 # Unfortunately, on DOS this fails, as config.log is still kept open
15283 # by configure, so config.status won't be able to write to it; its
15284 # output is simply discarded. So we exec the FD to /dev/null,
15285 # effectively closing config.log, so it can be properly (re)opened and
15286 # appended to by config.status. When coming back to configure, we
15287 # need to make the FD available again.
15288 if test "$no_create" != yes; then
15289 ac_cs_success=:
15290 ac_config_status_args=
15291 test "$silent" = yes &&
15292 ac_config_status_args="$ac_config_status_args --quiet"
15293 exec 5>/dev/null
15294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15295 exec 5>>config.log
15296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15297 # would make configure fail if this is the last instruction.
15298 $ac_cs_success || as_fn_exit $?
15300 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15302 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}